From 3640559afddbad452d265b54fb1c20b30be0b062 Mon Sep 17 00:00:00 2001 From: Arcturus Date: Fri, 28 May 2021 19:51:26 +0800 Subject: [PATCH] Release v55.0.0 (#14724) * bump autorest.go version * Generated from azure-rest-api-specs 12b41f4c0ff9814429a6dcfc4a72d5f9d52d1f62 * Refresh profiles * Generated from specification/cognitiveservices/resource-manager/readme.md tag package-2021-04 (commit hash: 394395ed0bdc1c5c05cb37a031379ca03bfebbb5) * Generated from specification/imagebuilder/resource-manager/readme.md tag package-2020-02 (commit hash: 394395ed0bdc1c5c05cb37a031379ca03bfebbb5) * Generated from specification/logz/resource-manager/readme.md tag package-2020-10-01-preview (commit hash: 394395ed0bdc1c5c05cb37a031379ca03bfebbb5) * Generated from specification/recoveryservicesbackup/resource-manager/readme.md tag package-2021-01 (commit hash: 394395ed0bdc1c5c05cb37a031379ca03bfebbb5) * Generated from specification/storagepool/resource-manager/readme.md tag package-2021-04-01-preview (commit hash: 394395ed0bdc1c5c05cb37a031379ca03bfebbb5) * Generated from specification/compute/resource-manager/readme.md tag package-2021-03-01 (commit hash: 394395ed0bdc1c5c05cb37a031379ca03bfebbb5) * Generated from specification/dnc/resource-manager/readme.md tag package-2021-03-15 (commit hash: 394395ed0bdc1c5c05cb37a031379ca03bfebbb5) * Generated from specification/network/resource-manager/readme.md tag package-2020-11 (commit hash: 394395ed0bdc1c5c05cb37a031379ca03bfebbb5) * Generated from specification/datadog/resource-manager/readme.md tag package-2021-03 (commit hash: 394395ed0bdc1c5c05cb37a031379ca03bfebbb5) * Generated from specification/datafactory/resource-manager/readme.md tag package-2018-06 (commit hash: 394395ed0bdc1c5c05cb37a031379ca03bfebbb5) * v55.0.0 * rename imagebuilder package * fix links --- CHANGELOG.md | 650 +- generate_options.json | 2 +- .../cognitiveservicesapi/models.go | 3 +- .../mgmt/cognitiveservices/models.go | 210 +- .../compute/mgmt/compute/computeapi/models.go | 6 + .../latest/compute/mgmt/compute/models.go | 823 +- .../latest/datadog/mgmt/datadog/models.go | 59 +- .../datafactory/mgmt/datafactory/models.go | 81 +- .../mgmt/delegatednetwork/models.go | 20 +- profiles/latest/kusto/mgmt/kusto/models.go | 6 +- .../mgmt/backup/backupapi/models.go | 15 +- .../recoveryservices/mgmt/backup/models.go | 540 +- .../mgmt/securityinsight/models.go | 8 +- .../mgmt/virtualmachineimagebuilder/models.go | 62 +- .../virtualmachineimagebuilderapi/models.go | 2 +- .../cognitiveservicesapi/models.go | 3 +- .../mgmt/cognitiveservices/models.go | 210 +- .../compute/mgmt/compute/computeapi/models.go | 6 + .../preview/compute/mgmt/compute/models.go | 823 +- .../preview/datadog/mgmt/datadog/models.go | 59 +- .../datafactory/mgmt/datafactory/models.go | 81 +- .../mgmt/delegatednetwork/models.go | 20 +- profiles/preview/kusto/mgmt/kusto/models.go | 6 +- .../cosmos-db/mgmt/documentdb/models.go | 6 +- .../preview/logz/mgmt/logz/logzapi/models.go | 19 + .../preview/preview/logz/mgmt/logz/models.go | 289 + .../mgmt/resourcegraph/models.go | 6 +- .../mgmt/securityinsight/models.go | 14 +- .../storagepool/mgmt/storagepool/models.go | 103 +- .../mgmt/storagepool/storagepoolapi/models.go | 3 +- .../mgmt/videoanalyzer/models.go | 4 +- .../mgmt/backup/backupapi/models.go | 15 +- .../recoveryservices/mgmt/backup/models.go | 540 +- .../mgmt/securityinsight/models.go | 8 +- .../mgmt/virtualmachineimagebuilder/models.go | 62 +- .../virtualmachineimagebuilderapi/models.go | 2 +- services/aad/mgmt/2017-04-01/aad/CHANGELOG.md | 6 + services/aad/mgmt/2017-04-01/aad/_meta.json | 4 +- services/aad/mgmt/2017-04-01/aad/models.go | 12 + .../adhybridhealthservice/_meta.json | 4 +- .../mgmt/2017-03-31/advisor/CHANGELOG.md | 5 + .../mgmt/2017-03-31/advisor/_meta.json | 4 +- .../advisor/mgmt/2017-03-31/advisor/models.go | 6 + .../mgmt/2017-04-19/advisor/CHANGELOG.md | 5 + .../mgmt/2017-04-19/advisor/_meta.json | 4 +- .../advisor/mgmt/2017-04-19/advisor/models.go | 6 + .../mgmt/2020-01-01/advisor/CHANGELOG.md | 5 + .../mgmt/2020-01-01/advisor/_meta.json | 4 +- .../advisor/mgmt/2020-01-01/advisor/models.go | 6 + .../2018-05-05/alertsmanagement/CHANGELOG.md | 5 + .../2018-05-05/alertsmanagement/_meta.json | 4 +- .../2018-05-05/alertsmanagement/models.go | 6 + .../2019-03-01/alertsmanagement/CHANGELOG.md | 6 + .../2019-03-01/alertsmanagement/_meta.json | 4 +- .../2019-03-01/alertsmanagement/models.go | 12 + .../2016-05-16/analysisservices/_meta.json | 4 +- .../2017-07-14/analysisservices/_meta.json | 4 +- .../2017-08-01/analysisservices/CHANGELOG.md | 6 + .../2017-08-01/analysisservices/_meta.json | 4 +- .../2017-08-01/analysisservices/models.go | 12 + .../2016-07-07/apimanagement/CHANGELOG.md | 5 + .../mgmt/2016-07-07/apimanagement/_meta.json | 4 +- .../mgmt/2016-07-07/apimanagement/models.go | 6 + .../2016-10-10/apimanagement/CHANGELOG.md | 5 + .../mgmt/2016-10-10/apimanagement/_meta.json | 4 +- .../mgmt/2016-10-10/apimanagement/models.go | 6 + .../2017-03-01/apimanagement/CHANGELOG.md | 15 + .../mgmt/2017-03-01/apimanagement/_meta.json | 4 +- .../mgmt/2017-03-01/apimanagement/models.go | 66 + .../2018-01-01/apimanagement/CHANGELOG.md | 17 + .../mgmt/2018-01-01/apimanagement/_meta.json | 4 +- .../mgmt/2018-01-01/apimanagement/models.go | 78 + .../2019-01-01/apimanagement/CHANGELOG.md | 17 + .../mgmt/2019-01-01/apimanagement/_meta.json | 4 +- .../mgmt/2019-01-01/apimanagement/models.go | 78 + .../2019-12-01/apimanagement/CHANGELOG.md | 21 + .../mgmt/2019-12-01/apimanagement/_meta.json | 4 +- .../mgmt/2019-12-01/apimanagement/models.go | 102 + .../2020-12-01/apimanagement/CHANGELOG.md | 25 + .../mgmt/2020-12-01/apimanagement/_meta.json | 4 +- .../mgmt/2020-12-01/apimanagement/models.go | 126 + .../2019-10-01/appconfiguration/CHANGELOG.md | 8 + .../2019-10-01/appconfiguration/_meta.json | 4 +- .../2019-10-01/appconfiguration/models.go | 24 + .../2020-06-01/appconfiguration/CHANGELOG.md | 8 + .../2020-06-01/appconfiguration/_meta.json | 4 +- .../2020-06-01/appconfiguration/models.go | 24 + .../mgmt/2015-05-01/insights/CHANGELOG.md | 14 + .../mgmt/2015-05-01/insights/_meta.json | 4 +- .../mgmt/2015-05-01/insights/models.go | 60 + .../mgmt/2020-07-01/appplatform/CHANGELOG.md | 9 + .../mgmt/2020-07-01/appplatform/_meta.json | 4 +- .../mgmt/2020-07-01/appplatform/models.go | 30 + .../2018-09-01/attestation/_meta.json | 4 +- .../2020-10-01/attestation/_meta.json | 4 +- .../mgmt/2018-09-01/attestation/CHANGELOG.md | 7 + .../mgmt/2018-09-01/attestation/_meta.json | 4 +- .../mgmt/2018-09-01/attestation/models.go | 18 + .../mgmt/2020-10-01/attestation/CHANGELOG.md | 7 + .../mgmt/2020-10-01/attestation/_meta.json | 4 +- .../mgmt/2020-10-01/attestation/models.go | 18 + .../mgmt/2015-07-01/authorization/_meta.json | 4 +- .../mgmt/2015-10-31/automation/CHANGELOG.md | 9 + .../mgmt/2015-10-31/automation/_meta.json | 4 +- .../mgmt/2015-10-31/automation/models.go | 30 + services/avs/mgmt/2020-03-20/avs/CHANGELOG.md | 19 + services/avs/mgmt/2020-03-20/avs/_meta.json | 4 +- services/avs/mgmt/2020-03-20/avs/models.go | 90 + .../mgmt/2017-06-01/azurestack/CHANGELOG.md | 12 + .../mgmt/2017-06-01/azurestack/_meta.json | 4 +- .../mgmt/2017-06-01/azurestack/models.go | 48 + .../2020-10-01/azurestackhci/CHANGELOG.md | 11 + .../mgmt/2020-10-01/azurestackhci/_meta.json | 4 +- .../mgmt/2020-10-01/azurestackhci/models.go | 42 + .../batch/2017-05-01.5.0/batch/_meta.json | 4 +- .../batch/2018-03-01.6.1/batch/_meta.json | 4 +- .../batch/2018-08-01.7.0/batch/_meta.json | 4 +- .../batch/2018-12-01.8.0/batch/_meta.json | 4 +- .../batch/2019-06-01.9.0/batch/_meta.json | 4 +- .../batch/2019-08-01.10.0/batch/_meta.json | 4 +- .../batch/2020-03-01.11.0/batch/_meta.json | 4 +- .../batch/2020-09-01.12.0/batch/_meta.json | 4 +- .../batch/mgmt/2015-12-01/batch/_meta.json | 4 +- .../batch/mgmt/2017-01-01/batch/CHANGELOG.md | 8 + .../batch/mgmt/2017-01-01/batch/_meta.json | 4 +- .../batch/mgmt/2017-01-01/batch/models.go | 24 + .../batch/mgmt/2017-05-01/batch/CHANGELOG.md | 9 + .../batch/mgmt/2017-05-01/batch/_meta.json | 4 +- .../batch/mgmt/2017-05-01/batch/models.go | 30 + .../batch/mgmt/2017-09-01/batch/CHANGELOG.md | 10 + .../batch/mgmt/2017-09-01/batch/_meta.json | 4 +- .../batch/mgmt/2017-09-01/batch/models.go | 36 + .../batch/mgmt/2018-12-01/batch/CHANGELOG.md | 10 + .../batch/mgmt/2018-12-01/batch/_meta.json | 4 +- .../batch/mgmt/2018-12-01/batch/models.go | 36 + .../batch/mgmt/2019-04-01/batch/CHANGELOG.md | 11 + .../batch/mgmt/2019-04-01/batch/_meta.json | 4 +- .../batch/mgmt/2019-04-01/batch/models.go | 42 + .../batch/mgmt/2019-08-01/batch/CHANGELOG.md | 11 + .../batch/mgmt/2019-08-01/batch/_meta.json | 4 +- .../batch/mgmt/2019-08-01/batch/models.go | 42 + .../batch/mgmt/2020-03-01/batch/CHANGELOG.md | 13 + .../batch/mgmt/2020-03-01/batch/_meta.json | 4 +- .../batch/mgmt/2020-03-01/batch/models.go | 54 + .../batch/mgmt/2020-05-01/batch/CHANGELOG.md | 13 + .../batch/mgmt/2020-05-01/batch/_meta.json | 4 +- .../batch/mgmt/2020-05-01/batch/models.go | 54 + .../batch/mgmt/2020-09-01/batch/CHANGELOG.md | 13 + .../batch/mgmt/2020-09-01/batch/_meta.json | 4 +- .../batch/mgmt/2020-09-01/batch/models.go | 54 + .../mgmt/2018-03-01/batchai/_meta.json | 4 +- .../mgmt/2018-05-01/batchai/CHANGELOG.md | 25 + .../mgmt/2018-05-01/batchai/_meta.json | 4 +- .../batchai/mgmt/2018-05-01/batchai/models.go | 126 + services/cdn/mgmt/2015-06-01/cdn/CHANGELOG.md | 5 + services/cdn/mgmt/2015-06-01/cdn/_meta.json | 4 +- services/cdn/mgmt/2015-06-01/cdn/models.go | 6 + services/cdn/mgmt/2016-04-02/cdn/CHANGELOG.md | 5 + services/cdn/mgmt/2016-04-02/cdn/_meta.json | 4 +- services/cdn/mgmt/2016-04-02/cdn/models.go | 6 + services/cdn/mgmt/2016-10-02/cdn/CHANGELOG.md | 5 + services/cdn/mgmt/2016-10-02/cdn/_meta.json | 4 +- services/cdn/mgmt/2016-10-02/cdn/models.go | 6 + services/cdn/mgmt/2017-04-02/cdn/CHANGELOG.md | 15 + services/cdn/mgmt/2017-04-02/cdn/_meta.json | 4 +- services/cdn/mgmt/2017-04-02/cdn/models.go | 66 + services/cdn/mgmt/2017-10-12/cdn/CHANGELOG.md | 15 + services/cdn/mgmt/2017-10-12/cdn/_meta.json | 4 +- services/cdn/mgmt/2017-10-12/cdn/models.go | 66 + services/cdn/mgmt/2019-04-15/cdn/CHANGELOG.md | 15 + services/cdn/mgmt/2019-04-15/cdn/_meta.json | 4 +- services/cdn/mgmt/2019-04-15/cdn/models.go | 66 + services/cdn/mgmt/2019-06-15/cdn/CHANGELOG.md | 18 + services/cdn/mgmt/2019-06-15/cdn/_meta.json | 4 +- services/cdn/mgmt/2019-06-15/cdn/models.go | 84 + services/cdn/mgmt/2020-04-15/cdn/CHANGELOG.md | 18 + services/cdn/mgmt/2020-04-15/cdn/_meta.json | 4 +- services/cdn/mgmt/2020-04-15/cdn/models.go | 84 + services/cdn/mgmt/2020-09-01/cdn/CHANGELOG.md | 22 + services/cdn/mgmt/2020-09-01/cdn/_meta.json | 4 +- services/cdn/mgmt/2020-09-01/cdn/models.go | 108 + .../2021-04-01/changeanalysis/CHANGELOG.md | 9 + .../mgmt/2021-04-01/changeanalysis/_meta.json | 4 +- .../mgmt/2021-04-01/changeanalysis/models.go | 30 + .../2017-04-18/cognitiveservices/CHANGELOG.md | 14 + .../2017-04-18/cognitiveservices/_meta.json | 4 +- .../2017-04-18/cognitiveservices/models.go | 60 + .../cognitiveservices}/CHANGELOG.md | 0 .../2021-04-30/cognitiveservices/_meta.json | 11 + .../2021-04-30/cognitiveservices/accounts.go | 1042 + .../2021-04-30/cognitiveservices/client.go | 217 + .../cognitiveservicesapi/interfaces.go | 81 + .../cognitiveservices/deletedaccounts.go | 336 + .../2021-04-30/cognitiveservices/enums.go | 292 + .../2021-04-30/cognitiveservices/models.go | 1674 ++ .../cognitiveservices/operations.go | 140 + .../privateendpointconnections.go | 413 + .../cognitiveservices/privatelinkresources.go | 123 + .../cognitiveservices/resourceskus.go | 151 + .../2021-04-30/cognitiveservices/version.go | 19 + .../v1.0/autosuggest/_meta.json | 4 +- .../v1.0/contentmoderator/_meta.json | 4 +- .../v1.0/customimagesearch/_meta.json | 4 +- .../v1.0/customsearch/CHANGELOG.md | 5 + .../v1.0/customsearch/_meta.json | 4 +- .../v1.0/customsearch/models.go | 6 + .../v1.0/entitysearch/_meta.json | 4 +- .../cognitiveservices/v1.0/face/_meta.json | 4 +- .../v1.0/imagesearch/CHANGELOG.md | 11 + .../v1.0/imagesearch/_meta.json | 4 +- .../v1.0/imagesearch/models.go | 42 + .../v1.0/localsearch/_meta.json | 4 +- .../v1.0/newssearch/_meta.json | 4 +- .../v1.0/spellcheck/_meta.json | 4 +- .../v1.0/videosearch/CHANGELOG.md | 5 + .../v1.0/videosearch/_meta.json | 4 +- .../v1.0/videosearch/models.go | 6 + .../v1.0/websearch/CHANGELOG.md | 6 + .../v1.0/websearch/_meta.json | 4 +- .../v1.0/websearch/models.go | 12 + .../v1.1/customvision/prediction/CHANGELOG.md | 6 + .../v1.1/customvision/prediction/_meta.json | 4 +- .../v1.1/customvision/prediction/models.go | 13 + .../v1.2/customvision/training/CHANGELOG.md | 20 + .../v1.2/customvision/training/_meta.json | 4 +- .../v1.2/customvision/training/models.go | 96 + .../v2.0/computervision/CHANGELOG.md | 6 + .../v2.0/computervision/_meta.json | 4 +- .../v2.0/computervision/models.go | 12 + .../v2.0/luis/authoring/_meta.json | 4 +- .../v2.0/luis/runtime/_meta.json | 4 +- .../v2.0/textanalytics/CHANGELOG.md | 12 + .../v2.0/textanalytics/_meta.json | 4 +- .../v2.0/textanalytics/models.go | 48 + .../v2.1/computervision/CHANGELOG.md | 6 + .../v2.1/computervision/_meta.json | 4 +- .../v2.1/computervision/models.go | 12 + .../v2.1/customvision/training/CHANGELOG.md | 20 + .../v2.1/customvision/training/_meta.json | 4 +- .../v2.1/customvision/training/models.go | 96 + .../v2.1/textanalytics/CHANGELOG.md | 8 + .../v2.1/textanalytics/_meta.json | 4 +- .../v2.1/textanalytics/models.go | 24 + .../v2.2/customvision/training/CHANGELOG.md | 20 + .../v2.2/customvision/training/_meta.json | 4 +- .../v2.2/customvision/training/models.go | 96 + .../v3.0/computervision/CHANGELOG.md | 6 + .../v3.0/computervision/_meta.json | 4 +- .../v3.0/computervision/models.go | 12 + .../v3.0/customvision/prediction/CHANGELOG.md | 6 + .../v3.0/customvision/prediction/_meta.json | 4 +- .../v3.0/customvision/prediction/models.go | 13 + .../v3.0/customvision/training/CHANGELOG.md | 20 + .../v3.0/customvision/training/_meta.json | 4 +- .../v3.0/customvision/training/models.go | 96 + .../v3.0/luis/runtime/_meta.json | 4 +- .../v3.0/translatortext/_meta.json | 4 +- .../v3.1/computervision/CHANGELOG.md | 6 + .../v3.1/computervision/_meta.json | 4 +- .../v3.1/computervision/models.go | 12 + .../v3.1/customvision/prediction/CHANGELOG.md | 6 + .../v3.1/customvision/prediction/_meta.json | 4 +- .../v3.1/customvision/prediction/models.go | 13 + .../v3.1/customvision/training/CHANGELOG.md | 20 + .../v3.1/customvision/training/_meta.json | 4 +- .../v3.1/customvision/training/models.go | 96 + .../v3.2/customvision/training/CHANGELOG.md | 21 + .../v3.2/customvision/training/_meta.json | 4 +- .../v3.2/customvision/training/models.go | 102 + .../v3.3/customvision/training/CHANGELOG.md | 21 + .../v3.3/customvision/training/_meta.json | 4 +- .../v3.3/customvision/training/models.go | 102 + .../v4.0/qnamaker/_meta.json | 4 +- .../v4.0/qnamakerruntime/_meta.json | 4 +- .../2020-08-20/communication/CHANGELOG.md | 11 + .../mgmt/2020-08-20/communication/_meta.json | 4 +- .../mgmt/2020-08-20/communication/models.go | 42 + .../mgmt/2015-06-15/compute/CHANGELOG.md | 12 + .../mgmt/2015-06-15/compute/_meta.json | 4 +- .../compute/mgmt/2015-06-15/compute/models.go | 48 + .../mgmt/2016-03-30/compute/CHANGELOG.md | 12 + .../mgmt/2016-03-30/compute/_meta.json | 4 +- .../compute/mgmt/2016-03-30/compute/models.go | 48 + .../mgmt/2017-03-30/compute/CHANGELOG.md | 23 + .../mgmt/2017-03-30/compute/_meta.json | 4 +- .../compute/mgmt/2017-03-30/compute/models.go | 114 + .../compute/mgmt/2017-09-01/skus/CHANGELOG.md | 11 + .../compute/mgmt/2017-09-01/skus/_meta.json | 4 +- .../compute/mgmt/2017-09-01/skus/models.go | 43 + .../mgmt/2017-12-01/compute/CHANGELOG.md | 34 + .../mgmt/2017-12-01/compute/_meta.json | 4 +- .../compute/mgmt/2017-12-01/compute/models.go | 180 + .../mgmt/2018-04-01/compute/CHANGELOG.md | 26 + .../mgmt/2018-04-01/compute/_meta.json | 4 +- .../compute/mgmt/2018-04-01/compute/models.go | 132 + .../mgmt/2018-06-01/compute/CHANGELOG.md | 42 + .../mgmt/2018-06-01/compute/_meta.json | 4 +- .../compute/mgmt/2018-06-01/compute/models.go | 228 + .../mgmt/2018-10-01/compute/CHANGELOG.md | 42 + .../mgmt/2018-10-01/compute/_meta.json | 4 +- .../compute/mgmt/2018-10-01/compute/models.go | 228 + .../mgmt/2019-03-01/compute/CHANGELOG.md | 43 + .../mgmt/2019-03-01/compute/_meta.json | 4 +- .../compute/mgmt/2019-03-01/compute/models.go | 234 + .../mgmt/2019-07-01/compute/CHANGELOG.md | 39 + .../mgmt/2019-07-01/compute/_meta.json | 4 +- .../compute/mgmt/2019-07-01/compute/models.go | 210 + .../mgmt/2019-12-01/compute/CHANGELOG.md | 41 + .../mgmt/2019-12-01/compute/_meta.json | 4 +- .../compute/mgmt/2019-12-01/compute/models.go | 222 + .../mgmt/2020-06-01/compute/CHANGELOG.md | 48 + .../mgmt/2020-06-01/compute/_meta.json | 4 +- .../compute/mgmt/2020-06-01/compute/models.go | 264 + .../mgmt/2020-06-30/compute/CHANGELOG.md | 48 + .../mgmt/2020-06-30/compute/_meta.json | 4 +- .../compute/mgmt/2020-06-30/compute/models.go | 264 + .../mgmt/2020-12-01/compute/CHANGELOG.md | 51 + .../mgmt/2020-12-01/compute/_meta.json | 4 +- .../compute/mgmt/2020-12-01/compute/models.go | 282 + .../mgmt/2021-03-01/compute/CHANGELOG.md | 922 + .../mgmt/2021-03-01/compute/_meta.json | 8 +- .../2021-03-01/compute/availabilitysets.go | 14 +- .../compute/cloudserviceroleinstances.go | 4 +- .../compute/computeapi/interfaces.go | 61 +- .../2021-03-01/compute/dedicatedhostgroups.go | 17 +- .../mgmt/2021-03-01/compute/dedicatedhosts.go | 13 +- .../compute/mgmt/2021-03-01/compute/enums.go | 1438 +- .../mgmt/2021-03-01/compute/galleries.go | 22 +- .../2021-03-01/compute/galleryapplications.go | 10 +- .../compute/galleryapplicationversions.go | 10 +- .../mgmt/2021-03-01/compute/galleryimages.go | 26 +- .../compute/galleryimageversions.go | 40 +- .../compute/gallerysharingprofile.go | 113 + .../compute/mgmt/2021-03-01/compute/images.go | 12 +- .../mgmt/2021-03-01/compute/loganalytics.go | 4 +- .../compute/mgmt/2021-03-01/compute/models.go | 3016 +- .../mgmt/2021-03-01/compute/operations.go | 2 +- .../compute/proximityplacementgroups.go | 12 +- .../compute/restorepointcollections.go | 581 + .../mgmt/2021-03-01/compute/restorepoints.go | 297 + .../2021-03-01/compute/sharedgalleries.go | 227 + .../2021-03-01/compute/sharedgalleryimages.go | 233 + .../compute/sharedgalleryimageversions.go | 240 + .../mgmt/2021-03-01/compute/sshpublickeys.go | 14 +- .../compute/mgmt/2021-03-01/compute/usage.go | 2 +- .../compute/virtualmachineextensionimages.go | 6 +- .../compute/virtualmachineextensions.go | 10 +- .../compute/virtualmachineimages.go | 10 +- .../compute/virtualmachineimagesedgezone.go | 10 +- .../compute/virtualmachineruncommands.go | 14 +- .../2021-03-01/compute/virtualmachines.go | 61 +- .../virtualmachinescalesetextensions.go | 10 +- .../virtualmachinescalesetrollingupgrades.go | 8 +- .../compute/virtualmachinescalesets.go | 65 +- .../virtualmachinescalesetvmextensions.go | 10 +- .../virtualmachinescalesetvmruncommands.go | 10 +- .../compute/virtualmachinescalesetvms.go | 35 +- .../2021-03-01/compute/virtualmachinesizes.go | 5 +- .../mgmt/2020-03-01/confluent/CHANGELOG.md | 6 + .../mgmt/2020-03-01/confluent/_meta.json | 4 +- .../mgmt/2020-03-01/confluent/models.go | 12 + .../mgmt/2017-11-30/consumption/CHANGELOG.md | 14 + .../mgmt/2017-11-30/consumption/_meta.json | 4 +- .../mgmt/2017-11-30/consumption/models.go | 60 + .../mgmt/2018-01-31/consumption/CHANGELOG.md | 20 + .../mgmt/2018-01-31/consumption/_meta.json | 4 +- .../mgmt/2018-01-31/consumption/models.go | 96 + .../mgmt/2018-03-31/consumption/CHANGELOG.md | 25 + .../mgmt/2018-03-31/consumption/_meta.json | 4 +- .../mgmt/2018-03-31/consumption/models.go | 126 + .../mgmt/2018-05-31/consumption/CHANGELOG.md | 13 + .../mgmt/2018-05-31/consumption/_meta.json | 4 +- .../mgmt/2018-05-31/consumption/models.go | 54 + .../mgmt/2018-06-30/consumption/CHANGELOG.md | 26 + .../mgmt/2018-06-30/consumption/_meta.json | 4 +- .../mgmt/2018-06-30/consumption/models.go | 132 + .../mgmt/2018-08-31/consumption/CHANGELOG.md | 28 + .../mgmt/2018-08-31/consumption/_meta.json | 4 +- .../mgmt/2018-08-31/consumption/models.go | 144 + .../mgmt/2018-10-01/consumption/CHANGELOG.md | 30 + .../mgmt/2018-10-01/consumption/_meta.json | 4 +- .../mgmt/2018-10-01/consumption/models.go | 156 + .../mgmt/2019-01-01/consumption/CHANGELOG.md | 28 + .../mgmt/2019-01-01/consumption/_meta.json | 4 +- .../mgmt/2019-01-01/consumption/models.go | 144 + .../mgmt/2019-10-01/consumption/CHANGELOG.md | 47 + .../mgmt/2019-10-01/consumption/_meta.json | 4 +- .../mgmt/2019-10-01/consumption/models.go | 258 + .../2018-04-01/containerinstance/CHANGELOG.md | 14 + .../2018-04-01/containerinstance/_meta.json | 4 +- .../2018-04-01/containerinstance/models.go | 60 + .../2018-06-01/containerinstance/CHANGELOG.md | 9 + .../2018-06-01/containerinstance/_meta.json | 4 +- .../2018-06-01/containerinstance/models.go | 30 + .../2018-09-01/containerinstance/CHANGELOG.md | 9 + .../2018-09-01/containerinstance/_meta.json | 4 +- .../2018-09-01/containerinstance/models.go | 30 + .../2018-10-01/containerinstance/CHANGELOG.md | 12 + .../2018-10-01/containerinstance/_meta.json | 4 +- .../2018-10-01/containerinstance/models.go | 48 + .../2019-12-01/containerinstance/CHANGELOG.md | 15 + .../2019-12-01/containerinstance/_meta.json | 4 +- .../2019-12-01/containerinstance/models.go | 66 + .../2020-11-01/containerinstance/CHANGELOG.md | 15 + .../2020-11-01/containerinstance/_meta.json | 4 +- .../2020-11-01/containerinstance/models.go | 66 + .../2017-03-01/containerregistry/_meta.json | 4 +- .../2017-10-01/containerregistry/CHANGELOG.md | 6 + .../2017-10-01/containerregistry/_meta.json | 4 +- .../2017-10-01/containerregistry/models.go | 12 + .../2018-09-01/containerregistry/CHANGELOG.md | 7 + .../2018-09-01/containerregistry/_meta.json | 4 +- .../2018-09-01/containerregistry/models.go | 18 + .../2019-04-01/containerregistry/CHANGELOG.md | 7 + .../2019-04-01/containerregistry/_meta.json | 4 +- .../2019-04-01/containerregistry/models.go | 18 + .../2019-05-01/containerregistry/CHANGELOG.md | 7 + .../2019-05-01/containerregistry/_meta.json | 4 +- .../2019-05-01/containerregistry/models.go | 18 + .../2016-03-30/containerservice/_meta.json | 4 +- .../2016-09-30/containerservice/_meta.json | 4 +- .../2017-01-31/containerservice/_meta.json | 4 +- .../2017-07-01/containerservice/_meta.json | 4 +- .../2017-08-31/containerservice/_meta.json | 4 +- .../2017-09-30/containerservice/_meta.json | 4 +- .../2018-03-31/containerservice/CHANGELOG.md | 8 + .../2018-03-31/containerservice/_meta.json | 4 +- .../2018-03-31/containerservice/models.go | 24 + .../2019-04-30/containerservice/CHANGELOG.md | 9 + .../2019-04-30/containerservice/_meta.json | 4 +- .../2019-04-30/containerservice/models.go | 30 + .../2019-06-01/containerservice/CHANGELOG.md | 9 + .../2019-06-01/containerservice/_meta.json | 4 +- .../2019-06-01/containerservice/models.go | 30 + .../2019-08-01/containerservice/CHANGELOG.md | 9 + .../2019-08-01/containerservice/_meta.json | 4 +- .../2019-08-01/containerservice/models.go | 30 + .../2019-10-01/containerservice/CHANGELOG.md | 9 + .../2019-10-01/containerservice/_meta.json | 4 +- .../2019-10-01/containerservice/models.go | 30 + .../2019-11-01/containerservice/CHANGELOG.md | 9 + .../2019-11-01/containerservice/_meta.json | 4 +- .../2019-11-01/containerservice/models.go | 30 + .../2020-01-01/containerservice/CHANGELOG.md | 9 + .../2020-01-01/containerservice/_meta.json | 4 +- .../2020-01-01/containerservice/models.go | 30 + .../2020-02-01/containerservice/CHANGELOG.md | 9 + .../2020-02-01/containerservice/_meta.json | 4 +- .../2020-02-01/containerservice/models.go | 30 + .../2020-03-01/containerservice/CHANGELOG.md | 9 + .../2020-03-01/containerservice/_meta.json | 4 +- .../2020-03-01/containerservice/models.go | 30 + .../2020-04-01/containerservice/CHANGELOG.md | 9 + .../2020-04-01/containerservice/_meta.json | 4 +- .../2020-04-01/containerservice/models.go | 30 + .../2020-06-01/containerservice/CHANGELOG.md | 10 + .../2020-06-01/containerservice/_meta.json | 4 +- .../2020-06-01/containerservice/models.go | 36 + .../2020-07-01/containerservice/CHANGELOG.md | 10 + .../2020-07-01/containerservice/_meta.json | 4 +- .../2020-07-01/containerservice/models.go | 36 + .../2020-09-01/containerservice/CHANGELOG.md | 10 + .../2020-09-01/containerservice/_meta.json | 4 +- .../2020-09-01/containerservice/models.go | 36 + .../2020-11-01/containerservice/CHANGELOG.md | 10 + .../2020-11-01/containerservice/_meta.json | 4 +- .../2020-11-01/containerservice/models.go | 36 + .../2020-12-01/containerservice/CHANGELOG.md | 10 + .../2020-12-01/containerservice/_meta.json | 4 +- .../2020-12-01/containerservice/models.go | 36 + .../2021-02-01/containerservice/CHANGELOG.md | 10 + .../2021-02-01/containerservice/_meta.json | 4 +- .../2021-02-01/containerservice/models.go | 36 + .../2021-03-01/containerservice/CHANGELOG.md | 476 +- .../2021-03-01/containerservice/_meta.json | 4 +- .../2021-03-01/containerservice/models.go | 42 + .../mgmt/2015-04-08/documentdb/CHANGELOG.md | 27 + .../mgmt/2015-04-08/documentdb/_meta.json | 4 +- .../mgmt/2015-04-08/documentdb/models.go | 138 + .../mgmt/2019-08-01/documentdb/CHANGELOG.md | 35 + .../mgmt/2019-08-01/documentdb/_meta.json | 4 +- .../mgmt/2019-08-01/documentdb/models.go | 186 + .../mgmt/2021-01-15/documentdb/CHANGELOG.md | 40 + .../mgmt/2021-01-15/documentdb/_meta.json | 4 +- .../mgmt/2021-01-15/documentdb/models.go | 216 + .../mgmt/2021-03-15/documentdb/CHANGELOG.md | 40 + .../mgmt/2021-03-15/documentdb/_meta.json | 4 +- .../mgmt/2021-03-15/documentdb/models.go | 216 + .../2018-05-31/costmanagement/CHANGELOG.md | 10 + .../mgmt/2018-05-31/costmanagement/_meta.json | 4 +- .../mgmt/2018-05-31/costmanagement/models.go | 36 + .../2019-01-01/costmanagement/CHANGELOG.md | 11 + .../mgmt/2019-01-01/costmanagement/_meta.json | 4 +- .../mgmt/2019-01-01/costmanagement/models.go | 42 + .../2019-10-01/costmanagement/CHANGELOG.md | 10 + .../mgmt/2019-10-01/costmanagement/_meta.json | 4 +- .../mgmt/2019-10-01/costmanagement/models.go | 36 + .../2020-06-01/costmanagement/CHANGELOG.md | 12 + .../mgmt/2020-06-01/costmanagement/_meta.json | 4 +- .../mgmt/2020-06-01/costmanagement/models.go | 48 + .../2017-01-01/customerinsights/CHANGELOG.md | 10 + .../2017-01-01/customerinsights/_meta.json | 4 +- .../2017-01-01/customerinsights/models.go | 36 + .../2017-04-26/customerinsights/CHANGELOG.md | 11 + .../2017-04-26/customerinsights/_meta.json | 4 +- .../2017-04-26/customerinsights/models.go | 42 + .../mgmt/2018-01-01/databox/CHANGELOG.md | 25 + .../mgmt/2018-01-01/databox/_meta.json | 4 +- .../databox/mgmt/2018-01-01/databox/models.go | 126 + .../mgmt/2019-09-01/databox/CHANGELOG.md | 29 + .../mgmt/2019-09-01/databox/_meta.json | 4 +- .../databox/mgmt/2019-09-01/databox/models.go | 150 + .../mgmt/2020-04-01/databox/CHANGELOG.md | 26 + .../mgmt/2020-04-01/databox/_meta.json | 4 +- .../databox/mgmt/2020-04-01/databox/models.go | 132 + .../mgmt/2020-11-01/databox/CHANGELOG.md | 27 + .../mgmt/2020-11-01/databox/_meta.json | 4 +- .../databox/mgmt/2020-11-01/databox/models.go | 138 + .../mgmt/2019-03-01/databoxedge/CHANGELOG.md | 23 + .../mgmt/2019-03-01/databoxedge/_meta.json | 4 +- .../mgmt/2019-03-01/databoxedge/models.go | 114 + .../mgmt/2019-07-01/databoxedge/CHANGELOG.md | 25 + .../mgmt/2019-07-01/databoxedge/_meta.json | 4 +- .../mgmt/2019-07-01/databoxedge/models.go | 126 + .../mgmt/2019-08-01/databoxedge/CHANGELOG.md | 33 + .../mgmt/2019-08-01/databoxedge/_meta.json | 4 +- .../mgmt/2019-08-01/databoxedge/models.go | 174 + .../mgmt/2020-12-01/databoxedge/CHANGELOG.md | 41 + .../mgmt/2020-12-01/databoxedge/_meta.json | 4 +- .../mgmt/2020-12-01/databoxedge/models.go | 222 + .../mgmt/2018-04-01/databricks/CHANGELOG.md | 7 + .../mgmt/2018-04-01/databricks/_meta.json | 4 +- .../mgmt/2018-04-01/databricks/models.go | 18 + .../mgmt/2016-03-30/datacatalog/_meta.json | 4 +- .../mgmt/2021-03-01/datadog/CHANGELOG.md | 96 + .../mgmt/2021-03-01/datadog/_meta.json | 8 +- .../datadog/datadogapi/interfaces.go | 2 +- .../datadog/mgmt/2021-03-01/datadog/enums.go | 132 +- .../datadog/mgmt/2021-03-01/datadog/models.go | 83 +- .../mgmt/2021-03-01/datadog/monitors.go | 32 +- .../mgmt/2018-06-01/datafactory/CHANGELOG.md | 1462 +- .../mgmt/2018-06-01/datafactory/_meta.json | 6 +- .../mgmt/2018-06-01/datafactory/enums.go | 143 +- .../mgmt/2018-06-01/datafactory/models.go | 2401 +- .../2016-11-01-preview/catalog/CHANGELOG.md | 5 + .../2016-11-01-preview/catalog/_meta.json | 4 +- .../2016-11-01-preview/catalog/models.go | 6 + .../analytics/2016-11-01/job/CHANGELOG.md | 17 + .../analytics/2016-11-01/job/_meta.json | 4 +- .../analytics/2016-11-01/job/models.go | 78 + .../mgmt/2016-11-01/account/CHANGELOG.md | 25 + .../mgmt/2016-11-01/account/_meta.json | 4 +- .../mgmt/2016-11-01/account/models.go | 126 + .../store/2016-11-01/filesystem/CHANGELOG.md | 12 + .../store/2016-11-01/filesystem/_meta.json | 4 +- .../store/2016-11-01/filesystem/models.go | 48 + .../mgmt/2016-11-01/account/CHANGELOG.md | 20 + .../store/mgmt/2016-11-01/account/_meta.json | 4 +- .../store/mgmt/2016-11-01/account/models.go | 96 + .../2018-04-19/datamigration/CHANGELOG.md | 40 + .../mgmt/2018-04-19/datamigration/_meta.json | 4 +- .../mgmt/2018-04-19/datamigration/models.go | 216 + .../2021-01-01/dataprotection/CHANGELOG.md | 7 + .../mgmt/2021-01-01/dataprotection/_meta.json | 4 +- .../mgmt/2021-01-01/dataprotection/models.go | 18 + .../mgmt/2019-11-01/datashare/CHANGELOG.md | 9 + .../mgmt/2019-11-01/datashare/_meta.json | 4 +- .../mgmt/2019-11-01/datashare/models.go | 30 + .../2021-03-15/delegatednetwork/CHANGELOG.md | 59 + .../2021-03-15/delegatednetwork/_meta.json | 8 +- .../2021-03-15/delegatednetwork/controller.go | 2 +- .../delegatedsubnetservice.go | 1 - .../mgmt/2021-03-15/delegatednetwork/enums.go | 48 +- .../2021-03-15/delegatednetwork/models.go | 282 +- .../orchestratorinstanceservice.go | 4 +- .../mgmt/2019-04-01/devspaces/CHANGELOG.md | 6 + .../mgmt/2019-04-01/devspaces/_meta.json | 4 +- .../mgmt/2019-04-01/devspaces/models.go | 12 + .../mgmt/2016-05-15/dtl/CHANGELOG.md | 6 + .../mgmt/2016-05-15/dtl/_meta.json | 4 +- .../devtestlabs/mgmt/2016-05-15/dtl/models.go | 12 + .../mgmt/2018-09-15/dtl/CHANGELOG.md | 6 + .../mgmt/2018-09-15/dtl/_meta.json | 4 +- .../devtestlabs/mgmt/2018-09-15/dtl/models.go | 12 + .../mgmt/2020-10-31/digitaltwins/CHANGELOG.md | 8 + .../mgmt/2020-10-31/digitaltwins/_meta.json | 4 +- .../mgmt/2020-10-31/digitaltwins/models.go | 24 + .../mgmt/2020-12-01/digitaltwins/CHANGELOG.md | 9 + .../mgmt/2020-12-01/digitaltwins/_meta.json | 4 +- .../mgmt/2020-12-01/digitaltwins/models.go | 30 + services/dns/mgmt/2016-04-01/dns/CHANGELOG.md | 7 + services/dns/mgmt/2016-04-01/dns/_meta.json | 4 +- services/dns/mgmt/2016-04-01/dns/models.go | 18 + services/dns/mgmt/2017-09-01/dns/CHANGELOG.md | 8 + services/dns/mgmt/2017-09-01/dns/_meta.json | 4 +- services/dns/mgmt/2017-09-01/dns/models.go | 24 + services/dns/mgmt/2017-10-01/dns/CHANGELOG.md | 8 + services/dns/mgmt/2017-10-01/dns/_meta.json | 4 +- services/dns/mgmt/2017-10-01/dns/models.go | 24 + services/dns/mgmt/2018-05-01/dns/_meta.json | 4 +- .../mgmt/2017-01-01/aad/CHANGELOG.md | 6 + .../mgmt/2017-01-01/aad/_meta.json | 4 +- .../mgmt/2017-01-01/aad/models.go | 12 + .../mgmt/2017-06-01/aad/CHANGELOG.md | 8 + .../mgmt/2017-06-01/aad/_meta.json | 4 +- .../mgmt/2017-06-01/aad/models.go | 24 + .../mgmt/2020-01-01/aad/CHANGELOG.md | 6 + .../mgmt/2020-01-01/aad/_meta.json | 4 +- .../mgmt/2020-01-01/aad/models.go | 12 + .../2018-01-01/eventgrid/CHANGELOG.md | 17 + .../eventgrid/2018-01-01/eventgrid/_meta.json | 4 +- .../eventgrid/2018-01-01/eventgrid/models.go | 78 + .../mgmt/2018-01-01/eventgrid/CHANGELOG.md | 6 + .../mgmt/2018-01-01/eventgrid/_meta.json | 4 +- .../mgmt/2018-01-01/eventgrid/models.go | 12 + .../mgmt/2019-01-01/eventgrid/CHANGELOG.md | 6 + .../mgmt/2019-01-01/eventgrid/_meta.json | 4 +- .../mgmt/2019-01-01/eventgrid/models.go | 12 + .../mgmt/2019-06-01/eventgrid/CHANGELOG.md | 7 + .../mgmt/2019-06-01/eventgrid/_meta.json | 4 +- .../mgmt/2019-06-01/eventgrid/models.go | 18 + .../mgmt/2020-06-01/eventgrid/CHANGELOG.md | 5 + .../mgmt/2020-06-01/eventgrid/_meta.json | 4 +- .../mgmt/2020-06-01/eventgrid/models.go | 6 + .../mgmt/2015-08-01/eventhub/CHANGELOG.md | 7 + .../mgmt/2015-08-01/eventhub/_meta.json | 4 +- .../mgmt/2015-08-01/eventhub/models.go | 18 + .../mgmt/2017-04-01/eventhub/CHANGELOG.md | 10 + .../mgmt/2017-04-01/eventhub/_meta.json | 4 +- .../mgmt/2017-04-01/eventhub/models.go | 36 + .../mgmt/2019-04-01/frontdoor/CHANGELOG.md | 10 + .../mgmt/2019-04-01/frontdoor/_meta.json | 4 +- .../mgmt/2019-04-01/frontdoor/models.go | 36 + .../mgmt/2019-05-01/frontdoor/CHANGELOG.md | 10 + .../mgmt/2019-05-01/frontdoor/_meta.json | 4 +- .../mgmt/2019-05-01/frontdoor/models.go | 36 + .../mgmt/2019-10-01/frontdoor/CHANGELOG.md | 10 + .../mgmt/2019-10-01/frontdoor/_meta.json | 4 +- .../mgmt/2019-10-01/frontdoor/models.go | 36 + .../mgmt/2019-11-01/frontdoor/CHANGELOG.md | 11 + .../mgmt/2019-11-01/frontdoor/_meta.json | 4 +- .../mgmt/2019-11-01/frontdoor/models.go | 42 + .../mgmt/2020-01-01/frontdoor/CHANGELOG.md | 11 + .../mgmt/2020-01-01/frontdoor/_meta.json | 4 +- .../mgmt/2020-01-01/frontdoor/models.go | 42 + .../mgmt/2020-04-01/frontdoor/CHANGELOG.md | 11 + .../mgmt/2020-04-01/frontdoor/_meta.json | 4 +- .../mgmt/2020-04-01/frontdoor/models.go | 42 + .../mgmt/2020-05-01/frontdoor/CHANGELOG.md | 11 + .../mgmt/2020-05-01/frontdoor/_meta.json | 4 +- .../mgmt/2020-05-01/frontdoor/models.go | 42 + services/graphrbac/1.6/graphrbac/_meta.json | 4 +- .../guestconfiguration/CHANGELOG.md | 7 + .../2020-06-25/guestconfiguration/_meta.json | 4 +- .../2020-06-25/guestconfiguration/models.go | 18 + .../mgmt/2018-06-01/hdinsight/CHANGELOG.md | 175 +- .../mgmt/2018-06-01/hdinsight/_meta.json | 4 +- .../mgmt/2018-06-01/hdinsight/models.go | 36 + .../mgmt/2020-12-08/healthbot/CHANGELOG.md | 9 + .../mgmt/2020-12-08/healthbot/_meta.json | 4 +- .../mgmt/2020-12-08/healthbot/models.go | 30 + .../2019-09-16/healthcareapis/CHANGELOG.md | 6 + .../mgmt/2019-09-16/healthcareapis/_meta.json | 4 +- .../mgmt/2019-09-16/healthcareapis/models.go | 12 + .../2020-03-15/healthcareapis/CHANGELOG.md | 6 + .../mgmt/2020-03-15/healthcareapis/_meta.json | 4 +- .../mgmt/2020-03-15/healthcareapis/models.go | 12 + .../2020-03-30/healthcareapis/CHANGELOG.md | 10 + .../mgmt/2020-03-30/healthcareapis/_meta.json | 4 +- .../mgmt/2020-03-30/healthcareapis/models.go | 36 + .../2019-12-12/hybridcompute/CHANGELOG.md | 14 + .../mgmt/2019-12-12/hybridcompute/_meta.json | 4 +- .../mgmt/2019-12-12/hybridcompute/models.go | 60 + .../2020-08-02/hybridcompute/CHANGELOG.md | 13 + .../mgmt/2020-08-02/hybridcompute/_meta.json | 4 +- .../mgmt/2020-08-02/hybridcompute/models.go | 54 + .../mgmt/2016-06-01/hybriddata/CHANGELOG.md | 5 + .../mgmt/2016-06-01/hybriddata/_meta.json | 4 +- .../mgmt/2016-06-01/hybriddata/models.go | 6 + .../mgmt/2019-06-01/hybriddata/CHANGELOG.md | 5 + .../mgmt/2019-06-01/hybriddata/_meta.json | 4 +- .../mgmt/2019-06-01/hybriddata/models.go | 6 + .../2021-03-01/hybridkubernetes/CHANGELOG.md | 10 + .../2021-03-01/hybridkubernetes/_meta.json | 4 +- .../2021-03-01/hybridkubernetes/models.go | 36 + .../mgmt/2018-09-01/iotcentral/CHANGELOG.md | 8 + .../mgmt/2018-09-01/iotcentral/_meta.json | 4 +- .../mgmt/2018-09-01/iotcentral/models.go | 24 + .../mgmt/2016-02-03/devices/CHANGELOG.md | 9 + .../iothub/mgmt/2016-02-03/devices/_meta.json | 4 +- .../iothub/mgmt/2016-02-03/devices/models.go | 30 + .../mgmt/2017-01-19/devices/CHANGELOG.md | 9 + .../iothub/mgmt/2017-01-19/devices/_meta.json | 4 +- .../iothub/mgmt/2017-01-19/devices/models.go | 30 + .../mgmt/2017-07-01/devices/CHANGELOG.md | 13 + .../iothub/mgmt/2017-07-01/devices/_meta.json | 4 +- .../iothub/mgmt/2017-07-01/devices/models.go | 54 + .../mgmt/2018-01-22/devices/CHANGELOG.md | 13 + .../iothub/mgmt/2018-01-22/devices/_meta.json | 4 +- .../iothub/mgmt/2018-01-22/devices/models.go | 54 + .../mgmt/2018-04-01/devices/CHANGELOG.md | 12 + .../iothub/mgmt/2018-04-01/devices/_meta.json | 4 +- .../iothub/mgmt/2018-04-01/devices/models.go | 48 + .../mgmt/2020-03-01/devices/CHANGELOG.md | 13 + .../iothub/mgmt/2020-03-01/devices/_meta.json | 4 +- .../iothub/mgmt/2020-03-01/devices/models.go | 54 + .../keyvault/2015-06-01/keyvault/CHANGELOG.md | 14 + .../keyvault/2015-06-01/keyvault/_meta.json | 4 +- .../keyvault/2015-06-01/keyvault/models.go | 60 + .../keyvault/2016-10-01/keyvault/CHANGELOG.md | 20 + .../keyvault/2016-10-01/keyvault/_meta.json | 4 +- .../keyvault/2016-10-01/keyvault/models.go | 96 + .../mgmt/2015-06-01/keyvault/_meta.json | 4 +- .../mgmt/2016-10-01/keyvault/CHANGELOG.md | 5 + .../mgmt/2016-10-01/keyvault/_meta.json | 4 +- .../mgmt/2016-10-01/keyvault/models.go | 6 + .../mgmt/2018-02-14/keyvault/CHANGELOG.md | 6 + .../mgmt/2018-02-14/keyvault/_meta.json | 4 +- .../mgmt/2018-02-14/keyvault/models.go | 12 + .../mgmt/2019-09-01/keyvault/CHANGELOG.md | 6 + .../mgmt/2019-09-01/keyvault/_meta.json | 4 +- .../mgmt/2019-09-01/keyvault/models.go | 12 + services/keyvault/v7.0/keyvault/CHANGELOG.md | 24 + services/keyvault/v7.0/keyvault/_meta.json | 4 +- services/keyvault/v7.0/keyvault/models.go | 120 + services/keyvault/v7.1/keyvault/CHANGELOG.md | 24 + services/keyvault/v7.1/keyvault/_meta.json | 4 +- services/keyvault/v7.1/keyvault/models.go | 120 + .../kubernetesconfiguration/CHANGELOG.md | 8 + .../kubernetesconfiguration/_meta.json | 4 +- .../kubernetesconfiguration/models.go | 24 + .../kusto/mgmt/2019-01-21/kusto/CHANGELOG.md | 7 + .../kusto/mgmt/2019-01-21/kusto/_meta.json | 4 +- .../kusto/mgmt/2019-01-21/kusto/models.go | 18 + .../kusto/mgmt/2019-05-15/kusto/CHANGELOG.md | 9 + .../kusto/mgmt/2019-05-15/kusto/_meta.json | 4 +- .../kusto/mgmt/2019-05-15/kusto/models.go | 30 + .../kusto/mgmt/2019-09-07/kusto/CHANGELOG.md | 10 + .../kusto/mgmt/2019-09-07/kusto/_meta.json | 4 +- .../kusto/mgmt/2019-09-07/kusto/models.go | 36 + .../kusto/mgmt/2019-11-09/kusto/CHANGELOG.md | 10 + .../kusto/mgmt/2019-11-09/kusto/_meta.json | 4 +- .../kusto/mgmt/2019-11-09/kusto/models.go | 36 + .../kusto/mgmt/2020-02-15/kusto/CHANGELOG.md | 10 + .../kusto/mgmt/2020-02-15/kusto/_meta.json | 4 +- .../kusto/mgmt/2020-02-15/kusto/models.go | 36 + .../kusto/mgmt/2020-06-14/kusto/CHANGELOG.md | 10 + .../kusto/mgmt/2020-06-14/kusto/_meta.json | 4 +- .../kusto/mgmt/2020-06-14/kusto/models.go | 36 + .../kusto/mgmt/2020-09-18/kusto/CHANGELOG.md | 10 + .../kusto/mgmt/2020-09-18/kusto/_meta.json | 4 +- .../kusto/mgmt/2020-09-18/kusto/models.go | 36 + .../kusto/mgmt/2021-01-01/kusto/CHANGELOG.md | 165 +- .../kusto/mgmt/2021-01-01/kusto/_meta.json | 4 +- services/kusto/mgmt/2021-01-01/kusto/enums.go | 14 +- .../kusto/mgmt/2021-01-01/kusto/models.go | 52 +- .../mgmt/2018-10-15/labservices/CHANGELOG.md | 13 + .../mgmt/2018-10-15/labservices/_meta.json | 4 +- .../mgmt/2018-10-15/labservices/models.go | 54 + .../logic/mgmt/2016-06-01/logic/CHANGELOG.md | 8 + .../logic/mgmt/2016-06-01/logic/_meta.json | 4 +- .../logic/mgmt/2016-06-01/logic/models.go | 24 + .../logic/mgmt/2019-05-01/logic/CHANGELOG.md | 6 + .../logic/mgmt/2019-05-01/logic/_meta.json | 4 +- .../logic/mgmt/2019-05-01/logic/models.go | 12 + .../mgmt/2016-04-01/workspaces/_meta.json | 4 +- .../mgmt/2017-01-01/webservices/CHANGELOG.md | 8 + .../mgmt/2017-01-01/webservices/_meta.json | 4 +- .../mgmt/2017-01-01/webservices/models.go | 24 + .../mgmt/2019-10-01/workspaces/_meta.json | 4 +- .../machinelearningservices/CHANGELOG.md | 15 + .../machinelearningservices/_meta.json | 4 +- .../machinelearningservices/models.go | 66 + .../machinelearningservices/CHANGELOG.md | 15 + .../machinelearningservices/_meta.json | 4 +- .../machinelearningservices/models.go | 66 + .../machinelearningservices/CHANGELOG.md | 19 + .../machinelearningservices/_meta.json | 4 +- .../machinelearningservices/models.go | 90 + .../machinelearningservices/CHANGELOG.md | 22 + .../machinelearningservices/_meta.json | 4 +- .../machinelearningservices/models.go | 108 + .../machinelearningservices/CHANGELOG.md | 23 + .../machinelearningservices/_meta.json | 4 +- .../machinelearningservices/models.go | 114 + .../machinelearningservices/CHANGELOG.md | 22 + .../machinelearningservices/_meta.json | 4 +- .../machinelearningservices/models.go | 108 + .../machinelearningservices/CHANGELOG.md | 23 + .../machinelearningservices/_meta.json | 4 +- .../machinelearningservices/models.go | 114 + .../mgmt/2020-04-01/maintenance/CHANGELOG.md | 5 + .../mgmt/2020-04-01/maintenance/_meta.json | 4 +- .../mgmt/2020-04-01/maintenance/models.go | 6 + .../mgmt/2021-05-01/maintenance/CHANGELOG.md | 5 + .../mgmt/2021-05-01/maintenance/_meta.json | 4 +- .../mgmt/2021-05-01/maintenance/models.go | 6 + .../2019-06-01/managedservices/CHANGELOG.md | 8 + .../2019-06-01/managedservices/_meta.json | 4 +- .../mgmt/2019-06-01/managedservices/models.go | 24 + .../mgmt/2017-01-01-preview/maps/CHANGELOG.md | 11 + .../mgmt/2017-01-01-preview/maps/_meta.json | 4 +- .../mgmt/2017-01-01-preview/maps/models.go | 42 + .../maps/mgmt/2018-05-01/maps/CHANGELOG.md | 11 + services/maps/mgmt/2018-05-01/maps/_meta.json | 4 +- services/maps/mgmt/2018-05-01/maps/models.go | 42 + .../maps/mgmt/2021-02-01/maps/CHANGELOG.md | 10 + services/maps/mgmt/2021-02-01/maps/_meta.json | 4 +- services/maps/mgmt/2021-02-01/maps/models.go | 36 + .../mgmt/2018-06-01/mariadb/CHANGELOG.md | 21 + .../mgmt/2018-06-01/mariadb/_meta.json | 4 +- .../mariadb/mgmt/2018-06-01/mariadb/models.go | 102 + .../mgmt/2020-01-01/mariadb/CHANGELOG.md | 21 + .../mgmt/2020-01-01/mariadb/_meta.json | 4 +- .../mariadb/mgmt/2020-01-01/mariadb/models.go | 102 + .../marketplaceordering/CHANGELOG.md | 6 + .../2015-06-01/marketplaceordering/_meta.json | 4 +- .../2015-06-01/marketplaceordering/models.go | 12 + .../mgmt/2015-10-01/media/CHANGELOG.md | 6 + .../mgmt/2015-10-01/media/_meta.json | 4 +- .../mgmt/2015-10-01/media/models.go | 12 + .../mgmt/2018-07-01/media/CHANGELOG.md | 14 + .../mgmt/2018-07-01/media/_meta.json | 4 +- .../mgmt/2018-07-01/media/models.go | 60 + .../mgmt/2020-05-01/media/CHANGELOG.md | 16 + .../mgmt/2020-05-01/media/_meta.json | 4 +- .../mgmt/2020-05-01/media/models.go | 72 + .../mgmt/2018-02-02/migrate/CHANGELOG.md | 13 + .../mgmt/2018-02-02/migrate/_meta.json | 4 +- .../migrate/mgmt/2018-02-02/migrate/models.go | 54 + .../mgmt/2020-01-01/migrate/CHANGELOG.md | 44 + .../mgmt/2020-01-01/migrate/_meta.json | 4 +- .../migrate/mgmt/2020-01-01/migrate/models.go | 240 + .../mgmt/2021-01-01/mixedreality/CHANGELOG.md | 8 + .../mgmt/2021-01-01/mixedreality/_meta.json | 4 +- .../mgmt/2021-01-01/mixedreality/models.go | 24 + .../mgmt/2020-10-01/insights/CHANGELOG.md | 5 + .../mgmt/2020-10-01/insights/_meta.json | 4 +- .../mgmt/2020-10-01/insights/models.go | 6 + services/msi/mgmt/2018-11-30/msi/CHANGELOG.md | 9 + services/msi/mgmt/2018-11-30/msi/_meta.json | 4 +- services/msi/mgmt/2018-11-30/msi/models.go | 30 + .../mysql/mgmt/2017-12-01/mysql/CHANGELOG.md | 12 + .../mysql/mgmt/2017-12-01/mysql/_meta.json | 4 +- .../mysql/mgmt/2017-12-01/mysql/models.go | 48 + .../mysql/mgmt/2020-01-01/mysql/CHANGELOG.md | 22 + .../mysql/mgmt/2020-01-01/mysql/_meta.json | 4 +- .../mysql/mgmt/2020-01-01/mysql/models.go | 108 + .../netapp/mgmt/2019-05-01/netapp/_meta.json | 4 +- .../netapp/mgmt/2019-06-01/netapp/_meta.json | 4 +- .../netapp/mgmt/2019-07-01/netapp/_meta.json | 4 +- .../netapp/mgmt/2019-08-01/netapp/_meta.json | 4 +- .../netapp/mgmt/2019-10-01/netapp/_meta.json | 4 +- .../netapp/mgmt/2019-11-01/netapp/_meta.json | 4 +- .../mgmt/2020-02-01/netapp/CHANGELOG.md | 5 + .../netapp/mgmt/2020-02-01/netapp/_meta.json | 4 +- .../netapp/mgmt/2020-02-01/netapp/models.go | 6 + .../mgmt/2020-03-01/netapp/CHANGELOG.md | 5 + .../netapp/mgmt/2020-03-01/netapp/_meta.json | 4 +- .../netapp/mgmt/2020-03-01/netapp/models.go | 6 + .../mgmt/2020-05-01/netapp/CHANGELOG.md | 5 + .../netapp/mgmt/2020-05-01/netapp/_meta.json | 4 +- .../netapp/mgmt/2020-05-01/netapp/models.go | 6 + .../mgmt/2020-06-01/netapp/CHANGELOG.md | 5 + .../netapp/mgmt/2020-06-01/netapp/_meta.json | 4 +- .../netapp/mgmt/2020-06-01/netapp/models.go | 6 + .../mgmt/2020-07-01/netapp/CHANGELOG.md | 5 + .../netapp/mgmt/2020-07-01/netapp/_meta.json | 4 +- .../netapp/mgmt/2020-07-01/netapp/models.go | 6 + .../mgmt/2020-08-01/netapp/CHANGELOG.md | 5 + .../netapp/mgmt/2020-08-01/netapp/_meta.json | 4 +- .../netapp/mgmt/2020-08-01/netapp/models.go | 6 + .../mgmt/2020-09-01/netapp/CHANGELOG.md | 5 + .../netapp/mgmt/2020-09-01/netapp/_meta.json | 4 +- .../netapp/mgmt/2020-09-01/netapp/models.go | 6 + .../mgmt/2020-11-01/netapp/CHANGELOG.md | 5 + .../netapp/mgmt/2020-11-01/netapp/_meta.json | 4 +- .../netapp/mgmt/2020-11-01/netapp/models.go | 6 + .../mgmt/2020-12-01/netapp/CHANGELOG.md | 6 + .../netapp/mgmt/2020-12-01/netapp/_meta.json | 4 +- .../netapp/mgmt/2020-12-01/netapp/models.go | 12 + .../mgmt/2015-06-15/network/_meta.json | 4 +- .../mgmt/2016-03-30/network/_meta.json | 4 +- .../mgmt/2016-06-01/network/_meta.json | 4 +- .../mgmt/2016-09-01/network/CHANGELOG.md | 8 + .../mgmt/2016-09-01/network/_meta.json | 4 +- .../network/mgmt/2016-09-01/network/models.go | 24 + .../mgmt/2016-12-01/network/CHANGELOG.md | 8 + .../mgmt/2016-12-01/network/_meta.json | 4 +- .../network/mgmt/2016-12-01/network/models.go | 24 + .../mgmt/2017-03-01/network/CHANGELOG.md | 13 + .../mgmt/2017-03-01/network/_meta.json | 4 +- .../network/mgmt/2017-03-01/network/models.go | 54 + .../mgmt/2017-06-01/network/CHANGELOG.md | 13 + .../mgmt/2017-06-01/network/_meta.json | 4 +- .../network/mgmt/2017-06-01/network/models.go | 54 + .../mgmt/2017-08-01/network/CHANGELOG.md | 13 + .../mgmt/2017-08-01/network/_meta.json | 4 +- .../network/mgmt/2017-08-01/network/models.go | 54 + .../mgmt/2017-09-01/network/CHANGELOG.md | 14 + .../mgmt/2017-09-01/network/_meta.json | 4 +- .../network/mgmt/2017-09-01/network/models.go | 60 + .../mgmt/2017-10-01/network/CHANGELOG.md | 14 + .../mgmt/2017-10-01/network/_meta.json | 4 +- .../network/mgmt/2017-10-01/network/models.go | 60 + .../mgmt/2017-11-01/network/CHANGELOG.md | 14 + .../mgmt/2017-11-01/network/_meta.json | 4 +- .../network/mgmt/2017-11-01/network/models.go | 60 + .../mgmt/2018-01-01/network/CHANGELOG.md | 14 + .../mgmt/2018-01-01/network/_meta.json | 4 +- .../network/mgmt/2018-01-01/network/models.go | 60 + .../mgmt/2018-02-01/network/CHANGELOG.md | 15 + .../mgmt/2018-02-01/network/_meta.json | 4 +- .../network/mgmt/2018-02-01/network/models.go | 66 + .../mgmt/2018-04-01/network/CHANGELOG.md | 16 + .../mgmt/2018-04-01/network/_meta.json | 4 +- .../network/mgmt/2018-04-01/network/models.go | 72 + .../mgmt/2018-06-01/network/CHANGELOG.md | 17 + .../mgmt/2018-06-01/network/_meta.json | 4 +- .../network/mgmt/2018-06-01/network/models.go | 78 + .../mgmt/2018-07-01/network/CHANGELOG.md | 17 + .../mgmt/2018-07-01/network/_meta.json | 4 +- .../network/mgmt/2018-07-01/network/models.go | 78 + .../mgmt/2018-08-01/network/CHANGELOG.md | 21 + .../mgmt/2018-08-01/network/_meta.json | 4 +- .../network/mgmt/2018-08-01/network/models.go | 102 + .../mgmt/2018-10-01/network/CHANGELOG.md | 22 + .../mgmt/2018-10-01/network/_meta.json | 4 +- .../network/mgmt/2018-10-01/network/models.go | 108 + .../mgmt/2018-11-01/network/CHANGELOG.md | 22 + .../mgmt/2018-11-01/network/_meta.json | 4 +- .../network/mgmt/2018-11-01/network/models.go | 108 + .../mgmt/2018-12-01/network/CHANGELOG.md | 23 + .../mgmt/2018-12-01/network/_meta.json | 4 +- .../network/mgmt/2018-12-01/network/models.go | 114 + .../mgmt/2019-02-01/network/CHANGELOG.md | 22 + .../mgmt/2019-02-01/network/_meta.json | 4 +- .../network/mgmt/2019-02-01/network/models.go | 108 + .../mgmt/2019-04-01/network/CHANGELOG.md | 26 + .../mgmt/2019-04-01/network/_meta.json | 4 +- .../network/mgmt/2019-04-01/network/models.go | 132 + .../mgmt/2019-06-01/network/CHANGELOG.md | 26 + .../mgmt/2019-06-01/network/_meta.json | 4 +- .../network/mgmt/2019-06-01/network/models.go | 132 + .../mgmt/2019-07-01/network/CHANGELOG.md | 27 + .../mgmt/2019-07-01/network/_meta.json | 4 +- .../network/mgmt/2019-07-01/network/models.go | 138 + .../mgmt/2019-08-01/network/CHANGELOG.md | 27 + .../mgmt/2019-08-01/network/_meta.json | 4 +- .../network/mgmt/2019-08-01/network/models.go | 138 + .../mgmt/2019-09-01/network/CHANGELOG.md | 31 + .../mgmt/2019-09-01/network/_meta.json | 4 +- .../network/mgmt/2019-09-01/network/models.go | 162 + .../mgmt/2019-11-01/network/CHANGELOG.md | 32 + .../mgmt/2019-11-01/network/_meta.json | 4 +- .../network/mgmt/2019-11-01/network/models.go | 168 + .../mgmt/2019-12-01/network/CHANGELOG.md | 33 + .../mgmt/2019-12-01/network/_meta.json | 4 +- .../network/mgmt/2019-12-01/network/models.go | 174 + .../mgmt/2020-03-01/network/CHANGELOG.md | 33 + .../mgmt/2020-03-01/network/_meta.json | 4 +- .../network/mgmt/2020-03-01/network/models.go | 174 + .../mgmt/2020-04-01/network/CHANGELOG.md | 32 + .../mgmt/2020-04-01/network/_meta.json | 4 +- .../network/mgmt/2020-04-01/network/models.go | 168 + .../mgmt/2020-05-01/network/CHANGELOG.md | 34 + .../mgmt/2020-05-01/network/_meta.json | 4 +- .../network/mgmt/2020-05-01/network/models.go | 180 + .../mgmt/2020-06-01/network/CHANGELOG.md | 35 + .../mgmt/2020-06-01/network/_meta.json | 4 +- .../network/mgmt/2020-06-01/network/models.go | 186 + .../mgmt/2020-07-01/network/CHANGELOG.md | 36 + .../mgmt/2020-07-01/network/_meta.json | 4 +- .../network/mgmt/2020-07-01/network/models.go | 192 + .../mgmt/2020-08-01/network/CHANGELOG.md | 36 + .../mgmt/2020-08-01/network/_meta.json | 4 +- .../network/mgmt/2020-08-01/network/models.go | 192 + .../mgmt/2020-11-01/network/CHANGELOG.md | 523 +- .../mgmt/2020-11-01/network/_meta.json | 6 +- .../network/mgmt/2020-11-01/network/enums.go | 89 +- .../2020-11-01/network/inboundnatrules.go | 2 + .../2020-11-01/network/interfacesgroup.go | 6 + .../network/interfacetapconfigurations.go | 4 + .../network/mgmt/2020-11-01/network/models.go | 344 +- .../2020-11-01/network/publicipaddresses.go | 2 + .../network/virtualhubipconfiguration.go | 2 + .../2020-11-01/network/virtualnetworktaps.go | 4 + .../2014-09-01/notificationhubs/_meta.json | 4 +- .../2016-03-01/notificationhubs/_meta.json | 4 +- .../2017-04-01/notificationhubs/CHANGELOG.md | 6 + .../2017-04-01/notificationhubs/_meta.json | 4 +- .../2017-04-01/notificationhubs/models.go | 12 + .../operationalinsights/CHANGELOG.md | 5 + .../2015-03-20/operationalinsights/_meta.json | 4 +- .../2015-03-20/operationalinsights/models.go | 6 + .../operationalinsights/CHANGELOG.md | 10 + .../2020-08-01/operationalinsights/_meta.json | 4 +- .../2020-08-01/operationalinsights/models.go | 36 + .../operationalinsights/CHANGELOG.md | 12 + .../2020-10-01/operationalinsights/_meta.json | 4 +- .../2020-10-01/operationalinsights/models.go | 48 + .../v1/operationalinsights/_meta.json | 4 +- .../mgmt/2020-04-01/peering/CHANGELOG.md | 11 + .../mgmt/2020-04-01/peering/_meta.json | 4 +- .../peering/mgmt/2020-04-01/peering/models.go | 42 + .../mgmt/2020-10-01/peering/CHANGELOG.md | 12 + .../mgmt/2020-10-01/peering/_meta.json | 4 +- .../peering/mgmt/2020-10-01/peering/models.go | 48 + .../v1.0/personalizer/CHANGELOG.md | 11 + .../personalizer/v1.0/personalizer/_meta.json | 4 +- .../personalizer/v1.0/personalizer/models.go | 42 + .../2018-04-04/policyinsights/CHANGELOG.md | 5 + .../mgmt/2018-04-04/policyinsights/_meta.json | 4 +- .../mgmt/2018-04-04/policyinsights/models.go | 6 + .../mgmt/2017-12-01/postgresql/CHANGELOG.md | 12 + .../mgmt/2017-12-01/postgresql/_meta.json | 4 +- .../mgmt/2017-12-01/postgresql/models.go | 48 + .../mgmt/2020-01-01/postgresql/CHANGELOG.md | 17 + .../mgmt/2020-01-01/postgresql/_meta.json | 4 +- .../mgmt/2020-01-01/postgresql/models.go | 78 + .../2017-10-01/powerbidedicated/CHANGELOG.md | 6 + .../2017-10-01/powerbidedicated/_meta.json | 4 +- .../2017-10-01/powerbidedicated/models.go | 12 + .../2016-01-29/powerbiembedded/_meta.json | 4 +- .../addons/mgmt/2017-05-15/addons/_meta.json | 4 +- .../addons/mgmt/2018-03-01/addons/_meta.json | 4 +- .../2016-07-12-preview/advisor/_meta.json | 4 +- .../alertsmanagement/CHANGELOG.md | 5 + .../alertsmanagement/_meta.json | 4 +- .../alertsmanagement/models.go | 6 + .../alertsmanagement/CHANGELOG.md | 5 + .../alertsmanagement/_meta.json | 4 +- .../alertsmanagement/models.go | 6 + .../alertsmanagement/CHANGELOG.md | 5 + .../alertsmanagement/_meta.json | 4 +- .../alertsmanagement/models.go | 6 + .../2017-03-01/apimanagement/CHANGELOG.md | 5 + .../ctrl/2017-03-01/apimanagement/_meta.json | 4 +- .../ctrl/2017-03-01/apimanagement/models.go | 6 + .../apimanagement/CHANGELOG.md | 17 + .../apimanagement/_meta.json | 4 +- .../apimanagement/models.go | 78 + .../apimanagement/CHANGELOG.md | 19 + .../apimanagement/_meta.json | 4 +- .../apimanagement/models.go | 90 + .../appconfiguration/CHANGELOG.md | 7 + .../appconfiguration/_meta.json | 4 +- .../appconfiguration/models.go | 18 + .../appconfiguration/CHANGELOG.md | 8 + .../appconfiguration/_meta.json | 4 +- .../appconfiguration/models.go | 24 + .../appconfiguration/CHANGELOG.md | 10 + .../appconfiguration/_meta.json | 4 +- .../appconfiguration/models.go | 36 + .../appinsights/v1/insights/_meta.json | 4 +- .../appplatform/CHANGELOG.md | 9 + .../2019-05-01-preview/appplatform/_meta.json | 4 +- .../2019-05-01-preview/appplatform/models.go | 30 + .../appplatform/CHANGELOG.md | 11 + .../2020-11-01-preview/appplatform/_meta.json | 4 +- .../2020-11-01-preview/appplatform/models.go | 42 + .../authorization/_meta.json | 4 +- .../authorization/_meta.json | 4 +- .../authorization/CHANGELOG.md | 5 + .../authorization/_meta.json | 4 +- .../authorization/models.go | 6 + .../authorization/CHANGELOG.md | 5 + .../authorization/_meta.json | 4 +- .../authorization/models.go | 6 + .../authorization/CHANGELOG.md | 101 - .../automanage/CHANGELOG.md | 10 + .../2020-06-30-preview/automanage/_meta.json | 4 +- .../2020-06-30-preview/automanage/models.go | 36 + .../automation/CHANGELOG.md | 11 + .../2017-05-15-preview/automation/_meta.json | 4 +- .../2017-05-15-preview/automation/models.go | 42 + .../automation/CHANGELOG.md | 11 + .../2018-01-15-preview/automation/_meta.json | 4 +- .../2018-01-15-preview/automation/models.go | 42 + .../automation/CHANGELOG.md | 11 + .../2018-06-30-preview/automation/_meta.json | 4 +- .../2018-06-30-preview/automation/models.go | 42 + .../mgmt/2020-07-17-preview/avs/CHANGELOG.md | 27 + .../mgmt/2020-07-17-preview/avs/_meta.json | 4 +- .../avs/mgmt/2020-07-17-preview/avs/models.go | 138 + .../azureadb2c/CHANGELOG.md | 8 + .../2020-05-01-preview/azureadb2c/_meta.json | 4 +- .../2020-05-01-preview/azureadb2c/models.go | 24 + .../2017-03-01-preview/azuredata/CHANGELOG.md | 13 + .../2017-03-01-preview/azuredata/_meta.json | 4 +- .../2017-03-01-preview/azuredata/models.go | 54 + .../2019-07-24-preview/azuredata/CHANGELOG.md | 13 + .../2019-07-24-preview/azuredata/_meta.json | 4 +- .../2019-07-24-preview/azuredata/models.go | 54 + .../azurestackhci/CHANGELOG.md | 11 + .../azurestackhci/_meta.json | 4 +- .../azurestackhci/models.go | 42 + .../baremetalinfrastructure/CHANGELOG.md | 10 + .../baremetalinfrastructure/_meta.json | 4 +- .../baremetalinfrastructure/models.go | 36 + .../2017-09-01-preview/batchai/_meta.json | 4 +- .../2017-02-27-preview/billing/CHANGELOG.md | 10 + .../2017-02-27-preview/billing/_meta.json | 4 +- .../mgmt/2017-02-27-preview/billing/models.go | 36 + .../2017-04-24-preview/billing/CHANGELOG.md | 12 + .../2017-04-24-preview/billing/_meta.json | 4 +- .../mgmt/2017-04-24-preview/billing/models.go | 48 + .../2018-03-01-preview/billing/CHANGELOG.md | 14 + .../2018-03-01-preview/billing/_meta.json | 4 +- .../mgmt/2018-03-01-preview/billing/models.go | 60 + .../2018-11-01-preview/billing/CHANGELOG.md | 39 + .../2018-11-01-preview/billing/_meta.json | 4 +- .../mgmt/2018-11-01-preview/billing/models.go | 210 + .../2020-05-01-preview/billing/CHANGELOG.md | 33 + .../2020-05-01-preview/billing/_meta.json | 4 +- .../mgmt/2020-05-01-preview/billing/models.go | 174 + .../blockchain/CHANGELOG.md | 5 + .../2018-06-01-preview/blockchain/_meta.json | 4 +- .../2018-06-01-preview/blockchain/models.go | 6 + .../2018-11-01-preview/blueprint/CHANGELOG.md | 8 + .../2018-11-01-preview/blueprint/_meta.json | 4 +- .../2018-11-01-preview/blueprint/models.go | 24 + .../mgmt/2017-12-01/botservice/CHANGELOG.md | 6 + .../mgmt/2017-12-01/botservice/_meta.json | 4 +- .../mgmt/2017-12-01/botservice/models.go | 12 + .../mgmt/2018-07-12/botservice/CHANGELOG.md | 6 + .../mgmt/2018-07-12/botservice/_meta.json | 4 +- .../mgmt/2018-07-12/botservice/models.go | 12 + .../cognitiveservices/CHANGELOG.md | 6 + .../cognitiveservices/_meta.json | 4 +- .../cognitiveservices/models.go | 12 + .../v1.0/anomalydetector/_meta.json | 4 +- .../v1.0/formrecognizer/_meta.json | 4 +- .../v1.0/inkrecognizer/_meta.json | 4 +- .../v1.0/visualsearch/CHANGELOG.md | 8 + .../v1.0/visualsearch/_meta.json | 4 +- .../v1.0/visualsearch/models.go | 24 + .../v1.0_preview.1/translatortext/_meta.json | 4 +- .../v3.0/luis/authoring/_meta.json | 4 +- .../customvision/training/CHANGELOG.md | 21 + .../customvision/training/_meta.json | 4 +- .../customvision/training/models.go | 102 + .../2015-06-01-preview/commerce/_meta.json | 4 +- .../communication/CHANGELOG.md | 5 + .../communication/_meta.json | 4 +- .../communication/models.go | 6 + .../2016-04-30-preview/compute/CHANGELOG.md | 14 + .../2016-04-30-preview/compute/_meta.json | 4 +- .../mgmt/2016-04-30-preview/compute/models.go | 60 + .../2020-10-01-preview/compute/CHANGELOG.md | 56 + .../2020-10-01-preview/compute/_meta.json | 4 +- .../mgmt/2020-10-01-preview/compute/models.go | 312 + .../confidentialledger/CHANGELOG.md | 31 +- .../confidentialledger/_meta.json | 4 +- .../confidentialledger/models.go | 24 + .../2020-03-01-preview/confluent/CHANGELOG.md | 6 + .../2020-03-01-preview/confluent/_meta.json | 4 +- .../2020-03-01-preview/confluent/models.go | 12 + .../2021-03-01-preview/confluent/CHANGELOG.md | 6 + .../2021-03-01-preview/confluent/_meta.json | 4 +- .../2021-03-01-preview/confluent/models.go | 12 + .../consumption/CHANGELOG.md | 9 + .../2017-04-24-preview/consumption/_meta.json | 4 +- .../2017-04-24-preview/consumption/models.go | 30 + .../consumption/CHANGELOG.md | 9 + .../2017-12-30-preview/consumption/_meta.json | 4 +- .../2017-12-30-preview/consumption/models.go | 30 + .../containerinstance/_meta.json | 4 +- .../containerinstance/CHANGELOG.md | 6 + .../containerinstance/_meta.json | 4 +- .../containerinstance/models.go | 12 + .../containerinstance/CHANGELOG.md | 9 + .../containerinstance/_meta.json | 4 +- .../containerinstance/models.go | 30 + .../containerinstance/CHANGELOG.md | 9 + .../containerinstance/_meta.json | 4 +- .../containerinstance/models.go | 30 + .../containerregistry/_meta.json | 4 +- .../containerregistry/CHANGELOG.md | 6 + .../containerregistry/_meta.json | 4 +- .../containerregistry/models.go | 12 + .../2018-02-01/containerregistry/CHANGELOG.md | 7 + .../2018-02-01/containerregistry/_meta.json | 4 +- .../2018-02-01/containerregistry/models.go | 18 + .../containerregistry/CHANGELOG.md | 7 + .../containerregistry/_meta.json | 4 +- .../containerregistry/models.go | 18 + .../containerregistry/CHANGELOG.md | 6 + .../containerregistry/_meta.json | 4 +- .../containerregistry/models.go | 12 + .../containerregistry/CHANGELOG.md | 11 + .../containerregistry/_meta.json | 4 +- .../containerregistry/models.go | 42 + .../2019-07/containerregistry/_meta.json | 4 +- .../containerregistry/_meta.json | 4 +- .../containerservice/_meta.json | 4 +- .../containerservice/CHANGELOG.md | 8 + .../containerservice/_meta.json | 4 +- .../containerservice/models.go | 24 + .../containerservice/CHANGELOG.md | 8 + .../containerservice/_meta.json | 4 +- .../containerservice/models.go | 24 + .../containerservice/CHANGELOG.md | 9 + .../containerservice/_meta.json | 4 +- .../containerservice/models.go | 30 + .../containerservice/CHANGELOG.md | 9 + .../containerservice/_meta.json | 4 +- .../containerservice/models.go | 30 + .../containerservice/CHANGELOG.md | 9 + .../containerservice/_meta.json | 4 +- .../containerservice/models.go | 30 + .../documentdb/CHANGELOG.md | 39 + .../2019-08-01-preview/documentdb/_meta.json | 4 +- .../2019-08-01-preview/documentdb/models.go | 210 + .../documentdb/CHANGELOG.md | 39 + .../2019-12-12-preview/documentdb/_meta.json | 4 +- .../2019-12-12-preview/documentdb/models.go | 210 + .../documentdb/CHANGELOG.md | 39 + .../2020-03-01-preview/documentdb/_meta.json | 4 +- .../2020-03-01-preview/documentdb/models.go | 210 + .../documentdb/CHANGELOG.md | 39 + .../2020-04-01-preview/documentdb/_meta.json | 4 +- .../2020-04-01-preview/documentdb/models.go | 210 + .../documentdb/CHANGELOG.md | 52 + .../2020-06-01-preview/documentdb/_meta.json | 4 +- .../2020-06-01-preview/documentdb/models.go | 288 + .../documentdb/CHANGELOG.md | 39 + .../2020-09-01-preview/documentdb/_meta.json | 4 +- .../2020-09-01-preview/documentdb/models.go | 210 + .../documentdb/CHANGELOG.md | 54 + .../2021-03-01-preview/documentdb/_meta.json | 4 +- .../2021-03-01-preview/documentdb/models.go | 300 + .../documentdb/CHANGELOG.md | 74 + .../2021-04-01-preview/documentdb/_meta.json | 4 +- .../2021-04-01-preview/documentdb/enums.go | 14 +- .../2021-04-01-preview/documentdb/models.go | 352 +- .../costmanagement/CHANGELOG.md | 15 + .../costmanagement/_meta.json | 4 +- .../costmanagement/models.go | 66 + .../2019-03-01/costmanagement/CHANGELOG.md | 16 + .../mgmt/2019-03-01/costmanagement/_meta.json | 4 +- .../mgmt/2019-03-01/costmanagement/models.go | 72 + .../customerlockbox/CHANGELOG.md | 8 + .../customerlockbox/_meta.json | 4 +- .../customerlockbox/models.go | 24 + .../customproviders/CHANGELOG.md | 5 + .../customproviders/_meta.json | 4 +- .../customproviders/models.go | 6 + .../databoxedge/CHANGELOG.md | 37 + .../2020-05-01-preview/databoxedge/_meta.json | 4 +- .../2020-05-01-preview/databoxedge/models.go | 198 + .../2020-02-01-preview/datadog/_meta.json | 4 +- .../datafactory/CHANGELOG.md | 11 + .../2017-09-01-preview/datafactory/_meta.json | 4 +- .../2017-09-01-preview/datafactory/models.go | 42 + .../2015-10-01-preview/catalog/_meta.json | 4 +- .../2015-11-01-preview/job/CHANGELOG.md | 11 + .../2015-11-01-preview/job/_meta.json | 4 +- .../2015-11-01-preview/job/models.go | 42 + .../2016-03-20-preview/job/CHANGELOG.md | 12 + .../2016-03-20-preview/job/_meta.json | 4 +- .../2016-03-20-preview/job/models.go | 48 + .../2017-09-01-preview/job/CHANGELOG.md | 18 + .../2017-09-01-preview/job/_meta.json | 4 +- .../2017-09-01-preview/job/models.go | 84 + .../2015-10-01-preview/account/CHANGELOG.md | 16 + .../2015-10-01-preview/account/_meta.json | 4 +- .../mgmt/2015-10-01-preview/account/models.go | 72 + .../filesystem/CHANGELOG.md | 12 + .../2015-10-01-preview/filesystem/_meta.json | 4 +- .../2015-10-01-preview/filesystem/models.go | 48 + .../2015-10-01-preview/account/CHANGELOG.md | 10 + .../2015-10-01-preview/account/_meta.json | 4 +- .../mgmt/2015-10-01-preview/account/models.go | 36 + .../datamigration/CHANGELOG.md | 17 + .../datamigration/_meta.json | 4 +- .../datamigration/models.go | 78 + .../datamigration/CHANGELOG.md | 21 + .../datamigration/_meta.json | 4 +- .../datamigration/models.go | 102 + .../datamigration/CHANGELOG.md | 39 + .../datamigration/_meta.json | 4 +- .../datamigration/models.go | 210 + .../2018-11-01-preview/datashare/CHANGELOG.md | 9 + .../2018-11-01-preview/datashare/_meta.json | 4 +- .../2018-11-01-preview/datashare/models.go | 30 + .../delegatednetwork/CHANGELOG.md | 7 + .../delegatednetwork/_meta.json | 4 +- .../delegatednetwork/models.go | 18 + .../deploymentmanager/CHANGELOG.md | 10 + .../deploymentmanager/_meta.json | 4 +- .../deploymentmanager/models.go | 36 + .../deploymentmanager/CHANGELOG.md | 10 + .../deploymentmanager/_meta.json | 4 +- .../deploymentmanager/models.go | 36 + .../desktopvirtualization/CHANGELOG.md | 7 + .../desktopvirtualization/_meta.json | 4 +- .../desktopvirtualization/models.go | 18 + .../desktopvirtualization/CHANGELOG.md | 7 + .../desktopvirtualization/_meta.json | 4 +- .../desktopvirtualization/models.go | 18 + .../desktopvirtualization/CHANGELOG.md | 7 + .../desktopvirtualization/_meta.json | 4 +- .../desktopvirtualization/models.go | 18 + .../desktopvirtualization/CHANGELOG.md | 7 + .../desktopvirtualization/_meta.json | 4 +- .../desktopvirtualization/models.go | 18 + .../desktopvirtualization/CHANGELOG.md | 7 + .../desktopvirtualization/_meta.json | 4 +- .../desktopvirtualization/models.go | 18 + .../desktopvirtualization/CHANGELOG.md | 7 + .../desktopvirtualization/_meta.json | 4 +- .../desktopvirtualization/models.go | 18 + .../deviceupdate/CHANGELOG.md | 13 + .../deviceupdate/_meta.json | 4 +- .../2020-03-01-preview/deviceupdate/models.go | 54 + .../2019-07-01-preview/devops/CHANGELOG.md | 5 + .../mgmt/2019-07-01-preview/devops/_meta.json | 4 +- .../mgmt/2019-07-01-preview/devops/models.go | 6 + .../mgmt/2015-05-21-preview/dtl/_meta.json | 4 +- .../digitaltwins/_meta.json | 4 +- .../digitaltwins/CHANGELOG.md | 8 + .../digitaltwins/_meta.json | 4 +- .../2020-03-01-preview/digitaltwins/models.go | 24 + .../mgmt/2015-05-04-preview/dns/CHANGELOG.md | 7 + .../mgmt/2015-05-04-preview/dns/_meta.json | 4 +- .../dns/mgmt/2015-05-04-preview/dns/models.go | 18 + .../mgmt/2018-03-01-preview/dns/CHANGELOG.md | 7 + .../mgmt/2018-03-01-preview/dns/_meta.json | 4 +- .../dns/mgmt/2018-03-01-preview/dns/models.go | 18 + .../2020-07-01-preview/elastic/CHANGELOG.md | 8 + .../2020-07-01-preview/elastic/_meta.json | 4 +- .../mgmt/2020-07-01-preview/elastic/models.go | 24 + .../2018-09-01/engagementfabric/CHANGELOG.md | 14 + .../2018-09-01/engagementfabric/_meta.json | 4 +- .../2018-09-01/engagementfabric/models.go | 60 + .../_meta.json | 4 +- .../2017-06-15-preview/eventgrid/CHANGELOG.md | 6 + .../2017-06-15-preview/eventgrid/_meta.json | 4 +- .../2017-06-15-preview/eventgrid/models.go | 12 + .../2017-09-15-preview/eventgrid/CHANGELOG.md | 6 + .../2017-09-15-preview/eventgrid/_meta.json | 4 +- .../2017-09-15-preview/eventgrid/models.go | 12 + .../2018-05-01-preview/eventgrid/CHANGELOG.md | 5 + .../2018-05-01-preview/eventgrid/_meta.json | 4 +- .../2018-05-01-preview/eventgrid/models.go | 6 + .../2018-09-15-preview/eventgrid/CHANGELOG.md | 6 + .../2018-09-15-preview/eventgrid/_meta.json | 4 +- .../2018-09-15-preview/eventgrid/models.go | 12 + .../2019-02-01-preview/eventgrid/CHANGELOG.md | 5 + .../2019-02-01-preview/eventgrid/_meta.json | 4 +- .../2019-02-01-preview/eventgrid/models.go | 6 + .../2020-01-01-preview/eventgrid/CHANGELOG.md | 5 + .../2020-01-01-preview/eventgrid/_meta.json | 4 +- .../2020-01-01-preview/eventgrid/models.go | 6 + .../2020-04-01-preview/eventgrid/CHANGELOG.md | 5 + .../2020-04-01-preview/eventgrid/_meta.json | 4 +- .../2020-04-01-preview/eventgrid/models.go | 6 + .../2020-10-15-preview/eventgrid/CHANGELOG.md | 5 + .../2020-10-15-preview/eventgrid/_meta.json | 4 +- .../2020-10-15-preview/eventgrid/models.go | 6 + .../2018-01-01-preview/eventhub/CHANGELOG.md | 10 + .../2018-01-01-preview/eventhub/_meta.json | 4 +- .../2018-01-01-preview/eventhub/models.go | 36 + .../extendedlocation/CHANGELOG.md | 25 +- .../extendedlocation/_meta.json | 4 +- .../extendedlocation/models.go | 48 + .../2018-08-01-preview/frontdoor/CHANGELOG.md | 7 + .../2018-08-01-preview/frontdoor/_meta.json | 4 +- .../2018-08-01-preview/frontdoor/models.go | 18 + .../hanaonazure/CHANGELOG.md | 6 + .../2017-11-03-preview/hanaonazure/_meta.json | 4 +- .../2017-11-03-preview/hanaonazure/models.go | 12 + .../hardwaresecuritymodules/CHANGELOG.md | 6 + .../hardwaresecuritymodules/_meta.json | 4 +- .../hardwaresecuritymodules/models.go | 12 + .../2018-11-01-preview/hdinsight/_meta.json | 4 +- .../2015-03-01-preview/hdinsight/CHANGELOG.md | 11 + .../2015-03-01-preview/hdinsight/_meta.json | 4 +- .../2015-03-01-preview/hdinsight/models.go | 42 + .../healthcareapis/CHANGELOG.md | 6 + .../healthcareapis/_meta.json | 4 +- .../healthcareapis/models.go | 12 + .../hybridkubernetes/CHANGELOG.md | 13 + .../hybridkubernetes/_meta.json | 4 +- .../hybridkubernetes/models.go | 54 + .../hybridnetwork/CHANGELOG.md | 15 + .../hybridnetwork/_meta.json | 4 +- .../hybridnetwork/models.go | 66 + .../2018-12-01-preview/devices/CHANGELOG.md | 12 + .../2018-12-01-preview/devices/_meta.json | 4 +- .../mgmt/2018-12-01-preview/devices/models.go | 48 + .../2019-03-22-preview/devices/CHANGELOG.md | 12 + .../2019-03-22-preview/devices/_meta.json | 4 +- .../mgmt/2019-03-22-preview/devices/models.go | 48 + .../2019-07-01-preview/devices/CHANGELOG.md | 12 + .../2019-07-01-preview/devices/_meta.json | 4 +- .../mgmt/2019-07-01-preview/devices/models.go | 48 + .../2021-03-03-preview/devices/CHANGELOG.md | 129 +- .../2021-03-03-preview/devices/_meta.json | 4 +- .../mgmt/2021-03-03-preview/devices/models.go | 60 + .../2017-10-01-preview/iotspaces/CHANGELOG.md | 6 + .../2017-10-01-preview/iotspaces/_meta.json | 4 +- .../2017-10-01-preview/iotspaces/models.go | 12 + .../2020-04-01-preview/keyvault/CHANGELOG.md | 8 + .../2020-04-01-preview/keyvault/_meta.json | 4 +- .../2020-04-01-preview/keyvault/models.go | 24 + .../v7.2-preview/keyvault/CHANGELOG.md | 24 + .../keyvault/v7.2-preview/keyvault/_meta.json | 4 +- .../keyvault/v7.2-preview/keyvault/models.go | 120 + .../kubernetesconfiguration/CHANGELOG.md | 8 + .../kubernetesconfiguration/_meta.json | 4 +- .../kubernetesconfiguration/models.go | 24 + .../kubernetesconfiguration/CHANGELOG.md | 7 + .../kubernetesconfiguration/_meta.json | 4 +- .../kubernetesconfiguration/models.go | 18 + .../2018-09-07-preview/kusto/CHANGELOG.md | 7 + .../mgmt/2018-09-07-preview/kusto/_meta.json | 4 +- .../mgmt/2018-09-07-preview/kusto/models.go | 18 + .../2015-02-01-preview/logic/CHANGELOG.md | 9 + .../mgmt/2015-02-01-preview/logic/_meta.json | 4 +- .../mgmt/2015-02-01-preview/logic/models.go | 30 + .../mgmt/2015-08-01-preview/logic/_meta.json | 4 +- .../2018-07-01-preview/logic/CHANGELOG.md | 6 + .../mgmt/2018-07-01-preview/logic/_meta.json | 4 +- .../mgmt/2018-07-01-preview/logic/models.go | 12 + .../mgmt/2020-10-01-preview/logz/CHANGELOG.md | 2 + .../mgmt/2020-10-01-preview/logz/_meta.json | 11 + .../mgmt/2020-10-01-preview/logz/client.go | 41 + .../mgmt/2020-10-01-preview/logz/enums.go | 181 + .../logz/logzapi/interfaces.go | 101 + .../mgmt/2020-10-01-preview/logz/models.go | 1737 ++ .../mgmt/2020-10-01-preview/logz/monitor.go | 380 + .../mgmt/2020-10-01-preview/logz/monitors.go | 928 + .../2020-10-01-preview/logz/operations.go | 134 + .../2020-10-01-preview/logz/singlesignon.go | 344 + .../2020-10-01-preview/logz/subaccount.go | 1037 + .../logz/subaccounttagrules.go | 438 + .../mgmt/2020-10-01-preview/logz/tagrules.go | 429 + .../mgmt/2020-10-01-preview/logz/version.go | 19 + .../commitmentplans/CHANGELOG.md | 14 + .../commitmentplans/_meta.json | 4 +- .../commitmentplans/models.go | 60 + .../2016-05-01-preview/webservices/_meta.json | 4 +- .../experimentation/_meta.json | 4 +- .../2017-08-01-preview/compute/CHANGELOG.md | 9 + .../2017-08-01-preview/compute/_meta.json | 4 +- .../mgmt/2017-08-01-preview/compute/models.go | 30 + .../machinelearningservices/CHANGELOG.md | 7 + .../machinelearningservices/_meta.json | 4 +- .../machinelearningservices/models.go | 18 + .../machinelearningservices/CHANGELOG.md | 25 + .../machinelearningservices/_meta.json | 4 +- .../machinelearningservices/models.go | 126 + .../maintenance/CHANGELOG.md | 5 + .../2018-06-01-preview/maintenance/_meta.json | 4 +- .../2018-06-01-preview/maintenance/models.go | 6 + .../managednetwork/CHANGELOG.md | 7 + .../managednetwork/_meta.json | 4 +- .../managednetwork/models.go | 18 + .../2018-06-01/managedservices/CHANGELOG.md | 8 + .../2018-06-01/managedservices/_meta.json | 4 +- .../mgmt/2018-06-01/managedservices/models.go | 24 + .../2019-04-01/managedservices/CHANGELOG.md | 8 + .../2019-04-01/managedservices/_meta.json | 4 +- .../mgmt/2019-04-01/managedservices/models.go | 24 + .../2018-02-01/managementpartner/_meta.json | 4 +- .../mgmt/2020-02-01-preview/maps/CHANGELOG.md | 15 + .../mgmt/2020-02-01-preview/maps/_meta.json | 4 +- .../mgmt/2020-02-01-preview/maps/models.go | 66 + .../2018-03-30-preview/media/CHANGELOG.md | 8 + .../mgmt/2018-03-30-preview/media/_meta.json | 4 +- .../mgmt/2018-03-30-preview/media/models.go | 24 + .../2018-06-01-preview/media/CHANGELOG.md | 8 + .../mgmt/2018-06-01-preview/media/_meta.json | 4 +- .../mgmt/2018-06-01-preview/media/models.go | 24 + .../2019-05-01-preview/media/CHANGELOG.md | 14 + .../mgmt/2019-05-01-preview/media/_meta.json | 4 +- .../mgmt/2019-05-01-preview/media/models.go | 60 + .../2018-09-01-preview/migrate/CHANGELOG.md | 33 + .../2018-09-01-preview/migrate/_meta.json | 4 +- .../mgmt/2018-09-01-preview/migrate/models.go | 174 + .../mgmt/2019-02-28/mixedreality/CHANGELOG.md | 9 + .../mgmt/2019-02-28/mixedreality/_meta.json | 4 +- .../mgmt/2019-02-28/mixedreality/models.go | 30 + .../mixedreality/CHANGELOG.md | 9 + .../mixedreality/_meta.json | 4 +- .../2020-05-01-preview/mixedreality/models.go | 30 + .../mixedreality/CHANGELOG.md | 8 + .../mixedreality/_meta.json | 4 +- .../2021-03-01-preview/mixedreality/models.go | 24 + .../2018-09-01-preview/monitor/_meta.json | 4 +- .../2017-05-01-preview/insights/CHANGELOG.md | 6 + .../2017-05-01-preview/insights/_meta.json | 4 +- .../2017-05-01-preview/insights/models.go | 12 + .../mgmt/2018-03-01/insights/CHANGELOG.md | 6 + .../mgmt/2018-03-01/insights/_meta.json | 4 +- .../mgmt/2018-03-01/insights/models.go | 12 + .../mgmt/2018-09-01/insights/CHANGELOG.md | 6 + .../mgmt/2018-09-01/insights/_meta.json | 4 +- .../mgmt/2018-09-01/insights/models.go | 12 + .../2018-11-01-preview/insights/CHANGELOG.md | 7 + .../2018-11-01-preview/insights/_meta.json | 4 +- .../2018-11-01-preview/insights/models.go | 18 + .../mgmt/2019-03-01/insights/CHANGELOG.md | 7 + .../mgmt/2019-03-01/insights/_meta.json | 4 +- .../mgmt/2019-03-01/insights/models.go | 18 + .../mgmt/2019-06-01/insights/CHANGELOG.md | 7 + .../mgmt/2019-06-01/insights/_meta.json | 4 +- .../mgmt/2019-06-01/insights/models.go | 18 + .../2019-11-01-preview/insights/CHANGELOG.md | 13 + .../2019-11-01-preview/insights/_meta.json | 4 +- .../2019-11-01-preview/insights/models.go | 54 + .../mgmt/2015-08-31-preview/msi/CHANGELOG.md | 8 + .../mgmt/2015-08-31-preview/msi/_meta.json | 4 +- .../msi/mgmt/2015-08-31-preview/msi/models.go | 24 + .../2017-12-01-preview/mysql/CHANGELOG.md | 10 + .../mgmt/2017-12-01-preview/mysql/_meta.json | 4 +- .../mgmt/2017-12-01-preview/mysql/models.go | 36 + .../mysqlflexibleservers/CHANGELOG.md | 20 + .../mysqlflexibleservers/_meta.json | 4 +- .../mysqlflexibleservers/models.go | 96 + .../netapp/mgmt/2017-08-15/netapp/_meta.json | 4 +- .../2015-05-01-preview/network/_meta.json | 4 +- .../operationalinsights/_meta.json | 4 +- .../servicemap/CHANGELOG.md | 8 + .../2015-11-01-preview/servicemap/_meta.json | 4 +- .../2015-11-01-preview/servicemap/models.go | 24 + .../operationalinsights/CHANGELOG.md | 10 + .../operationalinsights/_meta.json | 4 +- .../operationalinsights/models.go | 36 + .../operationsmanagement/_meta.json | 4 +- .../2019-08-01-preview/peering/CHANGELOG.md | 8 + .../2019-08-01-preview/peering/_meta.json | 4 +- .../mgmt/2019-08-01-preview/peering/models.go | 24 + .../2019-09-01-preview/peering/CHANGELOG.md | 9 + .../2019-09-01-preview/peering/_meta.json | 4 +- .../mgmt/2019-09-01-preview/peering/models.go | 30 + .../2020-01-01-preview/peering/CHANGELOG.md | 10 + .../2020-01-01-preview/peering/_meta.json | 4 +- .../mgmt/2020-01-01-preview/peering/models.go | 36 + .../policyinsights/CHANGELOG.md | 14 + .../policyinsights/_meta.json | 4 +- .../policyinsights/models.go | 60 + .../policyinsights/CHANGELOG.md | 18 + .../policyinsights/_meta.json | 4 +- .../policyinsights/models.go | 84 + .../policyinsights/CHANGELOG.md | 22 + .../policyinsights/_meta.json | 4 +- .../policyinsights/models.go | 108 + .../2015-08-01-preview/portal/CHANGELOG.md | 5 + .../mgmt/2015-08-01-preview/portal/_meta.json | 4 +- .../mgmt/2015-08-01-preview/portal/models.go | 6 + .../2018-10-01-preview/portal/CHANGELOG.md | 5 + .../mgmt/2018-10-01-preview/portal/_meta.json | 4 +- .../mgmt/2018-10-01-preview/portal/models.go | 6 + .../2019-01-01-preview/portal/CHANGELOG.md | 8 + .../mgmt/2019-01-01-preview/portal/_meta.json | 4 +- .../mgmt/2019-01-01-preview/portal/models.go | 24 + .../postgresql/CHANGELOG.md | 10 + .../2017-12-01-preview/postgresql/_meta.json | 4 +- .../2017-12-01-preview/postgresql/models.go | 36 + .../postgresqlflexibleservers/CHANGELOG.md | 19 + .../postgresqlflexibleservers/_meta.json | 4 +- .../postgresqlflexibleservers/models.go | 90 + .../postgresqlflexibleservers/CHANGELOG.md | 19 + .../postgresqlflexibleservers/_meta.json | 4 +- .../postgresqlflexibleservers/models.go | 90 + .../2020-10-30/powerplatform/CHANGELOG.md | 7 + .../mgmt/2020-10-30/powerplatform/_meta.json | 4 +- .../mgmt/2020-10-30/powerplatform/models.go | 18 + .../2017-08-21-preview/iothub/CHANGELOG.md | 7 + .../mgmt/2017-08-21-preview/iothub/_meta.json | 4 +- .../mgmt/2017-08-21-preview/iothub/models.go | 18 + .../2020-12-01-preview/purview/CHANGELOG.md | 14 + .../2020-12-01-preview/purview/_meta.json | 4 +- .../mgmt/2020-12-01-preview/purview/models.go | 60 + .../v5.0-preview.1/qnamaker/_meta.json | 4 +- .../2019-11-04-preview/quantum/CHANGELOG.md | 11 + .../2019-11-04-preview/quantum/_meta.json | 4 +- .../mgmt/2019-11-04-preview/quantum/models.go | 42 + .../2019-07-01-preview/redis/CHANGELOG.md | 10 + .../mgmt/2019-07-01-preview/redis/_meta.json | 4 +- .../mgmt/2019-07-01-preview/redis/models.go | 36 + .../redisenterprise/CHANGELOG.md | 13 + .../redisenterprise/_meta.json | 4 +- .../redisenterprise/models.go | 54 + .../mgmt/2018-06-01/reservations/CHANGELOG.md | 5 + .../mgmt/2018-06-01/reservations/_meta.json | 4 +- .../mgmt/2018-06-01/reservations/models.go | 6 + .../mgmt/2019-04-01/reservations/_meta.json | 4 +- .../reservations/CHANGELOG.md | 6 + .../reservations/_meta.json | 4 +- .../2019-07-19-preview/reservations/models.go | 12 + .../mgmt/2020-10-25/reservations/CHANGELOG.md | 6 + .../mgmt/2020-10-25/reservations/_meta.json | 4 +- .../mgmt/2020-10-25/reservations/models.go | 12 + .../mgmt/2018-09-01/resourcegraph/_meta.json | 4 +- .../resourcegraph/CHANGELOG.md | 15 + .../resourcegraph/_meta.json | 4 +- .../2021-03-01-preview/resourcegraph/enums.go | 14 +- .../resourcegraph/models.go | 16 +- .../resourcemover/CHANGELOG.md | 10 + .../resourcemover/_meta.json | 4 +- .../resourcemover/models.go | 36 + .../mgmt/2015-10-01-preview/policy/_meta.json | 4 +- .../managedapplications/_meta.json | 4 +- .../mgmt/2017-06-01-preview/policy/_meta.json | 4 +- .../managementgroups/CHANGELOG.md | 6 + .../managementgroups/_meta.json | 4 +- .../managementgroups/models.go | 12 + .../managementgroups/CHANGELOG.md | 6 + .../managementgroups/_meta.json | 4 +- .../managementgroups/models.go | 12 + .../managementgroups/CHANGELOG.md | 8 + .../managementgroups/_meta.json | 4 +- .../managementgroups/models.go | 24 + .../managementgroups/CHANGELOG.md | 9 + .../managementgroups/_meta.json | 4 +- .../managementgroups/models.go | 30 + .../templatespecs/CHANGELOG.md | 8 + .../templatespecs/_meta.json | 4 +- .../templatespecs/models.go | 24 + .../2020-03-01-preview/policy/CHANGELOG.md | 9 + .../mgmt/2020-03-01-preview/policy/_meta.json | 4 +- .../mgmt/2020-03-01-preview/policy/models.go | 30 + .../2020-09-01-preview/policy/CHANGELOG.md | 7 + .../mgmt/2020-09-01-preview/policy/_meta.json | 4 +- .../mgmt/2020-09-01-preview/policy/models.go | 18 + .../2014-08-01-preview/scheduler/CHANGELOG.md | 7 + .../2014-08-01-preview/scheduler/_meta.json | 4 +- .../2014-08-01-preview/scheduler/models.go | 18 + .../security/mgmt/v1.0/security/CHANGELOG.md | 35 + .../security/mgmt/v1.0/security/_meta.json | 4 +- .../security/mgmt/v1.0/security/models.go | 186 + .../security/mgmt/v2.0/security/CHANGELOG.md | 39 + .../security/mgmt/v2.0/security/_meta.json | 4 +- .../security/mgmt/v2.0/security/models.go | 210 + .../security/mgmt/v3.0/security/CHANGELOG.md | 64 + .../security/mgmt/v3.0/security/_meta.json | 4 +- .../security/mgmt/v3.0/security/models.go | 360 + .../securityinsight/CHANGELOG.md | 310 +- .../securityinsight/_meta.json | 4 +- .../securityinsight/enums.go | 34 +- .../securityinsight/models.go | 102 +- .../servicebus/CHANGELOG.md | 12 + .../2018-01-01-preview/servicebus/_meta.json | 4 +- .../2018-01-01-preview/servicebus/models.go | 48 + .../servicefabric/CHANGELOG.md | 5 + .../servicefabric/_meta.json | 4 +- .../servicefabric/models.go | 6 + .../servicefabric/CHANGELOG.md | 5 + .../servicefabric/_meta.json | 4 +- .../servicefabric/models.go | 6 + .../servicefabric/CHANGELOG.md | 5 + .../servicefabric/_meta.json | 4 +- .../servicefabric/models.go | 6 + .../servicefabricmesh/CHANGELOG.md | 5 + .../servicefabricmesh/_meta.json | 4 +- .../servicefabricmesh/models.go | 6 + .../servicefabricmesh/CHANGELOG.md | 7 + .../servicefabricmesh/_meta.json | 4 +- .../servicefabricmesh/models.go | 18 + .../2018-03-01-preview/signalr/CHANGELOG.md | 5 + .../2018-03-01-preview/signalr/_meta.json | 4 +- .../mgmt/2018-03-01-preview/signalr/models.go | 6 + .../2020-07-01-preview/signalr/CHANGELOG.md | 7 + .../2020-07-01-preview/signalr/_meta.json | 4 +- .../mgmt/2020-07-01-preview/signalr/models.go | 18 + .../2021-04-01-preview/signalr/CHANGELOG.md | 80 +- .../2021-04-01-preview/signalr/_meta.json | 4 +- .../mgmt/2021-04-01-preview/signalr/models.go | 30 + .../softwareplan/CHANGELOG.md | 8 + .../softwareplan/_meta.json | 4 +- .../2019-06-01-preview/softwareplan/models.go | 24 + .../mgmt/2015-05-01-preview/sql/CHANGELOG.md | 54 + .../mgmt/2015-05-01-preview/sql/_meta.json | 4 +- .../sql/mgmt/2015-05-01-preview/sql/models.go | 300 + .../mgmt/2017-03-01-preview/sql/CHANGELOG.md | 88 + .../mgmt/2017-03-01-preview/sql/_meta.json | 4 +- .../sql/mgmt/2017-03-01-preview/sql/models.go | 504 + .../mgmt/2017-10-01-preview/sql/CHANGELOG.md | 26 + .../mgmt/2017-10-01-preview/sql/_meta.json | 4 +- .../sql/mgmt/2017-10-01-preview/sql/models.go | 132 + .../mgmt/2018-06-01-preview/sql/CHANGELOG.md | 25 + .../mgmt/2018-06-01-preview/sql/_meta.json | 4 +- .../sql/mgmt/2018-06-01-preview/sql/models.go | 126 + .../preview/sql/mgmt/v3.0/sql/CHANGELOG.md | 125 + services/preview/sql/mgmt/v3.0/sql/_meta.json | 4 +- services/preview/sql/mgmt/v3.0/sql/models.go | 726 + .../preview/sql/mgmt/v4.0/sql/CHANGELOG.md | 130 + services/preview/sql/mgmt/v4.0/sql/_meta.json | 4 +- services/preview/sql/mgmt/v4.0/sql/models.go | 756 + .../sqlvirtualmachine/CHANGELOG.md | 11 + .../sqlvirtualmachine/_meta.json | 4 +- .../sqlvirtualmachine/models.go | 42 + .../2018-06-17/storagedatalake/_meta.json | 4 +- .../2015-05-01-preview/storage/_meta.json | 4 +- .../2018-03-01-preview/storage/CHANGELOG.md | 20 + .../2018-03-01-preview/storage/_meta.json | 4 +- .../mgmt/2018-03-01-preview/storage/models.go | 96 + .../2018-07-01-preview/storage/CHANGELOG.md | 21 + .../2018-07-01-preview/storage/_meta.json | 4 +- .../mgmt/2018-07-01-preview/storage/models.go | 102 + .../2020-08-01-preview/storage/CHANGELOG.md | 37 + .../2020-08-01-preview/storage/_meta.json | 4 +- .../mgmt/2020-08-01-preview/storage/models.go | 198 + .../storagetables/_meta.json | 4 +- .../storagecache/CHANGELOG.md | 5 + .../storagecache/_meta.json | 4 +- .../2019-08-01-preview/storagecache/models.go | 6 + .../storagepool/CHANGELOG.md | 8 + .../2020-03-15-preview/storagepool/_meta.json | 4 +- .../2020-03-15-preview/storagepool/models.go | 24 + .../storagepool/CHANGELOG.md | 2 + .../2021-04-01-preview/storagepool/_meta.json | 11 + .../2021-04-01-preview/storagepool/client.go | 41 + .../storagepool/diskpools.go | 944 + .../storagepool/diskpoolzones.go | 154 + .../2021-04-01-preview/storagepool/enums.go | 112 + .../storagepool/iscsitargets.go | 525 + .../2021-04-01-preview/storagepool/models.go | 1838 ++ .../storagepool/operations.go | 98 + .../storagepool/storagepoolapi/interfaces.go | 57 + .../2021-04-01-preview/storagepool/version.go | 19 + .../streamanalytics/CHANGELOG.md | 23 + .../streamanalytics/_meta.json | 4 +- .../streamanalytics/models.go | 114 + .../subscription/_meta.json | 4 +- .../subscription/CHANGELOG.md | 7 + .../subscription/_meta.json | 4 +- .../2018-03-01-preview/subscription/models.go | 18 + .../subscription/CHANGELOG.md | 11 + .../subscription/_meta.json | 4 +- .../2019-10-01-preview/subscription/models.go | 42 + .../2019-05-01-preview/support/CHANGELOG.md | 8 + .../2019-05-01-preview/support/_meta.json | 4 +- .../mgmt/2019-05-01-preview/support/models.go | 24 + .../2019-06-01-preview/artifacts/CHANGELOG.md | 14 + .../2019-06-01-preview/artifacts/_meta.json | 4 +- .../2019-06-01-preview/artifacts/models.go | 60 + .../managedvirtualnetwork/_meta.json | 4 +- .../2019-11-01-preview/monitoring/_meta.json | 4 +- .../2019-11-01-preview/spark/_meta.json | 4 +- .../accesscontrol/_meta.json | 4 +- .../accesscontrol/_meta.json | 4 +- .../2019-06-01-preview/synapse/CHANGELOG.md | 56 + .../2019-06-01-preview/synapse/_meta.json | 4 +- .../mgmt/2019-06-01-preview/synapse/models.go | 312 + .../timeseriesinsights/CHANGELOG.md | 9 + .../timeseriesinsights/_meta.json | 4 +- .../timeseriesinsights/models.go | 30 + .../timeseriesinsights/CHANGELOG.md | 8 + .../timeseriesinsights/_meta.json | 4 +- .../timeseriesinsights/models.go | 24 + .../trafficmanager/CHANGELOG.md | 7 + .../trafficmanager/_meta.json | 4 +- .../trafficmanager/models.go | 18 + .../trafficmanager/CHANGELOG.md | 7 + .../trafficmanager/_meta.json | 4 +- .../trafficmanager/models.go | 18 + .../videoanalyzer/CHANGELOG.md | 30 + .../videoanalyzer/_meta.json | 4 +- .../2021-05-01-preview/videoanalyzer/enums.go | 64 +- .../videoanalyzer/models.go | 94 +- .../virtualmachineimagebuilder/_meta.json | 4 +- .../virtualmachineimagebuilder/_meta.json | 4 +- .../virtualmachineimagebuilder/CHANGELOG.md | 5 + .../virtualmachineimagebuilder/_meta.json | 4 +- .../virtualmachineimagebuilder/models.go | 6 + .../visualstudio/_meta.json | 4 +- .../mgmt/2015-08-01-preview/web/CHANGELOG.md | 5 + .../mgmt/2015-08-01-preview/web/_meta.json | 4 +- .../web/mgmt/2015-08-01-preview/web/models.go | 6 + .../2021-04-01-preview/webpubsub/CHANGELOG.md | 74 +- .../2021-04-01-preview/webpubsub/_meta.json | 4 +- .../2021-04-01-preview/webpubsub/models.go | 30 + .../windowsesu/CHANGELOG.md | 8 + .../2019-09-16-preview/windowsesu/_meta.json | 4 +- .../2019-09-16-preview/windowsesu/models.go | 24 + .../workloadmonitor/CHANGELOG.md | 17 + .../workloadmonitor/_meta.json | 4 +- .../workloadmonitor/models.go | 78 + .../workloadmonitor/CHANGELOG.md | 5 + .../workloadmonitor/_meta.json | 4 +- .../workloadmonitor/models.go | 6 + .../mgmt/2018-09-01/privatedns/CHANGELOG.md | 7 + .../mgmt/2018-09-01/privatedns/_meta.json | 4 +- .../mgmt/2018-09-01/privatedns/models.go | 18 + .../mgmt/2017-11-15/iothub/CHANGELOG.md | 8 + .../mgmt/2017-11-15/iothub/_meta.json | 4 +- .../mgmt/2017-11-15/iothub/models.go | 24 + .../mgmt/2018-01-22/iothub/CHANGELOG.md | 8 + .../mgmt/2018-01-22/iothub/_meta.json | 4 +- .../mgmt/2018-01-22/iothub/models.go | 24 + .../mgmt/2016-06-01/backup/_meta.json | 4 +- .../2016-06-01/recoveryservices/CHANGELOG.md | 8 + .../2016-06-01/recoveryservices/_meta.json | 4 +- .../2016-06-01/recoveryservices/models.go | 24 + .../mgmt/2016-08-10/siterecovery/CHANGELOG.md | 7 + .../mgmt/2016-08-10/siterecovery/_meta.json | 4 +- .../mgmt/2016-08-10/siterecovery/models.go | 18 + .../mgmt/2016-12-01/backup/CHANGELOG.md | 5 + .../mgmt/2016-12-01/backup/_meta.json | 4 +- .../mgmt/2016-12-01/backup/models.go | 6 + .../mgmt/2018-01-10/siterecovery/CHANGELOG.md | 6 + .../mgmt/2018-01-10/siterecovery/_meta.json | 4 +- .../mgmt/2018-01-10/siterecovery/models.go | 12 + .../mgmt/2018-07-10/siterecovery/CHANGELOG.md | 19 + .../mgmt/2018-07-10/siterecovery/_meta.json | 4 +- .../mgmt/2018-07-10/siterecovery/models.go | 90 + .../mgmt/2019-05-13/backup/CHANGELOG.md | 9 + .../mgmt/2019-05-13/backup/_meta.json | 4 +- .../mgmt/2019-05-13/backup/models.go | 30 + .../mgmt/2019-06-15/backup/CHANGELOG.md | 12 + .../mgmt/2019-06-15/backup/_meta.json | 4 +- .../mgmt/2019-06-15/backup/models.go | 48 + .../mgmt/2020-02-02/backup/CHANGELOG.md | 12 + .../mgmt/2020-02-02/backup/_meta.json | 4 +- .../mgmt/2020-02-02/backup/models.go | 48 + .../mgmt/2021-01-01/backup/CHANGELOG.md | 2 + .../mgmt/2021-01-01/backup/_meta.json | 11 + .../mgmt/2021-01-01/backup/aadproperties.go | 109 + .../2021-01-01/backup/backupapi/interfaces.go | 424 + .../mgmt/2021-01-01/backup/backups.go | 116 + .../bmspreparedatamoveoperationresult.go | 110 + .../mgmt/2021-01-01/backup/client.go | 382 + .../2021-01-01/backup/crossregionrestore.go | 110 + .../mgmt/2021-01-01/backup/crrjobdetails.go | 108 + .../mgmt/2021-01-01/backup/crrjobs.go | 158 + .../2021-01-01/backup/crroperationresults.go | 106 + .../2021-01-01/backup/crroperationstatus.go | 107 + .../mgmt/2021-01-01/backup/engines.go | 243 + .../mgmt/2021-01-01/backup/enums.go | 1882 ++ .../backup/exportjobsoperationresults.go | 112 + .../mgmt/2021-01-01/backup/featuresupport.go | 108 + .../backup/itemlevelrecoveryconnections.go | 208 + .../2021-01-01/backup/jobcancellations.go | 110 + .../mgmt/2021-01-01/backup/jobdetails.go | 109 + .../2021-01-01/backup/joboperationresults.go | 111 + .../mgmt/2021-01-01/backup/jobs.go | 157 + .../mgmt/2021-01-01/backup/jobsgroup.go | 110 + .../mgmt/2021-01-01/backup/models.go | 22843 ++++++++++++++++ .../mgmt/2021-01-01/backup/operation.go | 110 + .../2021-01-01/backup/operationresults.go | 113 + .../mgmt/2021-01-01/backup/operations.go | 140 + .../2021-01-01/backup/operationstatuses.go | 113 + .../mgmt/2021-01-01/backup/policies.go | 154 + .../mgmt/2021-01-01/backup/privateendpoint.go | 111 + .../backup/privateendpointconnection.go | 272 + .../backup/protectablecontainers.go | 155 + .../2021-01-01/backup/protectableitems.go | 159 + .../backup/protecteditemoperationresults.go | 116 + .../backup/protecteditemoperationstatuses.go | 119 + .../mgmt/2021-01-01/backup/protecteditems.go | 289 + .../2021-01-01/backup/protecteditemscrr.go | 158 + .../2021-01-01/backup/protecteditemsgroup.go | 158 + .../protectioncontaineroperationresults.go | 115 + ...tectioncontainerrefreshoperationresults.go | 112 + .../2021-01-01/backup/protectioncontainers.go | 444 + .../backup/protectioncontainersgroup.go | 154 + .../2021-01-01/backup/protectionintent.go | 353 + .../backup/protectionintentgroup.go | 158 + .../2021-01-01/backup/protectionpolicies.go | 275 + .../protectionpolicyoperationresults.go | 112 + .../protectionpolicyoperationstatuses.go | 116 + .../mgmt/2021-01-01/backup/recoverypoints.go | 332 + .../2021-01-01/backup/recoverypointscrr.go | 160 + .../recoverypointsrecommendedformove.go | 156 + .../backup/resourceencryptionconfigs.go | 186 + .../backup/resourcestorageconfigs.go | 265 + .../2021-01-01/backup/resourcevaultconfigs.go | 266 + .../mgmt/2021-01-01/backup/restores.go | 121 + .../mgmt/2021-01-01/backup/securitypins.go | 107 + .../mgmt/2021-01-01/backup/status.go | 108 + .../mgmt/2021-01-01/backup/usagesummaries.go | 115 + .../2021-01-01/backup/usagesummariescrr.go | 116 + .../mgmt/2021-01-01/backup/version.go | 19 + .../mgmt/2021-01-01/backup/workloaditems.go | 163 + .../2020-04-30/redhatopenshift/CHANGELOG.md | 7 + .../2020-04-30/redhatopenshift/_meta.json | 4 +- .../mgmt/2020-04-30/redhatopenshift/models.go | 18 + .../redis/mgmt/2015-08-01/redis/_meta.json | 4 +- .../redis/mgmt/2016-04-01/redis/CHANGELOG.md | 6 + .../redis/mgmt/2016-04-01/redis/_meta.json | 4 +- .../redis/mgmt/2016-04-01/redis/models.go | 12 + .../redis/mgmt/2017-02-01/redis/CHANGELOG.md | 9 + .../redis/mgmt/2017-02-01/redis/_meta.json | 4 +- .../redis/mgmt/2017-02-01/redis/models.go | 30 + .../redis/mgmt/2017-10-01/redis/CHANGELOG.md | 9 + .../redis/mgmt/2017-10-01/redis/_meta.json | 4 +- .../redis/mgmt/2017-10-01/redis/models.go | 30 + .../redis/mgmt/2018-03-01/redis/CHANGELOG.md | 9 + .../redis/mgmt/2018-03-01/redis/_meta.json | 4 +- .../redis/mgmt/2018-03-01/redis/models.go | 30 + .../redis/mgmt/2020-06-01/redis/CHANGELOG.md | 13 + .../redis/mgmt/2020-06-01/redis/_meta.json | 4 +- .../redis/mgmt/2020-06-01/redis/models.go | 54 + .../2021-03-01/redisenterprise/CHANGELOG.md | 13 + .../2021-03-01/redisenterprise/_meta.json | 4 +- .../mgmt/2021-03-01/redisenterprise/models.go | 54 + .../relay/mgmt/2016-07-01/relay/CHANGELOG.md | 8 + .../relay/mgmt/2016-07-01/relay/_meta.json | 4 +- .../relay/mgmt/2016-07-01/relay/models.go | 24 + .../relay/mgmt/2017-04-01/relay/CHANGELOG.md | 8 + .../relay/mgmt/2017-04-01/relay/_meta.json | 4 +- .../relay/mgmt/2017-04-01/relay/models.go | 24 + .../mgmt/2017-11-01/reservations/CHANGELOG.md | 5 + .../mgmt/2017-11-01/reservations/_meta.json | 4 +- .../mgmt/2017-11-01/reservations/models.go | 6 + .../mgmt/2019-04-01/resourcegraph/_meta.json | 4 +- .../mgmt/2021-03-01/resourcegraph/_meta.json | 4 +- .../2015-01-01/resourcehealth/CHANGELOG.md | 5 + .../mgmt/2015-01-01/resourcehealth/_meta.json | 4 +- .../mgmt/2015-01-01/resourcehealth/models.go | 7 + .../2017-07-01/resourcehealth/CHANGELOG.md | 8 + .../mgmt/2017-07-01/resourcehealth/_meta.json | 4 +- .../mgmt/2017-07-01/resourcehealth/models.go | 24 + .../2021-01-01/resourcemover/CHANGELOG.md | 10 + .../mgmt/2021-01-01/resourcemover/_meta.json | 4 +- .../mgmt/2021-01-01/resourcemover/models.go | 36 + .../mgmt/2015-01-01/locks/_meta.json | 4 +- .../mgmt/2015-11-01/resources/CHANGELOG.md | 7 + .../mgmt/2015-11-01/resources/_meta.json | 4 +- .../mgmt/2015-11-01/resources/models.go | 18 + .../mgmt/2015-11-01/subscriptions/_meta.json | 4 +- .../mgmt/2015-12-01/features/_meta.json | 4 +- .../mgmt/2016-02-01/resources/CHANGELOG.md | 7 + .../mgmt/2016-02-01/resources/_meta.json | 4 +- .../mgmt/2016-02-01/resources/models.go | 18 + .../mgmt/2016-04-01/policy/_meta.json | 4 +- .../2016-06-01/subscriptions/CHANGELOG.md | 7 + .../mgmt/2016-06-01/subscriptions/_meta.json | 4 +- .../mgmt/2016-06-01/subscriptions/models.go | 18 + .../mgmt/2016-07-01/resources/CHANGELOG.md | 7 + .../mgmt/2016-07-01/resources/_meta.json | 4 +- .../mgmt/2016-07-01/resources/models.go | 18 + .../mgmt/2016-09-01/links/_meta.json | 4 +- .../mgmt/2016-09-01/locks/_meta.json | 4 +- .../mgmt/2016-09-01/resources/CHANGELOG.md | 9 + .../mgmt/2016-09-01/resources/_meta.json | 4 +- .../mgmt/2016-09-01/resources/models.go | 30 + .../mgmt/2016-12-01/policy/_meta.json | 4 +- .../mgmt/2017-05-10/resources/CHANGELOG.md | 9 + .../mgmt/2017-05-10/resources/_meta.json | 4 +- .../mgmt/2017-05-10/resources/models.go | 30 + .../2017-09-01/managedapplications/_meta.json | 4 +- .../mgmt/2018-02-01/resources/CHANGELOG.md | 9 + .../mgmt/2018-02-01/resources/_meta.json | 4 +- .../mgmt/2018-02-01/resources/models.go | 30 + .../mgmt/2018-03-01/policy/_meta.json | 4 +- .../mgmt/2018-05-01/policy/_meta.json | 4 +- .../mgmt/2018-05-01/resources/CHANGELOG.md | 10 + .../mgmt/2018-05-01/resources/_meta.json | 4 +- .../mgmt/2018-05-01/resources/models.go | 36 + .../2018-06-01/managedapplications/_meta.json | 4 +- .../2018-06-01/subscriptions/CHANGELOG.md | 7 + .../mgmt/2018-06-01/subscriptions/_meta.json | 4 +- .../mgmt/2018-06-01/subscriptions/models.go | 18 + .../mgmt/2019-01-01/policy/_meta.json | 4 +- .../mgmt/2019-03-01/resources/CHANGELOG.md | 10 + .../mgmt/2019-03-01/resources/_meta.json | 4 +- .../mgmt/2019-03-01/resources/models.go | 36 + .../mgmt/2019-05-01/resources/CHANGELOG.md | 10 + .../mgmt/2019-05-01/resources/_meta.json | 4 +- .../mgmt/2019-05-01/resources/models.go | 36 + .../mgmt/2019-06-01/policy/_meta.json | 4 +- .../2019-06-01/subscriptions/CHANGELOG.md | 8 + .../mgmt/2019-06-01/subscriptions/_meta.json | 4 +- .../mgmt/2019-06-01/subscriptions/models.go | 24 + .../mgmt/2019-07-01/features/CHANGELOG.md | 9 + .../mgmt/2019-07-01/features/_meta.json | 4 +- .../mgmt/2019-07-01/features/models.go | 30 + .../managedapplications/CHANGELOG.md | 5 + .../2019-07-01/managedapplications/_meta.json | 4 +- .../2019-07-01/managedapplications/models.go | 6 + .../mgmt/2019-09-01/policy/CHANGELOG.md | 6 + .../mgmt/2019-09-01/policy/_meta.json | 4 +- .../mgmt/2019-09-01/policy/models.go | 12 + .../mgmt/2019-10-01/resources/CHANGELOG.md | 11 + .../mgmt/2019-10-01/resources/_meta.json | 4 +- .../mgmt/2019-10-01/resources/models.go | 42 + .../2019-11-01/managementgroups/CHANGELOG.md | 10 + .../2019-11-01/managementgroups/_meta.json | 4 +- .../2019-11-01/managementgroups/models.go | 36 + .../2019-11-01/subscriptions/CHANGELOG.md | 8 + .../mgmt/2019-11-01/subscriptions/_meta.json | 4 +- .../mgmt/2019-11-01/subscriptions/models.go | 24 + .../2020-02-01/managementgroups/CHANGELOG.md | 9 + .../2020-02-01/managementgroups/_meta.json | 4 +- .../2020-02-01/managementgroups/models.go | 30 + .../2020-05-01/managementgroups/CHANGELOG.md | 9 + .../2020-05-01/managementgroups/_meta.json | 4 +- .../2020-05-01/managementgroups/models.go | 30 + .../mgmt/2020-06-01/resources/CHANGELOG.md | 85 +- .../mgmt/2020-06-01/resources/_meta.json | 4 +- .../mgmt/2020-06-01/resources/models.go | 54 + .../mgmt/2020-10-01/resources/CHANGELOG.md | 72 +- .../mgmt/2020-10-01/resources/_meta.json | 4 +- .../mgmt/2020-10-01/resources/models.go | 54 + .../2021-01-01/subscriptions/CHANGELOG.md | 10 + .../mgmt/2021-01-01/subscriptions/_meta.json | 4 +- .../mgmt/2021-01-01/subscriptions/models.go | 36 + .../mgmt/2016-01-01/scheduler/CHANGELOG.md | 7 + .../mgmt/2016-01-01/scheduler/_meta.json | 4 +- .../mgmt/2016-01-01/scheduler/models.go | 18 + .../mgmt/2016-03-01/scheduler/CHANGELOG.md | 7 + .../mgmt/2016-03-01/scheduler/_meta.json | 4 +- .../mgmt/2016-03-01/scheduler/models.go | 18 + .../mgmt/2015-02-28/search/CHANGELOG.md | 8 + .../search/mgmt/2015-02-28/search/_meta.json | 4 +- .../search/mgmt/2015-02-28/search/models.go | 24 + .../mgmt/2015-08-19/search/CHANGELOG.md | 12 + .../search/mgmt/2015-08-19/search/_meta.json | 4 +- .../search/mgmt/2015-08-19/search/models.go | 48 + .../mgmt/2020-03-13/search/CHANGELOG.md | 16 + .../search/mgmt/2020-03-13/search/_meta.json | 4 +- .../search/mgmt/2020-03-13/search/models.go | 72 + .../mgmt/2020-08-01/search/CHANGELOG.md | 21 + .../search/mgmt/2020-08-01/search/_meta.json | 4 +- .../search/mgmt/2020-08-01/search/models.go | 102 + .../2020-01-01/securityinsight/CHANGELOG.md | 25 + .../2020-01-01/securityinsight/_meta.json | 4 +- .../mgmt/2020-01-01/securityinsight/enums.go | 18 +- .../mgmt/2020-01-01/securityinsight/models.go | 52 +- .../mgmt/v1.0/securityinsight/CHANGELOG.md | 9 + .../mgmt/v1.0/securityinsight/_meta.json | 4 +- .../mgmt/v1.0/securityinsight/models.go | 30 + .../mgmt/2018-05-01/serialconsole/_meta.json | 4 +- .../mgmt/2015-08-01/servicebus/CHANGELOG.md | 7 + .../mgmt/2015-08-01/servicebus/_meta.json | 4 +- .../mgmt/2015-08-01/servicebus/models.go | 18 + .../mgmt/2017-04-01/servicebus/CHANGELOG.md | 13 + .../mgmt/2017-04-01/servicebus/_meta.json | 4 +- .../mgmt/2017-04-01/servicebus/models.go | 54 + .../6.2/servicefabric/_meta.json | 4 +- .../6.3/servicefabric/_meta.json | 4 +- .../6.4/servicefabric/_meta.json | 4 +- .../6.5/servicefabric/_meta.json | 4 +- .../7.0/servicefabric/_meta.json | 4 +- .../7.2/servicefabric/_meta.json | 4 +- .../2016-09-01/servicefabric/CHANGELOG.md | 5 + .../mgmt/2016-09-01/servicefabric/_meta.json | 4 +- .../mgmt/2016-09-01/servicefabric/models.go | 6 + .../2019-03-01/servicefabric/CHANGELOG.md | 5 + .../mgmt/2019-03-01/servicefabric/_meta.json | 4 +- .../mgmt/2019-03-01/servicefabric/models.go | 6 + .../mgmt/2018-10-01/signalr/CHANGELOG.md | 5 + .../mgmt/2018-10-01/signalr/_meta.json | 4 +- .../signalr/mgmt/2018-10-01/signalr/models.go | 6 + .../mgmt/2020-05-01/signalr/CHANGELOG.md | 6 + .../mgmt/2020-05-01/signalr/_meta.json | 4 +- .../signalr/mgmt/2020-05-01/signalr/models.go | 12 + services/sql/mgmt/2014-04-01/sql/CHANGELOG.md | 41 + services/sql/mgmt/2014-04-01/sql/_meta.json | 4 +- services/sql/mgmt/2014-04-01/sql/models.go | 222 + .../2018-11-09/storagedatalake/_meta.json | 4 +- .../2019-10-31/storagedatalake/_meta.json | 4 +- .../mgmt/2015-06-15/storage/_meta.json | 4 +- .../mgmt/2016-01-01/storage/CHANGELOG.md | 12 + .../mgmt/2016-01-01/storage/_meta.json | 4 +- .../storage/mgmt/2016-01-01/storage/models.go | 48 + .../mgmt/2016-05-01/storage/CHANGELOG.md | 14 + .../mgmt/2016-05-01/storage/_meta.json | 4 +- .../storage/mgmt/2016-05-01/storage/models.go | 60 + .../mgmt/2016-12-01/storage/CHANGELOG.md | 13 + .../mgmt/2016-12-01/storage/_meta.json | 4 +- .../storage/mgmt/2016-12-01/storage/models.go | 54 + .../mgmt/2017-06-01/storage/CHANGELOG.md | 15 + .../mgmt/2017-06-01/storage/_meta.json | 4 +- .../storage/mgmt/2017-06-01/storage/models.go | 66 + .../mgmt/2017-10-01/storage/CHANGELOG.md | 15 + .../mgmt/2017-10-01/storage/_meta.json | 4 +- .../storage/mgmt/2017-10-01/storage/models.go | 66 + .../mgmt/2018-02-01/storage/CHANGELOG.md | 20 + .../mgmt/2018-02-01/storage/_meta.json | 4 +- .../storage/mgmt/2018-02-01/storage/models.go | 96 + .../mgmt/2018-11-01/storage/CHANGELOG.md | 21 + .../mgmt/2018-11-01/storage/_meta.json | 4 +- .../storage/mgmt/2018-11-01/storage/models.go | 102 + .../mgmt/2019-04-01/storage/CHANGELOG.md | 25 + .../mgmt/2019-04-01/storage/_meta.json | 4 +- .../storage/mgmt/2019-04-01/storage/models.go | 126 + .../mgmt/2019-06-01/storage/CHANGELOG.md | 34 + .../mgmt/2019-06-01/storage/_meta.json | 4 +- .../storage/mgmt/2019-06-01/storage/models.go | 180 + .../mgmt/2021-01-01/storage/CHANGELOG.md | 38 + .../mgmt/2021-01-01/storage/_meta.json | 4 +- .../storage/mgmt/2021-01-01/storage/models.go | 204 + .../mgmt/2021-02-01/storage/CHANGELOG.md | 231 +- .../mgmt/2021-02-01/storage/_meta.json | 4 +- .../storage/mgmt/2021-02-01/storage/models.go | 204 + .../mgmt/2019-11-01/storagecache/CHANGELOG.md | 5 + .../mgmt/2019-11-01/storagecache/_meta.json | 4 +- .../mgmt/2019-11-01/storagecache/models.go | 6 + .../mgmt/2020-03-01/storagecache/CHANGELOG.md | 6 + .../mgmt/2020-03-01/storagecache/_meta.json | 4 +- .../mgmt/2020-03-01/storagecache/models.go | 12 + .../mgmt/2020-10-01/storagecache/CHANGELOG.md | 6 + .../mgmt/2020-10-01/storagecache/_meta.json | 4 +- .../mgmt/2020-10-01/storagecache/models.go | 12 + .../mgmt/2021-03-01/storagecache/CHANGELOG.md | 7 + .../mgmt/2021-03-01/storagecache/_meta.json | 4 +- .../mgmt/2021-03-01/storagecache/models.go | 18 + .../2016-11-01/storageimportexport/_meta.json | 4 +- .../2020-08-01/storageimportexport/_meta.json | 4 +- .../mgmt/2018-04-02/storagesync/CHANGELOG.md | 10 + .../mgmt/2018-04-02/storagesync/_meta.json | 4 +- .../mgmt/2018-04-02/storagesync/models.go | 36 + .../mgmt/2018-07-01/storagesync/CHANGELOG.md | 10 + .../mgmt/2018-07-01/storagesync/_meta.json | 4 +- .../mgmt/2018-07-01/storagesync/models.go | 36 + .../mgmt/2018-10-01/storagesync/CHANGELOG.md | 10 + .../mgmt/2018-10-01/storagesync/_meta.json | 4 +- .../mgmt/2018-10-01/storagesync/models.go | 36 + .../mgmt/2019-02-01/storagesync/CHANGELOG.md | 14 + .../mgmt/2019-02-01/storagesync/_meta.json | 4 +- .../mgmt/2019-02-01/storagesync/models.go | 60 + .../mgmt/2019-06-01/storagesync/CHANGELOG.md | 19 + .../mgmt/2019-06-01/storagesync/_meta.json | 4 +- .../mgmt/2019-06-01/storagesync/models.go | 90 + .../mgmt/2019-10-01/storagesync/CHANGELOG.md | 25 + .../mgmt/2019-10-01/storagesync/_meta.json | 4 +- .../mgmt/2019-10-01/storagesync/models.go | 126 + .../mgmt/2020-03-01/storagesync/CHANGELOG.md | 25 + .../mgmt/2020-03-01/storagesync/_meta.json | 4 +- .../mgmt/2020-03-01/storagesync/models.go | 126 + .../mgmt/2016-10-01/storsimple/CHANGELOG.md | 5 + .../mgmt/2016-10-01/storsimple/_meta.json | 4 +- .../mgmt/2016-10-01/storsimple/models.go | 6 + .../mgmt/2017-06-01/storsimple/_meta.json | 4 +- .../2016-03-01/streamanalytics/CHANGELOG.md | 17 + .../2016-03-01/streamanalytics/_meta.json | 4 +- .../mgmt/2016-03-01/streamanalytics/models.go | 78 + .../mgmt/2020-09-01/subscription/CHANGELOG.md | 11 + .../mgmt/2020-09-01/subscription/_meta.json | 4 +- .../mgmt/2020-09-01/subscription/models.go | 42 + .../mgmt/2020-04-01/support/CHANGELOG.md | 8 + .../mgmt/2020-04-01/support/_meta.json | 4 +- .../support/mgmt/2020-04-01/support/models.go | 24 + .../mgmt/2020-12-01/synapse/CHANGELOG.md | 57 + .../mgmt/2020-12-01/synapse/_meta.json | 4 +- .../synapse/mgmt/2020-12-01/synapse/models.go | 318 + .../mgmt/2021-03-01/synapse/CHANGELOG.md | 57 + .../mgmt/2021-03-01/synapse/_meta.json | 4 +- .../synapse/mgmt/2021-03-01/synapse/models.go | 318 + .../timeseriesinsights/CHANGELOG.md | 8 + .../2017-11-15/timeseriesinsights/_meta.json | 4 +- .../2017-11-15/timeseriesinsights/models.go | 24 + .../timeseriesinsights/CHANGELOG.md | 8 + .../2020-05-15/timeseriesinsights/_meta.json | 4 +- .../2020-05-15/timeseriesinsights/models.go | 24 + .../mgmt/2015-11-01/trafficmanager/_meta.json | 4 +- .../2017-03-01/trafficmanager/CHANGELOG.md | 5 + .../mgmt/2017-03-01/trafficmanager/_meta.json | 4 +- .../mgmt/2017-03-01/trafficmanager/models.go | 6 + .../2017-05-01/trafficmanager/CHANGELOG.md | 7 + .../mgmt/2017-05-01/trafficmanager/_meta.json | 4 +- .../mgmt/2017-05-01/trafficmanager/models.go | 18 + .../2018-03-01/trafficmanager/CHANGELOG.md | 5 + .../mgmt/2018-03-01/trafficmanager/_meta.json | 4 +- .../mgmt/2018-03-01/trafficmanager/models.go | 6 + .../2018-04-01/trafficmanager/CHANGELOG.md | 5 + .../mgmt/2018-04-01/trafficmanager/_meta.json | 4 +- .../mgmt/2018-04-01/trafficmanager/models.go | 6 + .../virtualmachineimagebuilder/enums.go | 194 - .../virtualmachineimagebuilder/CHANGELOG.md | 2 + .../virtualmachineimagebuilder/_meta.json | 8 +- .../virtualmachineimagebuilder/client.go | 0 .../virtualmachineimagebuilder/enums.go | 194 + .../virtualmachineimagebuilder/models.go | 54 +- .../virtualmachineimagebuilder/operations.go | 0 .../virtualmachineimagebuilder/version.go | 0 .../interfaces.go | 2 +- .../virtualmachineimagetemplates.go | 0 .../2019-04-01/vmwarecloudsimple/CHANGELOG.md | 7 + .../2019-04-01/vmwarecloudsimple/_meta.json | 4 +- .../2019-04-01/vmwarecloudsimple/models.go | 18 + services/web/mgmt/2016-09-01/web/CHANGELOG.md | 34 + services/web/mgmt/2016-09-01/web/_meta.json | 4 +- services/web/mgmt/2016-09-01/web/models.go | 180 + services/web/mgmt/2018-02-01/web/CHANGELOG.md | 36 + services/web/mgmt/2018-02-01/web/_meta.json | 4 +- services/web/mgmt/2018-02-01/web/models.go | 192 + services/web/mgmt/2019-08-01/web/CHANGELOG.md | 38 + services/web/mgmt/2019-08-01/web/_meta.json | 4 +- services/web/mgmt/2019-08-01/web/models.go | 204 + services/web/mgmt/2020-06-01/web/CHANGELOG.md | 38 + services/web/mgmt/2020-06-01/web/_meta.json | 4 +- services/web/mgmt/2020-06-01/web/models.go | 204 + services/web/mgmt/2020-09-01/web/CHANGELOG.md | 38 + services/web/mgmt/2020-09-01/web/_meta.json | 4 +- services/web/mgmt/2020-09-01/web/models.go | 204 + services/web/mgmt/2020-12-01/web/CHANGELOG.md | 54 + services/web/mgmt/2020-12-01/web/_meta.json | 4 +- services/web/mgmt/2020-12-01/web/models.go | 300 + .../mgmt/2019-06-01/windowsiot/CHANGELOG.md | 7 + .../mgmt/2019-06-01/windowsiot/_meta.json | 4 +- .../mgmt/2019-06-01/windowsiot/models.go | 18 + version/version.go | 2 +- 2200 files changed, 109860 insertions(+), 8283 deletions(-) create mode 100644 profiles/preview/preview/logz/mgmt/logz/logzapi/models.go create mode 100644 profiles/preview/preview/logz/mgmt/logz/models.go rename services/{virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder => cognitiveservices/mgmt/2021-04-30/cognitiveservices}/CHANGELOG.md (100%) create mode 100644 services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/_meta.json create mode 100644 services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/accounts.go create mode 100644 services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/client.go create mode 100644 services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/cognitiveservicesapi/interfaces.go create mode 100644 services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/deletedaccounts.go create mode 100644 services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/enums.go create mode 100644 services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/models.go create mode 100644 services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/operations.go create mode 100644 services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/privateendpointconnections.go create mode 100644 services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/privatelinkresources.go create mode 100644 services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/resourceskus.go create mode 100644 services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/version.go create mode 100644 services/compute/mgmt/2021-03-01/compute/gallerysharingprofile.go create mode 100644 services/compute/mgmt/2021-03-01/compute/restorepointcollections.go create mode 100644 services/compute/mgmt/2021-03-01/compute/restorepoints.go create mode 100644 services/compute/mgmt/2021-03-01/compute/sharedgalleries.go create mode 100644 services/compute/mgmt/2021-03-01/compute/sharedgalleryimages.go create mode 100644 services/compute/mgmt/2021-03-01/compute/sharedgalleryimageversions.go create mode 100644 services/preview/logz/mgmt/2020-10-01-preview/logz/CHANGELOG.md create mode 100644 services/preview/logz/mgmt/2020-10-01-preview/logz/_meta.json create mode 100644 services/preview/logz/mgmt/2020-10-01-preview/logz/client.go create mode 100644 services/preview/logz/mgmt/2020-10-01-preview/logz/enums.go create mode 100644 services/preview/logz/mgmt/2020-10-01-preview/logz/logzapi/interfaces.go create mode 100644 services/preview/logz/mgmt/2020-10-01-preview/logz/models.go create mode 100644 services/preview/logz/mgmt/2020-10-01-preview/logz/monitor.go create mode 100644 services/preview/logz/mgmt/2020-10-01-preview/logz/monitors.go create mode 100644 services/preview/logz/mgmt/2020-10-01-preview/logz/operations.go create mode 100644 services/preview/logz/mgmt/2020-10-01-preview/logz/singlesignon.go create mode 100644 services/preview/logz/mgmt/2020-10-01-preview/logz/subaccount.go create mode 100644 services/preview/logz/mgmt/2020-10-01-preview/logz/subaccounttagrules.go create mode 100644 services/preview/logz/mgmt/2020-10-01-preview/logz/tagrules.go create mode 100644 services/preview/logz/mgmt/2020-10-01-preview/logz/version.go create mode 100644 services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/CHANGELOG.md create mode 100644 services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/_meta.json create mode 100644 services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/client.go create mode 100644 services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/diskpools.go create mode 100644 services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/diskpoolzones.go create mode 100644 services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/enums.go create mode 100644 services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/iscsitargets.go create mode 100644 services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/models.go create mode 100644 services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/operations.go create mode 100644 services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/storagepoolapi/interfaces.go create mode 100644 services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/version.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/CHANGELOG.md create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/_meta.json create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/aadproperties.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/backupapi/interfaces.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/backups.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/bmspreparedatamoveoperationresult.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/client.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/crossregionrestore.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/crrjobdetails.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/crrjobs.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/crroperationresults.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/crroperationstatus.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/engines.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/enums.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/exportjobsoperationresults.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/featuresupport.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/itemlevelrecoveryconnections.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/jobcancellations.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/jobdetails.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/joboperationresults.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/jobs.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/jobsgroup.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/models.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/operation.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/operationresults.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/operations.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/operationstatuses.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/policies.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/privateendpoint.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/privateendpointconnection.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/protectablecontainers.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/protectableitems.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/protecteditemoperationresults.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/protecteditemoperationstatuses.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/protecteditems.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/protecteditemscrr.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/protecteditemsgroup.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/protectioncontaineroperationresults.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/protectioncontainerrefreshoperationresults.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/protectioncontainers.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/protectioncontainersgroup.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/protectionintent.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/protectionintentgroup.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/protectionpolicies.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/protectionpolicyoperationresults.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/protectionpolicyoperationstatuses.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/recoverypoints.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/recoverypointscrr.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/recoverypointsrecommendedformove.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/resourceencryptionconfigs.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/resourcestorageconfigs.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/resourcevaultconfigs.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/restores.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/securitypins.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/status.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/usagesummaries.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/usagesummariescrr.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/version.go create mode 100644 services/recoveryservices/mgmt/2021-01-01/backup/workloaditems.go delete mode 100644 services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder/enums.go create mode 100644 services/virtualmachineimagebuilder/mgmt/2020-02-14/virtualmachineimagebuilder/CHANGELOG.md rename services/virtualmachineimagebuilder/mgmt/{2020-02-01 => 2020-02-14}/virtualmachineimagebuilder/_meta.json (54%) rename services/virtualmachineimagebuilder/mgmt/{2020-02-01 => 2020-02-14}/virtualmachineimagebuilder/client.go (100%) create mode 100644 services/virtualmachineimagebuilder/mgmt/2020-02-14/virtualmachineimagebuilder/enums.go rename services/virtualmachineimagebuilder/mgmt/{2020-02-01 => 2020-02-14}/virtualmachineimagebuilder/models.go (95%) rename services/virtualmachineimagebuilder/mgmt/{2020-02-01 => 2020-02-14}/virtualmachineimagebuilder/operations.go (100%) rename services/virtualmachineimagebuilder/mgmt/{2020-02-01 => 2020-02-14}/virtualmachineimagebuilder/version.go (100%) rename services/virtualmachineimagebuilder/mgmt/{2020-02-01 => 2020-02-14}/virtualmachineimagebuilder/virtualmachineimagebuilderapi/interfaces.go (98%) rename services/virtualmachineimagebuilder/mgmt/{2020-02-01 => 2020-02-14}/virtualmachineimagebuilder/virtualmachineimagetemplates.go (100%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8138ea0b984a..96620186ac1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,653 @@ # CHANGELOG +## `v55.0.0` + +NOTE: Package `github.com/Azure/azure-sdk-for-go/services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder` renamed to `github.com/Azure/azure-sdk-for-go/services/virtualmachineimagebuilder/mgmt/2020-02-14/virtualmachineimagebuilder` + +This major version enroll the code generator fix for [this issue](https://github.com/Azure/azure-sdk-for-go/issues/14478), with a side effect that after this version, if a struct only has properties that are marked as `READ-ONLY` in the comment, their `MarshalJSON` function will give you an empty JSON string. + +### New Packages + +- `github.com/Azure/azure-sdk-for-go/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices` +- `github.com/Azure/azure-sdk-for-go/services/preview/logz/mgmt/2020-10-01-preview/logz` +- `github.com/Azure/azure-sdk-for-go/services/preview/storagepool/mgmt/2021-04-01-preview/storagepool` +- `github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2021-01-01/backup` +- `github.com/Azure/azure-sdk-for-go/services/virtualmachineimagebuilder/mgmt/2020-02-14/virtualmachineimagebuilder` + +### Updated Packages + +| Package Path | Changelog | +| :--- | :---: | +| `github.com/Azure/azure-sdk-for-go/services/aad/mgmt/2017-04-01/aad` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/aad/mgmt/2017-04-01/aad/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/advisor/mgmt/2017-03-31/advisor` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/advisor/mgmt/2017-03-31/advisor/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/advisor/mgmt/2017-04-19/advisor` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/advisor/mgmt/2017-04-19/advisor/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/advisor/mgmt/2020-01-01/advisor` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/advisor/mgmt/2020-01-01/advisor/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/alertsmanagement/mgmt/2018-05-05/alertsmanagement` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/alertsmanagement/mgmt/2018-05-05/alertsmanagement/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/analysisservices/mgmt/2017-08-01/analysisservices` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/analysisservices/mgmt/2017-08-01/analysisservices/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2016-07-07/apimanagement` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/apimanagement/mgmt/2016-07-07/apimanagement/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2016-10-10/apimanagement` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/apimanagement/mgmt/2016-10-10/apimanagement/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2017-03-01/apimanagement` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/apimanagement/mgmt/2017-03-01/apimanagement/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/apimanagement/mgmt/2018-01-01/apimanagement/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2019-01-01/apimanagement` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/apimanagement/mgmt/2019-01-01/apimanagement/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2019-12-01/apimanagement` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/apimanagement/mgmt/2019-12-01/apimanagement/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2020-12-01/apimanagement` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/apimanagement/mgmt/2020-12-01/apimanagement/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/appconfiguration/mgmt/2019-10-01/appconfiguration` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/appconfiguration/mgmt/2019-10-01/appconfiguration/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/appconfiguration/mgmt/2020-06-01/appconfiguration` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/appconfiguration/mgmt/2020-06-01/appconfiguration/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/appinsights/mgmt/2015-05-01/insights/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/appplatform/mgmt/2020-07-01/appplatform` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/appplatform/mgmt/2020-07-01/appplatform/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/attestation/mgmt/2018-09-01/attestation` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/attestation/mgmt/2018-09-01/attestation/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/attestation/mgmt/2020-10-01/attestation` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/attestation/mgmt/2020-10-01/attestation/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/automation/mgmt/2015-10-31/automation` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/automation/mgmt/2015-10-31/automation/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/avs/mgmt/2020-03-20/avs` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/avs/mgmt/2020-03-20/avs/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/azurestack/mgmt/2017-06-01/azurestack` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/azurestack/mgmt/2017-06-01/azurestack/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/azurestackhci/mgmt/2020-10-01/azurestackhci` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/azurestackhci/mgmt/2020-10-01/azurestackhci/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/batch/mgmt/2017-01-01/batch` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/batch/mgmt/2017-01-01/batch/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/batch/mgmt/2017-05-01/batch` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/batch/mgmt/2017-05-01/batch/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/batch/mgmt/2017-09-01/batch` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/batch/mgmt/2017-09-01/batch/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/batch/mgmt/2018-12-01/batch` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/batch/mgmt/2018-12-01/batch/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/batch/mgmt/2019-04-01/batch` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/batch/mgmt/2019-04-01/batch/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/batch/mgmt/2019-08-01/batch` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/batch/mgmt/2019-08-01/batch/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/batch/mgmt/2020-03-01/batch` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/batch/mgmt/2020-03-01/batch/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/batch/mgmt/2020-05-01/batch` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/batch/mgmt/2020-05-01/batch/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/batch/mgmt/2020-09-01/batch` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/batch/mgmt/2020-09-01/batch/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/batchai/mgmt/2018-05-01/batchai` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/batchai/mgmt/2018-05-01/batchai/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/cdn/mgmt/2015-06-01/cdn` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/cdn/mgmt/2015-06-01/cdn/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/cdn/mgmt/2016-04-02/cdn` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/cdn/mgmt/2016-04-02/cdn/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/cdn/mgmt/2016-10-02/cdn` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/cdn/mgmt/2016-10-02/cdn/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/cdn/mgmt/2017-04-02/cdn` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/cdn/mgmt/2017-04-02/cdn/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/cdn/mgmt/2017-10-12/cdn` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/cdn/mgmt/2017-10-12/cdn/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/cdn/mgmt/2019-04-15/cdn` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/cdn/mgmt/2019-04-15/cdn/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/cdn/mgmt/2019-06-15/cdn` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/cdn/mgmt/2019-06-15/cdn/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/cdn/mgmt/2020-04-15/cdn` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/cdn/mgmt/2020-04-15/cdn/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/cdn/mgmt/2020-09-01/cdn` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/cdn/mgmt/2020-09-01/cdn/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/changeanalysis/mgmt/2021-04-01/changeanalysis` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/changeanalysis/mgmt/2021-04-01/changeanalysis/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.0/customsearch` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/cognitiveservices/v1.0/customsearch/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.0/imagesearch` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/cognitiveservices/v1.0/imagesearch/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.0/videosearch` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/cognitiveservices/v1.0/videosearch/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.0/websearch` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/cognitiveservices/v1.0/websearch/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.1/customvision/prediction` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/cognitiveservices/v1.1/customvision/prediction/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.2/customvision/training` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/cognitiveservices/v1.2/customvision/training/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v2.0/computervision` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/cognitiveservices/v2.0/computervision/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v2.0/textanalytics` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/cognitiveservices/v2.0/textanalytics/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v2.1/computervision` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/cognitiveservices/v2.1/computervision/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v2.1/customvision/training` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/cognitiveservices/v2.1/customvision/training/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v2.1/textanalytics` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/cognitiveservices/v2.1/textanalytics/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v2.2/customvision/training` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/cognitiveservices/v2.2/customvision/training/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v3.0/computervision` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/cognitiveservices/v3.0/computervision/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v3.0/customvision/prediction` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/cognitiveservices/v3.0/customvision/prediction/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v3.0/customvision/training` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/cognitiveservices/v3.0/customvision/training/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v3.1/computervision` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/cognitiveservices/v3.1/computervision/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v3.1/customvision/prediction` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/cognitiveservices/v3.1/customvision/prediction/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v3.1/customvision/training` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/cognitiveservices/v3.1/customvision/training/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v3.2/customvision/training` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/cognitiveservices/v3.2/customvision/training/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v3.3/customvision/training` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/cognitiveservices/v3.3/customvision/training/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/communication/mgmt/2020-08-20/communication` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/communication/mgmt/2020-08-20/communication/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2015-06-15/compute` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/compute/mgmt/2015-06-15/compute/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2016-03-30/compute` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/compute/mgmt/2016-03-30/compute/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2017-03-30/compute` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/compute/mgmt/2017-03-30/compute/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2017-09-01/skus` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/compute/mgmt/2017-09-01/skus/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2017-12-01/compute` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/compute/mgmt/2017-12-01/compute/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-04-01/compute` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/compute/mgmt/2018-04-01/compute/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-06-01/compute` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/compute/mgmt/2018-06-01/compute/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-10-01/compute` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/compute/mgmt/2018-10-01/compute/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2019-03-01/compute` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/compute/mgmt/2019-03-01/compute/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2019-07-01/compute` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/compute/mgmt/2019-07-01/compute/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2019-12-01/compute` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/compute/mgmt/2019-12-01/compute/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2020-06-01/compute` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/compute/mgmt/2020-06-01/compute/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2020-06-30/compute` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/compute/mgmt/2020-06-30/compute/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2020-12-01/compute` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/compute/mgmt/2020-12-01/compute/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/confluent/mgmt/2020-03-01/confluent` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/confluent/mgmt/2020-03-01/confluent/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/consumption/mgmt/2017-11-30/consumption` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/consumption/mgmt/2017-11-30/consumption/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/consumption/mgmt/2018-01-31/consumption` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/consumption/mgmt/2018-01-31/consumption/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/consumption/mgmt/2018-03-31/consumption` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/consumption/mgmt/2018-03-31/consumption/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/consumption/mgmt/2018-05-31/consumption` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/consumption/mgmt/2018-05-31/consumption/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/consumption/mgmt/2018-06-30/consumption` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/consumption/mgmt/2018-06-30/consumption/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/consumption/mgmt/2018-08-31/consumption` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/consumption/mgmt/2018-08-31/consumption/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/consumption/mgmt/2018-10-01/consumption` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/consumption/mgmt/2018-10-01/consumption/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/consumption/mgmt/2019-01-01/consumption` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/consumption/mgmt/2019-01-01/consumption/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/consumption/mgmt/2019-10-01/consumption` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/consumption/mgmt/2019-10-01/consumption/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/containerinstance/mgmt/2018-04-01/containerinstance` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/containerinstance/mgmt/2018-04-01/containerinstance/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/containerinstance/mgmt/2018-06-01/containerinstance` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/containerinstance/mgmt/2018-06-01/containerinstance/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/containerinstance/mgmt/2018-09-01/containerinstance` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/containerinstance/mgmt/2018-09-01/containerinstance/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/containerinstance/mgmt/2018-10-01/containerinstance` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/containerinstance/mgmt/2018-10-01/containerinstance/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/containerinstance/mgmt/2019-12-01/containerinstance` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/containerinstance/mgmt/2019-12-01/containerinstance/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/containerinstance/mgmt/2020-11-01/containerinstance` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/containerinstance/mgmt/2020-11-01/containerinstance/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/containerregistry/mgmt/2017-10-01/containerregistry` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/containerregistry/mgmt/2017-10-01/containerregistry/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/containerregistry/mgmt/2018-09-01/containerregistry` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/containerregistry/mgmt/2018-09-01/containerregistry/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/containerregistry/mgmt/2019-04-01/containerregistry` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/containerregistry/mgmt/2019-04-01/containerregistry/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/containerregistry/mgmt/2019-05-01/containerregistry` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/containerregistry/mgmt/2019-05-01/containerregistry/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2018-03-31/containerservice` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/containerservice/mgmt/2018-03-31/containerservice/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2019-04-30/containerservice` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/containerservice/mgmt/2019-04-30/containerservice/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2019-06-01/containerservice` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/containerservice/mgmt/2019-06-01/containerservice/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2019-08-01/containerservice` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/containerservice/mgmt/2019-08-01/containerservice/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2019-10-01/containerservice` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/containerservice/mgmt/2019-10-01/containerservice/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2019-11-01/containerservice` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/containerservice/mgmt/2019-11-01/containerservice/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2020-01-01/containerservice` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/containerservice/mgmt/2020-01-01/containerservice/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2020-02-01/containerservice` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/containerservice/mgmt/2020-02-01/containerservice/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2020-03-01/containerservice` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/containerservice/mgmt/2020-03-01/containerservice/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2020-04-01/containerservice` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/containerservice/mgmt/2020-04-01/containerservice/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2020-06-01/containerservice` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/containerservice/mgmt/2020-06-01/containerservice/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2020-07-01/containerservice` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/containerservice/mgmt/2020-07-01/containerservice/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2020-09-01/containerservice` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/containerservice/mgmt/2020-09-01/containerservice/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2020-11-01/containerservice` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/containerservice/mgmt/2020-11-01/containerservice/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2020-12-01/containerservice` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/containerservice/mgmt/2020-12-01/containerservice/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2021-02-01/containerservice` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/containerservice/mgmt/2021-02-01/containerservice/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2021-03-01/containerservice` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/containerservice/mgmt/2021-03-01/containerservice/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/cosmos-db/mgmt/2015-04-08/documentdb` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/cosmos-db/mgmt/2015-04-08/documentdb/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/cosmos-db/mgmt/2019-08-01/documentdb` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/cosmos-db/mgmt/2019-08-01/documentdb/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/cosmos-db/mgmt/2021-01-15/documentdb` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/cosmos-db/mgmt/2021-01-15/documentdb/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/cosmos-db/mgmt/2021-03-15/documentdb` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/cosmos-db/mgmt/2021-03-15/documentdb/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/costmanagement/mgmt/2018-05-31/costmanagement` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/costmanagement/mgmt/2018-05-31/costmanagement/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/costmanagement/mgmt/2019-01-01/costmanagement` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/costmanagement/mgmt/2019-01-01/costmanagement/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/costmanagement/mgmt/2019-10-01/costmanagement` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/costmanagement/mgmt/2019-10-01/costmanagement/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/costmanagement/mgmt/2020-06-01/costmanagement` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/costmanagement/mgmt/2020-06-01/costmanagement/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/customerinsights/mgmt/2017-01-01/customerinsights` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/customerinsights/mgmt/2017-01-01/customerinsights/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/customerinsights/mgmt/2017-04-26/customerinsights` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/customerinsights/mgmt/2017-04-26/customerinsights/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/databox/mgmt/2018-01-01/databox` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/databox/mgmt/2018-01-01/databox/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/databox/mgmt/2019-09-01/databox` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/databox/mgmt/2019-09-01/databox/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/databox/mgmt/2020-04-01/databox` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/databox/mgmt/2020-04-01/databox/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/databox/mgmt/2020-11-01/databox` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/databox/mgmt/2020-11-01/databox/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/databoxedge/mgmt/2019-03-01/databoxedge` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/databoxedge/mgmt/2019-03-01/databoxedge/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/databoxedge/mgmt/2019-07-01/databoxedge` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/databoxedge/mgmt/2019-07-01/databoxedge/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/databoxedge/mgmt/2019-08-01/databoxedge` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/databoxedge/mgmt/2019-08-01/databoxedge/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/databoxedge/mgmt/2020-12-01/databoxedge` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/databoxedge/mgmt/2020-12-01/databoxedge/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/databricks/mgmt/2018-04-01/databricks` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/databricks/mgmt/2018-04-01/databricks/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/datalake/analytics/2016-11-01-preview/catalog` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/datalake/analytics/2016-11-01-preview/catalog/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/datalake/analytics/2016-11-01/job` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/datalake/analytics/2016-11-01/job/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/datalake/analytics/mgmt/2016-11-01/account` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/datalake/analytics/mgmt/2016-11-01/account/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/datalake/store/2016-11-01/filesystem` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/datalake/store/2016-11-01/filesystem/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/datalake/store/mgmt/2016-11-01/account` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/datalake/store/mgmt/2016-11-01/account/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/datamigration/mgmt/2018-04-19/datamigration` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/datamigration/mgmt/2018-04-19/datamigration/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/dataprotection/mgmt/2021-01-01/dataprotection` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/dataprotection/mgmt/2021-01-01/dataprotection/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/datashare/mgmt/2019-11-01/datashare` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/datashare/mgmt/2019-11-01/datashare/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/devspaces/mgmt/2019-04-01/devspaces` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/devspaces/mgmt/2019-04-01/devspaces/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/devtestlabs/mgmt/2016-05-15/dtl` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/devtestlabs/mgmt/2016-05-15/dtl/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/devtestlabs/mgmt/2018-09-15/dtl` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/devtestlabs/mgmt/2018-09-15/dtl/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/digitaltwins/mgmt/2020-10-31/digitaltwins` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/digitaltwins/mgmt/2020-10-31/digitaltwins/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/digitaltwins/mgmt/2020-12-01/digitaltwins` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/digitaltwins/mgmt/2020-12-01/digitaltwins/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/dns/mgmt/2016-04-01/dns` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/dns/mgmt/2016-04-01/dns/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/dns/mgmt/2017-09-01/dns` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/dns/mgmt/2017-09-01/dns/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/dns/mgmt/2017-10-01/dns` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/dns/mgmt/2017-10-01/dns/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/domainservices/mgmt/2017-01-01/aad` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/domainservices/mgmt/2017-01-01/aad/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/domainservices/mgmt/2017-06-01/aad` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/domainservices/mgmt/2017-06-01/aad/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/domainservices/mgmt/2020-01-01/aad` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/domainservices/mgmt/2020-01-01/aad/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/eventgrid/2018-01-01/eventgrid` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/eventgrid/2018-01-01/eventgrid/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/eventgrid/mgmt/2018-01-01/eventgrid` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/eventgrid/mgmt/2018-01-01/eventgrid/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/eventgrid/mgmt/2019-01-01/eventgrid` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/eventgrid/mgmt/2019-01-01/eventgrid/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/eventgrid/mgmt/2019-06-01/eventgrid` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/eventgrid/mgmt/2019-06-01/eventgrid/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/eventgrid/mgmt/2020-06-01/eventgrid` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/eventgrid/mgmt/2020-06-01/eventgrid/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/eventhub/mgmt/2015-08-01/eventhub` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/eventhub/mgmt/2015-08-01/eventhub/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/eventhub/mgmt/2017-04-01/eventhub` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/eventhub/mgmt/2017-04-01/eventhub/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/frontdoor/mgmt/2019-04-01/frontdoor` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/frontdoor/mgmt/2019-04-01/frontdoor/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/frontdoor/mgmt/2019-05-01/frontdoor` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/frontdoor/mgmt/2019-05-01/frontdoor/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/frontdoor/mgmt/2019-10-01/frontdoor` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/frontdoor/mgmt/2019-10-01/frontdoor/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/frontdoor/mgmt/2019-11-01/frontdoor` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/frontdoor/mgmt/2019-11-01/frontdoor/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/frontdoor/mgmt/2020-01-01/frontdoor` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/frontdoor/mgmt/2020-01-01/frontdoor/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/frontdoor/mgmt/2020-04-01/frontdoor` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/frontdoor/mgmt/2020-04-01/frontdoor/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/frontdoor/mgmt/2020-05-01/frontdoor` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/frontdoor/mgmt/2020-05-01/frontdoor/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/guestconfiguration/mgmt/2020-06-25/guestconfiguration` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/guestconfiguration/mgmt/2020-06-25/guestconfiguration/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/hdinsight/mgmt/2018-06-01/hdinsight` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/hdinsight/mgmt/2018-06-01/hdinsight/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/healthbot/mgmt/2020-12-08/healthbot` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/healthbot/mgmt/2020-12-08/healthbot/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/healthcareapis/mgmt/2019-09-16/healthcareapis` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/healthcareapis/mgmt/2019-09-16/healthcareapis/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/healthcareapis/mgmt/2020-03-15/healthcareapis` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/healthcareapis/mgmt/2020-03-15/healthcareapis/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/healthcareapis/mgmt/2020-03-30/healthcareapis` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/healthcareapis/mgmt/2020-03-30/healthcareapis/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/hybridcompute/mgmt/2019-12-12/hybridcompute` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/hybridcompute/mgmt/2019-12-12/hybridcompute/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/hybridcompute/mgmt/2020-08-02/hybridcompute` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/hybridcompute/mgmt/2020-08-02/hybridcompute/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/hybriddatamanager/mgmt/2016-06-01/hybriddata` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/hybriddatamanager/mgmt/2019-06-01/hybriddata` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/hybridkubernetes/mgmt/2021-03-01/hybridkubernetes` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/hybridkubernetes/mgmt/2021-03-01/hybridkubernetes/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/iotcentral/mgmt/2018-09-01/iotcentral` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/iotcentral/mgmt/2018-09-01/iotcentral/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/iothub/mgmt/2016-02-03/devices` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/iothub/mgmt/2016-02-03/devices/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/iothub/mgmt/2017-01-19/devices` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/iothub/mgmt/2017-01-19/devices/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/iothub/mgmt/2017-07-01/devices` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/iothub/mgmt/2017-07-01/devices/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/iothub/mgmt/2018-01-22/devices` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/iothub/mgmt/2018-01-22/devices/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/iothub/mgmt/2018-04-01/devices` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/iothub/mgmt/2018-04-01/devices/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/iothub/mgmt/2020-03-01/devices` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/iothub/mgmt/2020-03-01/devices/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/keyvault/2015-06-01/keyvault` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/keyvault/2015-06-01/keyvault/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/keyvault/2016-10-01/keyvault` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/keyvault/2016-10-01/keyvault/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/keyvault/mgmt/2016-10-01/keyvault` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/keyvault/mgmt/2016-10-01/keyvault/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/keyvault/mgmt/2018-02-14/keyvault` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/keyvault/mgmt/2018-02-14/keyvault/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/keyvault/mgmt/2019-09-01/keyvault` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/keyvault/mgmt/2019-09-01/keyvault/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/keyvault/v7.0/keyvault` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/keyvault/v7.0/keyvault/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/keyvault/v7.1/keyvault` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/keyvault/v7.1/keyvault/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/kubernetesconfiguration/mgmt/2021-03-01/kubernetesconfiguration` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/kubernetesconfiguration/mgmt/2021-03-01/kubernetesconfiguration/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/kusto/mgmt/2019-01-21/kusto` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/kusto/mgmt/2019-01-21/kusto/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/kusto/mgmt/2019-05-15/kusto` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/kusto/mgmt/2019-05-15/kusto/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/kusto/mgmt/2019-09-07/kusto` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/kusto/mgmt/2019-09-07/kusto/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/kusto/mgmt/2019-11-09/kusto` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/kusto/mgmt/2019-11-09/kusto/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/kusto/mgmt/2020-02-15/kusto` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/kusto/mgmt/2020-02-15/kusto/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/kusto/mgmt/2020-06-14/kusto` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/kusto/mgmt/2020-06-14/kusto/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/kusto/mgmt/2020-09-18/kusto` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/kusto/mgmt/2020-09-18/kusto/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/labservices/mgmt/2018-10-15/labservices` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/labservices/mgmt/2018-10-15/labservices/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/logic/mgmt/2016-06-01/logic` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/logic/mgmt/2016-06-01/logic/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/logic/mgmt/2019-05-01/logic` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/logic/mgmt/2019-05-01/logic/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/machinelearning/mgmt/2017-01-01/webservices` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/machinelearning/mgmt/2017-01-01/webservices/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/machinelearningservices/mgmt/2018-11-19/machinelearningservices` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/machinelearningservices/mgmt/2018-11-19/machinelearningservices/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/machinelearningservices/mgmt/2019-06-01/machinelearningservices` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/machinelearningservices/mgmt/2019-06-01/machinelearningservices/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/maintenance/mgmt/2020-04-01/maintenance` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/maintenance/mgmt/2020-04-01/maintenance/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/maintenance/mgmt/2021-05-01/maintenance` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/maintenance/mgmt/2021-05-01/maintenance/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/managedservices/mgmt/2019-06-01/managedservices` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/managedservices/mgmt/2019-06-01/managedservices/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/maps/mgmt/2017-01-01-preview/maps` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/maps/mgmt/2017-01-01-preview/maps/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/maps/mgmt/2018-05-01/maps` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/maps/mgmt/2018-05-01/maps/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/maps/mgmt/2021-02-01/maps` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/maps/mgmt/2021-02-01/maps/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/mariadb/mgmt/2018-06-01/mariadb/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2020-01-01/mariadb` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/mariadb/mgmt/2020-01-01/mariadb/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/marketplaceordering/mgmt/2015-06-01/marketplaceordering` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/marketplaceordering/mgmt/2015-06-01/marketplaceordering/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2015-10-01/media` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/mediaservices/mgmt/2015-10-01/media/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2018-07-01/media` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/mediaservices/mgmt/2018-07-01/media/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/mediaservices/mgmt/2020-05-01/media/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/migrate/mgmt/2018-02-02/migrate` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/migrate/mgmt/2018-02-02/migrate/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/migrate/mgmt/2020-01-01/migrate` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/migrate/mgmt/2020-01-01/migrate/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/mixedreality/mgmt/2021-01-01/mixedreality` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/mixedreality/mgmt/2021-01-01/mixedreality/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/monitor/mgmt/2020-10-01/insights` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/monitor/mgmt/2020-10-01/insights/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/msi/mgmt/2018-11-30/msi` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/msi/mgmt/2018-11-30/msi/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2017-12-01/mysql` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/mysql/mgmt/2017-12-01/mysql/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2020-01-01/mysql` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/mysql/mgmt/2020-01-01/mysql/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/netapp/mgmt/2020-02-01/netapp` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/netapp/mgmt/2020-02-01/netapp/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/netapp/mgmt/2020-03-01/netapp` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/netapp/mgmt/2020-03-01/netapp/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/netapp/mgmt/2020-05-01/netapp` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/netapp/mgmt/2020-05-01/netapp/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/netapp/mgmt/2020-06-01/netapp` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/netapp/mgmt/2020-06-01/netapp/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/netapp/mgmt/2020-07-01/netapp` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/netapp/mgmt/2020-07-01/netapp/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/netapp/mgmt/2020-08-01/netapp` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/netapp/mgmt/2020-08-01/netapp/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/netapp/mgmt/2020-09-01/netapp` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/netapp/mgmt/2020-09-01/netapp/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/netapp/mgmt/2020-11-01/netapp` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/netapp/mgmt/2020-11-01/netapp/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/netapp/mgmt/2020-12-01/netapp` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/netapp/mgmt/2020-12-01/netapp/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/network/mgmt/2016-09-01/network` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/network/mgmt/2016-09-01/network/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/network/mgmt/2016-12-01/network` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/network/mgmt/2016-12-01/network/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/network/mgmt/2017-03-01/network` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/network/mgmt/2017-03-01/network/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/network/mgmt/2017-06-01/network` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/network/mgmt/2017-06-01/network/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/network/mgmt/2017-08-01/network` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/network/mgmt/2017-08-01/network/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/network/mgmt/2017-09-01/network` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/network/mgmt/2017-09-01/network/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/network/mgmt/2017-10-01/network` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/network/mgmt/2017-10-01/network/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/network/mgmt/2017-11-01/network` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/network/mgmt/2017-11-01/network/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-01-01/network` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/network/mgmt/2018-01-01/network/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-02-01/network` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/network/mgmt/2018-02-01/network/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-04-01/network` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/network/mgmt/2018-04-01/network/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-06-01/network` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/network/mgmt/2018-06-01/network/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-07-01/network` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/network/mgmt/2018-07-01/network/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-08-01/network` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/network/mgmt/2018-08-01/network/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-10-01/network` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/network/mgmt/2018-10-01/network/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-11-01/network` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/network/mgmt/2018-11-01/network/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/network/mgmt/2018-12-01/network/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/network/mgmt/2019-02-01/network` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/network/mgmt/2019-02-01/network/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/network/mgmt/2019-04-01/network` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/network/mgmt/2019-04-01/network/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/network/mgmt/2019-06-01/network` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/network/mgmt/2019-06-01/network/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/network/mgmt/2019-07-01/network` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/network/mgmt/2019-07-01/network/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/network/mgmt/2019-08-01/network` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/network/mgmt/2019-08-01/network/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/network/mgmt/2019-09-01/network` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/network/mgmt/2019-09-01/network/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/network/mgmt/2019-11-01/network` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/network/mgmt/2019-11-01/network/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/network/mgmt/2019-12-01/network` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/network/mgmt/2019-12-01/network/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/network/mgmt/2020-03-01/network` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/network/mgmt/2020-03-01/network/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/network/mgmt/2020-04-01/network` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/network/mgmt/2020-04-01/network/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/network/mgmt/2020-05-01/network` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/network/mgmt/2020-05-01/network/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/network/mgmt/2020-06-01/network` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/network/mgmt/2020-06-01/network/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/network/mgmt/2020-07-01/network` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/network/mgmt/2020-07-01/network/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/network/mgmt/2020-08-01/network` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/network/mgmt/2020-08-01/network/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/notificationhubs/mgmt/2017-04-01/notificationhubs` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/notificationhubs/mgmt/2017-04-01/notificationhubs/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/operationalinsights/mgmt/2015-03-20/operationalinsights` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/operationalinsights/mgmt/2015-03-20/operationalinsights/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/operationalinsights/mgmt/2020-08-01/operationalinsights` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/operationalinsights/mgmt/2020-08-01/operationalinsights/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/operationalinsights/mgmt/2020-10-01/operationalinsights` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/operationalinsights/mgmt/2020-10-01/operationalinsights/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/peering/mgmt/2020-04-01/peering` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/peering/mgmt/2020-04-01/peering/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/peering/mgmt/2020-10-01/peering` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/peering/mgmt/2020-10-01/peering/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/personalizer/v1.0/personalizer` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/personalizer/v1.0/personalizer/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/policyinsights/mgmt/2018-04-04/policyinsights` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/policyinsights/mgmt/2018-04-04/policyinsights/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/postgresql/mgmt/2017-12-01/postgresql` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/postgresql/mgmt/2017-12-01/postgresql/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/postgresql/mgmt/2020-01-01/postgresql` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/postgresql/mgmt/2020-01-01/postgresql/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/powerbidedicated/mgmt/2017-10-01/powerbidedicated` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/powerbidedicated/mgmt/2017-10-01/powerbidedicated/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/alertsmanagement/mgmt/2018-05-05-preview/alertsmanagement` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/alertsmanagement/mgmt/2018-05-05-preview/alertsmanagement/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/alertsmanagement/mgmt/2019-05-05-preview/alertsmanagement` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/alertsmanagement/mgmt/2019-05-05-preview/alertsmanagement/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/apimanagement/ctrl/2017-03-01/apimanagement` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/appconfiguration/mgmt/2019-02-01-preview/appconfiguration` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/appconfiguration/mgmt/2019-02-01-preview/appconfiguration/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/appconfiguration/mgmt/2019-11-01-preview/appconfiguration` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/appconfiguration/mgmt/2019-11-01-preview/appconfiguration/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/appconfiguration/mgmt/2020-07-01-preview/appconfiguration` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/appconfiguration/mgmt/2020-07-01-preview/appconfiguration/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2020-11-01-preview/appplatform` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/appplatform/mgmt/2020-11-01-preview/appplatform/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/authorization/mgmt/2018-07-01-preview/authorization` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/authorization/mgmt/2018-07-01-preview/authorization/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/authorization/mgmt/2018-09-01-preview/authorization` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/authorization/mgmt/2018-09-01-preview/authorization/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/automanage/mgmt/2020-06-30-preview/automanage` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/automanage/mgmt/2020-06-30-preview/automanage/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/automation/mgmt/2017-05-15-preview/automation` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/automation/mgmt/2017-05-15-preview/automation/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/automation/mgmt/2018-01-15-preview/automation` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/automation/mgmt/2018-01-15-preview/automation/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/automation/mgmt/2018-06-30-preview/automation` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/automation/mgmt/2018-06-30-preview/automation/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/avs/mgmt/2020-07-17-preview/avs` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/avs/mgmt/2020-07-17-preview/avs/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/azurestackhci/mgmt/2020-03-01-preview/azurestackhci` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/azurestackhci/mgmt/2020-03-01-preview/azurestackhci/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/baremetalinfrastructure/mgmt/2020-08-06-preview/baremetalinfrastructure` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/baremetalinfrastructure/mgmt/2020-08-06-preview/baremetalinfrastructure/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/billing/mgmt/2017-02-27-preview/billing/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-04-24-preview/billing` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/billing/mgmt/2017-04-24-preview/billing/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2018-03-01-preview/billing` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/billing/mgmt/2018-03-01-preview/billing/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2018-11-01-preview/billing` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/billing/mgmt/2018-11-01-preview/billing/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2020-05-01-preview/billing` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/billing/mgmt/2020-05-01-preview/billing/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/blueprint/mgmt/2018-11-01-preview/blueprint` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/blueprint/mgmt/2018-11-01-preview/blueprint/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/botservice/mgmt/2017-12-01/botservice` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/botservice/mgmt/2017-12-01/botservice/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/botservice/mgmt/2018-07-12/botservice` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/botservice/mgmt/2018-07-12/botservice/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/mgmt/2016-02-01-preview/cognitiveservices` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/cognitiveservices/mgmt/2016-02-01-preview/cognitiveservices/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/v1.0/visualsearch` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/cognitiveservices/v1.0/visualsearch/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/v3.4-preview/customvision/training` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/cognitiveservices/v3.4-preview/customvision/training/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/communication/mgmt/2020-08-20-preview/communication` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/communication/mgmt/2020-08-20-preview/communication/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/compute/mgmt/2016-04-30-preview/compute` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/compute/mgmt/2016-04-30-preview/compute/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/compute/mgmt/2020-10-01-preview/compute` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/compute/mgmt/2020-10-01-preview/compute/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/confidentialledger/mgmt/2020-12-01-preview/confidentialledger` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/confidentialledger/mgmt/2020-12-01-preview/confidentialledger/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/confluent/mgmt/2020-03-01-preview/confluent` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/confluent/mgmt/2020-03-01-preview/confluent/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/confluent/mgmt/2021-03-01-preview/confluent` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/confluent/mgmt/2021-03-01-preview/confluent/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/consumption/mgmt/2017-04-24-preview/consumption` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/consumption/mgmt/2017-04-24-preview/consumption/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/consumption/mgmt/2017-12-30-preview/consumption` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/consumption/mgmt/2017-12-30-preview/consumption/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/containerinstance/mgmt/2017-10-01-preview/containerinstance` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/containerinstance/mgmt/2017-10-01-preview/containerinstance/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/containerinstance/mgmt/2017-12-01-preview/containerinstance` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/containerinstance/mgmt/2017-12-01-preview/containerinstance/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/containerinstance/mgmt/2018-02-01-preview/containerinstance` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/containerinstance/mgmt/2018-02-01-preview/containerinstance/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/containerregistry/mgmt/2017-06-01-preview/containerregistry` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/containerregistry/mgmt/2017-06-01-preview/containerregistry/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/containerregistry/mgmt/2018-02-01/containerregistry` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/containerservice/mgmt/2018-08-01-preview/containerservice` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/containerservice/mgmt/2018-08-01-preview/containerservice/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/containerservice/mgmt/2018-09-30-preview/containerservice` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/containerservice/mgmt/2018-09-30-preview/containerservice/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/containerservice/mgmt/2019-02-01-preview/containerservice` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/containerservice/mgmt/2019-02-01-preview/containerservice/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/containerservice/mgmt/2019-10-27-preview/containerservice` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/containerservice/mgmt/2019-10-27-preview/containerservice/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/cosmos-db/mgmt/2020-09-01-preview/documentdb` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/cosmos-db/mgmt/2020-09-01-preview/documentdb/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/cosmos-db/mgmt/2021-03-01-preview/documentdb` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/cosmos-db/mgmt/2021-03-01-preview/documentdb/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/costmanagement/mgmt/2019-03-01/costmanagement` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/customerlockbox/mgmt/2018-02-28-preview/customerlockbox` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/customerlockbox/mgmt/2018-02-28-preview/customerlockbox/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/customproviders/mgmt/2018-09-01-preview/customproviders` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/customproviders/mgmt/2018-09-01-preview/customproviders/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/2015-11-01-preview/job` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/datalake/analytics/2015-11-01-preview/job/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/2016-03-20-preview/job` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/datalake/analytics/2016-03-20-preview/job/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/2017-09-01-preview/job` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/datalake/analytics/2017-09-01-preview/job/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/datalake/store/2015-10-01-preview/filesystem` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/datalake/store/2015-10-01-preview/filesystem/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/datalake/store/mgmt/2015-10-01-preview/account` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/datalake/store/mgmt/2015-10-01-preview/account/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/datashare/mgmt/2018-11-01-preview/datashare` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/datashare/mgmt/2018-11-01-preview/datashare/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/delegatednetwork/mgmt/2020-08-08-preview/delegatednetwork` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/delegatednetwork/mgmt/2020-08-08-preview/delegatednetwork/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/deviceupdate/mgmt/2020-03-01-preview/deviceupdate` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/deviceupdate/mgmt/2020-03-01-preview/deviceupdate/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/devops/mgmt/2019-07-01-preview/devops` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/devops/mgmt/2019-07-01-preview/devops/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/digitaltwins/mgmt/2020-03-01-preview/digitaltwins` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/digitaltwins/mgmt/2020-03-01-preview/digitaltwins/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2015-05-04-preview/dns` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/dns/mgmt/2015-05-04-preview/dns/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/dns/mgmt/2018-03-01-preview/dns/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/elastic/mgmt/2020-07-01-preview/elastic` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/elastic/mgmt/2020-07-01-preview/elastic/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/engagementfabric/mgmt/2018-09-01/engagementfabric` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/engagementfabric/mgmt/2018-09-01/engagementfabric/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/eventgrid/mgmt/2017-06-15-preview/eventgrid` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/eventgrid/mgmt/2017-06-15-preview/eventgrid/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/eventgrid/mgmt/2017-09-15-preview/eventgrid` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/eventgrid/mgmt/2017-09-15-preview/eventgrid/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/eventgrid/mgmt/2018-05-01-preview/eventgrid` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/eventgrid/mgmt/2018-05-01-preview/eventgrid/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/eventgrid/mgmt/2019-02-01-preview/eventgrid` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/eventgrid/mgmt/2019-02-01-preview/eventgrid/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/eventgrid/mgmt/2020-01-01-preview/eventgrid` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/eventgrid/mgmt/2020-01-01-preview/eventgrid/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/eventgrid/mgmt/2020-10-15-preview/eventgrid` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/eventgrid/mgmt/2020-10-15-preview/eventgrid/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/extendedlocation/mgmt/2021-03-15-preview/extendedlocation` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/extendedlocation/mgmt/2021-03-15-preview/extendedlocation/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/hanaonazure/mgmt/2017-11-03-preview/hanaonazure` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/hanaonazure/mgmt/2017-11-03-preview/hanaonazure/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/hardwaresecuritymodules/mgmt/2018-10-31-preview/hardwaresecuritymodules` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/hardwaresecuritymodules/mgmt/2018-10-31-preview/hardwaresecuritymodules/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/healthcareapis/mgmt/2018-08-20-preview/healthcareapis` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/healthcareapis/mgmt/2018-08-20-preview/healthcareapis/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/hybridkubernetes/mgmt/2020-01-01-preview/hybridkubernetes` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/hybridkubernetes/mgmt/2020-01-01-preview/hybridkubernetes/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/iothub/mgmt/2018-12-01-preview/devices` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/iothub/mgmt/2018-12-01-preview/devices/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/iothub/mgmt/2019-03-22-preview/devices` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/iothub/mgmt/2019-03-22-preview/devices/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/iothub/mgmt/2019-07-01-preview/devices` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/iothub/mgmt/2019-07-01-preview/devices/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/iothub/mgmt/2021-03-03-preview/devices` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/iothub/mgmt/2021-03-03-preview/devices/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/iotspaces/mgmt/2017-10-01-preview/iotspaces` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/iotspaces/mgmt/2017-10-01-preview/iotspaces/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/keyvault/mgmt/2020-04-01-preview/keyvault` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/keyvault/mgmt/2020-04-01-preview/keyvault/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/keyvault/v7.2-preview/keyvault` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/keyvault/v7.2-preview/keyvault/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/kubernetesconfiguration/mgmt/2019-11-01-preview/kubernetesconfiguration` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/kubernetesconfiguration/mgmt/2019-11-01-preview/kubernetesconfiguration/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/kubernetesconfiguration/mgmt/2020-07-01-preview/kubernetesconfiguration` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/kubernetesconfiguration/mgmt/2020-07-01-preview/kubernetesconfiguration/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/kusto/mgmt/2018-09-07-preview/kusto` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/kusto/mgmt/2018-09-07-preview/kusto/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/logic/mgmt/2015-02-01-preview/logic` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/logic/mgmt/2015-02-01-preview/logic/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/logic/mgmt/2018-07-01-preview/logic` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/logic/mgmt/2018-07-01-preview/logic/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/machinelearning/mgmt/2016-05-01-preview/commitmentplans` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/machinelearning/mgmt/2016-05-01-preview/commitmentplans/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/machinelearning/mgmt/2017-08-01-preview/compute` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/machinelearning/mgmt/2017-08-01-preview/compute/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/maintenance/mgmt/2018-06-01-preview/maintenance` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/maintenance/mgmt/2018-06-01-preview/maintenance/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/managednetwork/mgmt/2019-06-01-preview/managednetwork` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/managednetwork/mgmt/2019-06-01-preview/managednetwork/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/managedservices/mgmt/2018-06-01/managedservices` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/managedservices/mgmt/2018-06-01/managedservices/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/managedservices/mgmt/2019-04-01/managedservices` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/managedservices/mgmt/2019-04-01/managedservices/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/maps/mgmt/2020-02-01-preview/maps` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/maps/mgmt/2020-02-01-preview/maps/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/mediaservices/mgmt/2018-03-30-preview/media` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/mediaservices/mgmt/2018-03-30-preview/media/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/mediaservices/mgmt/2018-06-01-preview/media` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/mediaservices/mgmt/2018-06-01-preview/media/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/mediaservices/mgmt/2019-05-01-preview/media` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/mediaservices/mgmt/2019-05-01-preview/media/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/migrate/mgmt/2018-09-01-preview/migrate` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/migrate/mgmt/2018-09-01-preview/migrate/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/mixedreality/mgmt/2019-02-28/mixedreality` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/mixedreality/mgmt/2019-02-28/mixedreality/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/mixedreality/mgmt/2021-03-01-preview/mixedreality` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/mixedreality/mgmt/2021-03-01-preview/mixedreality/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/monitor/mgmt/2017-05-01-preview/insights/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/monitor/mgmt/2018-03-01/insights/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-09-01/insights` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/monitor/mgmt/2018-09-01/insights/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-11-01-preview/insights` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/monitor/mgmt/2018-11-01-preview/insights/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2019-03-01/insights` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/monitor/mgmt/2019-03-01/insights/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2019-06-01/insights` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/monitor/mgmt/2019-06-01/insights/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2019-11-01-preview/insights` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/monitor/mgmt/2019-11-01-preview/insights/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/msi/mgmt/2015-08-31-preview/msi` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/msi/mgmt/2015-08-31-preview/msi/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2017-12-01-preview/mysql` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/mysql/mgmt/2017-12-01-preview/mysql/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/peering/mgmt/2019-08-01-preview/peering` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/peering/mgmt/2019-08-01-preview/peering/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/peering/mgmt/2019-09-01-preview/peering` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/peering/mgmt/2019-09-01-preview/peering/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/peering/mgmt/2020-01-01-preview/peering` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/peering/mgmt/2020-01-01-preview/peering/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/policyinsights/mgmt/2018-07-01-preview/policyinsights` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/policyinsights/mgmt/2018-07-01-preview/policyinsights/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/policyinsights/mgmt/2019-10-01-preview/policyinsights` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/policyinsights/mgmt/2019-10-01-preview/policyinsights/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/portal/mgmt/2015-08-01-preview/portal` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/portal/mgmt/2015-08-01-preview/portal/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/portal/mgmt/2018-10-01-preview/portal` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/portal/mgmt/2018-10-01-preview/portal/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/portal/mgmt/2019-01-01-preview/portal` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/portal/mgmt/2019-01-01-preview/portal/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/powerplatform/mgmt/2020-10-30/powerplatform` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/powerplatform/mgmt/2020-10-30/powerplatform/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/mgmt/2017-08-21-preview/iothub` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/provisioningservices/mgmt/2017-08-21-preview/iothub/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/purview/mgmt/2020-12-01-preview/purview` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/purview/mgmt/2020-12-01-preview/purview/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/quantum/mgmt/2019-11-04-preview/quantum` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/quantum/mgmt/2019-11-04-preview/quantum/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/redis/mgmt/2019-07-01-preview/redis` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/redis/mgmt/2019-07-01-preview/redis/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/redisenterprise/mgmt/2020-10-01-preview/redisenterprise` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/redisenterprise/mgmt/2020-10-01-preview/redisenterprise/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/reservations/mgmt/2018-06-01/reservations` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/reservations/mgmt/2018-06-01/reservations/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/reservations/mgmt/2019-07-19-preview/reservations` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/reservations/mgmt/2019-07-19-preview/reservations/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/reservations/mgmt/2020-10-25/reservations` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/reservations/mgmt/2020-10-25/reservations/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/resourcemover/mgmt/2019-10-01-preview/resourcemover` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/resourcemover/mgmt/2019-10-01-preview/resourcemover/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-08-31-preview/managementgroups` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/resources/mgmt/2017-08-31-preview/managementgroups/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-11-01-preview/managementgroups` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/resources/mgmt/2017-11-01-preview/managementgroups/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2018-01-01-preview/managementgroups` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/resources/mgmt/2018-01-01-preview/managementgroups/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2018-03-01-preview/managementgroups` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2019-06-01-preview/templatespecs` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/resources/mgmt/2019-06-01-preview/templatespecs/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2020-03-01-preview/policy` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/resources/mgmt/2020-03-01-preview/policy/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2020-09-01-preview/policy` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/resources/mgmt/2020-09-01-preview/policy/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/scheduler/mgmt/2014-08-01-preview/scheduler` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/scheduler/mgmt/2014-08-01-preview/scheduler/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/security/mgmt/v1.0/security` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/security/mgmt/v1.0/security/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/security/mgmt/v2.0/security` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/security/mgmt/v2.0/security/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/security/mgmt/v3.0/security` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/security/mgmt/v3.0/security/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/servicefabric/mgmt/2017-07-01-preview/servicefabric` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/servicefabric/mgmt/2017-07-01-preview/servicefabric/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/signalr/mgmt/2018-03-01-preview/signalr` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/signalr/mgmt/2018-03-01-preview/signalr/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/signalr/mgmt/2020-07-01-preview/signalr` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/signalr/mgmt/2020-07-01-preview/signalr/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/signalr/mgmt/2021-04-01-preview/signalr` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/signalr/mgmt/2021-04-01-preview/signalr/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/softwareplan/mgmt/2019-06-01-preview/softwareplan` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/softwareplan/mgmt/2019-06-01-preview/softwareplan/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/sql/mgmt/2015-05-01-preview/sql/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2017-03-01-preview/sql` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/sql/mgmt/2017-03-01-preview/sql/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2017-10-01-preview/sql` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/sql/mgmt/2017-10-01-preview/sql/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2018-06-01-preview/sql` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/sql/mgmt/2018-06-01-preview/sql/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/v3.0/sql` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/sql/mgmt/v3.0/sql/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/v4.0/sql` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/sql/mgmt/v4.0/sql/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/sqlvirtualmachine/mgmt/2017-03-01-preview/sqlvirtualmachine` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/sqlvirtualmachine/mgmt/2017-03-01-preview/sqlvirtualmachine/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/storage/mgmt/2018-03-01-preview/storage` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/storage/mgmt/2018-03-01-preview/storage/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/storage/mgmt/2018-07-01-preview/storage` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/storage/mgmt/2018-07-01-preview/storage/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/storage/mgmt/2020-08-01-preview/storage` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/storage/mgmt/2020-08-01-preview/storage/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/storagepool/mgmt/2020-03-15-preview/storagepool` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/storagepool/mgmt/2020-03-15-preview/storagepool/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/subscription/mgmt/2018-03-01-preview/subscription` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/subscription/mgmt/2018-03-01-preview/subscription/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/subscription/mgmt/2019-10-01-preview/subscription` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/subscription/mgmt/2019-10-01-preview/subscription/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/support/mgmt/2019-05-01-preview/support` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/support/mgmt/2019-05-01-preview/support/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/synapse/2019-06-01-preview/artifacts` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/synapse/2019-06-01-preview/artifacts/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/synapse/mgmt/2019-06-01-preview/synapse` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/synapse/mgmt/2019-06-01-preview/synapse/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/timeseriesinsights/mgmt/2017-02-28-preview/timeseriesinsights` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/timeseriesinsights/mgmt/2017-02-28-preview/timeseriesinsights/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/timeseriesinsights/mgmt/2018-08-15-preview/timeseriesinsights` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/timeseriesinsights/mgmt/2018-08-15-preview/timeseriesinsights/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/trafficmanager/mgmt/2017-09-01-preview/trafficmanager` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/trafficmanager/mgmt/2017-09-01-preview/trafficmanager/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/trafficmanager/mgmt/2018-02-01-preview/trafficmanager` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/trafficmanager/mgmt/2018-02-01-preview/trafficmanager/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/virtualmachineimagebuilder/mgmt/2019-05-01-preview/virtualmachineimagebuilder` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/virtualmachineimagebuilder/mgmt/2019-05-01-preview/virtualmachineimagebuilder/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/web/mgmt/2015-08-01-preview/web` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/web/mgmt/2015-08-01-preview/web/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/webpubsub/mgmt/2021-04-01-preview/webpubsub` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/webpubsub/mgmt/2021-04-01-preview/webpubsub/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/windowsesu/2019-09-16-preview/windowsesu` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/windowsesu/2019-09-16-preview/windowsesu/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/workloadmonitor/mgmt/2020-01-13-preview/workloadmonitor` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/workloadmonitor/mgmt/2020-01-13-preview/workloadmonitor/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/privatedns/mgmt/2018-09-01/privatedns` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/privatedns/mgmt/2018-09-01/privatedns/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/provisioningservices/mgmt/2017-11-15/iothub` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/provisioningservices/mgmt/2017-11-15/iothub/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/provisioningservices/mgmt/2018-01-22/iothub` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/provisioningservices/mgmt/2018-01-22/iothub/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2016-06-01/recoveryservices` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/recoveryservices/mgmt/2016-06-01/recoveryservices/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2016-08-10/siterecovery` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/recoveryservices/mgmt/2016-08-10/siterecovery/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2016-12-01/backup` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/recoveryservices/mgmt/2016-12-01/backup/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2018-01-10/siterecovery` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/recoveryservices/mgmt/2018-01-10/siterecovery/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2018-07-10/siterecovery` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/recoveryservices/mgmt/2018-07-10/siterecovery/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2019-05-13/backup` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/recoveryservices/mgmt/2019-05-13/backup/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2019-06-15/backup` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/recoveryservices/mgmt/2019-06-15/backup/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2020-02-02/backup` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/recoveryservices/mgmt/2020-02-02/backup/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/redhatopenshift/mgmt/2020-04-30/redhatopenshift` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/redhatopenshift/mgmt/2020-04-30/redhatopenshift/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/redis/mgmt/2016-04-01/redis` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/redis/mgmt/2016-04-01/redis/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/redis/mgmt/2017-02-01/redis` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/redis/mgmt/2017-02-01/redis/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/redis/mgmt/2017-10-01/redis` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/redis/mgmt/2017-10-01/redis/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/redis/mgmt/2018-03-01/redis` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/redis/mgmt/2018-03-01/redis/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/redis/mgmt/2020-06-01/redis` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/redis/mgmt/2020-06-01/redis/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/redisenterprise/mgmt/2021-03-01/redisenterprise` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/redisenterprise/mgmt/2021-03-01/redisenterprise/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/relay/mgmt/2016-07-01/relay` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/relay/mgmt/2016-07-01/relay/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/relay/mgmt/2017-04-01/relay` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/relay/mgmt/2017-04-01/relay/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/reservations/mgmt/2017-11-01/reservations` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/reservations/mgmt/2017-11-01/reservations/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/resourcehealth/mgmt/2015-01-01/resourcehealth` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/resourcehealth/mgmt/2015-01-01/resourcehealth/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/resourcehealth/mgmt/2017-07-01/resourcehealth` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/resourcehealth/mgmt/2017-07-01/resourcehealth/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/resourcemover/mgmt/2021-01-01/resourcemover` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/resourcemover/mgmt/2021-01-01/resourcemover/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2015-11-01/resources` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/resources/mgmt/2015-11-01/resources/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-02-01/resources` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/resources/mgmt/2016-02-01/resources/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-06-01/subscriptions` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/resources/mgmt/2016-06-01/subscriptions/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-07-01/resources` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/resources/mgmt/2016-07-01/resources/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-09-01/resources` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/resources/mgmt/2016-09-01/resources/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2017-05-10/resources` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/resources/mgmt/2017-05-10/resources/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-02-01/resources` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/resources/mgmt/2018-02-01/resources/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/resources/mgmt/2018-05-01/resources/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-06-01/subscriptions` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/resources/mgmt/2018-06-01/subscriptions/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-03-01/resources` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/resources/mgmt/2019-03-01/resources/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-05-01/resources` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/resources/mgmt/2019-05-01/resources/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-06-01/subscriptions` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/resources/mgmt/2019-06-01/subscriptions/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-07-01/features` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/resources/mgmt/2019-07-01/features/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-07-01/managedapplications` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/resources/mgmt/2019-07-01/managedapplications/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-09-01/policy` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/resources/mgmt/2019-09-01/policy/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-10-01/resources` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/resources/mgmt/2019-10-01/resources/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-11-01/managementgroups` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/resources/mgmt/2019-11-01/managementgroups/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-11-01/subscriptions` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/resources/mgmt/2019-11-01/subscriptions/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2020-02-01/managementgroups` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/resources/mgmt/2020-02-01/managementgroups/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2020-05-01/managementgroups` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/resources/mgmt/2020-05-01/managementgroups/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2020-06-01/resources` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/resources/mgmt/2020-06-01/resources/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2020-10-01/resources` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/resources/mgmt/2020-10-01/resources/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2021-01-01/subscriptions` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/resources/mgmt/2021-01-01/subscriptions/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/scheduler/mgmt/2016-01-01/scheduler` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/scheduler/mgmt/2016-01-01/scheduler/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/scheduler/mgmt/2016-03-01/scheduler` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/scheduler/mgmt/2016-03-01/scheduler/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/search/mgmt/2015-02-28/search` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/search/mgmt/2015-02-28/search/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/search/mgmt/2015-08-19/search` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/search/mgmt/2015-08-19/search/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/search/mgmt/2020-03-13/search` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/search/mgmt/2020-03-13/search/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/search/mgmt/2020-08-01/search` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/search/mgmt/2020-08-01/search/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/securityinsight/mgmt/v1.0/securityinsight` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/securityinsight/mgmt/v1.0/securityinsight/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/servicebus/mgmt/2015-08-01/servicebus` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/servicebus/mgmt/2015-08-01/servicebus/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/servicebus/mgmt/2017-04-01/servicebus` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/servicebus/mgmt/2017-04-01/servicebus/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/servicefabric/mgmt/2016-09-01/servicefabric` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/servicefabric/mgmt/2016-09-01/servicefabric/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/servicefabric/mgmt/2019-03-01/servicefabric` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/servicefabric/mgmt/2019-03-01/servicefabric/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/signalr/mgmt/2018-10-01/signalr` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/signalr/mgmt/2018-10-01/signalr/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/signalr/mgmt/2020-05-01/signalr` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/signalr/mgmt/2020-05-01/signalr/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/sql/mgmt/2014-04-01/sql` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/sql/mgmt/2014-04-01/sql/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2016-01-01/storage` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/storage/mgmt/2016-01-01/storage/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2016-05-01/storage` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/storage/mgmt/2016-05-01/storage/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2016-12-01/storage` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/storage/mgmt/2016-12-01/storage/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2017-06-01/storage` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/storage/mgmt/2017-06-01/storage/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2017-10-01/storage` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/storage/mgmt/2017-10-01/storage/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2018-02-01/storage` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/storage/mgmt/2018-02-01/storage/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2018-11-01/storage` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/storage/mgmt/2018-11-01/storage/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-04-01/storage` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/storage/mgmt/2019-04-01/storage/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/storage/mgmt/2019-06-01/storage/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2021-01-01/storage` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/storage/mgmt/2021-01-01/storage/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2021-02-01/storage` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/storage/mgmt/2021-02-01/storage/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/storagecache/mgmt/2019-11-01/storagecache` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/storagecache/mgmt/2019-11-01/storagecache/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/storagecache/mgmt/2020-03-01/storagecache` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/storagecache/mgmt/2020-03-01/storagecache/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/storagecache/mgmt/2020-10-01/storagecache` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/storagecache/mgmt/2020-10-01/storagecache/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/storagecache/mgmt/2021-03-01/storagecache` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/storagecache/mgmt/2021-03-01/storagecache/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/storagesync/mgmt/2018-04-02/storagesync` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/storagesync/mgmt/2018-04-02/storagesync/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/storagesync/mgmt/2018-07-01/storagesync` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/storagesync/mgmt/2018-07-01/storagesync/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/storagesync/mgmt/2018-10-01/storagesync` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/storagesync/mgmt/2018-10-01/storagesync/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/storagesync/mgmt/2019-02-01/storagesync` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/storagesync/mgmt/2019-02-01/storagesync/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/storagesync/mgmt/2019-06-01/storagesync` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/storagesync/mgmt/2019-06-01/storagesync/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/storagesync/mgmt/2019-10-01/storagesync` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/storagesync/mgmt/2019-10-01/storagesync/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/storagesync/mgmt/2020-03-01/storagesync` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/storagesync/mgmt/2020-03-01/storagesync/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/storsimple1200series/mgmt/2016-10-01/storsimple` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/storsimple1200series/mgmt/2016-10-01/storsimple/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/streamanalytics/mgmt/2016-03-01/streamanalytics` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/streamanalytics/mgmt/2016-03-01/streamanalytics/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/subscription/mgmt/2020-09-01/subscription` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/subscription/mgmt/2020-09-01/subscription/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/support/mgmt/2020-04-01/support` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/support/mgmt/2020-04-01/support/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/synapse/mgmt/2020-12-01/synapse` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/synapse/mgmt/2020-12-01/synapse/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/synapse/mgmt/2021-03-01/synapse` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/synapse/mgmt/2021-03-01/synapse/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/timeseriesinsights/mgmt/2017-11-15/timeseriesinsights` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/timeseriesinsights/mgmt/2017-11-15/timeseriesinsights/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/timeseriesinsights/mgmt/2020-05-15/timeseriesinsights` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/timeseriesinsights/mgmt/2020-05-15/timeseriesinsights/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/trafficmanager/mgmt/2017-03-01/trafficmanager` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/trafficmanager/mgmt/2017-03-01/trafficmanager/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/trafficmanager/mgmt/2017-05-01/trafficmanager` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/trafficmanager/mgmt/2017-05-01/trafficmanager/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/trafficmanager/mgmt/2018-03-01/trafficmanager` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/trafficmanager/mgmt/2018-03-01/trafficmanager/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/trafficmanager/mgmt/2018-04-01/trafficmanager` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/trafficmanager/mgmt/2018-04-01/trafficmanager/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/web/mgmt/2016-09-01/web` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/web/mgmt/2016-09-01/web/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/web/mgmt/2018-02-01/web/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/web/mgmt/2019-08-01/web/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/web/mgmt/2020-06-01/web` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/web/mgmt/2020-06-01/web/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/web/mgmt/2020-09-01/web` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/web/mgmt/2020-09-01/web/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/web/mgmt/2020-12-01/web` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/web/mgmt/2020-12-01/web/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/windowsiot/mgmt/2019-06-01/windowsiot` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/windowsiot/mgmt/2019-06-01/windowsiot/CHANGELOG.md) | + +### Breaking Changes + +| Package Path | Changelog | +| :--- | :---: | +| `github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2021-03-01/compute` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/compute/mgmt/2021-03-01/compute/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/datadog/mgmt/2021-03-01/datadog` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/datadog/mgmt/2021-03-01/datadog/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/datafactory/mgmt/2018-06-01/datafactory` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/datafactory/mgmt/2018-06-01/datafactory/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/delegatednetwork/mgmt/2021-03-15/delegatednetwork` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/delegatednetwork/mgmt/2021-03-15/delegatednetwork/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/kusto/mgmt/2021-01-01/kusto` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/kusto/mgmt/2021-01-01/kusto/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/network/mgmt/2020-11-01/network` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/network/mgmt/2020-11-01/network/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/cosmos-db/mgmt/2021-04-01-preview/documentdb` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/cosmos-db/mgmt/2021-04-01-preview/documentdb/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/resourcegraph/mgmt/2021-03-01-preview/resourcegraph` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/resourcegraph/mgmt/2021-03-01-preview/resourcegraph/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/videoanalyzer/mgmt/2021-05-01-preview/videoanalyzer` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/videoanalyzer/mgmt/2021-05-01-preview/videoanalyzer/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/securityinsight/mgmt/2020-01-01/securityinsight` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/securityinsight/mgmt/2020-01-01/securityinsight/CHANGELOG.md) | + +### Removed Packages + +- `github.com/Azure/azure-sdk-for-go/services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder` + ## `v54.3.0` ### New Packages @@ -12,7 +660,7 @@ | Package Path | Changelog | | :--- | :---: | -| `github.com/Azure/azure-sdk-for-go/services/preview/authorization/mgmt/2020-04-01-preview/authorization` | [details](https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/authorization/mgmt/2020-04-01-preview/authorization/CHANGELOG.md) | +| `github.com/Azure/azure-sdk-for-go/services/preview/authorization/mgmt/2020-04-01-preview/authorization` | [details](https://github.com/Azure/azure-sdk-for-go/blob/v54.3.0/services/preview/authorization/mgmt/2020-04-01-preview/authorization/CHANGELOG.md) | ## `v54.2.0` diff --git a/generate_options.json b/generate_options.json index a330ed5bc684..d232b3618b10 100644 --- a/generate_options.json +++ b/generate_options.json @@ -1,6 +1,6 @@ { "autorestArguments": [ - "--use=@microsoft.azure/autorest.go@2.1.180", + "--use=@microsoft.azure/autorest.go@2.1.183", "--go", "--verbose", "--go-sdk-folder=.", diff --git a/profiles/latest/cognitiveservices/mgmt/cognitiveservices/cognitiveservicesapi/models.go b/profiles/latest/cognitiveservices/mgmt/cognitiveservices/cognitiveservicesapi/models.go index a1ee76970138..6b04500d9599 100644 --- a/profiles/latest/cognitiveservices/mgmt/cognitiveservices/cognitiveservicesapi/models.go +++ b/profiles/latest/cognitiveservices/mgmt/cognitiveservices/cognitiveservicesapi/models.go @@ -8,10 +8,11 @@ package cognitiveservicesapi -import original "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/cognitiveservicesapi" +import original "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/cognitiveservicesapi" type AccountsClientAPI = original.AccountsClientAPI type BaseClientAPI = original.BaseClientAPI +type DeletedAccountsClientAPI = original.DeletedAccountsClientAPI type OperationsClientAPI = original.OperationsClientAPI type PrivateEndpointConnectionsClientAPI = original.PrivateEndpointConnectionsClientAPI type PrivateLinkResourcesClientAPI = original.PrivateLinkResourcesClientAPI diff --git a/profiles/latest/cognitiveservices/mgmt/cognitiveservices/models.go b/profiles/latest/cognitiveservices/mgmt/cognitiveservices/models.go index b49daed64a17..83a859a5dd7b 100644 --- a/profiles/latest/cognitiveservices/mgmt/cognitiveservices/models.go +++ b/profiles/latest/cognitiveservices/mgmt/cognitiveservices/models.go @@ -11,169 +11,217 @@ package cognitiveservices import ( "context" - original "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices" + original "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices" ) const ( DefaultBaseURI = original.DefaultBaseURI ) -type IdentityType = original.IdentityType +type ActionType = original.ActionType const ( - None IdentityType = original.None - SystemAssigned IdentityType = original.SystemAssigned - UserAssigned IdentityType = original.UserAssigned + ActionTypeInternal ActionType = original.ActionTypeInternal +) + +type CreatedByType = original.CreatedByType + +const ( + CreatedByTypeApplication CreatedByType = original.CreatedByTypeApplication + CreatedByTypeKey CreatedByType = original.CreatedByTypeKey + CreatedByTypeManagedIdentity CreatedByType = original.CreatedByTypeManagedIdentity + CreatedByTypeUser CreatedByType = original.CreatedByTypeUser ) type KeyName = original.KeyName const ( - Key1 KeyName = original.Key1 - Key2 KeyName = original.Key2 + KeyNameKey1 KeyName = original.KeyNameKey1 + KeyNameKey2 KeyName = original.KeyNameKey2 ) type KeySource = original.KeySource const ( - MicrosoftCognitiveServices KeySource = original.MicrosoftCognitiveServices - MicrosoftKeyVault KeySource = original.MicrosoftKeyVault + KeySourceMicrosoftCognitiveServices KeySource = original.KeySourceMicrosoftCognitiveServices + KeySourceMicrosoftKeyVault KeySource = original.KeySourceMicrosoftKeyVault ) type NetworkRuleAction = original.NetworkRuleAction const ( - Allow NetworkRuleAction = original.Allow - Deny NetworkRuleAction = original.Deny + NetworkRuleActionAllow NetworkRuleAction = original.NetworkRuleActionAllow + NetworkRuleActionDeny NetworkRuleAction = original.NetworkRuleActionDeny +) + +type Origin = original.Origin + +const ( + OriginSystem Origin = original.OriginSystem + OriginUser Origin = original.OriginUser + OriginUsersystem Origin = original.OriginUsersystem +) + +type PrivateEndpointConnectionProvisioningState = original.PrivateEndpointConnectionProvisioningState + +const ( + PrivateEndpointConnectionProvisioningStateCreating PrivateEndpointConnectionProvisioningState = original.PrivateEndpointConnectionProvisioningStateCreating + PrivateEndpointConnectionProvisioningStateDeleting PrivateEndpointConnectionProvisioningState = original.PrivateEndpointConnectionProvisioningStateDeleting + PrivateEndpointConnectionProvisioningStateFailed PrivateEndpointConnectionProvisioningState = original.PrivateEndpointConnectionProvisioningStateFailed + PrivateEndpointConnectionProvisioningStateSucceeded PrivateEndpointConnectionProvisioningState = original.PrivateEndpointConnectionProvisioningStateSucceeded ) type PrivateEndpointServiceConnectionStatus = original.PrivateEndpointServiceConnectionStatus const ( - Approved PrivateEndpointServiceConnectionStatus = original.Approved - Disconnected PrivateEndpointServiceConnectionStatus = original.Disconnected - Pending PrivateEndpointServiceConnectionStatus = original.Pending - Rejected PrivateEndpointServiceConnectionStatus = original.Rejected + PrivateEndpointServiceConnectionStatusApproved PrivateEndpointServiceConnectionStatus = original.PrivateEndpointServiceConnectionStatusApproved + PrivateEndpointServiceConnectionStatusPending PrivateEndpointServiceConnectionStatus = original.PrivateEndpointServiceConnectionStatusPending + PrivateEndpointServiceConnectionStatusRejected PrivateEndpointServiceConnectionStatus = original.PrivateEndpointServiceConnectionStatusRejected ) type ProvisioningState = original.ProvisioningState const ( - Creating ProvisioningState = original.Creating - Deleting ProvisioningState = original.Deleting - Failed ProvisioningState = original.Failed - Moving ProvisioningState = original.Moving - ResolvingDNS ProvisioningState = original.ResolvingDNS - Succeeded ProvisioningState = original.Succeeded + ProvisioningStateAccepted ProvisioningState = original.ProvisioningStateAccepted + ProvisioningStateCreating ProvisioningState = original.ProvisioningStateCreating + ProvisioningStateDeleting ProvisioningState = original.ProvisioningStateDeleting + ProvisioningStateFailed ProvisioningState = original.ProvisioningStateFailed + ProvisioningStateMoving ProvisioningState = original.ProvisioningStateMoving + ProvisioningStateResolvingDNS ProvisioningState = original.ProvisioningStateResolvingDNS + ProvisioningStateSucceeded ProvisioningState = original.ProvisioningStateSucceeded ) type PublicNetworkAccess = original.PublicNetworkAccess const ( - Disabled PublicNetworkAccess = original.Disabled - Enabled PublicNetworkAccess = original.Enabled + PublicNetworkAccessDisabled PublicNetworkAccess = original.PublicNetworkAccessDisabled + PublicNetworkAccessEnabled PublicNetworkAccess = original.PublicNetworkAccessEnabled ) type QuotaUsageStatus = original.QuotaUsageStatus const ( - Blocked QuotaUsageStatus = original.Blocked - Included QuotaUsageStatus = original.Included - InOverage QuotaUsageStatus = original.InOverage - Unknown QuotaUsageStatus = original.Unknown + QuotaUsageStatusBlocked QuotaUsageStatus = original.QuotaUsageStatusBlocked + QuotaUsageStatusIncluded QuotaUsageStatus = original.QuotaUsageStatusIncluded + QuotaUsageStatusInOverage QuotaUsageStatus = original.QuotaUsageStatusInOverage + QuotaUsageStatusUnknown QuotaUsageStatus = original.QuotaUsageStatusUnknown +) + +type ResourceIdentityType = original.ResourceIdentityType + +const ( + ResourceIdentityTypeNone ResourceIdentityType = original.ResourceIdentityTypeNone + ResourceIdentityTypeSystemAssigned ResourceIdentityType = original.ResourceIdentityTypeSystemAssigned + ResourceIdentityTypeSystemAssignedUserAssigned ResourceIdentityType = original.ResourceIdentityTypeSystemAssignedUserAssigned + ResourceIdentityTypeUserAssigned ResourceIdentityType = original.ResourceIdentityTypeUserAssigned ) type ResourceSkuRestrictionsReasonCode = original.ResourceSkuRestrictionsReasonCode const ( - NotAvailableForSubscription ResourceSkuRestrictionsReasonCode = original.NotAvailableForSubscription - QuotaID ResourceSkuRestrictionsReasonCode = original.QuotaID + ResourceSkuRestrictionsReasonCodeNotAvailableForSubscription ResourceSkuRestrictionsReasonCode = original.ResourceSkuRestrictionsReasonCodeNotAvailableForSubscription + ResourceSkuRestrictionsReasonCodeQuotaID ResourceSkuRestrictionsReasonCode = original.ResourceSkuRestrictionsReasonCodeQuotaID ) type ResourceSkuRestrictionsType = original.ResourceSkuRestrictionsType const ( - Location ResourceSkuRestrictionsType = original.Location - Zone ResourceSkuRestrictionsType = original.Zone + ResourceSkuRestrictionsTypeLocation ResourceSkuRestrictionsType = original.ResourceSkuRestrictionsTypeLocation + ResourceSkuRestrictionsTypeZone ResourceSkuRestrictionsType = original.ResourceSkuRestrictionsTypeZone ) type SkuTier = original.SkuTier const ( - Enterprise SkuTier = original.Enterprise - Free SkuTier = original.Free - Premium SkuTier = original.Premium - Standard SkuTier = original.Standard + SkuTierBasic SkuTier = original.SkuTierBasic + SkuTierEnterprise SkuTier = original.SkuTierEnterprise + SkuTierFree SkuTier = original.SkuTierFree + SkuTierPremium SkuTier = original.SkuTierPremium + SkuTierStandard SkuTier = original.SkuTierStandard ) type UnitType = original.UnitType const ( - Bytes UnitType = original.Bytes - BytesPerSecond UnitType = original.BytesPerSecond - Count UnitType = original.Count - CountPerSecond UnitType = original.CountPerSecond - Milliseconds UnitType = original.Milliseconds - Percent UnitType = original.Percent - Seconds UnitType = original.Seconds + UnitTypeBytes UnitType = original.UnitTypeBytes + UnitTypeBytesPerSecond UnitType = original.UnitTypeBytesPerSecond + UnitTypeCount UnitType = original.UnitTypeCount + UnitTypeCountPerSecond UnitType = original.UnitTypeCountPerSecond + UnitTypeMilliseconds UnitType = original.UnitTypeMilliseconds + UnitTypePercent UnitType = original.UnitTypePercent + UnitTypeSeconds UnitType = original.UnitTypeSeconds ) +type APIKeys = original.APIKeys +type APIProperties = original.APIProperties type Account = original.Account -type AccountAPIProperties = original.AccountAPIProperties -type AccountEnumerateSkusResult = original.AccountEnumerateSkusResult -type AccountKeys = original.AccountKeys type AccountListResult = original.AccountListResult type AccountListResultIterator = original.AccountListResultIterator type AccountListResultPage = original.AccountListResultPage type AccountProperties = original.AccountProperties +type AccountSku = original.AccountSku +type AccountSkuListResult = original.AccountSkuListResult type AccountsClient = original.AccountsClient +type AccountsCreateFuture = original.AccountsCreateFuture +type AccountsDeleteFuture = original.AccountsDeleteFuture +type AccountsUpdateFuture = original.AccountsUpdateFuture type AzureEntityResource = original.AzureEntityResource type BaseClient = original.BaseClient +type CallRateLimit = original.CallRateLimit type CheckDomainAvailabilityParameter = original.CheckDomainAvailabilityParameter -type CheckDomainAvailabilityResult = original.CheckDomainAvailabilityResult type CheckSkuAvailabilityParameter = original.CheckSkuAvailabilityParameter -type CheckSkuAvailabilityResult = original.CheckSkuAvailabilityResult -type CheckSkuAvailabilityResultList = original.CheckSkuAvailabilityResultList +type DeletedAccountsClient = original.DeletedAccountsClient +type DeletedAccountsPurgeFuture = original.DeletedAccountsPurgeFuture +type DomainAvailability = original.DomainAvailability type Encryption = original.Encryption -type Error = original.Error -type ErrorBody = original.ErrorBody +type ErrorAdditionalInfo = original.ErrorAdditionalInfo +type ErrorDetail = original.ErrorDetail +type ErrorResponse = original.ErrorResponse type IPRule = original.IPRule type Identity = original.Identity type KeyVaultProperties = original.KeyVaultProperties type MetricName = original.MetricName type NetworkRuleSet = original.NetworkRuleSet -type OperationDisplayInfo = original.OperationDisplayInfo -type OperationEntity = original.OperationEntity -type OperationEntityListResult = original.OperationEntityListResult -type OperationEntityListResultIterator = original.OperationEntityListResultIterator -type OperationEntityListResultPage = original.OperationEntityListResultPage +type Operation = original.Operation +type OperationDisplay = original.OperationDisplay +type OperationListResult = original.OperationListResult +type OperationListResultIterator = original.OperationListResultIterator +type OperationListResultPage = original.OperationListResultPage type OperationsClient = original.OperationsClient type PrivateEndpoint = original.PrivateEndpoint type PrivateEndpointConnection = original.PrivateEndpointConnection type PrivateEndpointConnectionListResult = original.PrivateEndpointConnectionListResult type PrivateEndpointConnectionProperties = original.PrivateEndpointConnectionProperties type PrivateEndpointConnectionsClient = original.PrivateEndpointConnectionsClient +type PrivateEndpointConnectionsCreateOrUpdateFuture = original.PrivateEndpointConnectionsCreateOrUpdateFuture +type PrivateEndpointConnectionsDeleteFuture = original.PrivateEndpointConnectionsDeleteFuture type PrivateLinkResource = original.PrivateLinkResource type PrivateLinkResourceListResult = original.PrivateLinkResourceListResult type PrivateLinkResourceProperties = original.PrivateLinkResourceProperties type PrivateLinkResourcesClient = original.PrivateLinkResourcesClient type PrivateLinkServiceConnectionState = original.PrivateLinkServiceConnectionState type ProxyResource = original.ProxyResource +type QuotaLimit = original.QuotaLimit type RegenerateKeyParameters = original.RegenerateKeyParameters +type RequestMatchPattern = original.RequestMatchPattern type Resource = original.Resource -type ResourceAndSku = original.ResourceAndSku type ResourceSku = original.ResourceSku +type ResourceSkuListResult = original.ResourceSkuListResult +type ResourceSkuListResultIterator = original.ResourceSkuListResultIterator +type ResourceSkuListResultPage = original.ResourceSkuListResultPage type ResourceSkuRestrictionInfo = original.ResourceSkuRestrictionInfo type ResourceSkuRestrictions = original.ResourceSkuRestrictions type ResourceSkusClient = original.ResourceSkusClient -type ResourceSkusResult = original.ResourceSkusResult -type ResourceSkusResultIterator = original.ResourceSkusResultIterator -type ResourceSkusResultPage = original.ResourceSkusResultPage type Sku = original.Sku +type SkuAvailability = original.SkuAvailability +type SkuAvailabilityListResult = original.SkuAvailabilityListResult type SkuCapability = original.SkuCapability +type SkuChangeInfo = original.SkuChangeInfo +type SystemData = original.SystemData +type ThrottlingRule = original.ThrottlingRule type TrackedResource = original.TrackedResource type Usage = original.Usage -type UsagesResult = original.UsagesResult +type UsageListResult = original.UsageListResult type UserAssignedIdentity = original.UserAssignedIdentity type UserOwnedStorage = original.UserOwnedStorage type VirtualNetworkRule = original.VirtualNetworkRule @@ -193,11 +241,17 @@ func NewAccountsClient(subscriptionID string) AccountsClient { func NewAccountsClientWithBaseURI(baseURI string, subscriptionID string) AccountsClient { return original.NewAccountsClientWithBaseURI(baseURI, subscriptionID) } -func NewOperationEntityListResultIterator(page OperationEntityListResultPage) OperationEntityListResultIterator { - return original.NewOperationEntityListResultIterator(page) +func NewDeletedAccountsClient(subscriptionID string) DeletedAccountsClient { + return original.NewDeletedAccountsClient(subscriptionID) +} +func NewDeletedAccountsClientWithBaseURI(baseURI string, subscriptionID string) DeletedAccountsClient { + return original.NewDeletedAccountsClientWithBaseURI(baseURI, subscriptionID) } -func NewOperationEntityListResultPage(cur OperationEntityListResult, getNextPage func(context.Context, OperationEntityListResult) (OperationEntityListResult, error)) OperationEntityListResultPage { - return original.NewOperationEntityListResultPage(cur, getNextPage) +func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator { + return original.NewOperationListResultIterator(page) +} +func NewOperationListResultPage(cur OperationListResult, getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage { + return original.NewOperationListResultPage(cur, getNextPage) } func NewOperationsClient(subscriptionID string) OperationsClient { return original.NewOperationsClient(subscriptionID) @@ -217,23 +271,26 @@ func NewPrivateLinkResourcesClient(subscriptionID string) PrivateLinkResourcesCl func NewPrivateLinkResourcesClientWithBaseURI(baseURI string, subscriptionID string) PrivateLinkResourcesClient { return original.NewPrivateLinkResourcesClientWithBaseURI(baseURI, subscriptionID) } +func NewResourceSkuListResultIterator(page ResourceSkuListResultPage) ResourceSkuListResultIterator { + return original.NewResourceSkuListResultIterator(page) +} +func NewResourceSkuListResultPage(cur ResourceSkuListResult, getNextPage func(context.Context, ResourceSkuListResult) (ResourceSkuListResult, error)) ResourceSkuListResultPage { + return original.NewResourceSkuListResultPage(cur, getNextPage) +} func NewResourceSkusClient(subscriptionID string) ResourceSkusClient { return original.NewResourceSkusClient(subscriptionID) } func NewResourceSkusClientWithBaseURI(baseURI string, subscriptionID string) ResourceSkusClient { return original.NewResourceSkusClientWithBaseURI(baseURI, subscriptionID) } -func NewResourceSkusResultIterator(page ResourceSkusResultPage) ResourceSkusResultIterator { - return original.NewResourceSkusResultIterator(page) -} -func NewResourceSkusResultPage(cur ResourceSkusResult, getNextPage func(context.Context, ResourceSkusResult) (ResourceSkusResult, error)) ResourceSkusResultPage { - return original.NewResourceSkusResultPage(cur, getNextPage) -} func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { return original.NewWithBaseURI(baseURI, subscriptionID) } -func PossibleIdentityTypeValues() []IdentityType { - return original.PossibleIdentityTypeValues() +func PossibleActionTypeValues() []ActionType { + return original.PossibleActionTypeValues() +} +func PossibleCreatedByTypeValues() []CreatedByType { + return original.PossibleCreatedByTypeValues() } func PossibleKeyNameValues() []KeyName { return original.PossibleKeyNameValues() @@ -244,6 +301,12 @@ func PossibleKeySourceValues() []KeySource { func PossibleNetworkRuleActionValues() []NetworkRuleAction { return original.PossibleNetworkRuleActionValues() } +func PossibleOriginValues() []Origin { + return original.PossibleOriginValues() +} +func PossiblePrivateEndpointConnectionProvisioningStateValues() []PrivateEndpointConnectionProvisioningState { + return original.PossiblePrivateEndpointConnectionProvisioningStateValues() +} func PossiblePrivateEndpointServiceConnectionStatusValues() []PrivateEndpointServiceConnectionStatus { return original.PossiblePrivateEndpointServiceConnectionStatusValues() } @@ -256,6 +319,9 @@ func PossiblePublicNetworkAccessValues() []PublicNetworkAccess { func PossibleQuotaUsageStatusValues() []QuotaUsageStatus { return original.PossibleQuotaUsageStatusValues() } +func PossibleResourceIdentityTypeValues() []ResourceIdentityType { + return original.PossibleResourceIdentityTypeValues() +} func PossibleResourceSkuRestrictionsReasonCodeValues() []ResourceSkuRestrictionsReasonCode { return original.PossibleResourceSkuRestrictionsReasonCodeValues() } diff --git a/profiles/latest/compute/mgmt/compute/computeapi/models.go b/profiles/latest/compute/mgmt/compute/computeapi/models.go index e2f8ac8d20b7..f8e0799f88de 100644 --- a/profiles/latest/compute/mgmt/compute/computeapi/models.go +++ b/profiles/latest/compute/mgmt/compute/computeapi/models.go @@ -27,12 +27,18 @@ type GalleryApplicationVersionsClientAPI = original.GalleryApplicationVersionsCl type GalleryApplicationsClientAPI = original.GalleryApplicationsClientAPI type GalleryImageVersionsClientAPI = original.GalleryImageVersionsClientAPI type GalleryImagesClientAPI = original.GalleryImagesClientAPI +type GallerySharingProfileClientAPI = original.GallerySharingProfileClientAPI type ImagesClientAPI = original.ImagesClientAPI type LogAnalyticsClientAPI = original.LogAnalyticsClientAPI type OperationsClientAPI = original.OperationsClientAPI type ProximityPlacementGroupsClientAPI = original.ProximityPlacementGroupsClientAPI type ResourceSkusClientAPI = original.ResourceSkusClientAPI +type RestorePointCollectionsClientAPI = original.RestorePointCollectionsClientAPI +type RestorePointsClientAPI = original.RestorePointsClientAPI type SSHPublicKeysClientAPI = original.SSHPublicKeysClientAPI +type SharedGalleriesClientAPI = original.SharedGalleriesClientAPI +type SharedGalleryImageVersionsClientAPI = original.SharedGalleryImageVersionsClientAPI +type SharedGalleryImagesClientAPI = original.SharedGalleryImagesClientAPI type SnapshotsClientAPI = original.SnapshotsClientAPI type UsageClientAPI = original.UsageClientAPI type VirtualMachineExtensionImagesClientAPI = original.VirtualMachineExtensionImagesClientAPI diff --git a/profiles/latest/compute/mgmt/compute/models.go b/profiles/latest/compute/mgmt/compute/models.go index 13842353c521..f6ee621bc50a 100644 --- a/profiles/latest/compute/mgmt/compute/models.go +++ b/profiles/latest/compute/mgmt/compute/models.go @@ -21,25 +21,25 @@ const ( type AccessLevel = original.AccessLevel const ( - None AccessLevel = original.None - Read AccessLevel = original.Read - Write AccessLevel = original.Write + AccessLevelNone AccessLevel = original.AccessLevelNone + AccessLevelRead AccessLevel = original.AccessLevelRead + AccessLevelWrite AccessLevel = original.AccessLevelWrite ) type AggregatedReplicationState = original.AggregatedReplicationState const ( - Completed AggregatedReplicationState = original.Completed - Failed AggregatedReplicationState = original.Failed - InProgress AggregatedReplicationState = original.InProgress - Unknown AggregatedReplicationState = original.Unknown + AggregatedReplicationStateCompleted AggregatedReplicationState = original.AggregatedReplicationStateCompleted + AggregatedReplicationStateFailed AggregatedReplicationState = original.AggregatedReplicationStateFailed + AggregatedReplicationStateInProgress AggregatedReplicationState = original.AggregatedReplicationStateInProgress + AggregatedReplicationStateUnknown AggregatedReplicationState = original.AggregatedReplicationStateUnknown ) type AvailabilitySetSkuTypes = original.AvailabilitySetSkuTypes const ( - Aligned AvailabilitySetSkuTypes = original.Aligned - Classic AvailabilitySetSkuTypes = original.Classic + AvailabilitySetSkuTypesAligned AvailabilitySetSkuTypes = original.AvailabilitySetSkuTypesAligned + AvailabilitySetSkuTypesClassic AvailabilitySetSkuTypes = original.AvailabilitySetSkuTypesClassic ) type CachingTypes = original.CachingTypes @@ -53,15 +53,23 @@ const ( type CloudServiceUpgradeMode = original.CloudServiceUpgradeMode const ( - Auto CloudServiceUpgradeMode = original.Auto - Manual CloudServiceUpgradeMode = original.Manual - Simultaneous CloudServiceUpgradeMode = original.Simultaneous + CloudServiceUpgradeModeAuto CloudServiceUpgradeMode = original.CloudServiceUpgradeModeAuto + CloudServiceUpgradeModeManual CloudServiceUpgradeMode = original.CloudServiceUpgradeModeManual + CloudServiceUpgradeModeSimultaneous CloudServiceUpgradeMode = original.CloudServiceUpgradeModeSimultaneous ) type ComponentNames = original.ComponentNames const ( - MicrosoftWindowsShellSetup ComponentNames = original.MicrosoftWindowsShellSetup + ComponentNamesMicrosoftWindowsShellSetup ComponentNames = original.ComponentNamesMicrosoftWindowsShellSetup +) + +type ConsistencyModeTypes = original.ConsistencyModeTypes + +const ( + ConsistencyModeTypesApplicationConsistent ConsistencyModeTypes = original.ConsistencyModeTypesApplicationConsistent + ConsistencyModeTypesCrashConsistent ConsistencyModeTypes = original.ConsistencyModeTypesCrashConsistent + ConsistencyModeTypesFileSystemConsistent ConsistencyModeTypes = original.ConsistencyModeTypesFileSystemConsistent ) type DedicatedHostLicenseTypes = original.DedicatedHostLicenseTypes @@ -72,29 +80,36 @@ const ( DedicatedHostLicenseTypesWindowsServerPerpetual DedicatedHostLicenseTypes = original.DedicatedHostLicenseTypesWindowsServerPerpetual ) +type DeleteOptions = original.DeleteOptions + +const ( + DeleteOptionsDelete DeleteOptions = original.DeleteOptionsDelete + DeleteOptionsDetach DeleteOptions = original.DeleteOptionsDetach +) + type DiffDiskOptions = original.DiffDiskOptions const ( - Local DiffDiskOptions = original.Local + DiffDiskOptionsLocal DiffDiskOptions = original.DiffDiskOptionsLocal ) type DiffDiskPlacement = original.DiffDiskPlacement const ( - CacheDisk DiffDiskPlacement = original.CacheDisk - ResourceDisk DiffDiskPlacement = original.ResourceDisk + DiffDiskPlacementCacheDisk DiffDiskPlacement = original.DiffDiskPlacementCacheDisk + DiffDiskPlacementResourceDisk DiffDiskPlacement = original.DiffDiskPlacementResourceDisk ) type DiskCreateOption = original.DiskCreateOption const ( - Attach DiskCreateOption = original.Attach - Copy DiskCreateOption = original.Copy - Empty DiskCreateOption = original.Empty - FromImage DiskCreateOption = original.FromImage - Import DiskCreateOption = original.Import - Restore DiskCreateOption = original.Restore - Upload DiskCreateOption = original.Upload + DiskCreateOptionAttach DiskCreateOption = original.DiskCreateOptionAttach + DiskCreateOptionCopy DiskCreateOption = original.DiskCreateOptionCopy + DiskCreateOptionEmpty DiskCreateOption = original.DiskCreateOptionEmpty + DiskCreateOptionFromImage DiskCreateOption = original.DiskCreateOptionFromImage + DiskCreateOptionImport DiskCreateOption = original.DiskCreateOptionImport + DiskCreateOptionRestore DiskCreateOption = original.DiskCreateOptionRestore + DiskCreateOptionUpload DiskCreateOption = original.DiskCreateOptionUpload ) type DiskCreateOptionTypes = original.DiskCreateOptionTypes @@ -105,10 +120,17 @@ const ( DiskCreateOptionTypesFromImage DiskCreateOptionTypes = original.DiskCreateOptionTypesFromImage ) +type DiskDeleteOptionTypes = original.DiskDeleteOptionTypes + +const ( + DiskDeleteOptionTypesDelete DiskDeleteOptionTypes = original.DiskDeleteOptionTypesDelete + DiskDeleteOptionTypesDetach DiskDeleteOptionTypes = original.DiskDeleteOptionTypesDetach +) + type DiskDetachOptionTypes = original.DiskDetachOptionTypes const ( - ForceDetach DiskDetachOptionTypes = original.ForceDetach + DiskDetachOptionTypesForceDetach DiskDetachOptionTypes = original.DiskDetachOptionTypesForceDetach ) type DiskEncryptionSetIdentityType = original.DiskEncryptionSetIdentityType @@ -121,36 +143,36 @@ const ( type DiskEncryptionSetType = original.DiskEncryptionSetType const ( - EncryptionAtRestWithCustomerKey DiskEncryptionSetType = original.EncryptionAtRestWithCustomerKey - EncryptionAtRestWithPlatformAndCustomerKeys DiskEncryptionSetType = original.EncryptionAtRestWithPlatformAndCustomerKeys + DiskEncryptionSetTypeEncryptionAtRestWithCustomerKey DiskEncryptionSetType = original.DiskEncryptionSetTypeEncryptionAtRestWithCustomerKey + DiskEncryptionSetTypeEncryptionAtRestWithPlatformAndCustomerKeys DiskEncryptionSetType = original.DiskEncryptionSetTypeEncryptionAtRestWithPlatformAndCustomerKeys ) type DiskSecurityTypes = original.DiskSecurityTypes const ( - TrustedLaunch DiskSecurityTypes = original.TrustedLaunch + DiskSecurityTypesTrustedLaunch DiskSecurityTypes = original.DiskSecurityTypesTrustedLaunch ) type DiskState = original.DiskState const ( - ActiveSAS DiskState = original.ActiveSAS - ActiveUpload DiskState = original.ActiveUpload - Attached DiskState = original.Attached - ReadyToUpload DiskState = original.ReadyToUpload - Reserved DiskState = original.Reserved - Unattached DiskState = original.Unattached + DiskStateActiveSAS DiskState = original.DiskStateActiveSAS + DiskStateActiveUpload DiskState = original.DiskStateActiveUpload + DiskStateAttached DiskState = original.DiskStateAttached + DiskStateReadyToUpload DiskState = original.DiskStateReadyToUpload + DiskStateReserved DiskState = original.DiskStateReserved + DiskStateUnattached DiskState = original.DiskStateUnattached ) type DiskStorageAccountTypes = original.DiskStorageAccountTypes const ( - PremiumLRS DiskStorageAccountTypes = original.PremiumLRS - PremiumZRS DiskStorageAccountTypes = original.PremiumZRS - StandardLRS DiskStorageAccountTypes = original.StandardLRS - StandardSSDLRS DiskStorageAccountTypes = original.StandardSSDLRS - StandardSSDZRS DiskStorageAccountTypes = original.StandardSSDZRS - UltraSSDLRS DiskStorageAccountTypes = original.UltraSSDLRS + DiskStorageAccountTypesPremiumLRS DiskStorageAccountTypes = original.DiskStorageAccountTypesPremiumLRS + DiskStorageAccountTypesPremiumZRS DiskStorageAccountTypes = original.DiskStorageAccountTypesPremiumZRS + DiskStorageAccountTypesStandardLRS DiskStorageAccountTypes = original.DiskStorageAccountTypesStandardLRS + DiskStorageAccountTypesStandardSSDLRS DiskStorageAccountTypes = original.DiskStorageAccountTypesStandardSSDLRS + DiskStorageAccountTypesStandardSSDZRS DiskStorageAccountTypes = original.DiskStorageAccountTypesStandardSSDZRS + DiskStorageAccountTypesUltraSSDLRS DiskStorageAccountTypes = original.DiskStorageAccountTypesUltraSSDLRS ) type EncryptionType = original.EncryptionType @@ -173,10 +195,23 @@ const ( ExecutionStateUnknown ExecutionState = original.ExecutionStateUnknown ) +type ExpandTypesForGetVMScaleSets = original.ExpandTypesForGetVMScaleSets + +const ( + ExpandTypesForGetVMScaleSetsUserData ExpandTypesForGetVMScaleSets = original.ExpandTypesForGetVMScaleSetsUserData +) + type ExtendedLocationTypes = original.ExtendedLocationTypes const ( - EdgeZone ExtendedLocationTypes = original.EdgeZone + ExtendedLocationTypesEdgeZone ExtendedLocationTypes = original.ExtendedLocationTypesEdgeZone +) + +type GallerySharingPermissionTypes = original.GallerySharingPermissionTypes + +const ( + GallerySharingPermissionTypesGroups GallerySharingPermissionTypes = original.GallerySharingPermissionTypesGroups + GallerySharingPermissionTypesPrivate GallerySharingPermissionTypes = original.GallerySharingPermissionTypesPrivate ) type HostCaching = original.HostCaching @@ -190,8 +225,8 @@ const ( type HyperVGeneration = original.HyperVGeneration const ( - V1 HyperVGeneration = original.V1 - V2 HyperVGeneration = original.V2 + HyperVGenerationV1 HyperVGeneration = original.HyperVGenerationV1 + HyperVGenerationV2 HyperVGeneration = original.HyperVGenerationV2 ) type HyperVGenerationType = original.HyperVGenerationType @@ -211,30 +246,45 @@ const ( type IPVersion = original.IPVersion const ( - IPv4 IPVersion = original.IPv4 - IPv6 IPVersion = original.IPv6 + IPVersionIPv4 IPVersion = original.IPVersionIPv4 + IPVersionIPv6 IPVersion = original.IPVersionIPv6 +) + +type IPVersions = original.IPVersions + +const ( + IPVersionsIPv4 IPVersions = original.IPVersionsIPv4 + IPVersionsIPv6 IPVersions = original.IPVersionsIPv6 ) type InstanceViewTypes = original.InstanceViewTypes const ( - InstanceView InstanceViewTypes = original.InstanceView + InstanceViewTypesInstanceView InstanceViewTypes = original.InstanceViewTypesInstanceView + InstanceViewTypesUserData InstanceViewTypes = original.InstanceViewTypesUserData ) type IntervalInMins = original.IntervalInMins const ( - FiveMins IntervalInMins = original.FiveMins - SixtyMins IntervalInMins = original.SixtyMins - ThirtyMins IntervalInMins = original.ThirtyMins - ThreeMins IntervalInMins = original.ThreeMins + IntervalInMinsFiveMins IntervalInMins = original.IntervalInMinsFiveMins + IntervalInMinsSixtyMins IntervalInMins = original.IntervalInMinsSixtyMins + IntervalInMinsThirtyMins IntervalInMins = original.IntervalInMinsThirtyMins + IntervalInMinsThreeMins IntervalInMins = original.IntervalInMinsThreeMins +) + +type LinuxPatchAssessmentMode = original.LinuxPatchAssessmentMode + +const ( + LinuxPatchAssessmentModeAutomaticByPlatform LinuxPatchAssessmentMode = original.LinuxPatchAssessmentModeAutomaticByPlatform + LinuxPatchAssessmentModeImageDefault LinuxPatchAssessmentMode = original.LinuxPatchAssessmentModeImageDefault ) type LinuxVMGuestPatchMode = original.LinuxVMGuestPatchMode const ( - AutomaticByPlatform LinuxVMGuestPatchMode = original.AutomaticByPlatform - ImageDefault LinuxVMGuestPatchMode = original.ImageDefault + LinuxVMGuestPatchModeAutomaticByPlatform LinuxVMGuestPatchMode = original.LinuxVMGuestPatchModeAutomaticByPlatform + LinuxVMGuestPatchModeImageDefault LinuxVMGuestPatchMode = original.LinuxVMGuestPatchModeImageDefault ) type MaintenanceOperationResultCodeTypes = original.MaintenanceOperationResultCodeTypes @@ -246,60 +296,73 @@ const ( MaintenanceOperationResultCodeTypesRetryLater MaintenanceOperationResultCodeTypes = original.MaintenanceOperationResultCodeTypesRetryLater ) +type NetworkAPIVersion = original.NetworkAPIVersion + +const ( + NetworkAPIVersionTwoZeroTwoZeroHyphenMinusOneOneHyphenMinusZeroOne NetworkAPIVersion = original.NetworkAPIVersionTwoZeroTwoZeroHyphenMinusOneOneHyphenMinusZeroOne +) + type NetworkAccessPolicy = original.NetworkAccessPolicy const ( - AllowAll NetworkAccessPolicy = original.AllowAll - AllowPrivate NetworkAccessPolicy = original.AllowPrivate - DenyAll NetworkAccessPolicy = original.DenyAll + NetworkAccessPolicyAllowAll NetworkAccessPolicy = original.NetworkAccessPolicyAllowAll + NetworkAccessPolicyAllowPrivate NetworkAccessPolicy = original.NetworkAccessPolicyAllowPrivate + NetworkAccessPolicyDenyAll NetworkAccessPolicy = original.NetworkAccessPolicyDenyAll ) type OperatingSystemStateTypes = original.OperatingSystemStateTypes const ( - Generalized OperatingSystemStateTypes = original.Generalized - Specialized OperatingSystemStateTypes = original.Specialized + OperatingSystemStateTypesGeneralized OperatingSystemStateTypes = original.OperatingSystemStateTypesGeneralized + OperatingSystemStateTypesSpecialized OperatingSystemStateTypes = original.OperatingSystemStateTypesSpecialized +) + +type OperatingSystemType = original.OperatingSystemType + +const ( + OperatingSystemTypeLinux OperatingSystemType = original.OperatingSystemTypeLinux + OperatingSystemTypeWindows OperatingSystemType = original.OperatingSystemTypeWindows ) type OperatingSystemTypes = original.OperatingSystemTypes const ( - Linux OperatingSystemTypes = original.Linux - Windows OperatingSystemTypes = original.Windows + OperatingSystemTypesLinux OperatingSystemTypes = original.OperatingSystemTypesLinux + OperatingSystemTypesWindows OperatingSystemTypes = original.OperatingSystemTypesWindows ) type OrchestrationMode = original.OrchestrationMode const ( - Flexible OrchestrationMode = original.Flexible - Uniform OrchestrationMode = original.Uniform + OrchestrationModeFlexible OrchestrationMode = original.OrchestrationModeFlexible + OrchestrationModeUniform OrchestrationMode = original.OrchestrationModeUniform ) type OrchestrationServiceNames = original.OrchestrationServiceNames const ( - AutomaticRepairs OrchestrationServiceNames = original.AutomaticRepairs + OrchestrationServiceNamesAutomaticRepairs OrchestrationServiceNames = original.OrchestrationServiceNamesAutomaticRepairs ) type OrchestrationServiceState = original.OrchestrationServiceState const ( - NotRunning OrchestrationServiceState = original.NotRunning - Running OrchestrationServiceState = original.Running - Suspended OrchestrationServiceState = original.Suspended + OrchestrationServiceStateNotRunning OrchestrationServiceState = original.OrchestrationServiceStateNotRunning + OrchestrationServiceStateRunning OrchestrationServiceState = original.OrchestrationServiceStateRunning + OrchestrationServiceStateSuspended OrchestrationServiceState = original.OrchestrationServiceStateSuspended ) type OrchestrationServiceStateAction = original.OrchestrationServiceStateAction const ( - Resume OrchestrationServiceStateAction = original.Resume - Suspend OrchestrationServiceStateAction = original.Suspend + OrchestrationServiceStateActionResume OrchestrationServiceStateAction = original.OrchestrationServiceStateActionResume + OrchestrationServiceStateActionSuspend OrchestrationServiceStateAction = original.OrchestrationServiceStateActionSuspend ) type PassNames = original.PassNames const ( - OobeSystem PassNames = original.OobeSystem + PassNamesOobeSystem PassNames = original.PassNamesOobeSystem ) type PatchAssessmentState = original.PatchAssessmentState @@ -342,16 +405,16 @@ const ( type PrivateEndpointServiceConnectionStatus = original.PrivateEndpointServiceConnectionStatus const ( - Approved PrivateEndpointServiceConnectionStatus = original.Approved - Pending PrivateEndpointServiceConnectionStatus = original.Pending - Rejected PrivateEndpointServiceConnectionStatus = original.Rejected + PrivateEndpointServiceConnectionStatusApproved PrivateEndpointServiceConnectionStatus = original.PrivateEndpointServiceConnectionStatusApproved + PrivateEndpointServiceConnectionStatusPending PrivateEndpointServiceConnectionStatus = original.PrivateEndpointServiceConnectionStatusPending + PrivateEndpointServiceConnectionStatusRejected PrivateEndpointServiceConnectionStatus = original.PrivateEndpointServiceConnectionStatusRejected ) type ProtocolTypes = original.ProtocolTypes const ( - HTTP ProtocolTypes = original.HTTP - HTTPS ProtocolTypes = original.HTTPS + ProtocolTypesHTTP ProtocolTypes = original.ProtocolTypesHTTP + ProtocolTypesHTTPS ProtocolTypes = original.ProtocolTypesHTTPS ) type ProvisioningState = original.ProvisioningState @@ -401,8 +464,29 @@ const ( type ProximityPlacementGroupType = original.ProximityPlacementGroupType const ( - Standard ProximityPlacementGroupType = original.Standard - Ultra ProximityPlacementGroupType = original.Ultra + ProximityPlacementGroupTypeStandard ProximityPlacementGroupType = original.ProximityPlacementGroupTypeStandard + ProximityPlacementGroupTypeUltra ProximityPlacementGroupType = original.ProximityPlacementGroupTypeUltra +) + +type PublicIPAddressSkuName = original.PublicIPAddressSkuName + +const ( + PublicIPAddressSkuNameBasic PublicIPAddressSkuName = original.PublicIPAddressSkuNameBasic + PublicIPAddressSkuNameStandard PublicIPAddressSkuName = original.PublicIPAddressSkuNameStandard +) + +type PublicIPAddressSkuTier = original.PublicIPAddressSkuTier + +const ( + PublicIPAddressSkuTierGlobal PublicIPAddressSkuTier = original.PublicIPAddressSkuTierGlobal + PublicIPAddressSkuTierRegional PublicIPAddressSkuTier = original.PublicIPAddressSkuTierRegional +) + +type PublicIPAllocationMethod = original.PublicIPAllocationMethod + +const ( + PublicIPAllocationMethodDynamic PublicIPAllocationMethod = original.PublicIPAllocationMethodDynamic + PublicIPAllocationMethodStatic PublicIPAllocationMethod = original.PublicIPAllocationMethodStatic ) type ReplicationState = original.ReplicationState @@ -440,22 +524,28 @@ const ( type ResourceSkuRestrictionsReasonCode = original.ResourceSkuRestrictionsReasonCode const ( - NotAvailableForSubscription ResourceSkuRestrictionsReasonCode = original.NotAvailableForSubscription - QuotaID ResourceSkuRestrictionsReasonCode = original.QuotaID + ResourceSkuRestrictionsReasonCodeNotAvailableForSubscription ResourceSkuRestrictionsReasonCode = original.ResourceSkuRestrictionsReasonCodeNotAvailableForSubscription + ResourceSkuRestrictionsReasonCodeQuotaID ResourceSkuRestrictionsReasonCode = original.ResourceSkuRestrictionsReasonCodeQuotaID ) type ResourceSkuRestrictionsType = original.ResourceSkuRestrictionsType const ( - Location ResourceSkuRestrictionsType = original.Location - Zone ResourceSkuRestrictionsType = original.Zone + ResourceSkuRestrictionsTypeLocation ResourceSkuRestrictionsType = original.ResourceSkuRestrictionsTypeLocation + ResourceSkuRestrictionsTypeZone ResourceSkuRestrictionsType = original.ResourceSkuRestrictionsTypeZone +) + +type RestorePointCollectionExpandOptions = original.RestorePointCollectionExpandOptions + +const ( + RestorePointCollectionExpandOptionsRestorePoints RestorePointCollectionExpandOptions = original.RestorePointCollectionExpandOptionsRestorePoints ) type RollingUpgradeActionType = original.RollingUpgradeActionType const ( - Cancel RollingUpgradeActionType = original.Cancel - Start RollingUpgradeActionType = original.Start + RollingUpgradeActionTypeCancel RollingUpgradeActionType = original.RollingUpgradeActionTypeCancel + RollingUpgradeActionTypeStart RollingUpgradeActionType = original.RollingUpgradeActionTypeStart ) type RollingUpgradeStatusCode = original.RollingUpgradeStatusCode @@ -473,11 +563,38 @@ const ( SecurityTypesTrustedLaunch SecurityTypes = original.SecurityTypesTrustedLaunch ) +type SelectPermissions = original.SelectPermissions + +const ( + SelectPermissionsPermissions SelectPermissions = original.SelectPermissionsPermissions +) + type SettingNames = original.SettingNames const ( - AutoLogon SettingNames = original.AutoLogon - FirstLogonCommands SettingNames = original.FirstLogonCommands + SettingNamesAutoLogon SettingNames = original.SettingNamesAutoLogon + SettingNamesFirstLogonCommands SettingNames = original.SettingNamesFirstLogonCommands +) + +type SharedToValues = original.SharedToValues + +const ( + SharedToValuesTenant SharedToValues = original.SharedToValuesTenant +) + +type SharingProfileGroupTypes = original.SharingProfileGroupTypes + +const ( + SharingProfileGroupTypesAADTenants SharingProfileGroupTypes = original.SharingProfileGroupTypesAADTenants + SharingProfileGroupTypesSubscriptions SharingProfileGroupTypes = original.SharingProfileGroupTypesSubscriptions +) + +type SharingUpdateOperationTypes = original.SharingUpdateOperationTypes + +const ( + SharingUpdateOperationTypesAdd SharingUpdateOperationTypes = original.SharingUpdateOperationTypesAdd + SharingUpdateOperationTypesRemove SharingUpdateOperationTypes = original.SharingUpdateOperationTypesRemove + SharingUpdateOperationTypesReset SharingUpdateOperationTypes = original.SharingUpdateOperationTypesReset ) type SnapshotStorageAccountTypes = original.SnapshotStorageAccountTypes @@ -491,9 +608,9 @@ const ( type StatusLevelTypes = original.StatusLevelTypes const ( - Error StatusLevelTypes = original.Error - Info StatusLevelTypes = original.Info - Warning StatusLevelTypes = original.Warning + StatusLevelTypesError StatusLevelTypes = original.StatusLevelTypesError + StatusLevelTypesInfo StatusLevelTypes = original.StatusLevelTypesInfo + StatusLevelTypesWarning StatusLevelTypes = original.StatusLevelTypesWarning ) type StorageAccountType = original.StorageAccountType @@ -550,9 +667,9 @@ const ( type VMGuestPatchClassificationLinux = original.VMGuestPatchClassificationLinux const ( - Critical VMGuestPatchClassificationLinux = original.Critical - Other VMGuestPatchClassificationLinux = original.Other - Security VMGuestPatchClassificationLinux = original.Security + VMGuestPatchClassificationLinuxCritical VMGuestPatchClassificationLinux = original.VMGuestPatchClassificationLinuxCritical + VMGuestPatchClassificationLinuxOther VMGuestPatchClassificationLinux = original.VMGuestPatchClassificationLinuxOther + VMGuestPatchClassificationLinuxSecurity VMGuestPatchClassificationLinux = original.VMGuestPatchClassificationLinuxSecurity ) type VMGuestPatchClassificationWindows = original.VMGuestPatchClassificationWindows @@ -580,9 +697,9 @@ const ( type VMGuestPatchRebootSetting = original.VMGuestPatchRebootSetting const ( - Always VMGuestPatchRebootSetting = original.Always - IfRequired VMGuestPatchRebootSetting = original.IfRequired - Never VMGuestPatchRebootSetting = original.Never + VMGuestPatchRebootSettingAlways VMGuestPatchRebootSetting = original.VMGuestPatchRebootSettingAlways + VMGuestPatchRebootSettingIfRequired VMGuestPatchRebootSetting = original.VMGuestPatchRebootSettingIfRequired + VMGuestPatchRebootSettingNever VMGuestPatchRebootSetting = original.VMGuestPatchRebootSettingNever ) type VMGuestPatchRebootStatus = original.VMGuestPatchRebootStatus @@ -599,24 +716,24 @@ const ( type VirtualMachineEvictionPolicyTypes = original.VirtualMachineEvictionPolicyTypes const ( - Deallocate VirtualMachineEvictionPolicyTypes = original.Deallocate - Delete VirtualMachineEvictionPolicyTypes = original.Delete + VirtualMachineEvictionPolicyTypesDeallocate VirtualMachineEvictionPolicyTypes = original.VirtualMachineEvictionPolicyTypesDeallocate + VirtualMachineEvictionPolicyTypesDelete VirtualMachineEvictionPolicyTypes = original.VirtualMachineEvictionPolicyTypesDelete ) type VirtualMachinePriorityTypes = original.VirtualMachinePriorityTypes const ( - Low VirtualMachinePriorityTypes = original.Low - Regular VirtualMachinePriorityTypes = original.Regular - Spot VirtualMachinePriorityTypes = original.Spot + VirtualMachinePriorityTypesLow VirtualMachinePriorityTypes = original.VirtualMachinePriorityTypesLow + VirtualMachinePriorityTypesRegular VirtualMachinePriorityTypes = original.VirtualMachinePriorityTypesRegular + VirtualMachinePriorityTypesSpot VirtualMachinePriorityTypes = original.VirtualMachinePriorityTypesSpot ) type VirtualMachineScaleSetScaleInRules = original.VirtualMachineScaleSetScaleInRules const ( - Default VirtualMachineScaleSetScaleInRules = original.Default - NewestVM VirtualMachineScaleSetScaleInRules = original.NewestVM - OldestVM VirtualMachineScaleSetScaleInRules = original.OldestVM + VirtualMachineScaleSetScaleInRulesDefault VirtualMachineScaleSetScaleInRules = original.VirtualMachineScaleSetScaleInRulesDefault + VirtualMachineScaleSetScaleInRulesNewestVM VirtualMachineScaleSetScaleInRules = original.VirtualMachineScaleSetScaleInRulesNewestVM + VirtualMachineScaleSetScaleInRulesOldestVM VirtualMachineScaleSetScaleInRules = original.VirtualMachineScaleSetScaleInRulesOldestVM ) type VirtualMachineScaleSetSkuScaleType = original.VirtualMachineScaleSetSkuScaleType @@ -629,172 +746,179 @@ const ( type VirtualMachineSizeTypes = original.VirtualMachineSizeTypes const ( - BasicA0 VirtualMachineSizeTypes = original.BasicA0 - BasicA1 VirtualMachineSizeTypes = original.BasicA1 - BasicA2 VirtualMachineSizeTypes = original.BasicA2 - BasicA3 VirtualMachineSizeTypes = original.BasicA3 - BasicA4 VirtualMachineSizeTypes = original.BasicA4 - StandardA0 VirtualMachineSizeTypes = original.StandardA0 - StandardA1 VirtualMachineSizeTypes = original.StandardA1 - StandardA10 VirtualMachineSizeTypes = original.StandardA10 - StandardA11 VirtualMachineSizeTypes = original.StandardA11 - StandardA1V2 VirtualMachineSizeTypes = original.StandardA1V2 - StandardA2 VirtualMachineSizeTypes = original.StandardA2 - StandardA2mV2 VirtualMachineSizeTypes = original.StandardA2mV2 - StandardA2V2 VirtualMachineSizeTypes = original.StandardA2V2 - StandardA3 VirtualMachineSizeTypes = original.StandardA3 - StandardA4 VirtualMachineSizeTypes = original.StandardA4 - StandardA4mV2 VirtualMachineSizeTypes = original.StandardA4mV2 - StandardA4V2 VirtualMachineSizeTypes = original.StandardA4V2 - StandardA5 VirtualMachineSizeTypes = original.StandardA5 - StandardA6 VirtualMachineSizeTypes = original.StandardA6 - StandardA7 VirtualMachineSizeTypes = original.StandardA7 - StandardA8 VirtualMachineSizeTypes = original.StandardA8 - StandardA8mV2 VirtualMachineSizeTypes = original.StandardA8mV2 - StandardA8V2 VirtualMachineSizeTypes = original.StandardA8V2 - StandardA9 VirtualMachineSizeTypes = original.StandardA9 - StandardB1ms VirtualMachineSizeTypes = original.StandardB1ms - StandardB1s VirtualMachineSizeTypes = original.StandardB1s - StandardB2ms VirtualMachineSizeTypes = original.StandardB2ms - StandardB2s VirtualMachineSizeTypes = original.StandardB2s - StandardB4ms VirtualMachineSizeTypes = original.StandardB4ms - StandardB8ms VirtualMachineSizeTypes = original.StandardB8ms - StandardD1 VirtualMachineSizeTypes = original.StandardD1 - StandardD11 VirtualMachineSizeTypes = original.StandardD11 - StandardD11V2 VirtualMachineSizeTypes = original.StandardD11V2 - StandardD12 VirtualMachineSizeTypes = original.StandardD12 - StandardD12V2 VirtualMachineSizeTypes = original.StandardD12V2 - StandardD13 VirtualMachineSizeTypes = original.StandardD13 - StandardD13V2 VirtualMachineSizeTypes = original.StandardD13V2 - StandardD14 VirtualMachineSizeTypes = original.StandardD14 - StandardD14V2 VirtualMachineSizeTypes = original.StandardD14V2 - StandardD15V2 VirtualMachineSizeTypes = original.StandardD15V2 - StandardD16sV3 VirtualMachineSizeTypes = original.StandardD16sV3 - StandardD16V3 VirtualMachineSizeTypes = original.StandardD16V3 - StandardD1V2 VirtualMachineSizeTypes = original.StandardD1V2 - StandardD2 VirtualMachineSizeTypes = original.StandardD2 - StandardD2sV3 VirtualMachineSizeTypes = original.StandardD2sV3 - StandardD2V2 VirtualMachineSizeTypes = original.StandardD2V2 - StandardD2V3 VirtualMachineSizeTypes = original.StandardD2V3 - StandardD3 VirtualMachineSizeTypes = original.StandardD3 - StandardD32sV3 VirtualMachineSizeTypes = original.StandardD32sV3 - StandardD32V3 VirtualMachineSizeTypes = original.StandardD32V3 - StandardD3V2 VirtualMachineSizeTypes = original.StandardD3V2 - StandardD4 VirtualMachineSizeTypes = original.StandardD4 - StandardD4sV3 VirtualMachineSizeTypes = original.StandardD4sV3 - StandardD4V2 VirtualMachineSizeTypes = original.StandardD4V2 - StandardD4V3 VirtualMachineSizeTypes = original.StandardD4V3 - StandardD5V2 VirtualMachineSizeTypes = original.StandardD5V2 - StandardD64sV3 VirtualMachineSizeTypes = original.StandardD64sV3 - StandardD64V3 VirtualMachineSizeTypes = original.StandardD64V3 - StandardD8sV3 VirtualMachineSizeTypes = original.StandardD8sV3 - StandardD8V3 VirtualMachineSizeTypes = original.StandardD8V3 - StandardDS1 VirtualMachineSizeTypes = original.StandardDS1 - StandardDS11 VirtualMachineSizeTypes = original.StandardDS11 - StandardDS11V2 VirtualMachineSizeTypes = original.StandardDS11V2 - StandardDS12 VirtualMachineSizeTypes = original.StandardDS12 - StandardDS12V2 VirtualMachineSizeTypes = original.StandardDS12V2 - StandardDS13 VirtualMachineSizeTypes = original.StandardDS13 - StandardDS132V2 VirtualMachineSizeTypes = original.StandardDS132V2 - StandardDS134V2 VirtualMachineSizeTypes = original.StandardDS134V2 - StandardDS13V2 VirtualMachineSizeTypes = original.StandardDS13V2 - StandardDS14 VirtualMachineSizeTypes = original.StandardDS14 - StandardDS144V2 VirtualMachineSizeTypes = original.StandardDS144V2 - StandardDS148V2 VirtualMachineSizeTypes = original.StandardDS148V2 - StandardDS14V2 VirtualMachineSizeTypes = original.StandardDS14V2 - StandardDS15V2 VirtualMachineSizeTypes = original.StandardDS15V2 - StandardDS1V2 VirtualMachineSizeTypes = original.StandardDS1V2 - StandardDS2 VirtualMachineSizeTypes = original.StandardDS2 - StandardDS2V2 VirtualMachineSizeTypes = original.StandardDS2V2 - StandardDS3 VirtualMachineSizeTypes = original.StandardDS3 - StandardDS3V2 VirtualMachineSizeTypes = original.StandardDS3V2 - StandardDS4 VirtualMachineSizeTypes = original.StandardDS4 - StandardDS4V2 VirtualMachineSizeTypes = original.StandardDS4V2 - StandardDS5V2 VirtualMachineSizeTypes = original.StandardDS5V2 - StandardE16sV3 VirtualMachineSizeTypes = original.StandardE16sV3 - StandardE16V3 VirtualMachineSizeTypes = original.StandardE16V3 - StandardE2sV3 VirtualMachineSizeTypes = original.StandardE2sV3 - StandardE2V3 VirtualMachineSizeTypes = original.StandardE2V3 - StandardE3216V3 VirtualMachineSizeTypes = original.StandardE3216V3 - StandardE328sV3 VirtualMachineSizeTypes = original.StandardE328sV3 - StandardE32sV3 VirtualMachineSizeTypes = original.StandardE32sV3 - StandardE32V3 VirtualMachineSizeTypes = original.StandardE32V3 - StandardE4sV3 VirtualMachineSizeTypes = original.StandardE4sV3 - StandardE4V3 VirtualMachineSizeTypes = original.StandardE4V3 - StandardE6416sV3 VirtualMachineSizeTypes = original.StandardE6416sV3 - StandardE6432sV3 VirtualMachineSizeTypes = original.StandardE6432sV3 - StandardE64sV3 VirtualMachineSizeTypes = original.StandardE64sV3 - StandardE64V3 VirtualMachineSizeTypes = original.StandardE64V3 - StandardE8sV3 VirtualMachineSizeTypes = original.StandardE8sV3 - StandardE8V3 VirtualMachineSizeTypes = original.StandardE8V3 - StandardF1 VirtualMachineSizeTypes = original.StandardF1 - StandardF16 VirtualMachineSizeTypes = original.StandardF16 - StandardF16s VirtualMachineSizeTypes = original.StandardF16s - StandardF16sV2 VirtualMachineSizeTypes = original.StandardF16sV2 - StandardF1s VirtualMachineSizeTypes = original.StandardF1s - StandardF2 VirtualMachineSizeTypes = original.StandardF2 - StandardF2s VirtualMachineSizeTypes = original.StandardF2s - StandardF2sV2 VirtualMachineSizeTypes = original.StandardF2sV2 - StandardF32sV2 VirtualMachineSizeTypes = original.StandardF32sV2 - StandardF4 VirtualMachineSizeTypes = original.StandardF4 - StandardF4s VirtualMachineSizeTypes = original.StandardF4s - StandardF4sV2 VirtualMachineSizeTypes = original.StandardF4sV2 - StandardF64sV2 VirtualMachineSizeTypes = original.StandardF64sV2 - StandardF72sV2 VirtualMachineSizeTypes = original.StandardF72sV2 - StandardF8 VirtualMachineSizeTypes = original.StandardF8 - StandardF8s VirtualMachineSizeTypes = original.StandardF8s - StandardF8sV2 VirtualMachineSizeTypes = original.StandardF8sV2 - StandardG1 VirtualMachineSizeTypes = original.StandardG1 - StandardG2 VirtualMachineSizeTypes = original.StandardG2 - StandardG3 VirtualMachineSizeTypes = original.StandardG3 - StandardG4 VirtualMachineSizeTypes = original.StandardG4 - StandardG5 VirtualMachineSizeTypes = original.StandardG5 - StandardGS1 VirtualMachineSizeTypes = original.StandardGS1 - StandardGS2 VirtualMachineSizeTypes = original.StandardGS2 - StandardGS3 VirtualMachineSizeTypes = original.StandardGS3 - StandardGS4 VirtualMachineSizeTypes = original.StandardGS4 - StandardGS44 VirtualMachineSizeTypes = original.StandardGS44 - StandardGS48 VirtualMachineSizeTypes = original.StandardGS48 - StandardGS5 VirtualMachineSizeTypes = original.StandardGS5 - StandardGS516 VirtualMachineSizeTypes = original.StandardGS516 - StandardGS58 VirtualMachineSizeTypes = original.StandardGS58 - StandardH16 VirtualMachineSizeTypes = original.StandardH16 - StandardH16m VirtualMachineSizeTypes = original.StandardH16m - StandardH16mr VirtualMachineSizeTypes = original.StandardH16mr - StandardH16r VirtualMachineSizeTypes = original.StandardH16r - StandardH8 VirtualMachineSizeTypes = original.StandardH8 - StandardH8m VirtualMachineSizeTypes = original.StandardH8m - StandardL16s VirtualMachineSizeTypes = original.StandardL16s - StandardL32s VirtualMachineSizeTypes = original.StandardL32s - StandardL4s VirtualMachineSizeTypes = original.StandardL4s - StandardL8s VirtualMachineSizeTypes = original.StandardL8s - StandardM12832ms VirtualMachineSizeTypes = original.StandardM12832ms - StandardM12864ms VirtualMachineSizeTypes = original.StandardM12864ms - StandardM128ms VirtualMachineSizeTypes = original.StandardM128ms - StandardM128s VirtualMachineSizeTypes = original.StandardM128s - StandardM6416ms VirtualMachineSizeTypes = original.StandardM6416ms - StandardM6432ms VirtualMachineSizeTypes = original.StandardM6432ms - StandardM64ms VirtualMachineSizeTypes = original.StandardM64ms - StandardM64s VirtualMachineSizeTypes = original.StandardM64s - StandardNC12 VirtualMachineSizeTypes = original.StandardNC12 - StandardNC12sV2 VirtualMachineSizeTypes = original.StandardNC12sV2 - StandardNC12sV3 VirtualMachineSizeTypes = original.StandardNC12sV3 - StandardNC24 VirtualMachineSizeTypes = original.StandardNC24 - StandardNC24r VirtualMachineSizeTypes = original.StandardNC24r - StandardNC24rsV2 VirtualMachineSizeTypes = original.StandardNC24rsV2 - StandardNC24rsV3 VirtualMachineSizeTypes = original.StandardNC24rsV3 - StandardNC24sV2 VirtualMachineSizeTypes = original.StandardNC24sV2 - StandardNC24sV3 VirtualMachineSizeTypes = original.StandardNC24sV3 - StandardNC6 VirtualMachineSizeTypes = original.StandardNC6 - StandardNC6sV2 VirtualMachineSizeTypes = original.StandardNC6sV2 - StandardNC6sV3 VirtualMachineSizeTypes = original.StandardNC6sV3 - StandardND12s VirtualMachineSizeTypes = original.StandardND12s - StandardND24rs VirtualMachineSizeTypes = original.StandardND24rs - StandardND24s VirtualMachineSizeTypes = original.StandardND24s - StandardND6s VirtualMachineSizeTypes = original.StandardND6s - StandardNV12 VirtualMachineSizeTypes = original.StandardNV12 - StandardNV24 VirtualMachineSizeTypes = original.StandardNV24 - StandardNV6 VirtualMachineSizeTypes = original.StandardNV6 + VirtualMachineSizeTypesBasicA0 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesBasicA0 + VirtualMachineSizeTypesBasicA1 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesBasicA1 + VirtualMachineSizeTypesBasicA2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesBasicA2 + VirtualMachineSizeTypesBasicA3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesBasicA3 + VirtualMachineSizeTypesBasicA4 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesBasicA4 + VirtualMachineSizeTypesStandardA0 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardA0 + VirtualMachineSizeTypesStandardA1 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardA1 + VirtualMachineSizeTypesStandardA10 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardA10 + VirtualMachineSizeTypesStandardA11 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardA11 + VirtualMachineSizeTypesStandardA1V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardA1V2 + VirtualMachineSizeTypesStandardA2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardA2 + VirtualMachineSizeTypesStandardA2mV2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardA2mV2 + VirtualMachineSizeTypesStandardA2V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardA2V2 + VirtualMachineSizeTypesStandardA3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardA3 + VirtualMachineSizeTypesStandardA4 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardA4 + VirtualMachineSizeTypesStandardA4mV2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardA4mV2 + VirtualMachineSizeTypesStandardA4V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardA4V2 + VirtualMachineSizeTypesStandardA5 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardA5 + VirtualMachineSizeTypesStandardA6 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardA6 + VirtualMachineSizeTypesStandardA7 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardA7 + VirtualMachineSizeTypesStandardA8 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardA8 + VirtualMachineSizeTypesStandardA8mV2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardA8mV2 + VirtualMachineSizeTypesStandardA8V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardA8V2 + VirtualMachineSizeTypesStandardA9 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardA9 + VirtualMachineSizeTypesStandardB1ms VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardB1ms + VirtualMachineSizeTypesStandardB1s VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardB1s + VirtualMachineSizeTypesStandardB2ms VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardB2ms + VirtualMachineSizeTypesStandardB2s VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardB2s + VirtualMachineSizeTypesStandardB4ms VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardB4ms + VirtualMachineSizeTypesStandardB8ms VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardB8ms + VirtualMachineSizeTypesStandardD1 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD1 + VirtualMachineSizeTypesStandardD11 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD11 + VirtualMachineSizeTypesStandardD11V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD11V2 + VirtualMachineSizeTypesStandardD12 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD12 + VirtualMachineSizeTypesStandardD12V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD12V2 + VirtualMachineSizeTypesStandardD13 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD13 + VirtualMachineSizeTypesStandardD13V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD13V2 + VirtualMachineSizeTypesStandardD14 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD14 + VirtualMachineSizeTypesStandardD14V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD14V2 + VirtualMachineSizeTypesStandardD15V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD15V2 + VirtualMachineSizeTypesStandardD16sV3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD16sV3 + VirtualMachineSizeTypesStandardD16V3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD16V3 + VirtualMachineSizeTypesStandardD1V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD1V2 + VirtualMachineSizeTypesStandardD2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD2 + VirtualMachineSizeTypesStandardD2sV3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD2sV3 + VirtualMachineSizeTypesStandardD2V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD2V2 + VirtualMachineSizeTypesStandardD2V3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD2V3 + VirtualMachineSizeTypesStandardD3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD3 + VirtualMachineSizeTypesStandardD32sV3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD32sV3 + VirtualMachineSizeTypesStandardD32V3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD32V3 + VirtualMachineSizeTypesStandardD3V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD3V2 + VirtualMachineSizeTypesStandardD4 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD4 + VirtualMachineSizeTypesStandardD4sV3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD4sV3 + VirtualMachineSizeTypesStandardD4V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD4V2 + VirtualMachineSizeTypesStandardD4V3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD4V3 + VirtualMachineSizeTypesStandardD5V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD5V2 + VirtualMachineSizeTypesStandardD64sV3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD64sV3 + VirtualMachineSizeTypesStandardD64V3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD64V3 + VirtualMachineSizeTypesStandardD8sV3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD8sV3 + VirtualMachineSizeTypesStandardD8V3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD8V3 + VirtualMachineSizeTypesStandardDS1 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS1 + VirtualMachineSizeTypesStandardDS11 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS11 + VirtualMachineSizeTypesStandardDS11V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS11V2 + VirtualMachineSizeTypesStandardDS12 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS12 + VirtualMachineSizeTypesStandardDS12V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS12V2 + VirtualMachineSizeTypesStandardDS13 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS13 + VirtualMachineSizeTypesStandardDS132V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS132V2 + VirtualMachineSizeTypesStandardDS134V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS134V2 + VirtualMachineSizeTypesStandardDS13V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS13V2 + VirtualMachineSizeTypesStandardDS14 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS14 + VirtualMachineSizeTypesStandardDS144V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS144V2 + VirtualMachineSizeTypesStandardDS148V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS148V2 + VirtualMachineSizeTypesStandardDS14V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS14V2 + VirtualMachineSizeTypesStandardDS15V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS15V2 + VirtualMachineSizeTypesStandardDS1V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS1V2 + VirtualMachineSizeTypesStandardDS2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS2 + VirtualMachineSizeTypesStandardDS2V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS2V2 + VirtualMachineSizeTypesStandardDS3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS3 + VirtualMachineSizeTypesStandardDS3V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS3V2 + VirtualMachineSizeTypesStandardDS4 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS4 + VirtualMachineSizeTypesStandardDS4V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS4V2 + VirtualMachineSizeTypesStandardDS5V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS5V2 + VirtualMachineSizeTypesStandardE16sV3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardE16sV3 + VirtualMachineSizeTypesStandardE16V3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardE16V3 + VirtualMachineSizeTypesStandardE2sV3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardE2sV3 + VirtualMachineSizeTypesStandardE2V3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardE2V3 + VirtualMachineSizeTypesStandardE3216V3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardE3216V3 + VirtualMachineSizeTypesStandardE328sV3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardE328sV3 + VirtualMachineSizeTypesStandardE32sV3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardE32sV3 + VirtualMachineSizeTypesStandardE32V3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardE32V3 + VirtualMachineSizeTypesStandardE4sV3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardE4sV3 + VirtualMachineSizeTypesStandardE4V3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardE4V3 + VirtualMachineSizeTypesStandardE6416sV3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardE6416sV3 + VirtualMachineSizeTypesStandardE6432sV3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardE6432sV3 + VirtualMachineSizeTypesStandardE64sV3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardE64sV3 + VirtualMachineSizeTypesStandardE64V3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardE64V3 + VirtualMachineSizeTypesStandardE8sV3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardE8sV3 + VirtualMachineSizeTypesStandardE8V3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardE8V3 + VirtualMachineSizeTypesStandardF1 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardF1 + VirtualMachineSizeTypesStandardF16 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardF16 + VirtualMachineSizeTypesStandardF16s VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardF16s + VirtualMachineSizeTypesStandardF16sV2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardF16sV2 + VirtualMachineSizeTypesStandardF1s VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardF1s + VirtualMachineSizeTypesStandardF2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardF2 + VirtualMachineSizeTypesStandardF2s VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardF2s + VirtualMachineSizeTypesStandardF2sV2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardF2sV2 + VirtualMachineSizeTypesStandardF32sV2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardF32sV2 + VirtualMachineSizeTypesStandardF4 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardF4 + VirtualMachineSizeTypesStandardF4s VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardF4s + VirtualMachineSizeTypesStandardF4sV2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardF4sV2 + VirtualMachineSizeTypesStandardF64sV2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardF64sV2 + VirtualMachineSizeTypesStandardF72sV2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardF72sV2 + VirtualMachineSizeTypesStandardF8 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardF8 + VirtualMachineSizeTypesStandardF8s VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardF8s + VirtualMachineSizeTypesStandardF8sV2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardF8sV2 + VirtualMachineSizeTypesStandardG1 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardG1 + VirtualMachineSizeTypesStandardG2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardG2 + VirtualMachineSizeTypesStandardG3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardG3 + VirtualMachineSizeTypesStandardG4 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardG4 + VirtualMachineSizeTypesStandardG5 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardG5 + VirtualMachineSizeTypesStandardGS1 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardGS1 + VirtualMachineSizeTypesStandardGS2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardGS2 + VirtualMachineSizeTypesStandardGS3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardGS3 + VirtualMachineSizeTypesStandardGS4 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardGS4 + VirtualMachineSizeTypesStandardGS44 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardGS44 + VirtualMachineSizeTypesStandardGS48 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardGS48 + VirtualMachineSizeTypesStandardGS5 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardGS5 + VirtualMachineSizeTypesStandardGS516 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardGS516 + VirtualMachineSizeTypesStandardGS58 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardGS58 + VirtualMachineSizeTypesStandardH16 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardH16 + VirtualMachineSizeTypesStandardH16m VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardH16m + VirtualMachineSizeTypesStandardH16mr VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardH16mr + VirtualMachineSizeTypesStandardH16r VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardH16r + VirtualMachineSizeTypesStandardH8 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardH8 + VirtualMachineSizeTypesStandardH8m VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardH8m + VirtualMachineSizeTypesStandardL16s VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardL16s + VirtualMachineSizeTypesStandardL32s VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardL32s + VirtualMachineSizeTypesStandardL4s VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardL4s + VirtualMachineSizeTypesStandardL8s VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardL8s + VirtualMachineSizeTypesStandardM12832ms VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardM12832ms + VirtualMachineSizeTypesStandardM12864ms VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardM12864ms + VirtualMachineSizeTypesStandardM128ms VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardM128ms + VirtualMachineSizeTypesStandardM128s VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardM128s + VirtualMachineSizeTypesStandardM6416ms VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardM6416ms + VirtualMachineSizeTypesStandardM6432ms VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardM6432ms + VirtualMachineSizeTypesStandardM64ms VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardM64ms + VirtualMachineSizeTypesStandardM64s VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardM64s + VirtualMachineSizeTypesStandardNC12 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardNC12 + VirtualMachineSizeTypesStandardNC12sV2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardNC12sV2 + VirtualMachineSizeTypesStandardNC12sV3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardNC12sV3 + VirtualMachineSizeTypesStandardNC24 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardNC24 + VirtualMachineSizeTypesStandardNC24r VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardNC24r + VirtualMachineSizeTypesStandardNC24rsV2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardNC24rsV2 + VirtualMachineSizeTypesStandardNC24rsV3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardNC24rsV3 + VirtualMachineSizeTypesStandardNC24sV2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardNC24sV2 + VirtualMachineSizeTypesStandardNC24sV3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardNC24sV3 + VirtualMachineSizeTypesStandardNC6 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardNC6 + VirtualMachineSizeTypesStandardNC6sV2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardNC6sV2 + VirtualMachineSizeTypesStandardNC6sV3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardNC6sV3 + VirtualMachineSizeTypesStandardND12s VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardND12s + VirtualMachineSizeTypesStandardND24rs VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardND24rs + VirtualMachineSizeTypesStandardND24s VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardND24s + VirtualMachineSizeTypesStandardND6s VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardND6s + VirtualMachineSizeTypesStandardNV12 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardNV12 + VirtualMachineSizeTypesStandardNV24 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardNV24 + VirtualMachineSizeTypesStandardNV6 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardNV6 +) + +type WindowsPatchAssessmentMode = original.WindowsPatchAssessmentMode + +const ( + WindowsPatchAssessmentModeAutomaticByPlatform WindowsPatchAssessmentMode = original.WindowsPatchAssessmentModeAutomaticByPlatform + WindowsPatchAssessmentModeImageDefault WindowsPatchAssessmentMode = original.WindowsPatchAssessmentModeImageDefault ) type WindowsVMGuestPatchMode = original.WindowsVMGuestPatchMode @@ -986,6 +1110,7 @@ type GalleryDataDiskImage = original.GalleryDataDiskImage type GalleryDiskImage = original.GalleryDiskImage type GalleryIdentifier = original.GalleryIdentifier type GalleryImage = original.GalleryImage +type GalleryImageFeature = original.GalleryImageFeature type GalleryImageIdentifier = original.GalleryImageIdentifier type GalleryImageList = original.GalleryImageList type GalleryImageListIterator = original.GalleryImageListIterator @@ -1013,6 +1138,8 @@ type GalleryListIterator = original.GalleryListIterator type GalleryListPage = original.GalleryListPage type GalleryOSDiskImage = original.GalleryOSDiskImage type GalleryProperties = original.GalleryProperties +type GallerySharingProfileClient = original.GallerySharingProfileClient +type GallerySharingProfileUpdateFuture = original.GallerySharingProfileUpdateFuture type GalleryUpdate = original.GalleryUpdate type GrantAccessData = original.GrantAccessData type HardwareProfile = original.HardwareProfile @@ -1090,6 +1217,8 @@ type OrchestrationServiceStateInput = original.OrchestrationServiceStateInput type OrchestrationServiceSummary = original.OrchestrationServiceSummary type PatchInstallationDetail = original.PatchInstallationDetail type PatchSettings = original.PatchSettings +type PirResource = original.PirResource +type PirSharedGalleryResource = original.PirSharedGalleryResource type Plan = original.Plan type PrivateEndpoint = original.PrivateEndpoint type PrivateEndpointConnection = original.PrivateEndpointConnection @@ -1110,6 +1239,8 @@ type ProximityPlacementGroupProperties = original.ProximityPlacementGroupPropert type ProximityPlacementGroupUpdate = original.ProximityPlacementGroupUpdate type ProximityPlacementGroupsClient = original.ProximityPlacementGroupsClient type ProxyOnlyResource = original.ProxyOnlyResource +type ProxyResource = original.ProxyResource +type PublicIPAddressSku = original.PublicIPAddressSku type PurchasePlan = original.PurchasePlan type ReadCloser = original.ReadCloser type RecommendedMachineConfiguration = original.RecommendedMachineConfiguration @@ -1135,6 +1266,24 @@ type ResourceSkusResultPage = original.ResourceSkusResultPage type ResourceURIList = original.ResourceURIList type ResourceURIListIterator = original.ResourceURIListIterator type ResourceURIListPage = original.ResourceURIListPage +type RestorePoint = original.RestorePoint +type RestorePointCollection = original.RestorePointCollection +type RestorePointCollectionListResult = original.RestorePointCollectionListResult +type RestorePointCollectionListResultIterator = original.RestorePointCollectionListResultIterator +type RestorePointCollectionListResultPage = original.RestorePointCollectionListResultPage +type RestorePointCollectionProperties = original.RestorePointCollectionProperties +type RestorePointCollectionSourceProperties = original.RestorePointCollectionSourceProperties +type RestorePointCollectionUpdate = original.RestorePointCollectionUpdate +type RestorePointCollectionsClient = original.RestorePointCollectionsClient +type RestorePointCollectionsDeleteFuture = original.RestorePointCollectionsDeleteFuture +type RestorePointProvisioningDetails = original.RestorePointProvisioningDetails +type RestorePointSourceMetadata = original.RestorePointSourceMetadata +type RestorePointSourceVMDataDisk = original.RestorePointSourceVMDataDisk +type RestorePointSourceVMOSDisk = original.RestorePointSourceVMOSDisk +type RestorePointSourceVMStorageProfile = original.RestorePointSourceVMStorageProfile +type RestorePointsClient = original.RestorePointsClient +type RestorePointsCreateFuture = original.RestorePointsCreateFuture +type RestorePointsDeleteFuture = original.RestorePointsDeleteFuture type RetrieveBootDiagnosticsDataResult = original.RetrieveBootDiagnosticsDataResult type RoleInstance = original.RoleInstance type RoleInstanceInstanceView = original.RoleInstanceInstanceView @@ -1173,6 +1322,27 @@ type ScaleInPolicy = original.ScaleInPolicy type ScheduledEventsProfile = original.ScheduledEventsProfile type SecurityProfile = original.SecurityProfile type ShareInfoElement = original.ShareInfoElement +type SharedGalleriesClient = original.SharedGalleriesClient +type SharedGallery = original.SharedGallery +type SharedGalleryIdentifier = original.SharedGalleryIdentifier +type SharedGalleryImage = original.SharedGalleryImage +type SharedGalleryImageList = original.SharedGalleryImageList +type SharedGalleryImageListIterator = original.SharedGalleryImageListIterator +type SharedGalleryImageListPage = original.SharedGalleryImageListPage +type SharedGalleryImageProperties = original.SharedGalleryImageProperties +type SharedGalleryImageVersion = original.SharedGalleryImageVersion +type SharedGalleryImageVersionList = original.SharedGalleryImageVersionList +type SharedGalleryImageVersionListIterator = original.SharedGalleryImageVersionListIterator +type SharedGalleryImageVersionListPage = original.SharedGalleryImageVersionListPage +type SharedGalleryImageVersionProperties = original.SharedGalleryImageVersionProperties +type SharedGalleryImageVersionsClient = original.SharedGalleryImageVersionsClient +type SharedGalleryImagesClient = original.SharedGalleryImagesClient +type SharedGalleryList = original.SharedGalleryList +type SharedGalleryListIterator = original.SharedGalleryListIterator +type SharedGalleryListPage = original.SharedGalleryListPage +type SharingProfile = original.SharingProfile +type SharingProfileGroup = original.SharingProfileGroup +type SharingUpdate = original.SharingUpdate type Sku = original.Sku type Snapshot = original.Snapshot type SnapshotList = original.SnapshotList @@ -1237,6 +1407,7 @@ type VirtualMachineExtensionsDeleteFuture = original.VirtualMachineExtensionsDel type VirtualMachineExtensionsListResult = original.VirtualMachineExtensionsListResult type VirtualMachineExtensionsUpdateFuture = original.VirtualMachineExtensionsUpdateFuture type VirtualMachineHealthStatus = original.VirtualMachineHealthStatus +type VirtualMachineIPTag = original.VirtualMachineIPTag type VirtualMachineIdentity = original.VirtualMachineIdentity type VirtualMachineIdentityUserAssignedIdentitiesValue = original.VirtualMachineIdentityUserAssignedIdentitiesValue type VirtualMachineImage = original.VirtualMachineImage @@ -1251,8 +1422,16 @@ type VirtualMachineInstanceView = original.VirtualMachineInstanceView type VirtualMachineListResult = original.VirtualMachineListResult type VirtualMachineListResultIterator = original.VirtualMachineListResultIterator type VirtualMachineListResultPage = original.VirtualMachineListResultPage +type VirtualMachineNetworkInterfaceConfiguration = original.VirtualMachineNetworkInterfaceConfiguration +type VirtualMachineNetworkInterfaceConfigurationProperties = original.VirtualMachineNetworkInterfaceConfigurationProperties +type VirtualMachineNetworkInterfaceDNSSettingsConfiguration = original.VirtualMachineNetworkInterfaceDNSSettingsConfiguration +type VirtualMachineNetworkInterfaceIPConfiguration = original.VirtualMachineNetworkInterfaceIPConfiguration +type VirtualMachineNetworkInterfaceIPConfigurationProperties = original.VirtualMachineNetworkInterfaceIPConfigurationProperties type VirtualMachinePatchStatus = original.VirtualMachinePatchStatus type VirtualMachineProperties = original.VirtualMachineProperties +type VirtualMachinePublicIPAddressConfiguration = original.VirtualMachinePublicIPAddressConfiguration +type VirtualMachinePublicIPAddressConfigurationProperties = original.VirtualMachinePublicIPAddressConfigurationProperties +type VirtualMachinePublicIPAddressDNSSettingsConfiguration = original.VirtualMachinePublicIPAddressDNSSettingsConfiguration type VirtualMachineReimageParameters = original.VirtualMachineReimageParameters type VirtualMachineRunCommand = original.VirtualMachineRunCommand type VirtualMachineRunCommandInstanceView = original.VirtualMachineRunCommandInstanceView @@ -1598,6 +1777,12 @@ func NewGalleryListIterator(page GalleryListPage) GalleryListIterator { func NewGalleryListPage(cur GalleryList, getNextPage func(context.Context, GalleryList) (GalleryList, error)) GalleryListPage { return original.NewGalleryListPage(cur, getNextPage) } +func NewGallerySharingProfileClient(subscriptionID string) GallerySharingProfileClient { + return original.NewGallerySharingProfileClient(subscriptionID) +} +func NewGallerySharingProfileClientWithBaseURI(baseURI string, subscriptionID string) GallerySharingProfileClient { + return original.NewGallerySharingProfileClientWithBaseURI(baseURI, subscriptionID) +} func NewImageListResultIterator(page ImageListResultPage) ImageListResultIterator { return original.NewImageListResultIterator(page) } @@ -1676,6 +1861,24 @@ func NewResourceURIListIterator(page ResourceURIListPage) ResourceURIListIterato func NewResourceURIListPage(cur ResourceURIList, getNextPage func(context.Context, ResourceURIList) (ResourceURIList, error)) ResourceURIListPage { return original.NewResourceURIListPage(cur, getNextPage) } +func NewRestorePointCollectionListResultIterator(page RestorePointCollectionListResultPage) RestorePointCollectionListResultIterator { + return original.NewRestorePointCollectionListResultIterator(page) +} +func NewRestorePointCollectionListResultPage(cur RestorePointCollectionListResult, getNextPage func(context.Context, RestorePointCollectionListResult) (RestorePointCollectionListResult, error)) RestorePointCollectionListResultPage { + return original.NewRestorePointCollectionListResultPage(cur, getNextPage) +} +func NewRestorePointCollectionsClient(subscriptionID string) RestorePointCollectionsClient { + return original.NewRestorePointCollectionsClient(subscriptionID) +} +func NewRestorePointCollectionsClientWithBaseURI(baseURI string, subscriptionID string) RestorePointCollectionsClient { + return original.NewRestorePointCollectionsClientWithBaseURI(baseURI, subscriptionID) +} +func NewRestorePointsClient(subscriptionID string) RestorePointsClient { + return original.NewRestorePointsClient(subscriptionID) +} +func NewRestorePointsClientWithBaseURI(baseURI string, subscriptionID string) RestorePointsClient { + return original.NewRestorePointsClientWithBaseURI(baseURI, subscriptionID) +} func NewRoleInstanceListResultIterator(page RoleInstanceListResultPage) RoleInstanceListResultIterator { return original.NewRoleInstanceListResultIterator(page) } @@ -1700,6 +1903,42 @@ func NewSSHPublicKeysGroupListResultIterator(page SSHPublicKeysGroupListResultPa func NewSSHPublicKeysGroupListResultPage(cur SSHPublicKeysGroupListResult, getNextPage func(context.Context, SSHPublicKeysGroupListResult) (SSHPublicKeysGroupListResult, error)) SSHPublicKeysGroupListResultPage { return original.NewSSHPublicKeysGroupListResultPage(cur, getNextPage) } +func NewSharedGalleriesClient(subscriptionID string) SharedGalleriesClient { + return original.NewSharedGalleriesClient(subscriptionID) +} +func NewSharedGalleriesClientWithBaseURI(baseURI string, subscriptionID string) SharedGalleriesClient { + return original.NewSharedGalleriesClientWithBaseURI(baseURI, subscriptionID) +} +func NewSharedGalleryImageListIterator(page SharedGalleryImageListPage) SharedGalleryImageListIterator { + return original.NewSharedGalleryImageListIterator(page) +} +func NewSharedGalleryImageListPage(cur SharedGalleryImageList, getNextPage func(context.Context, SharedGalleryImageList) (SharedGalleryImageList, error)) SharedGalleryImageListPage { + return original.NewSharedGalleryImageListPage(cur, getNextPage) +} +func NewSharedGalleryImageVersionListIterator(page SharedGalleryImageVersionListPage) SharedGalleryImageVersionListIterator { + return original.NewSharedGalleryImageVersionListIterator(page) +} +func NewSharedGalleryImageVersionListPage(cur SharedGalleryImageVersionList, getNextPage func(context.Context, SharedGalleryImageVersionList) (SharedGalleryImageVersionList, error)) SharedGalleryImageVersionListPage { + return original.NewSharedGalleryImageVersionListPage(cur, getNextPage) +} +func NewSharedGalleryImageVersionsClient(subscriptionID string) SharedGalleryImageVersionsClient { + return original.NewSharedGalleryImageVersionsClient(subscriptionID) +} +func NewSharedGalleryImageVersionsClientWithBaseURI(baseURI string, subscriptionID string) SharedGalleryImageVersionsClient { + return original.NewSharedGalleryImageVersionsClientWithBaseURI(baseURI, subscriptionID) +} +func NewSharedGalleryImagesClient(subscriptionID string) SharedGalleryImagesClient { + return original.NewSharedGalleryImagesClient(subscriptionID) +} +func NewSharedGalleryImagesClientWithBaseURI(baseURI string, subscriptionID string) SharedGalleryImagesClient { + return original.NewSharedGalleryImagesClientWithBaseURI(baseURI, subscriptionID) +} +func NewSharedGalleryListIterator(page SharedGalleryListPage) SharedGalleryListIterator { + return original.NewSharedGalleryListIterator(page) +} +func NewSharedGalleryListPage(cur SharedGalleryList, getNextPage func(context.Context, SharedGalleryList) (SharedGalleryList, error)) SharedGalleryListPage { + return original.NewSharedGalleryListPage(cur, getNextPage) +} func NewSnapshotListIterator(page SnapshotListPage) SnapshotListIterator { return original.NewSnapshotListIterator(page) } @@ -1871,9 +2110,15 @@ func PossibleCloudServiceUpgradeModeValues() []CloudServiceUpgradeMode { func PossibleComponentNamesValues() []ComponentNames { return original.PossibleComponentNamesValues() } +func PossibleConsistencyModeTypesValues() []ConsistencyModeTypes { + return original.PossibleConsistencyModeTypesValues() +} func PossibleDedicatedHostLicenseTypesValues() []DedicatedHostLicenseTypes { return original.PossibleDedicatedHostLicenseTypesValues() } +func PossibleDeleteOptionsValues() []DeleteOptions { + return original.PossibleDeleteOptionsValues() +} func PossibleDiffDiskOptionsValues() []DiffDiskOptions { return original.PossibleDiffDiskOptionsValues() } @@ -1886,6 +2131,9 @@ func PossibleDiskCreateOptionTypesValues() []DiskCreateOptionTypes { func PossibleDiskCreateOptionValues() []DiskCreateOption { return original.PossibleDiskCreateOptionValues() } +func PossibleDiskDeleteOptionTypesValues() []DiskDeleteOptionTypes { + return original.PossibleDiskDeleteOptionTypesValues() +} func PossibleDiskDetachOptionTypesValues() []DiskDetachOptionTypes { return original.PossibleDiskDetachOptionTypesValues() } @@ -1910,9 +2158,15 @@ func PossibleEncryptionTypeValues() []EncryptionType { func PossibleExecutionStateValues() []ExecutionState { return original.PossibleExecutionStateValues() } +func PossibleExpandTypesForGetVMScaleSetsValues() []ExpandTypesForGetVMScaleSets { + return original.PossibleExpandTypesForGetVMScaleSetsValues() +} func PossibleExtendedLocationTypesValues() []ExtendedLocationTypes { return original.PossibleExtendedLocationTypesValues() } +func PossibleGallerySharingPermissionTypesValues() []GallerySharingPermissionTypes { + return original.PossibleGallerySharingPermissionTypesValues() +} func PossibleHostCachingValues() []HostCaching { return original.PossibleHostCachingValues() } @@ -1928,24 +2182,36 @@ func PossibleHyperVGenerationValues() []HyperVGeneration { func PossibleIPVersionValues() []IPVersion { return original.PossibleIPVersionValues() } +func PossibleIPVersionsValues() []IPVersions { + return original.PossibleIPVersionsValues() +} func PossibleInstanceViewTypesValues() []InstanceViewTypes { return original.PossibleInstanceViewTypesValues() } func PossibleIntervalInMinsValues() []IntervalInMins { return original.PossibleIntervalInMinsValues() } +func PossibleLinuxPatchAssessmentModeValues() []LinuxPatchAssessmentMode { + return original.PossibleLinuxPatchAssessmentModeValues() +} func PossibleLinuxVMGuestPatchModeValues() []LinuxVMGuestPatchMode { return original.PossibleLinuxVMGuestPatchModeValues() } func PossibleMaintenanceOperationResultCodeTypesValues() []MaintenanceOperationResultCodeTypes { return original.PossibleMaintenanceOperationResultCodeTypesValues() } +func PossibleNetworkAPIVersionValues() []NetworkAPIVersion { + return original.PossibleNetworkAPIVersionValues() +} func PossibleNetworkAccessPolicyValues() []NetworkAccessPolicy { return original.PossibleNetworkAccessPolicyValues() } func PossibleOperatingSystemStateTypesValues() []OperatingSystemStateTypes { return original.PossibleOperatingSystemStateTypesValues() } +func PossibleOperatingSystemTypeValues() []OperatingSystemType { + return original.PossibleOperatingSystemTypeValues() +} func PossibleOperatingSystemTypesValues() []OperatingSystemTypes { return original.PossibleOperatingSystemTypesValues() } @@ -1997,6 +2263,15 @@ func PossibleProvisioningStateValues() []ProvisioningState { func PossibleProximityPlacementGroupTypeValues() []ProximityPlacementGroupType { return original.PossibleProximityPlacementGroupTypeValues() } +func PossiblePublicIPAddressSkuNameValues() []PublicIPAddressSkuName { + return original.PossiblePublicIPAddressSkuNameValues() +} +func PossiblePublicIPAddressSkuTierValues() []PublicIPAddressSkuTier { + return original.PossiblePublicIPAddressSkuTierValues() +} +func PossiblePublicIPAllocationMethodValues() []PublicIPAllocationMethod { + return original.PossiblePublicIPAllocationMethodValues() +} func PossibleReplicationStateValues() []ReplicationState { return original.PossibleReplicationStateValues() } @@ -2015,6 +2290,9 @@ func PossibleResourceSkuRestrictionsReasonCodeValues() []ResourceSkuRestrictions func PossibleResourceSkuRestrictionsTypeValues() []ResourceSkuRestrictionsType { return original.PossibleResourceSkuRestrictionsTypeValues() } +func PossibleRestorePointCollectionExpandOptionsValues() []RestorePointCollectionExpandOptions { + return original.PossibleRestorePointCollectionExpandOptionsValues() +} func PossibleRollingUpgradeActionTypeValues() []RollingUpgradeActionType { return original.PossibleRollingUpgradeActionTypeValues() } @@ -2024,9 +2302,21 @@ func PossibleRollingUpgradeStatusCodeValues() []RollingUpgradeStatusCode { func PossibleSecurityTypesValues() []SecurityTypes { return original.PossibleSecurityTypesValues() } +func PossibleSelectPermissionsValues() []SelectPermissions { + return original.PossibleSelectPermissionsValues() +} func PossibleSettingNamesValues() []SettingNames { return original.PossibleSettingNamesValues() } +func PossibleSharedToValuesValues() []SharedToValues { + return original.PossibleSharedToValuesValues() +} +func PossibleSharingProfileGroupTypesValues() []SharingProfileGroupTypes { + return original.PossibleSharingProfileGroupTypesValues() +} +func PossibleSharingUpdateOperationTypesValues() []SharingUpdateOperationTypes { + return original.PossibleSharingUpdateOperationTypesValues() +} func PossibleSnapshotStorageAccountTypesValues() []SnapshotStorageAccountTypes { return original.PossibleSnapshotStorageAccountTypesValues() } @@ -2081,6 +2371,9 @@ func PossibleVirtualMachineScaleSetSkuScaleTypeValues() []VirtualMachineScaleSet func PossibleVirtualMachineSizeTypesValues() []VirtualMachineSizeTypes { return original.PossibleVirtualMachineSizeTypesValues() } +func PossibleWindowsPatchAssessmentModeValues() []WindowsPatchAssessmentMode { + return original.PossibleWindowsPatchAssessmentModeValues() +} func PossibleWindowsVMGuestPatchModeValues() []WindowsVMGuestPatchMode { return original.PossibleWindowsVMGuestPatchModeValues() } diff --git a/profiles/latest/datadog/mgmt/datadog/models.go b/profiles/latest/datadog/mgmt/datadog/models.go index ea15d2fed7e0..1bf2702235d4 100644 --- a/profiles/latest/datadog/mgmt/datadog/models.go +++ b/profiles/latest/datadog/mgmt/datadog/models.go @@ -21,70 +21,70 @@ const ( type CreatedByType = original.CreatedByType const ( - Application CreatedByType = original.Application - Key CreatedByType = original.Key - ManagedIdentity CreatedByType = original.ManagedIdentity - User CreatedByType = original.User + CreatedByTypeApplication CreatedByType = original.CreatedByTypeApplication + CreatedByTypeKey CreatedByType = original.CreatedByTypeKey + CreatedByTypeManagedIdentity CreatedByType = original.CreatedByTypeManagedIdentity + CreatedByTypeUser CreatedByType = original.CreatedByTypeUser ) type LiftrResourceCategories = original.LiftrResourceCategories const ( - MonitorLogs LiftrResourceCategories = original.MonitorLogs - Unknown LiftrResourceCategories = original.Unknown + LiftrResourceCategoriesMonitorLogs LiftrResourceCategories = original.LiftrResourceCategoriesMonitorLogs + LiftrResourceCategoriesUnknown LiftrResourceCategories = original.LiftrResourceCategoriesUnknown ) type ManagedIdentityTypes = original.ManagedIdentityTypes const ( - SystemAssigned ManagedIdentityTypes = original.SystemAssigned - UserAssigned ManagedIdentityTypes = original.UserAssigned + ManagedIdentityTypesSystemAssigned ManagedIdentityTypes = original.ManagedIdentityTypesSystemAssigned + ManagedIdentityTypesUserAssigned ManagedIdentityTypes = original.ManagedIdentityTypesUserAssigned ) type MarketplaceSubscriptionStatus = original.MarketplaceSubscriptionStatus const ( - Active MarketplaceSubscriptionStatus = original.Active - Provisioning MarketplaceSubscriptionStatus = original.Provisioning - Suspended MarketplaceSubscriptionStatus = original.Suspended - Unsubscribed MarketplaceSubscriptionStatus = original.Unsubscribed + MarketplaceSubscriptionStatusActive MarketplaceSubscriptionStatus = original.MarketplaceSubscriptionStatusActive + MarketplaceSubscriptionStatusProvisioning MarketplaceSubscriptionStatus = original.MarketplaceSubscriptionStatusProvisioning + MarketplaceSubscriptionStatusSuspended MarketplaceSubscriptionStatus = original.MarketplaceSubscriptionStatusSuspended + MarketplaceSubscriptionStatusUnsubscribed MarketplaceSubscriptionStatus = original.MarketplaceSubscriptionStatusUnsubscribed ) type MonitoringStatus = original.MonitoringStatus const ( - Disabled MonitoringStatus = original.Disabled - Enabled MonitoringStatus = original.Enabled + MonitoringStatusDisabled MonitoringStatus = original.MonitoringStatusDisabled + MonitoringStatusEnabled MonitoringStatus = original.MonitoringStatusEnabled ) type ProvisioningState = original.ProvisioningState const ( - Accepted ProvisioningState = original.Accepted - Canceled ProvisioningState = original.Canceled - Creating ProvisioningState = original.Creating - Deleted ProvisioningState = original.Deleted - Deleting ProvisioningState = original.Deleting - Failed ProvisioningState = original.Failed - NotSpecified ProvisioningState = original.NotSpecified - Succeeded ProvisioningState = original.Succeeded - Updating ProvisioningState = original.Updating + ProvisioningStateAccepted ProvisioningState = original.ProvisioningStateAccepted + ProvisioningStateCanceled ProvisioningState = original.ProvisioningStateCanceled + ProvisioningStateCreating ProvisioningState = original.ProvisioningStateCreating + ProvisioningStateDeleted ProvisioningState = original.ProvisioningStateDeleted + ProvisioningStateDeleting ProvisioningState = original.ProvisioningStateDeleting + ProvisioningStateFailed ProvisioningState = original.ProvisioningStateFailed + ProvisioningStateNotSpecified ProvisioningState = original.ProvisioningStateNotSpecified + ProvisioningStateSucceeded ProvisioningState = original.ProvisioningStateSucceeded + ProvisioningStateUpdating ProvisioningState = original.ProvisioningStateUpdating ) type SingleSignOnStates = original.SingleSignOnStates const ( - Disable SingleSignOnStates = original.Disable - Enable SingleSignOnStates = original.Enable - Existing SingleSignOnStates = original.Existing - Initial SingleSignOnStates = original.Initial + SingleSignOnStatesDisable SingleSignOnStates = original.SingleSignOnStatesDisable + SingleSignOnStatesEnable SingleSignOnStates = original.SingleSignOnStatesEnable + SingleSignOnStatesExisting SingleSignOnStates = original.SingleSignOnStatesExisting + SingleSignOnStatesInitial SingleSignOnStates = original.SingleSignOnStatesInitial ) type TagAction = original.TagAction const ( - Exclude TagAction = original.Exclude - Include TagAction = original.Include + TagActionExclude TagAction = original.TagActionExclude + TagActionInclude TagAction = original.TagActionInclude ) type APIKey = original.APIKey @@ -135,6 +135,7 @@ type MonitoringTagRulesProperties = original.MonitoringTagRulesProperties type MonitorsClient = original.MonitorsClient type MonitorsCreateFuture = original.MonitorsCreateFuture type MonitorsDeleteFuture = original.MonitorsDeleteFuture +type MonitorsUpdateFuture = original.MonitorsUpdateFuture type OperationDisplay = original.OperationDisplay type OperationListResult = original.OperationListResult type OperationListResultIterator = original.OperationListResultIterator diff --git a/profiles/latest/datafactory/mgmt/datafactory/models.go b/profiles/latest/datafactory/mgmt/datafactory/models.go index b499447bf110..275625fc6cb4 100644 --- a/profiles/latest/datafactory/mgmt/datafactory/models.go +++ b/profiles/latest/datafactory/mgmt/datafactory/models.go @@ -21,18 +21,18 @@ const ( type AuthenticationType = original.AuthenticationType const ( - AuthenticationTypeAuthenticationTypeAnonymous AuthenticationType = original.AuthenticationTypeAuthenticationTypeAnonymous - AuthenticationTypeAuthenticationTypeBasic AuthenticationType = original.AuthenticationTypeAuthenticationTypeBasic - AuthenticationTypeAuthenticationTypeClientCertificate AuthenticationType = original.AuthenticationTypeAuthenticationTypeClientCertificate - AuthenticationTypeAuthenticationTypeWebLinkedServiceTypeProperties AuthenticationType = original.AuthenticationTypeAuthenticationTypeWebLinkedServiceTypeProperties + AuthenticationTypeAnonymous AuthenticationType = original.AuthenticationTypeAnonymous + AuthenticationTypeBasic AuthenticationType = original.AuthenticationTypeBasic + AuthenticationTypeClientCertificate AuthenticationType = original.AuthenticationTypeClientCertificate + AuthenticationTypeWebLinkedServiceTypeProperties AuthenticationType = original.AuthenticationTypeWebLinkedServiceTypeProperties ) type AuthorizationType = original.AuthorizationType const ( - AuthorizationTypeAuthorizationTypeKey AuthorizationType = original.AuthorizationTypeAuthorizationTypeKey - AuthorizationTypeAuthorizationTypeLinkedIntegrationRuntimeType AuthorizationType = original.AuthorizationTypeAuthorizationTypeLinkedIntegrationRuntimeType - AuthorizationTypeAuthorizationTypeRBAC AuthorizationType = original.AuthorizationTypeAuthorizationTypeRBAC + AuthorizationTypeKey AuthorizationType = original.AuthorizationTypeKey + AuthorizationTypeLinkedIntegrationRuntimeType AuthorizationType = original.AuthorizationTypeLinkedIntegrationRuntimeType + AuthorizationTypeRBAC AuthorizationType = original.AuthorizationTypeRBAC ) type AvroCompressionCodec = original.AvroCompressionCodec @@ -86,6 +86,21 @@ const ( CassandraSourceReadConsistencyLevelsTWO CassandraSourceReadConsistencyLevels = original.CassandraSourceReadConsistencyLevelsTWO ) +type CompressionCodec = original.CompressionCodec + +const ( + CompressionCodecBzip2 CompressionCodec = original.CompressionCodecBzip2 + CompressionCodecDeflate CompressionCodec = original.CompressionCodecDeflate + CompressionCodecGzip CompressionCodec = original.CompressionCodecGzip + CompressionCodecLz4 CompressionCodec = original.CompressionCodecLz4 + CompressionCodecLzo CompressionCodec = original.CompressionCodecLzo + CompressionCodecNone CompressionCodec = original.CompressionCodecNone + CompressionCodecSnappy CompressionCodec = original.CompressionCodecSnappy + CompressionCodecTar CompressionCodec = original.CompressionCodecTar + CompressionCodecTarGZip CompressionCodec = original.CompressionCodecTarGZip + CompressionCodecZipDeflate CompressionCodec = original.CompressionCodecZipDeflate +) + type CopyBehaviorType = original.CopyBehaviorType const ( @@ -124,6 +139,13 @@ const ( DataFlowDebugCommandTypeExecuteStatisticsQuery DataFlowDebugCommandType = original.DataFlowDebugCommandTypeExecuteStatisticsQuery ) +type DatasetCompressionLevel = original.DatasetCompressionLevel + +const ( + DatasetCompressionLevelFastest DatasetCompressionLevel = original.DatasetCompressionLevelFastest + DatasetCompressionLevelOptimal DatasetCompressionLevel = original.DatasetCompressionLevelOptimal +) + type DayOfWeek = original.DayOfWeek const ( @@ -259,6 +281,14 @@ const ( HTTPAuthenticationTypeWindows HTTPAuthenticationType = original.HTTPAuthenticationTypeWindows ) +type HdiNodeTypes = original.HdiNodeTypes + +const ( + HdiNodeTypesHeadnode HdiNodeTypes = original.HdiNodeTypesHeadnode + HdiNodeTypesWorkernode HdiNodeTypes = original.HdiNodeTypesWorkernode + HdiNodeTypesZookeeper HdiNodeTypes = original.HdiNodeTypesZookeeper +) + type HiveAuthenticationType = original.HiveAuthenticationType const ( @@ -316,6 +346,7 @@ const ( type IntegrationRuntimeEntityReferenceType = original.IntegrationRuntimeEntityReferenceType const ( + IntegrationRuntimeEntityReferenceTypeCredentialReference IntegrationRuntimeEntityReferenceType = original.IntegrationRuntimeEntityReferenceTypeCredentialReference IntegrationRuntimeEntityReferenceTypeIntegrationRuntimeReference IntegrationRuntimeEntityReferenceType = original.IntegrationRuntimeEntityReferenceTypeIntegrationRuntimeReference IntegrationRuntimeEntityReferenceTypeLinkedServiceReference IntegrationRuntimeEntityReferenceType = original.IntegrationRuntimeEntityReferenceTypeLinkedServiceReference ) @@ -374,6 +405,13 @@ const ( IntegrationRuntimeUpdateResultSucceed IntegrationRuntimeUpdateResult = original.IntegrationRuntimeUpdateResultSucceed ) +type JSONFormatFilePattern = original.JSONFormatFilePattern + +const ( + JSONFormatFilePatternArrayOfObjects JSONFormatFilePattern = original.JSONFormatFilePatternArrayOfObjects + JSONFormatFilePatternSetOfObjects JSONFormatFilePattern = original.JSONFormatFilePatternSetOfObjects +) + type JSONWriteFilePattern = original.JSONWriteFilePattern const ( @@ -629,6 +667,13 @@ const ( ServiceNowAuthenticationTypeOAuth2 ServiceNowAuthenticationType = original.ServiceNowAuthenticationTypeOAuth2 ) +type ServicePrincipalCredentialType = original.ServicePrincipalCredentialType + +const ( + ServicePrincipalCredentialTypeServicePrincipalCert ServicePrincipalCredentialType = original.ServicePrincipalCredentialTypeServicePrincipalCert + ServicePrincipalCredentialTypeServicePrincipalKey ServicePrincipalCredentialType = original.ServicePrincipalCredentialTypeServicePrincipalKey +) + type SftpAuthenticationType = original.SftpAuthenticationType const ( @@ -741,9 +786,9 @@ const ( type Type = original.Type const ( - TypeTypeAzureKeyVaultSecret Type = original.TypeTypeAzureKeyVaultSecret - TypeTypeSecretBase Type = original.TypeTypeSecretBase - TypeTypeSecureString Type = original.TypeTypeSecureString + TypeAzureKeyVaultSecret Type = original.TypeAzureKeyVaultSecret + TypeSecretBase Type = original.TypeSecretBase + TypeSecureString Type = original.TypeSecureString ) type TypeBasicActivity = original.TypeBasicActivity @@ -1939,6 +1984,7 @@ type MarketoLinkedService = original.MarketoLinkedService type MarketoLinkedServiceTypeProperties = original.MarketoLinkedServiceTypeProperties type MarketoObjectDataset = original.MarketoObjectDataset type MarketoSource = original.MarketoSource +type MetadataItem = original.MetadataItem type MicrosoftAccessLinkedService = original.MicrosoftAccessLinkedService type MicrosoftAccessLinkedServiceTypeProperties = original.MicrosoftAccessLinkedServiceTypeProperties type MicrosoftAccessSink = original.MicrosoftAccessSink @@ -2555,6 +2601,9 @@ func PossibleBlobEventTypesValues() []BlobEventTypes { func PossibleCassandraSourceReadConsistencyLevelsValues() []CassandraSourceReadConsistencyLevels { return original.PossibleCassandraSourceReadConsistencyLevelsValues() } +func PossibleCompressionCodecValues() []CompressionCodec { + return original.PossibleCompressionCodecValues() +} func PossibleCopyBehaviorTypeValues() []CopyBehaviorType { return original.PossibleCopyBehaviorTypeValues() } @@ -2570,6 +2619,9 @@ func PossibleDataFlowComputeTypeValues() []DataFlowComputeType { func PossibleDataFlowDebugCommandTypeValues() []DataFlowDebugCommandType { return original.PossibleDataFlowDebugCommandTypeValues() } +func PossibleDatasetCompressionLevelValues() []DatasetCompressionLevel { + return original.PossibleDatasetCompressionLevelValues() +} func PossibleDayOfWeekValues() []DayOfWeek { return original.PossibleDayOfWeekValues() } @@ -2618,6 +2670,9 @@ func PossibleHDInsightActivityDebugInfoOptionValues() []HDInsightActivityDebugIn func PossibleHTTPAuthenticationTypeValues() []HTTPAuthenticationType { return original.PossibleHTTPAuthenticationTypeValues() } +func PossibleHdiNodeTypesValues() []HdiNodeTypes { + return original.PossibleHdiNodeTypesValues() +} func PossibleHiveAuthenticationTypeValues() []HiveAuthenticationType { return original.PossibleHiveAuthenticationTypeValues() } @@ -2660,6 +2715,9 @@ func PossibleIntegrationRuntimeTypeValues() []IntegrationRuntimeType { func PossibleIntegrationRuntimeUpdateResultValues() []IntegrationRuntimeUpdateResult { return original.PossibleIntegrationRuntimeUpdateResultValues() } +func PossibleJSONFormatFilePatternValues() []JSONFormatFilePattern { + return original.PossibleJSONFormatFilePatternValues() +} func PossibleJSONWriteFilePatternValues() []JSONWriteFilePattern { return original.PossibleJSONWriteFilePatternValues() } @@ -2747,6 +2805,9 @@ func PossibleSelfHostedIntegrationRuntimeNodeStatusValues() []SelfHostedIntegrat func PossibleServiceNowAuthenticationTypeValues() []ServiceNowAuthenticationType { return original.PossibleServiceNowAuthenticationTypeValues() } +func PossibleServicePrincipalCredentialTypeValues() []ServicePrincipalCredentialType { + return original.PossibleServicePrincipalCredentialTypeValues() +} func PossibleSftpAuthenticationTypeValues() []SftpAuthenticationType { return original.PossibleSftpAuthenticationTypeValues() } diff --git a/profiles/latest/delegatednetwork/mgmt/delegatednetwork/models.go b/profiles/latest/delegatednetwork/mgmt/delegatednetwork/models.go index cc173ac482d9..14a808f98692 100644 --- a/profiles/latest/delegatednetwork/mgmt/delegatednetwork/models.go +++ b/profiles/latest/delegatednetwork/mgmt/delegatednetwork/models.go @@ -21,16 +21,16 @@ const ( type ActionType = original.ActionType const ( - Internal ActionType = original.Internal + ActionTypeInternal ActionType = original.ActionTypeInternal ) type ControllerState = original.ControllerState const ( - Deleting ControllerState = original.Deleting - Failed ControllerState = original.Failed - Provisioning ControllerState = original.Provisioning - Succeeded ControllerState = original.Succeeded + ControllerStateDeleting ControllerState = original.ControllerStateDeleting + ControllerStateFailed ControllerState = original.ControllerStateFailed + ControllerStateProvisioning ControllerState = original.ControllerStateProvisioning + ControllerStateSucceeded ControllerState = original.ControllerStateSucceeded ) type DelegatedSubnetState = original.DelegatedSubnetState @@ -54,16 +54,16 @@ const ( type Origin = original.Origin const ( - System Origin = original.System - User Origin = original.User - Usersystem Origin = original.Usersystem + OriginSystem Origin = original.OriginSystem + OriginUser Origin = original.OriginUser + OriginUsersystem Origin = original.OriginUsersystem ) type ResourceIdentityType = original.ResourceIdentityType const ( - None ResourceIdentityType = original.None - SystemAssigned ResourceIdentityType = original.SystemAssigned + ResourceIdentityTypeNone ResourceIdentityType = original.ResourceIdentityTypeNone + ResourceIdentityTypeSystemAssigned ResourceIdentityType = original.ResourceIdentityTypeSystemAssigned ) type BaseClient = original.BaseClient diff --git a/profiles/latest/kusto/mgmt/kusto/models.go b/profiles/latest/kusto/mgmt/kusto/models.go index 34f5bba42a11..486c2883cc70 100644 --- a/profiles/latest/kusto/mgmt/kusto/models.go +++ b/profiles/latest/kusto/mgmt/kusto/models.go @@ -202,9 +202,9 @@ const ( type Kind = original.Kind const ( - KindKindDatabase Kind = original.KindKindDatabase - KindKindReadOnlyFollowing Kind = original.KindKindReadOnlyFollowing - KindKindReadWrite Kind = original.KindKindReadWrite + KindDatabase Kind = original.KindDatabase + KindReadOnlyFollowing Kind = original.KindReadOnlyFollowing + KindReadWrite Kind = original.KindReadWrite ) type KindBasicDataConnection = original.KindBasicDataConnection diff --git a/profiles/latest/recoveryservices/mgmt/backup/backupapi/models.go b/profiles/latest/recoveryservices/mgmt/backup/backupapi/models.go index 10a8bbaeed09..68e40089d1fc 100644 --- a/profiles/latest/recoveryservices/mgmt/backup/backupapi/models.go +++ b/profiles/latest/recoveryservices/mgmt/backup/backupapi/models.go @@ -8,10 +8,17 @@ package backupapi -import original "github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2020-02-02/backup/backupapi" +import original "github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2021-01-01/backup/backupapi" +type AadPropertiesClientAPI = original.AadPropertiesClientAPI +type BMSPrepareDataMoveOperationResultClientAPI = original.BMSPrepareDataMoveOperationResultClientAPI type BackupsClientAPI = original.BackupsClientAPI type BaseClientAPI = original.BaseClientAPI +type CrossRegionRestoreClientAPI = original.CrossRegionRestoreClientAPI +type CrrJobDetailsClientAPI = original.CrrJobDetailsClientAPI +type CrrJobsClientAPI = original.CrrJobsClientAPI +type CrrOperationResultsClientAPI = original.CrrOperationResultsClientAPI +type CrrOperationStatusClientAPI = original.CrrOperationStatusClientAPI type EnginesClientAPI = original.EnginesClientAPI type ExportJobsOperationResultsClientAPI = original.ExportJobsOperationResultsClientAPI type FeatureSupportClientAPI = original.FeatureSupportClientAPI @@ -26,12 +33,14 @@ type OperationResultsClientAPI = original.OperationResultsClientAPI type OperationStatusesClientAPI = original.OperationStatusesClientAPI type OperationsClientAPI = original.OperationsClientAPI type PoliciesClientAPI = original.PoliciesClientAPI +type PrivateEndpointClientAPI = original.PrivateEndpointClientAPI type PrivateEndpointConnectionClientAPI = original.PrivateEndpointConnectionClientAPI type ProtectableContainersClientAPI = original.ProtectableContainersClientAPI type ProtectableItemsClientAPI = original.ProtectableItemsClientAPI type ProtectedItemOperationResultsClientAPI = original.ProtectedItemOperationResultsClientAPI type ProtectedItemOperationStatusesClientAPI = original.ProtectedItemOperationStatusesClientAPI type ProtectedItemsClientAPI = original.ProtectedItemsClientAPI +type ProtectedItemsCrrClientAPI = original.ProtectedItemsCrrClientAPI type ProtectedItemsGroupClientAPI = original.ProtectedItemsGroupClientAPI type ProtectionContainerOperationResultsClientAPI = original.ProtectionContainerOperationResultsClientAPI type ProtectionContainerRefreshOperationResultsClientAPI = original.ProtectionContainerRefreshOperationResultsClientAPI @@ -43,10 +52,14 @@ type ProtectionPoliciesClientAPI = original.ProtectionPoliciesClientAPI type ProtectionPolicyOperationResultsClientAPI = original.ProtectionPolicyOperationResultsClientAPI type ProtectionPolicyOperationStatusesClientAPI = original.ProtectionPolicyOperationStatusesClientAPI type RecoveryPointsClientAPI = original.RecoveryPointsClientAPI +type RecoveryPointsCrrClientAPI = original.RecoveryPointsCrrClientAPI +type RecoveryPointsRecommendedForMoveClientAPI = original.RecoveryPointsRecommendedForMoveClientAPI +type ResourceEncryptionConfigsClientAPI = original.ResourceEncryptionConfigsClientAPI type ResourceStorageConfigsClientAPI = original.ResourceStorageConfigsClientAPI type ResourceVaultConfigsClientAPI = original.ResourceVaultConfigsClientAPI type RestoresClientAPI = original.RestoresClientAPI type SecurityPINsClientAPI = original.SecurityPINsClientAPI type StatusClientAPI = original.StatusClientAPI +type UsageSummariesCRRClientAPI = original.UsageSummariesCRRClientAPI type UsageSummariesClientAPI = original.UsageSummariesClientAPI type WorkloadItemsClientAPI = original.WorkloadItemsClientAPI diff --git a/profiles/latest/recoveryservices/mgmt/backup/models.go b/profiles/latest/recoveryservices/mgmt/backup/models.go index 03066f0ae7e2..2f1100799cbd 100644 --- a/profiles/latest/recoveryservices/mgmt/backup/models.go +++ b/profiles/latest/recoveryservices/mgmt/backup/models.go @@ -11,7 +11,7 @@ package backup import ( "context" - original "github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2020-02-02/backup" + original "github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2021-01-01/backup" ) const ( @@ -21,9 +21,9 @@ const ( type AzureFileShareType = original.AzureFileShareType const ( - Invalid AzureFileShareType = original.Invalid - XSMB AzureFileShareType = original.XSMB - XSync AzureFileShareType = original.XSync + AzureFileShareTypeInvalid AzureFileShareType = original.AzureFileShareTypeInvalid + AzureFileShareTypeXSMB AzureFileShareType = original.AzureFileShareTypeXSMB + AzureFileShareTypeXSync AzureFileShareType = original.AzureFileShareTypeXSync ) type ContainerType = original.ContainerType @@ -49,19 +49,19 @@ const ( type ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainer const ( - ContainerTypeAzureBackupServerContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeAzureBackupServerContainer1 - ContainerTypeAzureSQLContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeAzureSQLContainer1 - ContainerTypeAzureWorkloadContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeAzureWorkloadContainer - ContainerTypeDPMContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeDPMContainer1 - ContainerTypeGenericContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeGenericContainer1 - ContainerTypeIaaSVMContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeIaaSVMContainer - ContainerTypeMicrosoftClassicComputevirtualMachines ContainerTypeBasicProtectionContainer = original.ContainerTypeMicrosoftClassicComputevirtualMachines - ContainerTypeMicrosoftComputevirtualMachines ContainerTypeBasicProtectionContainer = original.ContainerTypeMicrosoftComputevirtualMachines - ContainerTypeProtectionContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeProtectionContainer - ContainerTypeSQLAGWorkLoadContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeSQLAGWorkLoadContainer1 - ContainerTypeStorageContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeStorageContainer1 - ContainerTypeVMAppContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeVMAppContainer1 - ContainerTypeWindows1 ContainerTypeBasicProtectionContainer = original.ContainerTypeWindows1 + ContainerTypeBasicProtectionContainerContainerTypeAzureBackupServerContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainerContainerTypeAzureBackupServerContainer + ContainerTypeBasicProtectionContainerContainerTypeAzureSQLContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainerContainerTypeAzureSQLContainer + ContainerTypeBasicProtectionContainerContainerTypeAzureWorkloadContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainerContainerTypeAzureWorkloadContainer + ContainerTypeBasicProtectionContainerContainerTypeDPMContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainerContainerTypeDPMContainer + ContainerTypeBasicProtectionContainerContainerTypeGenericContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainerContainerTypeGenericContainer + ContainerTypeBasicProtectionContainerContainerTypeIaaSVMContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainerContainerTypeIaaSVMContainer + ContainerTypeBasicProtectionContainerContainerTypeMicrosoftClassicComputevirtualMachines ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainerContainerTypeMicrosoftClassicComputevirtualMachines + ContainerTypeBasicProtectionContainerContainerTypeMicrosoftComputevirtualMachines ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainerContainerTypeMicrosoftComputevirtualMachines + ContainerTypeBasicProtectionContainerContainerTypeProtectionContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainerContainerTypeProtectionContainer + ContainerTypeBasicProtectionContainerContainerTypeSQLAGWorkLoadContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainerContainerTypeSQLAGWorkLoadContainer + ContainerTypeBasicProtectionContainerContainerTypeStorageContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainerContainerTypeStorageContainer + ContainerTypeBasicProtectionContainerContainerTypeVMAppContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainerContainerTypeVMAppContainer + ContainerTypeBasicProtectionContainerContainerTypeWindows ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainerContainerTypeWindows ) type CopyOptions = original.CopyOptions @@ -82,6 +82,14 @@ const ( CreateModeRecover CreateMode = original.CreateModeRecover ) +type DataMoveLevel = original.DataMoveLevel + +const ( + DataMoveLevelContainer DataMoveLevel = original.DataMoveLevelContainer + DataMoveLevelInvalid DataMoveLevel = original.DataMoveLevelInvalid + DataMoveLevelVault DataMoveLevel = original.DataMoveLevelVault +) + type DataSourceType = original.DataSourceType const ( @@ -105,21 +113,29 @@ const ( type DayOfWeek = original.DayOfWeek const ( - Friday DayOfWeek = original.Friday - Monday DayOfWeek = original.Monday - Saturday DayOfWeek = original.Saturday - Sunday DayOfWeek = original.Sunday - Thursday DayOfWeek = original.Thursday - Tuesday DayOfWeek = original.Tuesday - Wednesday DayOfWeek = original.Wednesday + DayOfWeekFriday DayOfWeek = original.DayOfWeekFriday + DayOfWeekMonday DayOfWeek = original.DayOfWeekMonday + DayOfWeekSaturday DayOfWeek = original.DayOfWeekSaturday + DayOfWeekSunday DayOfWeek = original.DayOfWeekSunday + DayOfWeekThursday DayOfWeek = original.DayOfWeekThursday + DayOfWeekTuesday DayOfWeek = original.DayOfWeekTuesday + DayOfWeekWednesday DayOfWeek = original.DayOfWeekWednesday +) + +type EncryptionAtRestType = original.EncryptionAtRestType + +const ( + EncryptionAtRestTypeCustomerManaged EncryptionAtRestType = original.EncryptionAtRestTypeCustomerManaged + EncryptionAtRestTypeInvalid EncryptionAtRestType = original.EncryptionAtRestTypeInvalid + EncryptionAtRestTypeMicrosoftManaged EncryptionAtRestType = original.EncryptionAtRestTypeMicrosoftManaged ) type EngineType = original.EngineType const ( - BackupEngineTypeAzureBackupServerEngine EngineType = original.BackupEngineTypeAzureBackupServerEngine - BackupEngineTypeBackupEngineBase EngineType = original.BackupEngineTypeBackupEngineBase - BackupEngineTypeDpmBackupEngine EngineType = original.BackupEngineTypeDpmBackupEngine + EngineTypeBackupEngineTypeAzureBackupServerEngine EngineType = original.EngineTypeBackupEngineTypeAzureBackupServerEngine + EngineTypeBackupEngineTypeBackupEngineBase EngineType = original.EngineTypeBackupEngineTypeBackupEngineBase + EngineTypeBackupEngineTypeDpmBackupEngine EngineType = original.EngineTypeBackupEngineTypeDpmBackupEngine ) type EnhancedSecurityState = original.EnhancedSecurityState @@ -148,53 +164,53 @@ const ( type HTTPStatusCode = original.HTTPStatusCode const ( - Accepted HTTPStatusCode = original.Accepted - Ambiguous HTTPStatusCode = original.Ambiguous - BadGateway HTTPStatusCode = original.BadGateway - BadRequest HTTPStatusCode = original.BadRequest - Conflict HTTPStatusCode = original.Conflict - Continue HTTPStatusCode = original.Continue - Created HTTPStatusCode = original.Created - ExpectationFailed HTTPStatusCode = original.ExpectationFailed - Forbidden HTTPStatusCode = original.Forbidden - Found HTTPStatusCode = original.Found - GatewayTimeout HTTPStatusCode = original.GatewayTimeout - Gone HTTPStatusCode = original.Gone - HTTPVersionNotSupported HTTPStatusCode = original.HTTPVersionNotSupported - InternalServerError HTTPStatusCode = original.InternalServerError - LengthRequired HTTPStatusCode = original.LengthRequired - MethodNotAllowed HTTPStatusCode = original.MethodNotAllowed - Moved HTTPStatusCode = original.Moved - MovedPermanently HTTPStatusCode = original.MovedPermanently - MultipleChoices HTTPStatusCode = original.MultipleChoices - NoContent HTTPStatusCode = original.NoContent - NonAuthoritativeInformation HTTPStatusCode = original.NonAuthoritativeInformation - NotAcceptable HTTPStatusCode = original.NotAcceptable - NotFound HTTPStatusCode = original.NotFound - NotImplemented HTTPStatusCode = original.NotImplemented - NotModified HTTPStatusCode = original.NotModified - OK HTTPStatusCode = original.OK - PartialContent HTTPStatusCode = original.PartialContent - PaymentRequired HTTPStatusCode = original.PaymentRequired - PreconditionFailed HTTPStatusCode = original.PreconditionFailed - ProxyAuthenticationRequired HTTPStatusCode = original.ProxyAuthenticationRequired - Redirect HTTPStatusCode = original.Redirect - RedirectKeepVerb HTTPStatusCode = original.RedirectKeepVerb - RedirectMethod HTTPStatusCode = original.RedirectMethod - RequestedRangeNotSatisfiable HTTPStatusCode = original.RequestedRangeNotSatisfiable - RequestEntityTooLarge HTTPStatusCode = original.RequestEntityTooLarge - RequestTimeout HTTPStatusCode = original.RequestTimeout - RequestURITooLong HTTPStatusCode = original.RequestURITooLong - ResetContent HTTPStatusCode = original.ResetContent - SeeOther HTTPStatusCode = original.SeeOther - ServiceUnavailable HTTPStatusCode = original.ServiceUnavailable - SwitchingProtocols HTTPStatusCode = original.SwitchingProtocols - TemporaryRedirect HTTPStatusCode = original.TemporaryRedirect - Unauthorized HTTPStatusCode = original.Unauthorized - UnsupportedMediaType HTTPStatusCode = original.UnsupportedMediaType - Unused HTTPStatusCode = original.Unused - UpgradeRequired HTTPStatusCode = original.UpgradeRequired - UseProxy HTTPStatusCode = original.UseProxy + HTTPStatusCodeAccepted HTTPStatusCode = original.HTTPStatusCodeAccepted + HTTPStatusCodeAmbiguous HTTPStatusCode = original.HTTPStatusCodeAmbiguous + HTTPStatusCodeBadGateway HTTPStatusCode = original.HTTPStatusCodeBadGateway + HTTPStatusCodeBadRequest HTTPStatusCode = original.HTTPStatusCodeBadRequest + HTTPStatusCodeConflict HTTPStatusCode = original.HTTPStatusCodeConflict + HTTPStatusCodeContinue HTTPStatusCode = original.HTTPStatusCodeContinue + HTTPStatusCodeCreated HTTPStatusCode = original.HTTPStatusCodeCreated + HTTPStatusCodeExpectationFailed HTTPStatusCode = original.HTTPStatusCodeExpectationFailed + HTTPStatusCodeForbidden HTTPStatusCode = original.HTTPStatusCodeForbidden + HTTPStatusCodeFound HTTPStatusCode = original.HTTPStatusCodeFound + HTTPStatusCodeGatewayTimeout HTTPStatusCode = original.HTTPStatusCodeGatewayTimeout + HTTPStatusCodeGone HTTPStatusCode = original.HTTPStatusCodeGone + HTTPStatusCodeHTTPVersionNotSupported HTTPStatusCode = original.HTTPStatusCodeHTTPVersionNotSupported + HTTPStatusCodeInternalServerError HTTPStatusCode = original.HTTPStatusCodeInternalServerError + HTTPStatusCodeLengthRequired HTTPStatusCode = original.HTTPStatusCodeLengthRequired + HTTPStatusCodeMethodNotAllowed HTTPStatusCode = original.HTTPStatusCodeMethodNotAllowed + HTTPStatusCodeMoved HTTPStatusCode = original.HTTPStatusCodeMoved + HTTPStatusCodeMovedPermanently HTTPStatusCode = original.HTTPStatusCodeMovedPermanently + HTTPStatusCodeMultipleChoices HTTPStatusCode = original.HTTPStatusCodeMultipleChoices + HTTPStatusCodeNoContent HTTPStatusCode = original.HTTPStatusCodeNoContent + HTTPStatusCodeNonAuthoritativeInformation HTTPStatusCode = original.HTTPStatusCodeNonAuthoritativeInformation + HTTPStatusCodeNotAcceptable HTTPStatusCode = original.HTTPStatusCodeNotAcceptable + HTTPStatusCodeNotFound HTTPStatusCode = original.HTTPStatusCodeNotFound + HTTPStatusCodeNotImplemented HTTPStatusCode = original.HTTPStatusCodeNotImplemented + HTTPStatusCodeNotModified HTTPStatusCode = original.HTTPStatusCodeNotModified + HTTPStatusCodeOK HTTPStatusCode = original.HTTPStatusCodeOK + HTTPStatusCodePartialContent HTTPStatusCode = original.HTTPStatusCodePartialContent + HTTPStatusCodePaymentRequired HTTPStatusCode = original.HTTPStatusCodePaymentRequired + HTTPStatusCodePreconditionFailed HTTPStatusCode = original.HTTPStatusCodePreconditionFailed + HTTPStatusCodeProxyAuthenticationRequired HTTPStatusCode = original.HTTPStatusCodeProxyAuthenticationRequired + HTTPStatusCodeRedirect HTTPStatusCode = original.HTTPStatusCodeRedirect + HTTPStatusCodeRedirectKeepVerb HTTPStatusCode = original.HTTPStatusCodeRedirectKeepVerb + HTTPStatusCodeRedirectMethod HTTPStatusCode = original.HTTPStatusCodeRedirectMethod + HTTPStatusCodeRequestedRangeNotSatisfiable HTTPStatusCode = original.HTTPStatusCodeRequestedRangeNotSatisfiable + HTTPStatusCodeRequestEntityTooLarge HTTPStatusCode = original.HTTPStatusCodeRequestEntityTooLarge + HTTPStatusCodeRequestTimeout HTTPStatusCode = original.HTTPStatusCodeRequestTimeout + HTTPStatusCodeRequestURITooLong HTTPStatusCode = original.HTTPStatusCodeRequestURITooLong + HTTPStatusCodeResetContent HTTPStatusCode = original.HTTPStatusCodeResetContent + HTTPStatusCodeSeeOther HTTPStatusCode = original.HTTPStatusCodeSeeOther + HTTPStatusCodeServiceUnavailable HTTPStatusCode = original.HTTPStatusCodeServiceUnavailable + HTTPStatusCodeSwitchingProtocols HTTPStatusCode = original.HTTPStatusCodeSwitchingProtocols + HTTPStatusCodeTemporaryRedirect HTTPStatusCode = original.HTTPStatusCodeTemporaryRedirect + HTTPStatusCodeUnauthorized HTTPStatusCode = original.HTTPStatusCodeUnauthorized + HTTPStatusCodeUnsupportedMediaType HTTPStatusCode = original.HTTPStatusCodeUnsupportedMediaType + HTTPStatusCodeUnused HTTPStatusCode = original.HTTPStatusCodeUnused + HTTPStatusCodeUpgradeRequired HTTPStatusCode = original.HTTPStatusCodeUpgradeRequired + HTTPStatusCodeUseProxy HTTPStatusCode = original.HTTPStatusCodeUseProxy ) type HealthState = original.HealthState @@ -215,6 +231,14 @@ const ( HealthStatusPassed HealthStatus = original.HealthStatusPassed ) +type InfrastructureEncryptionState = original.InfrastructureEncryptionState + +const ( + InfrastructureEncryptionStateDisabled InfrastructureEncryptionState = original.InfrastructureEncryptionStateDisabled + InfrastructureEncryptionStateEnabled InfrastructureEncryptionState = original.InfrastructureEncryptionStateEnabled + InfrastructureEncryptionStateInvalid InfrastructureEncryptionState = original.InfrastructureEncryptionStateInvalid +) + type InquiryStatus = original.InquiryStatus const ( @@ -254,16 +278,17 @@ const ( type JobOperationType = original.JobOperationType const ( - JobOperationTypeBackup JobOperationType = original.JobOperationTypeBackup - JobOperationTypeConfigureBackup JobOperationType = original.JobOperationTypeConfigureBackup - JobOperationTypeCrossRegionRestore JobOperationType = original.JobOperationTypeCrossRegionRestore - JobOperationTypeDeleteBackupData JobOperationType = original.JobOperationTypeDeleteBackupData - JobOperationTypeDisableBackup JobOperationType = original.JobOperationTypeDisableBackup - JobOperationTypeInvalid JobOperationType = original.JobOperationTypeInvalid - JobOperationTypeRegister JobOperationType = original.JobOperationTypeRegister - JobOperationTypeRestore JobOperationType = original.JobOperationTypeRestore - JobOperationTypeUndelete JobOperationType = original.JobOperationTypeUndelete - JobOperationTypeUnRegister JobOperationType = original.JobOperationTypeUnRegister + JobOperationTypeBackup JobOperationType = original.JobOperationTypeBackup + JobOperationTypeConfigureBackup JobOperationType = original.JobOperationTypeConfigureBackup + JobOperationTypeCrossRegionRestore JobOperationType = original.JobOperationTypeCrossRegionRestore + JobOperationTypeDeleteBackupData JobOperationType = original.JobOperationTypeDeleteBackupData + JobOperationTypeDisableBackup JobOperationType = original.JobOperationTypeDisableBackup + JobOperationTypeInvalid JobOperationType = original.JobOperationTypeInvalid + JobOperationTypeRegister JobOperationType = original.JobOperationTypeRegister + JobOperationTypeRestore JobOperationType = original.JobOperationTypeRestore + JobOperationTypeUndelete JobOperationType = original.JobOperationTypeUndelete + JobOperationTypeUnRegister JobOperationType = original.JobOperationTypeUnRegister + JobOperationTypeUpdateCustomerManagedKey JobOperationType = original.JobOperationTypeUpdateCustomerManagedKey ) type JobStatus = original.JobStatus @@ -295,6 +320,7 @@ const ( JobTypeDpmJob JobType = original.JobTypeDpmJob JobTypeJob JobType = original.JobTypeJob JobTypeMabJob JobType = original.JobTypeMabJob + JobTypeVaultJob JobType = original.JobTypeVaultJob ) type LastBackupStatus = original.LastBackupStatus @@ -306,6 +332,17 @@ const ( LastBackupStatusUnhealthy LastBackupStatus = original.LastBackupStatusUnhealthy ) +type LastUpdateStatus = original.LastUpdateStatus + +const ( + LastUpdateStatusFailed LastUpdateStatus = original.LastUpdateStatusFailed + LastUpdateStatusInvalid LastUpdateStatus = original.LastUpdateStatusInvalid + LastUpdateStatusNotEnabled LastUpdateStatus = original.LastUpdateStatusNotEnabled + LastUpdateStatusPartiallyFailed LastUpdateStatus = original.LastUpdateStatusPartiallyFailed + LastUpdateStatusPartiallySucceeded LastUpdateStatus = original.LastUpdateStatusPartiallySucceeded + LastUpdateStatusSucceeded LastUpdateStatus = original.LastUpdateStatusSucceeded +) + type MabServerType = original.MabServerType const ( @@ -343,13 +380,13 @@ const ( type ManagementTypeBasicProtectionPolicy = original.ManagementTypeBasicProtectionPolicy const ( - BackupManagementTypeAzureIaasVM ManagementTypeBasicProtectionPolicy = original.BackupManagementTypeAzureIaasVM - BackupManagementTypeAzureSQL ManagementTypeBasicProtectionPolicy = original.BackupManagementTypeAzureSQL - BackupManagementTypeAzureStorage ManagementTypeBasicProtectionPolicy = original.BackupManagementTypeAzureStorage - BackupManagementTypeAzureWorkload ManagementTypeBasicProtectionPolicy = original.BackupManagementTypeAzureWorkload - BackupManagementTypeGenericProtectionPolicy ManagementTypeBasicProtectionPolicy = original.BackupManagementTypeGenericProtectionPolicy - BackupManagementTypeMAB ManagementTypeBasicProtectionPolicy = original.BackupManagementTypeMAB - BackupManagementTypeProtectionPolicy ManagementTypeBasicProtectionPolicy = original.BackupManagementTypeProtectionPolicy + ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureIaasVM ManagementTypeBasicProtectionPolicy = original.ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureIaasVM + ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureSQL ManagementTypeBasicProtectionPolicy = original.ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureSQL + ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureStorage ManagementTypeBasicProtectionPolicy = original.ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureStorage + ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureWorkload ManagementTypeBasicProtectionPolicy = original.ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureWorkload + ManagementTypeBasicProtectionPolicyBackupManagementTypeGenericProtectionPolicy ManagementTypeBasicProtectionPolicy = original.ManagementTypeBasicProtectionPolicyBackupManagementTypeGenericProtectionPolicy + ManagementTypeBasicProtectionPolicyBackupManagementTypeMAB ManagementTypeBasicProtectionPolicy = original.ManagementTypeBasicProtectionPolicyBackupManagementTypeMAB + ManagementTypeBasicProtectionPolicyBackupManagementTypeProtectionPolicy ManagementTypeBasicProtectionPolicy = original.ManagementTypeBasicProtectionPolicyBackupManagementTypeProtectionPolicy ) type MonthOfYear = original.MonthOfYear @@ -373,72 +410,92 @@ const ( type ObjectType = original.ObjectType const ( - ObjectTypeOperationStatusExtendedInfo ObjectType = original.ObjectTypeOperationStatusExtendedInfo - ObjectTypeOperationStatusJobExtendedInfo ObjectType = original.ObjectTypeOperationStatusJobExtendedInfo - ObjectTypeOperationStatusJobsExtendedInfo ObjectType = original.ObjectTypeOperationStatusJobsExtendedInfo - ObjectTypeOperationStatusProvisionILRExtendedInfo ObjectType = original.ObjectTypeOperationStatusProvisionILRExtendedInfo + ObjectTypeExportJobsOperationResultInfo ObjectType = original.ObjectTypeExportJobsOperationResultInfo + ObjectTypeOperationResultInfo ObjectType = original.ObjectTypeOperationResultInfo + ObjectTypeOperationResultInfoBase ObjectType = original.ObjectTypeOperationResultInfoBase +) + +type ObjectTypeBasicCrrAccessToken = original.ObjectTypeBasicCrrAccessToken + +const ( + ObjectTypeBasicCrrAccessTokenObjectTypeCrrAccessToken ObjectTypeBasicCrrAccessToken = original.ObjectTypeBasicCrrAccessTokenObjectTypeCrrAccessToken + ObjectTypeBasicCrrAccessTokenObjectTypeWorkloadCrrAccessToken ObjectTypeBasicCrrAccessToken = original.ObjectTypeBasicCrrAccessTokenObjectTypeWorkloadCrrAccessToken ) type ObjectTypeBasicILRRequest = original.ObjectTypeBasicILRRequest const ( - ObjectTypeAzureFileShareProvisionILRRequest ObjectTypeBasicILRRequest = original.ObjectTypeAzureFileShareProvisionILRRequest - ObjectTypeIaasVMILRRegistrationRequest ObjectTypeBasicILRRequest = original.ObjectTypeIaasVMILRRegistrationRequest - ObjectTypeILRRequest ObjectTypeBasicILRRequest = original.ObjectTypeILRRequest + ObjectTypeBasicILRRequestObjectTypeAzureFileShareProvisionILRRequest ObjectTypeBasicILRRequest = original.ObjectTypeBasicILRRequestObjectTypeAzureFileShareProvisionILRRequest + ObjectTypeBasicILRRequestObjectTypeIaasVMILRRegistrationRequest ObjectTypeBasicILRRequest = original.ObjectTypeBasicILRRequestObjectTypeIaasVMILRRegistrationRequest + ObjectTypeBasicILRRequestObjectTypeILRRequest ObjectTypeBasicILRRequest = original.ObjectTypeBasicILRRequestObjectTypeILRRequest ) -type ObjectTypeBasicOperationResultInfoBase = original.ObjectTypeBasicOperationResultInfoBase +type ObjectTypeBasicOperationStatusExtendedInfo = original.ObjectTypeBasicOperationStatusExtendedInfo const ( - ObjectTypeExportJobsOperationResultInfo ObjectTypeBasicOperationResultInfoBase = original.ObjectTypeExportJobsOperationResultInfo - ObjectTypeOperationResultInfo ObjectTypeBasicOperationResultInfoBase = original.ObjectTypeOperationResultInfo - ObjectTypeOperationResultInfoBase ObjectTypeBasicOperationResultInfoBase = original.ObjectTypeOperationResultInfoBase + ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusExtendedInfo ObjectTypeBasicOperationStatusExtendedInfo = original.ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusExtendedInfo + ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusJobExtendedInfo ObjectTypeBasicOperationStatusExtendedInfo = original.ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusJobExtendedInfo + ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusJobsExtendedInfo ObjectTypeBasicOperationStatusExtendedInfo = original.ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusJobsExtendedInfo + ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusProvisionILRExtendedInfo ObjectTypeBasicOperationStatusExtendedInfo = original.ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusProvisionILRExtendedInfo + ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusRecoveryPointExtendedInfo ObjectTypeBasicOperationStatusExtendedInfo = original.ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusRecoveryPointExtendedInfo ) type ObjectTypeBasicRecoveryPoint = original.ObjectTypeBasicRecoveryPoint const ( - ObjectTypeAzureFileShareRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureFileShareRecoveryPoint - ObjectTypeAzureWorkloadPointInTimeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadPointInTimeRecoveryPoint - ObjectTypeAzureWorkloadRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadRecoveryPoint - ObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint - ObjectTypeAzureWorkloadSAPHanaRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSAPHanaRecoveryPoint - ObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint - ObjectTypeAzureWorkloadSQLRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSQLRecoveryPoint - ObjectTypeGenericRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeGenericRecoveryPoint - ObjectTypeIaasVMRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeIaasVMRecoveryPoint - ObjectTypeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeRecoveryPoint + ObjectTypeBasicRecoveryPointObjectTypeAzureFileShareRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeBasicRecoveryPointObjectTypeAzureFileShareRecoveryPoint + ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadPointInTimeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadPointInTimeRecoveryPoint + ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadRecoveryPoint + ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint + ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaRecoveryPoint + ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint + ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLRecoveryPoint + ObjectTypeBasicRecoveryPointObjectTypeGenericRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeBasicRecoveryPointObjectTypeGenericRecoveryPoint + ObjectTypeBasicRecoveryPointObjectTypeIaasVMRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeBasicRecoveryPointObjectTypeIaasVMRecoveryPoint + ObjectTypeBasicRecoveryPointObjectTypeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeBasicRecoveryPointObjectTypeRecoveryPoint ) type ObjectTypeBasicRequest = original.ObjectTypeBasicRequest const ( - ObjectTypeAzureFileShareBackupRequest ObjectTypeBasicRequest = original.ObjectTypeAzureFileShareBackupRequest - ObjectTypeAzureWorkloadBackupRequest ObjectTypeBasicRequest = original.ObjectTypeAzureWorkloadBackupRequest - ObjectTypeBackupRequest ObjectTypeBasicRequest = original.ObjectTypeBackupRequest - ObjectTypeIaasVMBackupRequest ObjectTypeBasicRequest = original.ObjectTypeIaasVMBackupRequest + ObjectTypeBasicRequestObjectTypeAzureFileShareBackupRequest ObjectTypeBasicRequest = original.ObjectTypeBasicRequestObjectTypeAzureFileShareBackupRequest + ObjectTypeBasicRequestObjectTypeAzureWorkloadBackupRequest ObjectTypeBasicRequest = original.ObjectTypeBasicRequestObjectTypeAzureWorkloadBackupRequest + ObjectTypeBasicRequestObjectTypeBackupRequest ObjectTypeBasicRequest = original.ObjectTypeBasicRequestObjectTypeBackupRequest + ObjectTypeBasicRequestObjectTypeIaasVMBackupRequest ObjectTypeBasicRequest = original.ObjectTypeBasicRequestObjectTypeIaasVMBackupRequest ) type ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequest const ( - ObjectTypeAzureFileShareRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureFileShareRestoreRequest - ObjectTypeAzureWorkloadPointInTimeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadPointInTimeRestoreRequest - ObjectTypeAzureWorkloadRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadRestoreRequest - ObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest - ObjectTypeAzureWorkloadSAPHanaRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSAPHanaRestoreRequest - ObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest - ObjectTypeAzureWorkloadSQLRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSQLRestoreRequest - ObjectTypeIaasVMRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeIaasVMRestoreRequest - ObjectTypeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeRestoreRequest + ObjectTypeBasicRestoreRequestObjectTypeAzureFileShareRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequestObjectTypeAzureFileShareRestoreRequest + ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadPointInTimeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadPointInTimeRestoreRequest + ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadRestoreRequest + ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest + ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest + ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreRequest + ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreWithRehydrateRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreWithRehydrateRequest + ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest + ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest + ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreRequest + ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreWithRehydrateRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreWithRehydrateRequest + ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreRequest + ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreWithRehydrationRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreWithRehydrationRequest + ObjectTypeBasicRestoreRequestObjectTypeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequestObjectTypeRestoreRequest ) type ObjectTypeBasicValidateOperationRequest = original.ObjectTypeBasicValidateOperationRequest const ( - ObjectTypeValidateIaasVMRestoreOperationRequest ObjectTypeBasicValidateOperationRequest = original.ObjectTypeValidateIaasVMRestoreOperationRequest - ObjectTypeValidateOperationRequest ObjectTypeBasicValidateOperationRequest = original.ObjectTypeValidateOperationRequest - ObjectTypeValidateRestoreOperationRequest ObjectTypeBasicValidateOperationRequest = original.ObjectTypeValidateRestoreOperationRequest + ObjectTypeBasicValidateOperationRequestObjectTypeValidateIaasVMRestoreOperationRequest ObjectTypeBasicValidateOperationRequest = original.ObjectTypeBasicValidateOperationRequestObjectTypeValidateIaasVMRestoreOperationRequest + ObjectTypeBasicValidateOperationRequestObjectTypeValidateOperationRequest ObjectTypeBasicValidateOperationRequest = original.ObjectTypeBasicValidateOperationRequestObjectTypeValidateOperationRequest + ObjectTypeBasicValidateOperationRequestObjectTypeValidateRestoreOperationRequest ObjectTypeBasicValidateOperationRequest = original.ObjectTypeBasicValidateOperationRequestObjectTypeValidateRestoreOperationRequest +) + +type ObjectTypeBasicVaultStorageConfigOperationResultResponse = original.ObjectTypeBasicVaultStorageConfigOperationResultResponse + +const ( + ObjectTypeBasicVaultStorageConfigOperationResultResponseObjectTypePrepareDataMoveResponse ObjectTypeBasicVaultStorageConfigOperationResultResponse = original.ObjectTypeBasicVaultStorageConfigOperationResultResponseObjectTypePrepareDataMoveResponse + ObjectTypeBasicVaultStorageConfigOperationResultResponseObjectTypeVaultStorageConfigOperationResultResponse ObjectTypeBasicVaultStorageConfigOperationResultResponse = original.ObjectTypeBasicVaultStorageConfigOperationResultResponseObjectTypeVaultStorageConfigOperationResultResponse ) type OperationStatusValues = original.OperationStatusValues @@ -473,6 +530,7 @@ const ( PolicyTypeCopyOnlyFull PolicyType = original.PolicyTypeCopyOnlyFull PolicyTypeDifferential PolicyType = original.PolicyTypeDifferential PolicyTypeFull PolicyType = original.PolicyTypeFull + PolicyTypeIncremental PolicyType = original.PolicyTypeIncremental PolicyTypeInvalid PolicyType = original.PolicyTypeInvalid PolicyTypeLog PolicyType = original.PolicyTypeLog ) @@ -480,10 +538,10 @@ const ( type PrivateEndpointConnectionStatus = original.PrivateEndpointConnectionStatus const ( - Approved PrivateEndpointConnectionStatus = original.Approved - Disconnected PrivateEndpointConnectionStatus = original.Disconnected - Pending PrivateEndpointConnectionStatus = original.Pending - Rejected PrivateEndpointConnectionStatus = original.Rejected + PrivateEndpointConnectionStatusApproved PrivateEndpointConnectionStatus = original.PrivateEndpointConnectionStatusApproved + PrivateEndpointConnectionStatusDisconnected PrivateEndpointConnectionStatus = original.PrivateEndpointConnectionStatusDisconnected + PrivateEndpointConnectionStatusPending PrivateEndpointConnectionStatus = original.PrivateEndpointConnectionStatusPending + PrivateEndpointConnectionStatusRejected PrivateEndpointConnectionStatus = original.PrivateEndpointConnectionStatusRejected ) type ProtectableContainerType = original.ProtectableContainerType @@ -601,15 +659,17 @@ const ( type RecoveryPointTierStatus = original.RecoveryPointTierStatus const ( - RecoveryPointTierStatusDeleted RecoveryPointTierStatus = original.RecoveryPointTierStatusDeleted - RecoveryPointTierStatusDisabled RecoveryPointTierStatus = original.RecoveryPointTierStatusDisabled - RecoveryPointTierStatusInvalid RecoveryPointTierStatus = original.RecoveryPointTierStatusInvalid - RecoveryPointTierStatusValid RecoveryPointTierStatus = original.RecoveryPointTierStatusValid + RecoveryPointTierStatusDeleted RecoveryPointTierStatus = original.RecoveryPointTierStatusDeleted + RecoveryPointTierStatusDisabled RecoveryPointTierStatus = original.RecoveryPointTierStatusDisabled + RecoveryPointTierStatusInvalid RecoveryPointTierStatus = original.RecoveryPointTierStatusInvalid + RecoveryPointTierStatusRehydrated RecoveryPointTierStatus = original.RecoveryPointTierStatusRehydrated + RecoveryPointTierStatusValid RecoveryPointTierStatus = original.RecoveryPointTierStatusValid ) type RecoveryPointTierType = original.RecoveryPointTierType const ( + RecoveryPointTierTypeArchivedRP RecoveryPointTierType = original.RecoveryPointTierTypeArchivedRP RecoveryPointTierTypeHardenedRP RecoveryPointTierType = original.RecoveryPointTierTypeHardenedRP RecoveryPointTierTypeInstantRP RecoveryPointTierType = original.RecoveryPointTierTypeInstantRP RecoveryPointTierTypeInvalid RecoveryPointTierType = original.RecoveryPointTierTypeInvalid @@ -625,6 +685,13 @@ const ( RecoveryTypeRestoreDisks RecoveryType = original.RecoveryTypeRestoreDisks ) +type RehydrationPriority = original.RehydrationPriority + +const ( + RehydrationPriorityHigh RehydrationPriority = original.RehydrationPriorityHigh + RehydrationPriorityStandard RehydrationPriority = original.RehydrationPriorityStandard +) + type ResourceHealthStatus = original.ResourceHealthStatus const ( @@ -643,6 +710,7 @@ const ( RestorePointQueryTypeDifferential RestorePointQueryType = original.RestorePointQueryTypeDifferential RestorePointQueryTypeFull RestorePointQueryType = original.RestorePointQueryTypeFull RestorePointQueryTypeFullAndDifferential RestorePointQueryType = original.RestorePointQueryTypeFullAndDifferential + RestorePointQueryTypeIncremental RestorePointQueryType = original.RestorePointQueryTypeIncremental RestorePointQueryTypeInvalid RestorePointQueryType = original.RestorePointQueryTypeInvalid RestorePointQueryTypeLog RestorePointQueryType = original.RestorePointQueryTypeLog ) @@ -652,6 +720,7 @@ type RestorePointType = original.RestorePointType const ( RestorePointTypeDifferential RestorePointType = original.RestorePointTypeDifferential RestorePointTypeFull RestorePointType = original.RestorePointTypeFull + RestorePointTypeIncremental RestorePointType = original.RestorePointTypeIncremental RestorePointTypeInvalid RestorePointType = original.RestorePointTypeInvalid RestorePointTypeLog RestorePointType = original.RestorePointTypeLog ) @@ -726,9 +795,11 @@ const ( type StorageType = original.StorageType const ( - StorageTypeGeoRedundant StorageType = original.StorageTypeGeoRedundant - StorageTypeInvalid StorageType = original.StorageTypeInvalid - StorageTypeLocallyRedundant StorageType = original.StorageTypeLocallyRedundant + StorageTypeGeoRedundant StorageType = original.StorageTypeGeoRedundant + StorageTypeInvalid StorageType = original.StorageTypeInvalid + StorageTypeLocallyRedundant StorageType = original.StorageTypeLocallyRedundant + StorageTypeReadAccessGeoZoneRedundant StorageType = original.StorageTypeReadAccessGeoZoneRedundant + StorageTypeZoneRedundant StorageType = original.StorageTypeZoneRedundant ) type StorageTypeState = original.StorageTypeState @@ -763,6 +834,7 @@ const ( TypeEnumCopyOnlyFull TypeEnum = original.TypeEnumCopyOnlyFull TypeEnumDifferential TypeEnum = original.TypeEnumDifferential TypeEnumFull TypeEnum = original.TypeEnumFull + TypeEnumIncremental TypeEnum = original.TypeEnumIncremental TypeEnumInvalid TypeEnum = original.TypeEnumInvalid TypeEnumLog TypeEnum = original.TypeEnumLog ) @@ -770,12 +842,12 @@ const ( type UsagesUnit = original.UsagesUnit const ( - Bytes UsagesUnit = original.Bytes - BytesPerSecond UsagesUnit = original.BytesPerSecond - Count UsagesUnit = original.Count - CountPerSecond UsagesUnit = original.CountPerSecond - Percent UsagesUnit = original.Percent - Seconds UsagesUnit = original.Seconds + UsagesUnitBytes UsagesUnit = original.UsagesUnitBytes + UsagesUnitBytesPerSecond UsagesUnit = original.UsagesUnitBytesPerSecond + UsagesUnitCount UsagesUnit = original.UsagesUnitCount + UsagesUnitCountPerSecond UsagesUnit = original.UsagesUnitCountPerSecond + UsagesUnitPercent UsagesUnit = original.UsagesUnitPercent + UsagesUnitSeconds UsagesUnit = original.UsagesUnitSeconds ) type ValidationStatus = original.ValidationStatus @@ -812,14 +884,14 @@ const ( type WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeBasicWorkloadItem const ( - WorkloadItemTypeAzureVMWorkloadItem WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeAzureVMWorkloadItem - WorkloadItemTypeSAPAseDatabase1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSAPAseDatabase1 - WorkloadItemTypeSAPAseSystem1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSAPAseSystem1 - WorkloadItemTypeSAPHanaDatabase1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSAPHanaDatabase1 - WorkloadItemTypeSAPHanaSystem1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSAPHanaSystem1 - WorkloadItemTypeSQLDataBase1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSQLDataBase1 - WorkloadItemTypeSQLInstance1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSQLInstance1 - WorkloadItemTypeWorkloadItem WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeWorkloadItem + WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeAzureVMWorkloadItem WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeAzureVMWorkloadItem + WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPAseDatabase WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPAseDatabase + WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPAseSystem WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPAseSystem + WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPHanaDatabase WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPHanaDatabase + WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPHanaSystem WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPHanaSystem + WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSQLDataBase WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSQLDataBase + WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSQLInstance WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSQLInstance + WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeWorkloadItem WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeWorkloadItem ) type WorkloadType = original.WorkloadType @@ -842,6 +914,9 @@ const ( WorkloadTypeVMwareVM WorkloadType = original.WorkloadTypeVMwareVM ) +type AADProperties = original.AADProperties +type AADPropertiesResource = original.AADPropertiesResource +type AadPropertiesClient = original.AadPropertiesClient type AzureBackupGoalFeatureSupportRequest = original.AzureBackupGoalFeatureSupportRequest type AzureBackupServerContainer = original.AzureBackupServerContainer type AzureBackupServerEngine = original.AzureBackupServerEngine @@ -918,23 +993,31 @@ type AzureWorkloadRecoveryPoint = original.AzureWorkloadRecoveryPoint type AzureWorkloadRestoreRequest = original.AzureWorkloadRestoreRequest type AzureWorkloadSAPHanaPointInTimeRecoveryPoint = original.AzureWorkloadSAPHanaPointInTimeRecoveryPoint type AzureWorkloadSAPHanaPointInTimeRestoreRequest = original.AzureWorkloadSAPHanaPointInTimeRestoreRequest +type AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest = original.AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest type AzureWorkloadSAPHanaRecoveryPoint = original.AzureWorkloadSAPHanaRecoveryPoint type AzureWorkloadSAPHanaRestoreRequest = original.AzureWorkloadSAPHanaRestoreRequest +type AzureWorkloadSAPHanaRestoreWithRehydrateRequest = original.AzureWorkloadSAPHanaRestoreWithRehydrateRequest type AzureWorkloadSQLAutoProtectionIntent = original.AzureWorkloadSQLAutoProtectionIntent type AzureWorkloadSQLPointInTimeRecoveryPoint = original.AzureWorkloadSQLPointInTimeRecoveryPoint type AzureWorkloadSQLPointInTimeRestoreRequest = original.AzureWorkloadSQLPointInTimeRestoreRequest +type AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest = original.AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest type AzureWorkloadSQLRecoveryPoint = original.AzureWorkloadSQLRecoveryPoint type AzureWorkloadSQLRecoveryPointExtendedInfo = original.AzureWorkloadSQLRecoveryPointExtendedInfo type AzureWorkloadSQLRestoreRequest = original.AzureWorkloadSQLRestoreRequest +type AzureWorkloadSQLRestoreWithRehydrateRequest = original.AzureWorkloadSQLRestoreWithRehydrateRequest type BEKDetails = original.BEKDetails +type BMSAADPropertiesQueryObject = original.BMSAADPropertiesQueryObject type BMSBackupEngineQueryObject = original.BMSBackupEngineQueryObject type BMSBackupEnginesQueryObject = original.BMSBackupEnginesQueryObject type BMSBackupSummariesQueryObject = original.BMSBackupSummariesQueryObject type BMSContainerQueryObject = original.BMSContainerQueryObject type BMSContainersInquiryQueryObject = original.BMSContainersInquiryQueryObject type BMSPOQueryObject = original.BMSPOQueryObject +type BMSPrepareDataMoveFuture = original.BMSPrepareDataMoveFuture +type BMSPrepareDataMoveOperationResultClient = original.BMSPrepareDataMoveOperationResultClient type BMSRPQueryObject = original.BMSRPQueryObject type BMSRefreshContainersQueryObject = original.BMSRefreshContainersQueryObject +type BMSTriggerDataMoveFuture = original.BMSTriggerDataMoveFuture type BMSWorkloadItemQueryObject = original.BMSWorkloadItemQueryObject type BackupsClient = original.BackupsClient type BaseClient = original.BaseClient @@ -948,15 +1031,19 @@ type BasicAzureWorkloadContainer = original.BasicAzureWorkloadContainer type BasicAzureWorkloadPointInTimeRecoveryPoint = original.BasicAzureWorkloadPointInTimeRecoveryPoint type BasicAzureWorkloadRecoveryPoint = original.BasicAzureWorkloadRecoveryPoint type BasicAzureWorkloadRestoreRequest = original.BasicAzureWorkloadRestoreRequest +type BasicAzureWorkloadSAPHanaPointInTimeRestoreRequest = original.BasicAzureWorkloadSAPHanaPointInTimeRestoreRequest type BasicAzureWorkloadSAPHanaRestoreRequest = original.BasicAzureWorkloadSAPHanaRestoreRequest +type BasicAzureWorkloadSQLPointInTimeRestoreRequest = original.BasicAzureWorkloadSQLPointInTimeRestoreRequest type BasicAzureWorkloadSQLRecoveryPoint = original.BasicAzureWorkloadSQLRecoveryPoint type BasicAzureWorkloadSQLRestoreRequest = original.BasicAzureWorkloadSQLRestoreRequest +type BasicCrrAccessToken = original.BasicCrrAccessToken type BasicDpmContainer = original.BasicDpmContainer type BasicEngineBase = original.BasicEngineBase type BasicFeatureSupportRequest = original.BasicFeatureSupportRequest type BasicILRRequest = original.BasicILRRequest type BasicIaaSVMContainer = original.BasicIaaSVMContainer type BasicIaaSVMProtectableItem = original.BasicIaaSVMProtectableItem +type BasicIaasVMRestoreRequest = original.BasicIaasVMRestoreRequest type BasicJob = original.BasicJob type BasicOperationResultInfoBase = original.BasicOperationResultInfoBase type BasicOperationStatusExtendedInfo = original.BasicOperationStatusExtendedInfo @@ -972,6 +1059,7 @@ type BasicRetentionPolicy = original.BasicRetentionPolicy type BasicSchedulePolicy = original.BasicSchedulePolicy type BasicValidateOperationRequest = original.BasicValidateOperationRequest type BasicValidateRestoreOperationRequest = original.BasicValidateRestoreOperationRequest +type BasicVaultStorageConfigOperationResultResponse = original.BasicVaultStorageConfigOperationResultResponse type BasicWorkloadItem = original.BasicWorkloadItem type BasicWorkloadProtectableItem = original.BasicWorkloadProtectableItem type ClientDiscoveryDisplay = original.ClientDiscoveryDisplay @@ -983,7 +1071,21 @@ type ClientDiscoveryResponseIterator = original.ClientDiscoveryResponseIterator type ClientDiscoveryResponsePage = original.ClientDiscoveryResponsePage type ClientDiscoveryValueForSingleAPI = original.ClientDiscoveryValueForSingleAPI type ClientScriptForConnect = original.ClientScriptForConnect +type CloudError = original.CloudError +type CloudErrorBody = original.CloudErrorBody type ContainerIdentityInfo = original.ContainerIdentityInfo +type CrossRegionRestoreClient = original.CrossRegionRestoreClient +type CrossRegionRestoreRequest = original.CrossRegionRestoreRequest +type CrossRegionRestoreRequestResource = original.CrossRegionRestoreRequestResource +type CrossRegionRestoreTriggerFuture = original.CrossRegionRestoreTriggerFuture +type CrrAccessToken = original.CrrAccessToken +type CrrAccessTokenResource = original.CrrAccessTokenResource +type CrrJobDetailsClient = original.CrrJobDetailsClient +type CrrJobRequest = original.CrrJobRequest +type CrrJobRequestResource = original.CrrJobRequestResource +type CrrJobsClient = original.CrrJobsClient +type CrrOperationResultsClient = original.CrrOperationResultsClient +type CrrOperationStatusClient = original.CrrOperationStatusClient type DPMContainerExtendedInfo = original.DPMContainerExtendedInfo type DPMProtectedItem = original.DPMProtectedItem type DPMProtectedItemExtendedInfo = original.DPMProtectedItemExtendedInfo @@ -1009,7 +1111,6 @@ type EngineExtendedInfo = original.EngineExtendedInfo type EnginesClient = original.EnginesClient type ErrorAdditionalInfo = original.ErrorAdditionalInfo type ErrorDetail = original.ErrorDetail -type ErrorResponse = original.ErrorResponse type ExportJobsOperationResultInfo = original.ExportJobsOperationResultInfo type ExportJobsOperationResultsClient = original.ExportJobsOperationResultsClient type ExtendedProperties = original.ExtendedProperties @@ -1029,6 +1130,7 @@ type IaasVMBackupRequest = original.IaasVMBackupRequest type IaasVMILRRegistrationRequest = original.IaasVMILRRegistrationRequest type IaasVMRecoveryPoint = original.IaasVMRecoveryPoint type IaasVMRestoreRequest = original.IaasVMRestoreRequest +type IaasVMRestoreWithRehydrationRequest = original.IaasVMRestoreWithRehydrationRequest type InquiryInfo = original.InquiryInfo type InquiryValidation = original.InquiryValidation type InstantItemRecoveryTarget = original.InstantItemRecoveryTarget @@ -1048,6 +1150,7 @@ type JobsGroupClient = original.JobsGroupClient type KEKDetails = original.KEKDetails type KPIResourceHealthDetails = original.KPIResourceHealthDetails type KeyAndSecretDetails = original.KeyAndSecretDetails +type ListRecoveryPointsRecommendedForMoveRequest = original.ListRecoveryPointsRecommendedForMoveRequest type LogSchedulePolicy = original.LogSchedulePolicy type LongTermRetentionPolicy = original.LongTermRetentionPolicy type LongTermSchedulePolicy = original.LongTermSchedulePolicy @@ -1064,7 +1167,11 @@ type MabProtectionPolicy = original.MabProtectionPolicy type ManagementUsage = original.ManagementUsage type ManagementUsageList = original.ManagementUsageList type MonthlyRetentionSchedule = original.MonthlyRetentionSchedule +type MoveRPAcrossTiersRequest = original.MoveRPAcrossTiersRequest +type MoveRecoveryPointFuture = original.MoveRecoveryPointFuture type NameInfo = original.NameInfo +type NewErrorResponse = original.NewErrorResponse +type NewErrorResponseError = original.NewErrorResponseError type OperationClient = original.OperationClient type OperationResultInfo = original.OperationResultInfo type OperationResultInfoBase = original.OperationResultInfoBase @@ -1076,6 +1183,7 @@ type OperationStatusExtendedInfo = original.OperationStatusExtendedInfo type OperationStatusJobExtendedInfo = original.OperationStatusJobExtendedInfo type OperationStatusJobsExtendedInfo = original.OperationStatusJobsExtendedInfo type OperationStatusProvisionILRExtendedInfo = original.OperationStatusProvisionILRExtendedInfo +type OperationStatusRecoveryPointExtendedInfo = original.OperationStatusRecoveryPointExtendedInfo type OperationStatusesClient = original.OperationStatusesClient type OperationWorkerResponse = original.OperationWorkerResponse type OperationsClient = original.OperationsClient @@ -1084,7 +1192,10 @@ type PoliciesClient = original.PoliciesClient type PreBackupValidation = original.PreBackupValidation type PreValidateEnableBackupRequest = original.PreValidateEnableBackupRequest type PreValidateEnableBackupResponse = original.PreValidateEnableBackupResponse +type PrepareDataMoveRequest = original.PrepareDataMoveRequest +type PrepareDataMoveResponse = original.PrepareDataMoveResponse type PrivateEndpoint = original.PrivateEndpoint +type PrivateEndpointClient = original.PrivateEndpointClient type PrivateEndpointConnection = original.PrivateEndpointConnection type PrivateEndpointConnectionClient = original.PrivateEndpointConnectionClient type PrivateEndpointConnectionDeleteFuture = original.PrivateEndpointConnectionDeleteFuture @@ -1107,6 +1218,7 @@ type ProtectedItemResourceList = original.ProtectedItemResourceList type ProtectedItemResourceListIterator = original.ProtectedItemResourceListIterator type ProtectedItemResourceListPage = original.ProtectedItemResourceListPage type ProtectedItemsClient = original.ProtectedItemsClient +type ProtectedItemsCrrClient = original.ProtectedItemsCrrClient type ProtectedItemsGroupClient = original.ProtectedItemsGroupClient type ProtectionContainer = original.ProtectionContainer type ProtectionContainerOperationResultsClient = original.ProtectionContainerOperationResultsClient @@ -1126,6 +1238,7 @@ type ProtectionIntentResourceList = original.ProtectionIntentResourceList type ProtectionIntentResourceListIterator = original.ProtectionIntentResourceListIterator type ProtectionIntentResourceListPage = original.ProtectionIntentResourceListPage type ProtectionPoliciesClient = original.ProtectionPoliciesClient +type ProtectionPoliciesDeleteFuture = original.ProtectionPoliciesDeleteFuture type ProtectionPolicy = original.ProtectionPolicy type ProtectionPolicyOperationResultsClient = original.ProtectionPolicyOperationResultsClient type ProtectionPolicyOperationStatusesClient = original.ProtectionPolicyOperationStatusesClient @@ -1136,17 +1249,24 @@ type ProtectionPolicyResourceListIterator = original.ProtectionPolicyResourceLis type ProtectionPolicyResourceListPage = original.ProtectionPolicyResourceListPage type RecoveryPoint = original.RecoveryPoint type RecoveryPointDiskConfiguration = original.RecoveryPointDiskConfiguration +type RecoveryPointMoveReadinessInfo = original.RecoveryPointMoveReadinessInfo +type RecoveryPointRehydrationInfo = original.RecoveryPointRehydrationInfo type RecoveryPointResource = original.RecoveryPointResource type RecoveryPointResourceList = original.RecoveryPointResourceList type RecoveryPointResourceListIterator = original.RecoveryPointResourceListIterator type RecoveryPointResourceListPage = original.RecoveryPointResourceListPage type RecoveryPointTierInformation = original.RecoveryPointTierInformation type RecoveryPointsClient = original.RecoveryPointsClient +type RecoveryPointsCrrClient = original.RecoveryPointsCrrClient +type RecoveryPointsRecommendedForMoveClient = original.RecoveryPointsRecommendedForMoveClient type Request = original.Request type RequestResource = original.RequestResource type Resource = original.Resource type ResourceConfig = original.ResourceConfig type ResourceConfigResource = original.ResourceConfigResource +type ResourceEncryptionConfig = original.ResourceEncryptionConfig +type ResourceEncryptionConfigResource = original.ResourceEncryptionConfigResource +type ResourceEncryptionConfigsClient = original.ResourceEncryptionConfigsClient type ResourceHealthDetails = original.ResourceHealthDetails type ResourceList = original.ResourceList type ResourceStorageConfigsClient = original.ResourceStorageConfigsClient @@ -1157,6 +1277,7 @@ type RestoreFileSpecs = original.RestoreFileSpecs type RestoreRequest = original.RestoreRequest type RestoreRequestResource = original.RestoreRequestResource type RestoresClient = original.RestoresClient +type RestoresTriggerFuture = original.RestoresTriggerFuture type RetentionDuration = original.RetentionDuration type RetentionPolicy = original.RetentionPolicy type SQLDataDirectory = original.SQLDataDirectory @@ -1173,14 +1294,22 @@ type SubProtectionPolicy = original.SubProtectionPolicy type TargetAFSRestoreInfo = original.TargetAFSRestoreInfo type TargetRestoreInfo = original.TargetRestoreInfo type TokenInformation = original.TokenInformation +type TriggerDataMoveRequest = original.TriggerDataMoveRequest +type UsageSummariesCRRClient = original.UsageSummariesCRRClient type UsageSummariesClient = original.UsageSummariesClient type ValidateIaasVMRestoreOperationRequest = original.ValidateIaasVMRestoreOperationRequest type ValidateOperationRequest = original.ValidateOperationRequest type ValidateOperationResponse = original.ValidateOperationResponse type ValidateOperationsResponse = original.ValidateOperationsResponse type ValidateRestoreOperationRequest = original.ValidateRestoreOperationRequest +type VaultJob = original.VaultJob +type VaultJobErrorInfo = original.VaultJobErrorInfo +type VaultJobExtendedInfo = original.VaultJobExtendedInfo +type VaultStorageConfigOperationResultResponse = original.VaultStorageConfigOperationResultResponse +type VaultStorageConfigOperationResultResponseModel = original.VaultStorageConfigOperationResultResponseModel type WeeklyRetentionFormat = original.WeeklyRetentionFormat type WeeklyRetentionSchedule = original.WeeklyRetentionSchedule +type WorkloadCrrAccessToken = original.WorkloadCrrAccessToken type WorkloadInquiryDetails = original.WorkloadInquiryDetails type WorkloadItem = original.WorkloadItem type WorkloadItemResource = original.WorkloadItemResource @@ -1198,6 +1327,18 @@ type YearlyRetentionSchedule = original.YearlyRetentionSchedule func New(subscriptionID string) BaseClient { return original.New(subscriptionID) } +func NewAadPropertiesClient(subscriptionID string) AadPropertiesClient { + return original.NewAadPropertiesClient(subscriptionID) +} +func NewAadPropertiesClientWithBaseURI(baseURI string, subscriptionID string) AadPropertiesClient { + return original.NewAadPropertiesClientWithBaseURI(baseURI, subscriptionID) +} +func NewBMSPrepareDataMoveOperationResultClient(subscriptionID string) BMSPrepareDataMoveOperationResultClient { + return original.NewBMSPrepareDataMoveOperationResultClient(subscriptionID) +} +func NewBMSPrepareDataMoveOperationResultClientWithBaseURI(baseURI string, subscriptionID string) BMSPrepareDataMoveOperationResultClient { + return original.NewBMSPrepareDataMoveOperationResultClientWithBaseURI(baseURI, subscriptionID) +} func NewBackupsClient(subscriptionID string) BackupsClient { return original.NewBackupsClient(subscriptionID) } @@ -1210,6 +1351,36 @@ func NewClientDiscoveryResponseIterator(page ClientDiscoveryResponsePage) Client func NewClientDiscoveryResponsePage(cur ClientDiscoveryResponse, getNextPage func(context.Context, ClientDiscoveryResponse) (ClientDiscoveryResponse, error)) ClientDiscoveryResponsePage { return original.NewClientDiscoveryResponsePage(cur, getNextPage) } +func NewCrossRegionRestoreClient(subscriptionID string) CrossRegionRestoreClient { + return original.NewCrossRegionRestoreClient(subscriptionID) +} +func NewCrossRegionRestoreClientWithBaseURI(baseURI string, subscriptionID string) CrossRegionRestoreClient { + return original.NewCrossRegionRestoreClientWithBaseURI(baseURI, subscriptionID) +} +func NewCrrJobDetailsClient(subscriptionID string) CrrJobDetailsClient { + return original.NewCrrJobDetailsClient(subscriptionID) +} +func NewCrrJobDetailsClientWithBaseURI(baseURI string, subscriptionID string) CrrJobDetailsClient { + return original.NewCrrJobDetailsClientWithBaseURI(baseURI, subscriptionID) +} +func NewCrrJobsClient(subscriptionID string) CrrJobsClient { + return original.NewCrrJobsClient(subscriptionID) +} +func NewCrrJobsClientWithBaseURI(baseURI string, subscriptionID string) CrrJobsClient { + return original.NewCrrJobsClientWithBaseURI(baseURI, subscriptionID) +} +func NewCrrOperationResultsClient(subscriptionID string) CrrOperationResultsClient { + return original.NewCrrOperationResultsClient(subscriptionID) +} +func NewCrrOperationResultsClientWithBaseURI(baseURI string, subscriptionID string) CrrOperationResultsClient { + return original.NewCrrOperationResultsClientWithBaseURI(baseURI, subscriptionID) +} +func NewCrrOperationStatusClient(subscriptionID string) CrrOperationStatusClient { + return original.NewCrrOperationStatusClient(subscriptionID) +} +func NewCrrOperationStatusClientWithBaseURI(baseURI string, subscriptionID string) CrrOperationStatusClient { + return original.NewCrrOperationStatusClientWithBaseURI(baseURI, subscriptionID) +} func NewEngineBaseResourceListIterator(page EngineBaseResourceListPage) EngineBaseResourceListIterator { return original.NewEngineBaseResourceListIterator(page) } @@ -1306,6 +1477,12 @@ func NewPoliciesClient(subscriptionID string) PoliciesClient { func NewPoliciesClientWithBaseURI(baseURI string, subscriptionID string) PoliciesClient { return original.NewPoliciesClientWithBaseURI(baseURI, subscriptionID) } +func NewPrivateEndpointClient(subscriptionID string) PrivateEndpointClient { + return original.NewPrivateEndpointClient(subscriptionID) +} +func NewPrivateEndpointClientWithBaseURI(baseURI string, subscriptionID string) PrivateEndpointClient { + return original.NewPrivateEndpointClientWithBaseURI(baseURI, subscriptionID) +} func NewPrivateEndpointConnectionClient(subscriptionID string) PrivateEndpointConnectionClient { return original.NewPrivateEndpointConnectionClient(subscriptionID) } @@ -1354,6 +1531,12 @@ func NewProtectedItemsClient(subscriptionID string) ProtectedItemsClient { func NewProtectedItemsClientWithBaseURI(baseURI string, subscriptionID string) ProtectedItemsClient { return original.NewProtectedItemsClientWithBaseURI(baseURI, subscriptionID) } +func NewProtectedItemsCrrClient(subscriptionID string) ProtectedItemsCrrClient { + return original.NewProtectedItemsCrrClient(subscriptionID) +} +func NewProtectedItemsCrrClientWithBaseURI(baseURI string, subscriptionID string) ProtectedItemsCrrClient { + return original.NewProtectedItemsCrrClientWithBaseURI(baseURI, subscriptionID) +} func NewProtectedItemsGroupClient(subscriptionID string) ProtectedItemsGroupClient { return original.NewProtectedItemsGroupClient(subscriptionID) } @@ -1444,6 +1627,24 @@ func NewRecoveryPointsClient(subscriptionID string) RecoveryPointsClient { func NewRecoveryPointsClientWithBaseURI(baseURI string, subscriptionID string) RecoveryPointsClient { return original.NewRecoveryPointsClientWithBaseURI(baseURI, subscriptionID) } +func NewRecoveryPointsCrrClient(subscriptionID string) RecoveryPointsCrrClient { + return original.NewRecoveryPointsCrrClient(subscriptionID) +} +func NewRecoveryPointsCrrClientWithBaseURI(baseURI string, subscriptionID string) RecoveryPointsCrrClient { + return original.NewRecoveryPointsCrrClientWithBaseURI(baseURI, subscriptionID) +} +func NewRecoveryPointsRecommendedForMoveClient(subscriptionID string) RecoveryPointsRecommendedForMoveClient { + return original.NewRecoveryPointsRecommendedForMoveClient(subscriptionID) +} +func NewRecoveryPointsRecommendedForMoveClientWithBaseURI(baseURI string, subscriptionID string) RecoveryPointsRecommendedForMoveClient { + return original.NewRecoveryPointsRecommendedForMoveClientWithBaseURI(baseURI, subscriptionID) +} +func NewResourceEncryptionConfigsClient(subscriptionID string) ResourceEncryptionConfigsClient { + return original.NewResourceEncryptionConfigsClient(subscriptionID) +} +func NewResourceEncryptionConfigsClientWithBaseURI(baseURI string, subscriptionID string) ResourceEncryptionConfigsClient { + return original.NewResourceEncryptionConfigsClientWithBaseURI(baseURI, subscriptionID) +} func NewResourceStorageConfigsClient(subscriptionID string) ResourceStorageConfigsClient { return original.NewResourceStorageConfigsClient(subscriptionID) } @@ -1474,6 +1675,12 @@ func NewStatusClient(subscriptionID string) StatusClient { func NewStatusClientWithBaseURI(baseURI string, subscriptionID string) StatusClient { return original.NewStatusClientWithBaseURI(baseURI, subscriptionID) } +func NewUsageSummariesCRRClient(subscriptionID string) UsageSummariesCRRClient { + return original.NewUsageSummariesCRRClient(subscriptionID) +} +func NewUsageSummariesCRRClientWithBaseURI(baseURI string, subscriptionID string) UsageSummariesCRRClient { + return original.NewUsageSummariesCRRClientWithBaseURI(baseURI, subscriptionID) +} func NewUsageSummariesClient(subscriptionID string) UsageSummariesClient { return original.NewUsageSummariesClient(subscriptionID) } @@ -1516,12 +1723,18 @@ func PossibleCopyOptionsValues() []CopyOptions { func PossibleCreateModeValues() []CreateMode { return original.PossibleCreateModeValues() } +func PossibleDataMoveLevelValues() []DataMoveLevel { + return original.PossibleDataMoveLevelValues() +} func PossibleDataSourceTypeValues() []DataSourceType { return original.PossibleDataSourceTypeValues() } func PossibleDayOfWeekValues() []DayOfWeek { return original.PossibleDayOfWeekValues() } +func PossibleEncryptionAtRestTypeValues() []EncryptionAtRestType { + return original.PossibleEncryptionAtRestTypeValues() +} func PossibleEngineTypeValues() []EngineType { return original.PossibleEngineTypeValues() } @@ -1543,6 +1756,9 @@ func PossibleHealthStateValues() []HealthState { func PossibleHealthStatusValues() []HealthStatus { return original.PossibleHealthStatusValues() } +func PossibleInfrastructureEncryptionStateValues() []InfrastructureEncryptionState { + return original.PossibleInfrastructureEncryptionStateValues() +} func PossibleInquiryStatusValues() []InquiryStatus { return original.PossibleInquiryStatusValues() } @@ -1567,6 +1783,9 @@ func PossibleJobTypeValues() []JobType { func PossibleLastBackupStatusValues() []LastBackupStatus { return original.PossibleLastBackupStatusValues() } +func PossibleLastUpdateStatusValues() []LastUpdateStatus { + return original.PossibleLastUpdateStatusValues() +} func PossibleMabServerTypeValues() []MabServerType { return original.PossibleMabServerTypeValues() } @@ -1579,11 +1798,14 @@ func PossibleManagementTypeValues() []ManagementType { func PossibleMonthOfYearValues() []MonthOfYear { return original.PossibleMonthOfYearValues() } +func PossibleObjectTypeBasicCrrAccessTokenValues() []ObjectTypeBasicCrrAccessToken { + return original.PossibleObjectTypeBasicCrrAccessTokenValues() +} func PossibleObjectTypeBasicILRRequestValues() []ObjectTypeBasicILRRequest { return original.PossibleObjectTypeBasicILRRequestValues() } -func PossibleObjectTypeBasicOperationResultInfoBaseValues() []ObjectTypeBasicOperationResultInfoBase { - return original.PossibleObjectTypeBasicOperationResultInfoBaseValues() +func PossibleObjectTypeBasicOperationStatusExtendedInfoValues() []ObjectTypeBasicOperationStatusExtendedInfo { + return original.PossibleObjectTypeBasicOperationStatusExtendedInfoValues() } func PossibleObjectTypeBasicRecoveryPointValues() []ObjectTypeBasicRecoveryPoint { return original.PossibleObjectTypeBasicRecoveryPointValues() @@ -1597,6 +1819,9 @@ func PossibleObjectTypeBasicRestoreRequestValues() []ObjectTypeBasicRestoreReque func PossibleObjectTypeBasicValidateOperationRequestValues() []ObjectTypeBasicValidateOperationRequest { return original.PossibleObjectTypeBasicValidateOperationRequestValues() } +func PossibleObjectTypeBasicVaultStorageConfigOperationResultResponseValues() []ObjectTypeBasicVaultStorageConfigOperationResultResponse { + return original.PossibleObjectTypeBasicVaultStorageConfigOperationResultResponseValues() +} func PossibleObjectTypeValues() []ObjectType { return original.PossibleObjectTypeValues() } @@ -1654,6 +1879,9 @@ func PossibleRecoveryPointTierTypeValues() []RecoveryPointTierType { func PossibleRecoveryTypeValues() []RecoveryType { return original.PossibleRecoveryTypeValues() } +func PossibleRehydrationPriorityValues() []RehydrationPriority { + return original.PossibleRehydrationPriorityValues() +} func PossibleResourceHealthStatusValues() []ResourceHealthStatus { return original.PossibleResourceHealthStatusValues() } diff --git a/profiles/latest/securityinsight/mgmt/securityinsight/models.go b/profiles/latest/securityinsight/mgmt/securityinsight/models.go index 179268f1f04d..868a10257a59 100644 --- a/profiles/latest/securityinsight/mgmt/securityinsight/models.go +++ b/profiles/latest/securityinsight/mgmt/securityinsight/models.go @@ -127,10 +127,10 @@ const ( type Kind = original.Kind const ( - KindKindAlertRule Kind = original.KindKindAlertRule - KindKindFusion Kind = original.KindKindFusion - KindKindMicrosoftSecurityIncidentCreation Kind = original.KindKindMicrosoftSecurityIncidentCreation - KindKindScheduled Kind = original.KindKindScheduled + KindAlertRule Kind = original.KindAlertRule + KindFusion Kind = original.KindFusion + KindMicrosoftSecurityIncidentCreation Kind = original.KindMicrosoftSecurityIncidentCreation + KindScheduled Kind = original.KindScheduled ) type KindBasicAlertRuleTemplate = original.KindBasicAlertRuleTemplate diff --git a/profiles/latest/virtualmachineimagebuilder/mgmt/virtualmachineimagebuilder/models.go b/profiles/latest/virtualmachineimagebuilder/mgmt/virtualmachineimagebuilder/models.go index 1a0b2be4f40f..0e5738ca5fe9 100644 --- a/profiles/latest/virtualmachineimagebuilder/mgmt/virtualmachineimagebuilder/models.go +++ b/profiles/latest/virtualmachineimagebuilder/mgmt/virtualmachineimagebuilder/models.go @@ -11,7 +11,7 @@ package virtualmachineimagebuilder import ( "context" - original "github.com/Azure/azure-sdk-for-go/services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder" + original "github.com/Azure/azure-sdk-for-go/services/virtualmachineimagebuilder/mgmt/2020-02-14/virtualmachineimagebuilder" ) const ( @@ -21,34 +21,34 @@ const ( type ProvisioningErrorCode = original.ProvisioningErrorCode const ( - BadCustomizerType ProvisioningErrorCode = original.BadCustomizerType - BadDistributeType ProvisioningErrorCode = original.BadDistributeType - BadManagedImageSource ProvisioningErrorCode = original.BadManagedImageSource - BadPIRSource ProvisioningErrorCode = original.BadPIRSource - BadSharedImageDistribute ProvisioningErrorCode = original.BadSharedImageDistribute - BadSharedImageVersionSource ProvisioningErrorCode = original.BadSharedImageVersionSource - BadSourceType ProvisioningErrorCode = original.BadSourceType - NoCustomizerScript ProvisioningErrorCode = original.NoCustomizerScript - Other ProvisioningErrorCode = original.Other - ServerError ProvisioningErrorCode = original.ServerError - UnsupportedCustomizerType ProvisioningErrorCode = original.UnsupportedCustomizerType + ProvisioningErrorCodeBadCustomizerType ProvisioningErrorCode = original.ProvisioningErrorCodeBadCustomizerType + ProvisioningErrorCodeBadDistributeType ProvisioningErrorCode = original.ProvisioningErrorCodeBadDistributeType + ProvisioningErrorCodeBadManagedImageSource ProvisioningErrorCode = original.ProvisioningErrorCodeBadManagedImageSource + ProvisioningErrorCodeBadPIRSource ProvisioningErrorCode = original.ProvisioningErrorCodeBadPIRSource + ProvisioningErrorCodeBadSharedImageDistribute ProvisioningErrorCode = original.ProvisioningErrorCodeBadSharedImageDistribute + ProvisioningErrorCodeBadSharedImageVersionSource ProvisioningErrorCode = original.ProvisioningErrorCodeBadSharedImageVersionSource + ProvisioningErrorCodeBadSourceType ProvisioningErrorCode = original.ProvisioningErrorCodeBadSourceType + ProvisioningErrorCodeNoCustomizerScript ProvisioningErrorCode = original.ProvisioningErrorCodeNoCustomizerScript + ProvisioningErrorCodeOther ProvisioningErrorCode = original.ProvisioningErrorCodeOther + ProvisioningErrorCodeServerError ProvisioningErrorCode = original.ProvisioningErrorCodeServerError + ProvisioningErrorCodeUnsupportedCustomizerType ProvisioningErrorCode = original.ProvisioningErrorCodeUnsupportedCustomizerType ) type ProvisioningState = original.ProvisioningState const ( - Creating ProvisioningState = original.Creating - Deleting ProvisioningState = original.Deleting - Failed ProvisioningState = original.Failed - Succeeded ProvisioningState = original.Succeeded - Updating ProvisioningState = original.Updating + ProvisioningStateCreating ProvisioningState = original.ProvisioningStateCreating + ProvisioningStateDeleting ProvisioningState = original.ProvisioningStateDeleting + ProvisioningStateFailed ProvisioningState = original.ProvisioningStateFailed + ProvisioningStateSucceeded ProvisioningState = original.ProvisioningStateSucceeded + ProvisioningStateUpdating ProvisioningState = original.ProvisioningStateUpdating ) type ResourceIdentityType = original.ResourceIdentityType const ( - None ResourceIdentityType = original.None - UserAssigned ResourceIdentityType = original.UserAssigned + ResourceIdentityTypeNone ResourceIdentityType = original.ResourceIdentityTypeNone + ResourceIdentityTypeUserAssigned ResourceIdentityType = original.ResourceIdentityTypeUserAssigned ) type RunState = original.RunState @@ -65,17 +65,17 @@ const ( type RunSubState = original.RunSubState const ( - Building RunSubState = original.Building - Customizing RunSubState = original.Customizing - Distributing RunSubState = original.Distributing - Queued RunSubState = original.Queued + RunSubStateBuilding RunSubState = original.RunSubStateBuilding + RunSubStateCustomizing RunSubState = original.RunSubStateCustomizing + RunSubStateDistributing RunSubState = original.RunSubStateDistributing + RunSubStateQueued RunSubState = original.RunSubStateQueued ) type SharedImageStorageAccountType = original.SharedImageStorageAccountType const ( - StandardLRS SharedImageStorageAccountType = original.StandardLRS - StandardZRS SharedImageStorageAccountType = original.StandardZRS + SharedImageStorageAccountTypeStandardLRS SharedImageStorageAccountType = original.SharedImageStorageAccountTypeStandardLRS + SharedImageStorageAccountTypeStandardZRS SharedImageStorageAccountType = original.SharedImageStorageAccountTypeStandardZRS ) type Type = original.Type @@ -90,12 +90,12 @@ const ( type TypeBasicImageTemplateCustomizer = original.TypeBasicImageTemplateCustomizer const ( - TypeFile TypeBasicImageTemplateCustomizer = original.TypeFile - TypeImageTemplateCustomizer TypeBasicImageTemplateCustomizer = original.TypeImageTemplateCustomizer - TypePowerShell TypeBasicImageTemplateCustomizer = original.TypePowerShell - TypeShell TypeBasicImageTemplateCustomizer = original.TypeShell - TypeWindowsRestart TypeBasicImageTemplateCustomizer = original.TypeWindowsRestart - TypeWindowsUpdate TypeBasicImageTemplateCustomizer = original.TypeWindowsUpdate + TypeBasicImageTemplateCustomizerTypeFile TypeBasicImageTemplateCustomizer = original.TypeBasicImageTemplateCustomizerTypeFile + TypeBasicImageTemplateCustomizerTypeImageTemplateCustomizer TypeBasicImageTemplateCustomizer = original.TypeBasicImageTemplateCustomizerTypeImageTemplateCustomizer + TypeBasicImageTemplateCustomizerTypePowerShell TypeBasicImageTemplateCustomizer = original.TypeBasicImageTemplateCustomizerTypePowerShell + TypeBasicImageTemplateCustomizerTypeShell TypeBasicImageTemplateCustomizer = original.TypeBasicImageTemplateCustomizerTypeShell + TypeBasicImageTemplateCustomizerTypeWindowsRestart TypeBasicImageTemplateCustomizer = original.TypeBasicImageTemplateCustomizerTypeWindowsRestart + TypeBasicImageTemplateCustomizerTypeWindowsUpdate TypeBasicImageTemplateCustomizer = original.TypeBasicImageTemplateCustomizerTypeWindowsUpdate ) type TypeBasicImageTemplateDistributor = original.TypeBasicImageTemplateDistributor diff --git a/profiles/latest/virtualmachineimagebuilder/mgmt/virtualmachineimagebuilder/virtualmachineimagebuilderapi/models.go b/profiles/latest/virtualmachineimagebuilder/mgmt/virtualmachineimagebuilder/virtualmachineimagebuilderapi/models.go index 4cf735c6d25e..ca1d76d21513 100644 --- a/profiles/latest/virtualmachineimagebuilder/mgmt/virtualmachineimagebuilder/virtualmachineimagebuilderapi/models.go +++ b/profiles/latest/virtualmachineimagebuilder/mgmt/virtualmachineimagebuilder/virtualmachineimagebuilderapi/models.go @@ -8,7 +8,7 @@ package virtualmachineimagebuilderapi -import original "github.com/Azure/azure-sdk-for-go/services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder/virtualmachineimagebuilderapi" +import original "github.com/Azure/azure-sdk-for-go/services/virtualmachineimagebuilder/mgmt/2020-02-14/virtualmachineimagebuilder/virtualmachineimagebuilderapi" type OperationsClientAPI = original.OperationsClientAPI type VirtualMachineImageTemplatesClientAPI = original.VirtualMachineImageTemplatesClientAPI diff --git a/profiles/preview/cognitiveservices/mgmt/cognitiveservices/cognitiveservicesapi/models.go b/profiles/preview/cognitiveservices/mgmt/cognitiveservices/cognitiveservicesapi/models.go index a1ee76970138..6b04500d9599 100644 --- a/profiles/preview/cognitiveservices/mgmt/cognitiveservices/cognitiveservicesapi/models.go +++ b/profiles/preview/cognitiveservices/mgmt/cognitiveservices/cognitiveservicesapi/models.go @@ -8,10 +8,11 @@ package cognitiveservicesapi -import original "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/cognitiveservicesapi" +import original "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/cognitiveservicesapi" type AccountsClientAPI = original.AccountsClientAPI type BaseClientAPI = original.BaseClientAPI +type DeletedAccountsClientAPI = original.DeletedAccountsClientAPI type OperationsClientAPI = original.OperationsClientAPI type PrivateEndpointConnectionsClientAPI = original.PrivateEndpointConnectionsClientAPI type PrivateLinkResourcesClientAPI = original.PrivateLinkResourcesClientAPI diff --git a/profiles/preview/cognitiveservices/mgmt/cognitiveservices/models.go b/profiles/preview/cognitiveservices/mgmt/cognitiveservices/models.go index 5baebcb759fc..4926831fe2ef 100644 --- a/profiles/preview/cognitiveservices/mgmt/cognitiveservices/models.go +++ b/profiles/preview/cognitiveservices/mgmt/cognitiveservices/models.go @@ -11,169 +11,217 @@ package cognitiveservices import ( "context" - original "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices" + original "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices" ) const ( DefaultBaseURI = original.DefaultBaseURI ) -type IdentityType = original.IdentityType +type ActionType = original.ActionType const ( - None IdentityType = original.None - SystemAssigned IdentityType = original.SystemAssigned - UserAssigned IdentityType = original.UserAssigned + ActionTypeInternal ActionType = original.ActionTypeInternal +) + +type CreatedByType = original.CreatedByType + +const ( + CreatedByTypeApplication CreatedByType = original.CreatedByTypeApplication + CreatedByTypeKey CreatedByType = original.CreatedByTypeKey + CreatedByTypeManagedIdentity CreatedByType = original.CreatedByTypeManagedIdentity + CreatedByTypeUser CreatedByType = original.CreatedByTypeUser ) type KeyName = original.KeyName const ( - Key1 KeyName = original.Key1 - Key2 KeyName = original.Key2 + KeyNameKey1 KeyName = original.KeyNameKey1 + KeyNameKey2 KeyName = original.KeyNameKey2 ) type KeySource = original.KeySource const ( - MicrosoftCognitiveServices KeySource = original.MicrosoftCognitiveServices - MicrosoftKeyVault KeySource = original.MicrosoftKeyVault + KeySourceMicrosoftCognitiveServices KeySource = original.KeySourceMicrosoftCognitiveServices + KeySourceMicrosoftKeyVault KeySource = original.KeySourceMicrosoftKeyVault ) type NetworkRuleAction = original.NetworkRuleAction const ( - Allow NetworkRuleAction = original.Allow - Deny NetworkRuleAction = original.Deny + NetworkRuleActionAllow NetworkRuleAction = original.NetworkRuleActionAllow + NetworkRuleActionDeny NetworkRuleAction = original.NetworkRuleActionDeny +) + +type Origin = original.Origin + +const ( + OriginSystem Origin = original.OriginSystem + OriginUser Origin = original.OriginUser + OriginUsersystem Origin = original.OriginUsersystem +) + +type PrivateEndpointConnectionProvisioningState = original.PrivateEndpointConnectionProvisioningState + +const ( + PrivateEndpointConnectionProvisioningStateCreating PrivateEndpointConnectionProvisioningState = original.PrivateEndpointConnectionProvisioningStateCreating + PrivateEndpointConnectionProvisioningStateDeleting PrivateEndpointConnectionProvisioningState = original.PrivateEndpointConnectionProvisioningStateDeleting + PrivateEndpointConnectionProvisioningStateFailed PrivateEndpointConnectionProvisioningState = original.PrivateEndpointConnectionProvisioningStateFailed + PrivateEndpointConnectionProvisioningStateSucceeded PrivateEndpointConnectionProvisioningState = original.PrivateEndpointConnectionProvisioningStateSucceeded ) type PrivateEndpointServiceConnectionStatus = original.PrivateEndpointServiceConnectionStatus const ( - Approved PrivateEndpointServiceConnectionStatus = original.Approved - Disconnected PrivateEndpointServiceConnectionStatus = original.Disconnected - Pending PrivateEndpointServiceConnectionStatus = original.Pending - Rejected PrivateEndpointServiceConnectionStatus = original.Rejected + PrivateEndpointServiceConnectionStatusApproved PrivateEndpointServiceConnectionStatus = original.PrivateEndpointServiceConnectionStatusApproved + PrivateEndpointServiceConnectionStatusPending PrivateEndpointServiceConnectionStatus = original.PrivateEndpointServiceConnectionStatusPending + PrivateEndpointServiceConnectionStatusRejected PrivateEndpointServiceConnectionStatus = original.PrivateEndpointServiceConnectionStatusRejected ) type ProvisioningState = original.ProvisioningState const ( - Creating ProvisioningState = original.Creating - Deleting ProvisioningState = original.Deleting - Failed ProvisioningState = original.Failed - Moving ProvisioningState = original.Moving - ResolvingDNS ProvisioningState = original.ResolvingDNS - Succeeded ProvisioningState = original.Succeeded + ProvisioningStateAccepted ProvisioningState = original.ProvisioningStateAccepted + ProvisioningStateCreating ProvisioningState = original.ProvisioningStateCreating + ProvisioningStateDeleting ProvisioningState = original.ProvisioningStateDeleting + ProvisioningStateFailed ProvisioningState = original.ProvisioningStateFailed + ProvisioningStateMoving ProvisioningState = original.ProvisioningStateMoving + ProvisioningStateResolvingDNS ProvisioningState = original.ProvisioningStateResolvingDNS + ProvisioningStateSucceeded ProvisioningState = original.ProvisioningStateSucceeded ) type PublicNetworkAccess = original.PublicNetworkAccess const ( - Disabled PublicNetworkAccess = original.Disabled - Enabled PublicNetworkAccess = original.Enabled + PublicNetworkAccessDisabled PublicNetworkAccess = original.PublicNetworkAccessDisabled + PublicNetworkAccessEnabled PublicNetworkAccess = original.PublicNetworkAccessEnabled ) type QuotaUsageStatus = original.QuotaUsageStatus const ( - Blocked QuotaUsageStatus = original.Blocked - Included QuotaUsageStatus = original.Included - InOverage QuotaUsageStatus = original.InOverage - Unknown QuotaUsageStatus = original.Unknown + QuotaUsageStatusBlocked QuotaUsageStatus = original.QuotaUsageStatusBlocked + QuotaUsageStatusIncluded QuotaUsageStatus = original.QuotaUsageStatusIncluded + QuotaUsageStatusInOverage QuotaUsageStatus = original.QuotaUsageStatusInOverage + QuotaUsageStatusUnknown QuotaUsageStatus = original.QuotaUsageStatusUnknown +) + +type ResourceIdentityType = original.ResourceIdentityType + +const ( + ResourceIdentityTypeNone ResourceIdentityType = original.ResourceIdentityTypeNone + ResourceIdentityTypeSystemAssigned ResourceIdentityType = original.ResourceIdentityTypeSystemAssigned + ResourceIdentityTypeSystemAssignedUserAssigned ResourceIdentityType = original.ResourceIdentityTypeSystemAssignedUserAssigned + ResourceIdentityTypeUserAssigned ResourceIdentityType = original.ResourceIdentityTypeUserAssigned ) type ResourceSkuRestrictionsReasonCode = original.ResourceSkuRestrictionsReasonCode const ( - NotAvailableForSubscription ResourceSkuRestrictionsReasonCode = original.NotAvailableForSubscription - QuotaID ResourceSkuRestrictionsReasonCode = original.QuotaID + ResourceSkuRestrictionsReasonCodeNotAvailableForSubscription ResourceSkuRestrictionsReasonCode = original.ResourceSkuRestrictionsReasonCodeNotAvailableForSubscription + ResourceSkuRestrictionsReasonCodeQuotaID ResourceSkuRestrictionsReasonCode = original.ResourceSkuRestrictionsReasonCodeQuotaID ) type ResourceSkuRestrictionsType = original.ResourceSkuRestrictionsType const ( - Location ResourceSkuRestrictionsType = original.Location - Zone ResourceSkuRestrictionsType = original.Zone + ResourceSkuRestrictionsTypeLocation ResourceSkuRestrictionsType = original.ResourceSkuRestrictionsTypeLocation + ResourceSkuRestrictionsTypeZone ResourceSkuRestrictionsType = original.ResourceSkuRestrictionsTypeZone ) type SkuTier = original.SkuTier const ( - Enterprise SkuTier = original.Enterprise - Free SkuTier = original.Free - Premium SkuTier = original.Premium - Standard SkuTier = original.Standard + SkuTierBasic SkuTier = original.SkuTierBasic + SkuTierEnterprise SkuTier = original.SkuTierEnterprise + SkuTierFree SkuTier = original.SkuTierFree + SkuTierPremium SkuTier = original.SkuTierPremium + SkuTierStandard SkuTier = original.SkuTierStandard ) type UnitType = original.UnitType const ( - Bytes UnitType = original.Bytes - BytesPerSecond UnitType = original.BytesPerSecond - Count UnitType = original.Count - CountPerSecond UnitType = original.CountPerSecond - Milliseconds UnitType = original.Milliseconds - Percent UnitType = original.Percent - Seconds UnitType = original.Seconds + UnitTypeBytes UnitType = original.UnitTypeBytes + UnitTypeBytesPerSecond UnitType = original.UnitTypeBytesPerSecond + UnitTypeCount UnitType = original.UnitTypeCount + UnitTypeCountPerSecond UnitType = original.UnitTypeCountPerSecond + UnitTypeMilliseconds UnitType = original.UnitTypeMilliseconds + UnitTypePercent UnitType = original.UnitTypePercent + UnitTypeSeconds UnitType = original.UnitTypeSeconds ) +type APIKeys = original.APIKeys +type APIProperties = original.APIProperties type Account = original.Account -type AccountAPIProperties = original.AccountAPIProperties -type AccountEnumerateSkusResult = original.AccountEnumerateSkusResult -type AccountKeys = original.AccountKeys type AccountListResult = original.AccountListResult type AccountListResultIterator = original.AccountListResultIterator type AccountListResultPage = original.AccountListResultPage type AccountProperties = original.AccountProperties +type AccountSku = original.AccountSku +type AccountSkuListResult = original.AccountSkuListResult type AccountsClient = original.AccountsClient +type AccountsCreateFuture = original.AccountsCreateFuture +type AccountsDeleteFuture = original.AccountsDeleteFuture +type AccountsUpdateFuture = original.AccountsUpdateFuture type AzureEntityResource = original.AzureEntityResource type BaseClient = original.BaseClient +type CallRateLimit = original.CallRateLimit type CheckDomainAvailabilityParameter = original.CheckDomainAvailabilityParameter -type CheckDomainAvailabilityResult = original.CheckDomainAvailabilityResult type CheckSkuAvailabilityParameter = original.CheckSkuAvailabilityParameter -type CheckSkuAvailabilityResult = original.CheckSkuAvailabilityResult -type CheckSkuAvailabilityResultList = original.CheckSkuAvailabilityResultList +type DeletedAccountsClient = original.DeletedAccountsClient +type DeletedAccountsPurgeFuture = original.DeletedAccountsPurgeFuture +type DomainAvailability = original.DomainAvailability type Encryption = original.Encryption -type Error = original.Error -type ErrorBody = original.ErrorBody +type ErrorAdditionalInfo = original.ErrorAdditionalInfo +type ErrorDetail = original.ErrorDetail +type ErrorResponse = original.ErrorResponse type IPRule = original.IPRule type Identity = original.Identity type KeyVaultProperties = original.KeyVaultProperties type MetricName = original.MetricName type NetworkRuleSet = original.NetworkRuleSet -type OperationDisplayInfo = original.OperationDisplayInfo -type OperationEntity = original.OperationEntity -type OperationEntityListResult = original.OperationEntityListResult -type OperationEntityListResultIterator = original.OperationEntityListResultIterator -type OperationEntityListResultPage = original.OperationEntityListResultPage +type Operation = original.Operation +type OperationDisplay = original.OperationDisplay +type OperationListResult = original.OperationListResult +type OperationListResultIterator = original.OperationListResultIterator +type OperationListResultPage = original.OperationListResultPage type OperationsClient = original.OperationsClient type PrivateEndpoint = original.PrivateEndpoint type PrivateEndpointConnection = original.PrivateEndpointConnection type PrivateEndpointConnectionListResult = original.PrivateEndpointConnectionListResult type PrivateEndpointConnectionProperties = original.PrivateEndpointConnectionProperties type PrivateEndpointConnectionsClient = original.PrivateEndpointConnectionsClient +type PrivateEndpointConnectionsCreateOrUpdateFuture = original.PrivateEndpointConnectionsCreateOrUpdateFuture +type PrivateEndpointConnectionsDeleteFuture = original.PrivateEndpointConnectionsDeleteFuture type PrivateLinkResource = original.PrivateLinkResource type PrivateLinkResourceListResult = original.PrivateLinkResourceListResult type PrivateLinkResourceProperties = original.PrivateLinkResourceProperties type PrivateLinkResourcesClient = original.PrivateLinkResourcesClient type PrivateLinkServiceConnectionState = original.PrivateLinkServiceConnectionState type ProxyResource = original.ProxyResource +type QuotaLimit = original.QuotaLimit type RegenerateKeyParameters = original.RegenerateKeyParameters +type RequestMatchPattern = original.RequestMatchPattern type Resource = original.Resource -type ResourceAndSku = original.ResourceAndSku type ResourceSku = original.ResourceSku +type ResourceSkuListResult = original.ResourceSkuListResult +type ResourceSkuListResultIterator = original.ResourceSkuListResultIterator +type ResourceSkuListResultPage = original.ResourceSkuListResultPage type ResourceSkuRestrictionInfo = original.ResourceSkuRestrictionInfo type ResourceSkuRestrictions = original.ResourceSkuRestrictions type ResourceSkusClient = original.ResourceSkusClient -type ResourceSkusResult = original.ResourceSkusResult -type ResourceSkusResultIterator = original.ResourceSkusResultIterator -type ResourceSkusResultPage = original.ResourceSkusResultPage type Sku = original.Sku +type SkuAvailability = original.SkuAvailability +type SkuAvailabilityListResult = original.SkuAvailabilityListResult type SkuCapability = original.SkuCapability +type SkuChangeInfo = original.SkuChangeInfo +type SystemData = original.SystemData +type ThrottlingRule = original.ThrottlingRule type TrackedResource = original.TrackedResource type Usage = original.Usage -type UsagesResult = original.UsagesResult +type UsageListResult = original.UsageListResult type UserAssignedIdentity = original.UserAssignedIdentity type UserOwnedStorage = original.UserOwnedStorage type VirtualNetworkRule = original.VirtualNetworkRule @@ -193,11 +241,17 @@ func NewAccountsClient(subscriptionID string) AccountsClient { func NewAccountsClientWithBaseURI(baseURI string, subscriptionID string) AccountsClient { return original.NewAccountsClientWithBaseURI(baseURI, subscriptionID) } -func NewOperationEntityListResultIterator(page OperationEntityListResultPage) OperationEntityListResultIterator { - return original.NewOperationEntityListResultIterator(page) +func NewDeletedAccountsClient(subscriptionID string) DeletedAccountsClient { + return original.NewDeletedAccountsClient(subscriptionID) +} +func NewDeletedAccountsClientWithBaseURI(baseURI string, subscriptionID string) DeletedAccountsClient { + return original.NewDeletedAccountsClientWithBaseURI(baseURI, subscriptionID) } -func NewOperationEntityListResultPage(cur OperationEntityListResult, getNextPage func(context.Context, OperationEntityListResult) (OperationEntityListResult, error)) OperationEntityListResultPage { - return original.NewOperationEntityListResultPage(cur, getNextPage) +func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator { + return original.NewOperationListResultIterator(page) +} +func NewOperationListResultPage(cur OperationListResult, getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage { + return original.NewOperationListResultPage(cur, getNextPage) } func NewOperationsClient(subscriptionID string) OperationsClient { return original.NewOperationsClient(subscriptionID) @@ -217,23 +271,26 @@ func NewPrivateLinkResourcesClient(subscriptionID string) PrivateLinkResourcesCl func NewPrivateLinkResourcesClientWithBaseURI(baseURI string, subscriptionID string) PrivateLinkResourcesClient { return original.NewPrivateLinkResourcesClientWithBaseURI(baseURI, subscriptionID) } +func NewResourceSkuListResultIterator(page ResourceSkuListResultPage) ResourceSkuListResultIterator { + return original.NewResourceSkuListResultIterator(page) +} +func NewResourceSkuListResultPage(cur ResourceSkuListResult, getNextPage func(context.Context, ResourceSkuListResult) (ResourceSkuListResult, error)) ResourceSkuListResultPage { + return original.NewResourceSkuListResultPage(cur, getNextPage) +} func NewResourceSkusClient(subscriptionID string) ResourceSkusClient { return original.NewResourceSkusClient(subscriptionID) } func NewResourceSkusClientWithBaseURI(baseURI string, subscriptionID string) ResourceSkusClient { return original.NewResourceSkusClientWithBaseURI(baseURI, subscriptionID) } -func NewResourceSkusResultIterator(page ResourceSkusResultPage) ResourceSkusResultIterator { - return original.NewResourceSkusResultIterator(page) -} -func NewResourceSkusResultPage(cur ResourceSkusResult, getNextPage func(context.Context, ResourceSkusResult) (ResourceSkusResult, error)) ResourceSkusResultPage { - return original.NewResourceSkusResultPage(cur, getNextPage) -} func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { return original.NewWithBaseURI(baseURI, subscriptionID) } -func PossibleIdentityTypeValues() []IdentityType { - return original.PossibleIdentityTypeValues() +func PossibleActionTypeValues() []ActionType { + return original.PossibleActionTypeValues() +} +func PossibleCreatedByTypeValues() []CreatedByType { + return original.PossibleCreatedByTypeValues() } func PossibleKeyNameValues() []KeyName { return original.PossibleKeyNameValues() @@ -244,6 +301,12 @@ func PossibleKeySourceValues() []KeySource { func PossibleNetworkRuleActionValues() []NetworkRuleAction { return original.PossibleNetworkRuleActionValues() } +func PossibleOriginValues() []Origin { + return original.PossibleOriginValues() +} +func PossiblePrivateEndpointConnectionProvisioningStateValues() []PrivateEndpointConnectionProvisioningState { + return original.PossiblePrivateEndpointConnectionProvisioningStateValues() +} func PossiblePrivateEndpointServiceConnectionStatusValues() []PrivateEndpointServiceConnectionStatus { return original.PossiblePrivateEndpointServiceConnectionStatusValues() } @@ -256,6 +319,9 @@ func PossiblePublicNetworkAccessValues() []PublicNetworkAccess { func PossibleQuotaUsageStatusValues() []QuotaUsageStatus { return original.PossibleQuotaUsageStatusValues() } +func PossibleResourceIdentityTypeValues() []ResourceIdentityType { + return original.PossibleResourceIdentityTypeValues() +} func PossibleResourceSkuRestrictionsReasonCodeValues() []ResourceSkuRestrictionsReasonCode { return original.PossibleResourceSkuRestrictionsReasonCodeValues() } diff --git a/profiles/preview/compute/mgmt/compute/computeapi/models.go b/profiles/preview/compute/mgmt/compute/computeapi/models.go index e2f8ac8d20b7..f8e0799f88de 100644 --- a/profiles/preview/compute/mgmt/compute/computeapi/models.go +++ b/profiles/preview/compute/mgmt/compute/computeapi/models.go @@ -27,12 +27,18 @@ type GalleryApplicationVersionsClientAPI = original.GalleryApplicationVersionsCl type GalleryApplicationsClientAPI = original.GalleryApplicationsClientAPI type GalleryImageVersionsClientAPI = original.GalleryImageVersionsClientAPI type GalleryImagesClientAPI = original.GalleryImagesClientAPI +type GallerySharingProfileClientAPI = original.GallerySharingProfileClientAPI type ImagesClientAPI = original.ImagesClientAPI type LogAnalyticsClientAPI = original.LogAnalyticsClientAPI type OperationsClientAPI = original.OperationsClientAPI type ProximityPlacementGroupsClientAPI = original.ProximityPlacementGroupsClientAPI type ResourceSkusClientAPI = original.ResourceSkusClientAPI +type RestorePointCollectionsClientAPI = original.RestorePointCollectionsClientAPI +type RestorePointsClientAPI = original.RestorePointsClientAPI type SSHPublicKeysClientAPI = original.SSHPublicKeysClientAPI +type SharedGalleriesClientAPI = original.SharedGalleriesClientAPI +type SharedGalleryImageVersionsClientAPI = original.SharedGalleryImageVersionsClientAPI +type SharedGalleryImagesClientAPI = original.SharedGalleryImagesClientAPI type SnapshotsClientAPI = original.SnapshotsClientAPI type UsageClientAPI = original.UsageClientAPI type VirtualMachineExtensionImagesClientAPI = original.VirtualMachineExtensionImagesClientAPI diff --git a/profiles/preview/compute/mgmt/compute/models.go b/profiles/preview/compute/mgmt/compute/models.go index 4c552cb41445..e1b34313aca4 100644 --- a/profiles/preview/compute/mgmt/compute/models.go +++ b/profiles/preview/compute/mgmt/compute/models.go @@ -21,25 +21,25 @@ const ( type AccessLevel = original.AccessLevel const ( - None AccessLevel = original.None - Read AccessLevel = original.Read - Write AccessLevel = original.Write + AccessLevelNone AccessLevel = original.AccessLevelNone + AccessLevelRead AccessLevel = original.AccessLevelRead + AccessLevelWrite AccessLevel = original.AccessLevelWrite ) type AggregatedReplicationState = original.AggregatedReplicationState const ( - Completed AggregatedReplicationState = original.Completed - Failed AggregatedReplicationState = original.Failed - InProgress AggregatedReplicationState = original.InProgress - Unknown AggregatedReplicationState = original.Unknown + AggregatedReplicationStateCompleted AggregatedReplicationState = original.AggregatedReplicationStateCompleted + AggregatedReplicationStateFailed AggregatedReplicationState = original.AggregatedReplicationStateFailed + AggregatedReplicationStateInProgress AggregatedReplicationState = original.AggregatedReplicationStateInProgress + AggregatedReplicationStateUnknown AggregatedReplicationState = original.AggregatedReplicationStateUnknown ) type AvailabilitySetSkuTypes = original.AvailabilitySetSkuTypes const ( - Aligned AvailabilitySetSkuTypes = original.Aligned - Classic AvailabilitySetSkuTypes = original.Classic + AvailabilitySetSkuTypesAligned AvailabilitySetSkuTypes = original.AvailabilitySetSkuTypesAligned + AvailabilitySetSkuTypesClassic AvailabilitySetSkuTypes = original.AvailabilitySetSkuTypesClassic ) type CachingTypes = original.CachingTypes @@ -53,15 +53,23 @@ const ( type CloudServiceUpgradeMode = original.CloudServiceUpgradeMode const ( - Auto CloudServiceUpgradeMode = original.Auto - Manual CloudServiceUpgradeMode = original.Manual - Simultaneous CloudServiceUpgradeMode = original.Simultaneous + CloudServiceUpgradeModeAuto CloudServiceUpgradeMode = original.CloudServiceUpgradeModeAuto + CloudServiceUpgradeModeManual CloudServiceUpgradeMode = original.CloudServiceUpgradeModeManual + CloudServiceUpgradeModeSimultaneous CloudServiceUpgradeMode = original.CloudServiceUpgradeModeSimultaneous ) type ComponentNames = original.ComponentNames const ( - MicrosoftWindowsShellSetup ComponentNames = original.MicrosoftWindowsShellSetup + ComponentNamesMicrosoftWindowsShellSetup ComponentNames = original.ComponentNamesMicrosoftWindowsShellSetup +) + +type ConsistencyModeTypes = original.ConsistencyModeTypes + +const ( + ConsistencyModeTypesApplicationConsistent ConsistencyModeTypes = original.ConsistencyModeTypesApplicationConsistent + ConsistencyModeTypesCrashConsistent ConsistencyModeTypes = original.ConsistencyModeTypesCrashConsistent + ConsistencyModeTypesFileSystemConsistent ConsistencyModeTypes = original.ConsistencyModeTypesFileSystemConsistent ) type DedicatedHostLicenseTypes = original.DedicatedHostLicenseTypes @@ -72,29 +80,36 @@ const ( DedicatedHostLicenseTypesWindowsServerPerpetual DedicatedHostLicenseTypes = original.DedicatedHostLicenseTypesWindowsServerPerpetual ) +type DeleteOptions = original.DeleteOptions + +const ( + DeleteOptionsDelete DeleteOptions = original.DeleteOptionsDelete + DeleteOptionsDetach DeleteOptions = original.DeleteOptionsDetach +) + type DiffDiskOptions = original.DiffDiskOptions const ( - Local DiffDiskOptions = original.Local + DiffDiskOptionsLocal DiffDiskOptions = original.DiffDiskOptionsLocal ) type DiffDiskPlacement = original.DiffDiskPlacement const ( - CacheDisk DiffDiskPlacement = original.CacheDisk - ResourceDisk DiffDiskPlacement = original.ResourceDisk + DiffDiskPlacementCacheDisk DiffDiskPlacement = original.DiffDiskPlacementCacheDisk + DiffDiskPlacementResourceDisk DiffDiskPlacement = original.DiffDiskPlacementResourceDisk ) type DiskCreateOption = original.DiskCreateOption const ( - Attach DiskCreateOption = original.Attach - Copy DiskCreateOption = original.Copy - Empty DiskCreateOption = original.Empty - FromImage DiskCreateOption = original.FromImage - Import DiskCreateOption = original.Import - Restore DiskCreateOption = original.Restore - Upload DiskCreateOption = original.Upload + DiskCreateOptionAttach DiskCreateOption = original.DiskCreateOptionAttach + DiskCreateOptionCopy DiskCreateOption = original.DiskCreateOptionCopy + DiskCreateOptionEmpty DiskCreateOption = original.DiskCreateOptionEmpty + DiskCreateOptionFromImage DiskCreateOption = original.DiskCreateOptionFromImage + DiskCreateOptionImport DiskCreateOption = original.DiskCreateOptionImport + DiskCreateOptionRestore DiskCreateOption = original.DiskCreateOptionRestore + DiskCreateOptionUpload DiskCreateOption = original.DiskCreateOptionUpload ) type DiskCreateOptionTypes = original.DiskCreateOptionTypes @@ -105,10 +120,17 @@ const ( DiskCreateOptionTypesFromImage DiskCreateOptionTypes = original.DiskCreateOptionTypesFromImage ) +type DiskDeleteOptionTypes = original.DiskDeleteOptionTypes + +const ( + DiskDeleteOptionTypesDelete DiskDeleteOptionTypes = original.DiskDeleteOptionTypesDelete + DiskDeleteOptionTypesDetach DiskDeleteOptionTypes = original.DiskDeleteOptionTypesDetach +) + type DiskDetachOptionTypes = original.DiskDetachOptionTypes const ( - ForceDetach DiskDetachOptionTypes = original.ForceDetach + DiskDetachOptionTypesForceDetach DiskDetachOptionTypes = original.DiskDetachOptionTypesForceDetach ) type DiskEncryptionSetIdentityType = original.DiskEncryptionSetIdentityType @@ -121,36 +143,36 @@ const ( type DiskEncryptionSetType = original.DiskEncryptionSetType const ( - EncryptionAtRestWithCustomerKey DiskEncryptionSetType = original.EncryptionAtRestWithCustomerKey - EncryptionAtRestWithPlatformAndCustomerKeys DiskEncryptionSetType = original.EncryptionAtRestWithPlatformAndCustomerKeys + DiskEncryptionSetTypeEncryptionAtRestWithCustomerKey DiskEncryptionSetType = original.DiskEncryptionSetTypeEncryptionAtRestWithCustomerKey + DiskEncryptionSetTypeEncryptionAtRestWithPlatformAndCustomerKeys DiskEncryptionSetType = original.DiskEncryptionSetTypeEncryptionAtRestWithPlatformAndCustomerKeys ) type DiskSecurityTypes = original.DiskSecurityTypes const ( - TrustedLaunch DiskSecurityTypes = original.TrustedLaunch + DiskSecurityTypesTrustedLaunch DiskSecurityTypes = original.DiskSecurityTypesTrustedLaunch ) type DiskState = original.DiskState const ( - ActiveSAS DiskState = original.ActiveSAS - ActiveUpload DiskState = original.ActiveUpload - Attached DiskState = original.Attached - ReadyToUpload DiskState = original.ReadyToUpload - Reserved DiskState = original.Reserved - Unattached DiskState = original.Unattached + DiskStateActiveSAS DiskState = original.DiskStateActiveSAS + DiskStateActiveUpload DiskState = original.DiskStateActiveUpload + DiskStateAttached DiskState = original.DiskStateAttached + DiskStateReadyToUpload DiskState = original.DiskStateReadyToUpload + DiskStateReserved DiskState = original.DiskStateReserved + DiskStateUnattached DiskState = original.DiskStateUnattached ) type DiskStorageAccountTypes = original.DiskStorageAccountTypes const ( - PremiumLRS DiskStorageAccountTypes = original.PremiumLRS - PremiumZRS DiskStorageAccountTypes = original.PremiumZRS - StandardLRS DiskStorageAccountTypes = original.StandardLRS - StandardSSDLRS DiskStorageAccountTypes = original.StandardSSDLRS - StandardSSDZRS DiskStorageAccountTypes = original.StandardSSDZRS - UltraSSDLRS DiskStorageAccountTypes = original.UltraSSDLRS + DiskStorageAccountTypesPremiumLRS DiskStorageAccountTypes = original.DiskStorageAccountTypesPremiumLRS + DiskStorageAccountTypesPremiumZRS DiskStorageAccountTypes = original.DiskStorageAccountTypesPremiumZRS + DiskStorageAccountTypesStandardLRS DiskStorageAccountTypes = original.DiskStorageAccountTypesStandardLRS + DiskStorageAccountTypesStandardSSDLRS DiskStorageAccountTypes = original.DiskStorageAccountTypesStandardSSDLRS + DiskStorageAccountTypesStandardSSDZRS DiskStorageAccountTypes = original.DiskStorageAccountTypesStandardSSDZRS + DiskStorageAccountTypesUltraSSDLRS DiskStorageAccountTypes = original.DiskStorageAccountTypesUltraSSDLRS ) type EncryptionType = original.EncryptionType @@ -173,10 +195,23 @@ const ( ExecutionStateUnknown ExecutionState = original.ExecutionStateUnknown ) +type ExpandTypesForGetVMScaleSets = original.ExpandTypesForGetVMScaleSets + +const ( + ExpandTypesForGetVMScaleSetsUserData ExpandTypesForGetVMScaleSets = original.ExpandTypesForGetVMScaleSetsUserData +) + type ExtendedLocationTypes = original.ExtendedLocationTypes const ( - EdgeZone ExtendedLocationTypes = original.EdgeZone + ExtendedLocationTypesEdgeZone ExtendedLocationTypes = original.ExtendedLocationTypesEdgeZone +) + +type GallerySharingPermissionTypes = original.GallerySharingPermissionTypes + +const ( + GallerySharingPermissionTypesGroups GallerySharingPermissionTypes = original.GallerySharingPermissionTypesGroups + GallerySharingPermissionTypesPrivate GallerySharingPermissionTypes = original.GallerySharingPermissionTypesPrivate ) type HostCaching = original.HostCaching @@ -190,8 +225,8 @@ const ( type HyperVGeneration = original.HyperVGeneration const ( - V1 HyperVGeneration = original.V1 - V2 HyperVGeneration = original.V2 + HyperVGenerationV1 HyperVGeneration = original.HyperVGenerationV1 + HyperVGenerationV2 HyperVGeneration = original.HyperVGenerationV2 ) type HyperVGenerationType = original.HyperVGenerationType @@ -211,30 +246,45 @@ const ( type IPVersion = original.IPVersion const ( - IPv4 IPVersion = original.IPv4 - IPv6 IPVersion = original.IPv6 + IPVersionIPv4 IPVersion = original.IPVersionIPv4 + IPVersionIPv6 IPVersion = original.IPVersionIPv6 +) + +type IPVersions = original.IPVersions + +const ( + IPVersionsIPv4 IPVersions = original.IPVersionsIPv4 + IPVersionsIPv6 IPVersions = original.IPVersionsIPv6 ) type InstanceViewTypes = original.InstanceViewTypes const ( - InstanceView InstanceViewTypes = original.InstanceView + InstanceViewTypesInstanceView InstanceViewTypes = original.InstanceViewTypesInstanceView + InstanceViewTypesUserData InstanceViewTypes = original.InstanceViewTypesUserData ) type IntervalInMins = original.IntervalInMins const ( - FiveMins IntervalInMins = original.FiveMins - SixtyMins IntervalInMins = original.SixtyMins - ThirtyMins IntervalInMins = original.ThirtyMins - ThreeMins IntervalInMins = original.ThreeMins + IntervalInMinsFiveMins IntervalInMins = original.IntervalInMinsFiveMins + IntervalInMinsSixtyMins IntervalInMins = original.IntervalInMinsSixtyMins + IntervalInMinsThirtyMins IntervalInMins = original.IntervalInMinsThirtyMins + IntervalInMinsThreeMins IntervalInMins = original.IntervalInMinsThreeMins +) + +type LinuxPatchAssessmentMode = original.LinuxPatchAssessmentMode + +const ( + LinuxPatchAssessmentModeAutomaticByPlatform LinuxPatchAssessmentMode = original.LinuxPatchAssessmentModeAutomaticByPlatform + LinuxPatchAssessmentModeImageDefault LinuxPatchAssessmentMode = original.LinuxPatchAssessmentModeImageDefault ) type LinuxVMGuestPatchMode = original.LinuxVMGuestPatchMode const ( - AutomaticByPlatform LinuxVMGuestPatchMode = original.AutomaticByPlatform - ImageDefault LinuxVMGuestPatchMode = original.ImageDefault + LinuxVMGuestPatchModeAutomaticByPlatform LinuxVMGuestPatchMode = original.LinuxVMGuestPatchModeAutomaticByPlatform + LinuxVMGuestPatchModeImageDefault LinuxVMGuestPatchMode = original.LinuxVMGuestPatchModeImageDefault ) type MaintenanceOperationResultCodeTypes = original.MaintenanceOperationResultCodeTypes @@ -246,60 +296,73 @@ const ( MaintenanceOperationResultCodeTypesRetryLater MaintenanceOperationResultCodeTypes = original.MaintenanceOperationResultCodeTypesRetryLater ) +type NetworkAPIVersion = original.NetworkAPIVersion + +const ( + NetworkAPIVersionTwoZeroTwoZeroHyphenMinusOneOneHyphenMinusZeroOne NetworkAPIVersion = original.NetworkAPIVersionTwoZeroTwoZeroHyphenMinusOneOneHyphenMinusZeroOne +) + type NetworkAccessPolicy = original.NetworkAccessPolicy const ( - AllowAll NetworkAccessPolicy = original.AllowAll - AllowPrivate NetworkAccessPolicy = original.AllowPrivate - DenyAll NetworkAccessPolicy = original.DenyAll + NetworkAccessPolicyAllowAll NetworkAccessPolicy = original.NetworkAccessPolicyAllowAll + NetworkAccessPolicyAllowPrivate NetworkAccessPolicy = original.NetworkAccessPolicyAllowPrivate + NetworkAccessPolicyDenyAll NetworkAccessPolicy = original.NetworkAccessPolicyDenyAll ) type OperatingSystemStateTypes = original.OperatingSystemStateTypes const ( - Generalized OperatingSystemStateTypes = original.Generalized - Specialized OperatingSystemStateTypes = original.Specialized + OperatingSystemStateTypesGeneralized OperatingSystemStateTypes = original.OperatingSystemStateTypesGeneralized + OperatingSystemStateTypesSpecialized OperatingSystemStateTypes = original.OperatingSystemStateTypesSpecialized +) + +type OperatingSystemType = original.OperatingSystemType + +const ( + OperatingSystemTypeLinux OperatingSystemType = original.OperatingSystemTypeLinux + OperatingSystemTypeWindows OperatingSystemType = original.OperatingSystemTypeWindows ) type OperatingSystemTypes = original.OperatingSystemTypes const ( - Linux OperatingSystemTypes = original.Linux - Windows OperatingSystemTypes = original.Windows + OperatingSystemTypesLinux OperatingSystemTypes = original.OperatingSystemTypesLinux + OperatingSystemTypesWindows OperatingSystemTypes = original.OperatingSystemTypesWindows ) type OrchestrationMode = original.OrchestrationMode const ( - Flexible OrchestrationMode = original.Flexible - Uniform OrchestrationMode = original.Uniform + OrchestrationModeFlexible OrchestrationMode = original.OrchestrationModeFlexible + OrchestrationModeUniform OrchestrationMode = original.OrchestrationModeUniform ) type OrchestrationServiceNames = original.OrchestrationServiceNames const ( - AutomaticRepairs OrchestrationServiceNames = original.AutomaticRepairs + OrchestrationServiceNamesAutomaticRepairs OrchestrationServiceNames = original.OrchestrationServiceNamesAutomaticRepairs ) type OrchestrationServiceState = original.OrchestrationServiceState const ( - NotRunning OrchestrationServiceState = original.NotRunning - Running OrchestrationServiceState = original.Running - Suspended OrchestrationServiceState = original.Suspended + OrchestrationServiceStateNotRunning OrchestrationServiceState = original.OrchestrationServiceStateNotRunning + OrchestrationServiceStateRunning OrchestrationServiceState = original.OrchestrationServiceStateRunning + OrchestrationServiceStateSuspended OrchestrationServiceState = original.OrchestrationServiceStateSuspended ) type OrchestrationServiceStateAction = original.OrchestrationServiceStateAction const ( - Resume OrchestrationServiceStateAction = original.Resume - Suspend OrchestrationServiceStateAction = original.Suspend + OrchestrationServiceStateActionResume OrchestrationServiceStateAction = original.OrchestrationServiceStateActionResume + OrchestrationServiceStateActionSuspend OrchestrationServiceStateAction = original.OrchestrationServiceStateActionSuspend ) type PassNames = original.PassNames const ( - OobeSystem PassNames = original.OobeSystem + PassNamesOobeSystem PassNames = original.PassNamesOobeSystem ) type PatchAssessmentState = original.PatchAssessmentState @@ -342,16 +405,16 @@ const ( type PrivateEndpointServiceConnectionStatus = original.PrivateEndpointServiceConnectionStatus const ( - Approved PrivateEndpointServiceConnectionStatus = original.Approved - Pending PrivateEndpointServiceConnectionStatus = original.Pending - Rejected PrivateEndpointServiceConnectionStatus = original.Rejected + PrivateEndpointServiceConnectionStatusApproved PrivateEndpointServiceConnectionStatus = original.PrivateEndpointServiceConnectionStatusApproved + PrivateEndpointServiceConnectionStatusPending PrivateEndpointServiceConnectionStatus = original.PrivateEndpointServiceConnectionStatusPending + PrivateEndpointServiceConnectionStatusRejected PrivateEndpointServiceConnectionStatus = original.PrivateEndpointServiceConnectionStatusRejected ) type ProtocolTypes = original.ProtocolTypes const ( - HTTP ProtocolTypes = original.HTTP - HTTPS ProtocolTypes = original.HTTPS + ProtocolTypesHTTP ProtocolTypes = original.ProtocolTypesHTTP + ProtocolTypesHTTPS ProtocolTypes = original.ProtocolTypesHTTPS ) type ProvisioningState = original.ProvisioningState @@ -401,8 +464,29 @@ const ( type ProximityPlacementGroupType = original.ProximityPlacementGroupType const ( - Standard ProximityPlacementGroupType = original.Standard - Ultra ProximityPlacementGroupType = original.Ultra + ProximityPlacementGroupTypeStandard ProximityPlacementGroupType = original.ProximityPlacementGroupTypeStandard + ProximityPlacementGroupTypeUltra ProximityPlacementGroupType = original.ProximityPlacementGroupTypeUltra +) + +type PublicIPAddressSkuName = original.PublicIPAddressSkuName + +const ( + PublicIPAddressSkuNameBasic PublicIPAddressSkuName = original.PublicIPAddressSkuNameBasic + PublicIPAddressSkuNameStandard PublicIPAddressSkuName = original.PublicIPAddressSkuNameStandard +) + +type PublicIPAddressSkuTier = original.PublicIPAddressSkuTier + +const ( + PublicIPAddressSkuTierGlobal PublicIPAddressSkuTier = original.PublicIPAddressSkuTierGlobal + PublicIPAddressSkuTierRegional PublicIPAddressSkuTier = original.PublicIPAddressSkuTierRegional +) + +type PublicIPAllocationMethod = original.PublicIPAllocationMethod + +const ( + PublicIPAllocationMethodDynamic PublicIPAllocationMethod = original.PublicIPAllocationMethodDynamic + PublicIPAllocationMethodStatic PublicIPAllocationMethod = original.PublicIPAllocationMethodStatic ) type ReplicationState = original.ReplicationState @@ -440,22 +524,28 @@ const ( type ResourceSkuRestrictionsReasonCode = original.ResourceSkuRestrictionsReasonCode const ( - NotAvailableForSubscription ResourceSkuRestrictionsReasonCode = original.NotAvailableForSubscription - QuotaID ResourceSkuRestrictionsReasonCode = original.QuotaID + ResourceSkuRestrictionsReasonCodeNotAvailableForSubscription ResourceSkuRestrictionsReasonCode = original.ResourceSkuRestrictionsReasonCodeNotAvailableForSubscription + ResourceSkuRestrictionsReasonCodeQuotaID ResourceSkuRestrictionsReasonCode = original.ResourceSkuRestrictionsReasonCodeQuotaID ) type ResourceSkuRestrictionsType = original.ResourceSkuRestrictionsType const ( - Location ResourceSkuRestrictionsType = original.Location - Zone ResourceSkuRestrictionsType = original.Zone + ResourceSkuRestrictionsTypeLocation ResourceSkuRestrictionsType = original.ResourceSkuRestrictionsTypeLocation + ResourceSkuRestrictionsTypeZone ResourceSkuRestrictionsType = original.ResourceSkuRestrictionsTypeZone +) + +type RestorePointCollectionExpandOptions = original.RestorePointCollectionExpandOptions + +const ( + RestorePointCollectionExpandOptionsRestorePoints RestorePointCollectionExpandOptions = original.RestorePointCollectionExpandOptionsRestorePoints ) type RollingUpgradeActionType = original.RollingUpgradeActionType const ( - Cancel RollingUpgradeActionType = original.Cancel - Start RollingUpgradeActionType = original.Start + RollingUpgradeActionTypeCancel RollingUpgradeActionType = original.RollingUpgradeActionTypeCancel + RollingUpgradeActionTypeStart RollingUpgradeActionType = original.RollingUpgradeActionTypeStart ) type RollingUpgradeStatusCode = original.RollingUpgradeStatusCode @@ -473,11 +563,38 @@ const ( SecurityTypesTrustedLaunch SecurityTypes = original.SecurityTypesTrustedLaunch ) +type SelectPermissions = original.SelectPermissions + +const ( + SelectPermissionsPermissions SelectPermissions = original.SelectPermissionsPermissions +) + type SettingNames = original.SettingNames const ( - AutoLogon SettingNames = original.AutoLogon - FirstLogonCommands SettingNames = original.FirstLogonCommands + SettingNamesAutoLogon SettingNames = original.SettingNamesAutoLogon + SettingNamesFirstLogonCommands SettingNames = original.SettingNamesFirstLogonCommands +) + +type SharedToValues = original.SharedToValues + +const ( + SharedToValuesTenant SharedToValues = original.SharedToValuesTenant +) + +type SharingProfileGroupTypes = original.SharingProfileGroupTypes + +const ( + SharingProfileGroupTypesAADTenants SharingProfileGroupTypes = original.SharingProfileGroupTypesAADTenants + SharingProfileGroupTypesSubscriptions SharingProfileGroupTypes = original.SharingProfileGroupTypesSubscriptions +) + +type SharingUpdateOperationTypes = original.SharingUpdateOperationTypes + +const ( + SharingUpdateOperationTypesAdd SharingUpdateOperationTypes = original.SharingUpdateOperationTypesAdd + SharingUpdateOperationTypesRemove SharingUpdateOperationTypes = original.SharingUpdateOperationTypesRemove + SharingUpdateOperationTypesReset SharingUpdateOperationTypes = original.SharingUpdateOperationTypesReset ) type SnapshotStorageAccountTypes = original.SnapshotStorageAccountTypes @@ -491,9 +608,9 @@ const ( type StatusLevelTypes = original.StatusLevelTypes const ( - Error StatusLevelTypes = original.Error - Info StatusLevelTypes = original.Info - Warning StatusLevelTypes = original.Warning + StatusLevelTypesError StatusLevelTypes = original.StatusLevelTypesError + StatusLevelTypesInfo StatusLevelTypes = original.StatusLevelTypesInfo + StatusLevelTypesWarning StatusLevelTypes = original.StatusLevelTypesWarning ) type StorageAccountType = original.StorageAccountType @@ -550,9 +667,9 @@ const ( type VMGuestPatchClassificationLinux = original.VMGuestPatchClassificationLinux const ( - Critical VMGuestPatchClassificationLinux = original.Critical - Other VMGuestPatchClassificationLinux = original.Other - Security VMGuestPatchClassificationLinux = original.Security + VMGuestPatchClassificationLinuxCritical VMGuestPatchClassificationLinux = original.VMGuestPatchClassificationLinuxCritical + VMGuestPatchClassificationLinuxOther VMGuestPatchClassificationLinux = original.VMGuestPatchClassificationLinuxOther + VMGuestPatchClassificationLinuxSecurity VMGuestPatchClassificationLinux = original.VMGuestPatchClassificationLinuxSecurity ) type VMGuestPatchClassificationWindows = original.VMGuestPatchClassificationWindows @@ -580,9 +697,9 @@ const ( type VMGuestPatchRebootSetting = original.VMGuestPatchRebootSetting const ( - Always VMGuestPatchRebootSetting = original.Always - IfRequired VMGuestPatchRebootSetting = original.IfRequired - Never VMGuestPatchRebootSetting = original.Never + VMGuestPatchRebootSettingAlways VMGuestPatchRebootSetting = original.VMGuestPatchRebootSettingAlways + VMGuestPatchRebootSettingIfRequired VMGuestPatchRebootSetting = original.VMGuestPatchRebootSettingIfRequired + VMGuestPatchRebootSettingNever VMGuestPatchRebootSetting = original.VMGuestPatchRebootSettingNever ) type VMGuestPatchRebootStatus = original.VMGuestPatchRebootStatus @@ -599,24 +716,24 @@ const ( type VirtualMachineEvictionPolicyTypes = original.VirtualMachineEvictionPolicyTypes const ( - Deallocate VirtualMachineEvictionPolicyTypes = original.Deallocate - Delete VirtualMachineEvictionPolicyTypes = original.Delete + VirtualMachineEvictionPolicyTypesDeallocate VirtualMachineEvictionPolicyTypes = original.VirtualMachineEvictionPolicyTypesDeallocate + VirtualMachineEvictionPolicyTypesDelete VirtualMachineEvictionPolicyTypes = original.VirtualMachineEvictionPolicyTypesDelete ) type VirtualMachinePriorityTypes = original.VirtualMachinePriorityTypes const ( - Low VirtualMachinePriorityTypes = original.Low - Regular VirtualMachinePriorityTypes = original.Regular - Spot VirtualMachinePriorityTypes = original.Spot + VirtualMachinePriorityTypesLow VirtualMachinePriorityTypes = original.VirtualMachinePriorityTypesLow + VirtualMachinePriorityTypesRegular VirtualMachinePriorityTypes = original.VirtualMachinePriorityTypesRegular + VirtualMachinePriorityTypesSpot VirtualMachinePriorityTypes = original.VirtualMachinePriorityTypesSpot ) type VirtualMachineScaleSetScaleInRules = original.VirtualMachineScaleSetScaleInRules const ( - Default VirtualMachineScaleSetScaleInRules = original.Default - NewestVM VirtualMachineScaleSetScaleInRules = original.NewestVM - OldestVM VirtualMachineScaleSetScaleInRules = original.OldestVM + VirtualMachineScaleSetScaleInRulesDefault VirtualMachineScaleSetScaleInRules = original.VirtualMachineScaleSetScaleInRulesDefault + VirtualMachineScaleSetScaleInRulesNewestVM VirtualMachineScaleSetScaleInRules = original.VirtualMachineScaleSetScaleInRulesNewestVM + VirtualMachineScaleSetScaleInRulesOldestVM VirtualMachineScaleSetScaleInRules = original.VirtualMachineScaleSetScaleInRulesOldestVM ) type VirtualMachineScaleSetSkuScaleType = original.VirtualMachineScaleSetSkuScaleType @@ -629,172 +746,179 @@ const ( type VirtualMachineSizeTypes = original.VirtualMachineSizeTypes const ( - BasicA0 VirtualMachineSizeTypes = original.BasicA0 - BasicA1 VirtualMachineSizeTypes = original.BasicA1 - BasicA2 VirtualMachineSizeTypes = original.BasicA2 - BasicA3 VirtualMachineSizeTypes = original.BasicA3 - BasicA4 VirtualMachineSizeTypes = original.BasicA4 - StandardA0 VirtualMachineSizeTypes = original.StandardA0 - StandardA1 VirtualMachineSizeTypes = original.StandardA1 - StandardA10 VirtualMachineSizeTypes = original.StandardA10 - StandardA11 VirtualMachineSizeTypes = original.StandardA11 - StandardA1V2 VirtualMachineSizeTypes = original.StandardA1V2 - StandardA2 VirtualMachineSizeTypes = original.StandardA2 - StandardA2mV2 VirtualMachineSizeTypes = original.StandardA2mV2 - StandardA2V2 VirtualMachineSizeTypes = original.StandardA2V2 - StandardA3 VirtualMachineSizeTypes = original.StandardA3 - StandardA4 VirtualMachineSizeTypes = original.StandardA4 - StandardA4mV2 VirtualMachineSizeTypes = original.StandardA4mV2 - StandardA4V2 VirtualMachineSizeTypes = original.StandardA4V2 - StandardA5 VirtualMachineSizeTypes = original.StandardA5 - StandardA6 VirtualMachineSizeTypes = original.StandardA6 - StandardA7 VirtualMachineSizeTypes = original.StandardA7 - StandardA8 VirtualMachineSizeTypes = original.StandardA8 - StandardA8mV2 VirtualMachineSizeTypes = original.StandardA8mV2 - StandardA8V2 VirtualMachineSizeTypes = original.StandardA8V2 - StandardA9 VirtualMachineSizeTypes = original.StandardA9 - StandardB1ms VirtualMachineSizeTypes = original.StandardB1ms - StandardB1s VirtualMachineSizeTypes = original.StandardB1s - StandardB2ms VirtualMachineSizeTypes = original.StandardB2ms - StandardB2s VirtualMachineSizeTypes = original.StandardB2s - StandardB4ms VirtualMachineSizeTypes = original.StandardB4ms - StandardB8ms VirtualMachineSizeTypes = original.StandardB8ms - StandardD1 VirtualMachineSizeTypes = original.StandardD1 - StandardD11 VirtualMachineSizeTypes = original.StandardD11 - StandardD11V2 VirtualMachineSizeTypes = original.StandardD11V2 - StandardD12 VirtualMachineSizeTypes = original.StandardD12 - StandardD12V2 VirtualMachineSizeTypes = original.StandardD12V2 - StandardD13 VirtualMachineSizeTypes = original.StandardD13 - StandardD13V2 VirtualMachineSizeTypes = original.StandardD13V2 - StandardD14 VirtualMachineSizeTypes = original.StandardD14 - StandardD14V2 VirtualMachineSizeTypes = original.StandardD14V2 - StandardD15V2 VirtualMachineSizeTypes = original.StandardD15V2 - StandardD16sV3 VirtualMachineSizeTypes = original.StandardD16sV3 - StandardD16V3 VirtualMachineSizeTypes = original.StandardD16V3 - StandardD1V2 VirtualMachineSizeTypes = original.StandardD1V2 - StandardD2 VirtualMachineSizeTypes = original.StandardD2 - StandardD2sV3 VirtualMachineSizeTypes = original.StandardD2sV3 - StandardD2V2 VirtualMachineSizeTypes = original.StandardD2V2 - StandardD2V3 VirtualMachineSizeTypes = original.StandardD2V3 - StandardD3 VirtualMachineSizeTypes = original.StandardD3 - StandardD32sV3 VirtualMachineSizeTypes = original.StandardD32sV3 - StandardD32V3 VirtualMachineSizeTypes = original.StandardD32V3 - StandardD3V2 VirtualMachineSizeTypes = original.StandardD3V2 - StandardD4 VirtualMachineSizeTypes = original.StandardD4 - StandardD4sV3 VirtualMachineSizeTypes = original.StandardD4sV3 - StandardD4V2 VirtualMachineSizeTypes = original.StandardD4V2 - StandardD4V3 VirtualMachineSizeTypes = original.StandardD4V3 - StandardD5V2 VirtualMachineSizeTypes = original.StandardD5V2 - StandardD64sV3 VirtualMachineSizeTypes = original.StandardD64sV3 - StandardD64V3 VirtualMachineSizeTypes = original.StandardD64V3 - StandardD8sV3 VirtualMachineSizeTypes = original.StandardD8sV3 - StandardD8V3 VirtualMachineSizeTypes = original.StandardD8V3 - StandardDS1 VirtualMachineSizeTypes = original.StandardDS1 - StandardDS11 VirtualMachineSizeTypes = original.StandardDS11 - StandardDS11V2 VirtualMachineSizeTypes = original.StandardDS11V2 - StandardDS12 VirtualMachineSizeTypes = original.StandardDS12 - StandardDS12V2 VirtualMachineSizeTypes = original.StandardDS12V2 - StandardDS13 VirtualMachineSizeTypes = original.StandardDS13 - StandardDS132V2 VirtualMachineSizeTypes = original.StandardDS132V2 - StandardDS134V2 VirtualMachineSizeTypes = original.StandardDS134V2 - StandardDS13V2 VirtualMachineSizeTypes = original.StandardDS13V2 - StandardDS14 VirtualMachineSizeTypes = original.StandardDS14 - StandardDS144V2 VirtualMachineSizeTypes = original.StandardDS144V2 - StandardDS148V2 VirtualMachineSizeTypes = original.StandardDS148V2 - StandardDS14V2 VirtualMachineSizeTypes = original.StandardDS14V2 - StandardDS15V2 VirtualMachineSizeTypes = original.StandardDS15V2 - StandardDS1V2 VirtualMachineSizeTypes = original.StandardDS1V2 - StandardDS2 VirtualMachineSizeTypes = original.StandardDS2 - StandardDS2V2 VirtualMachineSizeTypes = original.StandardDS2V2 - StandardDS3 VirtualMachineSizeTypes = original.StandardDS3 - StandardDS3V2 VirtualMachineSizeTypes = original.StandardDS3V2 - StandardDS4 VirtualMachineSizeTypes = original.StandardDS4 - StandardDS4V2 VirtualMachineSizeTypes = original.StandardDS4V2 - StandardDS5V2 VirtualMachineSizeTypes = original.StandardDS5V2 - StandardE16sV3 VirtualMachineSizeTypes = original.StandardE16sV3 - StandardE16V3 VirtualMachineSizeTypes = original.StandardE16V3 - StandardE2sV3 VirtualMachineSizeTypes = original.StandardE2sV3 - StandardE2V3 VirtualMachineSizeTypes = original.StandardE2V3 - StandardE3216V3 VirtualMachineSizeTypes = original.StandardE3216V3 - StandardE328sV3 VirtualMachineSizeTypes = original.StandardE328sV3 - StandardE32sV3 VirtualMachineSizeTypes = original.StandardE32sV3 - StandardE32V3 VirtualMachineSizeTypes = original.StandardE32V3 - StandardE4sV3 VirtualMachineSizeTypes = original.StandardE4sV3 - StandardE4V3 VirtualMachineSizeTypes = original.StandardE4V3 - StandardE6416sV3 VirtualMachineSizeTypes = original.StandardE6416sV3 - StandardE6432sV3 VirtualMachineSizeTypes = original.StandardE6432sV3 - StandardE64sV3 VirtualMachineSizeTypes = original.StandardE64sV3 - StandardE64V3 VirtualMachineSizeTypes = original.StandardE64V3 - StandardE8sV3 VirtualMachineSizeTypes = original.StandardE8sV3 - StandardE8V3 VirtualMachineSizeTypes = original.StandardE8V3 - StandardF1 VirtualMachineSizeTypes = original.StandardF1 - StandardF16 VirtualMachineSizeTypes = original.StandardF16 - StandardF16s VirtualMachineSizeTypes = original.StandardF16s - StandardF16sV2 VirtualMachineSizeTypes = original.StandardF16sV2 - StandardF1s VirtualMachineSizeTypes = original.StandardF1s - StandardF2 VirtualMachineSizeTypes = original.StandardF2 - StandardF2s VirtualMachineSizeTypes = original.StandardF2s - StandardF2sV2 VirtualMachineSizeTypes = original.StandardF2sV2 - StandardF32sV2 VirtualMachineSizeTypes = original.StandardF32sV2 - StandardF4 VirtualMachineSizeTypes = original.StandardF4 - StandardF4s VirtualMachineSizeTypes = original.StandardF4s - StandardF4sV2 VirtualMachineSizeTypes = original.StandardF4sV2 - StandardF64sV2 VirtualMachineSizeTypes = original.StandardF64sV2 - StandardF72sV2 VirtualMachineSizeTypes = original.StandardF72sV2 - StandardF8 VirtualMachineSizeTypes = original.StandardF8 - StandardF8s VirtualMachineSizeTypes = original.StandardF8s - StandardF8sV2 VirtualMachineSizeTypes = original.StandardF8sV2 - StandardG1 VirtualMachineSizeTypes = original.StandardG1 - StandardG2 VirtualMachineSizeTypes = original.StandardG2 - StandardG3 VirtualMachineSizeTypes = original.StandardG3 - StandardG4 VirtualMachineSizeTypes = original.StandardG4 - StandardG5 VirtualMachineSizeTypes = original.StandardG5 - StandardGS1 VirtualMachineSizeTypes = original.StandardGS1 - StandardGS2 VirtualMachineSizeTypes = original.StandardGS2 - StandardGS3 VirtualMachineSizeTypes = original.StandardGS3 - StandardGS4 VirtualMachineSizeTypes = original.StandardGS4 - StandardGS44 VirtualMachineSizeTypes = original.StandardGS44 - StandardGS48 VirtualMachineSizeTypes = original.StandardGS48 - StandardGS5 VirtualMachineSizeTypes = original.StandardGS5 - StandardGS516 VirtualMachineSizeTypes = original.StandardGS516 - StandardGS58 VirtualMachineSizeTypes = original.StandardGS58 - StandardH16 VirtualMachineSizeTypes = original.StandardH16 - StandardH16m VirtualMachineSizeTypes = original.StandardH16m - StandardH16mr VirtualMachineSizeTypes = original.StandardH16mr - StandardH16r VirtualMachineSizeTypes = original.StandardH16r - StandardH8 VirtualMachineSizeTypes = original.StandardH8 - StandardH8m VirtualMachineSizeTypes = original.StandardH8m - StandardL16s VirtualMachineSizeTypes = original.StandardL16s - StandardL32s VirtualMachineSizeTypes = original.StandardL32s - StandardL4s VirtualMachineSizeTypes = original.StandardL4s - StandardL8s VirtualMachineSizeTypes = original.StandardL8s - StandardM12832ms VirtualMachineSizeTypes = original.StandardM12832ms - StandardM12864ms VirtualMachineSizeTypes = original.StandardM12864ms - StandardM128ms VirtualMachineSizeTypes = original.StandardM128ms - StandardM128s VirtualMachineSizeTypes = original.StandardM128s - StandardM6416ms VirtualMachineSizeTypes = original.StandardM6416ms - StandardM6432ms VirtualMachineSizeTypes = original.StandardM6432ms - StandardM64ms VirtualMachineSizeTypes = original.StandardM64ms - StandardM64s VirtualMachineSizeTypes = original.StandardM64s - StandardNC12 VirtualMachineSizeTypes = original.StandardNC12 - StandardNC12sV2 VirtualMachineSizeTypes = original.StandardNC12sV2 - StandardNC12sV3 VirtualMachineSizeTypes = original.StandardNC12sV3 - StandardNC24 VirtualMachineSizeTypes = original.StandardNC24 - StandardNC24r VirtualMachineSizeTypes = original.StandardNC24r - StandardNC24rsV2 VirtualMachineSizeTypes = original.StandardNC24rsV2 - StandardNC24rsV3 VirtualMachineSizeTypes = original.StandardNC24rsV3 - StandardNC24sV2 VirtualMachineSizeTypes = original.StandardNC24sV2 - StandardNC24sV3 VirtualMachineSizeTypes = original.StandardNC24sV3 - StandardNC6 VirtualMachineSizeTypes = original.StandardNC6 - StandardNC6sV2 VirtualMachineSizeTypes = original.StandardNC6sV2 - StandardNC6sV3 VirtualMachineSizeTypes = original.StandardNC6sV3 - StandardND12s VirtualMachineSizeTypes = original.StandardND12s - StandardND24rs VirtualMachineSizeTypes = original.StandardND24rs - StandardND24s VirtualMachineSizeTypes = original.StandardND24s - StandardND6s VirtualMachineSizeTypes = original.StandardND6s - StandardNV12 VirtualMachineSizeTypes = original.StandardNV12 - StandardNV24 VirtualMachineSizeTypes = original.StandardNV24 - StandardNV6 VirtualMachineSizeTypes = original.StandardNV6 + VirtualMachineSizeTypesBasicA0 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesBasicA0 + VirtualMachineSizeTypesBasicA1 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesBasicA1 + VirtualMachineSizeTypesBasicA2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesBasicA2 + VirtualMachineSizeTypesBasicA3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesBasicA3 + VirtualMachineSizeTypesBasicA4 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesBasicA4 + VirtualMachineSizeTypesStandardA0 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardA0 + VirtualMachineSizeTypesStandardA1 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardA1 + VirtualMachineSizeTypesStandardA10 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardA10 + VirtualMachineSizeTypesStandardA11 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardA11 + VirtualMachineSizeTypesStandardA1V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardA1V2 + VirtualMachineSizeTypesStandardA2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardA2 + VirtualMachineSizeTypesStandardA2mV2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardA2mV2 + VirtualMachineSizeTypesStandardA2V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardA2V2 + VirtualMachineSizeTypesStandardA3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardA3 + VirtualMachineSizeTypesStandardA4 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardA4 + VirtualMachineSizeTypesStandardA4mV2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardA4mV2 + VirtualMachineSizeTypesStandardA4V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardA4V2 + VirtualMachineSizeTypesStandardA5 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardA5 + VirtualMachineSizeTypesStandardA6 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardA6 + VirtualMachineSizeTypesStandardA7 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardA7 + VirtualMachineSizeTypesStandardA8 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardA8 + VirtualMachineSizeTypesStandardA8mV2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardA8mV2 + VirtualMachineSizeTypesStandardA8V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardA8V2 + VirtualMachineSizeTypesStandardA9 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardA9 + VirtualMachineSizeTypesStandardB1ms VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardB1ms + VirtualMachineSizeTypesStandardB1s VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardB1s + VirtualMachineSizeTypesStandardB2ms VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardB2ms + VirtualMachineSizeTypesStandardB2s VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardB2s + VirtualMachineSizeTypesStandardB4ms VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardB4ms + VirtualMachineSizeTypesStandardB8ms VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardB8ms + VirtualMachineSizeTypesStandardD1 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD1 + VirtualMachineSizeTypesStandardD11 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD11 + VirtualMachineSizeTypesStandardD11V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD11V2 + VirtualMachineSizeTypesStandardD12 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD12 + VirtualMachineSizeTypesStandardD12V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD12V2 + VirtualMachineSizeTypesStandardD13 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD13 + VirtualMachineSizeTypesStandardD13V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD13V2 + VirtualMachineSizeTypesStandardD14 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD14 + VirtualMachineSizeTypesStandardD14V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD14V2 + VirtualMachineSizeTypesStandardD15V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD15V2 + VirtualMachineSizeTypesStandardD16sV3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD16sV3 + VirtualMachineSizeTypesStandardD16V3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD16V3 + VirtualMachineSizeTypesStandardD1V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD1V2 + VirtualMachineSizeTypesStandardD2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD2 + VirtualMachineSizeTypesStandardD2sV3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD2sV3 + VirtualMachineSizeTypesStandardD2V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD2V2 + VirtualMachineSizeTypesStandardD2V3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD2V3 + VirtualMachineSizeTypesStandardD3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD3 + VirtualMachineSizeTypesStandardD32sV3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD32sV3 + VirtualMachineSizeTypesStandardD32V3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD32V3 + VirtualMachineSizeTypesStandardD3V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD3V2 + VirtualMachineSizeTypesStandardD4 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD4 + VirtualMachineSizeTypesStandardD4sV3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD4sV3 + VirtualMachineSizeTypesStandardD4V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD4V2 + VirtualMachineSizeTypesStandardD4V3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD4V3 + VirtualMachineSizeTypesStandardD5V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD5V2 + VirtualMachineSizeTypesStandardD64sV3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD64sV3 + VirtualMachineSizeTypesStandardD64V3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD64V3 + VirtualMachineSizeTypesStandardD8sV3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD8sV3 + VirtualMachineSizeTypesStandardD8V3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardD8V3 + VirtualMachineSizeTypesStandardDS1 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS1 + VirtualMachineSizeTypesStandardDS11 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS11 + VirtualMachineSizeTypesStandardDS11V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS11V2 + VirtualMachineSizeTypesStandardDS12 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS12 + VirtualMachineSizeTypesStandardDS12V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS12V2 + VirtualMachineSizeTypesStandardDS13 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS13 + VirtualMachineSizeTypesStandardDS132V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS132V2 + VirtualMachineSizeTypesStandardDS134V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS134V2 + VirtualMachineSizeTypesStandardDS13V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS13V2 + VirtualMachineSizeTypesStandardDS14 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS14 + VirtualMachineSizeTypesStandardDS144V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS144V2 + VirtualMachineSizeTypesStandardDS148V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS148V2 + VirtualMachineSizeTypesStandardDS14V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS14V2 + VirtualMachineSizeTypesStandardDS15V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS15V2 + VirtualMachineSizeTypesStandardDS1V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS1V2 + VirtualMachineSizeTypesStandardDS2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS2 + VirtualMachineSizeTypesStandardDS2V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS2V2 + VirtualMachineSizeTypesStandardDS3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS3 + VirtualMachineSizeTypesStandardDS3V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS3V2 + VirtualMachineSizeTypesStandardDS4 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS4 + VirtualMachineSizeTypesStandardDS4V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS4V2 + VirtualMachineSizeTypesStandardDS5V2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardDS5V2 + VirtualMachineSizeTypesStandardE16sV3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardE16sV3 + VirtualMachineSizeTypesStandardE16V3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardE16V3 + VirtualMachineSizeTypesStandardE2sV3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardE2sV3 + VirtualMachineSizeTypesStandardE2V3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardE2V3 + VirtualMachineSizeTypesStandardE3216V3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardE3216V3 + VirtualMachineSizeTypesStandardE328sV3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardE328sV3 + VirtualMachineSizeTypesStandardE32sV3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardE32sV3 + VirtualMachineSizeTypesStandardE32V3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardE32V3 + VirtualMachineSizeTypesStandardE4sV3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardE4sV3 + VirtualMachineSizeTypesStandardE4V3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardE4V3 + VirtualMachineSizeTypesStandardE6416sV3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardE6416sV3 + VirtualMachineSizeTypesStandardE6432sV3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardE6432sV3 + VirtualMachineSizeTypesStandardE64sV3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardE64sV3 + VirtualMachineSizeTypesStandardE64V3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardE64V3 + VirtualMachineSizeTypesStandardE8sV3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardE8sV3 + VirtualMachineSizeTypesStandardE8V3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardE8V3 + VirtualMachineSizeTypesStandardF1 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardF1 + VirtualMachineSizeTypesStandardF16 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardF16 + VirtualMachineSizeTypesStandardF16s VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardF16s + VirtualMachineSizeTypesStandardF16sV2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardF16sV2 + VirtualMachineSizeTypesStandardF1s VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardF1s + VirtualMachineSizeTypesStandardF2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardF2 + VirtualMachineSizeTypesStandardF2s VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardF2s + VirtualMachineSizeTypesStandardF2sV2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardF2sV2 + VirtualMachineSizeTypesStandardF32sV2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardF32sV2 + VirtualMachineSizeTypesStandardF4 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardF4 + VirtualMachineSizeTypesStandardF4s VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardF4s + VirtualMachineSizeTypesStandardF4sV2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardF4sV2 + VirtualMachineSizeTypesStandardF64sV2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardF64sV2 + VirtualMachineSizeTypesStandardF72sV2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardF72sV2 + VirtualMachineSizeTypesStandardF8 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardF8 + VirtualMachineSizeTypesStandardF8s VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardF8s + VirtualMachineSizeTypesStandardF8sV2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardF8sV2 + VirtualMachineSizeTypesStandardG1 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardG1 + VirtualMachineSizeTypesStandardG2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardG2 + VirtualMachineSizeTypesStandardG3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardG3 + VirtualMachineSizeTypesStandardG4 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardG4 + VirtualMachineSizeTypesStandardG5 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardG5 + VirtualMachineSizeTypesStandardGS1 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardGS1 + VirtualMachineSizeTypesStandardGS2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardGS2 + VirtualMachineSizeTypesStandardGS3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardGS3 + VirtualMachineSizeTypesStandardGS4 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardGS4 + VirtualMachineSizeTypesStandardGS44 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardGS44 + VirtualMachineSizeTypesStandardGS48 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardGS48 + VirtualMachineSizeTypesStandardGS5 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardGS5 + VirtualMachineSizeTypesStandardGS516 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardGS516 + VirtualMachineSizeTypesStandardGS58 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardGS58 + VirtualMachineSizeTypesStandardH16 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardH16 + VirtualMachineSizeTypesStandardH16m VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardH16m + VirtualMachineSizeTypesStandardH16mr VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardH16mr + VirtualMachineSizeTypesStandardH16r VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardH16r + VirtualMachineSizeTypesStandardH8 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardH8 + VirtualMachineSizeTypesStandardH8m VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardH8m + VirtualMachineSizeTypesStandardL16s VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardL16s + VirtualMachineSizeTypesStandardL32s VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardL32s + VirtualMachineSizeTypesStandardL4s VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardL4s + VirtualMachineSizeTypesStandardL8s VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardL8s + VirtualMachineSizeTypesStandardM12832ms VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardM12832ms + VirtualMachineSizeTypesStandardM12864ms VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardM12864ms + VirtualMachineSizeTypesStandardM128ms VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardM128ms + VirtualMachineSizeTypesStandardM128s VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardM128s + VirtualMachineSizeTypesStandardM6416ms VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardM6416ms + VirtualMachineSizeTypesStandardM6432ms VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardM6432ms + VirtualMachineSizeTypesStandardM64ms VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardM64ms + VirtualMachineSizeTypesStandardM64s VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardM64s + VirtualMachineSizeTypesStandardNC12 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardNC12 + VirtualMachineSizeTypesStandardNC12sV2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardNC12sV2 + VirtualMachineSizeTypesStandardNC12sV3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardNC12sV3 + VirtualMachineSizeTypesStandardNC24 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardNC24 + VirtualMachineSizeTypesStandardNC24r VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardNC24r + VirtualMachineSizeTypesStandardNC24rsV2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardNC24rsV2 + VirtualMachineSizeTypesStandardNC24rsV3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardNC24rsV3 + VirtualMachineSizeTypesStandardNC24sV2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardNC24sV2 + VirtualMachineSizeTypesStandardNC24sV3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardNC24sV3 + VirtualMachineSizeTypesStandardNC6 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardNC6 + VirtualMachineSizeTypesStandardNC6sV2 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardNC6sV2 + VirtualMachineSizeTypesStandardNC6sV3 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardNC6sV3 + VirtualMachineSizeTypesStandardND12s VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardND12s + VirtualMachineSizeTypesStandardND24rs VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardND24rs + VirtualMachineSizeTypesStandardND24s VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardND24s + VirtualMachineSizeTypesStandardND6s VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardND6s + VirtualMachineSizeTypesStandardNV12 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardNV12 + VirtualMachineSizeTypesStandardNV24 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardNV24 + VirtualMachineSizeTypesStandardNV6 VirtualMachineSizeTypes = original.VirtualMachineSizeTypesStandardNV6 +) + +type WindowsPatchAssessmentMode = original.WindowsPatchAssessmentMode + +const ( + WindowsPatchAssessmentModeAutomaticByPlatform WindowsPatchAssessmentMode = original.WindowsPatchAssessmentModeAutomaticByPlatform + WindowsPatchAssessmentModeImageDefault WindowsPatchAssessmentMode = original.WindowsPatchAssessmentModeImageDefault ) type WindowsVMGuestPatchMode = original.WindowsVMGuestPatchMode @@ -986,6 +1110,7 @@ type GalleryDataDiskImage = original.GalleryDataDiskImage type GalleryDiskImage = original.GalleryDiskImage type GalleryIdentifier = original.GalleryIdentifier type GalleryImage = original.GalleryImage +type GalleryImageFeature = original.GalleryImageFeature type GalleryImageIdentifier = original.GalleryImageIdentifier type GalleryImageList = original.GalleryImageList type GalleryImageListIterator = original.GalleryImageListIterator @@ -1013,6 +1138,8 @@ type GalleryListIterator = original.GalleryListIterator type GalleryListPage = original.GalleryListPage type GalleryOSDiskImage = original.GalleryOSDiskImage type GalleryProperties = original.GalleryProperties +type GallerySharingProfileClient = original.GallerySharingProfileClient +type GallerySharingProfileUpdateFuture = original.GallerySharingProfileUpdateFuture type GalleryUpdate = original.GalleryUpdate type GrantAccessData = original.GrantAccessData type HardwareProfile = original.HardwareProfile @@ -1090,6 +1217,8 @@ type OrchestrationServiceStateInput = original.OrchestrationServiceStateInput type OrchestrationServiceSummary = original.OrchestrationServiceSummary type PatchInstallationDetail = original.PatchInstallationDetail type PatchSettings = original.PatchSettings +type PirResource = original.PirResource +type PirSharedGalleryResource = original.PirSharedGalleryResource type Plan = original.Plan type PrivateEndpoint = original.PrivateEndpoint type PrivateEndpointConnection = original.PrivateEndpointConnection @@ -1110,6 +1239,8 @@ type ProximityPlacementGroupProperties = original.ProximityPlacementGroupPropert type ProximityPlacementGroupUpdate = original.ProximityPlacementGroupUpdate type ProximityPlacementGroupsClient = original.ProximityPlacementGroupsClient type ProxyOnlyResource = original.ProxyOnlyResource +type ProxyResource = original.ProxyResource +type PublicIPAddressSku = original.PublicIPAddressSku type PurchasePlan = original.PurchasePlan type ReadCloser = original.ReadCloser type RecommendedMachineConfiguration = original.RecommendedMachineConfiguration @@ -1135,6 +1266,24 @@ type ResourceSkusResultPage = original.ResourceSkusResultPage type ResourceURIList = original.ResourceURIList type ResourceURIListIterator = original.ResourceURIListIterator type ResourceURIListPage = original.ResourceURIListPage +type RestorePoint = original.RestorePoint +type RestorePointCollection = original.RestorePointCollection +type RestorePointCollectionListResult = original.RestorePointCollectionListResult +type RestorePointCollectionListResultIterator = original.RestorePointCollectionListResultIterator +type RestorePointCollectionListResultPage = original.RestorePointCollectionListResultPage +type RestorePointCollectionProperties = original.RestorePointCollectionProperties +type RestorePointCollectionSourceProperties = original.RestorePointCollectionSourceProperties +type RestorePointCollectionUpdate = original.RestorePointCollectionUpdate +type RestorePointCollectionsClient = original.RestorePointCollectionsClient +type RestorePointCollectionsDeleteFuture = original.RestorePointCollectionsDeleteFuture +type RestorePointProvisioningDetails = original.RestorePointProvisioningDetails +type RestorePointSourceMetadata = original.RestorePointSourceMetadata +type RestorePointSourceVMDataDisk = original.RestorePointSourceVMDataDisk +type RestorePointSourceVMOSDisk = original.RestorePointSourceVMOSDisk +type RestorePointSourceVMStorageProfile = original.RestorePointSourceVMStorageProfile +type RestorePointsClient = original.RestorePointsClient +type RestorePointsCreateFuture = original.RestorePointsCreateFuture +type RestorePointsDeleteFuture = original.RestorePointsDeleteFuture type RetrieveBootDiagnosticsDataResult = original.RetrieveBootDiagnosticsDataResult type RoleInstance = original.RoleInstance type RoleInstanceInstanceView = original.RoleInstanceInstanceView @@ -1173,6 +1322,27 @@ type ScaleInPolicy = original.ScaleInPolicy type ScheduledEventsProfile = original.ScheduledEventsProfile type SecurityProfile = original.SecurityProfile type ShareInfoElement = original.ShareInfoElement +type SharedGalleriesClient = original.SharedGalleriesClient +type SharedGallery = original.SharedGallery +type SharedGalleryIdentifier = original.SharedGalleryIdentifier +type SharedGalleryImage = original.SharedGalleryImage +type SharedGalleryImageList = original.SharedGalleryImageList +type SharedGalleryImageListIterator = original.SharedGalleryImageListIterator +type SharedGalleryImageListPage = original.SharedGalleryImageListPage +type SharedGalleryImageProperties = original.SharedGalleryImageProperties +type SharedGalleryImageVersion = original.SharedGalleryImageVersion +type SharedGalleryImageVersionList = original.SharedGalleryImageVersionList +type SharedGalleryImageVersionListIterator = original.SharedGalleryImageVersionListIterator +type SharedGalleryImageVersionListPage = original.SharedGalleryImageVersionListPage +type SharedGalleryImageVersionProperties = original.SharedGalleryImageVersionProperties +type SharedGalleryImageVersionsClient = original.SharedGalleryImageVersionsClient +type SharedGalleryImagesClient = original.SharedGalleryImagesClient +type SharedGalleryList = original.SharedGalleryList +type SharedGalleryListIterator = original.SharedGalleryListIterator +type SharedGalleryListPage = original.SharedGalleryListPage +type SharingProfile = original.SharingProfile +type SharingProfileGroup = original.SharingProfileGroup +type SharingUpdate = original.SharingUpdate type Sku = original.Sku type Snapshot = original.Snapshot type SnapshotList = original.SnapshotList @@ -1237,6 +1407,7 @@ type VirtualMachineExtensionsDeleteFuture = original.VirtualMachineExtensionsDel type VirtualMachineExtensionsListResult = original.VirtualMachineExtensionsListResult type VirtualMachineExtensionsUpdateFuture = original.VirtualMachineExtensionsUpdateFuture type VirtualMachineHealthStatus = original.VirtualMachineHealthStatus +type VirtualMachineIPTag = original.VirtualMachineIPTag type VirtualMachineIdentity = original.VirtualMachineIdentity type VirtualMachineIdentityUserAssignedIdentitiesValue = original.VirtualMachineIdentityUserAssignedIdentitiesValue type VirtualMachineImage = original.VirtualMachineImage @@ -1251,8 +1422,16 @@ type VirtualMachineInstanceView = original.VirtualMachineInstanceView type VirtualMachineListResult = original.VirtualMachineListResult type VirtualMachineListResultIterator = original.VirtualMachineListResultIterator type VirtualMachineListResultPage = original.VirtualMachineListResultPage +type VirtualMachineNetworkInterfaceConfiguration = original.VirtualMachineNetworkInterfaceConfiguration +type VirtualMachineNetworkInterfaceConfigurationProperties = original.VirtualMachineNetworkInterfaceConfigurationProperties +type VirtualMachineNetworkInterfaceDNSSettingsConfiguration = original.VirtualMachineNetworkInterfaceDNSSettingsConfiguration +type VirtualMachineNetworkInterfaceIPConfiguration = original.VirtualMachineNetworkInterfaceIPConfiguration +type VirtualMachineNetworkInterfaceIPConfigurationProperties = original.VirtualMachineNetworkInterfaceIPConfigurationProperties type VirtualMachinePatchStatus = original.VirtualMachinePatchStatus type VirtualMachineProperties = original.VirtualMachineProperties +type VirtualMachinePublicIPAddressConfiguration = original.VirtualMachinePublicIPAddressConfiguration +type VirtualMachinePublicIPAddressConfigurationProperties = original.VirtualMachinePublicIPAddressConfigurationProperties +type VirtualMachinePublicIPAddressDNSSettingsConfiguration = original.VirtualMachinePublicIPAddressDNSSettingsConfiguration type VirtualMachineReimageParameters = original.VirtualMachineReimageParameters type VirtualMachineRunCommand = original.VirtualMachineRunCommand type VirtualMachineRunCommandInstanceView = original.VirtualMachineRunCommandInstanceView @@ -1598,6 +1777,12 @@ func NewGalleryListIterator(page GalleryListPage) GalleryListIterator { func NewGalleryListPage(cur GalleryList, getNextPage func(context.Context, GalleryList) (GalleryList, error)) GalleryListPage { return original.NewGalleryListPage(cur, getNextPage) } +func NewGallerySharingProfileClient(subscriptionID string) GallerySharingProfileClient { + return original.NewGallerySharingProfileClient(subscriptionID) +} +func NewGallerySharingProfileClientWithBaseURI(baseURI string, subscriptionID string) GallerySharingProfileClient { + return original.NewGallerySharingProfileClientWithBaseURI(baseURI, subscriptionID) +} func NewImageListResultIterator(page ImageListResultPage) ImageListResultIterator { return original.NewImageListResultIterator(page) } @@ -1676,6 +1861,24 @@ func NewResourceURIListIterator(page ResourceURIListPage) ResourceURIListIterato func NewResourceURIListPage(cur ResourceURIList, getNextPage func(context.Context, ResourceURIList) (ResourceURIList, error)) ResourceURIListPage { return original.NewResourceURIListPage(cur, getNextPage) } +func NewRestorePointCollectionListResultIterator(page RestorePointCollectionListResultPage) RestorePointCollectionListResultIterator { + return original.NewRestorePointCollectionListResultIterator(page) +} +func NewRestorePointCollectionListResultPage(cur RestorePointCollectionListResult, getNextPage func(context.Context, RestorePointCollectionListResult) (RestorePointCollectionListResult, error)) RestorePointCollectionListResultPage { + return original.NewRestorePointCollectionListResultPage(cur, getNextPage) +} +func NewRestorePointCollectionsClient(subscriptionID string) RestorePointCollectionsClient { + return original.NewRestorePointCollectionsClient(subscriptionID) +} +func NewRestorePointCollectionsClientWithBaseURI(baseURI string, subscriptionID string) RestorePointCollectionsClient { + return original.NewRestorePointCollectionsClientWithBaseURI(baseURI, subscriptionID) +} +func NewRestorePointsClient(subscriptionID string) RestorePointsClient { + return original.NewRestorePointsClient(subscriptionID) +} +func NewRestorePointsClientWithBaseURI(baseURI string, subscriptionID string) RestorePointsClient { + return original.NewRestorePointsClientWithBaseURI(baseURI, subscriptionID) +} func NewRoleInstanceListResultIterator(page RoleInstanceListResultPage) RoleInstanceListResultIterator { return original.NewRoleInstanceListResultIterator(page) } @@ -1700,6 +1903,42 @@ func NewSSHPublicKeysGroupListResultIterator(page SSHPublicKeysGroupListResultPa func NewSSHPublicKeysGroupListResultPage(cur SSHPublicKeysGroupListResult, getNextPage func(context.Context, SSHPublicKeysGroupListResult) (SSHPublicKeysGroupListResult, error)) SSHPublicKeysGroupListResultPage { return original.NewSSHPublicKeysGroupListResultPage(cur, getNextPage) } +func NewSharedGalleriesClient(subscriptionID string) SharedGalleriesClient { + return original.NewSharedGalleriesClient(subscriptionID) +} +func NewSharedGalleriesClientWithBaseURI(baseURI string, subscriptionID string) SharedGalleriesClient { + return original.NewSharedGalleriesClientWithBaseURI(baseURI, subscriptionID) +} +func NewSharedGalleryImageListIterator(page SharedGalleryImageListPage) SharedGalleryImageListIterator { + return original.NewSharedGalleryImageListIterator(page) +} +func NewSharedGalleryImageListPage(cur SharedGalleryImageList, getNextPage func(context.Context, SharedGalleryImageList) (SharedGalleryImageList, error)) SharedGalleryImageListPage { + return original.NewSharedGalleryImageListPage(cur, getNextPage) +} +func NewSharedGalleryImageVersionListIterator(page SharedGalleryImageVersionListPage) SharedGalleryImageVersionListIterator { + return original.NewSharedGalleryImageVersionListIterator(page) +} +func NewSharedGalleryImageVersionListPage(cur SharedGalleryImageVersionList, getNextPage func(context.Context, SharedGalleryImageVersionList) (SharedGalleryImageVersionList, error)) SharedGalleryImageVersionListPage { + return original.NewSharedGalleryImageVersionListPage(cur, getNextPage) +} +func NewSharedGalleryImageVersionsClient(subscriptionID string) SharedGalleryImageVersionsClient { + return original.NewSharedGalleryImageVersionsClient(subscriptionID) +} +func NewSharedGalleryImageVersionsClientWithBaseURI(baseURI string, subscriptionID string) SharedGalleryImageVersionsClient { + return original.NewSharedGalleryImageVersionsClientWithBaseURI(baseURI, subscriptionID) +} +func NewSharedGalleryImagesClient(subscriptionID string) SharedGalleryImagesClient { + return original.NewSharedGalleryImagesClient(subscriptionID) +} +func NewSharedGalleryImagesClientWithBaseURI(baseURI string, subscriptionID string) SharedGalleryImagesClient { + return original.NewSharedGalleryImagesClientWithBaseURI(baseURI, subscriptionID) +} +func NewSharedGalleryListIterator(page SharedGalleryListPage) SharedGalleryListIterator { + return original.NewSharedGalleryListIterator(page) +} +func NewSharedGalleryListPage(cur SharedGalleryList, getNextPage func(context.Context, SharedGalleryList) (SharedGalleryList, error)) SharedGalleryListPage { + return original.NewSharedGalleryListPage(cur, getNextPage) +} func NewSnapshotListIterator(page SnapshotListPage) SnapshotListIterator { return original.NewSnapshotListIterator(page) } @@ -1871,9 +2110,15 @@ func PossibleCloudServiceUpgradeModeValues() []CloudServiceUpgradeMode { func PossibleComponentNamesValues() []ComponentNames { return original.PossibleComponentNamesValues() } +func PossibleConsistencyModeTypesValues() []ConsistencyModeTypes { + return original.PossibleConsistencyModeTypesValues() +} func PossibleDedicatedHostLicenseTypesValues() []DedicatedHostLicenseTypes { return original.PossibleDedicatedHostLicenseTypesValues() } +func PossibleDeleteOptionsValues() []DeleteOptions { + return original.PossibleDeleteOptionsValues() +} func PossibleDiffDiskOptionsValues() []DiffDiskOptions { return original.PossibleDiffDiskOptionsValues() } @@ -1886,6 +2131,9 @@ func PossibleDiskCreateOptionTypesValues() []DiskCreateOptionTypes { func PossibleDiskCreateOptionValues() []DiskCreateOption { return original.PossibleDiskCreateOptionValues() } +func PossibleDiskDeleteOptionTypesValues() []DiskDeleteOptionTypes { + return original.PossibleDiskDeleteOptionTypesValues() +} func PossibleDiskDetachOptionTypesValues() []DiskDetachOptionTypes { return original.PossibleDiskDetachOptionTypesValues() } @@ -1910,9 +2158,15 @@ func PossibleEncryptionTypeValues() []EncryptionType { func PossibleExecutionStateValues() []ExecutionState { return original.PossibleExecutionStateValues() } +func PossibleExpandTypesForGetVMScaleSetsValues() []ExpandTypesForGetVMScaleSets { + return original.PossibleExpandTypesForGetVMScaleSetsValues() +} func PossibleExtendedLocationTypesValues() []ExtendedLocationTypes { return original.PossibleExtendedLocationTypesValues() } +func PossibleGallerySharingPermissionTypesValues() []GallerySharingPermissionTypes { + return original.PossibleGallerySharingPermissionTypesValues() +} func PossibleHostCachingValues() []HostCaching { return original.PossibleHostCachingValues() } @@ -1928,24 +2182,36 @@ func PossibleHyperVGenerationValues() []HyperVGeneration { func PossibleIPVersionValues() []IPVersion { return original.PossibleIPVersionValues() } +func PossibleIPVersionsValues() []IPVersions { + return original.PossibleIPVersionsValues() +} func PossibleInstanceViewTypesValues() []InstanceViewTypes { return original.PossibleInstanceViewTypesValues() } func PossibleIntervalInMinsValues() []IntervalInMins { return original.PossibleIntervalInMinsValues() } +func PossibleLinuxPatchAssessmentModeValues() []LinuxPatchAssessmentMode { + return original.PossibleLinuxPatchAssessmentModeValues() +} func PossibleLinuxVMGuestPatchModeValues() []LinuxVMGuestPatchMode { return original.PossibleLinuxVMGuestPatchModeValues() } func PossibleMaintenanceOperationResultCodeTypesValues() []MaintenanceOperationResultCodeTypes { return original.PossibleMaintenanceOperationResultCodeTypesValues() } +func PossibleNetworkAPIVersionValues() []NetworkAPIVersion { + return original.PossibleNetworkAPIVersionValues() +} func PossibleNetworkAccessPolicyValues() []NetworkAccessPolicy { return original.PossibleNetworkAccessPolicyValues() } func PossibleOperatingSystemStateTypesValues() []OperatingSystemStateTypes { return original.PossibleOperatingSystemStateTypesValues() } +func PossibleOperatingSystemTypeValues() []OperatingSystemType { + return original.PossibleOperatingSystemTypeValues() +} func PossibleOperatingSystemTypesValues() []OperatingSystemTypes { return original.PossibleOperatingSystemTypesValues() } @@ -1997,6 +2263,15 @@ func PossibleProvisioningStateValues() []ProvisioningState { func PossibleProximityPlacementGroupTypeValues() []ProximityPlacementGroupType { return original.PossibleProximityPlacementGroupTypeValues() } +func PossiblePublicIPAddressSkuNameValues() []PublicIPAddressSkuName { + return original.PossiblePublicIPAddressSkuNameValues() +} +func PossiblePublicIPAddressSkuTierValues() []PublicIPAddressSkuTier { + return original.PossiblePublicIPAddressSkuTierValues() +} +func PossiblePublicIPAllocationMethodValues() []PublicIPAllocationMethod { + return original.PossiblePublicIPAllocationMethodValues() +} func PossibleReplicationStateValues() []ReplicationState { return original.PossibleReplicationStateValues() } @@ -2015,6 +2290,9 @@ func PossibleResourceSkuRestrictionsReasonCodeValues() []ResourceSkuRestrictions func PossibleResourceSkuRestrictionsTypeValues() []ResourceSkuRestrictionsType { return original.PossibleResourceSkuRestrictionsTypeValues() } +func PossibleRestorePointCollectionExpandOptionsValues() []RestorePointCollectionExpandOptions { + return original.PossibleRestorePointCollectionExpandOptionsValues() +} func PossibleRollingUpgradeActionTypeValues() []RollingUpgradeActionType { return original.PossibleRollingUpgradeActionTypeValues() } @@ -2024,9 +2302,21 @@ func PossibleRollingUpgradeStatusCodeValues() []RollingUpgradeStatusCode { func PossibleSecurityTypesValues() []SecurityTypes { return original.PossibleSecurityTypesValues() } +func PossibleSelectPermissionsValues() []SelectPermissions { + return original.PossibleSelectPermissionsValues() +} func PossibleSettingNamesValues() []SettingNames { return original.PossibleSettingNamesValues() } +func PossibleSharedToValuesValues() []SharedToValues { + return original.PossibleSharedToValuesValues() +} +func PossibleSharingProfileGroupTypesValues() []SharingProfileGroupTypes { + return original.PossibleSharingProfileGroupTypesValues() +} +func PossibleSharingUpdateOperationTypesValues() []SharingUpdateOperationTypes { + return original.PossibleSharingUpdateOperationTypesValues() +} func PossibleSnapshotStorageAccountTypesValues() []SnapshotStorageAccountTypes { return original.PossibleSnapshotStorageAccountTypesValues() } @@ -2081,6 +2371,9 @@ func PossibleVirtualMachineScaleSetSkuScaleTypeValues() []VirtualMachineScaleSet func PossibleVirtualMachineSizeTypesValues() []VirtualMachineSizeTypes { return original.PossibleVirtualMachineSizeTypesValues() } +func PossibleWindowsPatchAssessmentModeValues() []WindowsPatchAssessmentMode { + return original.PossibleWindowsPatchAssessmentModeValues() +} func PossibleWindowsVMGuestPatchModeValues() []WindowsVMGuestPatchMode { return original.PossibleWindowsVMGuestPatchModeValues() } diff --git a/profiles/preview/datadog/mgmt/datadog/models.go b/profiles/preview/datadog/mgmt/datadog/models.go index b35c5865d4c4..5bcddf902870 100644 --- a/profiles/preview/datadog/mgmt/datadog/models.go +++ b/profiles/preview/datadog/mgmt/datadog/models.go @@ -21,70 +21,70 @@ const ( type CreatedByType = original.CreatedByType const ( - Application CreatedByType = original.Application - Key CreatedByType = original.Key - ManagedIdentity CreatedByType = original.ManagedIdentity - User CreatedByType = original.User + CreatedByTypeApplication CreatedByType = original.CreatedByTypeApplication + CreatedByTypeKey CreatedByType = original.CreatedByTypeKey + CreatedByTypeManagedIdentity CreatedByType = original.CreatedByTypeManagedIdentity + CreatedByTypeUser CreatedByType = original.CreatedByTypeUser ) type LiftrResourceCategories = original.LiftrResourceCategories const ( - MonitorLogs LiftrResourceCategories = original.MonitorLogs - Unknown LiftrResourceCategories = original.Unknown + LiftrResourceCategoriesMonitorLogs LiftrResourceCategories = original.LiftrResourceCategoriesMonitorLogs + LiftrResourceCategoriesUnknown LiftrResourceCategories = original.LiftrResourceCategoriesUnknown ) type ManagedIdentityTypes = original.ManagedIdentityTypes const ( - SystemAssigned ManagedIdentityTypes = original.SystemAssigned - UserAssigned ManagedIdentityTypes = original.UserAssigned + ManagedIdentityTypesSystemAssigned ManagedIdentityTypes = original.ManagedIdentityTypesSystemAssigned + ManagedIdentityTypesUserAssigned ManagedIdentityTypes = original.ManagedIdentityTypesUserAssigned ) type MarketplaceSubscriptionStatus = original.MarketplaceSubscriptionStatus const ( - Active MarketplaceSubscriptionStatus = original.Active - Provisioning MarketplaceSubscriptionStatus = original.Provisioning - Suspended MarketplaceSubscriptionStatus = original.Suspended - Unsubscribed MarketplaceSubscriptionStatus = original.Unsubscribed + MarketplaceSubscriptionStatusActive MarketplaceSubscriptionStatus = original.MarketplaceSubscriptionStatusActive + MarketplaceSubscriptionStatusProvisioning MarketplaceSubscriptionStatus = original.MarketplaceSubscriptionStatusProvisioning + MarketplaceSubscriptionStatusSuspended MarketplaceSubscriptionStatus = original.MarketplaceSubscriptionStatusSuspended + MarketplaceSubscriptionStatusUnsubscribed MarketplaceSubscriptionStatus = original.MarketplaceSubscriptionStatusUnsubscribed ) type MonitoringStatus = original.MonitoringStatus const ( - Disabled MonitoringStatus = original.Disabled - Enabled MonitoringStatus = original.Enabled + MonitoringStatusDisabled MonitoringStatus = original.MonitoringStatusDisabled + MonitoringStatusEnabled MonitoringStatus = original.MonitoringStatusEnabled ) type ProvisioningState = original.ProvisioningState const ( - Accepted ProvisioningState = original.Accepted - Canceled ProvisioningState = original.Canceled - Creating ProvisioningState = original.Creating - Deleted ProvisioningState = original.Deleted - Deleting ProvisioningState = original.Deleting - Failed ProvisioningState = original.Failed - NotSpecified ProvisioningState = original.NotSpecified - Succeeded ProvisioningState = original.Succeeded - Updating ProvisioningState = original.Updating + ProvisioningStateAccepted ProvisioningState = original.ProvisioningStateAccepted + ProvisioningStateCanceled ProvisioningState = original.ProvisioningStateCanceled + ProvisioningStateCreating ProvisioningState = original.ProvisioningStateCreating + ProvisioningStateDeleted ProvisioningState = original.ProvisioningStateDeleted + ProvisioningStateDeleting ProvisioningState = original.ProvisioningStateDeleting + ProvisioningStateFailed ProvisioningState = original.ProvisioningStateFailed + ProvisioningStateNotSpecified ProvisioningState = original.ProvisioningStateNotSpecified + ProvisioningStateSucceeded ProvisioningState = original.ProvisioningStateSucceeded + ProvisioningStateUpdating ProvisioningState = original.ProvisioningStateUpdating ) type SingleSignOnStates = original.SingleSignOnStates const ( - Disable SingleSignOnStates = original.Disable - Enable SingleSignOnStates = original.Enable - Existing SingleSignOnStates = original.Existing - Initial SingleSignOnStates = original.Initial + SingleSignOnStatesDisable SingleSignOnStates = original.SingleSignOnStatesDisable + SingleSignOnStatesEnable SingleSignOnStates = original.SingleSignOnStatesEnable + SingleSignOnStatesExisting SingleSignOnStates = original.SingleSignOnStatesExisting + SingleSignOnStatesInitial SingleSignOnStates = original.SingleSignOnStatesInitial ) type TagAction = original.TagAction const ( - Exclude TagAction = original.Exclude - Include TagAction = original.Include + TagActionExclude TagAction = original.TagActionExclude + TagActionInclude TagAction = original.TagActionInclude ) type APIKey = original.APIKey @@ -135,6 +135,7 @@ type MonitoringTagRulesProperties = original.MonitoringTagRulesProperties type MonitorsClient = original.MonitorsClient type MonitorsCreateFuture = original.MonitorsCreateFuture type MonitorsDeleteFuture = original.MonitorsDeleteFuture +type MonitorsUpdateFuture = original.MonitorsUpdateFuture type OperationDisplay = original.OperationDisplay type OperationListResult = original.OperationListResult type OperationListResultIterator = original.OperationListResultIterator diff --git a/profiles/preview/datafactory/mgmt/datafactory/models.go b/profiles/preview/datafactory/mgmt/datafactory/models.go index 51f46c68af74..43fb9c85ddfc 100644 --- a/profiles/preview/datafactory/mgmt/datafactory/models.go +++ b/profiles/preview/datafactory/mgmt/datafactory/models.go @@ -21,18 +21,18 @@ const ( type AuthenticationType = original.AuthenticationType const ( - AuthenticationTypeAuthenticationTypeAnonymous AuthenticationType = original.AuthenticationTypeAuthenticationTypeAnonymous - AuthenticationTypeAuthenticationTypeBasic AuthenticationType = original.AuthenticationTypeAuthenticationTypeBasic - AuthenticationTypeAuthenticationTypeClientCertificate AuthenticationType = original.AuthenticationTypeAuthenticationTypeClientCertificate - AuthenticationTypeAuthenticationTypeWebLinkedServiceTypeProperties AuthenticationType = original.AuthenticationTypeAuthenticationTypeWebLinkedServiceTypeProperties + AuthenticationTypeAnonymous AuthenticationType = original.AuthenticationTypeAnonymous + AuthenticationTypeBasic AuthenticationType = original.AuthenticationTypeBasic + AuthenticationTypeClientCertificate AuthenticationType = original.AuthenticationTypeClientCertificate + AuthenticationTypeWebLinkedServiceTypeProperties AuthenticationType = original.AuthenticationTypeWebLinkedServiceTypeProperties ) type AuthorizationType = original.AuthorizationType const ( - AuthorizationTypeAuthorizationTypeKey AuthorizationType = original.AuthorizationTypeAuthorizationTypeKey - AuthorizationTypeAuthorizationTypeLinkedIntegrationRuntimeType AuthorizationType = original.AuthorizationTypeAuthorizationTypeLinkedIntegrationRuntimeType - AuthorizationTypeAuthorizationTypeRBAC AuthorizationType = original.AuthorizationTypeAuthorizationTypeRBAC + AuthorizationTypeKey AuthorizationType = original.AuthorizationTypeKey + AuthorizationTypeLinkedIntegrationRuntimeType AuthorizationType = original.AuthorizationTypeLinkedIntegrationRuntimeType + AuthorizationTypeRBAC AuthorizationType = original.AuthorizationTypeRBAC ) type AvroCompressionCodec = original.AvroCompressionCodec @@ -86,6 +86,21 @@ const ( CassandraSourceReadConsistencyLevelsTWO CassandraSourceReadConsistencyLevels = original.CassandraSourceReadConsistencyLevelsTWO ) +type CompressionCodec = original.CompressionCodec + +const ( + CompressionCodecBzip2 CompressionCodec = original.CompressionCodecBzip2 + CompressionCodecDeflate CompressionCodec = original.CompressionCodecDeflate + CompressionCodecGzip CompressionCodec = original.CompressionCodecGzip + CompressionCodecLz4 CompressionCodec = original.CompressionCodecLz4 + CompressionCodecLzo CompressionCodec = original.CompressionCodecLzo + CompressionCodecNone CompressionCodec = original.CompressionCodecNone + CompressionCodecSnappy CompressionCodec = original.CompressionCodecSnappy + CompressionCodecTar CompressionCodec = original.CompressionCodecTar + CompressionCodecTarGZip CompressionCodec = original.CompressionCodecTarGZip + CompressionCodecZipDeflate CompressionCodec = original.CompressionCodecZipDeflate +) + type CopyBehaviorType = original.CopyBehaviorType const ( @@ -124,6 +139,13 @@ const ( DataFlowDebugCommandTypeExecuteStatisticsQuery DataFlowDebugCommandType = original.DataFlowDebugCommandTypeExecuteStatisticsQuery ) +type DatasetCompressionLevel = original.DatasetCompressionLevel + +const ( + DatasetCompressionLevelFastest DatasetCompressionLevel = original.DatasetCompressionLevelFastest + DatasetCompressionLevelOptimal DatasetCompressionLevel = original.DatasetCompressionLevelOptimal +) + type DayOfWeek = original.DayOfWeek const ( @@ -259,6 +281,14 @@ const ( HTTPAuthenticationTypeWindows HTTPAuthenticationType = original.HTTPAuthenticationTypeWindows ) +type HdiNodeTypes = original.HdiNodeTypes + +const ( + HdiNodeTypesHeadnode HdiNodeTypes = original.HdiNodeTypesHeadnode + HdiNodeTypesWorkernode HdiNodeTypes = original.HdiNodeTypesWorkernode + HdiNodeTypesZookeeper HdiNodeTypes = original.HdiNodeTypesZookeeper +) + type HiveAuthenticationType = original.HiveAuthenticationType const ( @@ -316,6 +346,7 @@ const ( type IntegrationRuntimeEntityReferenceType = original.IntegrationRuntimeEntityReferenceType const ( + IntegrationRuntimeEntityReferenceTypeCredentialReference IntegrationRuntimeEntityReferenceType = original.IntegrationRuntimeEntityReferenceTypeCredentialReference IntegrationRuntimeEntityReferenceTypeIntegrationRuntimeReference IntegrationRuntimeEntityReferenceType = original.IntegrationRuntimeEntityReferenceTypeIntegrationRuntimeReference IntegrationRuntimeEntityReferenceTypeLinkedServiceReference IntegrationRuntimeEntityReferenceType = original.IntegrationRuntimeEntityReferenceTypeLinkedServiceReference ) @@ -374,6 +405,13 @@ const ( IntegrationRuntimeUpdateResultSucceed IntegrationRuntimeUpdateResult = original.IntegrationRuntimeUpdateResultSucceed ) +type JSONFormatFilePattern = original.JSONFormatFilePattern + +const ( + JSONFormatFilePatternArrayOfObjects JSONFormatFilePattern = original.JSONFormatFilePatternArrayOfObjects + JSONFormatFilePatternSetOfObjects JSONFormatFilePattern = original.JSONFormatFilePatternSetOfObjects +) + type JSONWriteFilePattern = original.JSONWriteFilePattern const ( @@ -629,6 +667,13 @@ const ( ServiceNowAuthenticationTypeOAuth2 ServiceNowAuthenticationType = original.ServiceNowAuthenticationTypeOAuth2 ) +type ServicePrincipalCredentialType = original.ServicePrincipalCredentialType + +const ( + ServicePrincipalCredentialTypeServicePrincipalCert ServicePrincipalCredentialType = original.ServicePrincipalCredentialTypeServicePrincipalCert + ServicePrincipalCredentialTypeServicePrincipalKey ServicePrincipalCredentialType = original.ServicePrincipalCredentialTypeServicePrincipalKey +) + type SftpAuthenticationType = original.SftpAuthenticationType const ( @@ -741,9 +786,9 @@ const ( type Type = original.Type const ( - TypeTypeAzureKeyVaultSecret Type = original.TypeTypeAzureKeyVaultSecret - TypeTypeSecretBase Type = original.TypeTypeSecretBase - TypeTypeSecureString Type = original.TypeTypeSecureString + TypeAzureKeyVaultSecret Type = original.TypeAzureKeyVaultSecret + TypeSecretBase Type = original.TypeSecretBase + TypeSecureString Type = original.TypeSecureString ) type TypeBasicActivity = original.TypeBasicActivity @@ -1939,6 +1984,7 @@ type MarketoLinkedService = original.MarketoLinkedService type MarketoLinkedServiceTypeProperties = original.MarketoLinkedServiceTypeProperties type MarketoObjectDataset = original.MarketoObjectDataset type MarketoSource = original.MarketoSource +type MetadataItem = original.MetadataItem type MicrosoftAccessLinkedService = original.MicrosoftAccessLinkedService type MicrosoftAccessLinkedServiceTypeProperties = original.MicrosoftAccessLinkedServiceTypeProperties type MicrosoftAccessSink = original.MicrosoftAccessSink @@ -2555,6 +2601,9 @@ func PossibleBlobEventTypesValues() []BlobEventTypes { func PossibleCassandraSourceReadConsistencyLevelsValues() []CassandraSourceReadConsistencyLevels { return original.PossibleCassandraSourceReadConsistencyLevelsValues() } +func PossibleCompressionCodecValues() []CompressionCodec { + return original.PossibleCompressionCodecValues() +} func PossibleCopyBehaviorTypeValues() []CopyBehaviorType { return original.PossibleCopyBehaviorTypeValues() } @@ -2570,6 +2619,9 @@ func PossibleDataFlowComputeTypeValues() []DataFlowComputeType { func PossibleDataFlowDebugCommandTypeValues() []DataFlowDebugCommandType { return original.PossibleDataFlowDebugCommandTypeValues() } +func PossibleDatasetCompressionLevelValues() []DatasetCompressionLevel { + return original.PossibleDatasetCompressionLevelValues() +} func PossibleDayOfWeekValues() []DayOfWeek { return original.PossibleDayOfWeekValues() } @@ -2618,6 +2670,9 @@ func PossibleHDInsightActivityDebugInfoOptionValues() []HDInsightActivityDebugIn func PossibleHTTPAuthenticationTypeValues() []HTTPAuthenticationType { return original.PossibleHTTPAuthenticationTypeValues() } +func PossibleHdiNodeTypesValues() []HdiNodeTypes { + return original.PossibleHdiNodeTypesValues() +} func PossibleHiveAuthenticationTypeValues() []HiveAuthenticationType { return original.PossibleHiveAuthenticationTypeValues() } @@ -2660,6 +2715,9 @@ func PossibleIntegrationRuntimeTypeValues() []IntegrationRuntimeType { func PossibleIntegrationRuntimeUpdateResultValues() []IntegrationRuntimeUpdateResult { return original.PossibleIntegrationRuntimeUpdateResultValues() } +func PossibleJSONFormatFilePatternValues() []JSONFormatFilePattern { + return original.PossibleJSONFormatFilePatternValues() +} func PossibleJSONWriteFilePatternValues() []JSONWriteFilePattern { return original.PossibleJSONWriteFilePatternValues() } @@ -2747,6 +2805,9 @@ func PossibleSelfHostedIntegrationRuntimeNodeStatusValues() []SelfHostedIntegrat func PossibleServiceNowAuthenticationTypeValues() []ServiceNowAuthenticationType { return original.PossibleServiceNowAuthenticationTypeValues() } +func PossibleServicePrincipalCredentialTypeValues() []ServicePrincipalCredentialType { + return original.PossibleServicePrincipalCredentialTypeValues() +} func PossibleSftpAuthenticationTypeValues() []SftpAuthenticationType { return original.PossibleSftpAuthenticationTypeValues() } diff --git a/profiles/preview/delegatednetwork/mgmt/delegatednetwork/models.go b/profiles/preview/delegatednetwork/mgmt/delegatednetwork/models.go index 955ff3f10335..7725beb583ac 100644 --- a/profiles/preview/delegatednetwork/mgmt/delegatednetwork/models.go +++ b/profiles/preview/delegatednetwork/mgmt/delegatednetwork/models.go @@ -21,16 +21,16 @@ const ( type ActionType = original.ActionType const ( - Internal ActionType = original.Internal + ActionTypeInternal ActionType = original.ActionTypeInternal ) type ControllerState = original.ControllerState const ( - Deleting ControllerState = original.Deleting - Failed ControllerState = original.Failed - Provisioning ControllerState = original.Provisioning - Succeeded ControllerState = original.Succeeded + ControllerStateDeleting ControllerState = original.ControllerStateDeleting + ControllerStateFailed ControllerState = original.ControllerStateFailed + ControllerStateProvisioning ControllerState = original.ControllerStateProvisioning + ControllerStateSucceeded ControllerState = original.ControllerStateSucceeded ) type DelegatedSubnetState = original.DelegatedSubnetState @@ -54,16 +54,16 @@ const ( type Origin = original.Origin const ( - System Origin = original.System - User Origin = original.User - Usersystem Origin = original.Usersystem + OriginSystem Origin = original.OriginSystem + OriginUser Origin = original.OriginUser + OriginUsersystem Origin = original.OriginUsersystem ) type ResourceIdentityType = original.ResourceIdentityType const ( - None ResourceIdentityType = original.None - SystemAssigned ResourceIdentityType = original.SystemAssigned + ResourceIdentityTypeNone ResourceIdentityType = original.ResourceIdentityTypeNone + ResourceIdentityTypeSystemAssigned ResourceIdentityType = original.ResourceIdentityTypeSystemAssigned ) type BaseClient = original.BaseClient diff --git a/profiles/preview/kusto/mgmt/kusto/models.go b/profiles/preview/kusto/mgmt/kusto/models.go index 1066313fb0e3..1ebad1726a7b 100644 --- a/profiles/preview/kusto/mgmt/kusto/models.go +++ b/profiles/preview/kusto/mgmt/kusto/models.go @@ -202,9 +202,9 @@ const ( type Kind = original.Kind const ( - KindKindDatabase Kind = original.KindKindDatabase - KindKindReadOnlyFollowing Kind = original.KindKindReadOnlyFollowing - KindKindReadWrite Kind = original.KindKindReadWrite + KindDatabase Kind = original.KindDatabase + KindReadOnlyFollowing Kind = original.KindReadOnlyFollowing + KindReadWrite Kind = original.KindReadWrite ) type KindBasicDataConnection = original.KindBasicDataConnection diff --git a/profiles/preview/preview/cosmos-db/mgmt/documentdb/models.go b/profiles/preview/preview/cosmos-db/mgmt/documentdb/models.go index 62440843196c..4450d26a18df 100644 --- a/profiles/preview/preview/cosmos-db/mgmt/documentdb/models.go +++ b/profiles/preview/preview/cosmos-db/mgmt/documentdb/models.go @@ -318,9 +318,9 @@ const ( type Type = original.Type const ( - TypeTypeBackupPolicy Type = original.TypeTypeBackupPolicy - TypeTypeContinuous Type = original.TypeTypeContinuous - TypeTypePeriodic Type = original.TypeTypePeriodic + TypeBackupPolicy Type = original.TypeBackupPolicy + TypeContinuous Type = original.TypeContinuous + TypePeriodic Type = original.TypePeriodic ) type UnitType = original.UnitType diff --git a/profiles/preview/preview/logz/mgmt/logz/logzapi/models.go b/profiles/preview/preview/logz/mgmt/logz/logzapi/models.go new file mode 100644 index 000000000000..e2f1cc537032 --- /dev/null +++ b/profiles/preview/preview/logz/mgmt/logz/logzapi/models.go @@ -0,0 +1,19 @@ +// +build go1.9 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +// This code was auto-generated by: +// github.com/Azure/azure-sdk-for-go/tools/profileBuilder + +package logzapi + +import original "github.com/Azure/azure-sdk-for-go/services/preview/logz/mgmt/2020-10-01-preview/logz/logzapi" + +type MonitorClientAPI = original.MonitorClientAPI +type MonitorsClientAPI = original.MonitorsClientAPI +type OperationsClientAPI = original.OperationsClientAPI +type SingleSignOnClientAPI = original.SingleSignOnClientAPI +type SubAccountClientAPI = original.SubAccountClientAPI +type SubAccountTagRulesClientAPI = original.SubAccountTagRulesClientAPI +type TagRulesClientAPI = original.TagRulesClientAPI diff --git a/profiles/preview/preview/logz/mgmt/logz/models.go b/profiles/preview/preview/logz/mgmt/logz/models.go new file mode 100644 index 000000000000..a4528bcdb572 --- /dev/null +++ b/profiles/preview/preview/logz/mgmt/logz/models.go @@ -0,0 +1,289 @@ +// +build go1.9 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +// This code was auto-generated by: +// github.com/Azure/azure-sdk-for-go/tools/profileBuilder + +package logz + +import ( + "context" + + original "github.com/Azure/azure-sdk-for-go/services/preview/logz/mgmt/2020-10-01-preview/logz" +) + +const ( + DefaultBaseURI = original.DefaultBaseURI +) + +type CreatedByType = original.CreatedByType + +const ( + CreatedByTypeApplication CreatedByType = original.CreatedByTypeApplication + CreatedByTypeKey CreatedByType = original.CreatedByTypeKey + CreatedByTypeManagedIdentity CreatedByType = original.CreatedByTypeManagedIdentity + CreatedByTypeUser CreatedByType = original.CreatedByTypeUser +) + +type LiftrResourceCategories = original.LiftrResourceCategories + +const ( + LiftrResourceCategoriesMonitorLogs LiftrResourceCategories = original.LiftrResourceCategoriesMonitorLogs + LiftrResourceCategoriesUnknown LiftrResourceCategories = original.LiftrResourceCategoriesUnknown +) + +type ManagedIdentityTypes = original.ManagedIdentityTypes + +const ( + ManagedIdentityTypesSystemAssigned ManagedIdentityTypes = original.ManagedIdentityTypesSystemAssigned + ManagedIdentityTypesUserAssigned ManagedIdentityTypes = original.ManagedIdentityTypesUserAssigned +) + +type MarketplaceSubscriptionStatus = original.MarketplaceSubscriptionStatus + +const ( + MarketplaceSubscriptionStatusActive MarketplaceSubscriptionStatus = original.MarketplaceSubscriptionStatusActive + MarketplaceSubscriptionStatusSuspended MarketplaceSubscriptionStatus = original.MarketplaceSubscriptionStatusSuspended +) + +type MonitoringStatus = original.MonitoringStatus + +const ( + MonitoringStatusDisabled MonitoringStatus = original.MonitoringStatusDisabled + MonitoringStatusEnabled MonitoringStatus = original.MonitoringStatusEnabled +) + +type ProvisioningState = original.ProvisioningState + +const ( + ProvisioningStateAccepted ProvisioningState = original.ProvisioningStateAccepted + ProvisioningStateCanceled ProvisioningState = original.ProvisioningStateCanceled + ProvisioningStateCreating ProvisioningState = original.ProvisioningStateCreating + ProvisioningStateDeleted ProvisioningState = original.ProvisioningStateDeleted + ProvisioningStateDeleting ProvisioningState = original.ProvisioningStateDeleting + ProvisioningStateFailed ProvisioningState = original.ProvisioningStateFailed + ProvisioningStateNotSpecified ProvisioningState = original.ProvisioningStateNotSpecified + ProvisioningStateSucceeded ProvisioningState = original.ProvisioningStateSucceeded + ProvisioningStateUpdating ProvisioningState = original.ProvisioningStateUpdating +) + +type SingleSignOnStates = original.SingleSignOnStates + +const ( + SingleSignOnStatesDisable SingleSignOnStates = original.SingleSignOnStatesDisable + SingleSignOnStatesEnable SingleSignOnStates = original.SingleSignOnStatesEnable + SingleSignOnStatesExisting SingleSignOnStates = original.SingleSignOnStatesExisting + SingleSignOnStatesInitial SingleSignOnStates = original.SingleSignOnStatesInitial +) + +type TagAction = original.TagAction + +const ( + TagActionExclude TagAction = original.TagActionExclude + TagActionInclude TagAction = original.TagActionInclude +) + +type UserRole = original.UserRole + +const ( + UserRoleAdmin UserRole = original.UserRoleAdmin + UserRoleNone UserRole = original.UserRoleNone + UserRoleUser UserRole = original.UserRoleUser +) + +type VMHostUpdateStates = original.VMHostUpdateStates + +const ( + VMHostUpdateStatesDelete VMHostUpdateStates = original.VMHostUpdateStatesDelete + VMHostUpdateStatesInstall VMHostUpdateStates = original.VMHostUpdateStatesInstall +) + +type BaseClient = original.BaseClient +type ErrorAdditionalInfo = original.ErrorAdditionalInfo +type ErrorDetail = original.ErrorDetail +type ErrorResponse = original.ErrorResponse +type FilteringTag = original.FilteringTag +type IdentityProperties = original.IdentityProperties +type LogRules = original.LogRules +type MonitorClient = original.MonitorClient +type MonitorProperties = original.MonitorProperties +type MonitorResource = original.MonitorResource +type MonitorResourceListResponse = original.MonitorResourceListResponse +type MonitorResourceListResponseIterator = original.MonitorResourceListResponseIterator +type MonitorResourceListResponsePage = original.MonitorResourceListResponsePage +type MonitorResourceUpdateParameters = original.MonitorResourceUpdateParameters +type MonitorUpdateProperties = original.MonitorUpdateProperties +type MonitoredResource = original.MonitoredResource +type MonitoredResourceListResponse = original.MonitoredResourceListResponse +type MonitoredResourceListResponseIterator = original.MonitoredResourceListResponseIterator +type MonitoredResourceListResponsePage = original.MonitoredResourceListResponsePage +type MonitoringTagRules = original.MonitoringTagRules +type MonitoringTagRulesListResponse = original.MonitoringTagRulesListResponse +type MonitoringTagRulesListResponseIterator = original.MonitoringTagRulesListResponseIterator +type MonitoringTagRulesListResponsePage = original.MonitoringTagRulesListResponsePage +type MonitoringTagRulesProperties = original.MonitoringTagRulesProperties +type MonitorsClient = original.MonitorsClient +type MonitorsCreateFuture = original.MonitorsCreateFuture +type MonitorsDeleteFuture = original.MonitorsDeleteFuture +type OperationDisplay = original.OperationDisplay +type OperationListResult = original.OperationListResult +type OperationListResultIterator = original.OperationListResultIterator +type OperationListResultPage = original.OperationListResultPage +type OperationResult = original.OperationResult +type OperationsClient = original.OperationsClient +type OrganizationProperties = original.OrganizationProperties +type PlanData = original.PlanData +type SingleSignOnClient = original.SingleSignOnClient +type SingleSignOnCreateOrUpdateFuture = original.SingleSignOnCreateOrUpdateFuture +type SingleSignOnProperties = original.SingleSignOnProperties +type SingleSignOnResource = original.SingleSignOnResource +type SingleSignOnResourceListResponse = original.SingleSignOnResourceListResponse +type SingleSignOnResourceListResponseIterator = original.SingleSignOnResourceListResponseIterator +type SingleSignOnResourceListResponsePage = original.SingleSignOnResourceListResponsePage +type SubAccountClient = original.SubAccountClient +type SubAccountCreateFuture = original.SubAccountCreateFuture +type SubAccountDeleteFuture = original.SubAccountDeleteFuture +type SubAccountTagRulesClient = original.SubAccountTagRulesClient +type SystemData = original.SystemData +type TagRulesClient = original.TagRulesClient +type UserInfo = original.UserInfo +type UserRoleListResponse = original.UserRoleListResponse +type UserRoleListResponseIterator = original.UserRoleListResponseIterator +type UserRoleListResponsePage = original.UserRoleListResponsePage +type UserRoleRequest = original.UserRoleRequest +type UserRoleResponse = original.UserRoleResponse +type VMExtensionPayload = original.VMExtensionPayload +type VMHostUpdateRequest = original.VMHostUpdateRequest +type VMResources = original.VMResources +type VMResourcesListResponse = original.VMResourcesListResponse +type VMResourcesListResponseIterator = original.VMResourcesListResponseIterator +type VMResourcesListResponsePage = original.VMResourcesListResponsePage + +func New(subscriptionID string) BaseClient { + return original.New(subscriptionID) +} +func NewMonitorClient(subscriptionID string) MonitorClient { + return original.NewMonitorClient(subscriptionID) +} +func NewMonitorClientWithBaseURI(baseURI string, subscriptionID string) MonitorClient { + return original.NewMonitorClientWithBaseURI(baseURI, subscriptionID) +} +func NewMonitorResourceListResponseIterator(page MonitorResourceListResponsePage) MonitorResourceListResponseIterator { + return original.NewMonitorResourceListResponseIterator(page) +} +func NewMonitorResourceListResponsePage(cur MonitorResourceListResponse, getNextPage func(context.Context, MonitorResourceListResponse) (MonitorResourceListResponse, error)) MonitorResourceListResponsePage { + return original.NewMonitorResourceListResponsePage(cur, getNextPage) +} +func NewMonitoredResourceListResponseIterator(page MonitoredResourceListResponsePage) MonitoredResourceListResponseIterator { + return original.NewMonitoredResourceListResponseIterator(page) +} +func NewMonitoredResourceListResponsePage(cur MonitoredResourceListResponse, getNextPage func(context.Context, MonitoredResourceListResponse) (MonitoredResourceListResponse, error)) MonitoredResourceListResponsePage { + return original.NewMonitoredResourceListResponsePage(cur, getNextPage) +} +func NewMonitoringTagRulesListResponseIterator(page MonitoringTagRulesListResponsePage) MonitoringTagRulesListResponseIterator { + return original.NewMonitoringTagRulesListResponseIterator(page) +} +func NewMonitoringTagRulesListResponsePage(cur MonitoringTagRulesListResponse, getNextPage func(context.Context, MonitoringTagRulesListResponse) (MonitoringTagRulesListResponse, error)) MonitoringTagRulesListResponsePage { + return original.NewMonitoringTagRulesListResponsePage(cur, getNextPage) +} +func NewMonitorsClient(subscriptionID string) MonitorsClient { + return original.NewMonitorsClient(subscriptionID) +} +func NewMonitorsClientWithBaseURI(baseURI string, subscriptionID string) MonitorsClient { + return original.NewMonitorsClientWithBaseURI(baseURI, subscriptionID) +} +func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator { + return original.NewOperationListResultIterator(page) +} +func NewOperationListResultPage(cur OperationListResult, getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage { + return original.NewOperationListResultPage(cur, getNextPage) +} +func NewOperationsClient(subscriptionID string) OperationsClient { + return original.NewOperationsClient(subscriptionID) +} +func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient { + return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID) +} +func NewSingleSignOnClient(subscriptionID string) SingleSignOnClient { + return original.NewSingleSignOnClient(subscriptionID) +} +func NewSingleSignOnClientWithBaseURI(baseURI string, subscriptionID string) SingleSignOnClient { + return original.NewSingleSignOnClientWithBaseURI(baseURI, subscriptionID) +} +func NewSingleSignOnResourceListResponseIterator(page SingleSignOnResourceListResponsePage) SingleSignOnResourceListResponseIterator { + return original.NewSingleSignOnResourceListResponseIterator(page) +} +func NewSingleSignOnResourceListResponsePage(cur SingleSignOnResourceListResponse, getNextPage func(context.Context, SingleSignOnResourceListResponse) (SingleSignOnResourceListResponse, error)) SingleSignOnResourceListResponsePage { + return original.NewSingleSignOnResourceListResponsePage(cur, getNextPage) +} +func NewSubAccountClient(subscriptionID string) SubAccountClient { + return original.NewSubAccountClient(subscriptionID) +} +func NewSubAccountClientWithBaseURI(baseURI string, subscriptionID string) SubAccountClient { + return original.NewSubAccountClientWithBaseURI(baseURI, subscriptionID) +} +func NewSubAccountTagRulesClient(subscriptionID string) SubAccountTagRulesClient { + return original.NewSubAccountTagRulesClient(subscriptionID) +} +func NewSubAccountTagRulesClientWithBaseURI(baseURI string, subscriptionID string) SubAccountTagRulesClient { + return original.NewSubAccountTagRulesClientWithBaseURI(baseURI, subscriptionID) +} +func NewTagRulesClient(subscriptionID string) TagRulesClient { + return original.NewTagRulesClient(subscriptionID) +} +func NewTagRulesClientWithBaseURI(baseURI string, subscriptionID string) TagRulesClient { + return original.NewTagRulesClientWithBaseURI(baseURI, subscriptionID) +} +func NewUserRoleListResponseIterator(page UserRoleListResponsePage) UserRoleListResponseIterator { + return original.NewUserRoleListResponseIterator(page) +} +func NewUserRoleListResponsePage(cur UserRoleListResponse, getNextPage func(context.Context, UserRoleListResponse) (UserRoleListResponse, error)) UserRoleListResponsePage { + return original.NewUserRoleListResponsePage(cur, getNextPage) +} +func NewVMResourcesListResponseIterator(page VMResourcesListResponsePage) VMResourcesListResponseIterator { + return original.NewVMResourcesListResponseIterator(page) +} +func NewVMResourcesListResponsePage(cur VMResourcesListResponse, getNextPage func(context.Context, VMResourcesListResponse) (VMResourcesListResponse, error)) VMResourcesListResponsePage { + return original.NewVMResourcesListResponsePage(cur, getNextPage) +} +func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { + return original.NewWithBaseURI(baseURI, subscriptionID) +} +func PossibleCreatedByTypeValues() []CreatedByType { + return original.PossibleCreatedByTypeValues() +} +func PossibleLiftrResourceCategoriesValues() []LiftrResourceCategories { + return original.PossibleLiftrResourceCategoriesValues() +} +func PossibleManagedIdentityTypesValues() []ManagedIdentityTypes { + return original.PossibleManagedIdentityTypesValues() +} +func PossibleMarketplaceSubscriptionStatusValues() []MarketplaceSubscriptionStatus { + return original.PossibleMarketplaceSubscriptionStatusValues() +} +func PossibleMonitoringStatusValues() []MonitoringStatus { + return original.PossibleMonitoringStatusValues() +} +func PossibleProvisioningStateValues() []ProvisioningState { + return original.PossibleProvisioningStateValues() +} +func PossibleSingleSignOnStatesValues() []SingleSignOnStates { + return original.PossibleSingleSignOnStatesValues() +} +func PossibleTagActionValues() []TagAction { + return original.PossibleTagActionValues() +} +func PossibleUserRoleValues() []UserRole { + return original.PossibleUserRoleValues() +} +func PossibleVMHostUpdateStatesValues() []VMHostUpdateStates { + return original.PossibleVMHostUpdateStatesValues() +} +func UserAgent() string { + return original.UserAgent() + " profiles/preview" +} +func Version() string { + return original.Version() +} diff --git a/profiles/preview/preview/resourcegraph/mgmt/resourcegraph/models.go b/profiles/preview/preview/resourcegraph/mgmt/resourcegraph/models.go index f56ba0e427dd..379059a67565 100644 --- a/profiles/preview/preview/resourcegraph/mgmt/resourcegraph/models.go +++ b/profiles/preview/preview/resourcegraph/mgmt/resourcegraph/models.go @@ -78,9 +78,9 @@ const ( type ResultType = original.ResultType const ( - ResultTypeResultTypeFacet ResultType = original.ResultTypeResultTypeFacet - ResultTypeResultTypeFacetError ResultType = original.ResultTypeResultTypeFacetError - ResultTypeResultTypeFacetResult ResultType = original.ResultTypeResultTypeFacetResult + ResultTypeFacet ResultType = original.ResultTypeFacet + ResultTypeFacetError ResultType = original.ResultTypeFacetError + ResultTypeFacetResult ResultType = original.ResultTypeFacetResult ) type BaseClient = original.BaseClient diff --git a/profiles/preview/preview/securityinsight/mgmt/securityinsight/models.go b/profiles/preview/preview/securityinsight/mgmt/securityinsight/models.go index 8bd1a9385f55..b9d299650c9d 100644 --- a/profiles/preview/preview/securityinsight/mgmt/securityinsight/models.go +++ b/profiles/preview/preview/securityinsight/mgmt/securityinsight/models.go @@ -21,9 +21,9 @@ const ( type ActionType = original.ActionType const ( - ActionTypeActionTypeAutomationRuleAction ActionType = original.ActionTypeActionTypeAutomationRuleAction - ActionTypeActionTypeModifyProperties ActionType = original.ActionTypeActionTypeModifyProperties - ActionTypeActionTypeRunPlaybook ActionType = original.ActionTypeActionTypeRunPlaybook + ActionTypeAutomationRuleAction ActionType = original.ActionTypeAutomationRuleAction + ActionTypeModifyProperties ActionType = original.ActionTypeModifyProperties + ActionTypeRunPlaybook ActionType = original.ActionTypeRunPlaybook ) type AlertRuleKind = original.AlertRuleKind @@ -184,8 +184,8 @@ const ( type ConditionType = original.ConditionType const ( - ConditionTypeConditionTypeAutomationRuleCondition ConditionType = original.ConditionTypeConditionTypeAutomationRuleCondition - ConditionTypeConditionTypeProperty ConditionType = original.ConditionTypeConditionTypeProperty + ConditionTypeAutomationRuleCondition ConditionType = original.ConditionTypeAutomationRuleCondition + ConditionTypeProperty ConditionType = original.ConditionTypeProperty ) type ConfidenceLevel = original.ConfidenceLevel @@ -443,8 +443,8 @@ const ( type Kind = original.Kind const ( - KindKindAggregations Kind = original.KindKindAggregations - KindKindCasesAggregation Kind = original.KindKindCasesAggregation + KindAggregations Kind = original.KindAggregations + KindCasesAggregation Kind = original.KindCasesAggregation ) type KindBasicAlertRule = original.KindBasicAlertRule diff --git a/profiles/preview/preview/storagepool/mgmt/storagepool/models.go b/profiles/preview/preview/storagepool/mgmt/storagepool/models.go index 00b37bb3091e..adaed7157da0 100644 --- a/profiles/preview/preview/storagepool/mgmt/storagepool/models.go +++ b/profiles/preview/preview/storagepool/mgmt/storagepool/models.go @@ -11,20 +11,48 @@ package storagepool import ( "context" - original "github.com/Azure/azure-sdk-for-go/services/preview/storagepool/mgmt/2020-03-15-preview/storagepool" + original "github.com/Azure/azure-sdk-for-go/services/preview/storagepool/mgmt/2021-04-01-preview/storagepool" ) const ( DefaultBaseURI = original.DefaultBaseURI ) +type CreatedByType = original.CreatedByType + +const ( + CreatedByTypeApplication CreatedByType = original.CreatedByTypeApplication + CreatedByTypeKey CreatedByType = original.CreatedByTypeKey + CreatedByTypeManagedIdentity CreatedByType = original.CreatedByTypeManagedIdentity + CreatedByTypeUser CreatedByType = original.CreatedByTypeUser +) + +type DiskPoolTier = original.DiskPoolTier + +const ( + DiskPoolTierBasic DiskPoolTier = original.DiskPoolTierBasic + DiskPoolTierPremium DiskPoolTier = original.DiskPoolTierPremium + DiskPoolTierStandard DiskPoolTier = original.DiskPoolTierStandard +) + +type IscsiTargetACLMode = original.IscsiTargetACLMode + +const ( + IscsiTargetACLModeDynamic IscsiTargetACLMode = original.IscsiTargetACLModeDynamic + IscsiTargetACLModeStatic IscsiTargetACLMode = original.IscsiTargetACLModeStatic +) + type OperationalStatus = original.OperationalStatus const ( - Healthy OperationalStatus = original.Healthy - Invalid OperationalStatus = original.Invalid - Unhealthy OperationalStatus = original.Unhealthy - Unknown OperationalStatus = original.Unknown + OperationalStatusHealthy OperationalStatus = original.OperationalStatusHealthy + OperationalStatusInvalid OperationalStatus = original.OperationalStatusInvalid + OperationalStatusRunning OperationalStatus = original.OperationalStatusRunning + OperationalStatusStopped OperationalStatus = original.OperationalStatusStopped + OperationalStatusStoppeddeallocated OperationalStatus = original.OperationalStatusStoppeddeallocated + OperationalStatusUnhealthy OperationalStatus = original.OperationalStatusUnhealthy + OperationalStatusUnknown OperationalStatus = original.OperationalStatusUnknown + OperationalStatusUpdating OperationalStatus = original.OperationalStatusUpdating ) type ProvisioningStates = original.ProvisioningStates @@ -40,49 +68,60 @@ const ( ProvisioningStatesUpdating ProvisioningStates = original.ProvisioningStatesUpdating ) -type SkuTier = original.SkuTier - -const ( - Basic SkuTier = original.Basic - Free SkuTier = original.Free - Premium SkuTier = original.Premium - Standard SkuTier = original.Standard -) - type ACL = original.ACL -type Attributes = original.Attributes type BaseClient = original.BaseClient type Disk = original.Disk type DiskPool = original.DiskPool +type DiskPoolCreate = original.DiskPoolCreate +type DiskPoolCreateProperties = original.DiskPoolCreateProperties type DiskPoolListResult = original.DiskPoolListResult type DiskPoolListResultIterator = original.DiskPoolListResultIterator type DiskPoolListResultPage = original.DiskPoolListResultPage type DiskPoolProperties = original.DiskPoolProperties +type DiskPoolUpdate = original.DiskPoolUpdate +type DiskPoolUpdateProperties = original.DiskPoolUpdateProperties +type DiskPoolZoneInfo = original.DiskPoolZoneInfo +type DiskPoolZoneListResult = original.DiskPoolZoneListResult +type DiskPoolZoneListResultIterator = original.DiskPoolZoneListResultIterator +type DiskPoolZoneListResultPage = original.DiskPoolZoneListResultPage +type DiskPoolZonesClient = original.DiskPoolZonesClient type DiskPoolsClient = original.DiskPoolsClient type DiskPoolsCreateOrUpdateFuture = original.DiskPoolsCreateOrUpdateFuture +type DiskPoolsDeallocateFuture = original.DiskPoolsDeallocateFuture type DiskPoolsDeleteFuture = original.DiskPoolsDeleteFuture +type DiskPoolsStartFuture = original.DiskPoolsStartFuture +type DiskPoolsUpdateFuture = original.DiskPoolsUpdateFuture +type EndpointDependency = original.EndpointDependency +type EndpointDetail = original.EndpointDetail type Error = original.Error type ErrorAdditionalInfo = original.ErrorAdditionalInfo type ErrorResponse = original.ErrorResponse type IscsiLun = original.IscsiLun type IscsiTarget = original.IscsiTarget -type IscsiTargetCredentials = original.IscsiTargetCredentials +type IscsiTargetCreate = original.IscsiTargetCreate +type IscsiTargetCreateProperties = original.IscsiTargetCreateProperties type IscsiTargetList = original.IscsiTargetList type IscsiTargetListIterator = original.IscsiTargetListIterator type IscsiTargetListPage = original.IscsiTargetListPage type IscsiTargetProperties = original.IscsiTargetProperties +type IscsiTargetUpdate = original.IscsiTargetUpdate +type IscsiTargetUpdateProperties = original.IscsiTargetUpdateProperties type IscsiTargetsClient = original.IscsiTargetsClient type IscsiTargetsCreateOrUpdateFuture = original.IscsiTargetsCreateOrUpdateFuture type IscsiTargetsDeleteFuture = original.IscsiTargetsDeleteFuture +type IscsiTargetsUpdateFuture = original.IscsiTargetsUpdateFuture type OperationDisplay = original.OperationDisplay type OperationListResult = original.OperationListResult type OperationsClient = original.OperationsClient +type OutboundEnvironmentEndpoint = original.OutboundEnvironmentEndpoint +type OutboundEnvironmentEndpointList = original.OutboundEnvironmentEndpointList +type OutboundEnvironmentEndpointListIterator = original.OutboundEnvironmentEndpointListIterator +type OutboundEnvironmentEndpointListPage = original.OutboundEnvironmentEndpointListPage type ProxyResource = original.ProxyResource type RPOperation = original.RPOperation type Resource = original.Resource type Sku = original.Sku type SystemMetadata = original.SystemMetadata -type TargetPortalGroup = original.TargetPortalGroup type TrackedResource = original.TrackedResource func New(subscriptionID string) BaseClient { @@ -94,6 +133,18 @@ func NewDiskPoolListResultIterator(page DiskPoolListResultPage) DiskPoolListResu func NewDiskPoolListResultPage(cur DiskPoolListResult, getNextPage func(context.Context, DiskPoolListResult) (DiskPoolListResult, error)) DiskPoolListResultPage { return original.NewDiskPoolListResultPage(cur, getNextPage) } +func NewDiskPoolZoneListResultIterator(page DiskPoolZoneListResultPage) DiskPoolZoneListResultIterator { + return original.NewDiskPoolZoneListResultIterator(page) +} +func NewDiskPoolZoneListResultPage(cur DiskPoolZoneListResult, getNextPage func(context.Context, DiskPoolZoneListResult) (DiskPoolZoneListResult, error)) DiskPoolZoneListResultPage { + return original.NewDiskPoolZoneListResultPage(cur, getNextPage) +} +func NewDiskPoolZonesClient(subscriptionID string) DiskPoolZonesClient { + return original.NewDiskPoolZonesClient(subscriptionID) +} +func NewDiskPoolZonesClientWithBaseURI(baseURI string, subscriptionID string) DiskPoolZonesClient { + return original.NewDiskPoolZonesClientWithBaseURI(baseURI, subscriptionID) +} func NewDiskPoolsClient(subscriptionID string) DiskPoolsClient { return original.NewDiskPoolsClient(subscriptionID) } @@ -118,18 +169,30 @@ func NewOperationsClient(subscriptionID string) OperationsClient { func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient { return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID) } +func NewOutboundEnvironmentEndpointListIterator(page OutboundEnvironmentEndpointListPage) OutboundEnvironmentEndpointListIterator { + return original.NewOutboundEnvironmentEndpointListIterator(page) +} +func NewOutboundEnvironmentEndpointListPage(cur OutboundEnvironmentEndpointList, getNextPage func(context.Context, OutboundEnvironmentEndpointList) (OutboundEnvironmentEndpointList, error)) OutboundEnvironmentEndpointListPage { + return original.NewOutboundEnvironmentEndpointListPage(cur, getNextPage) +} func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { return original.NewWithBaseURI(baseURI, subscriptionID) } +func PossibleCreatedByTypeValues() []CreatedByType { + return original.PossibleCreatedByTypeValues() +} +func PossibleDiskPoolTierValues() []DiskPoolTier { + return original.PossibleDiskPoolTierValues() +} +func PossibleIscsiTargetACLModeValues() []IscsiTargetACLMode { + return original.PossibleIscsiTargetACLModeValues() +} func PossibleOperationalStatusValues() []OperationalStatus { return original.PossibleOperationalStatusValues() } func PossibleProvisioningStatesValues() []ProvisioningStates { return original.PossibleProvisioningStatesValues() } -func PossibleSkuTierValues() []SkuTier { - return original.PossibleSkuTierValues() -} func UserAgent() string { return original.UserAgent() + " profiles/preview" } diff --git a/profiles/preview/preview/storagepool/mgmt/storagepool/storagepoolapi/models.go b/profiles/preview/preview/storagepool/mgmt/storagepool/storagepoolapi/models.go index a06dca262256..bf11e9850ebf 100644 --- a/profiles/preview/preview/storagepool/mgmt/storagepool/storagepoolapi/models.go +++ b/profiles/preview/preview/storagepool/mgmt/storagepool/storagepoolapi/models.go @@ -8,8 +8,9 @@ package storagepoolapi -import original "github.com/Azure/azure-sdk-for-go/services/preview/storagepool/mgmt/2020-03-15-preview/storagepool/storagepoolapi" +import original "github.com/Azure/azure-sdk-for-go/services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/storagepoolapi" +type DiskPoolZonesClientAPI = original.DiskPoolZonesClientAPI type DiskPoolsClientAPI = original.DiskPoolsClientAPI type IscsiTargetsClientAPI = original.IscsiTargetsClientAPI type OperationsClientAPI = original.OperationsClientAPI diff --git a/profiles/preview/preview/videoanalyzer/mgmt/videoanalyzer/models.go b/profiles/preview/preview/videoanalyzer/mgmt/videoanalyzer/models.go index 59a781ed04f6..9d1c26b9726e 100644 --- a/profiles/preview/preview/videoanalyzer/mgmt/videoanalyzer/models.go +++ b/profiles/preview/preview/videoanalyzer/mgmt/videoanalyzer/models.go @@ -88,8 +88,8 @@ const ( type Type = original.Type const ( - TypeTypeAuthenticationBase Type = original.TypeTypeAuthenticationBase - TypeTypeMicrosoftVideoAnalyzerJwtAuthentication Type = original.TypeTypeMicrosoftVideoAnalyzerJwtAuthentication + TypeAuthenticationBase Type = original.TypeAuthenticationBase + TypeMicrosoftVideoAnalyzerJwtAuthentication Type = original.TypeMicrosoftVideoAnalyzerJwtAuthentication ) type TypeBasicTokenKey = original.TypeBasicTokenKey diff --git a/profiles/preview/recoveryservices/mgmt/backup/backupapi/models.go b/profiles/preview/recoveryservices/mgmt/backup/backupapi/models.go index 10a8bbaeed09..68e40089d1fc 100644 --- a/profiles/preview/recoveryservices/mgmt/backup/backupapi/models.go +++ b/profiles/preview/recoveryservices/mgmt/backup/backupapi/models.go @@ -8,10 +8,17 @@ package backupapi -import original "github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2020-02-02/backup/backupapi" +import original "github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2021-01-01/backup/backupapi" +type AadPropertiesClientAPI = original.AadPropertiesClientAPI +type BMSPrepareDataMoveOperationResultClientAPI = original.BMSPrepareDataMoveOperationResultClientAPI type BackupsClientAPI = original.BackupsClientAPI type BaseClientAPI = original.BaseClientAPI +type CrossRegionRestoreClientAPI = original.CrossRegionRestoreClientAPI +type CrrJobDetailsClientAPI = original.CrrJobDetailsClientAPI +type CrrJobsClientAPI = original.CrrJobsClientAPI +type CrrOperationResultsClientAPI = original.CrrOperationResultsClientAPI +type CrrOperationStatusClientAPI = original.CrrOperationStatusClientAPI type EnginesClientAPI = original.EnginesClientAPI type ExportJobsOperationResultsClientAPI = original.ExportJobsOperationResultsClientAPI type FeatureSupportClientAPI = original.FeatureSupportClientAPI @@ -26,12 +33,14 @@ type OperationResultsClientAPI = original.OperationResultsClientAPI type OperationStatusesClientAPI = original.OperationStatusesClientAPI type OperationsClientAPI = original.OperationsClientAPI type PoliciesClientAPI = original.PoliciesClientAPI +type PrivateEndpointClientAPI = original.PrivateEndpointClientAPI type PrivateEndpointConnectionClientAPI = original.PrivateEndpointConnectionClientAPI type ProtectableContainersClientAPI = original.ProtectableContainersClientAPI type ProtectableItemsClientAPI = original.ProtectableItemsClientAPI type ProtectedItemOperationResultsClientAPI = original.ProtectedItemOperationResultsClientAPI type ProtectedItemOperationStatusesClientAPI = original.ProtectedItemOperationStatusesClientAPI type ProtectedItemsClientAPI = original.ProtectedItemsClientAPI +type ProtectedItemsCrrClientAPI = original.ProtectedItemsCrrClientAPI type ProtectedItemsGroupClientAPI = original.ProtectedItemsGroupClientAPI type ProtectionContainerOperationResultsClientAPI = original.ProtectionContainerOperationResultsClientAPI type ProtectionContainerRefreshOperationResultsClientAPI = original.ProtectionContainerRefreshOperationResultsClientAPI @@ -43,10 +52,14 @@ type ProtectionPoliciesClientAPI = original.ProtectionPoliciesClientAPI type ProtectionPolicyOperationResultsClientAPI = original.ProtectionPolicyOperationResultsClientAPI type ProtectionPolicyOperationStatusesClientAPI = original.ProtectionPolicyOperationStatusesClientAPI type RecoveryPointsClientAPI = original.RecoveryPointsClientAPI +type RecoveryPointsCrrClientAPI = original.RecoveryPointsCrrClientAPI +type RecoveryPointsRecommendedForMoveClientAPI = original.RecoveryPointsRecommendedForMoveClientAPI +type ResourceEncryptionConfigsClientAPI = original.ResourceEncryptionConfigsClientAPI type ResourceStorageConfigsClientAPI = original.ResourceStorageConfigsClientAPI type ResourceVaultConfigsClientAPI = original.ResourceVaultConfigsClientAPI type RestoresClientAPI = original.RestoresClientAPI type SecurityPINsClientAPI = original.SecurityPINsClientAPI type StatusClientAPI = original.StatusClientAPI +type UsageSummariesCRRClientAPI = original.UsageSummariesCRRClientAPI type UsageSummariesClientAPI = original.UsageSummariesClientAPI type WorkloadItemsClientAPI = original.WorkloadItemsClientAPI diff --git a/profiles/preview/recoveryservices/mgmt/backup/models.go b/profiles/preview/recoveryservices/mgmt/backup/models.go index da1d240ebe3e..d76fc8b90bc9 100644 --- a/profiles/preview/recoveryservices/mgmt/backup/models.go +++ b/profiles/preview/recoveryservices/mgmt/backup/models.go @@ -11,7 +11,7 @@ package backup import ( "context" - original "github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2020-02-02/backup" + original "github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2021-01-01/backup" ) const ( @@ -21,9 +21,9 @@ const ( type AzureFileShareType = original.AzureFileShareType const ( - Invalid AzureFileShareType = original.Invalid - XSMB AzureFileShareType = original.XSMB - XSync AzureFileShareType = original.XSync + AzureFileShareTypeInvalid AzureFileShareType = original.AzureFileShareTypeInvalid + AzureFileShareTypeXSMB AzureFileShareType = original.AzureFileShareTypeXSMB + AzureFileShareTypeXSync AzureFileShareType = original.AzureFileShareTypeXSync ) type ContainerType = original.ContainerType @@ -49,19 +49,19 @@ const ( type ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainer const ( - ContainerTypeAzureBackupServerContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeAzureBackupServerContainer1 - ContainerTypeAzureSQLContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeAzureSQLContainer1 - ContainerTypeAzureWorkloadContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeAzureWorkloadContainer - ContainerTypeDPMContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeDPMContainer1 - ContainerTypeGenericContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeGenericContainer1 - ContainerTypeIaaSVMContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeIaaSVMContainer - ContainerTypeMicrosoftClassicComputevirtualMachines ContainerTypeBasicProtectionContainer = original.ContainerTypeMicrosoftClassicComputevirtualMachines - ContainerTypeMicrosoftComputevirtualMachines ContainerTypeBasicProtectionContainer = original.ContainerTypeMicrosoftComputevirtualMachines - ContainerTypeProtectionContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeProtectionContainer - ContainerTypeSQLAGWorkLoadContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeSQLAGWorkLoadContainer1 - ContainerTypeStorageContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeStorageContainer1 - ContainerTypeVMAppContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeVMAppContainer1 - ContainerTypeWindows1 ContainerTypeBasicProtectionContainer = original.ContainerTypeWindows1 + ContainerTypeBasicProtectionContainerContainerTypeAzureBackupServerContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainerContainerTypeAzureBackupServerContainer + ContainerTypeBasicProtectionContainerContainerTypeAzureSQLContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainerContainerTypeAzureSQLContainer + ContainerTypeBasicProtectionContainerContainerTypeAzureWorkloadContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainerContainerTypeAzureWorkloadContainer + ContainerTypeBasicProtectionContainerContainerTypeDPMContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainerContainerTypeDPMContainer + ContainerTypeBasicProtectionContainerContainerTypeGenericContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainerContainerTypeGenericContainer + ContainerTypeBasicProtectionContainerContainerTypeIaaSVMContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainerContainerTypeIaaSVMContainer + ContainerTypeBasicProtectionContainerContainerTypeMicrosoftClassicComputevirtualMachines ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainerContainerTypeMicrosoftClassicComputevirtualMachines + ContainerTypeBasicProtectionContainerContainerTypeMicrosoftComputevirtualMachines ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainerContainerTypeMicrosoftComputevirtualMachines + ContainerTypeBasicProtectionContainerContainerTypeProtectionContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainerContainerTypeProtectionContainer + ContainerTypeBasicProtectionContainerContainerTypeSQLAGWorkLoadContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainerContainerTypeSQLAGWorkLoadContainer + ContainerTypeBasicProtectionContainerContainerTypeStorageContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainerContainerTypeStorageContainer + ContainerTypeBasicProtectionContainerContainerTypeVMAppContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainerContainerTypeVMAppContainer + ContainerTypeBasicProtectionContainerContainerTypeWindows ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainerContainerTypeWindows ) type CopyOptions = original.CopyOptions @@ -82,6 +82,14 @@ const ( CreateModeRecover CreateMode = original.CreateModeRecover ) +type DataMoveLevel = original.DataMoveLevel + +const ( + DataMoveLevelContainer DataMoveLevel = original.DataMoveLevelContainer + DataMoveLevelInvalid DataMoveLevel = original.DataMoveLevelInvalid + DataMoveLevelVault DataMoveLevel = original.DataMoveLevelVault +) + type DataSourceType = original.DataSourceType const ( @@ -105,21 +113,29 @@ const ( type DayOfWeek = original.DayOfWeek const ( - Friday DayOfWeek = original.Friday - Monday DayOfWeek = original.Monday - Saturday DayOfWeek = original.Saturday - Sunday DayOfWeek = original.Sunday - Thursday DayOfWeek = original.Thursday - Tuesday DayOfWeek = original.Tuesday - Wednesday DayOfWeek = original.Wednesday + DayOfWeekFriday DayOfWeek = original.DayOfWeekFriday + DayOfWeekMonday DayOfWeek = original.DayOfWeekMonday + DayOfWeekSaturday DayOfWeek = original.DayOfWeekSaturday + DayOfWeekSunday DayOfWeek = original.DayOfWeekSunday + DayOfWeekThursday DayOfWeek = original.DayOfWeekThursday + DayOfWeekTuesday DayOfWeek = original.DayOfWeekTuesday + DayOfWeekWednesday DayOfWeek = original.DayOfWeekWednesday +) + +type EncryptionAtRestType = original.EncryptionAtRestType + +const ( + EncryptionAtRestTypeCustomerManaged EncryptionAtRestType = original.EncryptionAtRestTypeCustomerManaged + EncryptionAtRestTypeInvalid EncryptionAtRestType = original.EncryptionAtRestTypeInvalid + EncryptionAtRestTypeMicrosoftManaged EncryptionAtRestType = original.EncryptionAtRestTypeMicrosoftManaged ) type EngineType = original.EngineType const ( - BackupEngineTypeAzureBackupServerEngine EngineType = original.BackupEngineTypeAzureBackupServerEngine - BackupEngineTypeBackupEngineBase EngineType = original.BackupEngineTypeBackupEngineBase - BackupEngineTypeDpmBackupEngine EngineType = original.BackupEngineTypeDpmBackupEngine + EngineTypeBackupEngineTypeAzureBackupServerEngine EngineType = original.EngineTypeBackupEngineTypeAzureBackupServerEngine + EngineTypeBackupEngineTypeBackupEngineBase EngineType = original.EngineTypeBackupEngineTypeBackupEngineBase + EngineTypeBackupEngineTypeDpmBackupEngine EngineType = original.EngineTypeBackupEngineTypeDpmBackupEngine ) type EnhancedSecurityState = original.EnhancedSecurityState @@ -148,53 +164,53 @@ const ( type HTTPStatusCode = original.HTTPStatusCode const ( - Accepted HTTPStatusCode = original.Accepted - Ambiguous HTTPStatusCode = original.Ambiguous - BadGateway HTTPStatusCode = original.BadGateway - BadRequest HTTPStatusCode = original.BadRequest - Conflict HTTPStatusCode = original.Conflict - Continue HTTPStatusCode = original.Continue - Created HTTPStatusCode = original.Created - ExpectationFailed HTTPStatusCode = original.ExpectationFailed - Forbidden HTTPStatusCode = original.Forbidden - Found HTTPStatusCode = original.Found - GatewayTimeout HTTPStatusCode = original.GatewayTimeout - Gone HTTPStatusCode = original.Gone - HTTPVersionNotSupported HTTPStatusCode = original.HTTPVersionNotSupported - InternalServerError HTTPStatusCode = original.InternalServerError - LengthRequired HTTPStatusCode = original.LengthRequired - MethodNotAllowed HTTPStatusCode = original.MethodNotAllowed - Moved HTTPStatusCode = original.Moved - MovedPermanently HTTPStatusCode = original.MovedPermanently - MultipleChoices HTTPStatusCode = original.MultipleChoices - NoContent HTTPStatusCode = original.NoContent - NonAuthoritativeInformation HTTPStatusCode = original.NonAuthoritativeInformation - NotAcceptable HTTPStatusCode = original.NotAcceptable - NotFound HTTPStatusCode = original.NotFound - NotImplemented HTTPStatusCode = original.NotImplemented - NotModified HTTPStatusCode = original.NotModified - OK HTTPStatusCode = original.OK - PartialContent HTTPStatusCode = original.PartialContent - PaymentRequired HTTPStatusCode = original.PaymentRequired - PreconditionFailed HTTPStatusCode = original.PreconditionFailed - ProxyAuthenticationRequired HTTPStatusCode = original.ProxyAuthenticationRequired - Redirect HTTPStatusCode = original.Redirect - RedirectKeepVerb HTTPStatusCode = original.RedirectKeepVerb - RedirectMethod HTTPStatusCode = original.RedirectMethod - RequestedRangeNotSatisfiable HTTPStatusCode = original.RequestedRangeNotSatisfiable - RequestEntityTooLarge HTTPStatusCode = original.RequestEntityTooLarge - RequestTimeout HTTPStatusCode = original.RequestTimeout - RequestURITooLong HTTPStatusCode = original.RequestURITooLong - ResetContent HTTPStatusCode = original.ResetContent - SeeOther HTTPStatusCode = original.SeeOther - ServiceUnavailable HTTPStatusCode = original.ServiceUnavailable - SwitchingProtocols HTTPStatusCode = original.SwitchingProtocols - TemporaryRedirect HTTPStatusCode = original.TemporaryRedirect - Unauthorized HTTPStatusCode = original.Unauthorized - UnsupportedMediaType HTTPStatusCode = original.UnsupportedMediaType - Unused HTTPStatusCode = original.Unused - UpgradeRequired HTTPStatusCode = original.UpgradeRequired - UseProxy HTTPStatusCode = original.UseProxy + HTTPStatusCodeAccepted HTTPStatusCode = original.HTTPStatusCodeAccepted + HTTPStatusCodeAmbiguous HTTPStatusCode = original.HTTPStatusCodeAmbiguous + HTTPStatusCodeBadGateway HTTPStatusCode = original.HTTPStatusCodeBadGateway + HTTPStatusCodeBadRequest HTTPStatusCode = original.HTTPStatusCodeBadRequest + HTTPStatusCodeConflict HTTPStatusCode = original.HTTPStatusCodeConflict + HTTPStatusCodeContinue HTTPStatusCode = original.HTTPStatusCodeContinue + HTTPStatusCodeCreated HTTPStatusCode = original.HTTPStatusCodeCreated + HTTPStatusCodeExpectationFailed HTTPStatusCode = original.HTTPStatusCodeExpectationFailed + HTTPStatusCodeForbidden HTTPStatusCode = original.HTTPStatusCodeForbidden + HTTPStatusCodeFound HTTPStatusCode = original.HTTPStatusCodeFound + HTTPStatusCodeGatewayTimeout HTTPStatusCode = original.HTTPStatusCodeGatewayTimeout + HTTPStatusCodeGone HTTPStatusCode = original.HTTPStatusCodeGone + HTTPStatusCodeHTTPVersionNotSupported HTTPStatusCode = original.HTTPStatusCodeHTTPVersionNotSupported + HTTPStatusCodeInternalServerError HTTPStatusCode = original.HTTPStatusCodeInternalServerError + HTTPStatusCodeLengthRequired HTTPStatusCode = original.HTTPStatusCodeLengthRequired + HTTPStatusCodeMethodNotAllowed HTTPStatusCode = original.HTTPStatusCodeMethodNotAllowed + HTTPStatusCodeMoved HTTPStatusCode = original.HTTPStatusCodeMoved + HTTPStatusCodeMovedPermanently HTTPStatusCode = original.HTTPStatusCodeMovedPermanently + HTTPStatusCodeMultipleChoices HTTPStatusCode = original.HTTPStatusCodeMultipleChoices + HTTPStatusCodeNoContent HTTPStatusCode = original.HTTPStatusCodeNoContent + HTTPStatusCodeNonAuthoritativeInformation HTTPStatusCode = original.HTTPStatusCodeNonAuthoritativeInformation + HTTPStatusCodeNotAcceptable HTTPStatusCode = original.HTTPStatusCodeNotAcceptable + HTTPStatusCodeNotFound HTTPStatusCode = original.HTTPStatusCodeNotFound + HTTPStatusCodeNotImplemented HTTPStatusCode = original.HTTPStatusCodeNotImplemented + HTTPStatusCodeNotModified HTTPStatusCode = original.HTTPStatusCodeNotModified + HTTPStatusCodeOK HTTPStatusCode = original.HTTPStatusCodeOK + HTTPStatusCodePartialContent HTTPStatusCode = original.HTTPStatusCodePartialContent + HTTPStatusCodePaymentRequired HTTPStatusCode = original.HTTPStatusCodePaymentRequired + HTTPStatusCodePreconditionFailed HTTPStatusCode = original.HTTPStatusCodePreconditionFailed + HTTPStatusCodeProxyAuthenticationRequired HTTPStatusCode = original.HTTPStatusCodeProxyAuthenticationRequired + HTTPStatusCodeRedirect HTTPStatusCode = original.HTTPStatusCodeRedirect + HTTPStatusCodeRedirectKeepVerb HTTPStatusCode = original.HTTPStatusCodeRedirectKeepVerb + HTTPStatusCodeRedirectMethod HTTPStatusCode = original.HTTPStatusCodeRedirectMethod + HTTPStatusCodeRequestedRangeNotSatisfiable HTTPStatusCode = original.HTTPStatusCodeRequestedRangeNotSatisfiable + HTTPStatusCodeRequestEntityTooLarge HTTPStatusCode = original.HTTPStatusCodeRequestEntityTooLarge + HTTPStatusCodeRequestTimeout HTTPStatusCode = original.HTTPStatusCodeRequestTimeout + HTTPStatusCodeRequestURITooLong HTTPStatusCode = original.HTTPStatusCodeRequestURITooLong + HTTPStatusCodeResetContent HTTPStatusCode = original.HTTPStatusCodeResetContent + HTTPStatusCodeSeeOther HTTPStatusCode = original.HTTPStatusCodeSeeOther + HTTPStatusCodeServiceUnavailable HTTPStatusCode = original.HTTPStatusCodeServiceUnavailable + HTTPStatusCodeSwitchingProtocols HTTPStatusCode = original.HTTPStatusCodeSwitchingProtocols + HTTPStatusCodeTemporaryRedirect HTTPStatusCode = original.HTTPStatusCodeTemporaryRedirect + HTTPStatusCodeUnauthorized HTTPStatusCode = original.HTTPStatusCodeUnauthorized + HTTPStatusCodeUnsupportedMediaType HTTPStatusCode = original.HTTPStatusCodeUnsupportedMediaType + HTTPStatusCodeUnused HTTPStatusCode = original.HTTPStatusCodeUnused + HTTPStatusCodeUpgradeRequired HTTPStatusCode = original.HTTPStatusCodeUpgradeRequired + HTTPStatusCodeUseProxy HTTPStatusCode = original.HTTPStatusCodeUseProxy ) type HealthState = original.HealthState @@ -215,6 +231,14 @@ const ( HealthStatusPassed HealthStatus = original.HealthStatusPassed ) +type InfrastructureEncryptionState = original.InfrastructureEncryptionState + +const ( + InfrastructureEncryptionStateDisabled InfrastructureEncryptionState = original.InfrastructureEncryptionStateDisabled + InfrastructureEncryptionStateEnabled InfrastructureEncryptionState = original.InfrastructureEncryptionStateEnabled + InfrastructureEncryptionStateInvalid InfrastructureEncryptionState = original.InfrastructureEncryptionStateInvalid +) + type InquiryStatus = original.InquiryStatus const ( @@ -254,16 +278,17 @@ const ( type JobOperationType = original.JobOperationType const ( - JobOperationTypeBackup JobOperationType = original.JobOperationTypeBackup - JobOperationTypeConfigureBackup JobOperationType = original.JobOperationTypeConfigureBackup - JobOperationTypeCrossRegionRestore JobOperationType = original.JobOperationTypeCrossRegionRestore - JobOperationTypeDeleteBackupData JobOperationType = original.JobOperationTypeDeleteBackupData - JobOperationTypeDisableBackup JobOperationType = original.JobOperationTypeDisableBackup - JobOperationTypeInvalid JobOperationType = original.JobOperationTypeInvalid - JobOperationTypeRegister JobOperationType = original.JobOperationTypeRegister - JobOperationTypeRestore JobOperationType = original.JobOperationTypeRestore - JobOperationTypeUndelete JobOperationType = original.JobOperationTypeUndelete - JobOperationTypeUnRegister JobOperationType = original.JobOperationTypeUnRegister + JobOperationTypeBackup JobOperationType = original.JobOperationTypeBackup + JobOperationTypeConfigureBackup JobOperationType = original.JobOperationTypeConfigureBackup + JobOperationTypeCrossRegionRestore JobOperationType = original.JobOperationTypeCrossRegionRestore + JobOperationTypeDeleteBackupData JobOperationType = original.JobOperationTypeDeleteBackupData + JobOperationTypeDisableBackup JobOperationType = original.JobOperationTypeDisableBackup + JobOperationTypeInvalid JobOperationType = original.JobOperationTypeInvalid + JobOperationTypeRegister JobOperationType = original.JobOperationTypeRegister + JobOperationTypeRestore JobOperationType = original.JobOperationTypeRestore + JobOperationTypeUndelete JobOperationType = original.JobOperationTypeUndelete + JobOperationTypeUnRegister JobOperationType = original.JobOperationTypeUnRegister + JobOperationTypeUpdateCustomerManagedKey JobOperationType = original.JobOperationTypeUpdateCustomerManagedKey ) type JobStatus = original.JobStatus @@ -295,6 +320,7 @@ const ( JobTypeDpmJob JobType = original.JobTypeDpmJob JobTypeJob JobType = original.JobTypeJob JobTypeMabJob JobType = original.JobTypeMabJob + JobTypeVaultJob JobType = original.JobTypeVaultJob ) type LastBackupStatus = original.LastBackupStatus @@ -306,6 +332,17 @@ const ( LastBackupStatusUnhealthy LastBackupStatus = original.LastBackupStatusUnhealthy ) +type LastUpdateStatus = original.LastUpdateStatus + +const ( + LastUpdateStatusFailed LastUpdateStatus = original.LastUpdateStatusFailed + LastUpdateStatusInvalid LastUpdateStatus = original.LastUpdateStatusInvalid + LastUpdateStatusNotEnabled LastUpdateStatus = original.LastUpdateStatusNotEnabled + LastUpdateStatusPartiallyFailed LastUpdateStatus = original.LastUpdateStatusPartiallyFailed + LastUpdateStatusPartiallySucceeded LastUpdateStatus = original.LastUpdateStatusPartiallySucceeded + LastUpdateStatusSucceeded LastUpdateStatus = original.LastUpdateStatusSucceeded +) + type MabServerType = original.MabServerType const ( @@ -343,13 +380,13 @@ const ( type ManagementTypeBasicProtectionPolicy = original.ManagementTypeBasicProtectionPolicy const ( - BackupManagementTypeAzureIaasVM ManagementTypeBasicProtectionPolicy = original.BackupManagementTypeAzureIaasVM - BackupManagementTypeAzureSQL ManagementTypeBasicProtectionPolicy = original.BackupManagementTypeAzureSQL - BackupManagementTypeAzureStorage ManagementTypeBasicProtectionPolicy = original.BackupManagementTypeAzureStorage - BackupManagementTypeAzureWorkload ManagementTypeBasicProtectionPolicy = original.BackupManagementTypeAzureWorkload - BackupManagementTypeGenericProtectionPolicy ManagementTypeBasicProtectionPolicy = original.BackupManagementTypeGenericProtectionPolicy - BackupManagementTypeMAB ManagementTypeBasicProtectionPolicy = original.BackupManagementTypeMAB - BackupManagementTypeProtectionPolicy ManagementTypeBasicProtectionPolicy = original.BackupManagementTypeProtectionPolicy + ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureIaasVM ManagementTypeBasicProtectionPolicy = original.ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureIaasVM + ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureSQL ManagementTypeBasicProtectionPolicy = original.ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureSQL + ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureStorage ManagementTypeBasicProtectionPolicy = original.ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureStorage + ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureWorkload ManagementTypeBasicProtectionPolicy = original.ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureWorkload + ManagementTypeBasicProtectionPolicyBackupManagementTypeGenericProtectionPolicy ManagementTypeBasicProtectionPolicy = original.ManagementTypeBasicProtectionPolicyBackupManagementTypeGenericProtectionPolicy + ManagementTypeBasicProtectionPolicyBackupManagementTypeMAB ManagementTypeBasicProtectionPolicy = original.ManagementTypeBasicProtectionPolicyBackupManagementTypeMAB + ManagementTypeBasicProtectionPolicyBackupManagementTypeProtectionPolicy ManagementTypeBasicProtectionPolicy = original.ManagementTypeBasicProtectionPolicyBackupManagementTypeProtectionPolicy ) type MonthOfYear = original.MonthOfYear @@ -373,72 +410,92 @@ const ( type ObjectType = original.ObjectType const ( - ObjectTypeOperationStatusExtendedInfo ObjectType = original.ObjectTypeOperationStatusExtendedInfo - ObjectTypeOperationStatusJobExtendedInfo ObjectType = original.ObjectTypeOperationStatusJobExtendedInfo - ObjectTypeOperationStatusJobsExtendedInfo ObjectType = original.ObjectTypeOperationStatusJobsExtendedInfo - ObjectTypeOperationStatusProvisionILRExtendedInfo ObjectType = original.ObjectTypeOperationStatusProvisionILRExtendedInfo + ObjectTypeExportJobsOperationResultInfo ObjectType = original.ObjectTypeExportJobsOperationResultInfo + ObjectTypeOperationResultInfo ObjectType = original.ObjectTypeOperationResultInfo + ObjectTypeOperationResultInfoBase ObjectType = original.ObjectTypeOperationResultInfoBase +) + +type ObjectTypeBasicCrrAccessToken = original.ObjectTypeBasicCrrAccessToken + +const ( + ObjectTypeBasicCrrAccessTokenObjectTypeCrrAccessToken ObjectTypeBasicCrrAccessToken = original.ObjectTypeBasicCrrAccessTokenObjectTypeCrrAccessToken + ObjectTypeBasicCrrAccessTokenObjectTypeWorkloadCrrAccessToken ObjectTypeBasicCrrAccessToken = original.ObjectTypeBasicCrrAccessTokenObjectTypeWorkloadCrrAccessToken ) type ObjectTypeBasicILRRequest = original.ObjectTypeBasicILRRequest const ( - ObjectTypeAzureFileShareProvisionILRRequest ObjectTypeBasicILRRequest = original.ObjectTypeAzureFileShareProvisionILRRequest - ObjectTypeIaasVMILRRegistrationRequest ObjectTypeBasicILRRequest = original.ObjectTypeIaasVMILRRegistrationRequest - ObjectTypeILRRequest ObjectTypeBasicILRRequest = original.ObjectTypeILRRequest + ObjectTypeBasicILRRequestObjectTypeAzureFileShareProvisionILRRequest ObjectTypeBasicILRRequest = original.ObjectTypeBasicILRRequestObjectTypeAzureFileShareProvisionILRRequest + ObjectTypeBasicILRRequestObjectTypeIaasVMILRRegistrationRequest ObjectTypeBasicILRRequest = original.ObjectTypeBasicILRRequestObjectTypeIaasVMILRRegistrationRequest + ObjectTypeBasicILRRequestObjectTypeILRRequest ObjectTypeBasicILRRequest = original.ObjectTypeBasicILRRequestObjectTypeILRRequest ) -type ObjectTypeBasicOperationResultInfoBase = original.ObjectTypeBasicOperationResultInfoBase +type ObjectTypeBasicOperationStatusExtendedInfo = original.ObjectTypeBasicOperationStatusExtendedInfo const ( - ObjectTypeExportJobsOperationResultInfo ObjectTypeBasicOperationResultInfoBase = original.ObjectTypeExportJobsOperationResultInfo - ObjectTypeOperationResultInfo ObjectTypeBasicOperationResultInfoBase = original.ObjectTypeOperationResultInfo - ObjectTypeOperationResultInfoBase ObjectTypeBasicOperationResultInfoBase = original.ObjectTypeOperationResultInfoBase + ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusExtendedInfo ObjectTypeBasicOperationStatusExtendedInfo = original.ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusExtendedInfo + ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusJobExtendedInfo ObjectTypeBasicOperationStatusExtendedInfo = original.ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusJobExtendedInfo + ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusJobsExtendedInfo ObjectTypeBasicOperationStatusExtendedInfo = original.ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusJobsExtendedInfo + ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusProvisionILRExtendedInfo ObjectTypeBasicOperationStatusExtendedInfo = original.ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusProvisionILRExtendedInfo + ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusRecoveryPointExtendedInfo ObjectTypeBasicOperationStatusExtendedInfo = original.ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusRecoveryPointExtendedInfo ) type ObjectTypeBasicRecoveryPoint = original.ObjectTypeBasicRecoveryPoint const ( - ObjectTypeAzureFileShareRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureFileShareRecoveryPoint - ObjectTypeAzureWorkloadPointInTimeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadPointInTimeRecoveryPoint - ObjectTypeAzureWorkloadRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadRecoveryPoint - ObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint - ObjectTypeAzureWorkloadSAPHanaRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSAPHanaRecoveryPoint - ObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint - ObjectTypeAzureWorkloadSQLRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSQLRecoveryPoint - ObjectTypeGenericRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeGenericRecoveryPoint - ObjectTypeIaasVMRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeIaasVMRecoveryPoint - ObjectTypeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeRecoveryPoint + ObjectTypeBasicRecoveryPointObjectTypeAzureFileShareRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeBasicRecoveryPointObjectTypeAzureFileShareRecoveryPoint + ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadPointInTimeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadPointInTimeRecoveryPoint + ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadRecoveryPoint + ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint + ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaRecoveryPoint + ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint + ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLRecoveryPoint + ObjectTypeBasicRecoveryPointObjectTypeGenericRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeBasicRecoveryPointObjectTypeGenericRecoveryPoint + ObjectTypeBasicRecoveryPointObjectTypeIaasVMRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeBasicRecoveryPointObjectTypeIaasVMRecoveryPoint + ObjectTypeBasicRecoveryPointObjectTypeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeBasicRecoveryPointObjectTypeRecoveryPoint ) type ObjectTypeBasicRequest = original.ObjectTypeBasicRequest const ( - ObjectTypeAzureFileShareBackupRequest ObjectTypeBasicRequest = original.ObjectTypeAzureFileShareBackupRequest - ObjectTypeAzureWorkloadBackupRequest ObjectTypeBasicRequest = original.ObjectTypeAzureWorkloadBackupRequest - ObjectTypeBackupRequest ObjectTypeBasicRequest = original.ObjectTypeBackupRequest - ObjectTypeIaasVMBackupRequest ObjectTypeBasicRequest = original.ObjectTypeIaasVMBackupRequest + ObjectTypeBasicRequestObjectTypeAzureFileShareBackupRequest ObjectTypeBasicRequest = original.ObjectTypeBasicRequestObjectTypeAzureFileShareBackupRequest + ObjectTypeBasicRequestObjectTypeAzureWorkloadBackupRequest ObjectTypeBasicRequest = original.ObjectTypeBasicRequestObjectTypeAzureWorkloadBackupRequest + ObjectTypeBasicRequestObjectTypeBackupRequest ObjectTypeBasicRequest = original.ObjectTypeBasicRequestObjectTypeBackupRequest + ObjectTypeBasicRequestObjectTypeIaasVMBackupRequest ObjectTypeBasicRequest = original.ObjectTypeBasicRequestObjectTypeIaasVMBackupRequest ) type ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequest const ( - ObjectTypeAzureFileShareRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureFileShareRestoreRequest - ObjectTypeAzureWorkloadPointInTimeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadPointInTimeRestoreRequest - ObjectTypeAzureWorkloadRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadRestoreRequest - ObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest - ObjectTypeAzureWorkloadSAPHanaRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSAPHanaRestoreRequest - ObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest - ObjectTypeAzureWorkloadSQLRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSQLRestoreRequest - ObjectTypeIaasVMRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeIaasVMRestoreRequest - ObjectTypeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeRestoreRequest + ObjectTypeBasicRestoreRequestObjectTypeAzureFileShareRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequestObjectTypeAzureFileShareRestoreRequest + ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadPointInTimeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadPointInTimeRestoreRequest + ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadRestoreRequest + ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest + ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest + ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreRequest + ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreWithRehydrateRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreWithRehydrateRequest + ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest + ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest + ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreRequest + ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreWithRehydrateRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreWithRehydrateRequest + ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreRequest + ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreWithRehydrationRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreWithRehydrationRequest + ObjectTypeBasicRestoreRequestObjectTypeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequestObjectTypeRestoreRequest ) type ObjectTypeBasicValidateOperationRequest = original.ObjectTypeBasicValidateOperationRequest const ( - ObjectTypeValidateIaasVMRestoreOperationRequest ObjectTypeBasicValidateOperationRequest = original.ObjectTypeValidateIaasVMRestoreOperationRequest - ObjectTypeValidateOperationRequest ObjectTypeBasicValidateOperationRequest = original.ObjectTypeValidateOperationRequest - ObjectTypeValidateRestoreOperationRequest ObjectTypeBasicValidateOperationRequest = original.ObjectTypeValidateRestoreOperationRequest + ObjectTypeBasicValidateOperationRequestObjectTypeValidateIaasVMRestoreOperationRequest ObjectTypeBasicValidateOperationRequest = original.ObjectTypeBasicValidateOperationRequestObjectTypeValidateIaasVMRestoreOperationRequest + ObjectTypeBasicValidateOperationRequestObjectTypeValidateOperationRequest ObjectTypeBasicValidateOperationRequest = original.ObjectTypeBasicValidateOperationRequestObjectTypeValidateOperationRequest + ObjectTypeBasicValidateOperationRequestObjectTypeValidateRestoreOperationRequest ObjectTypeBasicValidateOperationRequest = original.ObjectTypeBasicValidateOperationRequestObjectTypeValidateRestoreOperationRequest +) + +type ObjectTypeBasicVaultStorageConfigOperationResultResponse = original.ObjectTypeBasicVaultStorageConfigOperationResultResponse + +const ( + ObjectTypeBasicVaultStorageConfigOperationResultResponseObjectTypePrepareDataMoveResponse ObjectTypeBasicVaultStorageConfigOperationResultResponse = original.ObjectTypeBasicVaultStorageConfigOperationResultResponseObjectTypePrepareDataMoveResponse + ObjectTypeBasicVaultStorageConfigOperationResultResponseObjectTypeVaultStorageConfigOperationResultResponse ObjectTypeBasicVaultStorageConfigOperationResultResponse = original.ObjectTypeBasicVaultStorageConfigOperationResultResponseObjectTypeVaultStorageConfigOperationResultResponse ) type OperationStatusValues = original.OperationStatusValues @@ -473,6 +530,7 @@ const ( PolicyTypeCopyOnlyFull PolicyType = original.PolicyTypeCopyOnlyFull PolicyTypeDifferential PolicyType = original.PolicyTypeDifferential PolicyTypeFull PolicyType = original.PolicyTypeFull + PolicyTypeIncremental PolicyType = original.PolicyTypeIncremental PolicyTypeInvalid PolicyType = original.PolicyTypeInvalid PolicyTypeLog PolicyType = original.PolicyTypeLog ) @@ -480,10 +538,10 @@ const ( type PrivateEndpointConnectionStatus = original.PrivateEndpointConnectionStatus const ( - Approved PrivateEndpointConnectionStatus = original.Approved - Disconnected PrivateEndpointConnectionStatus = original.Disconnected - Pending PrivateEndpointConnectionStatus = original.Pending - Rejected PrivateEndpointConnectionStatus = original.Rejected + PrivateEndpointConnectionStatusApproved PrivateEndpointConnectionStatus = original.PrivateEndpointConnectionStatusApproved + PrivateEndpointConnectionStatusDisconnected PrivateEndpointConnectionStatus = original.PrivateEndpointConnectionStatusDisconnected + PrivateEndpointConnectionStatusPending PrivateEndpointConnectionStatus = original.PrivateEndpointConnectionStatusPending + PrivateEndpointConnectionStatusRejected PrivateEndpointConnectionStatus = original.PrivateEndpointConnectionStatusRejected ) type ProtectableContainerType = original.ProtectableContainerType @@ -601,15 +659,17 @@ const ( type RecoveryPointTierStatus = original.RecoveryPointTierStatus const ( - RecoveryPointTierStatusDeleted RecoveryPointTierStatus = original.RecoveryPointTierStatusDeleted - RecoveryPointTierStatusDisabled RecoveryPointTierStatus = original.RecoveryPointTierStatusDisabled - RecoveryPointTierStatusInvalid RecoveryPointTierStatus = original.RecoveryPointTierStatusInvalid - RecoveryPointTierStatusValid RecoveryPointTierStatus = original.RecoveryPointTierStatusValid + RecoveryPointTierStatusDeleted RecoveryPointTierStatus = original.RecoveryPointTierStatusDeleted + RecoveryPointTierStatusDisabled RecoveryPointTierStatus = original.RecoveryPointTierStatusDisabled + RecoveryPointTierStatusInvalid RecoveryPointTierStatus = original.RecoveryPointTierStatusInvalid + RecoveryPointTierStatusRehydrated RecoveryPointTierStatus = original.RecoveryPointTierStatusRehydrated + RecoveryPointTierStatusValid RecoveryPointTierStatus = original.RecoveryPointTierStatusValid ) type RecoveryPointTierType = original.RecoveryPointTierType const ( + RecoveryPointTierTypeArchivedRP RecoveryPointTierType = original.RecoveryPointTierTypeArchivedRP RecoveryPointTierTypeHardenedRP RecoveryPointTierType = original.RecoveryPointTierTypeHardenedRP RecoveryPointTierTypeInstantRP RecoveryPointTierType = original.RecoveryPointTierTypeInstantRP RecoveryPointTierTypeInvalid RecoveryPointTierType = original.RecoveryPointTierTypeInvalid @@ -625,6 +685,13 @@ const ( RecoveryTypeRestoreDisks RecoveryType = original.RecoveryTypeRestoreDisks ) +type RehydrationPriority = original.RehydrationPriority + +const ( + RehydrationPriorityHigh RehydrationPriority = original.RehydrationPriorityHigh + RehydrationPriorityStandard RehydrationPriority = original.RehydrationPriorityStandard +) + type ResourceHealthStatus = original.ResourceHealthStatus const ( @@ -643,6 +710,7 @@ const ( RestorePointQueryTypeDifferential RestorePointQueryType = original.RestorePointQueryTypeDifferential RestorePointQueryTypeFull RestorePointQueryType = original.RestorePointQueryTypeFull RestorePointQueryTypeFullAndDifferential RestorePointQueryType = original.RestorePointQueryTypeFullAndDifferential + RestorePointQueryTypeIncremental RestorePointQueryType = original.RestorePointQueryTypeIncremental RestorePointQueryTypeInvalid RestorePointQueryType = original.RestorePointQueryTypeInvalid RestorePointQueryTypeLog RestorePointQueryType = original.RestorePointQueryTypeLog ) @@ -652,6 +720,7 @@ type RestorePointType = original.RestorePointType const ( RestorePointTypeDifferential RestorePointType = original.RestorePointTypeDifferential RestorePointTypeFull RestorePointType = original.RestorePointTypeFull + RestorePointTypeIncremental RestorePointType = original.RestorePointTypeIncremental RestorePointTypeInvalid RestorePointType = original.RestorePointTypeInvalid RestorePointTypeLog RestorePointType = original.RestorePointTypeLog ) @@ -726,9 +795,11 @@ const ( type StorageType = original.StorageType const ( - StorageTypeGeoRedundant StorageType = original.StorageTypeGeoRedundant - StorageTypeInvalid StorageType = original.StorageTypeInvalid - StorageTypeLocallyRedundant StorageType = original.StorageTypeLocallyRedundant + StorageTypeGeoRedundant StorageType = original.StorageTypeGeoRedundant + StorageTypeInvalid StorageType = original.StorageTypeInvalid + StorageTypeLocallyRedundant StorageType = original.StorageTypeLocallyRedundant + StorageTypeReadAccessGeoZoneRedundant StorageType = original.StorageTypeReadAccessGeoZoneRedundant + StorageTypeZoneRedundant StorageType = original.StorageTypeZoneRedundant ) type StorageTypeState = original.StorageTypeState @@ -763,6 +834,7 @@ const ( TypeEnumCopyOnlyFull TypeEnum = original.TypeEnumCopyOnlyFull TypeEnumDifferential TypeEnum = original.TypeEnumDifferential TypeEnumFull TypeEnum = original.TypeEnumFull + TypeEnumIncremental TypeEnum = original.TypeEnumIncremental TypeEnumInvalid TypeEnum = original.TypeEnumInvalid TypeEnumLog TypeEnum = original.TypeEnumLog ) @@ -770,12 +842,12 @@ const ( type UsagesUnit = original.UsagesUnit const ( - Bytes UsagesUnit = original.Bytes - BytesPerSecond UsagesUnit = original.BytesPerSecond - Count UsagesUnit = original.Count - CountPerSecond UsagesUnit = original.CountPerSecond - Percent UsagesUnit = original.Percent - Seconds UsagesUnit = original.Seconds + UsagesUnitBytes UsagesUnit = original.UsagesUnitBytes + UsagesUnitBytesPerSecond UsagesUnit = original.UsagesUnitBytesPerSecond + UsagesUnitCount UsagesUnit = original.UsagesUnitCount + UsagesUnitCountPerSecond UsagesUnit = original.UsagesUnitCountPerSecond + UsagesUnitPercent UsagesUnit = original.UsagesUnitPercent + UsagesUnitSeconds UsagesUnit = original.UsagesUnitSeconds ) type ValidationStatus = original.ValidationStatus @@ -812,14 +884,14 @@ const ( type WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeBasicWorkloadItem const ( - WorkloadItemTypeAzureVMWorkloadItem WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeAzureVMWorkloadItem - WorkloadItemTypeSAPAseDatabase1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSAPAseDatabase1 - WorkloadItemTypeSAPAseSystem1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSAPAseSystem1 - WorkloadItemTypeSAPHanaDatabase1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSAPHanaDatabase1 - WorkloadItemTypeSAPHanaSystem1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSAPHanaSystem1 - WorkloadItemTypeSQLDataBase1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSQLDataBase1 - WorkloadItemTypeSQLInstance1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSQLInstance1 - WorkloadItemTypeWorkloadItem WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeWorkloadItem + WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeAzureVMWorkloadItem WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeAzureVMWorkloadItem + WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPAseDatabase WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPAseDatabase + WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPAseSystem WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPAseSystem + WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPHanaDatabase WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPHanaDatabase + WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPHanaSystem WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPHanaSystem + WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSQLDataBase WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSQLDataBase + WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSQLInstance WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSQLInstance + WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeWorkloadItem WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeWorkloadItem ) type WorkloadType = original.WorkloadType @@ -842,6 +914,9 @@ const ( WorkloadTypeVMwareVM WorkloadType = original.WorkloadTypeVMwareVM ) +type AADProperties = original.AADProperties +type AADPropertiesResource = original.AADPropertiesResource +type AadPropertiesClient = original.AadPropertiesClient type AzureBackupGoalFeatureSupportRequest = original.AzureBackupGoalFeatureSupportRequest type AzureBackupServerContainer = original.AzureBackupServerContainer type AzureBackupServerEngine = original.AzureBackupServerEngine @@ -918,23 +993,31 @@ type AzureWorkloadRecoveryPoint = original.AzureWorkloadRecoveryPoint type AzureWorkloadRestoreRequest = original.AzureWorkloadRestoreRequest type AzureWorkloadSAPHanaPointInTimeRecoveryPoint = original.AzureWorkloadSAPHanaPointInTimeRecoveryPoint type AzureWorkloadSAPHanaPointInTimeRestoreRequest = original.AzureWorkloadSAPHanaPointInTimeRestoreRequest +type AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest = original.AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest type AzureWorkloadSAPHanaRecoveryPoint = original.AzureWorkloadSAPHanaRecoveryPoint type AzureWorkloadSAPHanaRestoreRequest = original.AzureWorkloadSAPHanaRestoreRequest +type AzureWorkloadSAPHanaRestoreWithRehydrateRequest = original.AzureWorkloadSAPHanaRestoreWithRehydrateRequest type AzureWorkloadSQLAutoProtectionIntent = original.AzureWorkloadSQLAutoProtectionIntent type AzureWorkloadSQLPointInTimeRecoveryPoint = original.AzureWorkloadSQLPointInTimeRecoveryPoint type AzureWorkloadSQLPointInTimeRestoreRequest = original.AzureWorkloadSQLPointInTimeRestoreRequest +type AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest = original.AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest type AzureWorkloadSQLRecoveryPoint = original.AzureWorkloadSQLRecoveryPoint type AzureWorkloadSQLRecoveryPointExtendedInfo = original.AzureWorkloadSQLRecoveryPointExtendedInfo type AzureWorkloadSQLRestoreRequest = original.AzureWorkloadSQLRestoreRequest +type AzureWorkloadSQLRestoreWithRehydrateRequest = original.AzureWorkloadSQLRestoreWithRehydrateRequest type BEKDetails = original.BEKDetails +type BMSAADPropertiesQueryObject = original.BMSAADPropertiesQueryObject type BMSBackupEngineQueryObject = original.BMSBackupEngineQueryObject type BMSBackupEnginesQueryObject = original.BMSBackupEnginesQueryObject type BMSBackupSummariesQueryObject = original.BMSBackupSummariesQueryObject type BMSContainerQueryObject = original.BMSContainerQueryObject type BMSContainersInquiryQueryObject = original.BMSContainersInquiryQueryObject type BMSPOQueryObject = original.BMSPOQueryObject +type BMSPrepareDataMoveFuture = original.BMSPrepareDataMoveFuture +type BMSPrepareDataMoveOperationResultClient = original.BMSPrepareDataMoveOperationResultClient type BMSRPQueryObject = original.BMSRPQueryObject type BMSRefreshContainersQueryObject = original.BMSRefreshContainersQueryObject +type BMSTriggerDataMoveFuture = original.BMSTriggerDataMoveFuture type BMSWorkloadItemQueryObject = original.BMSWorkloadItemQueryObject type BackupsClient = original.BackupsClient type BaseClient = original.BaseClient @@ -948,15 +1031,19 @@ type BasicAzureWorkloadContainer = original.BasicAzureWorkloadContainer type BasicAzureWorkloadPointInTimeRecoveryPoint = original.BasicAzureWorkloadPointInTimeRecoveryPoint type BasicAzureWorkloadRecoveryPoint = original.BasicAzureWorkloadRecoveryPoint type BasicAzureWorkloadRestoreRequest = original.BasicAzureWorkloadRestoreRequest +type BasicAzureWorkloadSAPHanaPointInTimeRestoreRequest = original.BasicAzureWorkloadSAPHanaPointInTimeRestoreRequest type BasicAzureWorkloadSAPHanaRestoreRequest = original.BasicAzureWorkloadSAPHanaRestoreRequest +type BasicAzureWorkloadSQLPointInTimeRestoreRequest = original.BasicAzureWorkloadSQLPointInTimeRestoreRequest type BasicAzureWorkloadSQLRecoveryPoint = original.BasicAzureWorkloadSQLRecoveryPoint type BasicAzureWorkloadSQLRestoreRequest = original.BasicAzureWorkloadSQLRestoreRequest +type BasicCrrAccessToken = original.BasicCrrAccessToken type BasicDpmContainer = original.BasicDpmContainer type BasicEngineBase = original.BasicEngineBase type BasicFeatureSupportRequest = original.BasicFeatureSupportRequest type BasicILRRequest = original.BasicILRRequest type BasicIaaSVMContainer = original.BasicIaaSVMContainer type BasicIaaSVMProtectableItem = original.BasicIaaSVMProtectableItem +type BasicIaasVMRestoreRequest = original.BasicIaasVMRestoreRequest type BasicJob = original.BasicJob type BasicOperationResultInfoBase = original.BasicOperationResultInfoBase type BasicOperationStatusExtendedInfo = original.BasicOperationStatusExtendedInfo @@ -972,6 +1059,7 @@ type BasicRetentionPolicy = original.BasicRetentionPolicy type BasicSchedulePolicy = original.BasicSchedulePolicy type BasicValidateOperationRequest = original.BasicValidateOperationRequest type BasicValidateRestoreOperationRequest = original.BasicValidateRestoreOperationRequest +type BasicVaultStorageConfigOperationResultResponse = original.BasicVaultStorageConfigOperationResultResponse type BasicWorkloadItem = original.BasicWorkloadItem type BasicWorkloadProtectableItem = original.BasicWorkloadProtectableItem type ClientDiscoveryDisplay = original.ClientDiscoveryDisplay @@ -983,7 +1071,21 @@ type ClientDiscoveryResponseIterator = original.ClientDiscoveryResponseIterator type ClientDiscoveryResponsePage = original.ClientDiscoveryResponsePage type ClientDiscoveryValueForSingleAPI = original.ClientDiscoveryValueForSingleAPI type ClientScriptForConnect = original.ClientScriptForConnect +type CloudError = original.CloudError +type CloudErrorBody = original.CloudErrorBody type ContainerIdentityInfo = original.ContainerIdentityInfo +type CrossRegionRestoreClient = original.CrossRegionRestoreClient +type CrossRegionRestoreRequest = original.CrossRegionRestoreRequest +type CrossRegionRestoreRequestResource = original.CrossRegionRestoreRequestResource +type CrossRegionRestoreTriggerFuture = original.CrossRegionRestoreTriggerFuture +type CrrAccessToken = original.CrrAccessToken +type CrrAccessTokenResource = original.CrrAccessTokenResource +type CrrJobDetailsClient = original.CrrJobDetailsClient +type CrrJobRequest = original.CrrJobRequest +type CrrJobRequestResource = original.CrrJobRequestResource +type CrrJobsClient = original.CrrJobsClient +type CrrOperationResultsClient = original.CrrOperationResultsClient +type CrrOperationStatusClient = original.CrrOperationStatusClient type DPMContainerExtendedInfo = original.DPMContainerExtendedInfo type DPMProtectedItem = original.DPMProtectedItem type DPMProtectedItemExtendedInfo = original.DPMProtectedItemExtendedInfo @@ -1009,7 +1111,6 @@ type EngineExtendedInfo = original.EngineExtendedInfo type EnginesClient = original.EnginesClient type ErrorAdditionalInfo = original.ErrorAdditionalInfo type ErrorDetail = original.ErrorDetail -type ErrorResponse = original.ErrorResponse type ExportJobsOperationResultInfo = original.ExportJobsOperationResultInfo type ExportJobsOperationResultsClient = original.ExportJobsOperationResultsClient type ExtendedProperties = original.ExtendedProperties @@ -1029,6 +1130,7 @@ type IaasVMBackupRequest = original.IaasVMBackupRequest type IaasVMILRRegistrationRequest = original.IaasVMILRRegistrationRequest type IaasVMRecoveryPoint = original.IaasVMRecoveryPoint type IaasVMRestoreRequest = original.IaasVMRestoreRequest +type IaasVMRestoreWithRehydrationRequest = original.IaasVMRestoreWithRehydrationRequest type InquiryInfo = original.InquiryInfo type InquiryValidation = original.InquiryValidation type InstantItemRecoveryTarget = original.InstantItemRecoveryTarget @@ -1048,6 +1150,7 @@ type JobsGroupClient = original.JobsGroupClient type KEKDetails = original.KEKDetails type KPIResourceHealthDetails = original.KPIResourceHealthDetails type KeyAndSecretDetails = original.KeyAndSecretDetails +type ListRecoveryPointsRecommendedForMoveRequest = original.ListRecoveryPointsRecommendedForMoveRequest type LogSchedulePolicy = original.LogSchedulePolicy type LongTermRetentionPolicy = original.LongTermRetentionPolicy type LongTermSchedulePolicy = original.LongTermSchedulePolicy @@ -1064,7 +1167,11 @@ type MabProtectionPolicy = original.MabProtectionPolicy type ManagementUsage = original.ManagementUsage type ManagementUsageList = original.ManagementUsageList type MonthlyRetentionSchedule = original.MonthlyRetentionSchedule +type MoveRPAcrossTiersRequest = original.MoveRPAcrossTiersRequest +type MoveRecoveryPointFuture = original.MoveRecoveryPointFuture type NameInfo = original.NameInfo +type NewErrorResponse = original.NewErrorResponse +type NewErrorResponseError = original.NewErrorResponseError type OperationClient = original.OperationClient type OperationResultInfo = original.OperationResultInfo type OperationResultInfoBase = original.OperationResultInfoBase @@ -1076,6 +1183,7 @@ type OperationStatusExtendedInfo = original.OperationStatusExtendedInfo type OperationStatusJobExtendedInfo = original.OperationStatusJobExtendedInfo type OperationStatusJobsExtendedInfo = original.OperationStatusJobsExtendedInfo type OperationStatusProvisionILRExtendedInfo = original.OperationStatusProvisionILRExtendedInfo +type OperationStatusRecoveryPointExtendedInfo = original.OperationStatusRecoveryPointExtendedInfo type OperationStatusesClient = original.OperationStatusesClient type OperationWorkerResponse = original.OperationWorkerResponse type OperationsClient = original.OperationsClient @@ -1084,7 +1192,10 @@ type PoliciesClient = original.PoliciesClient type PreBackupValidation = original.PreBackupValidation type PreValidateEnableBackupRequest = original.PreValidateEnableBackupRequest type PreValidateEnableBackupResponse = original.PreValidateEnableBackupResponse +type PrepareDataMoveRequest = original.PrepareDataMoveRequest +type PrepareDataMoveResponse = original.PrepareDataMoveResponse type PrivateEndpoint = original.PrivateEndpoint +type PrivateEndpointClient = original.PrivateEndpointClient type PrivateEndpointConnection = original.PrivateEndpointConnection type PrivateEndpointConnectionClient = original.PrivateEndpointConnectionClient type PrivateEndpointConnectionDeleteFuture = original.PrivateEndpointConnectionDeleteFuture @@ -1107,6 +1218,7 @@ type ProtectedItemResourceList = original.ProtectedItemResourceList type ProtectedItemResourceListIterator = original.ProtectedItemResourceListIterator type ProtectedItemResourceListPage = original.ProtectedItemResourceListPage type ProtectedItemsClient = original.ProtectedItemsClient +type ProtectedItemsCrrClient = original.ProtectedItemsCrrClient type ProtectedItemsGroupClient = original.ProtectedItemsGroupClient type ProtectionContainer = original.ProtectionContainer type ProtectionContainerOperationResultsClient = original.ProtectionContainerOperationResultsClient @@ -1126,6 +1238,7 @@ type ProtectionIntentResourceList = original.ProtectionIntentResourceList type ProtectionIntentResourceListIterator = original.ProtectionIntentResourceListIterator type ProtectionIntentResourceListPage = original.ProtectionIntentResourceListPage type ProtectionPoliciesClient = original.ProtectionPoliciesClient +type ProtectionPoliciesDeleteFuture = original.ProtectionPoliciesDeleteFuture type ProtectionPolicy = original.ProtectionPolicy type ProtectionPolicyOperationResultsClient = original.ProtectionPolicyOperationResultsClient type ProtectionPolicyOperationStatusesClient = original.ProtectionPolicyOperationStatusesClient @@ -1136,17 +1249,24 @@ type ProtectionPolicyResourceListIterator = original.ProtectionPolicyResourceLis type ProtectionPolicyResourceListPage = original.ProtectionPolicyResourceListPage type RecoveryPoint = original.RecoveryPoint type RecoveryPointDiskConfiguration = original.RecoveryPointDiskConfiguration +type RecoveryPointMoveReadinessInfo = original.RecoveryPointMoveReadinessInfo +type RecoveryPointRehydrationInfo = original.RecoveryPointRehydrationInfo type RecoveryPointResource = original.RecoveryPointResource type RecoveryPointResourceList = original.RecoveryPointResourceList type RecoveryPointResourceListIterator = original.RecoveryPointResourceListIterator type RecoveryPointResourceListPage = original.RecoveryPointResourceListPage type RecoveryPointTierInformation = original.RecoveryPointTierInformation type RecoveryPointsClient = original.RecoveryPointsClient +type RecoveryPointsCrrClient = original.RecoveryPointsCrrClient +type RecoveryPointsRecommendedForMoveClient = original.RecoveryPointsRecommendedForMoveClient type Request = original.Request type RequestResource = original.RequestResource type Resource = original.Resource type ResourceConfig = original.ResourceConfig type ResourceConfigResource = original.ResourceConfigResource +type ResourceEncryptionConfig = original.ResourceEncryptionConfig +type ResourceEncryptionConfigResource = original.ResourceEncryptionConfigResource +type ResourceEncryptionConfigsClient = original.ResourceEncryptionConfigsClient type ResourceHealthDetails = original.ResourceHealthDetails type ResourceList = original.ResourceList type ResourceStorageConfigsClient = original.ResourceStorageConfigsClient @@ -1157,6 +1277,7 @@ type RestoreFileSpecs = original.RestoreFileSpecs type RestoreRequest = original.RestoreRequest type RestoreRequestResource = original.RestoreRequestResource type RestoresClient = original.RestoresClient +type RestoresTriggerFuture = original.RestoresTriggerFuture type RetentionDuration = original.RetentionDuration type RetentionPolicy = original.RetentionPolicy type SQLDataDirectory = original.SQLDataDirectory @@ -1173,14 +1294,22 @@ type SubProtectionPolicy = original.SubProtectionPolicy type TargetAFSRestoreInfo = original.TargetAFSRestoreInfo type TargetRestoreInfo = original.TargetRestoreInfo type TokenInformation = original.TokenInformation +type TriggerDataMoveRequest = original.TriggerDataMoveRequest +type UsageSummariesCRRClient = original.UsageSummariesCRRClient type UsageSummariesClient = original.UsageSummariesClient type ValidateIaasVMRestoreOperationRequest = original.ValidateIaasVMRestoreOperationRequest type ValidateOperationRequest = original.ValidateOperationRequest type ValidateOperationResponse = original.ValidateOperationResponse type ValidateOperationsResponse = original.ValidateOperationsResponse type ValidateRestoreOperationRequest = original.ValidateRestoreOperationRequest +type VaultJob = original.VaultJob +type VaultJobErrorInfo = original.VaultJobErrorInfo +type VaultJobExtendedInfo = original.VaultJobExtendedInfo +type VaultStorageConfigOperationResultResponse = original.VaultStorageConfigOperationResultResponse +type VaultStorageConfigOperationResultResponseModel = original.VaultStorageConfigOperationResultResponseModel type WeeklyRetentionFormat = original.WeeklyRetentionFormat type WeeklyRetentionSchedule = original.WeeklyRetentionSchedule +type WorkloadCrrAccessToken = original.WorkloadCrrAccessToken type WorkloadInquiryDetails = original.WorkloadInquiryDetails type WorkloadItem = original.WorkloadItem type WorkloadItemResource = original.WorkloadItemResource @@ -1198,6 +1327,18 @@ type YearlyRetentionSchedule = original.YearlyRetentionSchedule func New(subscriptionID string) BaseClient { return original.New(subscriptionID) } +func NewAadPropertiesClient(subscriptionID string) AadPropertiesClient { + return original.NewAadPropertiesClient(subscriptionID) +} +func NewAadPropertiesClientWithBaseURI(baseURI string, subscriptionID string) AadPropertiesClient { + return original.NewAadPropertiesClientWithBaseURI(baseURI, subscriptionID) +} +func NewBMSPrepareDataMoveOperationResultClient(subscriptionID string) BMSPrepareDataMoveOperationResultClient { + return original.NewBMSPrepareDataMoveOperationResultClient(subscriptionID) +} +func NewBMSPrepareDataMoveOperationResultClientWithBaseURI(baseURI string, subscriptionID string) BMSPrepareDataMoveOperationResultClient { + return original.NewBMSPrepareDataMoveOperationResultClientWithBaseURI(baseURI, subscriptionID) +} func NewBackupsClient(subscriptionID string) BackupsClient { return original.NewBackupsClient(subscriptionID) } @@ -1210,6 +1351,36 @@ func NewClientDiscoveryResponseIterator(page ClientDiscoveryResponsePage) Client func NewClientDiscoveryResponsePage(cur ClientDiscoveryResponse, getNextPage func(context.Context, ClientDiscoveryResponse) (ClientDiscoveryResponse, error)) ClientDiscoveryResponsePage { return original.NewClientDiscoveryResponsePage(cur, getNextPage) } +func NewCrossRegionRestoreClient(subscriptionID string) CrossRegionRestoreClient { + return original.NewCrossRegionRestoreClient(subscriptionID) +} +func NewCrossRegionRestoreClientWithBaseURI(baseURI string, subscriptionID string) CrossRegionRestoreClient { + return original.NewCrossRegionRestoreClientWithBaseURI(baseURI, subscriptionID) +} +func NewCrrJobDetailsClient(subscriptionID string) CrrJobDetailsClient { + return original.NewCrrJobDetailsClient(subscriptionID) +} +func NewCrrJobDetailsClientWithBaseURI(baseURI string, subscriptionID string) CrrJobDetailsClient { + return original.NewCrrJobDetailsClientWithBaseURI(baseURI, subscriptionID) +} +func NewCrrJobsClient(subscriptionID string) CrrJobsClient { + return original.NewCrrJobsClient(subscriptionID) +} +func NewCrrJobsClientWithBaseURI(baseURI string, subscriptionID string) CrrJobsClient { + return original.NewCrrJobsClientWithBaseURI(baseURI, subscriptionID) +} +func NewCrrOperationResultsClient(subscriptionID string) CrrOperationResultsClient { + return original.NewCrrOperationResultsClient(subscriptionID) +} +func NewCrrOperationResultsClientWithBaseURI(baseURI string, subscriptionID string) CrrOperationResultsClient { + return original.NewCrrOperationResultsClientWithBaseURI(baseURI, subscriptionID) +} +func NewCrrOperationStatusClient(subscriptionID string) CrrOperationStatusClient { + return original.NewCrrOperationStatusClient(subscriptionID) +} +func NewCrrOperationStatusClientWithBaseURI(baseURI string, subscriptionID string) CrrOperationStatusClient { + return original.NewCrrOperationStatusClientWithBaseURI(baseURI, subscriptionID) +} func NewEngineBaseResourceListIterator(page EngineBaseResourceListPage) EngineBaseResourceListIterator { return original.NewEngineBaseResourceListIterator(page) } @@ -1306,6 +1477,12 @@ func NewPoliciesClient(subscriptionID string) PoliciesClient { func NewPoliciesClientWithBaseURI(baseURI string, subscriptionID string) PoliciesClient { return original.NewPoliciesClientWithBaseURI(baseURI, subscriptionID) } +func NewPrivateEndpointClient(subscriptionID string) PrivateEndpointClient { + return original.NewPrivateEndpointClient(subscriptionID) +} +func NewPrivateEndpointClientWithBaseURI(baseURI string, subscriptionID string) PrivateEndpointClient { + return original.NewPrivateEndpointClientWithBaseURI(baseURI, subscriptionID) +} func NewPrivateEndpointConnectionClient(subscriptionID string) PrivateEndpointConnectionClient { return original.NewPrivateEndpointConnectionClient(subscriptionID) } @@ -1354,6 +1531,12 @@ func NewProtectedItemsClient(subscriptionID string) ProtectedItemsClient { func NewProtectedItemsClientWithBaseURI(baseURI string, subscriptionID string) ProtectedItemsClient { return original.NewProtectedItemsClientWithBaseURI(baseURI, subscriptionID) } +func NewProtectedItemsCrrClient(subscriptionID string) ProtectedItemsCrrClient { + return original.NewProtectedItemsCrrClient(subscriptionID) +} +func NewProtectedItemsCrrClientWithBaseURI(baseURI string, subscriptionID string) ProtectedItemsCrrClient { + return original.NewProtectedItemsCrrClientWithBaseURI(baseURI, subscriptionID) +} func NewProtectedItemsGroupClient(subscriptionID string) ProtectedItemsGroupClient { return original.NewProtectedItemsGroupClient(subscriptionID) } @@ -1444,6 +1627,24 @@ func NewRecoveryPointsClient(subscriptionID string) RecoveryPointsClient { func NewRecoveryPointsClientWithBaseURI(baseURI string, subscriptionID string) RecoveryPointsClient { return original.NewRecoveryPointsClientWithBaseURI(baseURI, subscriptionID) } +func NewRecoveryPointsCrrClient(subscriptionID string) RecoveryPointsCrrClient { + return original.NewRecoveryPointsCrrClient(subscriptionID) +} +func NewRecoveryPointsCrrClientWithBaseURI(baseURI string, subscriptionID string) RecoveryPointsCrrClient { + return original.NewRecoveryPointsCrrClientWithBaseURI(baseURI, subscriptionID) +} +func NewRecoveryPointsRecommendedForMoveClient(subscriptionID string) RecoveryPointsRecommendedForMoveClient { + return original.NewRecoveryPointsRecommendedForMoveClient(subscriptionID) +} +func NewRecoveryPointsRecommendedForMoveClientWithBaseURI(baseURI string, subscriptionID string) RecoveryPointsRecommendedForMoveClient { + return original.NewRecoveryPointsRecommendedForMoveClientWithBaseURI(baseURI, subscriptionID) +} +func NewResourceEncryptionConfigsClient(subscriptionID string) ResourceEncryptionConfigsClient { + return original.NewResourceEncryptionConfigsClient(subscriptionID) +} +func NewResourceEncryptionConfigsClientWithBaseURI(baseURI string, subscriptionID string) ResourceEncryptionConfigsClient { + return original.NewResourceEncryptionConfigsClientWithBaseURI(baseURI, subscriptionID) +} func NewResourceStorageConfigsClient(subscriptionID string) ResourceStorageConfigsClient { return original.NewResourceStorageConfigsClient(subscriptionID) } @@ -1474,6 +1675,12 @@ func NewStatusClient(subscriptionID string) StatusClient { func NewStatusClientWithBaseURI(baseURI string, subscriptionID string) StatusClient { return original.NewStatusClientWithBaseURI(baseURI, subscriptionID) } +func NewUsageSummariesCRRClient(subscriptionID string) UsageSummariesCRRClient { + return original.NewUsageSummariesCRRClient(subscriptionID) +} +func NewUsageSummariesCRRClientWithBaseURI(baseURI string, subscriptionID string) UsageSummariesCRRClient { + return original.NewUsageSummariesCRRClientWithBaseURI(baseURI, subscriptionID) +} func NewUsageSummariesClient(subscriptionID string) UsageSummariesClient { return original.NewUsageSummariesClient(subscriptionID) } @@ -1516,12 +1723,18 @@ func PossibleCopyOptionsValues() []CopyOptions { func PossibleCreateModeValues() []CreateMode { return original.PossibleCreateModeValues() } +func PossibleDataMoveLevelValues() []DataMoveLevel { + return original.PossibleDataMoveLevelValues() +} func PossibleDataSourceTypeValues() []DataSourceType { return original.PossibleDataSourceTypeValues() } func PossibleDayOfWeekValues() []DayOfWeek { return original.PossibleDayOfWeekValues() } +func PossibleEncryptionAtRestTypeValues() []EncryptionAtRestType { + return original.PossibleEncryptionAtRestTypeValues() +} func PossibleEngineTypeValues() []EngineType { return original.PossibleEngineTypeValues() } @@ -1543,6 +1756,9 @@ func PossibleHealthStateValues() []HealthState { func PossibleHealthStatusValues() []HealthStatus { return original.PossibleHealthStatusValues() } +func PossibleInfrastructureEncryptionStateValues() []InfrastructureEncryptionState { + return original.PossibleInfrastructureEncryptionStateValues() +} func PossibleInquiryStatusValues() []InquiryStatus { return original.PossibleInquiryStatusValues() } @@ -1567,6 +1783,9 @@ func PossibleJobTypeValues() []JobType { func PossibleLastBackupStatusValues() []LastBackupStatus { return original.PossibleLastBackupStatusValues() } +func PossibleLastUpdateStatusValues() []LastUpdateStatus { + return original.PossibleLastUpdateStatusValues() +} func PossibleMabServerTypeValues() []MabServerType { return original.PossibleMabServerTypeValues() } @@ -1579,11 +1798,14 @@ func PossibleManagementTypeValues() []ManagementType { func PossibleMonthOfYearValues() []MonthOfYear { return original.PossibleMonthOfYearValues() } +func PossibleObjectTypeBasicCrrAccessTokenValues() []ObjectTypeBasicCrrAccessToken { + return original.PossibleObjectTypeBasicCrrAccessTokenValues() +} func PossibleObjectTypeBasicILRRequestValues() []ObjectTypeBasicILRRequest { return original.PossibleObjectTypeBasicILRRequestValues() } -func PossibleObjectTypeBasicOperationResultInfoBaseValues() []ObjectTypeBasicOperationResultInfoBase { - return original.PossibleObjectTypeBasicOperationResultInfoBaseValues() +func PossibleObjectTypeBasicOperationStatusExtendedInfoValues() []ObjectTypeBasicOperationStatusExtendedInfo { + return original.PossibleObjectTypeBasicOperationStatusExtendedInfoValues() } func PossibleObjectTypeBasicRecoveryPointValues() []ObjectTypeBasicRecoveryPoint { return original.PossibleObjectTypeBasicRecoveryPointValues() @@ -1597,6 +1819,9 @@ func PossibleObjectTypeBasicRestoreRequestValues() []ObjectTypeBasicRestoreReque func PossibleObjectTypeBasicValidateOperationRequestValues() []ObjectTypeBasicValidateOperationRequest { return original.PossibleObjectTypeBasicValidateOperationRequestValues() } +func PossibleObjectTypeBasicVaultStorageConfigOperationResultResponseValues() []ObjectTypeBasicVaultStorageConfigOperationResultResponse { + return original.PossibleObjectTypeBasicVaultStorageConfigOperationResultResponseValues() +} func PossibleObjectTypeValues() []ObjectType { return original.PossibleObjectTypeValues() } @@ -1654,6 +1879,9 @@ func PossibleRecoveryPointTierTypeValues() []RecoveryPointTierType { func PossibleRecoveryTypeValues() []RecoveryType { return original.PossibleRecoveryTypeValues() } +func PossibleRehydrationPriorityValues() []RehydrationPriority { + return original.PossibleRehydrationPriorityValues() +} func PossibleResourceHealthStatusValues() []ResourceHealthStatus { return original.PossibleResourceHealthStatusValues() } diff --git a/profiles/preview/securityinsight/mgmt/securityinsight/models.go b/profiles/preview/securityinsight/mgmt/securityinsight/models.go index dd1da8d279ed..9bc27c9727b0 100644 --- a/profiles/preview/securityinsight/mgmt/securityinsight/models.go +++ b/profiles/preview/securityinsight/mgmt/securityinsight/models.go @@ -127,10 +127,10 @@ const ( type Kind = original.Kind const ( - KindKindAlertRule Kind = original.KindKindAlertRule - KindKindFusion Kind = original.KindKindFusion - KindKindMicrosoftSecurityIncidentCreation Kind = original.KindKindMicrosoftSecurityIncidentCreation - KindKindScheduled Kind = original.KindKindScheduled + KindAlertRule Kind = original.KindAlertRule + KindFusion Kind = original.KindFusion + KindMicrosoftSecurityIncidentCreation Kind = original.KindMicrosoftSecurityIncidentCreation + KindScheduled Kind = original.KindScheduled ) type KindBasicAlertRuleTemplate = original.KindBasicAlertRuleTemplate diff --git a/profiles/preview/virtualmachineimagebuilder/mgmt/virtualmachineimagebuilder/models.go b/profiles/preview/virtualmachineimagebuilder/mgmt/virtualmachineimagebuilder/models.go index f841ef29ad14..2314ee49ddc5 100644 --- a/profiles/preview/virtualmachineimagebuilder/mgmt/virtualmachineimagebuilder/models.go +++ b/profiles/preview/virtualmachineimagebuilder/mgmt/virtualmachineimagebuilder/models.go @@ -11,7 +11,7 @@ package virtualmachineimagebuilder import ( "context" - original "github.com/Azure/azure-sdk-for-go/services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder" + original "github.com/Azure/azure-sdk-for-go/services/virtualmachineimagebuilder/mgmt/2020-02-14/virtualmachineimagebuilder" ) const ( @@ -21,34 +21,34 @@ const ( type ProvisioningErrorCode = original.ProvisioningErrorCode const ( - BadCustomizerType ProvisioningErrorCode = original.BadCustomizerType - BadDistributeType ProvisioningErrorCode = original.BadDistributeType - BadManagedImageSource ProvisioningErrorCode = original.BadManagedImageSource - BadPIRSource ProvisioningErrorCode = original.BadPIRSource - BadSharedImageDistribute ProvisioningErrorCode = original.BadSharedImageDistribute - BadSharedImageVersionSource ProvisioningErrorCode = original.BadSharedImageVersionSource - BadSourceType ProvisioningErrorCode = original.BadSourceType - NoCustomizerScript ProvisioningErrorCode = original.NoCustomizerScript - Other ProvisioningErrorCode = original.Other - ServerError ProvisioningErrorCode = original.ServerError - UnsupportedCustomizerType ProvisioningErrorCode = original.UnsupportedCustomizerType + ProvisioningErrorCodeBadCustomizerType ProvisioningErrorCode = original.ProvisioningErrorCodeBadCustomizerType + ProvisioningErrorCodeBadDistributeType ProvisioningErrorCode = original.ProvisioningErrorCodeBadDistributeType + ProvisioningErrorCodeBadManagedImageSource ProvisioningErrorCode = original.ProvisioningErrorCodeBadManagedImageSource + ProvisioningErrorCodeBadPIRSource ProvisioningErrorCode = original.ProvisioningErrorCodeBadPIRSource + ProvisioningErrorCodeBadSharedImageDistribute ProvisioningErrorCode = original.ProvisioningErrorCodeBadSharedImageDistribute + ProvisioningErrorCodeBadSharedImageVersionSource ProvisioningErrorCode = original.ProvisioningErrorCodeBadSharedImageVersionSource + ProvisioningErrorCodeBadSourceType ProvisioningErrorCode = original.ProvisioningErrorCodeBadSourceType + ProvisioningErrorCodeNoCustomizerScript ProvisioningErrorCode = original.ProvisioningErrorCodeNoCustomizerScript + ProvisioningErrorCodeOther ProvisioningErrorCode = original.ProvisioningErrorCodeOther + ProvisioningErrorCodeServerError ProvisioningErrorCode = original.ProvisioningErrorCodeServerError + ProvisioningErrorCodeUnsupportedCustomizerType ProvisioningErrorCode = original.ProvisioningErrorCodeUnsupportedCustomizerType ) type ProvisioningState = original.ProvisioningState const ( - Creating ProvisioningState = original.Creating - Deleting ProvisioningState = original.Deleting - Failed ProvisioningState = original.Failed - Succeeded ProvisioningState = original.Succeeded - Updating ProvisioningState = original.Updating + ProvisioningStateCreating ProvisioningState = original.ProvisioningStateCreating + ProvisioningStateDeleting ProvisioningState = original.ProvisioningStateDeleting + ProvisioningStateFailed ProvisioningState = original.ProvisioningStateFailed + ProvisioningStateSucceeded ProvisioningState = original.ProvisioningStateSucceeded + ProvisioningStateUpdating ProvisioningState = original.ProvisioningStateUpdating ) type ResourceIdentityType = original.ResourceIdentityType const ( - None ResourceIdentityType = original.None - UserAssigned ResourceIdentityType = original.UserAssigned + ResourceIdentityTypeNone ResourceIdentityType = original.ResourceIdentityTypeNone + ResourceIdentityTypeUserAssigned ResourceIdentityType = original.ResourceIdentityTypeUserAssigned ) type RunState = original.RunState @@ -65,17 +65,17 @@ const ( type RunSubState = original.RunSubState const ( - Building RunSubState = original.Building - Customizing RunSubState = original.Customizing - Distributing RunSubState = original.Distributing - Queued RunSubState = original.Queued + RunSubStateBuilding RunSubState = original.RunSubStateBuilding + RunSubStateCustomizing RunSubState = original.RunSubStateCustomizing + RunSubStateDistributing RunSubState = original.RunSubStateDistributing + RunSubStateQueued RunSubState = original.RunSubStateQueued ) type SharedImageStorageAccountType = original.SharedImageStorageAccountType const ( - StandardLRS SharedImageStorageAccountType = original.StandardLRS - StandardZRS SharedImageStorageAccountType = original.StandardZRS + SharedImageStorageAccountTypeStandardLRS SharedImageStorageAccountType = original.SharedImageStorageAccountTypeStandardLRS + SharedImageStorageAccountTypeStandardZRS SharedImageStorageAccountType = original.SharedImageStorageAccountTypeStandardZRS ) type Type = original.Type @@ -90,12 +90,12 @@ const ( type TypeBasicImageTemplateCustomizer = original.TypeBasicImageTemplateCustomizer const ( - TypeFile TypeBasicImageTemplateCustomizer = original.TypeFile - TypeImageTemplateCustomizer TypeBasicImageTemplateCustomizer = original.TypeImageTemplateCustomizer - TypePowerShell TypeBasicImageTemplateCustomizer = original.TypePowerShell - TypeShell TypeBasicImageTemplateCustomizer = original.TypeShell - TypeWindowsRestart TypeBasicImageTemplateCustomizer = original.TypeWindowsRestart - TypeWindowsUpdate TypeBasicImageTemplateCustomizer = original.TypeWindowsUpdate + TypeBasicImageTemplateCustomizerTypeFile TypeBasicImageTemplateCustomizer = original.TypeBasicImageTemplateCustomizerTypeFile + TypeBasicImageTemplateCustomizerTypeImageTemplateCustomizer TypeBasicImageTemplateCustomizer = original.TypeBasicImageTemplateCustomizerTypeImageTemplateCustomizer + TypeBasicImageTemplateCustomizerTypePowerShell TypeBasicImageTemplateCustomizer = original.TypeBasicImageTemplateCustomizerTypePowerShell + TypeBasicImageTemplateCustomizerTypeShell TypeBasicImageTemplateCustomizer = original.TypeBasicImageTemplateCustomizerTypeShell + TypeBasicImageTemplateCustomizerTypeWindowsRestart TypeBasicImageTemplateCustomizer = original.TypeBasicImageTemplateCustomizerTypeWindowsRestart + TypeBasicImageTemplateCustomizerTypeWindowsUpdate TypeBasicImageTemplateCustomizer = original.TypeBasicImageTemplateCustomizerTypeWindowsUpdate ) type TypeBasicImageTemplateDistributor = original.TypeBasicImageTemplateDistributor diff --git a/profiles/preview/virtualmachineimagebuilder/mgmt/virtualmachineimagebuilder/virtualmachineimagebuilderapi/models.go b/profiles/preview/virtualmachineimagebuilder/mgmt/virtualmachineimagebuilder/virtualmachineimagebuilderapi/models.go index 4cf735c6d25e..ca1d76d21513 100644 --- a/profiles/preview/virtualmachineimagebuilder/mgmt/virtualmachineimagebuilder/virtualmachineimagebuilderapi/models.go +++ b/profiles/preview/virtualmachineimagebuilder/mgmt/virtualmachineimagebuilder/virtualmachineimagebuilderapi/models.go @@ -8,7 +8,7 @@ package virtualmachineimagebuilderapi -import original "github.com/Azure/azure-sdk-for-go/services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder/virtualmachineimagebuilderapi" +import original "github.com/Azure/azure-sdk-for-go/services/virtualmachineimagebuilder/mgmt/2020-02-14/virtualmachineimagebuilder/virtualmachineimagebuilderapi" type OperationsClientAPI = original.OperationsClientAPI type VirtualMachineImageTemplatesClientAPI = original.VirtualMachineImageTemplatesClientAPI diff --git a/services/aad/mgmt/2017-04-01/aad/CHANGELOG.md b/services/aad/mgmt/2017-04-01/aad/CHANGELOG.md index 52911e4cc5e4..1fd7fd2294b8 100644 --- a/services/aad/mgmt/2017-04-01/aad/CHANGELOG.md +++ b/services/aad/mgmt/2017-04-01/aad/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. ErrorDefinition.MarshalJSON() ([]byte, error) +1. ProxyOnlyResource.MarshalJSON() ([]byte, error) diff --git a/services/aad/mgmt/2017-04-01/aad/_meta.json b/services/aad/mgmt/2017-04-01/aad/_meta.json index 980b2079d528..e76c90bd311e 100644 --- a/services/aad/mgmt/2017-04-01/aad/_meta.json +++ b/services/aad/mgmt/2017-04-01/aad/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/azureactivedirectory/resource-manager/readme.md", "tag": "package-2017-04-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-04-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/azureactivedirectory/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-04-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/azureactivedirectory/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/aad/mgmt/2017-04-01/aad/models.go b/services/aad/mgmt/2017-04-01/aad/models.go index 84c4441e84d5..63f97e14f7ac 100644 --- a/services/aad/mgmt/2017-04-01/aad/models.go +++ b/services/aad/mgmt/2017-04-01/aad/models.go @@ -222,6 +222,12 @@ type ErrorDefinition struct { Details *[]ErrorDefinition `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDefinition. +func (ed ErrorDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse error response. type ErrorResponse struct { // Error - The error details. @@ -267,6 +273,12 @@ type ProxyOnlyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyOnlyResource. +func (por ProxyOnlyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RetentionPolicy specifies the retention policy for the log. type RetentionPolicy struct { // Enabled - A value indicating whether the retention policy is enabled. diff --git a/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/_meta.json b/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/_meta.json index 0c15f97b9249..4d71b7e5e35a 100644 --- a/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/_meta.json +++ b/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/adhybridhealthservice/resource-manager/readme.md", "tag": "package-2014-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2014-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/adhybridhealthservice/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2014-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/adhybridhealthservice/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/advisor/mgmt/2017-03-31/advisor/CHANGELOG.md b/services/advisor/mgmt/2017-03-31/advisor/CHANGELOG.md index 52911e4cc5e4..f817772e217f 100644 --- a/services/advisor/mgmt/2017-03-31/advisor/CHANGELOG.md +++ b/services/advisor/mgmt/2017-03-31/advisor/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/advisor/mgmt/2017-03-31/advisor/_meta.json b/services/advisor/mgmt/2017-03-31/advisor/_meta.json index 75732c00ad17..2dd11069ebcf 100644 --- a/services/advisor/mgmt/2017-03-31/advisor/_meta.json +++ b/services/advisor/mgmt/2017-03-31/advisor/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/advisor/resource-manager/readme.md", "tag": "package-2017-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/advisor/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/advisor/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/advisor/mgmt/2017-03-31/advisor/models.go b/services/advisor/mgmt/2017-03-31/advisor/models.go index 19317eb02006..e641f7d1b5cc 100644 --- a/services/advisor/mgmt/2017-03-31/advisor/models.go +++ b/services/advisor/mgmt/2017-03-31/advisor/models.go @@ -275,6 +275,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceRecommendationBase advisor Recommendation. type ResourceRecommendationBase struct { autorest.Response `json:"-"` diff --git a/services/advisor/mgmt/2017-04-19/advisor/CHANGELOG.md b/services/advisor/mgmt/2017-04-19/advisor/CHANGELOG.md index 52911e4cc5e4..f817772e217f 100644 --- a/services/advisor/mgmt/2017-04-19/advisor/CHANGELOG.md +++ b/services/advisor/mgmt/2017-04-19/advisor/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/advisor/mgmt/2017-04-19/advisor/_meta.json b/services/advisor/mgmt/2017-04-19/advisor/_meta.json index d3894b5fbb68..b86526215520 100644 --- a/services/advisor/mgmt/2017-04-19/advisor/_meta.json +++ b/services/advisor/mgmt/2017-04-19/advisor/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/advisor/resource-manager/readme.md", "tag": "package-2017-04", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/advisor/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/advisor/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/advisor/mgmt/2017-04-19/advisor/models.go b/services/advisor/mgmt/2017-04-19/advisor/models.go index 9d498f3cc1b4..8f31f70cb0bc 100644 --- a/services/advisor/mgmt/2017-04-19/advisor/models.go +++ b/services/advisor/mgmt/2017-04-19/advisor/models.go @@ -784,6 +784,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceRecommendationBase advisor Recommendation. type ResourceRecommendationBase struct { autorest.Response `json:"-"` diff --git a/services/advisor/mgmt/2020-01-01/advisor/CHANGELOG.md b/services/advisor/mgmt/2020-01-01/advisor/CHANGELOG.md index 52911e4cc5e4..f817772e217f 100644 --- a/services/advisor/mgmt/2020-01-01/advisor/CHANGELOG.md +++ b/services/advisor/mgmt/2020-01-01/advisor/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/advisor/mgmt/2020-01-01/advisor/_meta.json b/services/advisor/mgmt/2020-01-01/advisor/_meta.json index 48404748b437..9547c608c8aa 100644 --- a/services/advisor/mgmt/2020-01-01/advisor/_meta.json +++ b/services/advisor/mgmt/2020-01-01/advisor/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/advisor/resource-manager/readme.md", "tag": "package-2020-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/advisor/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/advisor/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/advisor/mgmt/2020-01-01/advisor/models.go b/services/advisor/mgmt/2020-01-01/advisor/models.go index 5d80384208c3..2fd90f29c70d 100644 --- a/services/advisor/mgmt/2020-01-01/advisor/models.go +++ b/services/advisor/mgmt/2020-01-01/advisor/models.go @@ -810,6 +810,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceMetadata recommendation resource metadata type ResourceMetadata struct { // ResourceID - Azure resource Id of the assessed resource diff --git a/services/alertsmanagement/mgmt/2018-05-05/alertsmanagement/CHANGELOG.md b/services/alertsmanagement/mgmt/2018-05-05/alertsmanagement/CHANGELOG.md index 52911e4cc5e4..f817772e217f 100644 --- a/services/alertsmanagement/mgmt/2018-05-05/alertsmanagement/CHANGELOG.md +++ b/services/alertsmanagement/mgmt/2018-05-05/alertsmanagement/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/alertsmanagement/mgmt/2018-05-05/alertsmanagement/_meta.json b/services/alertsmanagement/mgmt/2018-05-05/alertsmanagement/_meta.json index d25718d84d5e..3ddb21e405aa 100644 --- a/services/alertsmanagement/mgmt/2018-05-05/alertsmanagement/_meta.json +++ b/services/alertsmanagement/mgmt/2018-05-05/alertsmanagement/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/alertsmanagement/resource-manager/readme.md", "tag": "package-2018-05", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/alertsmanagement/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/alertsmanagement/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/alertsmanagement/mgmt/2018-05-05/alertsmanagement/models.go b/services/alertsmanagement/mgmt/2018-05-05/alertsmanagement/models.go index b1fde3119076..2da32e2cbca0 100644 --- a/services/alertsmanagement/mgmt/2018-05-05/alertsmanagement/models.go +++ b/services/alertsmanagement/mgmt/2018-05-05/alertsmanagement/models.go @@ -569,6 +569,12 @@ type Resource struct { Name *string `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SmartGroup set of related alerts grouped together smartly by AMS. type SmartGroup struct { autorest.Response `json:"-"` diff --git a/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/CHANGELOG.md b/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/CHANGELOG.md index 52911e4cc5e4..0313001b800d 100644 --- a/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/CHANGELOG.md +++ b/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureResource.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) diff --git a/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/_meta.json b/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/_meta.json index dc5fb98cd233..646e457b598e 100644 --- a/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/_meta.json +++ b/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/alertsmanagement/resource-manager/readme.md", "tag": "package-2019-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/alertsmanagement/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/alertsmanagement/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/models.go b/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/models.go index 2753774295ee..06f4c6f71832 100644 --- a/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/models.go +++ b/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/models.go @@ -682,6 +682,12 @@ type AzureResource struct { Name *string `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for AzureResource. +func (ar AzureResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Detector the detector information. By default this is not populated, unless it's specified in // expandDetector type Detector struct { @@ -1029,6 +1035,12 @@ type ProxyResource struct { Name *string `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SmartDetectorErrorResponse describe the format of an Error response. type SmartDetectorErrorResponse struct { // Code - Error code diff --git a/services/analysisservices/mgmt/2016-05-16/analysisservices/_meta.json b/services/analysisservices/mgmt/2016-05-16/analysisservices/_meta.json index 4028b5161c11..172c721c7480 100644 --- a/services/analysisservices/mgmt/2016-05-16/analysisservices/_meta.json +++ b/services/analysisservices/mgmt/2016-05-16/analysisservices/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/analysisservices/resource-manager/readme.md", "tag": "package-2016-05", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/analysisservices/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/analysisservices/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/analysisservices/mgmt/2017-07-14/analysisservices/_meta.json b/services/analysisservices/mgmt/2017-07-14/analysisservices/_meta.json index 761736db3f63..0465a5bda423 100644 --- a/services/analysisservices/mgmt/2017-07-14/analysisservices/_meta.json +++ b/services/analysisservices/mgmt/2017-07-14/analysisservices/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/analysisservices/resource-manager/readme.md", "tag": "package-2017-07", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/analysisservices/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/analysisservices/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/analysisservices/mgmt/2017-08-01/analysisservices/CHANGELOG.md b/services/analysisservices/mgmt/2017-08-01/analysisservices/CHANGELOG.md index 52911e4cc5e4..fa72975a9186 100644 --- a/services/analysisservices/mgmt/2017-08-01/analysisservices/CHANGELOG.md +++ b/services/analysisservices/mgmt/2017-08-01/analysisservices/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) diff --git a/services/analysisservices/mgmt/2017-08-01/analysisservices/_meta.json b/services/analysisservices/mgmt/2017-08-01/analysisservices/_meta.json index 842727d318a1..60ba72f1fa23 100644 --- a/services/analysisservices/mgmt/2017-08-01/analysisservices/_meta.json +++ b/services/analysisservices/mgmt/2017-08-01/analysisservices/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/analysisservices/resource-manager/readme.md", "tag": "package-2017-08", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/analysisservices/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/analysisservices/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/analysisservices/mgmt/2017-08-01/analysisservices/models.go b/services/analysisservices/mgmt/2017-08-01/analysisservices/models.go index acee3ad87a85..ca6e47643514 100644 --- a/services/analysisservices/mgmt/2017-08-01/analysisservices/models.go +++ b/services/analysisservices/mgmt/2017-08-01/analysisservices/models.go @@ -131,6 +131,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of listing consumption operations. It contains a list of operations and a URL // link to get the next set of results. type OperationListResult struct { @@ -141,6 +147,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int diff --git a/services/apimanagement/mgmt/2016-07-07/apimanagement/CHANGELOG.md b/services/apimanagement/mgmt/2016-07-07/apimanagement/CHANGELOG.md index 52911e4cc5e4..726ae9a660ba 100644 --- a/services/apimanagement/mgmt/2016-07-07/apimanagement/CHANGELOG.md +++ b/services/apimanagement/mgmt/2016-07-07/apimanagement/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. PolicySnippetContract.MarshalJSON() ([]byte, error) diff --git a/services/apimanagement/mgmt/2016-07-07/apimanagement/_meta.json b/services/apimanagement/mgmt/2016-07-07/apimanagement/_meta.json index 643904e425eb..ff12e260c888 100644 --- a/services/apimanagement/mgmt/2016-07-07/apimanagement/_meta.json +++ b/services/apimanagement/mgmt/2016-07-07/apimanagement/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/apimanagement/resource-manager/readme.md", "tag": "package-2016-07", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/apimanagement/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/apimanagement/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/apimanagement/mgmt/2016-07-07/apimanagement/models.go b/services/apimanagement/mgmt/2016-07-07/apimanagement/models.go index 3056b50ccdd8..22bbe199528a 100644 --- a/services/apimanagement/mgmt/2016-07-07/apimanagement/models.go +++ b/services/apimanagement/mgmt/2016-07-07/apimanagement/models.go @@ -2045,6 +2045,12 @@ type PolicySnippetContract struct { Scope PolicyScopeContract `json:"scope,omitempty"` } +// MarshalJSON is the custom marshaler for PolicySnippetContract. +func (psc PolicySnippetContract) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProductCollection paged Products list representation. type ProductCollection struct { autorest.Response `json:"-"` diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/CHANGELOG.md b/services/apimanagement/mgmt/2016-10-10/apimanagement/CHANGELOG.md index 52911e4cc5e4..726ae9a660ba 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/CHANGELOG.md +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. PolicySnippetContract.MarshalJSON() ([]byte, error) diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/_meta.json b/services/apimanagement/mgmt/2016-10-10/apimanagement/_meta.json index 89d77b65fe9f..4fafeb45bb66 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/_meta.json +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/apimanagement/resource-manager/readme.md", "tag": "package-2016-10", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/apimanagement/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/apimanagement/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/apimanagement/mgmt/2016-10-10/apimanagement/models.go b/services/apimanagement/mgmt/2016-10-10/apimanagement/models.go index 805545223518..47328d89de3e 100644 --- a/services/apimanagement/mgmt/2016-10-10/apimanagement/models.go +++ b/services/apimanagement/mgmt/2016-10-10/apimanagement/models.go @@ -3096,6 +3096,12 @@ type PolicySnippetContract struct { Scope PolicyScopeContract `json:"scope,omitempty"` } +// MarshalJSON is the custom marshaler for PolicySnippetContract. +func (psc PolicySnippetContract) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PolicySnippetsCollection the response of the list policy snippets operation. type PolicySnippetsCollection struct { autorest.Response `json:"-"` diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/CHANGELOG.md b/services/apimanagement/mgmt/2017-03-01/apimanagement/CHANGELOG.md index 52911e4cc5e4..19263e4e76ff 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/CHANGELOG.md +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/CHANGELOG.md @@ -1,2 +1,17 @@ # Change History +## Additive Changes + +### New Funcs + +1. APICollection.MarshalJSON() ([]byte, error) +1. APIReleaseCollection.MarshalJSON() ([]byte, error) +1. APIRevisionContractProperties.MarshalJSON() ([]byte, error) +1. IssueAttachmentCollection.MarshalJSON() ([]byte, error) +1. IssueCollection.MarshalJSON() ([]byte, error) +1. IssueCommentCollection.MarshalJSON() ([]byte, error) +1. OperationCollection.MarshalJSON() ([]byte, error) +1. OperationEntityContractProperties.MarshalJSON() ([]byte, error) +1. PolicySnippetContract.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. SchemaCollection.MarshalJSON() ([]byte, error) diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/_meta.json b/services/apimanagement/mgmt/2017-03-01/apimanagement/_meta.json index 458a40005373..c53260754d6a 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/_meta.json +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/apimanagement/resource-manager/readme.md", "tag": "package-2017-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/apimanagement/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/apimanagement/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/apimanagement/mgmt/2017-03-01/apimanagement/models.go b/services/apimanagement/mgmt/2017-03-01/apimanagement/models.go index 1485e1c7963f..775d715f2aac 100644 --- a/services/apimanagement/mgmt/2017-03-01/apimanagement/models.go +++ b/services/apimanagement/mgmt/2017-03-01/apimanagement/models.go @@ -79,6 +79,12 @@ type APICollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for APICollection. +func (ac APICollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // APICollectionIterator provides access to a complete listing of APIContract values. type APICollectionIterator struct { i int @@ -665,6 +671,12 @@ type APIReleaseCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for APIReleaseCollection. +func (arc APIReleaseCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // APIReleaseCollectionIterator provides access to a complete listing of APIReleaseContract values. type APIReleaseCollectionIterator struct { i int @@ -1163,6 +1175,12 @@ type APIRevisionContractProperties struct { IsCurrent *bool `json:"isCurrent,omitempty"` } +// MarshalJSON is the custom marshaler for APIRevisionContractProperties. +func (arcp APIRevisionContractProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // APIRevisionInfoContract object used to create an API Revision or Version based on an existing API // Revision type APIRevisionInfoContract struct { @@ -3980,6 +3998,12 @@ type IssueAttachmentCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for IssueAttachmentCollection. +func (iac IssueAttachmentCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IssueAttachmentCollectionIterator provides access to a complete listing of IssueAttachmentContract // values. type IssueAttachmentCollectionIterator struct { @@ -4223,6 +4247,12 @@ type IssueCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for IssueCollection. +func (ic IssueCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IssueCollectionIterator provides access to a complete listing of IssueContract values. type IssueCollectionIterator struct { i int @@ -4382,6 +4412,12 @@ type IssueCommentCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for IssueCommentCollection. +func (icc IssueCommentCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IssueCommentCollectionIterator provides access to a complete listing of IssueCommentContract values. type IssueCommentCollectionIterator struct { i int @@ -5689,6 +5725,12 @@ type OperationCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationCollection. +func (oc OperationCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationCollectionIterator provides access to a complete listing of OperationContract values. type OperationCollectionIterator struct { i int @@ -6048,6 +6090,12 @@ type OperationEntityContractProperties struct { URLTemplate *string `json:"urlTemplate,omitempty"` } +// MarshalJSON is the custom marshaler for OperationEntityContractProperties. +func (oecp OperationEntityContractProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of the request to list REST API operations. It contains a list of operations // and a URL nextLink to get the next set of results. type OperationListResult struct { @@ -6436,6 +6484,12 @@ type PolicySnippetContract struct { Scope *int32 `json:"scope,omitempty"` } +// MarshalJSON is the custom marshaler for PolicySnippetContract. +func (psc PolicySnippetContract) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PolicySnippetsCollection the response of the list policy snippets operation. type PolicySnippetsCollection struct { autorest.Response `json:"-"` @@ -8044,6 +8098,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResponseContract operation response details. type ResponseContract struct { // StatusCode - Operation response HTTP status code. @@ -8073,6 +8133,12 @@ type SchemaCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SchemaCollection. +func (sc SchemaCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SchemaCollectionIterator provides access to a complete listing of SchemaContract values. type SchemaCollectionIterator struct { i int diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/CHANGELOG.md b/services/apimanagement/mgmt/2018-01-01/apimanagement/CHANGELOG.md index 52911e4cc5e4..fc5f18c228ac 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/CHANGELOG.md +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/CHANGELOG.md @@ -1,2 +1,19 @@ # Change History +## Additive Changes + +### New Funcs + +1. APICollection.MarshalJSON() ([]byte, error) +1. APIReleaseCollection.MarshalJSON() ([]byte, error) +1. APIRevisionCollection.MarshalJSON() ([]byte, error) +1. APIRevisionContract.MarshalJSON() ([]byte, error) +1. IssueAttachmentCollection.MarshalJSON() ([]byte, error) +1. IssueCollection.MarshalJSON() ([]byte, error) +1. IssueCommentCollection.MarshalJSON() ([]byte, error) +1. OperationCollection.MarshalJSON() ([]byte, error) +1. PolicySnippetContract.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ResourceSkuCapacity.MarshalJSON() ([]byte, error) +1. ResourceSkuResult.MarshalJSON() ([]byte, error) +1. SchemaCollection.MarshalJSON() ([]byte, error) diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/_meta.json b/services/apimanagement/mgmt/2018-01-01/apimanagement/_meta.json index 7d2453af3287..b7332541eb1a 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/_meta.json +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/apimanagement/resource-manager/readme.md", "tag": "package-2018-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/apimanagement/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/apimanagement/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/models.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/models.go index 80bd3a82a37e..3015b1664072 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/models.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/models.go @@ -81,6 +81,12 @@ type APICollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for APICollection. +func (ac APICollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // APICollectionIterator provides access to a complete listing of APIContract values. type APICollectionIterator struct { i int @@ -714,6 +720,12 @@ type APIReleaseCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for APIReleaseCollection. +func (arc APIReleaseCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // APIReleaseCollectionIterator provides access to a complete listing of APIReleaseContract values. type APIReleaseCollectionIterator struct { i int @@ -970,6 +982,12 @@ type APIRevisionCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for APIRevisionCollection. +func (arc APIRevisionCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // APIRevisionCollectionIterator provides access to a complete listing of APIRevisionContract values. type APIRevisionCollectionIterator struct { i int @@ -1140,6 +1158,12 @@ type APIRevisionContract struct { IsCurrent *bool `json:"isCurrent,omitempty"` } +// MarshalJSON is the custom marshaler for APIRevisionContract. +func (arc APIRevisionContract) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // APIRevisionInfoContract object used to create an API Revision or Version based on an existing API // Revision type APIRevisionInfoContract struct { @@ -4215,6 +4239,12 @@ type IssueAttachmentCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for IssueAttachmentCollection. +func (iac IssueAttachmentCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IssueAttachmentCollectionIterator provides access to a complete listing of IssueAttachmentContract // values. type IssueAttachmentCollectionIterator struct { @@ -4458,6 +4488,12 @@ type IssueCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for IssueCollection. +func (ic IssueCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IssueCollectionIterator provides access to a complete listing of IssueContract values. type IssueCollectionIterator struct { i int @@ -4617,6 +4653,12 @@ type IssueCommentCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for IssueCommentCollection. +func (icc IssueCommentCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IssueCommentCollectionIterator provides access to a complete listing of IssueCommentContract values. type IssueCommentCollectionIterator struct { i int @@ -5943,6 +5985,12 @@ type OperationCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationCollection. +func (oc OperationCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationCollectionIterator provides access to a complete listing of OperationContract values. type OperationCollectionIterator struct { i int @@ -6631,6 +6679,12 @@ type PolicySnippetContract struct { Scope *int32 `json:"scope,omitempty"` } +// MarshalJSON is the custom marshaler for PolicySnippetContract. +func (psc PolicySnippetContract) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PolicySnippetsCollection the response of the list policy snippets operation. type PolicySnippetsCollection struct { autorest.Response `json:"-"` @@ -8409,6 +8463,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSku describes an available API Management SKU. type ResourceSku struct { // Name - Name of the Sku. Possible values include: 'SkuTypeDeveloper', 'SkuTypeStandard', 'SkuTypePremium', 'SkuTypeBasic' @@ -8427,6 +8487,12 @@ type ResourceSkuCapacity struct { ScaleType ResourceSkuCapacityScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapacity. +func (rsc ResourceSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuResult describes an available API Management service SKU. type ResourceSkuResult struct { // ResourceType - READ-ONLY; The type of resource the SKU applies to. @@ -8437,6 +8503,12 @@ type ResourceSkuResult struct { Capacity *ResourceSkuCapacity `json:"capacity,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuResult. +func (rsr ResourceSkuResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuResults the API Management service SKUs operation response. type ResourceSkuResults struct { autorest.Response `json:"-"` @@ -8625,6 +8697,12 @@ type SchemaCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SchemaCollection. +func (sc SchemaCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SchemaCollectionIterator provides access to a complete listing of SchemaContract values. type SchemaCollectionIterator struct { i int diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/CHANGELOG.md b/services/apimanagement/mgmt/2019-01-01/apimanagement/CHANGELOG.md index 52911e4cc5e4..fc5f18c228ac 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/CHANGELOG.md +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/CHANGELOG.md @@ -1,2 +1,19 @@ # Change History +## Additive Changes + +### New Funcs + +1. APICollection.MarshalJSON() ([]byte, error) +1. APIReleaseCollection.MarshalJSON() ([]byte, error) +1. APIRevisionCollection.MarshalJSON() ([]byte, error) +1. APIRevisionContract.MarshalJSON() ([]byte, error) +1. IssueAttachmentCollection.MarshalJSON() ([]byte, error) +1. IssueCollection.MarshalJSON() ([]byte, error) +1. IssueCommentCollection.MarshalJSON() ([]byte, error) +1. OperationCollection.MarshalJSON() ([]byte, error) +1. PolicySnippetContract.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ResourceSkuCapacity.MarshalJSON() ([]byte, error) +1. ResourceSkuResult.MarshalJSON() ([]byte, error) +1. SchemaCollection.MarshalJSON() ([]byte, error) diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/_meta.json b/services/apimanagement/mgmt/2019-01-01/apimanagement/_meta.json index e8171dafb597..f9287240e491 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/_meta.json +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/apimanagement/resource-manager/readme.md", "tag": "package-2019-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/apimanagement/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/apimanagement/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/models.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/models.go index f9ead90b3c43..00b6f4a4bae2 100644 --- a/services/apimanagement/mgmt/2019-01-01/apimanagement/models.go +++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/models.go @@ -120,6 +120,12 @@ type APICollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for APICollection. +func (ac APICollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // APICollectionIterator provides access to a complete listing of APIContract values. type APICollectionIterator struct { i int @@ -850,6 +856,12 @@ type APIReleaseCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for APIReleaseCollection. +func (arc APIReleaseCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // APIReleaseCollectionIterator provides access to a complete listing of APIReleaseContract values. type APIReleaseCollectionIterator struct { i int @@ -1106,6 +1118,12 @@ type APIRevisionCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for APIRevisionCollection. +func (arc APIRevisionCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // APIRevisionCollectionIterator provides access to a complete listing of APIRevisionContract values. type APIRevisionCollectionIterator struct { i int @@ -1276,6 +1294,12 @@ type APIRevisionContract struct { IsCurrent *bool `json:"isCurrent,omitempty"` } +// MarshalJSON is the custom marshaler for APIRevisionContract. +func (arc APIRevisionContract) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // APIRevisionInfoContract object used to create an API Revision or Version based on an existing API // Revision type APIRevisionInfoContract struct { @@ -4711,6 +4735,12 @@ type IssueAttachmentCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for IssueAttachmentCollection. +func (iac IssueAttachmentCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IssueAttachmentCollectionIterator provides access to a complete listing of IssueAttachmentContract // values. type IssueAttachmentCollectionIterator struct { @@ -4954,6 +4984,12 @@ type IssueCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for IssueCollection. +func (ic IssueCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IssueCollectionIterator provides access to a complete listing of IssueContract values. type IssueCollectionIterator struct { i int @@ -5113,6 +5149,12 @@ type IssueCommentCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for IssueCommentCollection. +func (icc IssueCommentCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IssueCommentCollectionIterator provides access to a complete listing of IssueCommentContract values. type IssueCommentCollectionIterator struct { i int @@ -6444,6 +6486,12 @@ type OperationCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationCollection. +func (oc OperationCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationCollectionIterator provides access to a complete listing of OperationContract values. type OperationCollectionIterator struct { i int @@ -7140,6 +7188,12 @@ type PolicySnippetContract struct { Scope *int32 `json:"scope,omitempty"` } +// MarshalJSON is the custom marshaler for PolicySnippetContract. +func (psc PolicySnippetContract) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PolicySnippetsCollection the response of the list policy snippets operation. type PolicySnippetsCollection struct { autorest.Response `json:"-"` @@ -8918,6 +8972,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSku describes an available API Management SKU. type ResourceSku struct { // Name - Name of the Sku. Possible values include: 'SkuTypeDeveloper', 'SkuTypeStandard', 'SkuTypePremium', 'SkuTypeBasic', 'SkuTypeConsumption' @@ -8936,6 +8996,12 @@ type ResourceSkuCapacity struct { ScaleType ResourceSkuCapacityScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapacity. +func (rsc ResourceSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuResult describes an available API Management service SKU. type ResourceSkuResult struct { // ResourceType - READ-ONLY; The type of resource the SKU applies to. @@ -8946,6 +9012,12 @@ type ResourceSkuResult struct { Capacity *ResourceSkuCapacity `json:"capacity,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuResult. +func (rsr ResourceSkuResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuResults the API Management service SKUs operation response. type ResourceSkuResults struct { autorest.Response `json:"-"` @@ -9181,6 +9253,12 @@ type SchemaCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SchemaCollection. +func (sc SchemaCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SchemaCollectionIterator provides access to a complete listing of SchemaContract values. type SchemaCollectionIterator struct { i int diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/CHANGELOG.md b/services/apimanagement/mgmt/2019-12-01/apimanagement/CHANGELOG.md index 52911e4cc5e4..81c88b056a8a 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/CHANGELOG.md +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/CHANGELOG.md @@ -1,2 +1,23 @@ # Change History +## Additive Changes + +### New Funcs + +1. APICollection.MarshalJSON() ([]byte, error) +1. APIReleaseCollection.MarshalJSON() ([]byte, error) +1. APIRevisionCollection.MarshalJSON() ([]byte, error) +1. APIRevisionContract.MarshalJSON() ([]byte, error) +1. ContentItemCollection.MarshalJSON() ([]byte, error) +1. ContentTypeCollection.MarshalJSON() ([]byte, error) +1. GatewayCollection.MarshalJSON() ([]byte, error) +1. GatewayHostnameConfigurationCollection.MarshalJSON() ([]byte, error) +1. IssueAttachmentCollection.MarshalJSON() ([]byte, error) +1. IssueCollection.MarshalJSON() ([]byte, error) +1. IssueCommentCollection.MarshalJSON() ([]byte, error) +1. OperationCollection.MarshalJSON() ([]byte, error) +1. PolicyDescriptionContractProperties.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ResourceSkuCapacity.MarshalJSON() ([]byte, error) +1. ResourceSkuResult.MarshalJSON() ([]byte, error) +1. SchemaCollection.MarshalJSON() ([]byte, error) diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/_meta.json b/services/apimanagement/mgmt/2019-12-01/apimanagement/_meta.json index dbb4bb78ca96..2ddf4ea98b33 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/_meta.json +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/apimanagement/resource-manager/readme.md", "tag": "package-2019-12", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/apimanagement/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/apimanagement/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/apimanagement/mgmt/2019-12-01/apimanagement/models.go b/services/apimanagement/mgmt/2019-12-01/apimanagement/models.go index e0c95b86e309..9423e62f074c 100644 --- a/services/apimanagement/mgmt/2019-12-01/apimanagement/models.go +++ b/services/apimanagement/mgmt/2019-12-01/apimanagement/models.go @@ -125,6 +125,12 @@ type APICollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for APICollection. +func (ac APICollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // APICollectionIterator provides access to a complete listing of APIContract values. type APICollectionIterator struct { i int @@ -855,6 +861,12 @@ type APIReleaseCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for APIReleaseCollection. +func (arc APIReleaseCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // APIReleaseCollectionIterator provides access to a complete listing of APIReleaseContract values. type APIReleaseCollectionIterator struct { i int @@ -1111,6 +1123,12 @@ type APIRevisionCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for APIRevisionCollection. +func (arc APIRevisionCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // APIRevisionCollectionIterator provides access to a complete listing of APIRevisionContract values. type APIRevisionCollectionIterator struct { i int @@ -1281,6 +1299,12 @@ type APIRevisionContract struct { IsCurrent *bool `json:"isCurrent,omitempty"` } +// MarshalJSON is the custom marshaler for APIRevisionContract. +func (arc APIRevisionContract) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // APIRevisionInfoContract object used to create an API Revision or Version based on an existing API // Revision type APIRevisionInfoContract struct { @@ -3416,6 +3440,12 @@ type ContentItemCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ContentItemCollection. +func (cic ContentItemCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContentItemCollectionIterator provides access to a complete listing of ContentItemContract values. type ContentItemCollectionIterator struct { i int @@ -3597,6 +3627,12 @@ type ContentTypeCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ContentTypeCollection. +func (ctc ContentTypeCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContentTypeCollectionIterator provides access to a complete listing of ContentTypeContract values. type ContentTypeCollectionIterator struct { i int @@ -4533,6 +4569,12 @@ type GatewayCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for GatewayCollection. +func (gc GatewayCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GatewayCollectionIterator provides access to a complete listing of GatewayContract values. type GatewayCollectionIterator struct { i int @@ -4773,6 +4815,12 @@ type GatewayHostnameConfigurationCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for GatewayHostnameConfigurationCollection. +func (ghcc GatewayHostnameConfigurationCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GatewayHostnameConfigurationCollectionIterator provides access to a complete listing of // GatewayHostnameConfigurationContract values. type GatewayHostnameConfigurationCollectionIterator struct { @@ -5887,6 +5935,12 @@ type IssueAttachmentCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for IssueAttachmentCollection. +func (iac IssueAttachmentCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IssueAttachmentCollectionIterator provides access to a complete listing of IssueAttachmentContract // values. type IssueAttachmentCollectionIterator struct { @@ -6130,6 +6184,12 @@ type IssueCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for IssueCollection. +func (ic IssueCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IssueCollectionIterator provides access to a complete listing of IssueContract values. type IssueCollectionIterator struct { i int @@ -6289,6 +6349,12 @@ type IssueCommentCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for IssueCommentCollection. +func (icc IssueCommentCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IssueCommentCollectionIterator provides access to a complete listing of IssueCommentContract values. type IssueCommentCollectionIterator struct { i int @@ -8093,6 +8159,12 @@ type OperationCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationCollection. +func (oc OperationCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationCollectionIterator provides access to a complete listing of OperationContract values. type OperationCollectionIterator struct { i int @@ -8866,6 +8938,12 @@ type PolicyDescriptionContractProperties struct { Scope *int32 `json:"scope,omitempty"` } +// MarshalJSON is the custom marshaler for PolicyDescriptionContractProperties. +func (pdcp PolicyDescriptionContractProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PortalDelegationSettings delegation settings for a developer portal. type PortalDelegationSettings struct { autorest.Response `json:"-"` @@ -10387,6 +10465,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceLocationDataContract resource location data properties. type ResourceLocationDataContract struct { // Name - A canonical name for the geographic or physical location. @@ -10417,6 +10501,12 @@ type ResourceSkuCapacity struct { ScaleType ResourceSkuCapacityScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapacity. +func (rsc ResourceSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuResult describes an available API Management service SKU. type ResourceSkuResult struct { // ResourceType - READ-ONLY; The type of resource the SKU applies to. @@ -10427,6 +10517,12 @@ type ResourceSkuResult struct { Capacity *ResourceSkuCapacity `json:"capacity,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuResult. +func (rsr ResourceSkuResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuResults the API Management service SKUs operation response. type ResourceSkuResults struct { autorest.Response `json:"-"` @@ -10662,6 +10758,12 @@ type SchemaCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SchemaCollection. +func (sc SchemaCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SchemaCollectionIterator provides access to a complete listing of SchemaContract values. type SchemaCollectionIterator struct { i int diff --git a/services/apimanagement/mgmt/2020-12-01/apimanagement/CHANGELOG.md b/services/apimanagement/mgmt/2020-12-01/apimanagement/CHANGELOG.md index 52911e4cc5e4..a7de9d04bfb4 100644 --- a/services/apimanagement/mgmt/2020-12-01/apimanagement/CHANGELOG.md +++ b/services/apimanagement/mgmt/2020-12-01/apimanagement/CHANGELOG.md @@ -1,2 +1,27 @@ # Change History +## Additive Changes + +### New Funcs + +1. APIRevisionContract.MarshalJSON() ([]byte, error) +1. ContentItemCollection.MarshalJSON() ([]byte, error) +1. ContentTypeCollection.MarshalJSON() ([]byte, error) +1. DeletedServicesCollection.MarshalJSON() ([]byte, error) +1. GatewayCertificateAuthorityCollection.MarshalJSON() ([]byte, error) +1. GatewayHostnameConfigurationCollection.MarshalJSON() ([]byte, error) +1. PolicyDescriptionContractProperties.MarshalJSON() ([]byte, error) +1. PortalRevisionCollection.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ResourceSkuCapacity.MarshalJSON() ([]byte, error) +1. ResourceSkuResult.MarshalJSON() ([]byte, error) +1. ServiceGetDomainOwnershipIdentifierResult.MarshalJSON() ([]byte, error) +1. Sku.MarshalJSON() ([]byte, error) +1. SkuCapabilities.MarshalJSON() ([]byte, error) +1. SkuCapacity.MarshalJSON() ([]byte, error) +1. SkuCosts.MarshalJSON() ([]byte, error) +1. SkuLocationInfo.MarshalJSON() ([]byte, error) +1. SkuRestrictionInfo.MarshalJSON() ([]byte, error) +1. SkuRestrictions.MarshalJSON() ([]byte, error) +1. SkuZoneDetails.MarshalJSON() ([]byte, error) +1. TenantSettingsCollection.MarshalJSON() ([]byte, error) diff --git a/services/apimanagement/mgmt/2020-12-01/apimanagement/_meta.json b/services/apimanagement/mgmt/2020-12-01/apimanagement/_meta.json index deac3825ff54..f16c17b7bc43 100644 --- a/services/apimanagement/mgmt/2020-12-01/apimanagement/_meta.json +++ b/services/apimanagement/mgmt/2020-12-01/apimanagement/_meta.json @@ -2,9 +2,9 @@ "commit": "8d3b22458da4bb9309c0207c2ebc1903de741249", "readme": "/_/azure-rest-api-specs/specification/apimanagement/resource-manager/readme.md", "tag": "package-2020-12", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/apimanagement/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/apimanagement/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/apimanagement/mgmt/2020-12-01/apimanagement/models.go b/services/apimanagement/mgmt/2020-12-01/apimanagement/models.go index 04e4ca695bfa..086e3884d072 100644 --- a/services/apimanagement/mgmt/2020-12-01/apimanagement/models.go +++ b/services/apimanagement/mgmt/2020-12-01/apimanagement/models.go @@ -1627,6 +1627,12 @@ type APIRevisionContract struct { IsCurrent *bool `json:"isCurrent,omitempty"` } +// MarshalJSON is the custom marshaler for APIRevisionContract. +func (arc APIRevisionContract) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // APIRevisionInfoContract object used to create an API Revision or Version based on an existing API // Revision type APIRevisionInfoContract struct { @@ -3800,6 +3806,12 @@ type ContentItemCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ContentItemCollection. +func (cic ContentItemCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContentItemCollectionIterator provides access to a complete listing of ContentItemContract values. type ContentItemCollectionIterator struct { i int @@ -3981,6 +3993,12 @@ type ContentTypeCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ContentTypeCollection. +func (ctc ContentTypeCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContentTypeCollectionIterator provides access to a complete listing of ContentTypeContract values. type ContentTypeCollectionIterator struct { i int @@ -4337,6 +4355,12 @@ type DeletedServicesCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DeletedServicesCollection. +func (dsc DeletedServicesCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeletedServicesCollectionIterator provides access to a complete listing of DeletedServiceContract // values. type DeletedServicesCollectionIterator struct { @@ -5236,6 +5260,12 @@ type GatewayCertificateAuthorityCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for GatewayCertificateAuthorityCollection. +func (gcac GatewayCertificateAuthorityCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GatewayCertificateAuthorityCollectionIterator provides access to a complete listing of // GatewayCertificateAuthorityContract values. type GatewayCertificateAuthorityCollectionIterator struct { @@ -5726,6 +5756,12 @@ type GatewayHostnameConfigurationCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for GatewayHostnameConfigurationCollection. +func (ghcc GatewayHostnameConfigurationCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GatewayHostnameConfigurationCollectionIterator provides access to a complete listing of // GatewayHostnameConfigurationContract values. type GatewayHostnameConfigurationCollectionIterator struct { @@ -9969,6 +10005,12 @@ type PolicyDescriptionContractProperties struct { Scope *int64 `json:"scope,omitempty"` } +// MarshalJSON is the custom marshaler for PolicyDescriptionContractProperties. +func (pdcp PolicyDescriptionContractProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PortalDelegationSettings delegation settings for a developer portal. type PortalDelegationSettings struct { autorest.Response `json:"-"` @@ -10063,6 +10105,12 @@ type PortalRevisionCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PortalRevisionCollection. +func (prc PortalRevisionCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PortalRevisionCollectionIterator provides access to a complete listing of PortalRevisionContract values. type PortalRevisionCollectionIterator struct { i int @@ -11932,6 +11980,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceLocationDataContract resource location data properties. type ResourceLocationDataContract struct { // Name - A canonical name for the geographic or physical location. @@ -11962,6 +12016,12 @@ type ResourceSkuCapacity struct { ScaleType ResourceSkuCapacityScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapacity. +func (rsc ResourceSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuResult describes an available API Management service SKU. type ResourceSkuResult struct { // ResourceType - READ-ONLY; The type of resource the SKU applies to. @@ -11972,6 +12032,12 @@ type ResourceSkuResult struct { Capacity *ResourceSkuCapacity `json:"capacity,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuResult. +func (rsr ResourceSkuResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuResults the API Management service SKUs operation response. type ResourceSkuResults struct { autorest.Response `json:"-"` @@ -12794,6 +12860,12 @@ type ServiceGetDomainOwnershipIdentifierResult struct { DomainOwnershipIdentifier *string `json:"domainOwnershipIdentifier,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceGetDomainOwnershipIdentifierResult. +func (sgdoir ServiceGetDomainOwnershipIdentifierResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceGetSsoTokenResult the response of the GetSsoToken operation. type ServiceGetSsoTokenResult struct { autorest.Response `json:"-"` @@ -13604,6 +13676,12 @@ type Sku struct { Restrictions *[]SkuRestrictions `json:"restrictions,omitempty"` } +// MarshalJSON is the custom marshaler for Sku. +func (s Sku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuCapabilities describes The SKU capabilities object. type SkuCapabilities struct { // Name - READ-ONLY; An invariant to describe the feature. @@ -13612,6 +13690,12 @@ type SkuCapabilities struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SkuCapabilities. +func (sc SkuCapabilities) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuCapacity describes scaling information of a SKU. type SkuCapacity struct { // Minimum - READ-ONLY; The minimum capacity. @@ -13624,6 +13708,12 @@ type SkuCapacity struct { ScaleType SkuCapacityScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for SkuCapacity. +func (sc SkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuCosts describes metadata for retrieving price info. type SkuCosts struct { // MeterID - READ-ONLY; Used for querying price from commerce. @@ -13634,6 +13724,12 @@ type SkuCosts struct { ExtendedUnit *string `json:"extendedUnit,omitempty"` } +// MarshalJSON is the custom marshaler for SkuCosts. +func (sc SkuCosts) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuLocationInfo ... type SkuLocationInfo struct { // Location - READ-ONLY; Location of the SKU @@ -13644,6 +13740,12 @@ type SkuLocationInfo struct { ZoneDetails *[]SkuZoneDetails `json:"zoneDetails,omitempty"` } +// MarshalJSON is the custom marshaler for SkuLocationInfo. +func (sli SkuLocationInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuRestrictionInfo ... type SkuRestrictionInfo struct { // Locations - READ-ONLY; Locations where the SKU is restricted @@ -13652,6 +13754,12 @@ type SkuRestrictionInfo struct { Zones *[]string `json:"zones,omitempty"` } +// MarshalJSON is the custom marshaler for SkuRestrictionInfo. +func (sri SkuRestrictionInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuRestrictions describes scaling information of a SKU. type SkuRestrictions struct { // Type - READ-ONLY; The type of restrictions. Possible values include: 'Location', 'Zone' @@ -13664,6 +13772,12 @@ type SkuRestrictions struct { ReasonCode SkuRestrictionsReasonCode `json:"reasonCode,omitempty"` } +// MarshalJSON is the custom marshaler for SkuRestrictions. +func (sr SkuRestrictions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkusResult the List Resource Skus operation response. type SkusResult struct { autorest.Response `json:"-"` @@ -13840,6 +13954,12 @@ type SkuZoneDetails struct { Capabilities *[]SkuCapabilities `json:"capabilities,omitempty"` } +// MarshalJSON is the custom marshaler for SkuZoneDetails. +func (szd SkuZoneDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SubscriptionCollection paged Subscriptions list representation. type SubscriptionCollection struct { autorest.Response `json:"-"` @@ -15201,6 +15321,12 @@ type TenantSettingsCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for TenantSettingsCollection. +func (tsc TenantSettingsCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TenantSettingsCollectionIterator provides access to a complete listing of TenantSettingsContract values. type TenantSettingsCollectionIterator struct { i int diff --git a/services/appconfiguration/mgmt/2019-10-01/appconfiguration/CHANGELOG.md b/services/appconfiguration/mgmt/2019-10-01/appconfiguration/CHANGELOG.md index 52911e4cc5e4..d070c5ad7fa5 100644 --- a/services/appconfiguration/mgmt/2019-10-01/appconfiguration/CHANGELOG.md +++ b/services/appconfiguration/mgmt/2019-10-01/appconfiguration/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. APIKey.MarshalJSON() ([]byte, error) +1. ConfigurationStoreProperties.MarshalJSON() ([]byte, error) +1. NameAvailabilityStatus.MarshalJSON() ([]byte, error) +1. UserIdentity.MarshalJSON() ([]byte, error) diff --git a/services/appconfiguration/mgmt/2019-10-01/appconfiguration/_meta.json b/services/appconfiguration/mgmt/2019-10-01/appconfiguration/_meta.json index 6593dc38020b..6696477f8f4e 100644 --- a/services/appconfiguration/mgmt/2019-10-01/appconfiguration/_meta.json +++ b/services/appconfiguration/mgmt/2019-10-01/appconfiguration/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/appconfiguration/resource-manager/readme.md", "tag": "package-2019-10-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-10-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/appconfiguration/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-10-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/appconfiguration/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/appconfiguration/mgmt/2019-10-01/appconfiguration/models.go b/services/appconfiguration/mgmt/2019-10-01/appconfiguration/models.go index e50449b6a130..d8f6e8a8e346 100644 --- a/services/appconfiguration/mgmt/2019-10-01/appconfiguration/models.go +++ b/services/appconfiguration/mgmt/2019-10-01/appconfiguration/models.go @@ -37,6 +37,12 @@ type APIKey struct { ReadOnly *bool `json:"readOnly,omitempty"` } +// MarshalJSON is the custom marshaler for APIKey. +func (ak APIKey) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // APIKeyListResult the result of a request to list API keys. type APIKeyListResult struct { autorest.Response `json:"-"` @@ -503,6 +509,12 @@ type ConfigurationStoreProperties struct { Endpoint *string `json:"endpoint,omitempty"` } +// MarshalJSON is the custom marshaler for ConfigurationStoreProperties. +func (csp ConfigurationStoreProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConfigurationStoresCreateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type ConfigurationStoresCreateFuture struct { @@ -714,6 +726,12 @@ type NameAvailabilityStatus struct { Reason *string `json:"reason,omitempty"` } +// MarshalJSON is the custom marshaler for NameAvailabilityStatus. +func (nas NameAvailabilityStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationDefinition the definition of a configuration store operation. type OperationDefinition struct { // Name - Operation name: {provider}/{resource}/{operation}. @@ -978,3 +996,9 @@ type UserIdentity struct { // ClientID - READ-ONLY; The client ID of the user-assigned identity. ClientID *string `json:"clientId,omitempty"` } + +// MarshalJSON is the custom marshaler for UserIdentity. +func (UI UserIdentity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/appconfiguration/mgmt/2020-06-01/appconfiguration/CHANGELOG.md b/services/appconfiguration/mgmt/2020-06-01/appconfiguration/CHANGELOG.md index 52911e4cc5e4..17dd5be3caa9 100644 --- a/services/appconfiguration/mgmt/2020-06-01/appconfiguration/CHANGELOG.md +++ b/services/appconfiguration/mgmt/2020-06-01/appconfiguration/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. APIKey.MarshalJSON() ([]byte, error) +1. NameAvailabilityStatus.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceProperties.MarshalJSON() ([]byte, error) +1. UserIdentity.MarshalJSON() ([]byte, error) diff --git a/services/appconfiguration/mgmt/2020-06-01/appconfiguration/_meta.json b/services/appconfiguration/mgmt/2020-06-01/appconfiguration/_meta.json index 60fc13efc989..c08575613ef5 100644 --- a/services/appconfiguration/mgmt/2020-06-01/appconfiguration/_meta.json +++ b/services/appconfiguration/mgmt/2020-06-01/appconfiguration/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/appconfiguration/resource-manager/readme.md", "tag": "package-2020-06-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-06-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/appconfiguration/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-06-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/appconfiguration/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/appconfiguration/mgmt/2020-06-01/appconfiguration/models.go b/services/appconfiguration/mgmt/2020-06-01/appconfiguration/models.go index c6888ca931de..a69fc8109a1a 100644 --- a/services/appconfiguration/mgmt/2020-06-01/appconfiguration/models.go +++ b/services/appconfiguration/mgmt/2020-06-01/appconfiguration/models.go @@ -37,6 +37,12 @@ type APIKey struct { ReadOnly *bool `json:"readOnly,omitempty"` } +// MarshalJSON is the custom marshaler for APIKey. +func (ak APIKey) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // APIKeyListResult the result of a request to list API keys. type APIKeyListResult struct { autorest.Response `json:"-"` @@ -805,6 +811,12 @@ type NameAvailabilityStatus struct { Reason *string `json:"reason,omitempty"` } +// MarshalJSON is the custom marshaler for NameAvailabilityStatus. +func (nas NameAvailabilityStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationDefinition the definition of a configuration store operation. type OperationDefinition struct { // Name - Operation name: {provider}/{resource}/{operation}. @@ -1656,6 +1668,12 @@ type PrivateLinkResourceProperties struct { RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. +func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkServiceConnectionState the state of a private link service connection. type PrivateLinkServiceConnectionState struct { // Status - The private link service connection status. Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected' @@ -1747,3 +1765,9 @@ type UserIdentity struct { // ClientID - READ-ONLY; The client ID of the user-assigned identity. ClientID *string `json:"clientId,omitempty"` } + +// MarshalJSON is the custom marshaler for UserIdentity. +func (UI UserIdentity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/appinsights/mgmt/2015-05-01/insights/CHANGELOG.md b/services/appinsights/mgmt/2015-05-01/insights/CHANGELOG.md index 52911e4cc5e4..2c3469c874a8 100644 --- a/services/appinsights/mgmt/2015-05-01/insights/CHANGELOG.md +++ b/services/appinsights/mgmt/2015-05-01/insights/CHANGELOG.md @@ -1,2 +1,16 @@ # Change History +## Additive Changes + +### New Funcs + +1. AnnotationsListResult.MarshalJSON() ([]byte, error) +1. ApplicationInsightsComponentAvailableFeatures.MarshalJSON() ([]byte, error) +1. ApplicationInsightsComponentFeature.MarshalJSON() ([]byte, error) +1. ApplicationInsightsComponentFeatureCapabilities.MarshalJSON() ([]byte, error) +1. ApplicationInsightsComponentFeatureCapability.MarshalJSON() ([]byte, error) +1. ApplicationInsightsComponentQuotaStatus.MarshalJSON() ([]byte, error) +1. ApplicationInsightsComponentWebTestLocation.MarshalJSON() ([]byte, error) +1. MyWorkbooksListResult.MarshalJSON() ([]byte, error) +1. WorkItemConfigurationsListResult.MarshalJSON() ([]byte, error) +1. WorkbooksListResult.MarshalJSON() ([]byte, error) diff --git a/services/appinsights/mgmt/2015-05-01/insights/_meta.json b/services/appinsights/mgmt/2015-05-01/insights/_meta.json index b887c8b6c2f4..a025c80f1f56 100644 --- a/services/appinsights/mgmt/2015-05-01/insights/_meta.json +++ b/services/appinsights/mgmt/2015-05-01/insights/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/applicationinsights/resource-manager/readme.md", "tag": "package-2015-05", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2015-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/applicationinsights/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2015-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/applicationinsights/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/appinsights/mgmt/2015-05-01/insights/models.go b/services/appinsights/mgmt/2015-05-01/insights/models.go index f2d5258fe785..4a23033075cf 100644 --- a/services/appinsights/mgmt/2015-05-01/insights/models.go +++ b/services/appinsights/mgmt/2015-05-01/insights/models.go @@ -51,6 +51,12 @@ type AnnotationsListResult struct { Value *[]Annotation `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for AnnotationsListResult. +func (alr AnnotationsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // APIKeyRequest an Application Insights component API Key creation request definition. type APIKeyRequest struct { // Name - The name of the API Key. @@ -281,6 +287,12 @@ type ApplicationInsightsComponentAvailableFeatures struct { Result *[]ApplicationInsightsComponentFeature `json:"Result,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationInsightsComponentAvailableFeatures. +func (aicaf ApplicationInsightsComponentAvailableFeatures) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationInsightsComponentBillingFeatures an Application Insights component billing features type ApplicationInsightsComponentBillingFeatures struct { autorest.Response `json:"-"` @@ -483,6 +495,12 @@ type ApplicationInsightsComponentFeature struct { SupportedAddonFeatures *string `json:"SupportedAddonFeatures,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationInsightsComponentFeature. +func (aicf ApplicationInsightsComponentFeature) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationInsightsComponentFeatureCapabilities an Application Insights component feature capabilities type ApplicationInsightsComponentFeatureCapabilities struct { autorest.Response `json:"-"` @@ -520,6 +538,12 @@ type ApplicationInsightsComponentFeatureCapabilities struct { ThrottleRate *float64 `json:"ThrottleRate,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationInsightsComponentFeatureCapabilities. +func (aicfc ApplicationInsightsComponentFeatureCapabilities) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationInsightsComponentFeatureCapability an Application Insights component feature capability type ApplicationInsightsComponentFeatureCapability struct { // Name - READ-ONLY; The name of the capability. @@ -536,6 +560,12 @@ type ApplicationInsightsComponentFeatureCapability struct { MeterRateFrequency *string `json:"MeterRateFrequency,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationInsightsComponentFeatureCapability. +func (aicfc ApplicationInsightsComponentFeatureCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationInsightsComponentListResult describes the list of Application Insights Resources. type ApplicationInsightsComponentListResult struct { autorest.Response `json:"-"` @@ -820,6 +850,12 @@ type ApplicationInsightsComponentQuotaStatus struct { ExpirationTime *string `json:"ExpirationTime,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationInsightsComponentQuotaStatus. +func (aicqs ApplicationInsightsComponentQuotaStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationInsightsComponentWebTestLocation properties that define a web test location available to an // Application Insights Component. type ApplicationInsightsComponentWebTestLocation struct { @@ -829,6 +865,12 @@ type ApplicationInsightsComponentWebTestLocation struct { Tag *string `json:"Tag,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationInsightsComponentWebTestLocation. +func (aicwtl ApplicationInsightsComponentWebTestLocation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationInsightsWebTestLocationsListResult describes the list of web test locations available to an // Application Insights Component. type ApplicationInsightsWebTestLocationsListResult struct { @@ -1184,6 +1226,12 @@ type MyWorkbooksListResult struct { Value *[]MyWorkbook `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MyWorkbooksListResult. +func (mwlr MyWorkbooksListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation CDN REST API operation type Operation struct { // Name - Operation name: {provider}/{resource}/{operation} @@ -1976,6 +2024,12 @@ type WorkbooksListResult struct { Value *[]Workbook `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for WorkbooksListResult. +func (wlr WorkbooksListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WorkItemConfiguration work item configuration associated with an application insights resource. type WorkItemConfiguration struct { autorest.Response `json:"-"` @@ -2007,6 +2061,12 @@ type WorkItemConfigurationsListResult struct { Value *[]WorkItemConfiguration `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for WorkItemConfigurationsListResult. +func (wiclr WorkItemConfigurationsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WorkItemCreateConfiguration work item configuration creation payload type WorkItemCreateConfiguration struct { // ConnectorID - Unique connector id diff --git a/services/appplatform/mgmt/2020-07-01/appplatform/CHANGELOG.md b/services/appplatform/mgmt/2020-07-01/appplatform/CHANGELOG.md index 52911e4cc5e4..ed7f2347408c 100644 --- a/services/appplatform/mgmt/2020-07-01/appplatform/CHANGELOG.md +++ b/services/appplatform/mgmt/2020-07-01/appplatform/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. AvailableRuntimeVersions.MarshalJSON() ([]byte, error) +1. DeploymentInstance.MarshalJSON() ([]byte, error) +1. NetworkProfileOutboundIPs.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/appplatform/mgmt/2020-07-01/appplatform/_meta.json b/services/appplatform/mgmt/2020-07-01/appplatform/_meta.json index 8d77799b348b..daab8e104509 100644 --- a/services/appplatform/mgmt/2020-07-01/appplatform/_meta.json +++ b/services/appplatform/mgmt/2020-07-01/appplatform/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/appplatform/resource-manager/readme.md", "tag": "package-2020-07", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/appplatform/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/appplatform/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/appplatform/mgmt/2020-07-01/appplatform/models.go b/services/appplatform/mgmt/2020-07-01/appplatform/models.go index 79ec0def459a..05599810346a 100644 --- a/services/appplatform/mgmt/2020-07-01/appplatform/models.go +++ b/services/appplatform/mgmt/2020-07-01/appplatform/models.go @@ -546,6 +546,12 @@ type AvailableRuntimeVersions struct { Value *[]SupportedRuntimeVersion `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for AvailableRuntimeVersions. +func (arv AvailableRuntimeVersions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BindingResource binding resource payload type BindingResource struct { autorest.Response `json:"-"` @@ -1807,6 +1813,12 @@ type DeploymentInstance struct { StartTime *string `json:"startTime,omitempty"` } +// MarshalJSON is the custom marshaler for DeploymentInstance. +func (di DeploymentInstance) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeploymentResource deployment resource payload type DeploymentResource struct { autorest.Response `json:"-"` @@ -2591,6 +2603,12 @@ type NetworkProfileOutboundIPs struct { PublicIPs *[]string `json:"publicIPs,omitempty"` } +// MarshalJSON is the custom marshaler for NetworkProfileOutboundIPs. +func (npP NetworkProfileOutboundIPs) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationDetail operation detail payload type OperationDetail struct { // Name - Name of the operation @@ -2656,6 +2674,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegenerateTestKeyRequestPayload regenerate test key request payload type RegenerateTestKeyRequestPayload struct { // KeyType - Type of the test key. Possible values include: 'Primary', 'Secondary' @@ -2672,6 +2696,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSku describes an available Azure Spring Cloud SKU. type ResourceSku struct { // ResourceType - Gets the type of resource the SKU applies to. diff --git a/services/attestation/2018-09-01/attestation/_meta.json b/services/attestation/2018-09-01/attestation/_meta.json index 1591f241c3bc..8dcab824ac9a 100644 --- a/services/attestation/2018-09-01/attestation/_meta.json +++ b/services/attestation/2018-09-01/attestation/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/attestation/data-plane/readme.md", "tag": "package-2018-09-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-09-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/attestation/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-09-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/attestation/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/attestation/2020-10-01/attestation/_meta.json b/services/attestation/2020-10-01/attestation/_meta.json index c960c5971331..0d01f5a0804b 100644 --- a/services/attestation/2020-10-01/attestation/_meta.json +++ b/services/attestation/2020-10-01/attestation/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/attestation/data-plane/readme.md", "tag": "package-2020-10-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-10-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/attestation/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-10-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/attestation/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/attestation/mgmt/2018-09-01/attestation/CHANGELOG.md b/services/attestation/mgmt/2018-09-01/attestation/CHANGELOG.md index 52911e4cc5e4..4a0e9bec8e2f 100644 --- a/services/attestation/mgmt/2018-09-01/attestation/CHANGELOG.md +++ b/services/attestation/mgmt/2018-09-01/attestation/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/attestation/mgmt/2018-09-01/attestation/_meta.json b/services/attestation/mgmt/2018-09-01/attestation/_meta.json index 9867819d08a4..6446e2c28bd4 100644 --- a/services/attestation/mgmt/2018-09-01/attestation/_meta.json +++ b/services/attestation/mgmt/2018-09-01/attestation/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/attestation/resource-manager/readme.md", "tag": "package-2018-09-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-09-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/attestation/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-09-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/attestation/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/attestation/mgmt/2018-09-01/attestation/models.go b/services/attestation/mgmt/2018-09-01/attestation/models.go index f5d3d182a5a3..11226a1a8658 100644 --- a/services/attestation/mgmt/2018-09-01/attestation/models.go +++ b/services/attestation/mgmt/2018-09-01/attestation/models.go @@ -26,6 +26,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from Attestation. type CloudError struct { Error *CloudErrorBody `json:"error,omitempty"` @@ -258,6 +264,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -268,6 +280,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceCreationParams parameters for creating an attestation service instance type ServiceCreationParams struct { // Location - The supported Azure location where the attestation service instance should be created. diff --git a/services/attestation/mgmt/2020-10-01/attestation/CHANGELOG.md b/services/attestation/mgmt/2020-10-01/attestation/CHANGELOG.md index 52911e4cc5e4..4a0e9bec8e2f 100644 --- a/services/attestation/mgmt/2020-10-01/attestation/CHANGELOG.md +++ b/services/attestation/mgmt/2020-10-01/attestation/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/attestation/mgmt/2020-10-01/attestation/_meta.json b/services/attestation/mgmt/2020-10-01/attestation/_meta.json index c2acb3e2aa96..ead44b3f62d0 100644 --- a/services/attestation/mgmt/2020-10-01/attestation/_meta.json +++ b/services/attestation/mgmt/2020-10-01/attestation/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/attestation/resource-manager/readme.md", "tag": "package-2020-10-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-10-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/attestation/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-10-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/attestation/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/attestation/mgmt/2020-10-01/attestation/models.go b/services/attestation/mgmt/2020-10-01/attestation/models.go index 53b62a71fe76..3a7547da2129 100644 --- a/services/attestation/mgmt/2020-10-01/attestation/models.go +++ b/services/attestation/mgmt/2020-10-01/attestation/models.go @@ -27,6 +27,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from Attestation. type CloudError struct { Error *CloudErrorBody `json:"error,omitempty"` @@ -292,6 +298,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -302,6 +314,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceCreationParams parameters for creating an attestation service instance type ServiceCreationParams struct { // Location - The supported Azure location where the attestation service instance should be created. diff --git a/services/authorization/mgmt/2015-07-01/authorization/_meta.json b/services/authorization/mgmt/2015-07-01/authorization/_meta.json index 0522cadb7333..a2715bfe473a 100644 --- a/services/authorization/mgmt/2015-07-01/authorization/_meta.json +++ b/services/authorization/mgmt/2015-07-01/authorization/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/authorization/resource-manager/readme.md", "tag": "package-2015-07-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2015-07-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/authorization/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2015-07-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/authorization/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/automation/mgmt/2015-10-31/automation/CHANGELOG.md b/services/automation/mgmt/2015-10-31/automation/CHANGELOG.md index 52911e4cc5e4..425fe56c7b0b 100644 --- a/services/automation/mgmt/2015-10-31/automation/CHANGELOG.md +++ b/services/automation/mgmt/2015-10-31/automation/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. Key.MarshalJSON() ([]byte, error) +1. LinkedWorkspace.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. Statistics.MarshalJSON() ([]byte, error) diff --git a/services/automation/mgmt/2015-10-31/automation/_meta.json b/services/automation/mgmt/2015-10-31/automation/_meta.json index 91fd00299ac3..63e021033de2 100644 --- a/services/automation/mgmt/2015-10-31/automation/_meta.json +++ b/services/automation/mgmt/2015-10-31/automation/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/automation/resource-manager/readme.md", "tag": "package-2015-10", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2015-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/automation/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2015-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/automation/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/automation/mgmt/2015-10-31/automation/models.go b/services/automation/mgmt/2015-10-31/automation/models.go index d94ffe41728d..3ff39f424524 100644 --- a/services/automation/mgmt/2015-10-31/automation/models.go +++ b/services/automation/mgmt/2015-10-31/automation/models.go @@ -5222,6 +5222,12 @@ type Key struct { Value *string `json:"Value,omitempty"` } +// MarshalJSON is the custom marshaler for Key. +func (kVar Key) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // KeyListResult ... type KeyListResult struct { autorest.Response `json:"-"` @@ -5236,6 +5242,12 @@ type LinkedWorkspace struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for LinkedWorkspace. +func (lw LinkedWorkspace) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Module definition of the module type. type Module struct { autorest.Response `json:"-"` @@ -5753,6 +5765,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReadCloser ... type ReadCloser struct { autorest.Response `json:"-"` @@ -5769,6 +5787,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RunAsCredentialAssociationProperty definition of RunAs credential to use for hybrid worker. type RunAsCredentialAssociationProperty struct { // Name - Gets or sets the name of the credential. @@ -6973,6 +6997,12 @@ type Statistics struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for Statistics. +func (s Statistics) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StatisticsListResult the response model for the list statistics operation. type StatisticsListResult struct { autorest.Response `json:"-"` diff --git a/services/avs/mgmt/2020-03-20/avs/CHANGELOG.md b/services/avs/mgmt/2020-03-20/avs/CHANGELOG.md index 52911e4cc5e4..6e6b1e51ef20 100644 --- a/services/avs/mgmt/2020-03-20/avs/CHANGELOG.md +++ b/services/avs/mgmt/2020-03-20/avs/CHANGELOG.md @@ -1,2 +1,21 @@ # Change History +## Additive Changes + +### New Funcs + +1. AdminCredentials.MarshalJSON() ([]byte, error) +1. Circuit.MarshalJSON() ([]byte, error) +1. ClusterList.MarshalJSON() ([]byte, error) +1. Endpoints.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. ExpressRouteAuthorizationList.MarshalJSON() ([]byte, error) +1. ExpressRouteAuthorizationProperties.MarshalJSON() ([]byte, error) +1. HcxEnterpriseSiteList.MarshalJSON() ([]byte, error) +1. HcxEnterpriseSiteProperties.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationList.MarshalJSON() ([]byte, error) +1. PrivateCloudList.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. Trial.MarshalJSON() ([]byte, error) diff --git a/services/avs/mgmt/2020-03-20/avs/_meta.json b/services/avs/mgmt/2020-03-20/avs/_meta.json index e26949e4a7b2..76c7390ac9a7 100644 --- a/services/avs/mgmt/2020-03-20/avs/_meta.json +++ b/services/avs/mgmt/2020-03-20/avs/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/vmware/resource-manager/readme.md", "tag": "package-2020-03-20", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-03-20 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/vmware/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-03-20 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/vmware/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/avs/mgmt/2020-03-20/avs/models.go b/services/avs/mgmt/2020-03-20/avs/models.go index d3f44f3b6c83..7226b48e7acd 100644 --- a/services/avs/mgmt/2020-03-20/avs/models.go +++ b/services/avs/mgmt/2020-03-20/avs/models.go @@ -32,6 +32,12 @@ type AdminCredentials struct { VcenterPassword *string `json:"vcenterPassword,omitempty"` } +// MarshalJSON is the custom marshaler for AdminCredentials. +func (ac AdminCredentials) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AuthorizationsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type AuthorizationsCreateOrUpdateFuture struct { @@ -124,6 +130,12 @@ type Circuit struct { ExpressRoutePrivatePeeringID *string `json:"expressRoutePrivatePeeringID,omitempty"` } +// MarshalJSON is the custom marshaler for Circuit. +func (c Circuit) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError API error response type CloudError struct { // Error - An error returned by the API @@ -226,6 +238,12 @@ type ClusterList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ClusterList. +func (cl ClusterList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ClusterListIterator provides access to a complete listing of Cluster values. type ClusterListIterator struct { i int @@ -578,6 +596,12 @@ type Endpoints struct { HcxCloudManager *string `json:"hcxCloudManager,omitempty"` } +// MarshalJSON is the custom marshaler for Endpoints. +func (e Endpoints) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorAdditionalInfo the resource management error additional info. type ErrorAdditionalInfo struct { // Type - READ-ONLY; The additional info type. @@ -586,6 +610,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.) type ErrorResponse struct { @@ -601,6 +631,12 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRouteAuthorization expressRoute Circuit Authorization type ExpressRouteAuthorization struct { autorest.Response `json:"-"` @@ -680,6 +716,12 @@ type ExpressRouteAuthorizationList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRouteAuthorizationList. +func (eral ExpressRouteAuthorizationList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRouteAuthorizationListIterator provides access to a complete listing of ExpressRouteAuthorization // values. type ExpressRouteAuthorizationListIterator struct { @@ -841,6 +883,12 @@ type ExpressRouteAuthorizationProperties struct { ExpressRouteAuthorizationKey *string `json:"expressRouteAuthorizationKey,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRouteAuthorizationProperties. +func (erap ExpressRouteAuthorizationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HcxEnterpriseSite an HCX Enterprise Site resource type HcxEnterpriseSite struct { autorest.Response `json:"-"` @@ -920,6 +968,12 @@ type HcxEnterpriseSiteList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for HcxEnterpriseSiteList. +func (hesl HcxEnterpriseSiteList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HcxEnterpriseSiteListIterator provides access to a complete listing of HcxEnterpriseSite values. type HcxEnterpriseSiteListIterator struct { i int @@ -1078,6 +1132,12 @@ type HcxEnterpriseSiteProperties struct { Status HcxEnterpriseSiteStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for HcxEnterpriseSiteProperties. +func (hesp HcxEnterpriseSiteProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IdentitySource vCenter Single Sign On Identity Source type IdentitySource struct { // Name - The name of the identity source @@ -1215,6 +1275,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationList pageable list of operations type OperationList struct { autorest.Response `json:"-"` @@ -1224,6 +1290,12 @@ type OperationList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationList. +func (ol OperationList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListIterator provides access to a complete listing of Operation values. type OperationListIterator struct { i int @@ -1504,6 +1576,12 @@ type PrivateCloudList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateCloudList. +func (pcl PrivateCloudList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateCloudListIterator provides access to a complete listing of PrivateCloud values. type PrivateCloudListIterator struct { i int @@ -1924,6 +2002,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceSpecification service specification payload type ServiceSpecification struct { // LogSpecifications - Specifications of the Log for Azure Monitoring @@ -1972,3 +2056,9 @@ type Trial struct { // AvailableHosts - READ-ONLY; Number of trial hosts available AvailableHosts *int32 `json:"availableHosts,omitempty"` } + +// MarshalJSON is the custom marshaler for Trial. +func (t Trial) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/azurestack/mgmt/2017-06-01/azurestack/CHANGELOG.md b/services/azurestack/mgmt/2017-06-01/azurestack/CHANGELOG.md index 52911e4cc5e4..7042c8e58d68 100644 --- a/services/azurestack/mgmt/2017-06-01/azurestack/CHANGELOG.md +++ b/services/azurestack/mgmt/2017-06-01/azurestack/CHANGELOG.md @@ -1,2 +1,14 @@ # Change History +## Additive Changes + +### New Funcs + +1. DataDiskImage.MarshalJSON() ([]byte, error) +1. DeviceConfiguration.MarshalJSON() ([]byte, error) +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. MarketplaceProductLogUpdate.MarshalJSON() ([]byte, error) +1. OsDiskImage.MarshalJSON() ([]byte, error) +1. ProductLog.MarshalJSON() ([]byte, error) +1. URI.MarshalJSON() ([]byte, error) +1. VirtualMachineProductProperties.MarshalJSON() ([]byte, error) diff --git a/services/azurestack/mgmt/2017-06-01/azurestack/_meta.json b/services/azurestack/mgmt/2017-06-01/azurestack/_meta.json index c9c099d29fba..834cf658dc9d 100644 --- a/services/azurestack/mgmt/2017-06-01/azurestack/_meta.json +++ b/services/azurestack/mgmt/2017-06-01/azurestack/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/azurestack/resource-manager/readme.md", "tag": "package-2017-06-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-06-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/azurestack/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-06-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/azurestack/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/azurestack/mgmt/2017-06-01/azurestack/models.go b/services/azurestack/mgmt/2017-06-01/azurestack/models.go index 78b8e1eb85e5..eb5a88f56003 100644 --- a/services/azurestack/mgmt/2017-06-01/azurestack/models.go +++ b/services/azurestack/mgmt/2017-06-01/azurestack/models.go @@ -407,6 +407,12 @@ type DataDiskImage struct { SourceBlobSasURI *string `json:"sourceBlobSasUri,omitempty"` } +// MarshalJSON is the custom marshaler for DataDiskImage. +func (ddi DataDiskImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeviceConfiguration device Configuration. type DeviceConfiguration struct { // DeviceVersion - READ-ONLY; Version of the device. @@ -415,6 +421,12 @@ type DeviceConfiguration struct { IdentitySystem Category `json:"identitySystem,omitempty"` } +// MarshalJSON is the custom marshaler for DeviceConfiguration. +func (dc DeviceConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Display contains the localized display information for this particular operation or action. type Display struct { // Provider - The localized, friendly version of the resource provider name. @@ -437,6 +449,12 @@ type ErrorDetails struct { Target *string `json:"target,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse error response indicates that the service is not able to process the incoming request. The // reason is provided in the error message. type ErrorResponse struct { @@ -653,6 +671,12 @@ type MarketplaceProductLogUpdate struct { Details *string `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for MarketplaceProductLogUpdate. +func (mplu MarketplaceProductLogUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation describes the supported REST operation. type Operation struct { // Name - The name of the operation being performed on this particular object. @@ -830,6 +854,12 @@ type OsDiskImage struct { SourceBlobSasURI *string `json:"sourceBlobSasUri,omitempty"` } +// MarshalJSON is the custom marshaler for OsDiskImage. +func (odi OsDiskImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Product product information. type Product struct { autorest.Response `json:"-"` @@ -1111,6 +1141,12 @@ type ProductLog struct { Details *string `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ProductLog. +func (pl ProductLog) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProductNestedProperties properties portion of the product resource. type ProductNestedProperties struct { // DisplayName - The display name of the product. @@ -1558,6 +1594,12 @@ type URI struct { URI *string `json:"uri,omitempty"` } +// MarshalJSON is the custom marshaler for URI. +func (u URI) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineExtensionProductProperties product information. type VirtualMachineExtensionProductProperties struct { // ComputeRole - READ-ONLY; Specifies kind of compute role included in the package. Possible values include: 'None', 'IaaS', 'PaaS' @@ -1669,3 +1711,9 @@ type VirtualMachineProductProperties struct { // DataDiskImages - READ-ONLY; List of attached data disks. DataDiskImages *[]DataDiskImage `json:"dataDiskImages,omitempty"` } + +// MarshalJSON is the custom marshaler for VirtualMachineProductProperties. +func (vmpp VirtualMachineProductProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/azurestackhci/mgmt/2020-10-01/azurestackhci/CHANGELOG.md b/services/azurestackhci/mgmt/2020-10-01/azurestackhci/CHANGELOG.md index 52911e4cc5e4..84d205125a1c 100644 --- a/services/azurestackhci/mgmt/2020-10-01/azurestackhci/CHANGELOG.md +++ b/services/azurestackhci/mgmt/2020-10-01/azurestackhci/CHANGELOG.md @@ -1,2 +1,13 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ClusterNode.MarshalJSON() ([]byte, error) +1. ClusterReportedProperties.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorDetail.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/azurestackhci/mgmt/2020-10-01/azurestackhci/_meta.json b/services/azurestackhci/mgmt/2020-10-01/azurestackhci/_meta.json index 1d36279961dc..15ccddd5a405 100644 --- a/services/azurestackhci/mgmt/2020-10-01/azurestackhci/_meta.json +++ b/services/azurestackhci/mgmt/2020-10-01/azurestackhci/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/azurestackhci/resource-manager/readme.md", "tag": "package-2020-10", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/azurestackhci/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/azurestackhci/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/azurestackhci/mgmt/2020-10-01/azurestackhci/models.go b/services/azurestackhci/mgmt/2020-10-01/azurestackhci/models.go index 620d23d113a3..02fcceff5bfb 100644 --- a/services/azurestackhci/mgmt/2020-10-01/azurestackhci/models.go +++ b/services/azurestackhci/mgmt/2020-10-01/azurestackhci/models.go @@ -41,6 +41,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Cluster cluster details. type Cluster struct { autorest.Response `json:"-"` @@ -332,6 +338,12 @@ type ClusterNode struct { MemoryInGiB *float64 `json:"memoryInGiB,omitempty"` } +// MarshalJSON is the custom marshaler for ClusterNode. +func (cn ClusterNode) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ClusterProperties cluster properties. type ClusterProperties struct { // ProvisioningState - READ-ONLY; Provisioning state. Possible values include: 'Succeeded', 'Failed', 'Canceled', 'Accepted', 'Provisioning' @@ -387,6 +399,12 @@ type ClusterReportedProperties struct { LastUpdated *date.Time `json:"lastUpdated,omitempty"` } +// MarshalJSON is the custom marshaler for ClusterReportedProperties. +func (crp ClusterReportedProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ClusterUpdate cluster details to update. type ClusterUpdate struct { // Tags - Resource tags. @@ -410,6 +428,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetail the error detail. type ErrorDetail struct { // Code - READ-ONLY; The error code. @@ -424,6 +448,12 @@ type ErrorDetail struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetail. +func (ed ErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.). type ErrorResponse struct { @@ -468,6 +498,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -478,6 +514,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource type TrackedResource struct { // Tags - Resource tags. diff --git a/services/batch/2017-05-01.5.0/batch/_meta.json b/services/batch/2017-05-01.5.0/batch/_meta.json index 3db105cfdfde..6872bed7707d 100644 --- a/services/batch/2017-05-01.5.0/batch/_meta.json +++ b/services/batch/2017-05-01.5.0/batch/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/batch/data-plane/readme.md", "tag": "package-2017-05.5.0", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-05.5.0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batch/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-05.5.0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batch/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/batch/2018-03-01.6.1/batch/_meta.json b/services/batch/2018-03-01.6.1/batch/_meta.json index 720cfcd6e8e9..69803c37cfda 100644 --- a/services/batch/2018-03-01.6.1/batch/_meta.json +++ b/services/batch/2018-03-01.6.1/batch/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/batch/data-plane/readme.md", "tag": "package-2018-03.6.1", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-03.6.1 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batch/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-03.6.1 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batch/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/batch/2018-08-01.7.0/batch/_meta.json b/services/batch/2018-08-01.7.0/batch/_meta.json index 359dc6eb5e46..65e062d3793d 100644 --- a/services/batch/2018-08-01.7.0/batch/_meta.json +++ b/services/batch/2018-08-01.7.0/batch/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/batch/data-plane/readme.md", "tag": "package-2018-08.7.0", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-08.7.0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batch/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-08.7.0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batch/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/batch/2018-12-01.8.0/batch/_meta.json b/services/batch/2018-12-01.8.0/batch/_meta.json index 7a1f27e2e0cd..0a04579d748a 100644 --- a/services/batch/2018-12-01.8.0/batch/_meta.json +++ b/services/batch/2018-12-01.8.0/batch/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/batch/data-plane/readme.md", "tag": "package-2018-12.8.0", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-12.8.0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batch/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-12.8.0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batch/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/batch/2019-06-01.9.0/batch/_meta.json b/services/batch/2019-06-01.9.0/batch/_meta.json index c7fb093d7479..85db89f9f4b1 100644 --- a/services/batch/2019-06-01.9.0/batch/_meta.json +++ b/services/batch/2019-06-01.9.0/batch/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/batch/data-plane/readme.md", "tag": "package-2019-06.9.0", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-06.9.0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batch/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-06.9.0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batch/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/batch/2019-08-01.10.0/batch/_meta.json b/services/batch/2019-08-01.10.0/batch/_meta.json index b57bb9c0d415..13646b35e8a5 100644 --- a/services/batch/2019-08-01.10.0/batch/_meta.json +++ b/services/batch/2019-08-01.10.0/batch/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/batch/data-plane/readme.md", "tag": "package-2019-08.10.0", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-08.10.0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batch/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-08.10.0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batch/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/batch/2020-03-01.11.0/batch/_meta.json b/services/batch/2020-03-01.11.0/batch/_meta.json index 8a71869153c3..9135b459c812 100644 --- a/services/batch/2020-03-01.11.0/batch/_meta.json +++ b/services/batch/2020-03-01.11.0/batch/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/batch/data-plane/readme.md", "tag": "package-2020-03.11.0", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-03.11.0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batch/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-03.11.0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batch/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/batch/2020-09-01.12.0/batch/_meta.json b/services/batch/2020-09-01.12.0/batch/_meta.json index b5aeffa1c32a..55b5d1dcaec1 100644 --- a/services/batch/2020-09-01.12.0/batch/_meta.json +++ b/services/batch/2020-09-01.12.0/batch/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/batch/data-plane/readme.md", "tag": "package-2020-09.12.0", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-09.12.0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batch/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-09.12.0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batch/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/batch/mgmt/2015-12-01/batch/_meta.json b/services/batch/mgmt/2015-12-01/batch/_meta.json index e117510a142e..2dbaf9ac1deb 100644 --- a/services/batch/mgmt/2015-12-01/batch/_meta.json +++ b/services/batch/mgmt/2015-12-01/batch/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/batch/resource-manager/readme.md", "tag": "package-2015-12", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2015-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batch/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2015-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batch/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/batch/mgmt/2017-01-01/batch/CHANGELOG.md b/services/batch/mgmt/2017-01-01/batch/CHANGELOG.md index 52911e4cc5e4..7e0a6f61fec9 100644 --- a/services/batch/mgmt/2017-01-01/batch/CHANGELOG.md +++ b/services/batch/mgmt/2017-01-01/batch/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountKeys.MarshalJSON() ([]byte, error) +1. AccountProperties.MarshalJSON() ([]byte, error) +1. ApplicationPackage.MarshalJSON() ([]byte, error) +1. LocationQuota.MarshalJSON() ([]byte, error) diff --git a/services/batch/mgmt/2017-01-01/batch/_meta.json b/services/batch/mgmt/2017-01-01/batch/_meta.json index d35f02b1f42e..32e58946ab43 100644 --- a/services/batch/mgmt/2017-01-01/batch/_meta.json +++ b/services/batch/mgmt/2017-01-01/batch/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/batch/resource-manager/readme.md", "tag": "package-2017-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batch/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batch/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/batch/mgmt/2017-01-01/batch/models.go b/services/batch/mgmt/2017-01-01/batch/models.go index a1f66ced5b24..53f3518576a9 100644 --- a/services/batch/mgmt/2017-01-01/batch/models.go +++ b/services/batch/mgmt/2017-01-01/batch/models.go @@ -281,6 +281,12 @@ type AccountKeys struct { Secondary *string `json:"secondary,omitempty"` } +// MarshalJSON is the custom marshaler for AccountKeys. +func (ak AccountKeys) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListResult values returned by the List operation. type AccountListResult struct { autorest.Response `json:"-"` @@ -460,6 +466,12 @@ type AccountProperties struct { ActiveJobAndJobScheduleQuota *int32 `json:"activeJobAndJobScheduleQuota,omitempty"` } +// MarshalJSON is the custom marshaler for AccountProperties. +func (ap AccountProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountRegenerateKeyParameters parameters supplied to the RegenerateKey operation. type AccountRegenerateKeyParameters struct { // KeyName - The type of account key to regenerate. Possible values include: 'Primary', 'Secondary' @@ -574,6 +586,12 @@ type ApplicationPackage struct { LastActivationTime *date.Time `json:"lastActivationTime,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationPackage. +func (ap ApplicationPackage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AutoStorageBaseProperties the properties related to auto storage account. type AutoStorageBaseProperties struct { // StorageAccountID - The resource ID of the storage account to be used for auto storage account. @@ -775,6 +793,12 @@ type LocationQuota struct { AccountQuota *int32 `json:"accountQuota,omitempty"` } +// MarshalJSON is the custom marshaler for LocationQuota. +func (lq LocationQuota) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource a definition of an Azure resource. type Resource struct { // ID - READ-ONLY; The ID of the resource diff --git a/services/batch/mgmt/2017-05-01/batch/CHANGELOG.md b/services/batch/mgmt/2017-05-01/batch/CHANGELOG.md index 52911e4cc5e4..2e7a86ca25d6 100644 --- a/services/batch/mgmt/2017-05-01/batch/CHANGELOG.md +++ b/services/batch/mgmt/2017-05-01/batch/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountKeys.MarshalJSON() ([]byte, error) +1. AccountProperties.MarshalJSON() ([]byte, error) +1. ApplicationPackage.MarshalJSON() ([]byte, error) +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) +1. LocationQuota.MarshalJSON() ([]byte, error) diff --git a/services/batch/mgmt/2017-05-01/batch/_meta.json b/services/batch/mgmt/2017-05-01/batch/_meta.json index 16de33387a1c..80060f03518a 100644 --- a/services/batch/mgmt/2017-05-01/batch/_meta.json +++ b/services/batch/mgmt/2017-05-01/batch/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/batch/resource-manager/readme.md", "tag": "package-2017-05", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batch/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batch/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/batch/mgmt/2017-05-01/batch/models.go b/services/batch/mgmt/2017-05-01/batch/models.go index 253f144112d1..3265202d2dda 100644 --- a/services/batch/mgmt/2017-05-01/batch/models.go +++ b/services/batch/mgmt/2017-05-01/batch/models.go @@ -283,6 +283,12 @@ type AccountKeys struct { Secondary *string `json:"secondary,omitempty"` } +// MarshalJSON is the custom marshaler for AccountKeys. +func (ak AccountKeys) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListResult values returned by the List operation. type AccountListResult struct { autorest.Response `json:"-"` @@ -464,6 +470,12 @@ type AccountProperties struct { ActiveJobAndJobScheduleQuota *int32 `json:"activeJobAndJobScheduleQuota,omitempty"` } +// MarshalJSON is the custom marshaler for AccountProperties. +func (ap AccountProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountRegenerateKeyParameters parameters supplied to the RegenerateKey operation. type AccountRegenerateKeyParameters struct { // KeyName - The type of account key to regenerate. Possible values include: 'Primary', 'Secondary' @@ -577,6 +589,12 @@ type ApplicationPackage struct { LastActivationTime *date.Time `json:"lastActivationTime,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationPackage. +func (ap ApplicationPackage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationUpdateParameters parameters for an update application request. type ApplicationUpdateParameters struct { // AllowUpdates - A value indicating whether packages within the application may be overwritten using the same version string. @@ -621,6 +639,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from the Batch service. type CloudError struct { Error *CloudErrorBody `json:"error,omitempty"` @@ -812,6 +836,12 @@ type LocationQuota struct { AccountQuota *int32 `json:"accountQuota,omitempty"` } +// MarshalJSON is the custom marshaler for LocationQuota. +func (lq LocationQuota) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation ... type Operation struct { // Name - This is of the format {provider}/{resource}/{operation} diff --git a/services/batch/mgmt/2017-09-01/batch/CHANGELOG.md b/services/batch/mgmt/2017-09-01/batch/CHANGELOG.md index 52911e4cc5e4..b1df97d51518 100644 --- a/services/batch/mgmt/2017-09-01/batch/CHANGELOG.md +++ b/services/batch/mgmt/2017-09-01/batch/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountKeys.MarshalJSON() ([]byte, error) +1. AccountProperties.MarshalJSON() ([]byte, error) +1. ApplicationPackage.MarshalJSON() ([]byte, error) +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) +1. LocationQuota.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) diff --git a/services/batch/mgmt/2017-09-01/batch/_meta.json b/services/batch/mgmt/2017-09-01/batch/_meta.json index 5c1ec59e8b08..765bba8edbe0 100644 --- a/services/batch/mgmt/2017-09-01/batch/_meta.json +++ b/services/batch/mgmt/2017-09-01/batch/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/batch/resource-manager/readme.md", "tag": "package-2017-09", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batch/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batch/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/batch/mgmt/2017-09-01/batch/models.go b/services/batch/mgmt/2017-09-01/batch/models.go index 567a66115e0f..dd35fd2cf5cb 100644 --- a/services/batch/mgmt/2017-09-01/batch/models.go +++ b/services/batch/mgmt/2017-09-01/batch/models.go @@ -283,6 +283,12 @@ type AccountKeys struct { Secondary *string `json:"secondary,omitempty"` } +// MarshalJSON is the custom marshaler for AccountKeys. +func (ak AccountKeys) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListResult values returned by the List operation. type AccountListResult struct { autorest.Response `json:"-"` @@ -464,6 +470,12 @@ type AccountProperties struct { ActiveJobAndJobScheduleQuota *int32 `json:"activeJobAndJobScheduleQuota,omitempty"` } +// MarshalJSON is the custom marshaler for AccountProperties. +func (ap AccountProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountRegenerateKeyParameters parameters supplied to the RegenerateKey operation. type AccountRegenerateKeyParameters struct { // KeyName - The type of account key to regenerate. Possible values include: 'Primary', 'Secondary' @@ -577,6 +589,12 @@ type ApplicationPackage struct { LastActivationTime *date.Time `json:"lastActivationTime,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationPackage. +func (ap ApplicationPackage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationPackageReference ... type ApplicationPackageReference struct { ID *string `json:"id,omitempty"` @@ -986,6 +1004,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from the Batch service. type CloudError struct { Error *CloudErrorBody `json:"error,omitempty"` @@ -1601,6 +1625,12 @@ type LocationQuota struct { AccountQuota *int32 `json:"accountQuota,omitempty"` } +// MarshalJSON is the custom marshaler for LocationQuota. +func (lq LocationQuota) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetadataItem the Batch service does not assign any meaning to this metadata; it is solely for the use of // user code. type MetadataItem struct { @@ -2087,6 +2117,12 @@ type ProxyResource struct { Etag *string `json:"etag,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResizeError ... type ResizeError struct { // Code - An identifier for the error. Codes are invariant and are intended to be consumed programmatically. diff --git a/services/batch/mgmt/2018-12-01/batch/CHANGELOG.md b/services/batch/mgmt/2018-12-01/batch/CHANGELOG.md index 52911e4cc5e4..689fdf12e1a8 100644 --- a/services/batch/mgmt/2018-12-01/batch/CHANGELOG.md +++ b/services/batch/mgmt/2018-12-01/batch/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountKeys.MarshalJSON() ([]byte, error) +1. AccountProperties.MarshalJSON() ([]byte, error) +1. ApplicationPackageProperties.MarshalJSON() ([]byte, error) +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) +1. LocationQuota.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) diff --git a/services/batch/mgmt/2018-12-01/batch/_meta.json b/services/batch/mgmt/2018-12-01/batch/_meta.json index 6259ac2dd837..d53d4a3101d9 100644 --- a/services/batch/mgmt/2018-12-01/batch/_meta.json +++ b/services/batch/mgmt/2018-12-01/batch/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/batch/resource-manager/readme.md", "tag": "package-2018-12", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batch/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batch/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/batch/mgmt/2018-12-01/batch/models.go b/services/batch/mgmt/2018-12-01/batch/models.go index d920d50d7bf1..223f21a7b5f4 100644 --- a/services/batch/mgmt/2018-12-01/batch/models.go +++ b/services/batch/mgmt/2018-12-01/batch/models.go @@ -283,6 +283,12 @@ type AccountKeys struct { Secondary *string `json:"secondary,omitempty"` } +// MarshalJSON is the custom marshaler for AccountKeys. +func (ak AccountKeys) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListResult values returned by the List operation. type AccountListResult struct { autorest.Response `json:"-"` @@ -464,6 +470,12 @@ type AccountProperties struct { ActiveJobAndJobScheduleQuota *int32 `json:"activeJobAndJobScheduleQuota,omitempty"` } +// MarshalJSON is the custom marshaler for AccountProperties. +func (ap AccountProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountRegenerateKeyParameters parameters supplied to the RegenerateKey operation. type AccountRegenerateKeyParameters struct { // KeyName - The type of account key to regenerate. Possible values include: 'Primary', 'Secondary' @@ -717,6 +729,12 @@ type ApplicationPackageProperties struct { LastActivationTime *date.Time `json:"lastActivationTime,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationPackageProperties. +func (app ApplicationPackageProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationPackageReference ... type ApplicationPackageReference struct { ID *string `json:"id,omitempty"` @@ -1118,6 +1136,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from the Batch service. type CloudError struct { Error *CloudErrorBody `json:"error,omitempty"` @@ -1908,6 +1932,12 @@ type LocationQuota struct { AccountQuota *int32 `json:"accountQuota,omitempty"` } +// MarshalJSON is the custom marshaler for LocationQuota. +func (lq LocationQuota) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetadataItem the Batch service does not assign any meaning to this metadata; it is solely for the use of // user code. type MetadataItem struct { @@ -2383,6 +2413,12 @@ type ProxyResource struct { Etag *string `json:"etag,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResizeError ... type ResizeError struct { // Code - An identifier for the error. Codes are invariant and are intended to be consumed programmatically. diff --git a/services/batch/mgmt/2019-04-01/batch/CHANGELOG.md b/services/batch/mgmt/2019-04-01/batch/CHANGELOG.md index 52911e4cc5e4..974fecc13592 100644 --- a/services/batch/mgmt/2019-04-01/batch/CHANGELOG.md +++ b/services/batch/mgmt/2019-04-01/batch/CHANGELOG.md @@ -1,2 +1,13 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountKeys.MarshalJSON() ([]byte, error) +1. AccountProperties.MarshalJSON() ([]byte, error) +1. ApplicationPackageProperties.MarshalJSON() ([]byte, error) +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) +1. LocationQuota.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. VirtualMachineFamilyCoreQuota.MarshalJSON() ([]byte, error) diff --git a/services/batch/mgmt/2019-04-01/batch/_meta.json b/services/batch/mgmt/2019-04-01/batch/_meta.json index d51b04309531..e809ab7f266f 100644 --- a/services/batch/mgmt/2019-04-01/batch/_meta.json +++ b/services/batch/mgmt/2019-04-01/batch/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/batch/resource-manager/readme.md", "tag": "package-2019-04", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batch/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batch/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/batch/mgmt/2019-04-01/batch/models.go b/services/batch/mgmt/2019-04-01/batch/models.go index 309462bcee70..4e2523a2837e 100644 --- a/services/batch/mgmt/2019-04-01/batch/models.go +++ b/services/batch/mgmt/2019-04-01/batch/models.go @@ -283,6 +283,12 @@ type AccountKeys struct { Secondary *string `json:"secondary,omitempty"` } +// MarshalJSON is the custom marshaler for AccountKeys. +func (ak AccountKeys) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListResult values returned by the List operation. type AccountListResult struct { autorest.Response `json:"-"` @@ -468,6 +474,12 @@ type AccountProperties struct { ActiveJobAndJobScheduleQuota *int32 `json:"activeJobAndJobScheduleQuota,omitempty"` } +// MarshalJSON is the custom marshaler for AccountProperties. +func (ap AccountProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountRegenerateKeyParameters parameters supplied to the RegenerateKey operation. type AccountRegenerateKeyParameters struct { // KeyName - The type of account key to regenerate. Possible values include: 'Primary', 'Secondary' @@ -721,6 +733,12 @@ type ApplicationPackageProperties struct { LastActivationTime *date.Time `json:"lastActivationTime,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationPackageProperties. +func (app ApplicationPackageProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationPackageReference ... type ApplicationPackageReference struct { ID *string `json:"id,omitempty"` @@ -1122,6 +1140,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from the Batch service. type CloudError struct { Error *CloudErrorBody `json:"error,omitempty"` @@ -1912,6 +1936,12 @@ type LocationQuota struct { AccountQuota *int32 `json:"accountQuota,omitempty"` } +// MarshalJSON is the custom marshaler for LocationQuota. +func (lq LocationQuota) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetadataItem the Batch service does not assign any meaning to this metadata; it is solely for the use of // user code. type MetadataItem struct { @@ -2389,6 +2419,12 @@ type ProxyResource struct { Etag *string `json:"etag,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResizeError ... type ResizeError struct { // Code - An identifier for the error. Codes are invariant and are intended to be consumed programmatically. @@ -2540,6 +2576,12 @@ type VirtualMachineFamilyCoreQuota struct { CoreQuota *int32 `json:"coreQuota,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineFamilyCoreQuota. +func (vmfcq VirtualMachineFamilyCoreQuota) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WindowsConfiguration ... type WindowsConfiguration struct { // EnableAutomaticUpdates - If omitted, the default value is true. diff --git a/services/batch/mgmt/2019-08-01/batch/CHANGELOG.md b/services/batch/mgmt/2019-08-01/batch/CHANGELOG.md index 52911e4cc5e4..974fecc13592 100644 --- a/services/batch/mgmt/2019-08-01/batch/CHANGELOG.md +++ b/services/batch/mgmt/2019-08-01/batch/CHANGELOG.md @@ -1,2 +1,13 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountKeys.MarshalJSON() ([]byte, error) +1. AccountProperties.MarshalJSON() ([]byte, error) +1. ApplicationPackageProperties.MarshalJSON() ([]byte, error) +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) +1. LocationQuota.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. VirtualMachineFamilyCoreQuota.MarshalJSON() ([]byte, error) diff --git a/services/batch/mgmt/2019-08-01/batch/_meta.json b/services/batch/mgmt/2019-08-01/batch/_meta.json index 0728f8e193d6..b56eb8128403 100644 --- a/services/batch/mgmt/2019-08-01/batch/_meta.json +++ b/services/batch/mgmt/2019-08-01/batch/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/batch/resource-manager/readme.md", "tag": "package-2019-08", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batch/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batch/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/batch/mgmt/2019-08-01/batch/models.go b/services/batch/mgmt/2019-08-01/batch/models.go index 3fa78eb444fd..fb825c3080fd 100644 --- a/services/batch/mgmt/2019-08-01/batch/models.go +++ b/services/batch/mgmt/2019-08-01/batch/models.go @@ -283,6 +283,12 @@ type AccountKeys struct { Secondary *string `json:"secondary,omitempty"` } +// MarshalJSON is the custom marshaler for AccountKeys. +func (ak AccountKeys) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListResult values returned by the List operation. type AccountListResult struct { autorest.Response `json:"-"` @@ -468,6 +474,12 @@ type AccountProperties struct { ActiveJobAndJobScheduleQuota *int32 `json:"activeJobAndJobScheduleQuota,omitempty"` } +// MarshalJSON is the custom marshaler for AccountProperties. +func (ap AccountProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountRegenerateKeyParameters parameters supplied to the RegenerateKey operation. type AccountRegenerateKeyParameters struct { // KeyName - The type of account key to regenerate. Possible values include: 'Primary', 'Secondary' @@ -721,6 +733,12 @@ type ApplicationPackageProperties struct { LastActivationTime *date.Time `json:"lastActivationTime,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationPackageProperties. +func (app ApplicationPackageProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationPackageReference ... type ApplicationPackageReference struct { ID *string `json:"id,omitempty"` @@ -1148,6 +1166,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CIFSMountConfiguration ... type CIFSMountConfiguration struct { Username *string `json:"username,omitempty"` @@ -1949,6 +1973,12 @@ type LocationQuota struct { AccountQuota *int32 `json:"accountQuota,omitempty"` } +// MarshalJSON is the custom marshaler for LocationQuota. +func (lq LocationQuota) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetadataItem the Batch service does not assign any meaning to this metadata; it is solely for the use of // user code. type MetadataItem struct { @@ -2456,6 +2486,12 @@ type ProxyResource struct { Etag *string `json:"etag,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResizeError ... type ResizeError struct { // Code - An identifier for the error. Codes are invariant and are intended to be consumed programmatically. @@ -2609,6 +2645,12 @@ type VirtualMachineFamilyCoreQuota struct { CoreQuota *int32 `json:"coreQuota,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineFamilyCoreQuota. +func (vmfcq VirtualMachineFamilyCoreQuota) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WindowsConfiguration ... type WindowsConfiguration struct { // EnableAutomaticUpdates - If omitted, the default value is true. diff --git a/services/batch/mgmt/2020-03-01/batch/CHANGELOG.md b/services/batch/mgmt/2020-03-01/batch/CHANGELOG.md index 52911e4cc5e4..9e1aae370d36 100644 --- a/services/batch/mgmt/2020-03-01/batch/CHANGELOG.md +++ b/services/batch/mgmt/2020-03-01/batch/CHANGELOG.md @@ -1,2 +1,15 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountKeys.MarshalJSON() ([]byte, error) +1. AccountProperties.MarshalJSON() ([]byte, error) +1. ApplicationPackageProperties.MarshalJSON() ([]byte, error) +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) +1. LocationQuota.MarshalJSON() ([]byte, error) +1. PrivateEndpoint.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. VirtualMachineFamilyCoreQuota.MarshalJSON() ([]byte, error) diff --git a/services/batch/mgmt/2020-03-01/batch/_meta.json b/services/batch/mgmt/2020-03-01/batch/_meta.json index 52c3dbb59100..c724991f5a6f 100644 --- a/services/batch/mgmt/2020-03-01/batch/_meta.json +++ b/services/batch/mgmt/2020-03-01/batch/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/batch/resource-manager/readme.md", "tag": "package-2020-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batch/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batch/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/batch/mgmt/2020-03-01/batch/models.go b/services/batch/mgmt/2020-03-01/batch/models.go index 5873bb7db87e..9fe71b820be4 100644 --- a/services/batch/mgmt/2020-03-01/batch/models.go +++ b/services/batch/mgmt/2020-03-01/batch/models.go @@ -286,6 +286,12 @@ type AccountKeys struct { Secondary *string `json:"secondary,omitempty"` } +// MarshalJSON is the custom marshaler for AccountKeys. +func (ak AccountKeys) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListResult values returned by the List operation. type AccountListResult struct { autorest.Response `json:"-"` @@ -477,6 +483,12 @@ type AccountProperties struct { ActiveJobAndJobScheduleQuota *int32 `json:"activeJobAndJobScheduleQuota,omitempty"` } +// MarshalJSON is the custom marshaler for AccountProperties. +func (ap AccountProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountRegenerateKeyParameters parameters supplied to the RegenerateKey operation. type AccountRegenerateKeyParameters struct { // KeyName - The type of account key to regenerate. Possible values include: 'Primary', 'Secondary' @@ -731,6 +743,12 @@ type ApplicationPackageProperties struct { LastActivationTime *date.Time `json:"lastActivationTime,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationPackageProperties. +func (app ApplicationPackageProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationPackageReference ... type ApplicationPackageReference struct { ID *string `json:"id,omitempty"` @@ -1158,6 +1176,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CIFSMountConfiguration ... type CIFSMountConfiguration struct { Username *string `json:"username,omitempty"` @@ -2301,6 +2325,12 @@ type LocationQuota struct { AccountQuota *int32 `json:"accountQuota,omitempty"` } +// MarshalJSON is the custom marshaler for LocationQuota. +func (lq LocationQuota) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetadataItem the Batch service does not assign any meaning to this metadata; it is solely for the use of // user code. type MetadataItem struct { @@ -2802,6 +2832,12 @@ type PrivateEndpoint struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpoint. +func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection contains information about a private link resource. type PrivateEndpointConnection struct { autorest.Response `json:"-"` @@ -3000,6 +3036,12 @@ type PrivateLinkResourceProperties struct { RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. +func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkServiceConnectionState the private link service connection state of the private endpoint // connection type PrivateLinkServiceConnectionState struct { @@ -3034,6 +3076,12 @@ type ProxyResource struct { Etag *string `json:"etag,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PublicIPAddressConfiguration the public IP Address configuration of the networking configuration of a // Pool. type PublicIPAddressConfiguration struct { @@ -3198,6 +3246,12 @@ type VirtualMachineFamilyCoreQuota struct { CoreQuota *int32 `json:"coreQuota,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineFamilyCoreQuota. +func (vmfcq VirtualMachineFamilyCoreQuota) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WindowsConfiguration ... type WindowsConfiguration struct { // EnableAutomaticUpdates - If omitted, the default value is true. diff --git a/services/batch/mgmt/2020-05-01/batch/CHANGELOG.md b/services/batch/mgmt/2020-05-01/batch/CHANGELOG.md index 52911e4cc5e4..9e1aae370d36 100644 --- a/services/batch/mgmt/2020-05-01/batch/CHANGELOG.md +++ b/services/batch/mgmt/2020-05-01/batch/CHANGELOG.md @@ -1,2 +1,15 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountKeys.MarshalJSON() ([]byte, error) +1. AccountProperties.MarshalJSON() ([]byte, error) +1. ApplicationPackageProperties.MarshalJSON() ([]byte, error) +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) +1. LocationQuota.MarshalJSON() ([]byte, error) +1. PrivateEndpoint.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. VirtualMachineFamilyCoreQuota.MarshalJSON() ([]byte, error) diff --git a/services/batch/mgmt/2020-05-01/batch/_meta.json b/services/batch/mgmt/2020-05-01/batch/_meta.json index 7ae1cbcfb587..126eadcb1db0 100644 --- a/services/batch/mgmt/2020-05-01/batch/_meta.json +++ b/services/batch/mgmt/2020-05-01/batch/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/batch/resource-manager/readme.md", "tag": "package-2020-05", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batch/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batch/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/batch/mgmt/2020-05-01/batch/models.go b/services/batch/mgmt/2020-05-01/batch/models.go index 65cfb2b1f02b..f2ca9d32b3d1 100644 --- a/services/batch/mgmt/2020-05-01/batch/models.go +++ b/services/batch/mgmt/2020-05-01/batch/models.go @@ -335,6 +335,12 @@ type AccountKeys struct { Secondary *string `json:"secondary,omitempty"` } +// MarshalJSON is the custom marshaler for AccountKeys. +func (ak AccountKeys) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListResult values returned by the List operation. type AccountListResult struct { autorest.Response `json:"-"` @@ -526,6 +532,12 @@ type AccountProperties struct { ActiveJobAndJobScheduleQuota *int32 `json:"activeJobAndJobScheduleQuota,omitempty"` } +// MarshalJSON is the custom marshaler for AccountProperties. +func (ap AccountProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountRegenerateKeyParameters parameters supplied to the RegenerateKey operation. type AccountRegenerateKeyParameters struct { // KeyName - The type of account key to regenerate. Possible values include: 'Primary', 'Secondary' @@ -795,6 +807,12 @@ type ApplicationPackageProperties struct { LastActivationTime *date.Time `json:"lastActivationTime,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationPackageProperties. +func (app ApplicationPackageProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationPackageReference ... type ApplicationPackageReference struct { ID *string `json:"id,omitempty"` @@ -1222,6 +1240,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CIFSMountConfiguration ... type CIFSMountConfiguration struct { Username *string `json:"username,omitempty"` @@ -2370,6 +2394,12 @@ type LocationQuota struct { AccountQuota *int32 `json:"accountQuota,omitempty"` } +// MarshalJSON is the custom marshaler for LocationQuota. +func (lq LocationQuota) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetadataItem the Batch service does not assign any meaning to this metadata; it is solely for the use of // user code. type MetadataItem struct { @@ -2871,6 +2901,12 @@ type PrivateEndpoint struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpoint. +func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection contains information about a private link resource. type PrivateEndpointConnection struct { autorest.Response `json:"-"` @@ -3112,6 +3148,12 @@ type PrivateLinkResourceProperties struct { RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. +func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkServiceConnectionState the private link service connection state of the private endpoint // connection type PrivateLinkServiceConnectionState struct { @@ -3146,6 +3188,12 @@ type ProxyResource struct { Etag *string `json:"etag,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PublicIPAddressConfiguration the public IP Address configuration of the networking configuration of a // Pool. type PublicIPAddressConfiguration struct { @@ -3310,6 +3358,12 @@ type VirtualMachineFamilyCoreQuota struct { CoreQuota *int32 `json:"coreQuota,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineFamilyCoreQuota. +func (vmfcq VirtualMachineFamilyCoreQuota) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WindowsConfiguration ... type WindowsConfiguration struct { // EnableAutomaticUpdates - If omitted, the default value is true. diff --git a/services/batch/mgmt/2020-09-01/batch/CHANGELOG.md b/services/batch/mgmt/2020-09-01/batch/CHANGELOG.md index 52911e4cc5e4..9e1aae370d36 100644 --- a/services/batch/mgmt/2020-09-01/batch/CHANGELOG.md +++ b/services/batch/mgmt/2020-09-01/batch/CHANGELOG.md @@ -1,2 +1,15 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountKeys.MarshalJSON() ([]byte, error) +1. AccountProperties.MarshalJSON() ([]byte, error) +1. ApplicationPackageProperties.MarshalJSON() ([]byte, error) +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) +1. LocationQuota.MarshalJSON() ([]byte, error) +1. PrivateEndpoint.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. VirtualMachineFamilyCoreQuota.MarshalJSON() ([]byte, error) diff --git a/services/batch/mgmt/2020-09-01/batch/_meta.json b/services/batch/mgmt/2020-09-01/batch/_meta.json index da5c7d1e1148..11c3aba58112 100644 --- a/services/batch/mgmt/2020-09-01/batch/_meta.json +++ b/services/batch/mgmt/2020-09-01/batch/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/batch/resource-manager/readme.md", "tag": "package-2020-09", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batch/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batch/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/batch/mgmt/2020-09-01/batch/models.go b/services/batch/mgmt/2020-09-01/batch/models.go index 5ed7a6422e6d..bb6a785a3835 100644 --- a/services/batch/mgmt/2020-09-01/batch/models.go +++ b/services/batch/mgmt/2020-09-01/batch/models.go @@ -335,6 +335,12 @@ type AccountKeys struct { Secondary *string `json:"secondary,omitempty"` } +// MarshalJSON is the custom marshaler for AccountKeys. +func (ak AccountKeys) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListResult values returned by the List operation. type AccountListResult struct { autorest.Response `json:"-"` @@ -526,6 +532,12 @@ type AccountProperties struct { ActiveJobAndJobScheduleQuota *int32 `json:"activeJobAndJobScheduleQuota,omitempty"` } +// MarshalJSON is the custom marshaler for AccountProperties. +func (ap AccountProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountRegenerateKeyParameters parameters supplied to the RegenerateKey operation. type AccountRegenerateKeyParameters struct { // KeyName - The type of account key to regenerate. Possible values include: 'Primary', 'Secondary' @@ -795,6 +807,12 @@ type ApplicationPackageProperties struct { LastActivationTime *date.Time `json:"lastActivationTime,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationPackageProperties. +func (app ApplicationPackageProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationPackageReference ... type ApplicationPackageReference struct { ID *string `json:"id,omitempty"` @@ -1222,6 +1240,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CIFSMountConfiguration ... type CIFSMountConfiguration struct { Username *string `json:"username,omitempty"` @@ -2370,6 +2394,12 @@ type LocationQuota struct { AccountQuota *int32 `json:"accountQuota,omitempty"` } +// MarshalJSON is the custom marshaler for LocationQuota. +func (lq LocationQuota) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetadataItem the Batch service does not assign any meaning to this metadata; it is solely for the use of // user code. type MetadataItem struct { @@ -2871,6 +2901,12 @@ type PrivateEndpoint struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpoint. +func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection contains information about a private link resource. type PrivateEndpointConnection struct { autorest.Response `json:"-"` @@ -3112,6 +3148,12 @@ type PrivateLinkResourceProperties struct { RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. +func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkServiceConnectionState the private link service connection state of the private endpoint // connection type PrivateLinkServiceConnectionState struct { @@ -3146,6 +3188,12 @@ type ProxyResource struct { Etag *string `json:"etag,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PublicIPAddressConfiguration the public IP Address configuration of the networking configuration of a // Pool. type PublicIPAddressConfiguration struct { @@ -3310,6 +3358,12 @@ type VirtualMachineFamilyCoreQuota struct { CoreQuota *int32 `json:"coreQuota,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineFamilyCoreQuota. +func (vmfcq VirtualMachineFamilyCoreQuota) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WindowsConfiguration ... type WindowsConfiguration struct { // EnableAutomaticUpdates - If omitted, the default value is true. diff --git a/services/batchai/mgmt/2018-03-01/batchai/_meta.json b/services/batchai/mgmt/2018-03-01/batchai/_meta.json index 635c9e4c5e5b..4872317f0661 100644 --- a/services/batchai/mgmt/2018-03-01/batchai/_meta.json +++ b/services/batchai/mgmt/2018-03-01/batchai/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/batchai/resource-manager/readme.md", "tag": "package-2018-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batchai/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batchai/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/batchai/mgmt/2018-05-01/batchai/CHANGELOG.md b/services/batchai/mgmt/2018-05-01/batchai/CHANGELOG.md index 52911e4cc5e4..e173d574e76c 100644 --- a/services/batchai/mgmt/2018-05-01/batchai/CHANGELOG.md +++ b/services/batchai/mgmt/2018-05-01/batchai/CHANGELOG.md @@ -1,2 +1,27 @@ # Change History +## Additive Changes + +### New Funcs + +1. CloudError.MarshalJSON() ([]byte, error) +1. CloudErrorBody.MarshalJSON() ([]byte, error) +1. ClusterListResult.MarshalJSON() ([]byte, error) +1. Error.MarshalJSON() ([]byte, error) +1. ExperimentListResult.MarshalJSON() ([]byte, error) +1. ExperimentProperties.MarshalJSON() ([]byte, error) +1. FileListResult.MarshalJSON() ([]byte, error) +1. FileProperties.MarshalJSON() ([]byte, error) +1. JobListResult.MarshalJSON() ([]byte, error) +1. JobPropertiesExecutionInfo.MarshalJSON() ([]byte, error) +1. ListUsagesResult.MarshalJSON() ([]byte, error) +1. NodeStateCounts.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. RemoteLoginInformation.MarshalJSON() ([]byte, error) +1. RemoteLoginInformationListResult.MarshalJSON() ([]byte, error) +1. Usage.MarshalJSON() ([]byte, error) +1. UsageName.MarshalJSON() ([]byte, error) +1. WorkspaceListResult.MarshalJSON() ([]byte, error) +1. WorkspaceProperties.MarshalJSON() ([]byte, error) diff --git a/services/batchai/mgmt/2018-05-01/batchai/_meta.json b/services/batchai/mgmt/2018-05-01/batchai/_meta.json index cb4d5f46dd8f..88084198c51e 100644 --- a/services/batchai/mgmt/2018-05-01/batchai/_meta.json +++ b/services/batchai/mgmt/2018-05-01/batchai/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/batchai/resource-manager/readme.md", "tag": "package-2018-05", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batchai/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batchai/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/batchai/mgmt/2018-05-01/batchai/models.go b/services/batchai/mgmt/2018-05-01/batchai/models.go index 1df118ba4dc9..7017b5a2cac1 100644 --- a/services/batchai/mgmt/2018-05-01/batchai/models.go +++ b/services/batchai/mgmt/2018-05-01/batchai/models.go @@ -122,6 +122,12 @@ type CloudError struct { Error *CloudErrorBody `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for CloudError. +func (ce CloudError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudErrorBody an error response from the Batch AI service. type CloudErrorBody struct { // Code - READ-ONLY; An identifier for the error. Codes are invariant and are intended to be consumed programmatically. @@ -134,6 +140,12 @@ type CloudErrorBody struct { Details *[]CloudErrorBody `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for CloudErrorBody. +func (ceb CloudErrorBody) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Cluster information about a Cluster. type Cluster struct { autorest.Response `json:"-"` @@ -273,6 +285,12 @@ type ClusterListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ClusterListResult. +func (clr ClusterListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ClusterListResultIterator provides access to a complete listing of Cluster values. type ClusterListResultIterator struct { i int @@ -687,6 +705,12 @@ type Error struct { Details *[]NameValuePair `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for Error. +func (e Error) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Experiment experiment information. type Experiment struct { autorest.Response `json:"-"` @@ -769,6 +793,12 @@ type ExperimentListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ExperimentListResult. +func (elr ExperimentListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExperimentListResultIterator provides access to a complete listing of Experiment values. type ExperimentListResultIterator struct { i int @@ -929,6 +959,12 @@ type ExperimentProperties struct { ProvisioningStateTransitionTime *date.Time `json:"provisioningStateTransitionTime,omitempty"` } +// MarshalJSON is the custom marshaler for ExperimentProperties. +func (ep ExperimentProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExperimentsCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ExperimentsCreateFuture struct { @@ -1090,6 +1126,12 @@ type FileListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for FileListResult. +func (flr FileListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FileListResultIterator provides access to a complete listing of File values. type FileListResultIterator struct { i int @@ -1248,6 +1290,12 @@ type FileProperties struct { ContentLength *int64 `json:"contentLength,omitempty"` } +// MarshalJSON is the custom marshaler for FileProperties. +func (fp FileProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FileServer file Server information. type FileServer struct { autorest.Response `json:"-"` @@ -1887,6 +1935,12 @@ type JobListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for JobListResult. +func (jlr JobListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobListResultIterator provides access to a complete listing of Job values. type JobListResultIterator struct { i int @@ -2189,6 +2243,12 @@ type JobPropertiesExecutionInfo struct { Errors *[]Error `json:"errors,omitempty"` } +// MarshalJSON is the custom marshaler for JobPropertiesExecutionInfo. +func (jpI JobPropertiesExecutionInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobsCreateFuture an abstraction for monitoring and retrieving the results of a long-running operation. type JobsCreateFuture struct { azure.FutureAPI @@ -2321,6 +2381,12 @@ type ListUsagesResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListUsagesResult. +func (lur ListUsagesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListUsagesResultIterator provides access to a complete listing of Usage values. type ListUsagesResultIterator struct { i int @@ -2533,6 +2599,12 @@ type NodeStateCounts struct { LeavingNodeCount *int32 `json:"leavingNodeCount,omitempty"` } +// MarshalJSON is the custom marshaler for NodeStateCounts. +func (nsc NodeStateCounts) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation details of a REST API operation type Operation struct { // Name - READ-ONLY; This is of the format {provider}/{resource}/{operation} @@ -2568,6 +2640,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult contains the list of all operations supported by BatchAI resource provider type OperationListResult struct { autorest.Response `json:"-"` @@ -2577,6 +2655,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -2763,6 +2847,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PyTorchSettings pyTorch job settings. type PyTorchSettings struct { // PythonScriptFilePath - The python script to execute. @@ -2787,6 +2877,12 @@ type RemoteLoginInformation struct { Port *float64 `json:"port,omitempty"` } +// MarshalJSON is the custom marshaler for RemoteLoginInformation. +func (rli RemoteLoginInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RemoteLoginInformationListResult values returned by the List operation. type RemoteLoginInformationListResult struct { autorest.Response `json:"-"` @@ -2796,6 +2892,12 @@ type RemoteLoginInformationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RemoteLoginInformationListResult. +func (rlilr RemoteLoginInformationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RemoteLoginInformationListResultIterator provides access to a complete listing of RemoteLoginInformation // values. type RemoteLoginInformationListResultIterator struct { @@ -3061,6 +3163,12 @@ type Usage struct { Name *UsageName `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for Usage. +func (u Usage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageName the Usage Names. type UsageName struct { // Value - READ-ONLY; The name of the resource. @@ -3069,6 +3177,12 @@ type UsageName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for UsageName. +func (un UsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UserAccountSettings settings for user account that gets created on each on the nodes of a cluster. type UserAccountSettings struct { // AdminUserName - Name of the administrator user account which can be used to SSH to nodes. @@ -3209,6 +3323,12 @@ type WorkspaceListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for WorkspaceListResult. +func (wlr WorkspaceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WorkspaceListResultIterator provides access to a complete listing of Workspace values. type WorkspaceListResultIterator struct { i int @@ -3369,6 +3489,12 @@ type WorkspaceProperties struct { ProvisioningStateTransitionTime *date.Time `json:"provisioningStateTransitionTime,omitempty"` } +// MarshalJSON is the custom marshaler for WorkspaceProperties. +func (wp WorkspaceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WorkspacesCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type WorkspacesCreateFuture struct { diff --git a/services/cdn/mgmt/2015-06-01/cdn/CHANGELOG.md b/services/cdn/mgmt/2015-06-01/cdn/CHANGELOG.md index 52911e4cc5e4..f817772e217f 100644 --- a/services/cdn/mgmt/2015-06-01/cdn/CHANGELOG.md +++ b/services/cdn/mgmt/2015-06-01/cdn/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/cdn/mgmt/2015-06-01/cdn/_meta.json b/services/cdn/mgmt/2015-06-01/cdn/_meta.json index f954f63f8d48..d9d45ff92848 100644 --- a/services/cdn/mgmt/2015-06-01/cdn/_meta.json +++ b/services/cdn/mgmt/2015-06-01/cdn/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cdn/resource-manager/readme.md", "tag": "package-2015-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2015-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cdn/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2015-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cdn/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cdn/mgmt/2015-06-01/cdn/models.go b/services/cdn/mgmt/2015-06-01/cdn/models.go index 0b7ba6522a94..4c3be2fbc8a6 100644 --- a/services/cdn/mgmt/2015-06-01/cdn/models.go +++ b/services/cdn/mgmt/2015-06-01/cdn/models.go @@ -1622,6 +1622,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Sku the SKU (pricing tier) of the CDN profile. type Sku struct { // Name - Name of the pricing tier. Possible values include: 'Standard', 'Premium' diff --git a/services/cdn/mgmt/2016-04-02/cdn/CHANGELOG.md b/services/cdn/mgmt/2016-04-02/cdn/CHANGELOG.md index 52911e4cc5e4..f817772e217f 100644 --- a/services/cdn/mgmt/2016-04-02/cdn/CHANGELOG.md +++ b/services/cdn/mgmt/2016-04-02/cdn/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/cdn/mgmt/2016-04-02/cdn/_meta.json b/services/cdn/mgmt/2016-04-02/cdn/_meta.json index 37b7f3a90c4f..c33076d6fba0 100644 --- a/services/cdn/mgmt/2016-04-02/cdn/_meta.json +++ b/services/cdn/mgmt/2016-04-02/cdn/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cdn/resource-manager/readme.md", "tag": "package-2016-04", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cdn/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cdn/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cdn/mgmt/2016-04-02/cdn/models.go b/services/cdn/mgmt/2016-04-02/cdn/models.go index a18de0656120..ddceb2746c9b 100644 --- a/services/cdn/mgmt/2016-04-02/cdn/models.go +++ b/services/cdn/mgmt/2016-04-02/cdn/models.go @@ -1584,6 +1584,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Sku the SKU (pricing tier) of the CDN profile. type Sku struct { // Name - Name of the pricing tier. Possible values include: 'StandardVerizon', 'PremiumVerizon', 'CustomVerizon', 'StandardAkamai' diff --git a/services/cdn/mgmt/2016-10-02/cdn/CHANGELOG.md b/services/cdn/mgmt/2016-10-02/cdn/CHANGELOG.md index 52911e4cc5e4..8324c0098c02 100644 --- a/services/cdn/mgmt/2016-10-02/cdn/CHANGELOG.md +++ b/services/cdn/mgmt/2016-10-02/cdn/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. ProfileProperties.MarshalJSON() ([]byte, error) diff --git a/services/cdn/mgmt/2016-10-02/cdn/_meta.json b/services/cdn/mgmt/2016-10-02/cdn/_meta.json index ab49314f9e1c..411451d0f019 100644 --- a/services/cdn/mgmt/2016-10-02/cdn/_meta.json +++ b/services/cdn/mgmt/2016-10-02/cdn/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cdn/resource-manager/readme.md", "tag": "package-2016-10", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cdn/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cdn/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cdn/mgmt/2016-10-02/cdn/models.go b/services/cdn/mgmt/2016-10-02/cdn/models.go index 10c8c0594794..782304056d3c 100644 --- a/services/cdn/mgmt/2016-10-02/cdn/models.go +++ b/services/cdn/mgmt/2016-10-02/cdn/models.go @@ -2355,6 +2355,12 @@ type ProfileProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ProfileProperties. +func (pp ProfileProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProfilesCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ProfilesCreateFuture struct { diff --git a/services/cdn/mgmt/2017-04-02/cdn/CHANGELOG.md b/services/cdn/mgmt/2017-04-02/cdn/CHANGELOG.md index 52911e4cc5e4..6984fcf64633 100644 --- a/services/cdn/mgmt/2017-04-02/cdn/CHANGELOG.md +++ b/services/cdn/mgmt/2017-04-02/cdn/CHANGELOG.md @@ -1,2 +1,17 @@ # Change History +## Additive Changes + +### New Funcs + +1. CheckNameAvailabilityOutput.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. ProfileProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ResourceUsage.MarshalJSON() ([]byte, error) +1. SsoURI.MarshalJSON() ([]byte, error) +1. SupportedOptimizationTypesListResult.MarshalJSON() ([]byte, error) +1. ValidateCustomDomainOutput.MarshalJSON() ([]byte, error) +1. ValidateProbeOutput.MarshalJSON() ([]byte, error) diff --git a/services/cdn/mgmt/2017-04-02/cdn/_meta.json b/services/cdn/mgmt/2017-04-02/cdn/_meta.json index d743fc60d00f..502f323bdca5 100644 --- a/services/cdn/mgmt/2017-04-02/cdn/_meta.json +++ b/services/cdn/mgmt/2017-04-02/cdn/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cdn/resource-manager/readme.md", "tag": "package-2017-04", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cdn/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cdn/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cdn/mgmt/2017-04-02/cdn/models.go b/services/cdn/mgmt/2017-04-02/cdn/models.go index 71af55f1ad21..08a4532837c5 100644 --- a/services/cdn/mgmt/2017-04-02/cdn/models.go +++ b/services/cdn/mgmt/2017-04-02/cdn/models.go @@ -38,6 +38,12 @@ type CheckNameAvailabilityOutput struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityOutput. +func (cnao CheckNameAvailabilityOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CidrIPAddress CIDR Ip address type CidrIPAddress struct { // BaseIPAddress - IP address itself. @@ -1465,6 +1471,12 @@ type ErrorResponse struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GeoFilter rules defining user's geo access within a CDN endpoint. type GeoFilter struct { // RelativePath - Relative path applicable to geo filter. (e.g. '/mypictures', '/mypicture/kitty.jpg', and etc.) @@ -1518,6 +1530,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationsListResult result of the request to list CDN operations. It contains a list of operations and // a URL link to get the next set of results. type OperationsListResult struct { @@ -2370,6 +2388,12 @@ type ProfileProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ProfileProperties. +func (pp ProfileProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProfilesCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ProfilesCreateFuture struct { @@ -2519,6 +2543,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PurgeParameters parameters required for content purge. type PurgeParameters struct { // ContentPaths - The path to the content to be purged. Can describe a file path or a wild card directory. @@ -2535,6 +2565,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceUsage output of check resource usage API. type ResourceUsage struct { // ResourceType - READ-ONLY; Resource type for which the usage is provided. @@ -2547,6 +2583,12 @@ type ResourceUsage struct { Limit *int32 `json:"limit,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceUsage. +func (ru ResourceUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceUsageListResult output of check resource usage API. type ResourceUsageListResult struct { autorest.Response `json:"-"` @@ -2728,6 +2770,12 @@ type SsoURI struct { SsoURIValue *string `json:"ssoUriValue,omitempty"` } +// MarshalJSON is the custom marshaler for SsoURI. +func (su SsoURI) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SupportedOptimizationTypesListResult the result of the GetSupportedOptimizationTypes API type SupportedOptimizationTypesListResult struct { autorest.Response `json:"-"` @@ -2735,6 +2783,12 @@ type SupportedOptimizationTypesListResult struct { SupportedOptimizationTypes *[]OptimizationType `json:"supportedOptimizationTypes,omitempty"` } +// MarshalJSON is the custom marshaler for SupportedOptimizationTypesListResult. +func (sotlr SupportedOptimizationTypesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackedResource the resource model definition for a ARM tracked top level resource. type TrackedResource struct { // Location - Resource location. @@ -2778,6 +2832,12 @@ type ValidateCustomDomainOutput struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ValidateCustomDomainOutput. +func (vcdo ValidateCustomDomainOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ValidateProbeInput input of the validate probe API. type ValidateProbeInput struct { // ProbeURL - The probe URL to validate. @@ -2794,3 +2854,9 @@ type ValidateProbeOutput struct { // Message - READ-ONLY; The detailed error message describing why the probe URL is not accepted. Message *string `json:"message,omitempty"` } + +// MarshalJSON is the custom marshaler for ValidateProbeOutput. +func (vpo ValidateProbeOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/cdn/mgmt/2017-10-12/cdn/CHANGELOG.md b/services/cdn/mgmt/2017-10-12/cdn/CHANGELOG.md index 52911e4cc5e4..6984fcf64633 100644 --- a/services/cdn/mgmt/2017-10-12/cdn/CHANGELOG.md +++ b/services/cdn/mgmt/2017-10-12/cdn/CHANGELOG.md @@ -1,2 +1,17 @@ # Change History +## Additive Changes + +### New Funcs + +1. CheckNameAvailabilityOutput.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. ProfileProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ResourceUsage.MarshalJSON() ([]byte, error) +1. SsoURI.MarshalJSON() ([]byte, error) +1. SupportedOptimizationTypesListResult.MarshalJSON() ([]byte, error) +1. ValidateCustomDomainOutput.MarshalJSON() ([]byte, error) +1. ValidateProbeOutput.MarshalJSON() ([]byte, error) diff --git a/services/cdn/mgmt/2017-10-12/cdn/_meta.json b/services/cdn/mgmt/2017-10-12/cdn/_meta.json index 7ed7f309bfee..a60ae91fc8f7 100644 --- a/services/cdn/mgmt/2017-10-12/cdn/_meta.json +++ b/services/cdn/mgmt/2017-10-12/cdn/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cdn/resource-manager/readme.md", "tag": "package-2017-10", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cdn/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cdn/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cdn/mgmt/2017-10-12/cdn/models.go b/services/cdn/mgmt/2017-10-12/cdn/models.go index fa3fde560057..3d551ec719f6 100644 --- a/services/cdn/mgmt/2017-10-12/cdn/models.go +++ b/services/cdn/mgmt/2017-10-12/cdn/models.go @@ -57,6 +57,12 @@ type CheckNameAvailabilityOutput struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityOutput. +func (cnao CheckNameAvailabilityOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CidrIPAddress CIDR Ip address type CidrIPAddress struct { // BaseIPAddress - Ip address itself. @@ -1915,6 +1921,12 @@ type ErrorResponse struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GeoFilter rules defining user's geo access within a CDN endpoint. type GeoFilter struct { // RelativePath - Relative path applicable to geo filter. (e.g. '/mypictures', '/mypicture/kitty.jpg', and etc.) @@ -2035,6 +2047,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationsListResult result of the request to list CDN operations. It contains a list of operations and // a URL link to get the next set of results. type OperationsListResult struct { @@ -2887,6 +2905,12 @@ type ProfileProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ProfileProperties. +func (pp ProfileProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProfilesCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ProfilesCreateFuture struct { @@ -3036,6 +3060,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PurgeParameters parameters required for content purge. type PurgeParameters struct { // ContentPaths - The path to the content to be purged. Can describe a file path or a wild card directory. @@ -3052,6 +3082,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceUsage output of check resource usage API. type ResourceUsage struct { // ResourceType - READ-ONLY; Resource type for which the usage is provided. @@ -3064,6 +3100,12 @@ type ResourceUsage struct { Limit *int32 `json:"limit,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceUsage. +func (ru ResourceUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceUsageListResult output of check resource usage API. type ResourceUsageListResult struct { autorest.Response `json:"-"` @@ -3245,6 +3287,12 @@ type SsoURI struct { SsoURIValue *string `json:"ssoUriValue,omitempty"` } +// MarshalJSON is the custom marshaler for SsoURI. +func (su SsoURI) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SupportedOptimizationTypesListResult the result of the GetSupportedOptimizationTypes API type SupportedOptimizationTypesListResult struct { autorest.Response `json:"-"` @@ -3252,6 +3300,12 @@ type SupportedOptimizationTypesListResult struct { SupportedOptimizationTypes *[]OptimizationType `json:"supportedOptimizationTypes,omitempty"` } +// MarshalJSON is the custom marshaler for SupportedOptimizationTypesListResult. +func (sotlr SupportedOptimizationTypesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackedResource the resource model definition for a ARM tracked top level resource. type TrackedResource struct { // Location - Resource location. @@ -3358,6 +3412,12 @@ type ValidateCustomDomainOutput struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ValidateCustomDomainOutput. +func (vcdo ValidateCustomDomainOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ValidateProbeInput input of the validate probe API. type ValidateProbeInput struct { // ProbeURL - The probe URL to validate. @@ -3374,3 +3434,9 @@ type ValidateProbeOutput struct { // Message - READ-ONLY; The detailed error message describing why the probe URL is not accepted. Message *string `json:"message,omitempty"` } + +// MarshalJSON is the custom marshaler for ValidateProbeOutput. +func (vpo ValidateProbeOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/cdn/mgmt/2019-04-15/cdn/CHANGELOG.md b/services/cdn/mgmt/2019-04-15/cdn/CHANGELOG.md index 52911e4cc5e4..6984fcf64633 100644 --- a/services/cdn/mgmt/2019-04-15/cdn/CHANGELOG.md +++ b/services/cdn/mgmt/2019-04-15/cdn/CHANGELOG.md @@ -1,2 +1,17 @@ # Change History +## Additive Changes + +### New Funcs + +1. CheckNameAvailabilityOutput.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. ProfileProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ResourceUsage.MarshalJSON() ([]byte, error) +1. SsoURI.MarshalJSON() ([]byte, error) +1. SupportedOptimizationTypesListResult.MarshalJSON() ([]byte, error) +1. ValidateCustomDomainOutput.MarshalJSON() ([]byte, error) +1. ValidateProbeOutput.MarshalJSON() ([]byte, error) diff --git a/services/cdn/mgmt/2019-04-15/cdn/_meta.json b/services/cdn/mgmt/2019-04-15/cdn/_meta.json index 533d2ebd9854..59efc2b20009 100644 --- a/services/cdn/mgmt/2019-04-15/cdn/_meta.json +++ b/services/cdn/mgmt/2019-04-15/cdn/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cdn/resource-manager/readme.md", "tag": "package-2019-04", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cdn/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cdn/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cdn/mgmt/2019-04-15/cdn/models.go b/services/cdn/mgmt/2019-04-15/cdn/models.go index 8592a960840e..db2b5c87dd8a 100644 --- a/services/cdn/mgmt/2019-04-15/cdn/models.go +++ b/services/cdn/mgmt/2019-04-15/cdn/models.go @@ -66,6 +66,12 @@ type CheckNameAvailabilityOutput struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityOutput. +func (cnao CheckNameAvailabilityOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CidrIPAddress CIDR Ip address type CidrIPAddress struct { // BaseIPAddress - Ip address itself. @@ -3745,6 +3751,12 @@ type ErrorResponse struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GeoFilter rules defining user's geo access within a CDN endpoint. type GeoFilter struct { // RelativePath - Relative path applicable to geo filter. (e.g. '/mypictures', '/mypicture/kitty.jpg', and etc.) @@ -3905,6 +3917,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationsListResult result of the request to list CDN operations. It contains a list of operations and // a URL link to get the next set of results. type OperationsListResult struct { @@ -4772,6 +4790,12 @@ type ProfileProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ProfileProperties. +func (pp ProfileProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProfilesCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ProfilesCreateFuture struct { @@ -4921,6 +4945,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PurgeParameters parameters required for content purge. type PurgeParameters struct { // ContentPaths - The path to the content to be purged. Can describe a file path or a wild card directory. @@ -5026,6 +5056,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceUsage output of check resource usage API. type ResourceUsage struct { // ResourceType - READ-ONLY; Resource type for which the usage is provided. @@ -5038,6 +5074,12 @@ type ResourceUsage struct { Limit *int32 `json:"limit,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceUsage. +func (ru ResourceUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceUsageListResult output of check resource usage API. type ResourceUsageListResult struct { autorest.Response `json:"-"` @@ -5219,6 +5261,12 @@ type SsoURI struct { SsoURIValue *string `json:"ssoUriValue,omitempty"` } +// MarshalJSON is the custom marshaler for SsoURI. +func (su SsoURI) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SupportedOptimizationTypesListResult the result of the GetSupportedOptimizationTypes API type SupportedOptimizationTypesListResult struct { autorest.Response `json:"-"` @@ -5226,6 +5274,12 @@ type SupportedOptimizationTypesListResult struct { SupportedOptimizationTypes *[]OptimizationType `json:"supportedOptimizationTypes,omitempty"` } +// MarshalJSON is the custom marshaler for SupportedOptimizationTypesListResult. +func (sotlr SupportedOptimizationTypesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackedResource the resource model definition for a ARM tracked top level resource. type TrackedResource struct { // Location - Resource location. @@ -5510,6 +5564,12 @@ type ValidateCustomDomainOutput struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ValidateCustomDomainOutput. +func (vcdo ValidateCustomDomainOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ValidateProbeInput input of the validate probe API. type ValidateProbeInput struct { // ProbeURL - The probe URL to validate. @@ -5526,3 +5586,9 @@ type ValidateProbeOutput struct { // Message - READ-ONLY; The detailed error message describing why the probe URL is not accepted. Message *string `json:"message,omitempty"` } + +// MarshalJSON is the custom marshaler for ValidateProbeOutput. +func (vpo ValidateProbeOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/cdn/mgmt/2019-06-15/cdn/CHANGELOG.md b/services/cdn/mgmt/2019-06-15/cdn/CHANGELOG.md index 52911e4cc5e4..4f99f0da927a 100644 --- a/services/cdn/mgmt/2019-06-15/cdn/CHANGELOG.md +++ b/services/cdn/mgmt/2019-06-15/cdn/CHANGELOG.md @@ -1,2 +1,20 @@ # Change History +## Additive Changes + +### New Funcs + +1. CheckNameAvailabilityOutput.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. ManagedRuleDefinition.MarshalJSON() ([]byte, error) +1. ManagedRuleGroupDefinition.MarshalJSON() ([]byte, error) +1. ManagedRuleSetDefinitionProperties.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. ProfileProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ResourceUsage.MarshalJSON() ([]byte, error) +1. SsoURI.MarshalJSON() ([]byte, error) +1. SupportedOptimizationTypesListResult.MarshalJSON() ([]byte, error) +1. ValidateCustomDomainOutput.MarshalJSON() ([]byte, error) +1. ValidateProbeOutput.MarshalJSON() ([]byte, error) diff --git a/services/cdn/mgmt/2019-06-15/cdn/_meta.json b/services/cdn/mgmt/2019-06-15/cdn/_meta.json index 11a8d7e222b2..99e1b68a932c 100644 --- a/services/cdn/mgmt/2019-06-15/cdn/_meta.json +++ b/services/cdn/mgmt/2019-06-15/cdn/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cdn/resource-manager/readme.md", "tag": "package-2019-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cdn/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cdn/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cdn/mgmt/2019-06-15/cdn/models.go b/services/cdn/mgmt/2019-06-15/cdn/models.go index f5948a4731bc..2ff08eadfb43 100644 --- a/services/cdn/mgmt/2019-06-15/cdn/models.go +++ b/services/cdn/mgmt/2019-06-15/cdn/models.go @@ -66,6 +66,12 @@ type CheckNameAvailabilityOutput struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityOutput. +func (cnao CheckNameAvailabilityOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CidrIPAddress CIDR Ip address type CidrIPAddress struct { // BaseIPAddress - Ip address itself. @@ -3785,6 +3791,12 @@ type ErrorResponse struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GeoFilter rules defining user's geo access within a CDN endpoint. type GeoFilter struct { // RelativePath - Relative path applicable to geo filter. (e.g. '/mypictures', '/mypicture/kitty.jpg', and etc.) @@ -3926,6 +3938,12 @@ type ManagedRuleDefinition struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedRuleDefinition. +func (mrd ManagedRuleDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedRuleGroupDefinition describes a managed rule group. type ManagedRuleGroupDefinition struct { // RuleGroupName - READ-ONLY; Name of the managed rule group. @@ -3936,6 +3954,12 @@ type ManagedRuleGroupDefinition struct { Rules *[]ManagedRuleDefinition `json:"rules,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedRuleGroupDefinition. +func (mrgd ManagedRuleGroupDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedRuleGroupOverride defines a managed rule group override setting. type ManagedRuleGroupOverride struct { // RuleGroupName - Describes the managed rule group within the rule set to override @@ -4233,6 +4257,12 @@ type ManagedRuleSetDefinitionProperties struct { RuleGroups *[]ManagedRuleGroupDefinition `json:"ruleGroups,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedRuleSetDefinitionProperties. +func (mrsdp ManagedRuleSetDefinitionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedRuleSetList defines the list of managed rule sets for the policy. type ManagedRuleSetList struct { // ManagedRuleSets - List of rule sets. @@ -4282,6 +4312,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationsListResult result of the request to list CDN operations. It contains a list of operations and // a URL link to get the next set of results. type OperationsListResult struct { @@ -5249,6 +5285,12 @@ type ProfileProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ProfileProperties. +func (pp ProfileProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProfilesCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ProfilesCreateFuture struct { @@ -5398,6 +5440,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PurgeParameters parameters required for content purge. type PurgeParameters struct { // ContentPaths - The path to the content to be purged. Can describe a file path or a wild card directory. @@ -5527,6 +5575,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceUsage output of check resource usage API. type ResourceUsage struct { // ResourceType - READ-ONLY; Resource type for which the usage is provided. @@ -5539,6 +5593,12 @@ type ResourceUsage struct { Limit *int32 `json:"limit,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceUsage. +func (ru ResourceUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceUsageListResult output of check resource usage API. type ResourceUsageListResult struct { autorest.Response `json:"-"` @@ -5720,6 +5780,12 @@ type SsoURI struct { SsoURIValue *string `json:"ssoUriValue,omitempty"` } +// MarshalJSON is the custom marshaler for SsoURI. +func (su SsoURI) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SupportedOptimizationTypesListResult the result of the GetSupportedOptimizationTypes API type SupportedOptimizationTypesListResult struct { autorest.Response `json:"-"` @@ -5727,6 +5793,12 @@ type SupportedOptimizationTypesListResult struct { SupportedOptimizationTypes *[]OptimizationType `json:"supportedOptimizationTypes,omitempty"` } +// MarshalJSON is the custom marshaler for SupportedOptimizationTypesListResult. +func (sotlr SupportedOptimizationTypesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackedResource the resource model definition for a ARM tracked top level resource. type TrackedResource struct { // Location - Resource location. @@ -6011,6 +6083,12 @@ type ValidateCustomDomainOutput struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ValidateCustomDomainOutput. +func (vcdo ValidateCustomDomainOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ValidateProbeInput input of the validate probe API. type ValidateProbeInput struct { // ProbeURL - The probe URL to validate. @@ -6028,6 +6106,12 @@ type ValidateProbeOutput struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ValidateProbeOutput. +func (vpo ValidateProbeOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WebApplicationFirewallPolicy defines web application firewall policy for Azure CDN. type WebApplicationFirewallPolicy struct { autorest.Response `json:"-"` diff --git a/services/cdn/mgmt/2020-04-15/cdn/CHANGELOG.md b/services/cdn/mgmt/2020-04-15/cdn/CHANGELOG.md index 52911e4cc5e4..4f99f0da927a 100644 --- a/services/cdn/mgmt/2020-04-15/cdn/CHANGELOG.md +++ b/services/cdn/mgmt/2020-04-15/cdn/CHANGELOG.md @@ -1,2 +1,20 @@ # Change History +## Additive Changes + +### New Funcs + +1. CheckNameAvailabilityOutput.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. ManagedRuleDefinition.MarshalJSON() ([]byte, error) +1. ManagedRuleGroupDefinition.MarshalJSON() ([]byte, error) +1. ManagedRuleSetDefinitionProperties.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. ProfileProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ResourceUsage.MarshalJSON() ([]byte, error) +1. SsoURI.MarshalJSON() ([]byte, error) +1. SupportedOptimizationTypesListResult.MarshalJSON() ([]byte, error) +1. ValidateCustomDomainOutput.MarshalJSON() ([]byte, error) +1. ValidateProbeOutput.MarshalJSON() ([]byte, error) diff --git a/services/cdn/mgmt/2020-04-15/cdn/_meta.json b/services/cdn/mgmt/2020-04-15/cdn/_meta.json index d4232d975f9a..60357761287e 100644 --- a/services/cdn/mgmt/2020-04-15/cdn/_meta.json +++ b/services/cdn/mgmt/2020-04-15/cdn/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cdn/resource-manager/readme.md", "tag": "package-2020-04", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cdn/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cdn/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cdn/mgmt/2020-04-15/cdn/models.go b/services/cdn/mgmt/2020-04-15/cdn/models.go index 2c73a3cc16eb..967556048788 100644 --- a/services/cdn/mgmt/2020-04-15/cdn/models.go +++ b/services/cdn/mgmt/2020-04-15/cdn/models.go @@ -66,6 +66,12 @@ type CheckNameAvailabilityOutput struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityOutput. +func (cnao CheckNameAvailabilityOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CidrIPAddress CIDR Ip address type CidrIPAddress struct { // BaseIPAddress - Ip address itself. @@ -3835,6 +3841,12 @@ type ErrorResponse struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GeoFilter rules defining user's geo access within a CDN endpoint. type GeoFilter struct { // RelativePath - Relative path applicable to geo filter. (e.g. '/mypictures', '/mypicture/kitty.jpg', and etc.) @@ -4011,6 +4023,12 @@ type ManagedRuleDefinition struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedRuleDefinition. +func (mrd ManagedRuleDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedRuleGroupDefinition describes a managed rule group. type ManagedRuleGroupDefinition struct { // RuleGroupName - READ-ONLY; Name of the managed rule group. @@ -4021,6 +4039,12 @@ type ManagedRuleGroupDefinition struct { Rules *[]ManagedRuleDefinition `json:"rules,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedRuleGroupDefinition. +func (mrgd ManagedRuleGroupDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedRuleGroupOverride defines a managed rule group override setting. type ManagedRuleGroupOverride struct { // RuleGroupName - Describes the managed rule group within the rule set to override @@ -4318,6 +4342,12 @@ type ManagedRuleSetDefinitionProperties struct { RuleGroups *[]ManagedRuleGroupDefinition `json:"ruleGroups,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedRuleSetDefinitionProperties. +func (mrsdp ManagedRuleSetDefinitionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedRuleSetList defines the list of managed rule sets for the policy. type ManagedRuleSetList struct { // ManagedRuleSets - List of rule sets. @@ -4367,6 +4397,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationsListResult result of the request to list CDN operations. It contains a list of operations and // a URL link to get the next set of results. type OperationsListResult struct { @@ -5893,6 +5929,12 @@ type ProfileProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ProfileProperties. +func (pp ProfileProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProfilesCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ProfilesCreateFuture struct { @@ -6042,6 +6084,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PurgeParameters parameters required for content purge. type PurgeParameters struct { // ContentPaths - The path to the content to be purged. Can describe a file path or a wild card directory. @@ -6171,6 +6219,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceReference reference to another resource. type ResourceReference struct { // ID - Resource ID. @@ -6189,6 +6243,12 @@ type ResourceUsage struct { Limit *int32 `json:"limit,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceUsage. +func (ru ResourceUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceUsageListResult output of check resource usage API. type ResourceUsageListResult struct { autorest.Response `json:"-"` @@ -6381,6 +6441,12 @@ type SsoURI struct { SsoURIValue *string `json:"ssoUriValue,omitempty"` } +// MarshalJSON is the custom marshaler for SsoURI. +func (su SsoURI) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SupportedOptimizationTypesListResult the result of the GetSupportedOptimizationTypes API type SupportedOptimizationTypesListResult struct { autorest.Response `json:"-"` @@ -6388,6 +6454,12 @@ type SupportedOptimizationTypesListResult struct { SupportedOptimizationTypes *[]OptimizationType `json:"supportedOptimizationTypes,omitempty"` } +// MarshalJSON is the custom marshaler for SupportedOptimizationTypesListResult. +func (sotlr SupportedOptimizationTypesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackedResource the resource model definition for a ARM tracked top level resource. type TrackedResource struct { // Location - Resource location. @@ -6778,6 +6850,12 @@ type ValidateCustomDomainOutput struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ValidateCustomDomainOutput. +func (vcdo ValidateCustomDomainOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ValidateProbeInput input of the validate probe API. type ValidateProbeInput struct { // ProbeURL - The probe URL to validate. @@ -6795,6 +6873,12 @@ type ValidateProbeOutput struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ValidateProbeOutput. +func (vpo ValidateProbeOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WebApplicationFirewallPolicy defines web application firewall policy for Azure CDN. type WebApplicationFirewallPolicy struct { autorest.Response `json:"-"` diff --git a/services/cdn/mgmt/2020-09-01/cdn/CHANGELOG.md b/services/cdn/mgmt/2020-09-01/cdn/CHANGELOG.md index 52911e4cc5e4..ed5374a28d0a 100644 --- a/services/cdn/mgmt/2020-09-01/cdn/CHANGELOG.md +++ b/services/cdn/mgmt/2020-09-01/cdn/CHANGELOG.md @@ -1,2 +1,24 @@ # Change History +## Additive Changes + +### New Funcs + +1. AFDStateProperties.MarshalJSON() ([]byte, error) +1. CheckNameAvailabilityOutput.MarshalJSON() ([]byte, error) +1. DomainValidationProperties.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. ManagedRuleDefinition.MarshalJSON() ([]byte, error) +1. ManagedRuleGroupDefinition.MarshalJSON() ([]byte, error) +1. ManagedRuleSetDefinitionProperties.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. ProfileProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ResourceUsage.MarshalJSON() ([]byte, error) +1. RuleSetProperties.MarshalJSON() ([]byte, error) +1. SsoURI.MarshalJSON() ([]byte, error) +1. SupportedOptimizationTypesListResult.MarshalJSON() ([]byte, error) +1. ValidateCustomDomainOutput.MarshalJSON() ([]byte, error) +1. ValidateProbeOutput.MarshalJSON() ([]byte, error) +1. ValidationToken.MarshalJSON() ([]byte, error) diff --git a/services/cdn/mgmt/2020-09-01/cdn/_meta.json b/services/cdn/mgmt/2020-09-01/cdn/_meta.json index 54545e795b0f..486df12a5a94 100644 --- a/services/cdn/mgmt/2020-09-01/cdn/_meta.json +++ b/services/cdn/mgmt/2020-09-01/cdn/_meta.json @@ -2,9 +2,9 @@ "commit": "138759b8a5987252fd66658078907e1d93969c85", "readme": "/_/azure-rest-api-specs/specification/cdn/resource-manager/readme.md", "tag": "package-2020-09", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cdn/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cdn/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cdn/mgmt/2020-09-01/cdn/models.go b/services/cdn/mgmt/2020-09-01/cdn/models.go index 70b7649a991c..21d1385408eb 100644 --- a/services/cdn/mgmt/2020-09-01/cdn/models.go +++ b/services/cdn/mgmt/2020-09-01/cdn/models.go @@ -2044,6 +2044,12 @@ type AFDStateProperties struct { DeploymentStatus DeploymentStatus `json:"deploymentStatus,omitempty"` } +// MarshalJSON is the custom marshaler for AFDStateProperties. +func (asp AFDStateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CacheExpirationActionParameters defines the parameters for the cache expiration action. type CacheExpirationActionParameters struct { OdataType *string `json:"@odata.type,omitempty"` @@ -2101,6 +2107,12 @@ type CheckNameAvailabilityOutput struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityOutput. +func (cnao CheckNameAvailabilityOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CidrIPAddress CIDR Ip address type CidrIPAddress struct { // BaseIPAddress - Ip address itself. @@ -5020,6 +5032,12 @@ type DomainValidationProperties struct { ExpirationDate *string `json:"expirationDate,omitempty"` } +// MarshalJSON is the custom marshaler for DomainValidationProperties. +func (dvp DomainValidationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EdgeNode edgenode is a global Point of Presence (POP) location used to deliver CDN content to end users. type EdgeNode struct { *EdgeNodeProperties `json:"properties,omitempty"` @@ -6053,6 +6071,12 @@ type ErrorResponse struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GeoFilter rules defining user's geo access within a CDN endpoint. type GeoFilter struct { // RelativePath - Relative path applicable to geo filter. (e.g. '/mypictures', '/mypicture/kitty.jpg', and etc.) @@ -6290,6 +6314,12 @@ type ManagedRuleDefinition struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedRuleDefinition. +func (mrd ManagedRuleDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedRuleGroupDefinition describes a managed rule group. type ManagedRuleGroupDefinition struct { // RuleGroupName - READ-ONLY; Name of the managed rule group. @@ -6300,6 +6330,12 @@ type ManagedRuleGroupDefinition struct { Rules *[]ManagedRuleDefinition `json:"rules,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedRuleGroupDefinition. +func (mrgd ManagedRuleGroupDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedRuleGroupOverride defines a managed rule group override setting. type ManagedRuleGroupOverride struct { // RuleGroupName - Describes the managed rule group within the rule set to override @@ -6597,6 +6633,12 @@ type ManagedRuleSetDefinitionProperties struct { RuleGroups *[]ManagedRuleGroupDefinition `json:"ruleGroups,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedRuleSetDefinitionProperties. +func (mrsdp ManagedRuleSetDefinitionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedRuleSetList defines the list of managed rule sets for the policy. type ManagedRuleSetList struct { // ManagedRuleSets - List of rule sets. @@ -6677,6 +6719,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationsListResult result of the request to list CDN operations. It contains a list of operations and // a URL link to get the next set of results. type OperationsListResult struct { @@ -8316,6 +8364,12 @@ type ProfileProperties struct { FrontdoorID *string `json:"frontdoorId,omitempty"` } +// MarshalJSON is the custom marshaler for ProfileProperties. +func (pp ProfileProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProfilesCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ProfilesCreateFuture struct { @@ -8467,6 +8521,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PurgeParameters parameters required for content purge. type PurgeParameters struct { // ContentPaths - The path to the content to be purged. Can describe a file path or a wild card directory. @@ -8623,6 +8683,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceReference reference to another resource. type ResourceReference struct { // ID - Resource ID. @@ -8672,6 +8738,12 @@ type ResourceUsage struct { Limit *int32 `json:"limit,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceUsage. +func (ru ResourceUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceUsageListResult output of check resource usage API. type ResourceUsageListResult struct { autorest.Response `json:"-"` @@ -10054,6 +10126,12 @@ type RuleSetProperties struct { DeploymentStatus DeploymentStatus `json:"deploymentStatus,omitempty"` } +// MarshalJSON is the custom marshaler for RuleSetProperties. +func (rsp RuleSetProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RuleSetsCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type RuleSetsCreateFuture struct { @@ -11386,6 +11464,12 @@ type SsoURI struct { SsoURIValue *string `json:"ssoUriValue,omitempty"` } +// MarshalJSON is the custom marshaler for SsoURI. +func (su SsoURI) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SupportedOptimizationTypesListResult the result of the GetSupportedOptimizationTypes API type SupportedOptimizationTypesListResult struct { autorest.Response `json:"-"` @@ -11393,6 +11477,12 @@ type SupportedOptimizationTypesListResult struct { SupportedOptimizationTypes *[]OptimizationType `json:"supportedOptimizationTypes,omitempty"` } +// MarshalJSON is the custom marshaler for SupportedOptimizationTypesListResult. +func (sotlr SupportedOptimizationTypesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SystemData read only system data type SystemData struct { // CreatedBy - An identifier for the identity that created the resource @@ -12066,6 +12156,12 @@ type ValidateCustomDomainOutput struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ValidateCustomDomainOutput. +func (vcdo ValidateCustomDomainOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ValidateProbeInput input of the validate probe API. type ValidateProbeInput struct { // ProbeURL - The probe URL to validate. @@ -12083,6 +12179,12 @@ type ValidateProbeOutput struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ValidateProbeOutput. +func (vpo ValidateProbeOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ValidateSecretInput input of the secret to be validated. type ValidateSecretInput struct { // SecretSource - The secret source. @@ -12107,6 +12209,12 @@ type ValidationToken struct { Token *string `json:"token,omitempty"` } +// MarshalJSON is the custom marshaler for ValidationToken. +func (vt ValidationToken) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WafMetricsResponse waf Metrics Response type WafMetricsResponse struct { autorest.Response `json:"-"` diff --git a/services/changeanalysis/mgmt/2021-04-01/changeanalysis/CHANGELOG.md b/services/changeanalysis/mgmt/2021-04-01/changeanalysis/CHANGELOG.md index 52911e4cc5e4..c65d1d4a4010 100644 --- a/services/changeanalysis/mgmt/2021-04-01/changeanalysis/CHANGELOG.md +++ b/services/changeanalysis/mgmt/2021-04-01/changeanalysis/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorDetail.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/changeanalysis/mgmt/2021-04-01/changeanalysis/_meta.json b/services/changeanalysis/mgmt/2021-04-01/changeanalysis/_meta.json index de7be582a6f5..4d62cd1c568f 100644 --- a/services/changeanalysis/mgmt/2021-04-01/changeanalysis/_meta.json +++ b/services/changeanalysis/mgmt/2021-04-01/changeanalysis/_meta.json @@ -2,9 +2,9 @@ "commit": "0f0e41fa4e3679510fcf03ecd60084f1cdbd5805", "readme": "/_/azure-rest-api-specs/specification/changeanalysis/resource-manager/readme.md", "tag": "package-2021-04-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2021-04-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/changeanalysis/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2021-04-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/changeanalysis/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/changeanalysis/mgmt/2021-04-01/changeanalysis/models.go b/services/changeanalysis/mgmt/2021-04-01/changeanalysis/models.go index f182fc5187c1..c957fbca4be3 100644 --- a/services/changeanalysis/mgmt/2021-04-01/changeanalysis/models.go +++ b/services/changeanalysis/mgmt/2021-04-01/changeanalysis/models.go @@ -31,6 +31,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Change the detected change. type Change struct { Properties *ChangeProperties `json:"properties,omitempty"` @@ -233,6 +239,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetail the error detail. type ErrorDetail struct { // Code - READ-ONLY; The error code. @@ -247,6 +259,12 @@ type ErrorDetail struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetail. +func (ed ErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.). type ErrorResponse struct { @@ -287,6 +305,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -297,6 +321,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceProviderOperationDefinition the resource provider operation definition. type ResourceProviderOperationDefinition struct { // Name - The resource provider operation name. diff --git a/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/CHANGELOG.md b/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/CHANGELOG.md index 52911e4cc5e4..98f978e1725c 100644 --- a/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/CHANGELOG.md +++ b/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/CHANGELOG.md @@ -1,2 +1,16 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountEnumerateSkusResult.MarshalJSON() ([]byte, error) +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. MetricName.MarshalJSON() ([]byte, error) +1. PrivateEndpoint.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ResourceSku.MarshalJSON() ([]byte, error) +1. ResourceSkuRestrictionInfo.MarshalJSON() ([]byte, error) +1. ResourceSkuRestrictions.MarshalJSON() ([]byte, error) +1. UsagesResult.MarshalJSON() ([]byte, error) diff --git a/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/_meta.json b/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/_meta.json index 42064cee90b9..810692f06f19 100644 --- a/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/_meta.json +++ b/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/resource-manager/readme.md", "tag": "package-2017-04", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/models.go b/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/models.go index ed2e2df89f44..72580664fd95 100644 --- a/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/models.go +++ b/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/models.go @@ -95,6 +95,12 @@ type AccountEnumerateSkusResult struct { Value *[]ResourceAndSku `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for AccountEnumerateSkusResult. +func (aesr AccountEnumerateSkusResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountKeys the access keys for the cognitive services account. type AccountKeys struct { autorest.Response `json:"-"` @@ -339,6 +345,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CheckDomainAvailabilityParameter check Domain availability parameter. type CheckDomainAvailabilityParameter struct { // SubdomainName - The subdomain name to use. @@ -463,6 +475,12 @@ type MetricName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for MetricName. +func (mn MetricName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NetworkRuleSet a set of rules governing the network accessibility. type NetworkRuleSet struct { // DefaultAction - The default action when no rule from ipRules and from virtualNetworkRules match. This is only used after the bypass property has been evaluated. Possible values include: 'Allow', 'Deny' @@ -662,6 +680,12 @@ type PrivateEndpoint struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpoint. +func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection the Private Endpoint Connection resource. type PrivateEndpointConnection struct { autorest.Response `json:"-"` @@ -772,6 +796,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegenerateKeyParameters regenerate key parameters. type RegenerateKeyParameters struct { // KeyName - key name to generate (Key1|Key2). Possible values include: 'Key1', 'Key2' @@ -788,6 +818,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceAndSku cognitive Services resource type and SKU. type ResourceAndSku struct { // ResourceType - Resource Namespace and Type @@ -812,6 +848,12 @@ type ResourceSku struct { Restrictions *[]ResourceSkuRestrictions `json:"restrictions,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSku. +func (rs ResourceSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuRestrictionInfo ... type ResourceSkuRestrictionInfo struct { // Locations - READ-ONLY; Locations where the SKU is restricted @@ -820,6 +862,12 @@ type ResourceSkuRestrictionInfo struct { Zones *[]string `json:"zones,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuRestrictionInfo. +func (rsri ResourceSkuRestrictionInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuRestrictions describes restrictions of a SKU. type ResourceSkuRestrictions struct { // Type - READ-ONLY; The type of restrictions. Possible values include: 'Location', 'Zone' @@ -832,6 +880,12 @@ type ResourceSkuRestrictions struct { ReasonCode ResourceSkuRestrictionsReasonCode `json:"reasonCode,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuRestrictions. +func (rsr ResourceSkuRestrictions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkusResult the Get Skus operation response. type ResourceSkusResult struct { autorest.Response `json:"-"` @@ -1080,6 +1134,12 @@ type UsagesResult struct { Value *[]Usage `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for UsagesResult. +func (ur UsagesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UserAssignedIdentity user-assigned managed identity. type UserAssignedIdentity struct { // PrincipalID - Azure Active Directory principal ID associated with this Identity. diff --git a/services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder/CHANGELOG.md b/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/CHANGELOG.md similarity index 100% rename from services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder/CHANGELOG.md rename to services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/CHANGELOG.md diff --git a/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/_meta.json b/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/_meta.json new file mode 100644 index 000000000000..700cd4ebbf76 --- /dev/null +++ b/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/_meta.json @@ -0,0 +1,11 @@ +{ + "commit": "394395ed0bdc1c5c05cb37a031379ca03bfebbb5", + "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/resource-manager/readme.md", + "tag": "package-2021-04", + "use": "@microsoft.azure/autorest.go@2.1.183", + "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2021-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/cognitiveservices/resource-manager/readme.md", + "additional_properties": { + "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix" + } +} \ No newline at end of file diff --git a/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/accounts.go b/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/accounts.go new file mode 100644 index 000000000000..409fbf818dbc --- /dev/null +++ b/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/accounts.go @@ -0,0 +1,1042 @@ +package cognitiveservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// AccountsClient is the cognitive Services Management Client +type AccountsClient struct { + BaseClient +} + +// NewAccountsClient creates an instance of the AccountsClient client. +func NewAccountsClient(subscriptionID string) AccountsClient { + return NewAccountsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewAccountsClientWithBaseURI creates an instance of the AccountsClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewAccountsClientWithBaseURI(baseURI string, subscriptionID string) AccountsClient { + return AccountsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Create create Cognitive Services Account. Accounts is a resource group wide resource type. It holds the keys for +// developer to access intelligent APIs. It's also the resource type for billing. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// accountName - the name of Cognitive Services account. +// account - the parameters to provide for the created account. +func (client AccountsClient) Create(ctx context.Context, resourceGroupName string, accountName string, account Account) (result AccountsCreateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AccountsClient.Create") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 64, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 2, Chain: nil}, + {Target: "accountName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9][a-zA-Z0-9_.-]*$`, Chain: nil}}}, + {TargetValue: account, + Constraints: []validation.Constraint{{Target: "account.Sku", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "account.Sku.Name", Name: validation.Null, Rule: true, Chain: nil}}}, + {Target: "account.Properties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "account.Properties.APIProperties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "account.Properties.APIProperties.EventHubConnectionString", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "account.Properties.APIProperties.EventHubConnectionString", Name: validation.MaxLength, Rule: 1000, Chain: nil}, + {Target: "account.Properties.APIProperties.EventHubConnectionString", Name: validation.Pattern, Rule: `^( *)Endpoint=sb://(.*);( *)SharedAccessKeyName=(.*);( *)SharedAccessKey=(.*)$`, Chain: nil}, + }}, + {Target: "account.Properties.APIProperties.StorageAccountConnectionString", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "account.Properties.APIProperties.StorageAccountConnectionString", Name: validation.MaxLength, Rule: 1000, Chain: nil}, + {Target: "account.Properties.APIProperties.StorageAccountConnectionString", Name: validation.Pattern, Rule: `^(( *)DefaultEndpointsProtocol=(http|https)( *);( *))?AccountName=(.*)AccountKey=(.*)EndpointSuffix=(.*)$`, Chain: nil}, + }}, + {Target: "account.Properties.APIProperties.AadClientID", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "account.Properties.APIProperties.AadClientID", Name: validation.MaxLength, Rule: 500, Chain: nil}}}, + {Target: "account.Properties.APIProperties.AadTenantID", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "account.Properties.APIProperties.AadTenantID", Name: validation.MaxLength, Rule: 500, Chain: nil}}}, + {Target: "account.Properties.APIProperties.SuperUser", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "account.Properties.APIProperties.SuperUser", Name: validation.MaxLength, Rule: 500, Chain: nil}}}, + {Target: "account.Properties.APIProperties.WebsiteName", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "account.Properties.APIProperties.WebsiteName", Name: validation.MaxLength, Rule: 500, Chain: nil}}}, + }}, + }}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("cognitiveservices.AccountsClient", "Create", err.Error()) + } + + req, err := client.CreatePreparer(ctx, resourceGroupName, accountName, account) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "Create", nil, "Failure preparing request") + return + } + + result, err = client.CreateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "Create", nil, "Failure sending request") + return + } + + return +} + +// CreatePreparer prepares the Create request. +func (client AccountsClient) CreatePreparer(ctx context.Context, resourceGroupName string, accountName string, account Account) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-30" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + account.SystemData = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}", pathParameters), + autorest.WithJSON(account), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateSender sends the Create request. The method will close the +// http.Response Body if it receives an error. +func (client AccountsClient) CreateSender(req *http.Request) (future AccountsCreateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// CreateResponder handles the response to the Create request. The method always +// closes the http.Response Body. +func (client AccountsClient) CreateResponder(resp *http.Response) (result Account, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes a Cognitive Services account from the resource group. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// accountName - the name of Cognitive Services account. +func (client AccountsClient) Delete(ctx context.Context, resourceGroupName string, accountName string) (result AccountsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AccountsClient.Delete") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 64, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 2, Chain: nil}, + {Target: "accountName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9][a-zA-Z0-9_.-]*$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("cognitiveservices.AccountsClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, accountName) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "Delete", nil, "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client AccountsClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-30" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client AccountsClient) DeleteSender(req *http.Request) (future AccountsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client AccountsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get returns a Cognitive Services account specified by the parameters. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// accountName - the name of Cognitive Services account. +func (client AccountsClient) Get(ctx context.Context, resourceGroupName string, accountName string) (result Account, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AccountsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 64, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 2, Chain: nil}, + {Target: "accountName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9][a-zA-Z0-9_.-]*$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("cognitiveservices.AccountsClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, accountName) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client AccountsClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-30" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client AccountsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client AccountsClient) GetResponder(resp *http.Response) (result Account, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List returns all the resources of a particular type belonging to a subscription. +func (client AccountsClient) List(ctx context.Context) (result AccountListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AccountsClient.List") + defer func() { + sc := -1 + if result.alr.Response.Response != nil { + sc = result.alr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("cognitiveservices.AccountsClient", "List", err.Error()) + } + + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.alr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "List", resp, "Failure sending request") + return + } + + result.alr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "List", resp, "Failure responding to request") + return + } + if result.alr.hasNextLink() && result.alr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client AccountsClient) ListPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-30" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/accounts", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client AccountsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client AccountsClient) ListResponder(resp *http.Response) (result AccountListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client AccountsClient) listNextResults(ctx context.Context, lastResults AccountListResult) (result AccountListResult, err error) { + req, err := lastResults.accountListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client AccountsClient) ListComplete(ctx context.Context) (result AccountListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AccountsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} + +// ListByResourceGroup returns all the resources of a particular type belonging to a resource group +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +func (client AccountsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result AccountListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AccountsClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.alr.Response.Response != nil { + sc = result.alr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("cognitiveservices.AccountsClient", "ListByResourceGroup", err.Error()) + } + + result.fn = client.listByResourceGroupNextResults + req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.alr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "ListByResourceGroup", resp, "Failure sending request") + return + } + + result.alr, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return + } + if result.alr.hasNextLink() && result.alr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByResourceGroupPreparer prepares the ListByResourceGroup request. +func (client AccountsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-30" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the +// http.Response Body if it receives an error. +func (client AccountsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (client AccountsClient) ListByResourceGroupResponder(resp *http.Response) (result AccountListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByResourceGroupNextResults retrieves the next set of results, if any. +func (client AccountsClient) listByResourceGroupNextResults(ctx context.Context, lastResults AccountListResult) (result AccountListResult, err error) { + req, err := lastResults.accountListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. +func (client AccountsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result AccountListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AccountsClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) + return +} + +// ListKeys lists the account keys for the specified Cognitive Services account. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// accountName - the name of Cognitive Services account. +func (client AccountsClient) ListKeys(ctx context.Context, resourceGroupName string, accountName string) (result APIKeys, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AccountsClient.ListKeys") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 64, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 2, Chain: nil}, + {Target: "accountName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9][a-zA-Z0-9_.-]*$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("cognitiveservices.AccountsClient", "ListKeys", err.Error()) + } + + req, err := client.ListKeysPreparer(ctx, resourceGroupName, accountName) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "ListKeys", nil, "Failure preparing request") + return + } + + resp, err := client.ListKeysSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "ListKeys", resp, "Failure sending request") + return + } + + result, err = client.ListKeysResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "ListKeys", resp, "Failure responding to request") + return + } + + return +} + +// ListKeysPreparer prepares the ListKeys request. +func (client AccountsClient) ListKeysPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-30" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/listKeys", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListKeysSender sends the ListKeys request. The method will close the +// http.Response Body if it receives an error. +func (client AccountsClient) ListKeysSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListKeysResponder handles the response to the ListKeys request. The method always +// closes the http.Response Body. +func (client AccountsClient) ListKeysResponder(resp *http.Response) (result APIKeys, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListSkus list available SKUs for the requested Cognitive Services account +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// accountName - the name of Cognitive Services account. +func (client AccountsClient) ListSkus(ctx context.Context, resourceGroupName string, accountName string) (result AccountSkuListResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AccountsClient.ListSkus") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 64, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 2, Chain: nil}, + {Target: "accountName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9][a-zA-Z0-9_.-]*$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("cognitiveservices.AccountsClient", "ListSkus", err.Error()) + } + + req, err := client.ListSkusPreparer(ctx, resourceGroupName, accountName) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "ListSkus", nil, "Failure preparing request") + return + } + + resp, err := client.ListSkusSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "ListSkus", resp, "Failure sending request") + return + } + + result, err = client.ListSkusResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "ListSkus", resp, "Failure responding to request") + return + } + + return +} + +// ListSkusPreparer prepares the ListSkus request. +func (client AccountsClient) ListSkusPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-30" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/skus", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSkusSender sends the ListSkus request. The method will close the +// http.Response Body if it receives an error. +func (client AccountsClient) ListSkusSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListSkusResponder handles the response to the ListSkus request. The method always +// closes the http.Response Body. +func (client AccountsClient) ListSkusResponder(resp *http.Response) (result AccountSkuListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListUsages get usages for the requested Cognitive Services account +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// accountName - the name of Cognitive Services account. +// filter - an OData filter expression that describes a subset of usages to return. The supported parameter is +// name.value (name of the metric, can have an or of multiple names). +func (client AccountsClient) ListUsages(ctx context.Context, resourceGroupName string, accountName string, filter string) (result UsageListResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AccountsClient.ListUsages") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 64, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 2, Chain: nil}, + {Target: "accountName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9][a-zA-Z0-9_.-]*$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("cognitiveservices.AccountsClient", "ListUsages", err.Error()) + } + + req, err := client.ListUsagesPreparer(ctx, resourceGroupName, accountName, filter) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "ListUsages", nil, "Failure preparing request") + return + } + + resp, err := client.ListUsagesSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "ListUsages", resp, "Failure sending request") + return + } + + result, err = client.ListUsagesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "ListUsages", resp, "Failure responding to request") + return + } + + return +} + +// ListUsagesPreparer prepares the ListUsages request. +func (client AccountsClient) ListUsagesPreparer(ctx context.Context, resourceGroupName string, accountName string, filter string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-30" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(filter) > 0 { + queryParameters["$filter"] = autorest.Encode("query", filter) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/usages", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListUsagesSender sends the ListUsages request. The method will close the +// http.Response Body if it receives an error. +func (client AccountsClient) ListUsagesSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListUsagesResponder handles the response to the ListUsages request. The method always +// closes the http.Response Body. +func (client AccountsClient) ListUsagesResponder(resp *http.Response) (result UsageListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// RegenerateKey regenerates the specified account key for the specified Cognitive Services account. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// accountName - the name of Cognitive Services account. +// parameters - regenerate key parameters. +func (client AccountsClient) RegenerateKey(ctx context.Context, resourceGroupName string, accountName string, parameters RegenerateKeyParameters) (result APIKeys, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AccountsClient.RegenerateKey") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 64, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 2, Chain: nil}, + {Target: "accountName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9][a-zA-Z0-9_.-]*$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("cognitiveservices.AccountsClient", "RegenerateKey", err.Error()) + } + + req, err := client.RegenerateKeyPreparer(ctx, resourceGroupName, accountName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "RegenerateKey", nil, "Failure preparing request") + return + } + + resp, err := client.RegenerateKeySender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "RegenerateKey", resp, "Failure sending request") + return + } + + result, err = client.RegenerateKeyResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "RegenerateKey", resp, "Failure responding to request") + return + } + + return +} + +// RegenerateKeyPreparer prepares the RegenerateKey request. +func (client AccountsClient) RegenerateKeyPreparer(ctx context.Context, resourceGroupName string, accountName string, parameters RegenerateKeyParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-30" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/regenerateKey", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// RegenerateKeySender sends the RegenerateKey request. The method will close the +// http.Response Body if it receives an error. +func (client AccountsClient) RegenerateKeySender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// RegenerateKeyResponder handles the response to the RegenerateKey request. The method always +// closes the http.Response Body. +func (client AccountsClient) RegenerateKeyResponder(resp *http.Response) (result APIKeys, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Update updates a Cognitive Services account +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// accountName - the name of Cognitive Services account. +// account - the parameters to provide for the created account. +func (client AccountsClient) Update(ctx context.Context, resourceGroupName string, accountName string, account Account) (result AccountsUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AccountsClient.Update") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 64, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 2, Chain: nil}, + {Target: "accountName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9][a-zA-Z0-9_.-]*$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("cognitiveservices.AccountsClient", "Update", err.Error()) + } + + req, err := client.UpdatePreparer(ctx, resourceGroupName, accountName, account) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "Update", nil, "Failure preparing request") + return + } + + result, err = client.UpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "Update", nil, "Failure sending request") + return + } + + return +} + +// UpdatePreparer prepares the Update request. +func (client AccountsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, account Account) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-30" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + account.SystemData = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}", pathParameters), + autorest.WithJSON(account), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateSender sends the Update request. The method will close the +// http.Response Body if it receives an error. +func (client AccountsClient) UpdateSender(req *http.Request) (future AccountsUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// UpdateResponder handles the response to the Update request. The method always +// closes the http.Response Body. +func (client AccountsClient) UpdateResponder(resp *http.Response) (result Account, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/client.go b/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/client.go new file mode 100644 index 000000000000..914285689215 --- /dev/null +++ b/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/client.go @@ -0,0 +1,217 @@ +// Package cognitiveservices implements the Azure ARM Cognitiveservices service API version 2021-04-30. +// +// Cognitive Services Management Client +package cognitiveservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +const ( + // DefaultBaseURI is the default URI used for the service Cognitiveservices + DefaultBaseURI = "https://management.azure.com" +) + +// BaseClient is the base client for Cognitiveservices. +type BaseClient struct { + autorest.Client + BaseURI string + SubscriptionID string +} + +// New creates an instance of the BaseClient client. +func New(subscriptionID string) BaseClient { + return NewWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with +// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { + return BaseClient{ + Client: autorest.NewClientWithUserAgent(UserAgent()), + BaseURI: baseURI, + SubscriptionID: subscriptionID, + } +} + +// CheckDomainAvailability check whether a domain is available. +// Parameters: +// parameters - check Domain Availability parameter. +func (client BaseClient) CheckDomainAvailability(ctx context.Context, parameters CheckDomainAvailabilityParameter) (result DomainAvailability, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.CheckDomainAvailability") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.SubdomainName", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.Type", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("cognitiveservices.BaseClient", "CheckDomainAvailability", err.Error()) + } + + req, err := client.CheckDomainAvailabilityPreparer(ctx, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.BaseClient", "CheckDomainAvailability", nil, "Failure preparing request") + return + } + + resp, err := client.CheckDomainAvailabilitySender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cognitiveservices.BaseClient", "CheckDomainAvailability", resp, "Failure sending request") + return + } + + result, err = client.CheckDomainAvailabilityResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.BaseClient", "CheckDomainAvailability", resp, "Failure responding to request") + return + } + + return +} + +// CheckDomainAvailabilityPreparer prepares the CheckDomainAvailability request. +func (client BaseClient) CheckDomainAvailabilityPreparer(ctx context.Context, parameters CheckDomainAvailabilityParameter) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-30" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/checkDomainAvailability", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CheckDomainAvailabilitySender sends the CheckDomainAvailability request. The method will close the +// http.Response Body if it receives an error. +func (client BaseClient) CheckDomainAvailabilitySender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// CheckDomainAvailabilityResponder handles the response to the CheckDomainAvailability request. The method always +// closes the http.Response Body. +func (client BaseClient) CheckDomainAvailabilityResponder(resp *http.Response) (result DomainAvailability, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// CheckSkuAvailability check available SKUs. +// Parameters: +// location - resource location. +// parameters - check SKU Availability POST body. +func (client BaseClient) CheckSkuAvailability(ctx context.Context, location string, parameters CheckSkuAvailabilityParameter) (result SkuAvailabilityListResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.CheckSkuAvailability") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.Skus", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.Kind", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.Type", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("cognitiveservices.BaseClient", "CheckSkuAvailability", err.Error()) + } + + req, err := client.CheckSkuAvailabilityPreparer(ctx, location, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.BaseClient", "CheckSkuAvailability", nil, "Failure preparing request") + return + } + + resp, err := client.CheckSkuAvailabilitySender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cognitiveservices.BaseClient", "CheckSkuAvailability", resp, "Failure sending request") + return + } + + result, err = client.CheckSkuAvailabilityResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.BaseClient", "CheckSkuAvailability", resp, "Failure responding to request") + return + } + + return +} + +// CheckSkuAvailabilityPreparer prepares the CheckSkuAvailability request. +func (client BaseClient) CheckSkuAvailabilityPreparer(ctx context.Context, location string, parameters CheckSkuAvailabilityParameter) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "location": autorest.Encode("path", location), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-30" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/checkSkuAvailability", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CheckSkuAvailabilitySender sends the CheckSkuAvailability request. The method will close the +// http.Response Body if it receives an error. +func (client BaseClient) CheckSkuAvailabilitySender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// CheckSkuAvailabilityResponder handles the response to the CheckSkuAvailability request. The method always +// closes the http.Response Body. +func (client BaseClient) CheckSkuAvailabilityResponder(resp *http.Response) (result SkuAvailabilityListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/cognitiveservicesapi/interfaces.go b/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/cognitiveservicesapi/interfaces.go new file mode 100644 index 000000000000..96b8344add75 --- /dev/null +++ b/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/cognitiveservicesapi/interfaces.go @@ -0,0 +1,81 @@ +package cognitiveservicesapi + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices" +) + +// BaseClientAPI contains the set of methods on the BaseClient type. +type BaseClientAPI interface { + CheckDomainAvailability(ctx context.Context, parameters cognitiveservices.CheckDomainAvailabilityParameter) (result cognitiveservices.DomainAvailability, err error) + CheckSkuAvailability(ctx context.Context, location string, parameters cognitiveservices.CheckSkuAvailabilityParameter) (result cognitiveservices.SkuAvailabilityListResult, err error) +} + +var _ BaseClientAPI = (*cognitiveservices.BaseClient)(nil) + +// AccountsClientAPI contains the set of methods on the AccountsClient type. +type AccountsClientAPI interface { + Create(ctx context.Context, resourceGroupName string, accountName string, account cognitiveservices.Account) (result cognitiveservices.AccountsCreateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, accountName string) (result cognitiveservices.AccountsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, accountName string) (result cognitiveservices.Account, err error) + List(ctx context.Context) (result cognitiveservices.AccountListResultPage, err error) + ListComplete(ctx context.Context) (result cognitiveservices.AccountListResultIterator, err error) + ListByResourceGroup(ctx context.Context, resourceGroupName string) (result cognitiveservices.AccountListResultPage, err error) + ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result cognitiveservices.AccountListResultIterator, err error) + ListKeys(ctx context.Context, resourceGroupName string, accountName string) (result cognitiveservices.APIKeys, err error) + ListSkus(ctx context.Context, resourceGroupName string, accountName string) (result cognitiveservices.AccountSkuListResult, err error) + ListUsages(ctx context.Context, resourceGroupName string, accountName string, filter string) (result cognitiveservices.UsageListResult, err error) + RegenerateKey(ctx context.Context, resourceGroupName string, accountName string, parameters cognitiveservices.RegenerateKeyParameters) (result cognitiveservices.APIKeys, err error) + Update(ctx context.Context, resourceGroupName string, accountName string, account cognitiveservices.Account) (result cognitiveservices.AccountsUpdateFuture, err error) +} + +var _ AccountsClientAPI = (*cognitiveservices.AccountsClient)(nil) + +// DeletedAccountsClientAPI contains the set of methods on the DeletedAccountsClient type. +type DeletedAccountsClientAPI interface { + Get(ctx context.Context, location string, resourceGroupName string, accountName string) (result cognitiveservices.Account, err error) + List(ctx context.Context) (result cognitiveservices.AccountListResultPage, err error) + ListComplete(ctx context.Context) (result cognitiveservices.AccountListResultIterator, err error) + Purge(ctx context.Context, location string, resourceGroupName string, accountName string) (result cognitiveservices.DeletedAccountsPurgeFuture, err error) +} + +var _ DeletedAccountsClientAPI = (*cognitiveservices.DeletedAccountsClient)(nil) + +// ResourceSkusClientAPI contains the set of methods on the ResourceSkusClient type. +type ResourceSkusClientAPI interface { + List(ctx context.Context) (result cognitiveservices.ResourceSkuListResultPage, err error) + ListComplete(ctx context.Context) (result cognitiveservices.ResourceSkuListResultIterator, err error) +} + +var _ ResourceSkusClientAPI = (*cognitiveservices.ResourceSkusClient)(nil) + +// OperationsClientAPI contains the set of methods on the OperationsClient type. +type OperationsClientAPI interface { + List(ctx context.Context) (result cognitiveservices.OperationListResultPage, err error) + ListComplete(ctx context.Context) (result cognitiveservices.OperationListResultIterator, err error) +} + +var _ OperationsClientAPI = (*cognitiveservices.OperationsClient)(nil) + +// PrivateEndpointConnectionsClientAPI contains the set of methods on the PrivateEndpointConnectionsClient type. +type PrivateEndpointConnectionsClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string, properties cognitiveservices.PrivateEndpointConnection) (result cognitiveservices.PrivateEndpointConnectionsCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string) (result cognitiveservices.PrivateEndpointConnectionsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string) (result cognitiveservices.PrivateEndpointConnection, err error) + List(ctx context.Context, resourceGroupName string, accountName string) (result cognitiveservices.PrivateEndpointConnectionListResult, err error) +} + +var _ PrivateEndpointConnectionsClientAPI = (*cognitiveservices.PrivateEndpointConnectionsClient)(nil) + +// PrivateLinkResourcesClientAPI contains the set of methods on the PrivateLinkResourcesClient type. +type PrivateLinkResourcesClientAPI interface { + List(ctx context.Context, resourceGroupName string, accountName string) (result cognitiveservices.PrivateLinkResourceListResult, err error) +} + +var _ PrivateLinkResourcesClientAPI = (*cognitiveservices.PrivateLinkResourcesClient)(nil) diff --git a/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/deletedaccounts.go b/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/deletedaccounts.go new file mode 100644 index 000000000000..35b02dac45e4 --- /dev/null +++ b/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/deletedaccounts.go @@ -0,0 +1,336 @@ +package cognitiveservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// DeletedAccountsClient is the cognitive Services Management Client +type DeletedAccountsClient struct { + BaseClient +} + +// NewDeletedAccountsClient creates an instance of the DeletedAccountsClient client. +func NewDeletedAccountsClient(subscriptionID string) DeletedAccountsClient { + return NewDeletedAccountsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewDeletedAccountsClientWithBaseURI creates an instance of the DeletedAccountsClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewDeletedAccountsClientWithBaseURI(baseURI string, subscriptionID string) DeletedAccountsClient { + return DeletedAccountsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get returns a Cognitive Services account specified by the parameters. +// Parameters: +// location - resource location. +// resourceGroupName - the name of the resource group. The name is case insensitive. +// accountName - the name of Cognitive Services account. +func (client DeletedAccountsClient) Get(ctx context.Context, location string, resourceGroupName string, accountName string) (result Account, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DeletedAccountsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 64, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 2, Chain: nil}, + {Target: "accountName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9][a-zA-Z0-9_.-]*$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("cognitiveservices.DeletedAccountsClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, location, resourceGroupName, accountName) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.DeletedAccountsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cognitiveservices.DeletedAccountsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.DeletedAccountsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client DeletedAccountsClient) GetPreparer(ctx context.Context, location string, resourceGroupName string, accountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "location": autorest.Encode("path", location), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-30" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/resourceGroups/{resourceGroupName}/deletedAccounts/{accountName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client DeletedAccountsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client DeletedAccountsClient) GetResponder(resp *http.Response) (result Account, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List returns all the resources of a particular type belonging to a subscription. +func (client DeletedAccountsClient) List(ctx context.Context) (result AccountListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DeletedAccountsClient.List") + defer func() { + sc := -1 + if result.alr.Response.Response != nil { + sc = result.alr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("cognitiveservices.DeletedAccountsClient", "List", err.Error()) + } + + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.DeletedAccountsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.alr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cognitiveservices.DeletedAccountsClient", "List", resp, "Failure sending request") + return + } + + result.alr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.DeletedAccountsClient", "List", resp, "Failure responding to request") + return + } + if result.alr.hasNextLink() && result.alr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client DeletedAccountsClient) ListPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-30" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/deletedAccounts", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client DeletedAccountsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client DeletedAccountsClient) ListResponder(resp *http.Response) (result AccountListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client DeletedAccountsClient) listNextResults(ctx context.Context, lastResults AccountListResult) (result AccountListResult, err error) { + req, err := lastResults.accountListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "cognitiveservices.DeletedAccountsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "cognitiveservices.DeletedAccountsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.DeletedAccountsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client DeletedAccountsClient) ListComplete(ctx context.Context) (result AccountListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DeletedAccountsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} + +// Purge deletes a Cognitive Services account from the resource group. +// Parameters: +// location - resource location. +// resourceGroupName - the name of the resource group. The name is case insensitive. +// accountName - the name of Cognitive Services account. +func (client DeletedAccountsClient) Purge(ctx context.Context, location string, resourceGroupName string, accountName string) (result DeletedAccountsPurgeFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DeletedAccountsClient.Purge") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 64, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 2, Chain: nil}, + {Target: "accountName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9][a-zA-Z0-9_.-]*$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("cognitiveservices.DeletedAccountsClient", "Purge", err.Error()) + } + + req, err := client.PurgePreparer(ctx, location, resourceGroupName, accountName) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.DeletedAccountsClient", "Purge", nil, "Failure preparing request") + return + } + + result, err = client.PurgeSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.DeletedAccountsClient", "Purge", nil, "Failure sending request") + return + } + + return +} + +// PurgePreparer prepares the Purge request. +func (client DeletedAccountsClient) PurgePreparer(ctx context.Context, location string, resourceGroupName string, accountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "location": autorest.Encode("path", location), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-30" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/resourceGroups/{resourceGroupName}/deletedAccounts/{accountName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// PurgeSender sends the Purge request. The method will close the +// http.Response Body if it receives an error. +func (client DeletedAccountsClient) PurgeSender(req *http.Request) (future DeletedAccountsPurgeFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// PurgeResponder handles the response to the Purge request. The method always +// closes the http.Response Body. +func (client DeletedAccountsClient) PurgeResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} diff --git a/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/enums.go b/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/enums.go new file mode 100644 index 000000000000..1ed73c796669 --- /dev/null +++ b/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/enums.go @@ -0,0 +1,292 @@ +package cognitiveservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ActionType enumerates the values for action type. +type ActionType string + +const ( + // ActionTypeInternal ... + ActionTypeInternal ActionType = "Internal" +) + +// PossibleActionTypeValues returns an array of possible values for the ActionType const type. +func PossibleActionTypeValues() []ActionType { + return []ActionType{ActionTypeInternal} +} + +// CreatedByType enumerates the values for created by type. +type CreatedByType string + +const ( + // CreatedByTypeApplication ... + CreatedByTypeApplication CreatedByType = "Application" + // CreatedByTypeKey ... + CreatedByTypeKey CreatedByType = "Key" + // CreatedByTypeManagedIdentity ... + CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" + // CreatedByTypeUser ... + CreatedByTypeUser CreatedByType = "User" +) + +// PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type. +func PossibleCreatedByTypeValues() []CreatedByType { + return []CreatedByType{CreatedByTypeApplication, CreatedByTypeKey, CreatedByTypeManagedIdentity, CreatedByTypeUser} +} + +// KeyName enumerates the values for key name. +type KeyName string + +const ( + // KeyNameKey1 ... + KeyNameKey1 KeyName = "Key1" + // KeyNameKey2 ... + KeyNameKey2 KeyName = "Key2" +) + +// PossibleKeyNameValues returns an array of possible values for the KeyName const type. +func PossibleKeyNameValues() []KeyName { + return []KeyName{KeyNameKey1, KeyNameKey2} +} + +// KeySource enumerates the values for key source. +type KeySource string + +const ( + // KeySourceMicrosoftCognitiveServices ... + KeySourceMicrosoftCognitiveServices KeySource = "Microsoft.CognitiveServices" + // KeySourceMicrosoftKeyVault ... + KeySourceMicrosoftKeyVault KeySource = "Microsoft.KeyVault" +) + +// PossibleKeySourceValues returns an array of possible values for the KeySource const type. +func PossibleKeySourceValues() []KeySource { + return []KeySource{KeySourceMicrosoftCognitiveServices, KeySourceMicrosoftKeyVault} +} + +// NetworkRuleAction enumerates the values for network rule action. +type NetworkRuleAction string + +const ( + // NetworkRuleActionAllow ... + NetworkRuleActionAllow NetworkRuleAction = "Allow" + // NetworkRuleActionDeny ... + NetworkRuleActionDeny NetworkRuleAction = "Deny" +) + +// PossibleNetworkRuleActionValues returns an array of possible values for the NetworkRuleAction const type. +func PossibleNetworkRuleActionValues() []NetworkRuleAction { + return []NetworkRuleAction{NetworkRuleActionAllow, NetworkRuleActionDeny} +} + +// Origin enumerates the values for origin. +type Origin string + +const ( + // OriginSystem ... + OriginSystem Origin = "system" + // OriginUser ... + OriginUser Origin = "user" + // OriginUsersystem ... + OriginUsersystem Origin = "user,system" +) + +// PossibleOriginValues returns an array of possible values for the Origin const type. +func PossibleOriginValues() []Origin { + return []Origin{OriginSystem, OriginUser, OriginUsersystem} +} + +// PrivateEndpointConnectionProvisioningState enumerates the values for private endpoint connection +// provisioning state. +type PrivateEndpointConnectionProvisioningState string + +const ( + // PrivateEndpointConnectionProvisioningStateCreating ... + PrivateEndpointConnectionProvisioningStateCreating PrivateEndpointConnectionProvisioningState = "Creating" + // PrivateEndpointConnectionProvisioningStateDeleting ... + PrivateEndpointConnectionProvisioningStateDeleting PrivateEndpointConnectionProvisioningState = "Deleting" + // PrivateEndpointConnectionProvisioningStateFailed ... + PrivateEndpointConnectionProvisioningStateFailed PrivateEndpointConnectionProvisioningState = "Failed" + // PrivateEndpointConnectionProvisioningStateSucceeded ... + PrivateEndpointConnectionProvisioningStateSucceeded PrivateEndpointConnectionProvisioningState = "Succeeded" +) + +// PossiblePrivateEndpointConnectionProvisioningStateValues returns an array of possible values for the PrivateEndpointConnectionProvisioningState const type. +func PossiblePrivateEndpointConnectionProvisioningStateValues() []PrivateEndpointConnectionProvisioningState { + return []PrivateEndpointConnectionProvisioningState{PrivateEndpointConnectionProvisioningStateCreating, PrivateEndpointConnectionProvisioningStateDeleting, PrivateEndpointConnectionProvisioningStateFailed, PrivateEndpointConnectionProvisioningStateSucceeded} +} + +// PrivateEndpointServiceConnectionStatus enumerates the values for private endpoint service connection status. +type PrivateEndpointServiceConnectionStatus string + +const ( + // PrivateEndpointServiceConnectionStatusApproved ... + PrivateEndpointServiceConnectionStatusApproved PrivateEndpointServiceConnectionStatus = "Approved" + // PrivateEndpointServiceConnectionStatusPending ... + PrivateEndpointServiceConnectionStatusPending PrivateEndpointServiceConnectionStatus = "Pending" + // PrivateEndpointServiceConnectionStatusRejected ... + PrivateEndpointServiceConnectionStatusRejected PrivateEndpointServiceConnectionStatus = "Rejected" +) + +// PossiblePrivateEndpointServiceConnectionStatusValues returns an array of possible values for the PrivateEndpointServiceConnectionStatus const type. +func PossiblePrivateEndpointServiceConnectionStatusValues() []PrivateEndpointServiceConnectionStatus { + return []PrivateEndpointServiceConnectionStatus{PrivateEndpointServiceConnectionStatusApproved, PrivateEndpointServiceConnectionStatusPending, PrivateEndpointServiceConnectionStatusRejected} +} + +// ProvisioningState enumerates the values for provisioning state. +type ProvisioningState string + +const ( + // ProvisioningStateAccepted ... + ProvisioningStateAccepted ProvisioningState = "Accepted" + // ProvisioningStateCreating ... + ProvisioningStateCreating ProvisioningState = "Creating" + // ProvisioningStateDeleting ... + ProvisioningStateDeleting ProvisioningState = "Deleting" + // ProvisioningStateFailed ... + ProvisioningStateFailed ProvisioningState = "Failed" + // ProvisioningStateMoving ... + ProvisioningStateMoving ProvisioningState = "Moving" + // ProvisioningStateResolvingDNS ... + ProvisioningStateResolvingDNS ProvisioningState = "ResolvingDNS" + // ProvisioningStateSucceeded ... + ProvisioningStateSucceeded ProvisioningState = "Succeeded" +) + +// PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type. +func PossibleProvisioningStateValues() []ProvisioningState { + return []ProvisioningState{ProvisioningStateAccepted, ProvisioningStateCreating, ProvisioningStateDeleting, ProvisioningStateFailed, ProvisioningStateMoving, ProvisioningStateResolvingDNS, ProvisioningStateSucceeded} +} + +// PublicNetworkAccess enumerates the values for public network access. +type PublicNetworkAccess string + +const ( + // PublicNetworkAccessDisabled ... + PublicNetworkAccessDisabled PublicNetworkAccess = "Disabled" + // PublicNetworkAccessEnabled ... + PublicNetworkAccessEnabled PublicNetworkAccess = "Enabled" +) + +// PossiblePublicNetworkAccessValues returns an array of possible values for the PublicNetworkAccess const type. +func PossiblePublicNetworkAccessValues() []PublicNetworkAccess { + return []PublicNetworkAccess{PublicNetworkAccessDisabled, PublicNetworkAccessEnabled} +} + +// QuotaUsageStatus enumerates the values for quota usage status. +type QuotaUsageStatus string + +const ( + // QuotaUsageStatusBlocked ... + QuotaUsageStatusBlocked QuotaUsageStatus = "Blocked" + // QuotaUsageStatusIncluded ... + QuotaUsageStatusIncluded QuotaUsageStatus = "Included" + // QuotaUsageStatusInOverage ... + QuotaUsageStatusInOverage QuotaUsageStatus = "InOverage" + // QuotaUsageStatusUnknown ... + QuotaUsageStatusUnknown QuotaUsageStatus = "Unknown" +) + +// PossibleQuotaUsageStatusValues returns an array of possible values for the QuotaUsageStatus const type. +func PossibleQuotaUsageStatusValues() []QuotaUsageStatus { + return []QuotaUsageStatus{QuotaUsageStatusBlocked, QuotaUsageStatusIncluded, QuotaUsageStatusInOverage, QuotaUsageStatusUnknown} +} + +// ResourceIdentityType enumerates the values for resource identity type. +type ResourceIdentityType string + +const ( + // ResourceIdentityTypeNone ... + ResourceIdentityTypeNone ResourceIdentityType = "None" + // ResourceIdentityTypeSystemAssigned ... + ResourceIdentityTypeSystemAssigned ResourceIdentityType = "SystemAssigned" + // ResourceIdentityTypeSystemAssignedUserAssigned ... + ResourceIdentityTypeSystemAssignedUserAssigned ResourceIdentityType = "SystemAssigned, UserAssigned" + // ResourceIdentityTypeUserAssigned ... + ResourceIdentityTypeUserAssigned ResourceIdentityType = "UserAssigned" +) + +// PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type. +func PossibleResourceIdentityTypeValues() []ResourceIdentityType { + return []ResourceIdentityType{ResourceIdentityTypeNone, ResourceIdentityTypeSystemAssigned, ResourceIdentityTypeSystemAssignedUserAssigned, ResourceIdentityTypeUserAssigned} +} + +// ResourceSkuRestrictionsReasonCode enumerates the values for resource sku restrictions reason code. +type ResourceSkuRestrictionsReasonCode string + +const ( + // ResourceSkuRestrictionsReasonCodeNotAvailableForSubscription ... + ResourceSkuRestrictionsReasonCodeNotAvailableForSubscription ResourceSkuRestrictionsReasonCode = "NotAvailableForSubscription" + // ResourceSkuRestrictionsReasonCodeQuotaID ... + ResourceSkuRestrictionsReasonCodeQuotaID ResourceSkuRestrictionsReasonCode = "QuotaId" +) + +// PossibleResourceSkuRestrictionsReasonCodeValues returns an array of possible values for the ResourceSkuRestrictionsReasonCode const type. +func PossibleResourceSkuRestrictionsReasonCodeValues() []ResourceSkuRestrictionsReasonCode { + return []ResourceSkuRestrictionsReasonCode{ResourceSkuRestrictionsReasonCodeNotAvailableForSubscription, ResourceSkuRestrictionsReasonCodeQuotaID} +} + +// ResourceSkuRestrictionsType enumerates the values for resource sku restrictions type. +type ResourceSkuRestrictionsType string + +const ( + // ResourceSkuRestrictionsTypeLocation ... + ResourceSkuRestrictionsTypeLocation ResourceSkuRestrictionsType = "Location" + // ResourceSkuRestrictionsTypeZone ... + ResourceSkuRestrictionsTypeZone ResourceSkuRestrictionsType = "Zone" +) + +// PossibleResourceSkuRestrictionsTypeValues returns an array of possible values for the ResourceSkuRestrictionsType const type. +func PossibleResourceSkuRestrictionsTypeValues() []ResourceSkuRestrictionsType { + return []ResourceSkuRestrictionsType{ResourceSkuRestrictionsTypeLocation, ResourceSkuRestrictionsTypeZone} +} + +// SkuTier enumerates the values for sku tier. +type SkuTier string + +const ( + // SkuTierBasic ... + SkuTierBasic SkuTier = "Basic" + // SkuTierEnterprise ... + SkuTierEnterprise SkuTier = "Enterprise" + // SkuTierFree ... + SkuTierFree SkuTier = "Free" + // SkuTierPremium ... + SkuTierPremium SkuTier = "Premium" + // SkuTierStandard ... + SkuTierStandard SkuTier = "Standard" +) + +// PossibleSkuTierValues returns an array of possible values for the SkuTier const type. +func PossibleSkuTierValues() []SkuTier { + return []SkuTier{SkuTierBasic, SkuTierEnterprise, SkuTierFree, SkuTierPremium, SkuTierStandard} +} + +// UnitType enumerates the values for unit type. +type UnitType string + +const ( + // UnitTypeBytes ... + UnitTypeBytes UnitType = "Bytes" + // UnitTypeBytesPerSecond ... + UnitTypeBytesPerSecond UnitType = "BytesPerSecond" + // UnitTypeCount ... + UnitTypeCount UnitType = "Count" + // UnitTypeCountPerSecond ... + UnitTypeCountPerSecond UnitType = "CountPerSecond" + // UnitTypeMilliseconds ... + UnitTypeMilliseconds UnitType = "Milliseconds" + // UnitTypePercent ... + UnitTypePercent UnitType = "Percent" + // UnitTypeSeconds ... + UnitTypeSeconds UnitType = "Seconds" +) + +// PossibleUnitTypeValues returns an array of possible values for the UnitType const type. +func PossibleUnitTypeValues() []UnitType { + return []UnitType{UnitTypeBytes, UnitTypeBytesPerSecond, UnitTypeCount, UnitTypeCountPerSecond, UnitTypeMilliseconds, UnitTypePercent, UnitTypeSeconds} +} diff --git a/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/models.go b/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/models.go new file mode 100644 index 000000000000..c5da9875e65b --- /dev/null +++ b/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/models.go @@ -0,0 +1,1674 @@ +package cognitiveservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "encoding/json" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/date" + "github.com/Azure/go-autorest/autorest/to" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// The package's fully qualified name. +const fqdn = "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices" + +// Account cognitive Services account is an Azure resource representing the provisioned account, it's type, +// location and SKU. +type Account struct { + autorest.Response `json:"-"` + // Kind - The Kind of the resource. + Kind *string `json:"kind,omitempty"` + Sku *Sku `json:"sku,omitempty"` + Identity *Identity `json:"identity,omitempty"` + // SystemData - READ-ONLY + SystemData *SystemData `json:"systemData,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // Location - The geo-location where the resource lives + Location *string `json:"location,omitempty"` + // Properties - Properties of Cognitive Services account. + Properties *AccountProperties `json:"properties,omitempty"` + // Etag - READ-ONLY; Resource Etag. + Etag *string `json:"etag,omitempty"` + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for Account. +func (a Account) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if a.Kind != nil { + objectMap["kind"] = a.Kind + } + if a.Sku != nil { + objectMap["sku"] = a.Sku + } + if a.Identity != nil { + objectMap["identity"] = a.Identity + } + if a.Tags != nil { + objectMap["tags"] = a.Tags + } + if a.Location != nil { + objectMap["location"] = a.Location + } + if a.Properties != nil { + objectMap["properties"] = a.Properties + } + return json.Marshal(objectMap) +} + +// AccountListResult the list of cognitive services accounts operation response. +type AccountListResult struct { + autorest.Response `json:"-"` + // NextLink - The link used to get the next page of accounts. + NextLink *string `json:"nextLink,omitempty"` + // Value - READ-ONLY; Gets the list of Cognitive Services accounts and their properties. + Value *[]Account `json:"value,omitempty"` +} + +// MarshalJSON is the custom marshaler for AccountListResult. +func (alr AccountListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if alr.NextLink != nil { + objectMap["nextLink"] = alr.NextLink + } + return json.Marshal(objectMap) +} + +// AccountListResultIterator provides access to a complete listing of Account values. +type AccountListResultIterator struct { + i int + page AccountListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *AccountListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AccountListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *AccountListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter AccountListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter AccountListResultIterator) Response() AccountListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter AccountListResultIterator) Value() Account { + if !iter.page.NotDone() { + return Account{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the AccountListResultIterator type. +func NewAccountListResultIterator(page AccountListResultPage) AccountListResultIterator { + return AccountListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (alr AccountListResult) IsEmpty() bool { + return alr.Value == nil || len(*alr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (alr AccountListResult) hasNextLink() bool { + return alr.NextLink != nil && len(*alr.NextLink) != 0 +} + +// accountListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (alr AccountListResult) accountListResultPreparer(ctx context.Context) (*http.Request, error) { + if !alr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(alr.NextLink))) +} + +// AccountListResultPage contains a page of Account values. +type AccountListResultPage struct { + fn func(context.Context, AccountListResult) (AccountListResult, error) + alr AccountListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *AccountListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AccountListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.alr) + if err != nil { + return err + } + page.alr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *AccountListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page AccountListResultPage) NotDone() bool { + return !page.alr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page AccountListResultPage) Response() AccountListResult { + return page.alr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page AccountListResultPage) Values() []Account { + if page.alr.IsEmpty() { + return nil + } + return *page.alr.Value +} + +// Creates a new instance of the AccountListResultPage type. +func NewAccountListResultPage(cur AccountListResult, getNextPage func(context.Context, AccountListResult) (AccountListResult, error)) AccountListResultPage { + return AccountListResultPage{ + fn: getNextPage, + alr: cur, + } +} + +// AccountProperties properties of Cognitive Services account. +type AccountProperties struct { + // ProvisioningState - READ-ONLY; Gets the status of the cognitive services account at the time the operation was called. Possible values include: 'ProvisioningStateAccepted', 'ProvisioningStateCreating', 'ProvisioningStateDeleting', 'ProvisioningStateMoving', 'ProvisioningStateFailed', 'ProvisioningStateSucceeded', 'ProvisioningStateResolvingDNS' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // Endpoint - READ-ONLY; Endpoint of the created account. + Endpoint *string `json:"endpoint,omitempty"` + // InternalID - READ-ONLY; The internal identifier (deprecated, do not use this property). + InternalID *string `json:"internalId,omitempty"` + // Capabilities - READ-ONLY; Gets the capabilities of the cognitive services account. Each item indicates the capability of a specific feature. The values are read-only and for reference only. + Capabilities *[]SkuCapability `json:"capabilities,omitempty"` + // IsMigrated - READ-ONLY; If the resource is migrated from an existing key. + IsMigrated *bool `json:"isMigrated,omitempty"` + // MigrationToken - Resource migration token. + MigrationToken *string `json:"migrationToken,omitempty"` + // SkuChangeInfo - READ-ONLY; Sku change info of account. + SkuChangeInfo *SkuChangeInfo `json:"skuChangeInfo,omitempty"` + // CustomSubDomainName - Optional subdomain name used for token-based authentication. + CustomSubDomainName *string `json:"customSubDomainName,omitempty"` + // NetworkAcls - A collection of rules governing the accessibility from specific network locations. + NetworkAcls *NetworkRuleSet `json:"networkAcls,omitempty"` + // Encryption - The encryption properties for this resource. + Encryption *Encryption `json:"encryption,omitempty"` + // UserOwnedStorage - The storage accounts for this resource. + UserOwnedStorage *[]UserOwnedStorage `json:"userOwnedStorage,omitempty"` + // PrivateEndpointConnections - READ-ONLY; The private endpoint connection associated with the Cognitive Services account. + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + // PublicNetworkAccess - Whether or not public endpoint access is allowed for this account. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. Possible values include: 'PublicNetworkAccessEnabled', 'PublicNetworkAccessDisabled' + PublicNetworkAccess PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` + // APIProperties - The api properties for special APIs. + APIProperties *APIProperties `json:"apiProperties,omitempty"` + // DateCreated - READ-ONLY; Gets the date of cognitive services account creation. + DateCreated *string `json:"dateCreated,omitempty"` + // CallRateLimit - READ-ONLY + CallRateLimit *CallRateLimit `json:"callRateLimit,omitempty"` + // QuotaLimit - READ-ONLY + QuotaLimit *QuotaLimit `json:"quotaLimit,omitempty"` + RestrictOutboundNetworkAccess *bool `json:"restrictOutboundNetworkAccess,omitempty"` + AllowedFqdnList *[]string `json:"allowedFqdnList,omitempty"` + DisableLocalAuth *bool `json:"disableLocalAuth,omitempty"` + // Endpoints - READ-ONLY + Endpoints map[string]*string `json:"endpoints"` + Restore *bool `json:"restore,omitempty"` +} + +// MarshalJSON is the custom marshaler for AccountProperties. +func (ap AccountProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ap.MigrationToken != nil { + objectMap["migrationToken"] = ap.MigrationToken + } + if ap.CustomSubDomainName != nil { + objectMap["customSubDomainName"] = ap.CustomSubDomainName + } + if ap.NetworkAcls != nil { + objectMap["networkAcls"] = ap.NetworkAcls + } + if ap.Encryption != nil { + objectMap["encryption"] = ap.Encryption + } + if ap.UserOwnedStorage != nil { + objectMap["userOwnedStorage"] = ap.UserOwnedStorage + } + if ap.PublicNetworkAccess != "" { + objectMap["publicNetworkAccess"] = ap.PublicNetworkAccess + } + if ap.APIProperties != nil { + objectMap["apiProperties"] = ap.APIProperties + } + if ap.RestrictOutboundNetworkAccess != nil { + objectMap["restrictOutboundNetworkAccess"] = ap.RestrictOutboundNetworkAccess + } + if ap.AllowedFqdnList != nil { + objectMap["allowedFqdnList"] = ap.AllowedFqdnList + } + if ap.DisableLocalAuth != nil { + objectMap["disableLocalAuth"] = ap.DisableLocalAuth + } + if ap.Restore != nil { + objectMap["restore"] = ap.Restore + } + return json.Marshal(objectMap) +} + +// AccountsCreateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type AccountsCreateFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(AccountsClient) (Account, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *AccountsCreateFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for AccountsCreateFuture.Result. +func (future *AccountsCreateFuture) result(client AccountsClient) (a Account, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsCreateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + a.Response.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("cognitiveservices.AccountsCreateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if a.Response.Response, err = future.GetResult(sender); err == nil && a.Response.Response.StatusCode != http.StatusNoContent { + a, err = client.CreateResponder(a.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsCreateFuture", "Result", a.Response.Response, "Failure responding to request") + } + } + return +} + +// AccountsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type AccountsDeleteFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(AccountsClient) (autorest.Response, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *AccountsDeleteFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for AccountsDeleteFuture.Result. +func (future *AccountsDeleteFuture) result(client AccountsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + ar.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("cognitiveservices.AccountsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// AccountSku cognitive Services resource type and SKU. +type AccountSku struct { + // ResourceType - Resource Namespace and Type + ResourceType *string `json:"resourceType,omitempty"` + // Sku - The SKU of Cognitive Services account. + Sku *Sku `json:"sku,omitempty"` +} + +// AccountSkuListResult the list of cognitive services accounts operation response. +type AccountSkuListResult struct { + autorest.Response `json:"-"` + // Value - Gets the list of Cognitive Services accounts and their properties. + Value *[]AccountSku `json:"value,omitempty"` +} + +// AccountsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type AccountsUpdateFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(AccountsClient) (Account, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *AccountsUpdateFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for AccountsUpdateFuture.Result. +func (future *AccountsUpdateFuture) result(client AccountsClient) (a Account, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + a.Response.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("cognitiveservices.AccountsUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if a.Response.Response, err = future.GetResult(sender); err == nil && a.Response.Response.StatusCode != http.StatusNoContent { + a, err = client.UpdateResponder(a.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsUpdateFuture", "Result", a.Response.Response, "Failure responding to request") + } + } + return +} + +// APIKeys the access keys for the cognitive services account. +type APIKeys struct { + autorest.Response `json:"-"` + // Key1 - Gets the value of key 1. + Key1 *string `json:"key1,omitempty"` + // Key2 - Gets the value of key 2. + Key2 *string `json:"key2,omitempty"` +} + +// APIProperties the api properties for special APIs. +type APIProperties struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // QnaRuntimeEndpoint - (QnAMaker Only) The runtime endpoint of QnAMaker. + QnaRuntimeEndpoint *string `json:"qnaRuntimeEndpoint,omitempty"` + // QnaAzureSearchEndpointKey - (QnAMaker Only) The Azure Search endpoint key of QnAMaker. + QnaAzureSearchEndpointKey *string `json:"qnaAzureSearchEndpointKey,omitempty"` + // QnaAzureSearchEndpointID - (QnAMaker Only) The Azure Search endpoint id of QnAMaker. + QnaAzureSearchEndpointID *string `json:"qnaAzureSearchEndpointId,omitempty"` + // StatisticsEnabled - (Bing Search Only) The flag to enable statistics of Bing Search. + StatisticsEnabled *bool `json:"statisticsEnabled,omitempty"` + // EventHubConnectionString - (Personalization Only) The flag to enable statistics of Bing Search. + EventHubConnectionString *string `json:"eventHubConnectionString,omitempty"` + // StorageAccountConnectionString - (Personalization Only) The storage account connection string. + StorageAccountConnectionString *string `json:"storageAccountConnectionString,omitempty"` + // AadClientID - (Metrics Advisor Only) The Azure AD Client Id (Application Id). + AadClientID *string `json:"aadClientId,omitempty"` + // AadTenantID - (Metrics Advisor Only) The Azure AD Tenant Id. + AadTenantID *string `json:"aadTenantId,omitempty"` + // SuperUser - (Metrics Advisor Only) The super user of Metrics Advisor. + SuperUser *string `json:"superUser,omitempty"` + // WebsiteName - (Metrics Advisor Only) The website name of Metrics Advisor. + WebsiteName *string `json:"websiteName,omitempty"` +} + +// MarshalJSON is the custom marshaler for APIProperties. +func (ap APIProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ap.QnaRuntimeEndpoint != nil { + objectMap["qnaRuntimeEndpoint"] = ap.QnaRuntimeEndpoint + } + if ap.QnaAzureSearchEndpointKey != nil { + objectMap["qnaAzureSearchEndpointKey"] = ap.QnaAzureSearchEndpointKey + } + if ap.QnaAzureSearchEndpointID != nil { + objectMap["qnaAzureSearchEndpointId"] = ap.QnaAzureSearchEndpointID + } + if ap.StatisticsEnabled != nil { + objectMap["statisticsEnabled"] = ap.StatisticsEnabled + } + if ap.EventHubConnectionString != nil { + objectMap["eventHubConnectionString"] = ap.EventHubConnectionString + } + if ap.StorageAccountConnectionString != nil { + objectMap["storageAccountConnectionString"] = ap.StorageAccountConnectionString + } + if ap.AadClientID != nil { + objectMap["aadClientId"] = ap.AadClientID + } + if ap.AadTenantID != nil { + objectMap["aadTenantId"] = ap.AadTenantID + } + if ap.SuperUser != nil { + objectMap["superUser"] = ap.SuperUser + } + if ap.WebsiteName != nil { + objectMap["websiteName"] = ap.WebsiteName + } + for k, v := range ap.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for APIProperties struct. +func (ap *APIProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ap.AdditionalProperties == nil { + ap.AdditionalProperties = make(map[string]interface{}) + } + ap.AdditionalProperties[k] = additionalProperties + } + case "qnaRuntimeEndpoint": + if v != nil { + var qnaRuntimeEndpoint string + err = json.Unmarshal(*v, &qnaRuntimeEndpoint) + if err != nil { + return err + } + ap.QnaRuntimeEndpoint = &qnaRuntimeEndpoint + } + case "qnaAzureSearchEndpointKey": + if v != nil { + var qnaAzureSearchEndpointKey string + err = json.Unmarshal(*v, &qnaAzureSearchEndpointKey) + if err != nil { + return err + } + ap.QnaAzureSearchEndpointKey = &qnaAzureSearchEndpointKey + } + case "qnaAzureSearchEndpointId": + if v != nil { + var qnaAzureSearchEndpointID string + err = json.Unmarshal(*v, &qnaAzureSearchEndpointID) + if err != nil { + return err + } + ap.QnaAzureSearchEndpointID = &qnaAzureSearchEndpointID + } + case "statisticsEnabled": + if v != nil { + var statisticsEnabled bool + err = json.Unmarshal(*v, &statisticsEnabled) + if err != nil { + return err + } + ap.StatisticsEnabled = &statisticsEnabled + } + case "eventHubConnectionString": + if v != nil { + var eventHubConnectionString string + err = json.Unmarshal(*v, &eventHubConnectionString) + if err != nil { + return err + } + ap.EventHubConnectionString = &eventHubConnectionString + } + case "storageAccountConnectionString": + if v != nil { + var storageAccountConnectionString string + err = json.Unmarshal(*v, &storageAccountConnectionString) + if err != nil { + return err + } + ap.StorageAccountConnectionString = &storageAccountConnectionString + } + case "aadClientId": + if v != nil { + var aadClientID string + err = json.Unmarshal(*v, &aadClientID) + if err != nil { + return err + } + ap.AadClientID = &aadClientID + } + case "aadTenantId": + if v != nil { + var aadTenantID string + err = json.Unmarshal(*v, &aadTenantID) + if err != nil { + return err + } + ap.AadTenantID = &aadTenantID + } + case "superUser": + if v != nil { + var superUser string + err = json.Unmarshal(*v, &superUser) + if err != nil { + return err + } + ap.SuperUser = &superUser + } + case "websiteName": + if v != nil { + var websiteName string + err = json.Unmarshal(*v, &websiteName) + if err != nil { + return err + } + ap.WebsiteName = &websiteName + } + } + } + + return nil +} + +// AzureEntityResource the resource model definition for an Azure Resource Manager resource with an etag. +type AzureEntityResource struct { + // Etag - READ-ONLY; Resource Etag. + Etag *string `json:"etag,omitempty"` + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// CallRateLimit the call rate limit Cognitive Services account. +type CallRateLimit struct { + // Count - The count value of Call Rate Limit. + Count *float64 `json:"count,omitempty"` + // RenewalPeriod - The renewal period in seconds of Call Rate Limit. + RenewalPeriod *float64 `json:"renewalPeriod,omitempty"` + Rules *[]ThrottlingRule `json:"rules,omitempty"` +} + +// CheckDomainAvailabilityParameter check Domain availability parameter. +type CheckDomainAvailabilityParameter struct { + // SubdomainName - The subdomain name to use. + SubdomainName *string `json:"subdomainName,omitempty"` + // Type - The Type of the resource. + Type *string `json:"type,omitempty"` +} + +// CheckSkuAvailabilityParameter check SKU availability parameter. +type CheckSkuAvailabilityParameter struct { + // Skus - The SKU of the resource. + Skus *[]string `json:"skus,omitempty"` + // Kind - The Kind of the resource. + Kind *string `json:"kind,omitempty"` + // Type - The Type of the resource. + Type *string `json:"type,omitempty"` +} + +// DeletedAccountsPurgeFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type DeletedAccountsPurgeFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(DeletedAccountsClient) (autorest.Response, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *DeletedAccountsPurgeFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for DeletedAccountsPurgeFuture.Result. +func (future *DeletedAccountsPurgeFuture) result(client DeletedAccountsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.DeletedAccountsPurgeFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + ar.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("cognitiveservices.DeletedAccountsPurgeFuture") + return + } + ar.Response = future.Response() + return +} + +// DomainAvailability domain availability. +type DomainAvailability struct { + autorest.Response `json:"-"` + // IsSubdomainAvailable - Indicates the given SKU is available or not. + IsSubdomainAvailable *bool `json:"isSubdomainAvailable,omitempty"` + // Reason - Reason why the SKU is not available. + Reason *string `json:"reason,omitempty"` + // SubdomainName - The subdomain name to use. + SubdomainName *string `json:"subdomainName,omitempty"` + // Type - The Type of the resource. + Type *string `json:"type,omitempty"` +} + +// Encryption properties to configure Encryption +type Encryption struct { + // KeyVaultProperties - Properties of KeyVault + KeyVaultProperties *KeyVaultProperties `json:"keyVaultProperties,omitempty"` + // KeySource - Enumerates the possible value of keySource for Encryption. Possible values include: 'KeySourceMicrosoftCognitiveServices', 'KeySourceMicrosoftKeyVault' + KeySource KeySource `json:"keySource,omitempty"` +} + +// ErrorAdditionalInfo the resource management error additional info. +type ErrorAdditionalInfo struct { + // Type - READ-ONLY; The additional info type. + Type *string `json:"type,omitempty"` + // Info - READ-ONLY; The additional info. + Info interface{} `json:"info,omitempty"` +} + +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// ErrorDetail the error detail. +type ErrorDetail struct { + // Code - READ-ONLY; The error code. + Code *string `json:"code,omitempty"` + // Message - READ-ONLY; The error message. + Message *string `json:"message,omitempty"` + // Target - READ-ONLY; The error target. + Target *string `json:"target,omitempty"` + // Details - READ-ONLY; The error details. + Details *[]ErrorDetail `json:"details,omitempty"` + // AdditionalInfo - READ-ONLY; The error additional info. + AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` +} + +// MarshalJSON is the custom marshaler for ErrorDetail. +func (ed ErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// ErrorResponse common error response for all Azure Resource Manager APIs to return error details for +// failed operations. (This also follows the OData error response format.). +type ErrorResponse struct { + // Error - The error object. + Error *ErrorDetail `json:"error,omitempty"` +} + +// Identity identity for the resource. +type Identity struct { + // Type - The identity type. Possible values include: 'ResourceIdentityTypeNone', 'ResourceIdentityTypeSystemAssigned', 'ResourceIdentityTypeUserAssigned', 'ResourceIdentityTypeSystemAssignedUserAssigned' + Type ResourceIdentityType `json:"type,omitempty"` + // TenantID - READ-ONLY; The tenant ID of resource. + TenantID *string `json:"tenantId,omitempty"` + // PrincipalID - READ-ONLY; The principal ID of resource identity. + PrincipalID *string `json:"principalId,omitempty"` + // UserAssignedIdentities - The list of user assigned identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName} + UserAssignedIdentities map[string]*UserAssignedIdentity `json:"userAssignedIdentities"` +} + +// MarshalJSON is the custom marshaler for Identity. +func (i Identity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if i.Type != "" { + objectMap["type"] = i.Type + } + if i.UserAssignedIdentities != nil { + objectMap["userAssignedIdentities"] = i.UserAssignedIdentities + } + return json.Marshal(objectMap) +} + +// IPRule a rule governing the accessibility from a specific ip address or ip range. +type IPRule struct { + // Value - An IPv4 address range in CIDR notation, such as '124.56.78.91' (simple IP address) or '124.56.78.0/24' (all addresses that start with 124.56.78). + Value *string `json:"value,omitempty"` +} + +// KeyVaultProperties properties to configure keyVault Properties +type KeyVaultProperties struct { + // KeyName - Name of the Key from KeyVault + KeyName *string `json:"keyName,omitempty"` + // KeyVersion - Version of the Key from KeyVault + KeyVersion *string `json:"keyVersion,omitempty"` + // KeyVaultURI - Uri of KeyVault + KeyVaultURI *string `json:"keyVaultUri,omitempty"` + IdentityClientID *string `json:"identityClientId,omitempty"` +} + +// MetricName a metric name. +type MetricName struct { + // Value - The name of the metric. + Value *string `json:"value,omitempty"` + // LocalizedValue - The friendly name of the metric. + LocalizedValue *string `json:"localizedValue,omitempty"` +} + +// NetworkRuleSet a set of rules governing the network accessibility. +type NetworkRuleSet struct { + // DefaultAction - The default action when no rule from ipRules and from virtualNetworkRules match. This is only used after the bypass property has been evaluated. Possible values include: 'NetworkRuleActionAllow', 'NetworkRuleActionDeny' + DefaultAction NetworkRuleAction `json:"defaultAction,omitempty"` + // IPRules - The list of IP address rules. + IPRules *[]IPRule `json:"ipRules,omitempty"` + // VirtualNetworkRules - The list of virtual network rules. + VirtualNetworkRules *[]VirtualNetworkRule `json:"virtualNetworkRules,omitempty"` +} + +// Operation details of a REST API operation, returned from the Resource Provider Operations API +type Operation struct { + // Name - READ-ONLY; The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" + Name *string `json:"name,omitempty"` + // IsDataAction - READ-ONLY; Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations. + IsDataAction *bool `json:"isDataAction,omitempty"` + // Display - Localized display information for this particular operation. + Display *OperationDisplay `json:"display,omitempty"` + // Origin - READ-ONLY; The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system". Possible values include: 'OriginUser', 'OriginSystem', 'OriginUsersystem' + Origin Origin `json:"origin,omitempty"` + // ActionType - READ-ONLY; Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. Possible values include: 'ActionTypeInternal' + ActionType ActionType `json:"actionType,omitempty"` +} + +// MarshalJSON is the custom marshaler for Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if o.Display != nil { + objectMap["display"] = o.Display + } + return json.Marshal(objectMap) +} + +// OperationDisplay localized display information for this particular operation. +type OperationDisplay struct { + // Provider - READ-ONLY; The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". + Provider *string `json:"provider,omitempty"` + // Resource - READ-ONLY; The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". + Resource *string `json:"resource,omitempty"` + // Operation - READ-ONLY; The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". + Operation *string `json:"operation,omitempty"` + // Description - READ-ONLY; The short, localized friendly description of the operation; suitable for tool tips and detailed views. + Description *string `json:"description,omitempty"` +} + +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// OperationListResult a list of REST API operations supported by an Azure Resource Provider. It contains +// an URL link to get the next set of results. +type OperationListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of operations supported by the resource provider + Value *[]Operation `json:"value,omitempty"` + // NextLink - READ-ONLY; URL to get the next set of operation list results (if there are any). + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// OperationListResultIterator provides access to a complete listing of Operation values. +type OperationListResultIterator struct { + i int + page OperationListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *OperationListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter OperationListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter OperationListResultIterator) Response() OperationListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter OperationListResultIterator) Value() Operation { + if !iter.page.NotDone() { + return Operation{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the OperationListResultIterator type. +func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator { + return OperationListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (olr OperationListResult) IsEmpty() bool { + return olr.Value == nil || len(*olr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (olr OperationListResult) hasNextLink() bool { + return olr.NextLink != nil && len(*olr.NextLink) != 0 +} + +// operationListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (olr OperationListResult) operationListResultPreparer(ctx context.Context) (*http.Request, error) { + if !olr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(olr.NextLink))) +} + +// OperationListResultPage contains a page of Operation values. +type OperationListResultPage struct { + fn func(context.Context, OperationListResult) (OperationListResult, error) + olr OperationListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.olr) + if err != nil { + return err + } + page.olr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *OperationListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page OperationListResultPage) NotDone() bool { + return !page.olr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page OperationListResultPage) Response() OperationListResult { + return page.olr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page OperationListResultPage) Values() []Operation { + if page.olr.IsEmpty() { + return nil + } + return *page.olr.Value +} + +// Creates a new instance of the OperationListResultPage type. +func NewOperationListResultPage(cur OperationListResult, getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage { + return OperationListResultPage{ + fn: getNextPage, + olr: cur, + } +} + +// PrivateEndpoint the Private Endpoint resource. +type PrivateEndpoint struct { + // ID - READ-ONLY; The ARM identifier for Private Endpoint + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for PrivateEndpoint. +func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// PrivateEndpointConnection the Private Endpoint Connection resource. +type PrivateEndpointConnection struct { + autorest.Response `json:"-"` + // Properties - Resource properties. + Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` + // SystemData - READ-ONLY + SystemData *SystemData `json:"systemData,omitempty"` + // Location - The location of the private endpoint connection + Location *string `json:"location,omitempty"` + // Etag - READ-ONLY; Resource Etag. + Etag *string `json:"etag,omitempty"` + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for PrivateEndpointConnection. +func (pec PrivateEndpointConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if pec.Properties != nil { + objectMap["properties"] = pec.Properties + } + if pec.Location != nil { + objectMap["location"] = pec.Location + } + return json.Marshal(objectMap) +} + +// PrivateEndpointConnectionListResult a list of private endpoint connections +type PrivateEndpointConnectionListResult struct { + autorest.Response `json:"-"` + // Value - Array of private endpoint connections + Value *[]PrivateEndpointConnection `json:"value,omitempty"` +} + +// PrivateEndpointConnectionProperties properties of the PrivateEndpointConnectProperties. +type PrivateEndpointConnectionProperties struct { + // PrivateEndpoint - The resource of private end point. + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + // PrivateLinkServiceConnectionState - A collection of information about the state of the connection between service consumer and provider. + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + // ProvisioningState - The provisioning state of the private endpoint connection resource. Possible values include: 'PrivateEndpointConnectionProvisioningStateSucceeded', 'PrivateEndpointConnectionProvisioningStateCreating', 'PrivateEndpointConnectionProvisioningStateDeleting', 'PrivateEndpointConnectionProvisioningStateFailed' + ProvisioningState PrivateEndpointConnectionProvisioningState `json:"provisioningState,omitempty"` + // GroupIds - The private link resource group ids. + GroupIds *[]string `json:"groupIds,omitempty"` +} + +// PrivateEndpointConnectionsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results +// of a long-running operation. +type PrivateEndpointConnectionsCreateOrUpdateFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(PrivateEndpointConnectionsClient) (PrivateEndpointConnection, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *PrivateEndpointConnectionsCreateOrUpdateFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for PrivateEndpointConnectionsCreateOrUpdateFuture.Result. +func (future *PrivateEndpointConnectionsCreateOrUpdateFuture) result(client PrivateEndpointConnectionsClient) (pec PrivateEndpointConnection, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.PrivateEndpointConnectionsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + pec.Response.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("cognitiveservices.PrivateEndpointConnectionsCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if pec.Response.Response, err = future.GetResult(sender); err == nil && pec.Response.Response.StatusCode != http.StatusNoContent { + pec, err = client.CreateOrUpdateResponder(pec.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.PrivateEndpointConnectionsCreateOrUpdateFuture", "Result", pec.Response.Response, "Failure responding to request") + } + } + return +} + +// PrivateEndpointConnectionsDeleteFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type PrivateEndpointConnectionsDeleteFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(PrivateEndpointConnectionsClient) (autorest.Response, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *PrivateEndpointConnectionsDeleteFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for PrivateEndpointConnectionsDeleteFuture.Result. +func (future *PrivateEndpointConnectionsDeleteFuture) result(client PrivateEndpointConnectionsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.PrivateEndpointConnectionsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + ar.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("cognitiveservices.PrivateEndpointConnectionsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// PrivateLinkResource a private link resource +type PrivateLinkResource struct { + // Properties - Resource properties. + Properties *PrivateLinkResourceProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for PrivateLinkResource. +func (plr PrivateLinkResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if plr.Properties != nil { + objectMap["properties"] = plr.Properties + } + return json.Marshal(objectMap) +} + +// PrivateLinkResourceListResult a list of private link resources +type PrivateLinkResourceListResult struct { + autorest.Response `json:"-"` + // Value - Array of private link resources + Value *[]PrivateLinkResource `json:"value,omitempty"` +} + +// PrivateLinkResourceProperties properties of a private link resource. +type PrivateLinkResourceProperties struct { + // GroupID - READ-ONLY; The private link resource group id. + GroupID *string `json:"groupId,omitempty"` + // RequiredMembers - READ-ONLY; The private link resource required member names. + RequiredMembers *[]string `json:"requiredMembers,omitempty"` + // RequiredZoneNames - The private link resource Private link DNS zone name. + RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"` + // DisplayName - READ-ONLY; The private link resource display name. + DisplayName *string `json:"displayName,omitempty"` +} + +// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. +func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if plrp.RequiredZoneNames != nil { + objectMap["requiredZoneNames"] = plrp.RequiredZoneNames + } + return json.Marshal(objectMap) +} + +// PrivateLinkServiceConnectionState a collection of information about the state of the connection between +// service consumer and provider. +type PrivateLinkServiceConnectionState struct { + // Status - Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. Possible values include: 'PrivateEndpointServiceConnectionStatusPending', 'PrivateEndpointServiceConnectionStatusApproved', 'PrivateEndpointServiceConnectionStatusRejected' + Status PrivateEndpointServiceConnectionStatus `json:"status,omitempty"` + // Description - The reason for approval/rejection of the connection. + Description *string `json:"description,omitempty"` + // ActionsRequired - A message indicating if changes on the service provider require any updates on the consumer. + ActionsRequired *string `json:"actionsRequired,omitempty"` +} + +// ProxyResource the resource model definition for a Azure Resource Manager proxy resource. It will not +// have tags and a location +type ProxyResource struct { + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// QuotaLimit ... +type QuotaLimit struct { + Count *float64 `json:"count,omitempty"` + RenewalPeriod *float64 `json:"renewalPeriod,omitempty"` + Rules *[]ThrottlingRule `json:"rules,omitempty"` +} + +// RegenerateKeyParameters regenerate key parameters. +type RegenerateKeyParameters struct { + // KeyName - key name to generate (Key1|Key2). Possible values include: 'KeyNameKey1', 'KeyNameKey2' + KeyName KeyName `json:"keyName,omitempty"` +} + +// RequestMatchPattern ... +type RequestMatchPattern struct { + Path *string `json:"path,omitempty"` + Method *string `json:"method,omitempty"` +} + +// Resource common fields that are returned in the response for all Azure Resource Manager resources +type Resource struct { + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// ResourceSku describes an available Cognitive Services SKU. +type ResourceSku struct { + // ResourceType - The type of resource the SKU applies to. + ResourceType *string `json:"resourceType,omitempty"` + // Name - The name of SKU. + Name *string `json:"name,omitempty"` + // Tier - Specifies the tier of Cognitive Services account. + Tier *string `json:"tier,omitempty"` + // Kind - The Kind of resources that are supported in this SKU. + Kind *string `json:"kind,omitempty"` + // Locations - The set of locations that the SKU is available. + Locations *[]string `json:"locations,omitempty"` + // Restrictions - The restrictions because of which SKU cannot be used. This is empty if there are no restrictions. + Restrictions *[]ResourceSkuRestrictions `json:"restrictions,omitempty"` +} + +// ResourceSkuListResult the Get Skus operation response. +type ResourceSkuListResult struct { + autorest.Response `json:"-"` + // Value - The list of skus available for the subscription. + Value *[]ResourceSku `json:"value,omitempty"` + // NextLink - The uri to fetch the next page of Skus. + NextLink *string `json:"nextLink,omitempty"` +} + +// ResourceSkuListResultIterator provides access to a complete listing of ResourceSku values. +type ResourceSkuListResultIterator struct { + i int + page ResourceSkuListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ResourceSkuListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ResourceSkuListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ResourceSkuListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ResourceSkuListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ResourceSkuListResultIterator) Response() ResourceSkuListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ResourceSkuListResultIterator) Value() ResourceSku { + if !iter.page.NotDone() { + return ResourceSku{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ResourceSkuListResultIterator type. +func NewResourceSkuListResultIterator(page ResourceSkuListResultPage) ResourceSkuListResultIterator { + return ResourceSkuListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (rslr ResourceSkuListResult) IsEmpty() bool { + return rslr.Value == nil || len(*rslr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (rslr ResourceSkuListResult) hasNextLink() bool { + return rslr.NextLink != nil && len(*rslr.NextLink) != 0 +} + +// resourceSkuListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (rslr ResourceSkuListResult) resourceSkuListResultPreparer(ctx context.Context) (*http.Request, error) { + if !rslr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(rslr.NextLink))) +} + +// ResourceSkuListResultPage contains a page of ResourceSku values. +type ResourceSkuListResultPage struct { + fn func(context.Context, ResourceSkuListResult) (ResourceSkuListResult, error) + rslr ResourceSkuListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ResourceSkuListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ResourceSkuListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.rslr) + if err != nil { + return err + } + page.rslr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ResourceSkuListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ResourceSkuListResultPage) NotDone() bool { + return !page.rslr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ResourceSkuListResultPage) Response() ResourceSkuListResult { + return page.rslr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ResourceSkuListResultPage) Values() []ResourceSku { + if page.rslr.IsEmpty() { + return nil + } + return *page.rslr.Value +} + +// Creates a new instance of the ResourceSkuListResultPage type. +func NewResourceSkuListResultPage(cur ResourceSkuListResult, getNextPage func(context.Context, ResourceSkuListResult) (ResourceSkuListResult, error)) ResourceSkuListResultPage { + return ResourceSkuListResultPage{ + fn: getNextPage, + rslr: cur, + } +} + +// ResourceSkuRestrictionInfo ... +type ResourceSkuRestrictionInfo struct { + // Locations - Locations where the SKU is restricted + Locations *[]string `json:"locations,omitempty"` + // Zones - List of availability zones where the SKU is restricted. + Zones *[]string `json:"zones,omitempty"` +} + +// ResourceSkuRestrictions describes restrictions of a SKU. +type ResourceSkuRestrictions struct { + // Type - The type of restrictions. Possible values include: 'ResourceSkuRestrictionsTypeLocation', 'ResourceSkuRestrictionsTypeZone' + Type ResourceSkuRestrictionsType `json:"type,omitempty"` + // Values - The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted. + Values *[]string `json:"values,omitempty"` + // RestrictionInfo - The information about the restriction where the SKU cannot be used. + RestrictionInfo *ResourceSkuRestrictionInfo `json:"restrictionInfo,omitempty"` + // ReasonCode - The reason for restriction. Possible values include: 'ResourceSkuRestrictionsReasonCodeQuotaID', 'ResourceSkuRestrictionsReasonCodeNotAvailableForSubscription' + ReasonCode ResourceSkuRestrictionsReasonCode `json:"reasonCode,omitempty"` +} + +// Sku the resource model definition representing SKU +type Sku struct { + // Name - The name of the SKU. Ex - P3. It is typically a letter+number code + Name *string `json:"name,omitempty"` + // Tier - This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. Possible values include: 'SkuTierFree', 'SkuTierBasic', 'SkuTierStandard', 'SkuTierPremium', 'SkuTierEnterprise' + Tier SkuTier `json:"tier,omitempty"` + // Size - The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + Size *string `json:"size,omitempty"` + // Family - If the service has different generations of hardware, for the same SKU, then that can be captured here. + Family *string `json:"family,omitempty"` + // Capacity - If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted. + Capacity *int32 `json:"capacity,omitempty"` +} + +// SkuAvailability SKU availability. +type SkuAvailability struct { + // Kind - The Kind of the resource. + Kind *string `json:"kind,omitempty"` + // Type - The Type of the resource. + Type *string `json:"type,omitempty"` + // SkuName - The SKU of Cognitive Services account. + SkuName *string `json:"skuName,omitempty"` + // SkuAvailable - Indicates the given SKU is available or not. + SkuAvailable *bool `json:"skuAvailable,omitempty"` + // Reason - Reason why the SKU is not available. + Reason *string `json:"reason,omitempty"` + // Message - Additional error message. + Message *string `json:"message,omitempty"` +} + +// SkuAvailabilityListResult check SKU availability result list. +type SkuAvailabilityListResult struct { + autorest.Response `json:"-"` + // Value - Check SKU availability result list. + Value *[]SkuAvailability `json:"value,omitempty"` +} + +// SkuCapability skuCapability indicates the capability of a certain feature. +type SkuCapability struct { + // Name - The name of the SkuCapability. + Name *string `json:"name,omitempty"` + // Value - The value of the SkuCapability. + Value *string `json:"value,omitempty"` +} + +// SkuChangeInfo sku change info of account. +type SkuChangeInfo struct { + // CountOfDowngrades - Gets the count of downgrades. + CountOfDowngrades *float64 `json:"countOfDowngrades,omitempty"` + // CountOfUpgradesAfterDowngrades - Gets the count of upgrades after downgrades. + CountOfUpgradesAfterDowngrades *float64 `json:"countOfUpgradesAfterDowngrades,omitempty"` + // LastChangeDate - Gets the last change date. + LastChangeDate *string `json:"lastChangeDate,omitempty"` +} + +// SystemData metadata pertaining to creation and last modification of the resource. +type SystemData struct { + // CreatedBy - The identity that created the resource. + CreatedBy *string `json:"createdBy,omitempty"` + // CreatedByType - The type of identity that created the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey' + CreatedByType CreatedByType `json:"createdByType,omitempty"` + // CreatedAt - The timestamp of resource creation (UTC). + CreatedAt *date.Time `json:"createdAt,omitempty"` + // LastModifiedBy - The identity that last modified the resource. + LastModifiedBy *string `json:"lastModifiedBy,omitempty"` + // LastModifiedByType - The type of identity that last modified the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey' + LastModifiedByType CreatedByType `json:"lastModifiedByType,omitempty"` + // LastModifiedAt - The timestamp of resource last modification (UTC) + LastModifiedAt *date.Time `json:"lastModifiedAt,omitempty"` +} + +// ThrottlingRule ... +type ThrottlingRule struct { + Key *string `json:"key,omitempty"` + RenewalPeriod *float64 `json:"renewalPeriod,omitempty"` + Count *float64 `json:"count,omitempty"` + MinCount *float64 `json:"minCount,omitempty"` + DynamicThrottlingEnabled *bool `json:"dynamicThrottlingEnabled,omitempty"` + MatchPatterns *[]RequestMatchPattern `json:"matchPatterns,omitempty"` +} + +// TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource +// which has 'tags' and a 'location' +type TrackedResource struct { + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // Location - The geo-location where the resource lives + Location *string `json:"location,omitempty"` + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for TrackedResource. +func (tr TrackedResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if tr.Tags != nil { + objectMap["tags"] = tr.Tags + } + if tr.Location != nil { + objectMap["location"] = tr.Location + } + return json.Marshal(objectMap) +} + +// Usage the usage data for a usage request. +type Usage struct { + // Unit - The unit of the metric. Possible values include: 'UnitTypeCount', 'UnitTypeBytes', 'UnitTypeSeconds', 'UnitTypePercent', 'UnitTypeCountPerSecond', 'UnitTypeBytesPerSecond', 'UnitTypeMilliseconds' + Unit UnitType `json:"unit,omitempty"` + // Name - The name information for the metric. + Name *MetricName `json:"name,omitempty"` + // QuotaPeriod - The quota period used to summarize the usage values. + QuotaPeriod *string `json:"quotaPeriod,omitempty"` + // Limit - Maximum value for this metric. + Limit *float64 `json:"limit,omitempty"` + // CurrentValue - Current value for this metric. + CurrentValue *float64 `json:"currentValue,omitempty"` + // NextResetTime - Next reset time for current quota. + NextResetTime *string `json:"nextResetTime,omitempty"` + // Status - Cognitive Services account quota usage status. Possible values include: 'QuotaUsageStatusIncluded', 'QuotaUsageStatusBlocked', 'QuotaUsageStatusInOverage', 'QuotaUsageStatusUnknown' + Status QuotaUsageStatus `json:"status,omitempty"` +} + +// UsageListResult the response to a list usage request. +type UsageListResult struct { + autorest.Response `json:"-"` + // Value - The list of usages for Cognitive Service account. + Value *[]Usage `json:"value,omitempty"` +} + +// UserAssignedIdentity user-assigned managed identity. +type UserAssignedIdentity struct { + // PrincipalID - READ-ONLY; Azure Active Directory principal ID associated with this Identity. + PrincipalID *string `json:"principalId,omitempty"` + // ClientID - READ-ONLY; Client App Id associated with this identity. + ClientID *string `json:"clientId,omitempty"` +} + +// MarshalJSON is the custom marshaler for UserAssignedIdentity. +func (uai UserAssignedIdentity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// UserOwnedStorage the user owned storage for Cognitive Services account. +type UserOwnedStorage struct { + // ResourceID - Full resource id of a Microsoft.Storage resource. + ResourceID *string `json:"resourceId,omitempty"` + IdentityClientID *string `json:"identityClientId,omitempty"` +} + +// VirtualNetworkRule a rule governing the accessibility from a specific virtual network. +type VirtualNetworkRule struct { + // ID - Full resource id of a vnet subnet, such as '/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1'. + ID *string `json:"id,omitempty"` + // State - Gets the state of virtual network rule. + State *string `json:"state,omitempty"` + // IgnoreMissingVnetServiceEndpoint - Ignore missing vnet service endpoint or not. + IgnoreMissingVnetServiceEndpoint *bool `json:"ignoreMissingVnetServiceEndpoint,omitempty"` +} diff --git a/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/operations.go b/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/operations.go new file mode 100644 index 000000000000..d1420c04817d --- /dev/null +++ b/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/operations.go @@ -0,0 +1,140 @@ +package cognitiveservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// OperationsClient is the cognitive Services Management Client +type OperationsClient struct { + BaseClient +} + +// NewOperationsClient creates an instance of the OperationsClient client. +func NewOperationsClient(subscriptionID string) OperationsClient { + return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient { + return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List lists all the available Cognitive Services account operations. +func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List") + defer func() { + sc := -1 + if result.olr.Response.Response != nil { + sc = result.olr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.OperationsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.olr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cognitiveservices.OperationsClient", "List", resp, "Failure sending request") + return + } + + result.olr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.OperationsClient", "List", resp, "Failure responding to request") + return + } + if result.olr.hasNextLink() && result.olr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) { + const APIVersion = "2021-04-30" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPath("/providers/Microsoft.CognitiveServices/operations"), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client OperationsClient) listNextResults(ctx context.Context, lastResults OperationListResult) (result OperationListResult, err error) { + req, err := lastResults.operationListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "cognitiveservices.OperationsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "cognitiveservices.OperationsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} diff --git a/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/privateendpointconnections.go b/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/privateendpointconnections.go new file mode 100644 index 000000000000..30c8b51e267c --- /dev/null +++ b/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/privateendpointconnections.go @@ -0,0 +1,413 @@ +package cognitiveservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// PrivateEndpointConnectionsClient is the cognitive Services Management Client +type PrivateEndpointConnectionsClient struct { + BaseClient +} + +// NewPrivateEndpointConnectionsClient creates an instance of the PrivateEndpointConnectionsClient client. +func NewPrivateEndpointConnectionsClient(subscriptionID string) PrivateEndpointConnectionsClient { + return NewPrivateEndpointConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewPrivateEndpointConnectionsClientWithBaseURI creates an instance of the PrivateEndpointConnectionsClient client +// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign +// clouds, Azure stack). +func NewPrivateEndpointConnectionsClientWithBaseURI(baseURI string, subscriptionID string) PrivateEndpointConnectionsClient { + return PrivateEndpointConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate update the state of specified private endpoint connection associated with the Cognitive Services +// account. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// accountName - the name of Cognitive Services account. +// privateEndpointConnectionName - the name of the private endpoint connection associated with the Cognitive +// Services Account +// properties - the private endpoint connection properties. +func (client PrivateEndpointConnectionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string, properties PrivateEndpointConnection) (result PrivateEndpointConnectionsCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointConnectionsClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 64, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 2, Chain: nil}, + {Target: "accountName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9][a-zA-Z0-9_.-]*$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: properties, + Constraints: []validation.Constraint{{Target: "properties.Properties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "properties.Properties.PrivateLinkServiceConnectionState", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { + return result, validation.NewError("cognitiveservices.PrivateEndpointConnectionsClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, accountName, privateEndpointConnectionName, properties) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.PrivateEndpointConnectionsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.PrivateEndpointConnectionsClient", "CreateOrUpdate", nil, "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client PrivateEndpointConnectionsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string, properties PrivateEndpointConnection) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "privateEndpointConnectionName": autorest.Encode("path", privateEndpointConnectionName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-30" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + properties.SystemData = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}", pathParameters), + autorest.WithJSON(properties), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateEndpointConnectionsClient) CreateOrUpdateSender(req *http.Request) (future PrivateEndpointConnectionsCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client PrivateEndpointConnectionsClient) CreateOrUpdateResponder(resp *http.Response) (result PrivateEndpointConnection, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified private endpoint connection associated with the Cognitive Services account. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// accountName - the name of Cognitive Services account. +// privateEndpointConnectionName - the name of the private endpoint connection associated with the Cognitive +// Services Account +func (client PrivateEndpointConnectionsClient) Delete(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string) (result PrivateEndpointConnectionsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointConnectionsClient.Delete") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 64, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 2, Chain: nil}, + {Target: "accountName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9][a-zA-Z0-9_.-]*$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("cognitiveservices.PrivateEndpointConnectionsClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, accountName, privateEndpointConnectionName) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.PrivateEndpointConnectionsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.PrivateEndpointConnectionsClient", "Delete", nil, "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client PrivateEndpointConnectionsClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "privateEndpointConnectionName": autorest.Encode("path", privateEndpointConnectionName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-30" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateEndpointConnectionsClient) DeleteSender(req *http.Request) (future PrivateEndpointConnectionsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client PrivateEndpointConnectionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified private endpoint connection associated with the Cognitive Services account. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// accountName - the name of Cognitive Services account. +// privateEndpointConnectionName - the name of the private endpoint connection associated with the Cognitive +// Services Account +func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string) (result PrivateEndpointConnection, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointConnectionsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 64, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 2, Chain: nil}, + {Target: "accountName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9][a-zA-Z0-9_.-]*$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("cognitiveservices.PrivateEndpointConnectionsClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, accountName, privateEndpointConnectionName) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.PrivateEndpointConnectionsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cognitiveservices.PrivateEndpointConnectionsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client PrivateEndpointConnectionsClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "privateEndpointConnectionName": autorest.Encode("path", privateEndpointConnectionName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-30" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateEndpointConnectionsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client PrivateEndpointConnectionsClient) GetResponder(resp *http.Response) (result PrivateEndpointConnection, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets the private endpoint connections associated with the Cognitive Services account. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// accountName - the name of Cognitive Services account. +func (client PrivateEndpointConnectionsClient) List(ctx context.Context, resourceGroupName string, accountName string) (result PrivateEndpointConnectionListResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointConnectionsClient.List") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 64, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 2, Chain: nil}, + {Target: "accountName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9][a-zA-Z0-9_.-]*$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("cognitiveservices.PrivateEndpointConnectionsClient", "List", err.Error()) + } + + req, err := client.ListPreparer(ctx, resourceGroupName, accountName) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.PrivateEndpointConnectionsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cognitiveservices.PrivateEndpointConnectionsClient", "List", resp, "Failure sending request") + return + } + + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.PrivateEndpointConnectionsClient", "List", resp, "Failure responding to request") + return + } + + return +} + +// ListPreparer prepares the List request. +func (client PrivateEndpointConnectionsClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-30" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateEndpointConnections", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateEndpointConnectionsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client PrivateEndpointConnectionsClient) ListResponder(resp *http.Response) (result PrivateEndpointConnectionListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/privatelinkresources.go b/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/privatelinkresources.go new file mode 100644 index 000000000000..6d5306428f09 --- /dev/null +++ b/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/privatelinkresources.go @@ -0,0 +1,123 @@ +package cognitiveservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// PrivateLinkResourcesClient is the cognitive Services Management Client +type PrivateLinkResourcesClient struct { + BaseClient +} + +// NewPrivateLinkResourcesClient creates an instance of the PrivateLinkResourcesClient client. +func NewPrivateLinkResourcesClient(subscriptionID string) PrivateLinkResourcesClient { + return NewPrivateLinkResourcesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewPrivateLinkResourcesClientWithBaseURI creates an instance of the PrivateLinkResourcesClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewPrivateLinkResourcesClientWithBaseURI(baseURI string, subscriptionID string) PrivateLinkResourcesClient { + return PrivateLinkResourcesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List gets the private link resources that need to be created for a Cognitive Services account. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// accountName - the name of Cognitive Services account. +func (client PrivateLinkResourcesClient) List(ctx context.Context, resourceGroupName string, accountName string) (result PrivateLinkResourceListResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateLinkResourcesClient.List") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 64, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 2, Chain: nil}, + {Target: "accountName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9][a-zA-Z0-9_.-]*$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("cognitiveservices.PrivateLinkResourcesClient", "List", err.Error()) + } + + req, err := client.ListPreparer(ctx, resourceGroupName, accountName) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.PrivateLinkResourcesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cognitiveservices.PrivateLinkResourcesClient", "List", resp, "Failure sending request") + return + } + + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.PrivateLinkResourcesClient", "List", resp, "Failure responding to request") + return + } + + return +} + +// ListPreparer prepares the List request. +func (client PrivateLinkResourcesClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-30" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateLinkResources", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateLinkResourcesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client PrivateLinkResourcesClient) ListResponder(resp *http.Response) (result PrivateLinkResourceListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/resourceskus.go b/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/resourceskus.go new file mode 100644 index 000000000000..29fb57cceeb6 --- /dev/null +++ b/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/resourceskus.go @@ -0,0 +1,151 @@ +package cognitiveservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ResourceSkusClient is the cognitive Services Management Client +type ResourceSkusClient struct { + BaseClient +} + +// NewResourceSkusClient creates an instance of the ResourceSkusClient client. +func NewResourceSkusClient(subscriptionID string) ResourceSkusClient { + return NewResourceSkusClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewResourceSkusClientWithBaseURI creates an instance of the ResourceSkusClient client using a custom endpoint. Use +// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewResourceSkusClientWithBaseURI(baseURI string, subscriptionID string) ResourceSkusClient { + return ResourceSkusClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List gets the list of Microsoft.CognitiveServices SKUs available for your Subscription. +func (client ResourceSkusClient) List(ctx context.Context) (result ResourceSkuListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ResourceSkusClient.List") + defer func() { + sc := -1 + if result.rslr.Response.Response != nil { + sc = result.rslr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("cognitiveservices.ResourceSkusClient", "List", err.Error()) + } + + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.ResourceSkusClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.rslr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "cognitiveservices.ResourceSkusClient", "List", resp, "Failure sending request") + return + } + + result.rslr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.ResourceSkusClient", "List", resp, "Failure responding to request") + return + } + if result.rslr.hasNextLink() && result.rslr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client ResourceSkusClient) ListPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-30" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/skus", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client ResourceSkusClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client ResourceSkusClient) ListResponder(resp *http.Response) (result ResourceSkuListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client ResourceSkusClient) listNextResults(ctx context.Context, lastResults ResourceSkuListResult) (result ResourceSkuListResult, err error) { + req, err := lastResults.resourceSkuListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "cognitiveservices.ResourceSkusClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "cognitiveservices.ResourceSkusClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservices.ResourceSkusClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client ResourceSkusClient) ListComplete(ctx context.Context) (result ResourceSkuListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ResourceSkusClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} diff --git a/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/version.go b/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/version.go new file mode 100644 index 000000000000..b7cd651d4874 --- /dev/null +++ b/services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/version.go @@ -0,0 +1,19 @@ +package cognitiveservices + +import "github.com/Azure/azure-sdk-for-go/version" + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// UserAgent returns the UserAgent string to use when sending http.Requests. +func UserAgent() string { + return "Azure-SDK-For-Go/" + Version() + " cognitiveservices/2021-04-30" +} + +// Version returns the semantic version (see http://semver.org) of the client. +func Version() string { + return version.Number +} diff --git a/services/cognitiveservices/v1.0/autosuggest/_meta.json b/services/cognitiveservices/v1.0/autosuggest/_meta.json index 669966a2a69c..686bad2dccbd 100644 --- a/services/cognitiveservices/v1.0/autosuggest/_meta.json +++ b/services/cognitiveservices/v1.0/autosuggest/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/AutoSuggest/readme.md", "tag": "release_1_0", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=release_1_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/AutoSuggest/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=release_1_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/AutoSuggest/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cognitiveservices/v1.0/contentmoderator/_meta.json b/services/cognitiveservices/v1.0/contentmoderator/_meta.json index 31d864b9fed4..ad7ab303730f 100644 --- a/services/cognitiveservices/v1.0/contentmoderator/_meta.json +++ b/services/cognitiveservices/v1.0/contentmoderator/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/ContentModerator/readme.md", "tag": "release_1_0", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=release_1_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/ContentModerator/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=release_1_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/ContentModerator/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cognitiveservices/v1.0/customimagesearch/_meta.json b/services/cognitiveservices/v1.0/customimagesearch/_meta.json index 526bad92e4be..40f278540a8e 100644 --- a/services/cognitiveservices/v1.0/customimagesearch/_meta.json +++ b/services/cognitiveservices/v1.0/customimagesearch/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/CustomImageSearch/readme.md", "tag": "release_1_0", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=release_1_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/CustomImageSearch/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=release_1_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/CustomImageSearch/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cognitiveservices/v1.0/customsearch/CHANGELOG.md b/services/cognitiveservices/v1.0/customsearch/CHANGELOG.md index 52911e4cc5e4..3d42d492e7a3 100644 --- a/services/cognitiveservices/v1.0/customsearch/CHANGELOG.md +++ b/services/cognitiveservices/v1.0/customsearch/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. WebMetaTag.MarshalJSON() ([]byte, error) diff --git a/services/cognitiveservices/v1.0/customsearch/_meta.json b/services/cognitiveservices/v1.0/customsearch/_meta.json index 9dd1a408868b..8d5171dbc208 100644 --- a/services/cognitiveservices/v1.0/customsearch/_meta.json +++ b/services/cognitiveservices/v1.0/customsearch/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/CustomWebSearch/readme.md", "tag": "release_1_0", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=release_1_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/CustomWebSearch/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=release_1_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/CustomWebSearch/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cognitiveservices/v1.0/customsearch/models.go b/services/cognitiveservices/v1.0/customsearch/models.go index 074f68597640..79d5e628ac6d 100644 --- a/services/cognitiveservices/v1.0/customsearch/models.go +++ b/services/cognitiveservices/v1.0/customsearch/models.go @@ -1672,6 +1672,12 @@ type WebMetaTag struct { Content *string `json:"content,omitempty"` } +// MarshalJSON is the custom marshaler for WebMetaTag. +func (wmt WebMetaTag) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WebPage defines a webpage that is relevant to the query. type WebPage struct { // DisplayURL - READ-ONLY; The display URL of the webpage. The URL is meant for display purposes only and is not well formed. diff --git a/services/cognitiveservices/v1.0/entitysearch/_meta.json b/services/cognitiveservices/v1.0/entitysearch/_meta.json index d438f03edadd..aa445a1cce1e 100644 --- a/services/cognitiveservices/v1.0/entitysearch/_meta.json +++ b/services/cognitiveservices/v1.0/entitysearch/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/EntitySearch/readme.md", "tag": "release_1_0", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=release_1_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/EntitySearch/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=release_1_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/EntitySearch/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cognitiveservices/v1.0/face/_meta.json b/services/cognitiveservices/v1.0/face/_meta.json index fc9a67cb9e1a..ae089d339db0 100644 --- a/services/cognitiveservices/v1.0/face/_meta.json +++ b/services/cognitiveservices/v1.0/face/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/Face/readme.md", "tag": "release_1_0", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=release_1_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/Face/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=release_1_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/Face/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cognitiveservices/v1.0/imagesearch/CHANGELOG.md b/services/cognitiveservices/v1.0/imagesearch/CHANGELOG.md index 52911e4cc5e4..ccc7cf9c5e7e 100644 --- a/services/cognitiveservices/v1.0/imagesearch/CHANGELOG.md +++ b/services/cognitiveservices/v1.0/imagesearch/CHANGELOG.md @@ -1,2 +1,13 @@ # Change History +## Additive Changes + +### New Funcs + +1. ImagesImageMetadata.MarshalJSON() ([]byte, error) +1. ImagesModule.MarshalJSON() ([]byte, error) +1. InsightsTag.MarshalJSON() ([]byte, error) +1. RecipesModule.MarshalJSON() ([]byte, error) +1. RecognizedEntitiesModule.MarshalJSON() ([]byte, error) +1. RelatedCollectionsModule.MarshalJSON() ([]byte, error) +1. RelatedSearchesModule.MarshalJSON() ([]byte, error) diff --git a/services/cognitiveservices/v1.0/imagesearch/_meta.json b/services/cognitiveservices/v1.0/imagesearch/_meta.json index 22df27e85dbb..8dd7d33d01f5 100644 --- a/services/cognitiveservices/v1.0/imagesearch/_meta.json +++ b/services/cognitiveservices/v1.0/imagesearch/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/ImageSearch/readme.md", "tag": "release_1_0", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=release_1_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/ImageSearch/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=release_1_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/ImageSearch/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cognitiveservices/v1.0/imagesearch/models.go b/services/cognitiveservices/v1.0/imagesearch/models.go index 004870af4737..4ccaad5d3d1c 100644 --- a/services/cognitiveservices/v1.0/imagesearch/models.go +++ b/services/cognitiveservices/v1.0/imagesearch/models.go @@ -3676,12 +3676,24 @@ type ImagesImageMetadata struct { AggregateOffer *AggregateOffer `json:"aggregateOffer,omitempty"` } +// MarshalJSON is the custom marshaler for ImagesImageMetadata. +func (iim ImagesImageMetadata) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImagesModule defines a list of images. type ImagesModule struct { // Value - READ-ONLY; A list of images. Value *[]ImageObject `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ImagesModule. +func (im ImagesModule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageTagsModule defines the characteristics of content found in an image. type ImageTagsModule struct { // Value - A list of tags that describe the characteristics of the content found in the image. For example, if the image is of a musical artist, the list might include Female, Dress, and Music to indicate the person is female music artist that's wearing a dress. @@ -3694,6 +3706,12 @@ type InsightsTag struct { Name *string `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for InsightsTag. +func (it InsightsTag) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicIntangible a utility class that serves as the umbrella for a number of 'intangible' things such as quantities, // structured values, etc. type BasicIntangible interface { @@ -6100,12 +6118,24 @@ type RecipesModule struct { Value *[]Recipe `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for RecipesModule. +func (rm RecipesModule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RecognizedEntitiesModule defines a list of previously recognized entities. type RecognizedEntitiesModule struct { // Value - READ-ONLY; A list of recognized entities. Value *[]RecognizedEntityGroup `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for RecognizedEntitiesModule. +func (rem RecognizedEntitiesModule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RecognizedEntity defines a recognized entity. type RecognizedEntity struct { // Entity - READ-ONLY; The entity that was recognized. The following are the possible entity objects: Person @@ -6631,12 +6661,24 @@ type RelatedCollectionsModule struct { Value *[]ImageGallery `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for RelatedCollectionsModule. +func (rcm RelatedCollectionsModule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RelatedSearchesModule defines a list of related searches. type RelatedSearchesModule struct { // Value - READ-ONLY; A list of related searches. Value *[]Query `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for RelatedSearchesModule. +func (rsm RelatedSearchesModule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicResponse defines a response. All schemas that could be returned at the root of a response should inherit from // this type BasicResponse interface { diff --git a/services/cognitiveservices/v1.0/localsearch/_meta.json b/services/cognitiveservices/v1.0/localsearch/_meta.json index 4994e6446efc..0fa4ab8e13dd 100644 --- a/services/cognitiveservices/v1.0/localsearch/_meta.json +++ b/services/cognitiveservices/v1.0/localsearch/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/LocalSearch/readme.md", "tag": "release_1_0", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=release_1_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/LocalSearch/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=release_1_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/LocalSearch/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cognitiveservices/v1.0/newssearch/_meta.json b/services/cognitiveservices/v1.0/newssearch/_meta.json index 30c58af69a1a..e71d601d377e 100644 --- a/services/cognitiveservices/v1.0/newssearch/_meta.json +++ b/services/cognitiveservices/v1.0/newssearch/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/NewsSearch/readme.md", "tag": "release_1_0", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=release_1_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/NewsSearch/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=release_1_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/NewsSearch/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cognitiveservices/v1.0/spellcheck/_meta.json b/services/cognitiveservices/v1.0/spellcheck/_meta.json index e46ea7aaffcd..785bcdf208aa 100644 --- a/services/cognitiveservices/v1.0/spellcheck/_meta.json +++ b/services/cognitiveservices/v1.0/spellcheck/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/SpellCheck/readme.md", "tag": "release_1_0", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=release_1_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/SpellCheck/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=release_1_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/SpellCheck/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cognitiveservices/v1.0/videosearch/CHANGELOG.md b/services/cognitiveservices/v1.0/videosearch/CHANGELOG.md index 52911e4cc5e4..749c5c4ff17a 100644 --- a/services/cognitiveservices/v1.0/videosearch/CHANGELOG.md +++ b/services/cognitiveservices/v1.0/videosearch/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. VideosModule.MarshalJSON() ([]byte, error) diff --git a/services/cognitiveservices/v1.0/videosearch/_meta.json b/services/cognitiveservices/v1.0/videosearch/_meta.json index c4b9276d6039..c4b1ed01648e 100644 --- a/services/cognitiveservices/v1.0/videosearch/_meta.json +++ b/services/cognitiveservices/v1.0/videosearch/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/VideoSearch/readme.md", "tag": "release_1_0", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=release_1_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/VideoSearch/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=release_1_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/VideoSearch/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cognitiveservices/v1.0/videosearch/models.go b/services/cognitiveservices/v1.0/videosearch/models.go index 7715b7026f84..3eccdf5404ca 100644 --- a/services/cognitiveservices/v1.0/videosearch/models.go +++ b/services/cognitiveservices/v1.0/videosearch/models.go @@ -3362,3 +3362,9 @@ type VideosModule struct { // Value - READ-ONLY Value *[]VideoObject `json:"value,omitempty"` } + +// MarshalJSON is the custom marshaler for VideosModule. +func (VM VideosModule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/cognitiveservices/v1.0/websearch/CHANGELOG.md b/services/cognitiveservices/v1.0/websearch/CHANGELOG.md index 52911e4cc5e4..66a17cd8c9c2 100644 --- a/services/cognitiveservices/v1.0/websearch/CHANGELOG.md +++ b/services/cognitiveservices/v1.0/websearch/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. RankingRankingResponse.MarshalJSON() ([]byte, error) +1. WebMetaTag.MarshalJSON() ([]byte, error) diff --git a/services/cognitiveservices/v1.0/websearch/_meta.json b/services/cognitiveservices/v1.0/websearch/_meta.json index 1a9335dbbbdb..85d54259a1d9 100644 --- a/services/cognitiveservices/v1.0/websearch/_meta.json +++ b/services/cognitiveservices/v1.0/websearch/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/WebSearch/readme.md", "tag": "release_1_0", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=release_1_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/WebSearch/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=release_1_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/WebSearch/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cognitiveservices/v1.0/websearch/models.go b/services/cognitiveservices/v1.0/websearch/models.go index 85d3d3d8ac55..cc1b5fcdcd68 100644 --- a/services/cognitiveservices/v1.0/websearch/models.go +++ b/services/cognitiveservices/v1.0/websearch/models.go @@ -4187,6 +4187,12 @@ type RankingRankingResponse struct { Sidebar *RankingRankingGroup `json:"sidebar,omitempty"` } +// MarshalJSON is the custom marshaler for RankingRankingResponse. +func (rrr RankingRankingResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RelatedSearchesRelatedSearchAnswer defines a list of related queries made by others. type RelatedSearchesRelatedSearchAnswer struct { // Value - A list of related queries that were made by others. @@ -7284,6 +7290,12 @@ type WebMetaTag struct { Content *string `json:"content,omitempty"` } +// MarshalJSON is the custom marshaler for WebMetaTag. +func (wmt WebMetaTag) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WebPage defines a webpage that is relevant to the query. type WebPage struct { // DisplayURL - READ-ONLY; The display URL of the webpage. The URL is meant for display purposes only and is not well formed. diff --git a/services/cognitiveservices/v1.1/customvision/prediction/CHANGELOG.md b/services/cognitiveservices/v1.1/customvision/prediction/CHANGELOG.md index 52911e4cc5e4..7af23d37b38f 100644 --- a/services/cognitiveservices/v1.1/customvision/prediction/CHANGELOG.md +++ b/services/cognitiveservices/v1.1/customvision/prediction/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. ImagePrediction.MarshalJSON() ([]byte, error) +1. Model.MarshalJSON() ([]byte, error) diff --git a/services/cognitiveservices/v1.1/customvision/prediction/_meta.json b/services/cognitiveservices/v1.1/customvision/prediction/_meta.json index 42d7ac073cb0..5febefe14b89 100644 --- a/services/cognitiveservices/v1.1/customvision/prediction/_meta.json +++ b/services/cognitiveservices/v1.1/customvision/prediction/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/CustomVision/Prediction/readme.md", "tag": "release_1_0", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=release_1_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/CustomVision/Prediction/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=release_1_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/CustomVision/Prediction/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cognitiveservices/v1.1/customvision/prediction/models.go b/services/cognitiveservices/v1.1/customvision/prediction/models.go index a9d5d5100a12..99cc681bcec5 100644 --- a/services/cognitiveservices/v1.1/customvision/prediction/models.go +++ b/services/cognitiveservices/v1.1/customvision/prediction/models.go @@ -7,6 +7,7 @@ package prediction // Changes may cause incorrect behavior and will be lost if the code is regenerated. import ( + "encoding/json" "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/date" "github.com/gofrs/uuid" @@ -38,6 +39,12 @@ type ImagePrediction struct { Predictions *[]Model `json:"predictions,omitempty"` } +// MarshalJSON is the custom marshaler for ImagePrediction. +func (IP ImagePrediction) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageURL ... type ImageURL struct { URL *string `json:"url,omitempty"` @@ -54,3 +61,9 @@ type Model struct { // BoundingBox - READ-ONLY BoundingBox *BoundingBox `json:"boundingBox,omitempty"` } + +// MarshalJSON is the custom marshaler for Model. +func (mVar Model) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/cognitiveservices/v1.2/customvision/training/CHANGELOG.md b/services/cognitiveservices/v1.2/customvision/training/CHANGELOG.md index 52911e4cc5e4..cc447ca8777d 100644 --- a/services/cognitiveservices/v1.2/customvision/training/CHANGELOG.md +++ b/services/cognitiveservices/v1.2/customvision/training/CHANGELOG.md @@ -1,2 +1,22 @@ # Change History +## Additive Changes + +### New Funcs + +1. Domain.MarshalJSON() ([]byte, error) +1. Export.MarshalJSON() ([]byte, error) +1. Image.MarshalJSON() ([]byte, error) +1. ImageCreateResult.MarshalJSON() ([]byte, error) +1. ImageCreateSummary.MarshalJSON() ([]byte, error) +1. ImagePerformance.MarshalJSON() ([]byte, error) +1. ImagePrediction.MarshalJSON() ([]byte, error) +1. ImageRegionProposal.MarshalJSON() ([]byte, error) +1. ImageTag.MarshalJSON() ([]byte, error) +1. IterationPerformance.MarshalJSON() ([]byte, error) +1. Prediction.MarshalJSON() ([]byte, error) +1. PredictionQueryResult.MarshalJSON() ([]byte, error) +1. PredictionQueryTag.MarshalJSON() ([]byte, error) +1. RegionProposal.MarshalJSON() ([]byte, error) +1. StoredImagePrediction.MarshalJSON() ([]byte, error) +1. TagPerformance.MarshalJSON() ([]byte, error) diff --git a/services/cognitiveservices/v1.2/customvision/training/_meta.json b/services/cognitiveservices/v1.2/customvision/training/_meta.json index af15cc2c4778..2002033a7f71 100644 --- a/services/cognitiveservices/v1.2/customvision/training/_meta.json +++ b/services/cognitiveservices/v1.2/customvision/training/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/CustomVision/Training/readme.md", "tag": "release_1_0", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=release_1_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/CustomVision/Training/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=release_1_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/CustomVision/Training/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cognitiveservices/v1.2/customvision/training/models.go b/services/cognitiveservices/v1.2/customvision/training/models.go index 4290a8086931..c98c94aa564e 100644 --- a/services/cognitiveservices/v1.2/customvision/training/models.go +++ b/services/cognitiveservices/v1.2/customvision/training/models.go @@ -39,6 +39,12 @@ type Domain struct { Enabled *bool `json:"enabled,omitempty"` } +// MarshalJSON is the custom marshaler for Domain. +func (d Domain) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Export ... type Export struct { autorest.Response `json:"-"` @@ -52,6 +58,12 @@ type Export struct { Flavor ExportFlavor `json:"flavor,omitempty"` } +// MarshalJSON is the custom marshaler for Export. +func (e Export) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Image image model to be sent as JSON type Image struct { // ID - READ-ONLY @@ -72,6 +84,12 @@ type Image struct { Regions *[]ImageRegion `json:"regions,omitempty"` } +// MarshalJSON is the custom marshaler for Image. +func (i Image) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageCreateResult ... type ImageCreateResult struct { // SourceURL - READ-ONLY @@ -82,6 +100,12 @@ type ImageCreateResult struct { Image *Image `json:"image,omitempty"` } +// MarshalJSON is the custom marshaler for ImageCreateResult. +func (icr ImageCreateResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageCreateSummary ... type ImageCreateSummary struct { autorest.Response `json:"-"` @@ -91,6 +115,12 @@ type ImageCreateSummary struct { Images *[]ImageCreateResult `json:"images,omitempty"` } +// MarshalJSON is the custom marshaler for ImageCreateSummary. +func (ics ImageCreateSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageFileCreateBatch ... type ImageFileCreateBatch struct { Images *[]ImageFileCreateEntry `json:"images,omitempty"` @@ -140,6 +170,12 @@ type ImagePerformance struct { Regions *[]ImageRegion `json:"regions,omitempty"` } +// MarshalJSON is the custom marshaler for ImagePerformance. +func (IP ImagePerformance) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImagePrediction ... type ImagePrediction struct { autorest.Response `json:"-"` @@ -155,6 +191,12 @@ type ImagePrediction struct { Predictions *[]Prediction `json:"predictions,omitempty"` } +// MarshalJSON is the custom marshaler for ImagePrediction. +func (IP ImagePrediction) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageRegion ... type ImageRegion struct { // RegionID - READ-ONLY @@ -263,6 +305,12 @@ type ImageRegionProposal struct { Proposals *[]RegionProposal `json:"proposals,omitempty"` } +// MarshalJSON is the custom marshaler for ImageRegionProposal. +func (irp ImageRegionProposal) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageTag ... type ImageTag struct { // TagID - READ-ONLY @@ -273,6 +321,12 @@ type ImageTag struct { Created *date.Time `json:"created,omitempty"` } +// MarshalJSON is the custom marshaler for ImageTag. +func (it ImageTag) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageTagCreateBatch ... type ImageTagCreateBatch struct { Tags *[]ImageTagCreateEntry `json:"tags,omitempty"` @@ -370,6 +424,12 @@ type IterationPerformance struct { AveragePrecision *float64 `json:"averagePrecision,omitempty"` } +// MarshalJSON is the custom marshaler for IterationPerformance. +func (IP IterationPerformance) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListDomain ... type ListDomain struct { autorest.Response `json:"-"` @@ -424,6 +484,12 @@ type Prediction struct { BoundingBox *BoundingBox `json:"boundingBox,omitempty"` } +// MarshalJSON is the custom marshaler for Prediction. +func (p Prediction) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PredictionQueryResult ... type PredictionQueryResult struct { autorest.Response `json:"-"` @@ -433,6 +499,12 @@ type PredictionQueryResult struct { Results *[]StoredImagePrediction `json:"results,omitempty"` } +// MarshalJSON is the custom marshaler for PredictionQueryResult. +func (pqr PredictionQueryResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PredictionQueryTag ... type PredictionQueryTag struct { // ID - READ-ONLY @@ -443,6 +515,12 @@ type PredictionQueryTag struct { MaxThreshold *float64 `json:"maxThreshold,omitempty"` } +// MarshalJSON is the custom marshaler for PredictionQueryTag. +func (pqt PredictionQueryTag) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PredictionQueryToken ... type PredictionQueryToken struct { Session *string `json:"session,omitempty"` @@ -514,6 +592,12 @@ type RegionProposal struct { BoundingBox *BoundingBox `json:"boundingBox,omitempty"` } +// MarshalJSON is the custom marshaler for RegionProposal. +func (rp RegionProposal) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StoredImagePrediction result of an image classification request type StoredImagePrediction struct { // ImageURI - READ-ONLY @@ -534,6 +618,12 @@ type StoredImagePrediction struct { Predictions *[]Prediction `json:"predictions,omitempty"` } +// MarshalJSON is the custom marshaler for StoredImagePrediction. +func (sip StoredImagePrediction) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Tag represents a Tag type Tag struct { autorest.Response `json:"-"` @@ -576,3 +666,9 @@ type TagPerformance struct { // AveragePrecision - READ-ONLY; Gets the average precision when applicable AveragePrecision *float64 `json:"averagePrecision,omitempty"` } + +// MarshalJSON is the custom marshaler for TagPerformance. +func (tp TagPerformance) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/cognitiveservices/v2.0/computervision/CHANGELOG.md b/services/cognitiveservices/v2.0/computervision/CHANGELOG.md index 52911e4cc5e4..413f96321707 100644 --- a/services/cognitiveservices/v2.0/computervision/CHANGELOG.md +++ b/services/cognitiveservices/v2.0/computervision/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. DetectedBrand.MarshalJSON() ([]byte, error) +1. ListModelsResult.MarshalJSON() ([]byte, error) diff --git a/services/cognitiveservices/v2.0/computervision/_meta.json b/services/cognitiveservices/v2.0/computervision/_meta.json index 34c3b99e60f9..af2692746ccb 100644 --- a/services/cognitiveservices/v2.0/computervision/_meta.json +++ b/services/cognitiveservices/v2.0/computervision/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/ComputerVision/readme.md", "tag": "release_2_0", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=release_2_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/ComputerVision/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=release_2_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/ComputerVision/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cognitiveservices/v2.0/computervision/models.go b/services/cognitiveservices/v2.0/computervision/models.go index 0254748f99fe..c3d00738e2e9 100644 --- a/services/cognitiveservices/v2.0/computervision/models.go +++ b/services/cognitiveservices/v2.0/computervision/models.go @@ -122,6 +122,12 @@ type DetectedBrand struct { Rectangle *BoundingRect `json:"rectangle,omitempty"` } +// MarshalJSON is the custom marshaler for DetectedBrand. +func (db DetectedBrand) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DetectedObject an object detected in an image. type DetectedObject struct { // Rectangle - READ-ONLY; Approximate location of the detected object. @@ -393,6 +399,12 @@ type ListModelsResult struct { ModelsProperty *[]ModelDescription `json:"models,omitempty"` } +// MarshalJSON is the custom marshaler for ListModelsResult. +func (lmr ListModelsResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ModelDescription an object describing supported model by name and categories. type ModelDescription struct { // Name - The name of the model. diff --git a/services/cognitiveservices/v2.0/luis/authoring/_meta.json b/services/cognitiveservices/v2.0/luis/authoring/_meta.json index c5e4f92aeca0..28b7d8648925 100644 --- a/services/cognitiveservices/v2.0/luis/authoring/_meta.json +++ b/services/cognitiveservices/v2.0/luis/authoring/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/LUIS/Authoring/readme.md", "tag": "authoring_2_0", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=authoring_2_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/LUIS/Authoring/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=authoring_2_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/LUIS/Authoring/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cognitiveservices/v2.0/luis/runtime/_meta.json b/services/cognitiveservices/v2.0/luis/runtime/_meta.json index 7d1dd7e03daf..22d266befef9 100644 --- a/services/cognitiveservices/v2.0/luis/runtime/_meta.json +++ b/services/cognitiveservices/v2.0/luis/runtime/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/LUIS/Runtime/readme.md", "tag": "runtime_2_0", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=runtime_2_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/LUIS/Runtime/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=runtime_2_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/LUIS/Runtime/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cognitiveservices/v2.0/textanalytics/CHANGELOG.md b/services/cognitiveservices/v2.0/textanalytics/CHANGELOG.md index 52911e4cc5e4..2ec28a41e25f 100644 --- a/services/cognitiveservices/v2.0/textanalytics/CHANGELOG.md +++ b/services/cognitiveservices/v2.0/textanalytics/CHANGELOG.md @@ -1,2 +1,14 @@ # Change History +## Additive Changes + +### New Funcs + +1. EntitiesBatchResult.MarshalJSON() ([]byte, error) +1. EntitiesBatchResultItem.MarshalJSON() ([]byte, error) +1. KeyPhraseBatchResult.MarshalJSON() ([]byte, error) +1. KeyPhraseBatchResultItem.MarshalJSON() ([]byte, error) +1. LanguageBatchResult.MarshalJSON() ([]byte, error) +1. LanguageBatchResultItem.MarshalJSON() ([]byte, error) +1. SentimentBatchResult.MarshalJSON() ([]byte, error) +1. SentimentBatchResultItem.MarshalJSON() ([]byte, error) diff --git a/services/cognitiveservices/v2.0/textanalytics/_meta.json b/services/cognitiveservices/v2.0/textanalytics/_meta.json index 3334a5c3d32c..aed669697c98 100644 --- a/services/cognitiveservices/v2.0/textanalytics/_meta.json +++ b/services/cognitiveservices/v2.0/textanalytics/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/TextAnalytics/readme.md", "tag": "release_2_0", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=release_2_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/TextAnalytics/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=release_2_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/TextAnalytics/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cognitiveservices/v2.0/textanalytics/models.go b/services/cognitiveservices/v2.0/textanalytics/models.go index 66a4c2dac815..6d17e817ea4e 100644 --- a/services/cognitiveservices/v2.0/textanalytics/models.go +++ b/services/cognitiveservices/v2.0/textanalytics/models.go @@ -38,6 +38,12 @@ type EntitiesBatchResult struct { Errors *[]ErrorRecord `json:"errors,omitempty"` } +// MarshalJSON is the custom marshaler for EntitiesBatchResult. +func (ebr EntitiesBatchResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EntitiesBatchResultItem ... type EntitiesBatchResultItem struct { // ID - READ-ONLY; Unique document identifier. @@ -46,6 +52,12 @@ type EntitiesBatchResultItem struct { Entities *[]EntityRecord `json:"entities,omitempty"` } +// MarshalJSON is the custom marshaler for EntitiesBatchResultItem. +func (ebri EntitiesBatchResultItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EntityRecord ... type EntityRecord struct { // Name - Entity formal name. @@ -119,6 +131,12 @@ type KeyPhraseBatchResult struct { Errors *[]ErrorRecord `json:"errors,omitempty"` } +// MarshalJSON is the custom marshaler for KeyPhraseBatchResult. +func (kpbr KeyPhraseBatchResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // KeyPhraseBatchResultItem ... type KeyPhraseBatchResultItem struct { // KeyPhrases - READ-ONLY; A list of representative words or phrases. The number of key phrases returned is proportional to the number of words in the input document. @@ -127,6 +145,12 @@ type KeyPhraseBatchResultItem struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for KeyPhraseBatchResultItem. +func (kpbri KeyPhraseBatchResultItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LanguageBatchResult ... type LanguageBatchResult struct { autorest.Response `json:"-"` @@ -136,6 +160,12 @@ type LanguageBatchResult struct { Errors *[]ErrorRecord `json:"errors,omitempty"` } +// MarshalJSON is the custom marshaler for LanguageBatchResult. +func (lbr LanguageBatchResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LanguageBatchResultItem ... type LanguageBatchResultItem struct { // ID - READ-ONLY; Unique document identifier. @@ -144,6 +174,12 @@ type LanguageBatchResultItem struct { DetectedLanguages *[]DetectedLanguage `json:"detectedLanguages,omitempty"` } +// MarshalJSON is the custom marshaler for LanguageBatchResultItem. +func (lbri LanguageBatchResultItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MatchRecord ... type MatchRecord struct { // Text - Entity text as appears in the request. @@ -177,6 +213,12 @@ type SentimentBatchResult struct { Errors *[]ErrorRecord `json:"errors,omitempty"` } +// MarshalJSON is the custom marshaler for SentimentBatchResult. +func (sbr SentimentBatchResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SentimentBatchResultItem ... type SentimentBatchResultItem struct { // Score - READ-ONLY; A decimal number between 0 and 1 denoting the sentiment of the document. A score above 0.7 usually refers to a positive document while a score below 0.3 normally has a negative connotation. Mid values refer to neutral text. @@ -184,3 +226,9 @@ type SentimentBatchResultItem struct { // ID - READ-ONLY; Unique document identifier. ID *string `json:"id,omitempty"` } + +// MarshalJSON is the custom marshaler for SentimentBatchResultItem. +func (sbri SentimentBatchResultItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/cognitiveservices/v2.1/computervision/CHANGELOG.md b/services/cognitiveservices/v2.1/computervision/CHANGELOG.md index 52911e4cc5e4..413f96321707 100644 --- a/services/cognitiveservices/v2.1/computervision/CHANGELOG.md +++ b/services/cognitiveservices/v2.1/computervision/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. DetectedBrand.MarshalJSON() ([]byte, error) +1. ListModelsResult.MarshalJSON() ([]byte, error) diff --git a/services/cognitiveservices/v2.1/computervision/_meta.json b/services/cognitiveservices/v2.1/computervision/_meta.json index 305ec52686b3..92f8e7dc8d49 100644 --- a/services/cognitiveservices/v2.1/computervision/_meta.json +++ b/services/cognitiveservices/v2.1/computervision/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/ComputerVision/readme.md", "tag": "release_2_1", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=release_2_1 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/ComputerVision/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=release_2_1 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/ComputerVision/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cognitiveservices/v2.1/computervision/models.go b/services/cognitiveservices/v2.1/computervision/models.go index faac86164e7e..407c0e782380 100644 --- a/services/cognitiveservices/v2.1/computervision/models.go +++ b/services/cognitiveservices/v2.1/computervision/models.go @@ -126,6 +126,12 @@ type DetectedBrand struct { Rectangle *BoundingRect `json:"rectangle,omitempty"` } +// MarshalJSON is the custom marshaler for DetectedBrand. +func (db DetectedBrand) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DetectedObject an object detected in an image. type DetectedObject struct { // Rectangle - READ-ONLY; Approximate location of the detected object. @@ -397,6 +403,12 @@ type ListModelsResult struct { ModelsProperty *[]ModelDescription `json:"models,omitempty"` } +// MarshalJSON is the custom marshaler for ListModelsResult. +func (lmr ListModelsResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ModelDescription an object describing supported model by name and categories. type ModelDescription struct { // Name - The name of the model. diff --git a/services/cognitiveservices/v2.1/customvision/training/CHANGELOG.md b/services/cognitiveservices/v2.1/customvision/training/CHANGELOG.md index 52911e4cc5e4..cc447ca8777d 100644 --- a/services/cognitiveservices/v2.1/customvision/training/CHANGELOG.md +++ b/services/cognitiveservices/v2.1/customvision/training/CHANGELOG.md @@ -1,2 +1,22 @@ # Change History +## Additive Changes + +### New Funcs + +1. Domain.MarshalJSON() ([]byte, error) +1. Export.MarshalJSON() ([]byte, error) +1. Image.MarshalJSON() ([]byte, error) +1. ImageCreateResult.MarshalJSON() ([]byte, error) +1. ImageCreateSummary.MarshalJSON() ([]byte, error) +1. ImagePerformance.MarshalJSON() ([]byte, error) +1. ImagePrediction.MarshalJSON() ([]byte, error) +1. ImageRegionProposal.MarshalJSON() ([]byte, error) +1. ImageTag.MarshalJSON() ([]byte, error) +1. IterationPerformance.MarshalJSON() ([]byte, error) +1. Prediction.MarshalJSON() ([]byte, error) +1. PredictionQueryResult.MarshalJSON() ([]byte, error) +1. PredictionQueryTag.MarshalJSON() ([]byte, error) +1. RegionProposal.MarshalJSON() ([]byte, error) +1. StoredImagePrediction.MarshalJSON() ([]byte, error) +1. TagPerformance.MarshalJSON() ([]byte, error) diff --git a/services/cognitiveservices/v2.1/customvision/training/_meta.json b/services/cognitiveservices/v2.1/customvision/training/_meta.json index 4041decc67ef..d226168c769c 100644 --- a/services/cognitiveservices/v2.1/customvision/training/_meta.json +++ b/services/cognitiveservices/v2.1/customvision/training/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/CustomVision/Training/readme.md", "tag": "release_2_1", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=release_2_1 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/CustomVision/Training/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=release_2_1 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/CustomVision/Training/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cognitiveservices/v2.1/customvision/training/models.go b/services/cognitiveservices/v2.1/customvision/training/models.go index 985ffe57441f..fce7c2d92fa2 100644 --- a/services/cognitiveservices/v2.1/customvision/training/models.go +++ b/services/cognitiveservices/v2.1/customvision/training/models.go @@ -39,6 +39,12 @@ type Domain struct { Enabled *bool `json:"enabled,omitempty"` } +// MarshalJSON is the custom marshaler for Domain. +func (d Domain) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Export ... type Export struct { autorest.Response `json:"-"` @@ -54,6 +60,12 @@ type Export struct { NewerVersionAvailable *bool `json:"newerVersionAvailable,omitempty"` } +// MarshalJSON is the custom marshaler for Export. +func (e Export) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Image image model to be sent as JSON type Image struct { // ID - READ-ONLY @@ -74,6 +86,12 @@ type Image struct { Regions *[]ImageRegion `json:"regions,omitempty"` } +// MarshalJSON is the custom marshaler for Image. +func (i Image) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageCreateResult ... type ImageCreateResult struct { // SourceURL - READ-ONLY @@ -84,6 +102,12 @@ type ImageCreateResult struct { Image *Image `json:"image,omitempty"` } +// MarshalJSON is the custom marshaler for ImageCreateResult. +func (icr ImageCreateResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageCreateSummary ... type ImageCreateSummary struct { autorest.Response `json:"-"` @@ -93,6 +117,12 @@ type ImageCreateSummary struct { Images *[]ImageCreateResult `json:"images,omitempty"` } +// MarshalJSON is the custom marshaler for ImageCreateSummary. +func (ics ImageCreateSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageFileCreateBatch ... type ImageFileCreateBatch struct { Images *[]ImageFileCreateEntry `json:"images,omitempty"` @@ -142,6 +172,12 @@ type ImagePerformance struct { Regions *[]ImageRegion `json:"regions,omitempty"` } +// MarshalJSON is the custom marshaler for ImagePerformance. +func (IP ImagePerformance) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImagePrediction ... type ImagePrediction struct { autorest.Response `json:"-"` @@ -157,6 +193,12 @@ type ImagePrediction struct { Predictions *[]Prediction `json:"predictions,omitempty"` } +// MarshalJSON is the custom marshaler for ImagePrediction. +func (IP ImagePrediction) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageRegion ... type ImageRegion struct { // RegionID - READ-ONLY @@ -265,6 +307,12 @@ type ImageRegionProposal struct { Proposals *[]RegionProposal `json:"proposals,omitempty"` } +// MarshalJSON is the custom marshaler for ImageRegionProposal. +func (irp ImageRegionProposal) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageTag ... type ImageTag struct { // TagID - READ-ONLY @@ -275,6 +323,12 @@ type ImageTag struct { Created *date.Time `json:"created,omitempty"` } +// MarshalJSON is the custom marshaler for ImageTag. +func (it ImageTag) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageTagCreateBatch ... type ImageTagCreateBatch struct { Tags *[]ImageTagCreateEntry `json:"tags,omitempty"` @@ -374,6 +428,12 @@ type IterationPerformance struct { AveragePrecision *float64 `json:"averagePrecision,omitempty"` } +// MarshalJSON is the custom marshaler for IterationPerformance. +func (IP IterationPerformance) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListDomain ... type ListDomain struct { autorest.Response `json:"-"` @@ -428,6 +488,12 @@ type Prediction struct { BoundingBox *BoundingBox `json:"boundingBox,omitempty"` } +// MarshalJSON is the custom marshaler for Prediction. +func (p Prediction) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PredictionQueryResult ... type PredictionQueryResult struct { autorest.Response `json:"-"` @@ -437,6 +503,12 @@ type PredictionQueryResult struct { Results *[]StoredImagePrediction `json:"results,omitempty"` } +// MarshalJSON is the custom marshaler for PredictionQueryResult. +func (pqr PredictionQueryResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PredictionQueryTag ... type PredictionQueryTag struct { // ID - READ-ONLY @@ -447,6 +519,12 @@ type PredictionQueryTag struct { MaxThreshold *float64 `json:"maxThreshold,omitempty"` } +// MarshalJSON is the custom marshaler for PredictionQueryTag. +func (pqt PredictionQueryTag) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PredictionQueryToken ... type PredictionQueryToken struct { Session *string `json:"session,omitempty"` @@ -520,6 +598,12 @@ type RegionProposal struct { BoundingBox *BoundingBox `json:"boundingBox,omitempty"` } +// MarshalJSON is the custom marshaler for RegionProposal. +func (rp RegionProposal) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StoredImagePrediction result of an image classification request type StoredImagePrediction struct { // ImageURI - READ-ONLY @@ -540,6 +624,12 @@ type StoredImagePrediction struct { Predictions *[]Prediction `json:"predictions,omitempty"` } +// MarshalJSON is the custom marshaler for StoredImagePrediction. +func (sip StoredImagePrediction) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Tag represents a Tag type Tag struct { autorest.Response `json:"-"` @@ -582,3 +672,9 @@ type TagPerformance struct { // AveragePrecision - READ-ONLY; Gets the average precision when applicable AveragePrecision *float64 `json:"averagePrecision,omitempty"` } + +// MarshalJSON is the custom marshaler for TagPerformance. +func (tp TagPerformance) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/cognitiveservices/v2.1/textanalytics/CHANGELOG.md b/services/cognitiveservices/v2.1/textanalytics/CHANGELOG.md index 52911e4cc5e4..411b0edd73ea 100644 --- a/services/cognitiveservices/v2.1/textanalytics/CHANGELOG.md +++ b/services/cognitiveservices/v2.1/textanalytics/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. EntitiesBatchResult.MarshalJSON() ([]byte, error) +1. KeyPhraseBatchResult.MarshalJSON() ([]byte, error) +1. LanguageBatchResult.MarshalJSON() ([]byte, error) +1. SentimentBatchResult.MarshalJSON() ([]byte, error) diff --git a/services/cognitiveservices/v2.1/textanalytics/_meta.json b/services/cognitiveservices/v2.1/textanalytics/_meta.json index 49efa66268f7..051033ba41ef 100644 --- a/services/cognitiveservices/v2.1/textanalytics/_meta.json +++ b/services/cognitiveservices/v2.1/textanalytics/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/TextAnalytics/readme.md", "tag": "release_2_1", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=release_2_1 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/TextAnalytics/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=release_2_1 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/TextAnalytics/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cognitiveservices/v2.1/textanalytics/models.go b/services/cognitiveservices/v2.1/textanalytics/models.go index c7831cca6896..9ad2fdfa3aa5 100644 --- a/services/cognitiveservices/v2.1/textanalytics/models.go +++ b/services/cognitiveservices/v2.1/textanalytics/models.go @@ -43,6 +43,12 @@ type EntitiesBatchResult struct { Statistics *RequestStatistics `json:"statistics,omitempty"` } +// MarshalJSON is the custom marshaler for EntitiesBatchResult. +func (ebr EntitiesBatchResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EntitiesBatchResultItem ... type EntitiesBatchResultItem struct { // ID - Unique, non-empty document identifier. @@ -146,6 +152,12 @@ type KeyPhraseBatchResult struct { Statistics *RequestStatistics `json:"statistics,omitempty"` } +// MarshalJSON is the custom marshaler for KeyPhraseBatchResult. +func (kpbr KeyPhraseBatchResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // KeyPhraseBatchResultItem ... type KeyPhraseBatchResultItem struct { // ID - Unique, non-empty document identifier. @@ -184,6 +196,12 @@ type LanguageBatchResult struct { Statistics *RequestStatistics `json:"statistics,omitempty"` } +// MarshalJSON is the custom marshaler for LanguageBatchResult. +func (lbr LanguageBatchResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LanguageBatchResultItem ... type LanguageBatchResultItem struct { // ID - Unique, non-empty document identifier. @@ -253,6 +271,12 @@ type SentimentBatchResult struct { Statistics *RequestStatistics `json:"statistics,omitempty"` } +// MarshalJSON is the custom marshaler for SentimentBatchResult. +func (sbr SentimentBatchResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SentimentBatchResultItem ... type SentimentBatchResultItem struct { // ID - Unique, non-empty document identifier. diff --git a/services/cognitiveservices/v2.2/customvision/training/CHANGELOG.md b/services/cognitiveservices/v2.2/customvision/training/CHANGELOG.md index 52911e4cc5e4..cc447ca8777d 100644 --- a/services/cognitiveservices/v2.2/customvision/training/CHANGELOG.md +++ b/services/cognitiveservices/v2.2/customvision/training/CHANGELOG.md @@ -1,2 +1,22 @@ # Change History +## Additive Changes + +### New Funcs + +1. Domain.MarshalJSON() ([]byte, error) +1. Export.MarshalJSON() ([]byte, error) +1. Image.MarshalJSON() ([]byte, error) +1. ImageCreateResult.MarshalJSON() ([]byte, error) +1. ImageCreateSummary.MarshalJSON() ([]byte, error) +1. ImagePerformance.MarshalJSON() ([]byte, error) +1. ImagePrediction.MarshalJSON() ([]byte, error) +1. ImageRegionProposal.MarshalJSON() ([]byte, error) +1. ImageTag.MarshalJSON() ([]byte, error) +1. IterationPerformance.MarshalJSON() ([]byte, error) +1. Prediction.MarshalJSON() ([]byte, error) +1. PredictionQueryResult.MarshalJSON() ([]byte, error) +1. PredictionQueryTag.MarshalJSON() ([]byte, error) +1. RegionProposal.MarshalJSON() ([]byte, error) +1. StoredImagePrediction.MarshalJSON() ([]byte, error) +1. TagPerformance.MarshalJSON() ([]byte, error) diff --git a/services/cognitiveservices/v2.2/customvision/training/_meta.json b/services/cognitiveservices/v2.2/customvision/training/_meta.json index 70671691d9a7..6622ff7a845b 100644 --- a/services/cognitiveservices/v2.2/customvision/training/_meta.json +++ b/services/cognitiveservices/v2.2/customvision/training/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/CustomVision/Training/readme.md", "tag": "release_2_2", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=release_2_2 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/CustomVision/Training/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=release_2_2 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/CustomVision/Training/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cognitiveservices/v2.2/customvision/training/models.go b/services/cognitiveservices/v2.2/customvision/training/models.go index d7ffe340ecd1..dfe5749d25e9 100644 --- a/services/cognitiveservices/v2.2/customvision/training/models.go +++ b/services/cognitiveservices/v2.2/customvision/training/models.go @@ -39,6 +39,12 @@ type Domain struct { Enabled *bool `json:"enabled,omitempty"` } +// MarshalJSON is the custom marshaler for Domain. +func (d Domain) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Export ... type Export struct { autorest.Response `json:"-"` @@ -54,6 +60,12 @@ type Export struct { NewerVersionAvailable *bool `json:"newerVersionAvailable,omitempty"` } +// MarshalJSON is the custom marshaler for Export. +func (e Export) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Image image model to be sent as JSON. type Image struct { // ID - READ-ONLY; Id of the image. @@ -76,6 +88,12 @@ type Image struct { Regions *[]ImageRegion `json:"regions,omitempty"` } +// MarshalJSON is the custom marshaler for Image. +func (i Image) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageCreateResult ... type ImageCreateResult struct { // SourceURL - READ-ONLY; Source URL of the image. @@ -86,6 +104,12 @@ type ImageCreateResult struct { Image *Image `json:"image,omitempty"` } +// MarshalJSON is the custom marshaler for ImageCreateResult. +func (icr ImageCreateResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageCreateSummary ... type ImageCreateSummary struct { autorest.Response `json:"-"` @@ -95,6 +119,12 @@ type ImageCreateSummary struct { Images *[]ImageCreateResult `json:"images,omitempty"` } +// MarshalJSON is the custom marshaler for ImageCreateSummary. +func (ics ImageCreateSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageFileCreateBatch ... type ImageFileCreateBatch struct { Images *[]ImageFileCreateEntry `json:"images,omitempty"` @@ -144,6 +174,12 @@ type ImagePerformance struct { Regions *[]ImageRegion `json:"regions,omitempty"` } +// MarshalJSON is the custom marshaler for ImagePerformance. +func (IP ImagePerformance) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImagePrediction ... type ImagePrediction struct { autorest.Response `json:"-"` @@ -159,6 +195,12 @@ type ImagePrediction struct { Predictions *[]Prediction `json:"predictions,omitempty"` } +// MarshalJSON is the custom marshaler for ImagePrediction. +func (IP ImagePrediction) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageRegion ... type ImageRegion struct { // RegionID - READ-ONLY @@ -271,6 +313,12 @@ type ImageRegionProposal struct { Proposals *[]RegionProposal `json:"proposals,omitempty"` } +// MarshalJSON is the custom marshaler for ImageRegionProposal. +func (irp ImageRegionProposal) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageTag ... type ImageTag struct { // TagID - READ-ONLY @@ -281,6 +329,12 @@ type ImageTag struct { Created *date.Time `json:"created,omitempty"` } +// MarshalJSON is the custom marshaler for ImageTag. +func (it ImageTag) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageTagCreateBatch batch of image tags. type ImageTagCreateBatch struct { // Tags - Image Tag entries to include in this batch. @@ -383,6 +437,12 @@ type IterationPerformance struct { AveragePrecision *float64 `json:"averagePrecision,omitempty"` } +// MarshalJSON is the custom marshaler for IterationPerformance. +func (IP IterationPerformance) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListDomain ... type ListDomain struct { autorest.Response `json:"-"` @@ -437,6 +497,12 @@ type Prediction struct { BoundingBox *BoundingBox `json:"boundingBox,omitempty"` } +// MarshalJSON is the custom marshaler for Prediction. +func (p Prediction) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PredictionQueryResult ... type PredictionQueryResult struct { autorest.Response `json:"-"` @@ -446,6 +512,12 @@ type PredictionQueryResult struct { Results *[]StoredImagePrediction `json:"results,omitempty"` } +// MarshalJSON is the custom marshaler for PredictionQueryResult. +func (pqr PredictionQueryResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PredictionQueryTag ... type PredictionQueryTag struct { // ID - READ-ONLY @@ -456,6 +528,12 @@ type PredictionQueryTag struct { MaxThreshold *float64 `json:"maxThreshold,omitempty"` } +// MarshalJSON is the custom marshaler for PredictionQueryTag. +func (pqt PredictionQueryTag) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PredictionQueryToken ... type PredictionQueryToken struct { Session *string `json:"session,omitempty"` @@ -530,6 +608,12 @@ type RegionProposal struct { BoundingBox *BoundingBox `json:"boundingBox,omitempty"` } +// MarshalJSON is the custom marshaler for RegionProposal. +func (rp RegionProposal) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StoredImagePrediction result of an image classification request. type StoredImagePrediction struct { // ResizedImageURI - READ-ONLY; The URI to the (resized) prediction image. @@ -552,6 +636,12 @@ type StoredImagePrediction struct { Predictions *[]Prediction `json:"predictions,omitempty"` } +// MarshalJSON is the custom marshaler for StoredImagePrediction. +func (sip StoredImagePrediction) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Tag represents a Tag. type Tag struct { autorest.Response `json:"-"` @@ -599,3 +689,9 @@ type TagPerformance struct { // AveragePrecision - READ-ONLY; Gets the average precision when applicable. AveragePrecision *float64 `json:"averagePrecision,omitempty"` } + +// MarshalJSON is the custom marshaler for TagPerformance. +func (tp TagPerformance) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/cognitiveservices/v3.0/computervision/CHANGELOG.md b/services/cognitiveservices/v3.0/computervision/CHANGELOG.md index 52911e4cc5e4..413f96321707 100644 --- a/services/cognitiveservices/v3.0/computervision/CHANGELOG.md +++ b/services/cognitiveservices/v3.0/computervision/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. DetectedBrand.MarshalJSON() ([]byte, error) +1. ListModelsResult.MarshalJSON() ([]byte, error) diff --git a/services/cognitiveservices/v3.0/computervision/_meta.json b/services/cognitiveservices/v3.0/computervision/_meta.json index f5b8cee28ec5..eef3d1998bdb 100644 --- a/services/cognitiveservices/v3.0/computervision/_meta.json +++ b/services/cognitiveservices/v3.0/computervision/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/ComputerVision/readme.md", "tag": "release_3_0", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=release_3_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/ComputerVision/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=release_3_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/ComputerVision/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cognitiveservices/v3.0/computervision/models.go b/services/cognitiveservices/v3.0/computervision/models.go index 9b482af65694..8ff5246cd9ca 100644 --- a/services/cognitiveservices/v3.0/computervision/models.go +++ b/services/cognitiveservices/v3.0/computervision/models.go @@ -134,6 +134,12 @@ type DetectedBrand struct { Rectangle *BoundingRect `json:"rectangle,omitempty"` } +// MarshalJSON is the custom marshaler for DetectedBrand. +func (db DetectedBrand) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DetectedObject an object detected in an image. type DetectedObject struct { // Rectangle - READ-ONLY; Approximate location of the detected object. @@ -407,6 +413,12 @@ type ListModelsResult struct { ModelsProperty *[]ModelDescription `json:"models,omitempty"` } +// MarshalJSON is the custom marshaler for ListModelsResult. +func (lmr ListModelsResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ModelDescription an object describing supported model by name and categories. type ModelDescription struct { // Name - The name of the model. diff --git a/services/cognitiveservices/v3.0/customvision/prediction/CHANGELOG.md b/services/cognitiveservices/v3.0/customvision/prediction/CHANGELOG.md index 52911e4cc5e4..7af23d37b38f 100644 --- a/services/cognitiveservices/v3.0/customvision/prediction/CHANGELOG.md +++ b/services/cognitiveservices/v3.0/customvision/prediction/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. ImagePrediction.MarshalJSON() ([]byte, error) +1. Model.MarshalJSON() ([]byte, error) diff --git a/services/cognitiveservices/v3.0/customvision/prediction/_meta.json b/services/cognitiveservices/v3.0/customvision/prediction/_meta.json index fa50b41471cd..c2f452c3691a 100644 --- a/services/cognitiveservices/v3.0/customvision/prediction/_meta.json +++ b/services/cognitiveservices/v3.0/customvision/prediction/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/CustomVision/Prediction/readme.md", "tag": "release_3_0", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=release_3_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/CustomVision/Prediction/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=release_3_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/CustomVision/Prediction/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cognitiveservices/v3.0/customvision/prediction/models.go b/services/cognitiveservices/v3.0/customvision/prediction/models.go index b2e5aee40d91..b4c89fd12940 100644 --- a/services/cognitiveservices/v3.0/customvision/prediction/models.go +++ b/services/cognitiveservices/v3.0/customvision/prediction/models.go @@ -7,6 +7,7 @@ package prediction // Changes may cause incorrect behavior and will be lost if the code is regenerated. import ( + "encoding/json" "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/date" "github.com/gofrs/uuid" @@ -50,6 +51,12 @@ type ImagePrediction struct { Predictions *[]Model `json:"predictions,omitempty"` } +// MarshalJSON is the custom marshaler for ImagePrediction. +func (IP ImagePrediction) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageURL image url. type ImageURL struct { // URL - Url of the image. @@ -67,3 +74,9 @@ type Model struct { // BoundingBox - READ-ONLY; Bounding box of the prediction. BoundingBox *BoundingBox `json:"boundingBox,omitempty"` } + +// MarshalJSON is the custom marshaler for Model. +func (mVar Model) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/cognitiveservices/v3.0/customvision/training/CHANGELOG.md b/services/cognitiveservices/v3.0/customvision/training/CHANGELOG.md index 52911e4cc5e4..cc447ca8777d 100644 --- a/services/cognitiveservices/v3.0/customvision/training/CHANGELOG.md +++ b/services/cognitiveservices/v3.0/customvision/training/CHANGELOG.md @@ -1,2 +1,22 @@ # Change History +## Additive Changes + +### New Funcs + +1. Domain.MarshalJSON() ([]byte, error) +1. Export.MarshalJSON() ([]byte, error) +1. Image.MarshalJSON() ([]byte, error) +1. ImageCreateResult.MarshalJSON() ([]byte, error) +1. ImageCreateSummary.MarshalJSON() ([]byte, error) +1. ImagePerformance.MarshalJSON() ([]byte, error) +1. ImagePrediction.MarshalJSON() ([]byte, error) +1. ImageRegionProposal.MarshalJSON() ([]byte, error) +1. ImageTag.MarshalJSON() ([]byte, error) +1. IterationPerformance.MarshalJSON() ([]byte, error) +1. Prediction.MarshalJSON() ([]byte, error) +1. PredictionQueryResult.MarshalJSON() ([]byte, error) +1. PredictionQueryTag.MarshalJSON() ([]byte, error) +1. RegionProposal.MarshalJSON() ([]byte, error) +1. StoredImagePrediction.MarshalJSON() ([]byte, error) +1. TagPerformance.MarshalJSON() ([]byte, error) diff --git a/services/cognitiveservices/v3.0/customvision/training/_meta.json b/services/cognitiveservices/v3.0/customvision/training/_meta.json index ed02e8a70d05..ff990dfd08ae 100644 --- a/services/cognitiveservices/v3.0/customvision/training/_meta.json +++ b/services/cognitiveservices/v3.0/customvision/training/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/CustomVision/Training/readme.md", "tag": "release_3_0", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=release_3_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/CustomVision/Training/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=release_3_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/CustomVision/Training/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cognitiveservices/v3.0/customvision/training/models.go b/services/cognitiveservices/v3.0/customvision/training/models.go index debc18f7d8db..f355cf5be7f0 100644 --- a/services/cognitiveservices/v3.0/customvision/training/models.go +++ b/services/cognitiveservices/v3.0/customvision/training/models.go @@ -57,6 +57,12 @@ type Domain struct { Enabled *bool `json:"enabled,omitempty"` } +// MarshalJSON is the custom marshaler for Domain. +func (d Domain) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Export ... type Export struct { autorest.Response `json:"-"` @@ -72,6 +78,12 @@ type Export struct { NewerVersionAvailable *bool `json:"newerVersionAvailable,omitempty"` } +// MarshalJSON is the custom marshaler for Export. +func (e Export) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Image image model to be sent as JSON. type Image struct { // ID - READ-ONLY; Id of the image. @@ -94,6 +106,12 @@ type Image struct { Regions *[]ImageRegion `json:"regions,omitempty"` } +// MarshalJSON is the custom marshaler for Image. +func (i Image) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageCreateResult ... type ImageCreateResult struct { // SourceURL - READ-ONLY; Source URL of the image. @@ -104,6 +122,12 @@ type ImageCreateResult struct { Image *Image `json:"image,omitempty"` } +// MarshalJSON is the custom marshaler for ImageCreateResult. +func (icr ImageCreateResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageCreateSummary ... type ImageCreateSummary struct { autorest.Response `json:"-"` @@ -113,6 +137,12 @@ type ImageCreateSummary struct { Images *[]ImageCreateResult `json:"images,omitempty"` } +// MarshalJSON is the custom marshaler for ImageCreateSummary. +func (ics ImageCreateSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageFileCreateBatch ... type ImageFileCreateBatch struct { Images *[]ImageFileCreateEntry `json:"images,omitempty"` @@ -163,6 +193,12 @@ type ImagePerformance struct { Regions *[]ImageRegion `json:"regions,omitempty"` } +// MarshalJSON is the custom marshaler for ImagePerformance. +func (IP ImagePerformance) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImagePrediction result of an image prediction request. type ImagePrediction struct { autorest.Response `json:"-"` @@ -178,6 +214,12 @@ type ImagePrediction struct { Predictions *[]Prediction `json:"predictions,omitempty"` } +// MarshalJSON is the custom marshaler for ImagePrediction. +func (IP ImagePrediction) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageRegion ... type ImageRegion struct { // RegionID - READ-ONLY @@ -302,6 +344,12 @@ type ImageRegionProposal struct { Proposals *[]RegionProposal `json:"proposals,omitempty"` } +// MarshalJSON is the custom marshaler for ImageRegionProposal. +func (irp ImageRegionProposal) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageTag ... type ImageTag struct { // TagID - READ-ONLY @@ -312,6 +360,12 @@ type ImageTag struct { Created *date.Time `json:"created,omitempty"` } +// MarshalJSON is the custom marshaler for ImageTag. +func (it ImageTag) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageTagCreateBatch batch of image tags. type ImageTagCreateBatch struct { // Tags - Image Tag entries to include in this batch. @@ -421,6 +475,12 @@ type IterationPerformance struct { AveragePrecision *float64 `json:"averagePrecision,omitempty"` } +// MarshalJSON is the custom marshaler for IterationPerformance. +func (IP IterationPerformance) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListDomain ... type ListDomain struct { autorest.Response `json:"-"` @@ -475,6 +535,12 @@ type Prediction struct { BoundingBox *BoundingBox `json:"boundingBox,omitempty"` } +// MarshalJSON is the custom marshaler for Prediction. +func (p Prediction) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PredictionQueryResult ... type PredictionQueryResult struct { autorest.Response `json:"-"` @@ -484,6 +550,12 @@ type PredictionQueryResult struct { Results *[]StoredImagePrediction `json:"results,omitempty"` } +// MarshalJSON is the custom marshaler for PredictionQueryResult. +func (pqr PredictionQueryResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PredictionQueryTag ... type PredictionQueryTag struct { // ID - READ-ONLY @@ -494,6 +566,12 @@ type PredictionQueryTag struct { MaxThreshold *float64 `json:"maxThreshold,omitempty"` } +// MarshalJSON is the custom marshaler for PredictionQueryTag. +func (pqt PredictionQueryTag) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PredictionQueryToken ... type PredictionQueryToken struct { Session *string `json:"session,omitempty"` @@ -576,6 +654,12 @@ type RegionProposal struct { BoundingBox *BoundingBox `json:"boundingBox,omitempty"` } +// MarshalJSON is the custom marshaler for RegionProposal. +func (rp RegionProposal) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StoredImagePrediction result of an image classification request. type StoredImagePrediction struct { // ResizedImageURI - READ-ONLY; The URI to the (resized) prediction image. @@ -598,6 +682,12 @@ type StoredImagePrediction struct { Predictions *[]Prediction `json:"predictions,omitempty"` } +// MarshalJSON is the custom marshaler for StoredImagePrediction. +func (sip StoredImagePrediction) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Tag represents a Tag. type Tag struct { autorest.Response `json:"-"` @@ -645,3 +735,9 @@ type TagPerformance struct { // AveragePrecision - READ-ONLY; Gets the average precision when applicable. AveragePrecision *float64 `json:"averagePrecision,omitempty"` } + +// MarshalJSON is the custom marshaler for TagPerformance. +func (tp TagPerformance) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/cognitiveservices/v3.0/luis/runtime/_meta.json b/services/cognitiveservices/v3.0/luis/runtime/_meta.json index 3190c3e66700..2973b3610bbf 100644 --- a/services/cognitiveservices/v3.0/luis/runtime/_meta.json +++ b/services/cognitiveservices/v3.0/luis/runtime/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/LUIS/Runtime/readme.md", "tag": "runtime_3_0", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=runtime_3_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/LUIS/Runtime/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=runtime_3_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/LUIS/Runtime/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cognitiveservices/v3.0/translatortext/_meta.json b/services/cognitiveservices/v3.0/translatortext/_meta.json index 5793dd90481c..efef9fb76af5 100644 --- a/services/cognitiveservices/v3.0/translatortext/_meta.json +++ b/services/cognitiveservices/v3.0/translatortext/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/TranslatorText/readme.md", "tag": "release_3_0", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=release_3_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/TranslatorText/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=release_3_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/TranslatorText/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cognitiveservices/v3.1/computervision/CHANGELOG.md b/services/cognitiveservices/v3.1/computervision/CHANGELOG.md index 52911e4cc5e4..413f96321707 100644 --- a/services/cognitiveservices/v3.1/computervision/CHANGELOG.md +++ b/services/cognitiveservices/v3.1/computervision/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. DetectedBrand.MarshalJSON() ([]byte, error) +1. ListModelsResult.MarshalJSON() ([]byte, error) diff --git a/services/cognitiveservices/v3.1/computervision/_meta.json b/services/cognitiveservices/v3.1/computervision/_meta.json index c0d3a35e5580..04d01caa7e61 100644 --- a/services/cognitiveservices/v3.1/computervision/_meta.json +++ b/services/cognitiveservices/v3.1/computervision/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/ComputerVision/readme.md", "tag": "release_3_1", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=release_3_1 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/ComputerVision/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=release_3_1 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/ComputerVision/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cognitiveservices/v3.1/computervision/models.go b/services/cognitiveservices/v3.1/computervision/models.go index 4a393a31d366..14bc3a1eee33 100644 --- a/services/cognitiveservices/v3.1/computervision/models.go +++ b/services/cognitiveservices/v3.1/computervision/models.go @@ -134,6 +134,12 @@ type DetectedBrand struct { Rectangle *BoundingRect `json:"rectangle,omitempty"` } +// MarshalJSON is the custom marshaler for DetectedBrand. +func (db DetectedBrand) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DetectedObject an object detected in an image. type DetectedObject struct { // Rectangle - READ-ONLY; Approximate location of the detected object. @@ -407,6 +413,12 @@ type ListModelsResult struct { ModelsProperty *[]ModelDescription `json:"models,omitempty"` } +// MarshalJSON is the custom marshaler for ListModelsResult. +func (lmr ListModelsResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ModelDescription an object describing supported model by name and categories. type ModelDescription struct { // Name - The name of the model. diff --git a/services/cognitiveservices/v3.1/customvision/prediction/CHANGELOG.md b/services/cognitiveservices/v3.1/customvision/prediction/CHANGELOG.md index 52911e4cc5e4..7af23d37b38f 100644 --- a/services/cognitiveservices/v3.1/customvision/prediction/CHANGELOG.md +++ b/services/cognitiveservices/v3.1/customvision/prediction/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. ImagePrediction.MarshalJSON() ([]byte, error) +1. Model.MarshalJSON() ([]byte, error) diff --git a/services/cognitiveservices/v3.1/customvision/prediction/_meta.json b/services/cognitiveservices/v3.1/customvision/prediction/_meta.json index 5303e9ec9d9b..bfcb68cbfad7 100644 --- a/services/cognitiveservices/v3.1/customvision/prediction/_meta.json +++ b/services/cognitiveservices/v3.1/customvision/prediction/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/CustomVision/Prediction/readme.md", "tag": "release_3_1", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=release_3_1 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/CustomVision/Prediction/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=release_3_1 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/CustomVision/Prediction/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cognitiveservices/v3.1/customvision/prediction/models.go b/services/cognitiveservices/v3.1/customvision/prediction/models.go index c7cb5307e691..0699df9ab9e9 100644 --- a/services/cognitiveservices/v3.1/customvision/prediction/models.go +++ b/services/cognitiveservices/v3.1/customvision/prediction/models.go @@ -7,6 +7,7 @@ package prediction // Changes may cause incorrect behavior and will be lost if the code is regenerated. import ( + "encoding/json" "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/date" "github.com/gofrs/uuid" @@ -50,6 +51,12 @@ type ImagePrediction struct { Predictions *[]Model `json:"predictions,omitempty"` } +// MarshalJSON is the custom marshaler for ImagePrediction. +func (IP ImagePrediction) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageURL image url. type ImageURL struct { // URL - Url of the image. @@ -69,3 +76,9 @@ type Model struct { // TagType - READ-ONLY; Type of the predicted tag. Possible values include: 'Regular', 'Negative', 'GeneralProduct' TagType TagType `json:"tagType,omitempty"` } + +// MarshalJSON is the custom marshaler for Model. +func (mVar Model) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/cognitiveservices/v3.1/customvision/training/CHANGELOG.md b/services/cognitiveservices/v3.1/customvision/training/CHANGELOG.md index 52911e4cc5e4..6fa2f16fe405 100644 --- a/services/cognitiveservices/v3.1/customvision/training/CHANGELOG.md +++ b/services/cognitiveservices/v3.1/customvision/training/CHANGELOG.md @@ -1,2 +1,22 @@ # Change History +## Additive Changes + +### New Funcs + +1. Domain.MarshalJSON() ([]byte, error) +1. Export.MarshalJSON() ([]byte, error) +1. Image.MarshalJSON() ([]byte, error) +1. ImageCreateResult.MarshalJSON() ([]byte, error) +1. ImageCreateSummary.MarshalJSON() ([]byte, error) +1. ImagePerformance.MarshalJSON() ([]byte, error) +1. ImagePrediction.MarshalJSON() ([]byte, error) +1. ImageRegionProposal.MarshalJSON() ([]byte, error) +1. ImageTag.MarshalJSON() ([]byte, error) +1. IterationPerformance.MarshalJSON() ([]byte, error) +1. Prediction.MarshalJSON() ([]byte, error) +1. RegionProposal.MarshalJSON() ([]byte, error) +1. StoredImagePrediction.MarshalJSON() ([]byte, error) +1. StoredSuggestedTagAndRegion.MarshalJSON() ([]byte, error) +1. SuggestedTagAndRegion.MarshalJSON() ([]byte, error) +1. TagPerformance.MarshalJSON() ([]byte, error) diff --git a/services/cognitiveservices/v3.1/customvision/training/_meta.json b/services/cognitiveservices/v3.1/customvision/training/_meta.json index 31faf50ac86a..6ff0fe63bfc7 100644 --- a/services/cognitiveservices/v3.1/customvision/training/_meta.json +++ b/services/cognitiveservices/v3.1/customvision/training/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/CustomVision/Training/readme.md", "tag": "release_3_1", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=release_3_1 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/CustomVision/Training/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=release_3_1 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/CustomVision/Training/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cognitiveservices/v3.1/customvision/training/models.go b/services/cognitiveservices/v3.1/customvision/training/models.go index eced20e25daf..48e410ef5e4c 100644 --- a/services/cognitiveservices/v3.1/customvision/training/models.go +++ b/services/cognitiveservices/v3.1/customvision/training/models.go @@ -57,6 +57,12 @@ type Domain struct { Enabled *bool `json:"enabled,omitempty"` } +// MarshalJSON is the custom marshaler for Domain. +func (d Domain) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Export ... type Export struct { autorest.Response `json:"-"` @@ -72,6 +78,12 @@ type Export struct { NewerVersionAvailable *bool `json:"newerVersionAvailable,omitempty"` } +// MarshalJSON is the custom marshaler for Export. +func (e Export) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Image image model to be sent as JSON. type Image struct { // ID - READ-ONLY; Id of the image. @@ -94,6 +106,12 @@ type Image struct { Regions *[]ImageRegion `json:"regions,omitempty"` } +// MarshalJSON is the custom marshaler for Image. +func (i Image) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageCreateResult ... type ImageCreateResult struct { // SourceURL - READ-ONLY; Source URL of the image. @@ -104,6 +122,12 @@ type ImageCreateResult struct { Image *Image `json:"image,omitempty"` } +// MarshalJSON is the custom marshaler for ImageCreateResult. +func (icr ImageCreateResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageCreateSummary ... type ImageCreateSummary struct { autorest.Response `json:"-"` @@ -113,6 +137,12 @@ type ImageCreateSummary struct { Images *[]ImageCreateResult `json:"images,omitempty"` } +// MarshalJSON is the custom marshaler for ImageCreateSummary. +func (ics ImageCreateSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageFileCreateBatch ... type ImageFileCreateBatch struct { Images *[]ImageFileCreateEntry `json:"images,omitempty"` @@ -163,6 +193,12 @@ type ImagePerformance struct { Regions *[]ImageRegion `json:"regions,omitempty"` } +// MarshalJSON is the custom marshaler for ImagePerformance. +func (IP ImagePerformance) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImagePrediction result of an image prediction request. type ImagePrediction struct { autorest.Response `json:"-"` @@ -178,6 +214,12 @@ type ImagePrediction struct { Predictions *[]Prediction `json:"predictions,omitempty"` } +// MarshalJSON is the custom marshaler for ImagePrediction. +func (IP ImagePrediction) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageProcessingSettings represents image preprocessing settings used by image augmentation. type ImageProcessingSettings struct { // AugmentationMethods - Gets or sets enabled image transforms. The key corresponds to the transform name. If value is set to true, then correspondent transform is enabled. Otherwise this transform will not be used. @@ -318,6 +360,12 @@ type ImageRegionProposal struct { Proposals *[]RegionProposal `json:"proposals,omitempty"` } +// MarshalJSON is the custom marshaler for ImageRegionProposal. +func (irp ImageRegionProposal) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageTag ... type ImageTag struct { // TagID - READ-ONLY @@ -328,6 +376,12 @@ type ImageTag struct { Created *date.Time `json:"created,omitempty"` } +// MarshalJSON is the custom marshaler for ImageTag. +func (it ImageTag) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageTagCreateBatch batch of image tags. type ImageTagCreateBatch struct { // Tags - Image Tag entries to include in this batch. @@ -439,6 +493,12 @@ type IterationPerformance struct { AveragePrecision *float64 `json:"averagePrecision,omitempty"` } +// MarshalJSON is the custom marshaler for IterationPerformance. +func (IP IterationPerformance) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListDomain ... type ListDomain struct { autorest.Response `json:"-"` @@ -499,6 +559,12 @@ type Prediction struct { BoundingBox *BoundingBox `json:"boundingBox,omitempty"` } +// MarshalJSON is the custom marshaler for Prediction. +func (p Prediction) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PredictionQueryResult query result of the prediction images that were sent to your prediction endpoint. type PredictionQueryResult struct { autorest.Response `json:"-"` @@ -630,6 +696,12 @@ type RegionProposal struct { BoundingBox *BoundingBox `json:"boundingBox,omitempty"` } +// MarshalJSON is the custom marshaler for RegionProposal. +func (rp RegionProposal) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SetInt32 ... type SetInt32 struct { autorest.Response `json:"-"` @@ -667,6 +739,12 @@ type StoredImagePrediction struct { Predictions *[]Prediction `json:"predictions,omitempty"` } +// MarshalJSON is the custom marshaler for StoredImagePrediction. +func (sip StoredImagePrediction) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StoredSuggestedTagAndRegion result of a suggested tags and regions request of the untagged image. type StoredSuggestedTagAndRegion struct { // Width - READ-ONLY; Width of the resized image. @@ -695,6 +773,12 @@ type StoredSuggestedTagAndRegion struct { PredictionUncertainty *float64 `json:"predictionUncertainty,omitempty"` } +// MarshalJSON is the custom marshaler for StoredSuggestedTagAndRegion. +func (sstar StoredSuggestedTagAndRegion) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SuggestedTagAndRegion result of a suggested tags and regions request. type SuggestedTagAndRegion struct { // ID - READ-ONLY; Prediction Id. @@ -711,6 +795,12 @@ type SuggestedTagAndRegion struct { PredictionUncertainty *float64 `json:"predictionUncertainty,omitempty"` } +// MarshalJSON is the custom marshaler for SuggestedTagAndRegion. +func (star SuggestedTagAndRegion) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SuggestedTagAndRegionQuery the array of result images and token containing session and continuation Ids // for the next query. type SuggestedTagAndRegionQuery struct { @@ -805,3 +895,9 @@ type TagPerformance struct { // AveragePrecision - READ-ONLY; Gets the average precision when applicable. AveragePrecision *float64 `json:"averagePrecision,omitempty"` } + +// MarshalJSON is the custom marshaler for TagPerformance. +func (tp TagPerformance) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/cognitiveservices/v3.2/customvision/training/CHANGELOG.md b/services/cognitiveservices/v3.2/customvision/training/CHANGELOG.md index 52911e4cc5e4..128dc65701cb 100644 --- a/services/cognitiveservices/v3.2/customvision/training/CHANGELOG.md +++ b/services/cognitiveservices/v3.2/customvision/training/CHANGELOG.md @@ -1,2 +1,23 @@ # Change History +## Additive Changes + +### New Funcs + +1. Domain.MarshalJSON() ([]byte, error) +1. Export.MarshalJSON() ([]byte, error) +1. Image.MarshalJSON() ([]byte, error) +1. ImageCreateResult.MarshalJSON() ([]byte, error) +1. ImageCreateSummary.MarshalJSON() ([]byte, error) +1. ImagePerformance.MarshalJSON() ([]byte, error) +1. ImagePrediction.MarshalJSON() ([]byte, error) +1. ImageRegionProposal.MarshalJSON() ([]byte, error) +1. ImageTag.MarshalJSON() ([]byte, error) +1. IterationPerformance.MarshalJSON() ([]byte, error) +1. Prediction.MarshalJSON() ([]byte, error) +1. ProjectExport.MarshalJSON() ([]byte, error) +1. RegionProposal.MarshalJSON() ([]byte, error) +1. StoredImagePrediction.MarshalJSON() ([]byte, error) +1. StoredSuggestedTagAndRegion.MarshalJSON() ([]byte, error) +1. SuggestedTagAndRegion.MarshalJSON() ([]byte, error) +1. TagPerformance.MarshalJSON() ([]byte, error) diff --git a/services/cognitiveservices/v3.2/customvision/training/_meta.json b/services/cognitiveservices/v3.2/customvision/training/_meta.json index 385d4a49ceb7..bed4aca60d76 100644 --- a/services/cognitiveservices/v3.2/customvision/training/_meta.json +++ b/services/cognitiveservices/v3.2/customvision/training/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/CustomVision/Training/readme.md", "tag": "release_3_2", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=release_3_2 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/CustomVision/Training/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=release_3_2 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/CustomVision/Training/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cognitiveservices/v3.2/customvision/training/models.go b/services/cognitiveservices/v3.2/customvision/training/models.go index ceecc8804930..01c52e373d9a 100644 --- a/services/cognitiveservices/v3.2/customvision/training/models.go +++ b/services/cognitiveservices/v3.2/customvision/training/models.go @@ -57,6 +57,12 @@ type Domain struct { Enabled *bool `json:"enabled,omitempty"` } +// MarshalJSON is the custom marshaler for Domain. +func (d Domain) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Export ... type Export struct { autorest.Response `json:"-"` @@ -75,6 +81,12 @@ type Export struct { NewerVersionAvailable *bool `json:"newerVersionAvailable,omitempty"` } +// MarshalJSON is the custom marshaler for Export. +func (e Export) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Image image model to be sent as JSON. type Image struct { // ID - READ-ONLY; Id of the image. @@ -97,6 +109,12 @@ type Image struct { Regions *[]ImageRegion `json:"regions,omitempty"` } +// MarshalJSON is the custom marshaler for Image. +func (i Image) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageCreateResult ... type ImageCreateResult struct { // SourceURL - READ-ONLY; Source URL of the image. @@ -107,6 +125,12 @@ type ImageCreateResult struct { Image *Image `json:"image,omitempty"` } +// MarshalJSON is the custom marshaler for ImageCreateResult. +func (icr ImageCreateResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageCreateSummary ... type ImageCreateSummary struct { autorest.Response `json:"-"` @@ -116,6 +140,12 @@ type ImageCreateSummary struct { Images *[]ImageCreateResult `json:"images,omitempty"` } +// MarshalJSON is the custom marshaler for ImageCreateSummary. +func (ics ImageCreateSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageFileCreateBatch ... type ImageFileCreateBatch struct { Images *[]ImageFileCreateEntry `json:"images,omitempty"` @@ -166,6 +196,12 @@ type ImagePerformance struct { Regions *[]ImageRegion `json:"regions,omitempty"` } +// MarshalJSON is the custom marshaler for ImagePerformance. +func (IP ImagePerformance) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImagePrediction result of an image prediction request. type ImagePrediction struct { autorest.Response `json:"-"` @@ -181,6 +217,12 @@ type ImagePrediction struct { Predictions *[]Prediction `json:"predictions,omitempty"` } +// MarshalJSON is the custom marshaler for ImagePrediction. +func (IP ImagePrediction) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageProcessingSettings represents image preprocessing settings used by image augmentation. type ImageProcessingSettings struct { // AugmentationMethods - Gets or sets enabled image transforms. The key corresponds to the transform name. If value is set to true, then correspondent transform is enabled. Otherwise this transform will not be used. @@ -321,6 +363,12 @@ type ImageRegionProposal struct { Proposals *[]RegionProposal `json:"proposals,omitempty"` } +// MarshalJSON is the custom marshaler for ImageRegionProposal. +func (irp ImageRegionProposal) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageTag ... type ImageTag struct { // TagID - READ-ONLY @@ -331,6 +379,12 @@ type ImageTag struct { Created *date.Time `json:"created,omitempty"` } +// MarshalJSON is the custom marshaler for ImageTag. +func (it ImageTag) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageTagCreateBatch batch of image tags. type ImageTagCreateBatch struct { // Tags - Image Tag entries to include in this batch. @@ -442,6 +496,12 @@ type IterationPerformance struct { AveragePrecision *float64 `json:"averagePrecision,omitempty"` } +// MarshalJSON is the custom marshaler for IterationPerformance. +func (IP IterationPerformance) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListDomain ... type ListDomain struct { autorest.Response `json:"-"` @@ -508,6 +568,12 @@ type Prediction struct { BoundingBox *BoundingBox `json:"boundingBox,omitempty"` } +// MarshalJSON is the custom marshaler for Prediction. +func (p Prediction) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PredictionQueryResult query result of the prediction images that were sent to your prediction endpoint. type PredictionQueryResult struct { autorest.Response `json:"-"` @@ -607,6 +673,12 @@ type ProjectExport struct { Token *string `json:"token,omitempty"` } +// MarshalJSON is the custom marshaler for ProjectExport. +func (peVar ProjectExport) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProjectSettings represents settings associated with a project. type ProjectSettings struct { // DomainID - Gets or sets the id of the Domain to use with this project. @@ -663,6 +735,12 @@ type RegionProposal struct { BoundingBox *BoundingBox `json:"boundingBox,omitempty"` } +// MarshalJSON is the custom marshaler for RegionProposal. +func (rp RegionProposal) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SetInt32 ... type SetInt32 struct { autorest.Response `json:"-"` @@ -700,6 +778,12 @@ type StoredImagePrediction struct { Predictions *[]Prediction `json:"predictions,omitempty"` } +// MarshalJSON is the custom marshaler for StoredImagePrediction. +func (sip StoredImagePrediction) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StoredSuggestedTagAndRegion result of a suggested tags and regions request of the untagged image. type StoredSuggestedTagAndRegion struct { // Width - READ-ONLY; Width of the resized image. @@ -728,6 +812,12 @@ type StoredSuggestedTagAndRegion struct { PredictionUncertainty *float64 `json:"predictionUncertainty,omitempty"` } +// MarshalJSON is the custom marshaler for StoredSuggestedTagAndRegion. +func (sstar StoredSuggestedTagAndRegion) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SuggestedTagAndRegion result of a suggested tags and regions request. type SuggestedTagAndRegion struct { // ID - READ-ONLY; Prediction Id. @@ -744,6 +834,12 @@ type SuggestedTagAndRegion struct { PredictionUncertainty *float64 `json:"predictionUncertainty,omitempty"` } +// MarshalJSON is the custom marshaler for SuggestedTagAndRegion. +func (star SuggestedTagAndRegion) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SuggestedTagAndRegionQuery the array of result images and token containing session and continuation Ids // for the next query. type SuggestedTagAndRegionQuery struct { @@ -838,3 +934,9 @@ type TagPerformance struct { // AveragePrecision - READ-ONLY; Gets the average precision when applicable. AveragePrecision *float64 `json:"averagePrecision,omitempty"` } + +// MarshalJSON is the custom marshaler for TagPerformance. +func (tp TagPerformance) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/cognitiveservices/v3.3/customvision/training/CHANGELOG.md b/services/cognitiveservices/v3.3/customvision/training/CHANGELOG.md index 52911e4cc5e4..aea068b5d256 100644 --- a/services/cognitiveservices/v3.3/customvision/training/CHANGELOG.md +++ b/services/cognitiveservices/v3.3/customvision/training/CHANGELOG.md @@ -1,2 +1,23 @@ # Change History +## Additive Changes + +### New Funcs + +1. Domain.MarshalJSON() ([]byte, error) +1. Export.MarshalJSON() ([]byte, error) +1. ImageCreateResult.MarshalJSON() ([]byte, error) +1. ImageCreateSummary.MarshalJSON() ([]byte, error) +1. ImageMetadataUpdateSummary.MarshalJSON() ([]byte, error) +1. ImagePerformance.MarshalJSON() ([]byte, error) +1. ImagePrediction.MarshalJSON() ([]byte, error) +1. ImageRegionProposal.MarshalJSON() ([]byte, error) +1. ImageTag.MarshalJSON() ([]byte, error) +1. IterationPerformance.MarshalJSON() ([]byte, error) +1. Prediction.MarshalJSON() ([]byte, error) +1. ProjectExport.MarshalJSON() ([]byte, error) +1. RegionProposal.MarshalJSON() ([]byte, error) +1. StoredImagePrediction.MarshalJSON() ([]byte, error) +1. StoredSuggestedTagAndRegion.MarshalJSON() ([]byte, error) +1. SuggestedTagAndRegion.MarshalJSON() ([]byte, error) +1. TagPerformance.MarshalJSON() ([]byte, error) diff --git a/services/cognitiveservices/v3.3/customvision/training/_meta.json b/services/cognitiveservices/v3.3/customvision/training/_meta.json index 006546d132ce..e2920773a13e 100644 --- a/services/cognitiveservices/v3.3/customvision/training/_meta.json +++ b/services/cognitiveservices/v3.3/customvision/training/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/CustomVision/Training/readme.md", "tag": "release_3_3", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=release_3_3 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/CustomVision/Training/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=release_3_3 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/CustomVision/Training/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cognitiveservices/v3.3/customvision/training/models.go b/services/cognitiveservices/v3.3/customvision/training/models.go index 1f7ad798e28c..da50c94e5180 100644 --- a/services/cognitiveservices/v3.3/customvision/training/models.go +++ b/services/cognitiveservices/v3.3/customvision/training/models.go @@ -58,6 +58,12 @@ type Domain struct { Enabled *bool `json:"enabled,omitempty"` } +// MarshalJSON is the custom marshaler for Domain. +func (d Domain) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Export ... type Export struct { autorest.Response `json:"-"` @@ -76,6 +82,12 @@ type Export struct { NewerVersionAvailable *bool `json:"newerVersionAvailable,omitempty"` } +// MarshalJSON is the custom marshaler for Export. +func (e Export) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Image image model to be sent as JSON. type Image struct { // ID - READ-ONLY; Id of the image. @@ -116,6 +128,12 @@ type ImageCreateResult struct { Image *Image `json:"image,omitempty"` } +// MarshalJSON is the custom marshaler for ImageCreateResult. +func (icr ImageCreateResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageCreateSummary ... type ImageCreateSummary struct { autorest.Response `json:"-"` @@ -125,6 +143,12 @@ type ImageCreateSummary struct { Images *[]ImageCreateResult `json:"images,omitempty"` } +// MarshalJSON is the custom marshaler for ImageCreateSummary. +func (ics ImageCreateSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageFileCreateBatch ... type ImageFileCreateBatch struct { Images *[]ImageFileCreateEntry `json:"images,omitempty"` @@ -221,6 +245,12 @@ type ImageMetadataUpdateSummary struct { Images *[]ImageMetadataUpdateEntry `json:"images,omitempty"` } +// MarshalJSON is the custom marshaler for ImageMetadataUpdateSummary. +func (imus ImageMetadataUpdateSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImagePerformance image performance model. type ImagePerformance struct { // Predictions - READ-ONLY @@ -243,6 +273,12 @@ type ImagePerformance struct { Regions *[]ImageRegion `json:"regions,omitempty"` } +// MarshalJSON is the custom marshaler for ImagePerformance. +func (IP ImagePerformance) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImagePrediction result of an image prediction request. type ImagePrediction struct { autorest.Response `json:"-"` @@ -258,6 +294,12 @@ type ImagePrediction struct { Predictions *[]Prediction `json:"predictions,omitempty"` } +// MarshalJSON is the custom marshaler for ImagePrediction. +func (IP ImagePrediction) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageProcessingSettings represents image preprocessing settings used by image augmentation. type ImageProcessingSettings struct { // AugmentationMethods - Gets or sets enabled image transforms. The key corresponds to the transform name. If value is set to true, then correspondent transform is enabled. Otherwise this transform will not be used. @@ -398,6 +440,12 @@ type ImageRegionProposal struct { Proposals *[]RegionProposal `json:"proposals,omitempty"` } +// MarshalJSON is the custom marshaler for ImageRegionProposal. +func (irp ImageRegionProposal) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageTag ... type ImageTag struct { // TagID - READ-ONLY @@ -408,6 +456,12 @@ type ImageTag struct { Created *date.Time `json:"created,omitempty"` } +// MarshalJSON is the custom marshaler for ImageTag. +func (it ImageTag) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageTagCreateBatch batch of image tags. type ImageTagCreateBatch struct { // Tags - Image Tag entries to include in this batch. @@ -536,6 +590,12 @@ type IterationPerformance struct { AveragePrecision *float64 `json:"averagePrecision,omitempty"` } +// MarshalJSON is the custom marshaler for IterationPerformance. +func (IP IterationPerformance) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListDomain ... type ListDomain struct { autorest.Response `json:"-"` @@ -604,6 +664,12 @@ type Prediction struct { TagType TagType `json:"tagType,omitempty"` } +// MarshalJSON is the custom marshaler for Prediction. +func (p Prediction) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PredictionQueryResult query result of the prediction images that were sent to your prediction endpoint. type PredictionQueryResult struct { autorest.Response `json:"-"` @@ -703,6 +769,12 @@ type ProjectExport struct { Token *string `json:"token,omitempty"` } +// MarshalJSON is the custom marshaler for ProjectExport. +func (peVar ProjectExport) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProjectSettings represents settings associated with a project. type ProjectSettings struct { // DomainID - Gets or sets the id of the Domain to use with this project. @@ -765,6 +837,12 @@ type RegionProposal struct { BoundingBox *BoundingBox `json:"boundingBox,omitempty"` } +// MarshalJSON is the custom marshaler for RegionProposal. +func (rp RegionProposal) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SetInt32 ... type SetInt32 struct { autorest.Response `json:"-"` @@ -802,6 +880,12 @@ type StoredImagePrediction struct { Predictions *[]Prediction `json:"predictions,omitempty"` } +// MarshalJSON is the custom marshaler for StoredImagePrediction. +func (sip StoredImagePrediction) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StoredSuggestedTagAndRegion result of a suggested tags and regions request of the untagged image. type StoredSuggestedTagAndRegion struct { // Width - READ-ONLY; Width of the resized image. @@ -830,6 +914,12 @@ type StoredSuggestedTagAndRegion struct { PredictionUncertainty *float64 `json:"predictionUncertainty,omitempty"` } +// MarshalJSON is the custom marshaler for StoredSuggestedTagAndRegion. +func (sstar StoredSuggestedTagAndRegion) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SuggestedTagAndRegion result of a suggested tags and regions request. type SuggestedTagAndRegion struct { // ID - READ-ONLY; Prediction Id. @@ -846,6 +936,12 @@ type SuggestedTagAndRegion struct { PredictionUncertainty *float64 `json:"predictionUncertainty,omitempty"` } +// MarshalJSON is the custom marshaler for SuggestedTagAndRegion. +func (star SuggestedTagAndRegion) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SuggestedTagAndRegionQuery the array of result images and token containing session and continuation Ids // for the next query. type SuggestedTagAndRegionQuery struct { @@ -940,3 +1036,9 @@ type TagPerformance struct { // AveragePrecision - READ-ONLY; Gets the average precision when applicable. AveragePrecision *float64 `json:"averagePrecision,omitempty"` } + +// MarshalJSON is the custom marshaler for TagPerformance. +func (tp TagPerformance) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/cognitiveservices/v4.0/qnamaker/_meta.json b/services/cognitiveservices/v4.0/qnamaker/_meta.json index aeeeb5810d2e..17862ee7951b 100644 --- a/services/cognitiveservices/v4.0/qnamaker/_meta.json +++ b/services/cognitiveservices/v4.0/qnamaker/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/QnAMaker/readme.md", "tag": "release_4_0", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=release_4_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/QnAMaker/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=release_4_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/QnAMaker/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cognitiveservices/v4.0/qnamakerruntime/_meta.json b/services/cognitiveservices/v4.0/qnamakerruntime/_meta.json index dd4b1732dbbe..06ab9a80f3cf 100644 --- a/services/cognitiveservices/v4.0/qnamakerruntime/_meta.json +++ b/services/cognitiveservices/v4.0/qnamakerruntime/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/QnAMaker/readme.md", "tag": "runtime_release_4_0", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=runtime_release_4_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/QnAMaker/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=runtime_release_4_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/QnAMaker/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/communication/mgmt/2020-08-20/communication/CHANGELOG.md b/services/communication/mgmt/2020-08-20/communication/CHANGELOG.md index 52911e4cc5e4..653c01e6622e 100644 --- a/services/communication/mgmt/2020-08-20/communication/CHANGELOG.md +++ b/services/communication/mgmt/2020-08-20/communication/CHANGELOG.md @@ -1,2 +1,13 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorDetail.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/communication/mgmt/2020-08-20/communication/_meta.json b/services/communication/mgmt/2020-08-20/communication/_meta.json index bb902de47779..b5ccc3d6f1ad 100644 --- a/services/communication/mgmt/2020-08-20/communication/_meta.json +++ b/services/communication/mgmt/2020-08-20/communication/_meta.json @@ -2,9 +2,9 @@ "commit": "8d3b22458da4bb9309c0207c2ebc1903de741249", "readme": "/_/azure-rest-api-specs/specification/communication/resource-manager/readme.md", "tag": "package-2020-08-20", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-08-20 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/communication/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-08-20 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/communication/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/communication/mgmt/2020-08-20/communication/models.go b/services/communication/mgmt/2020-08-20/communication/models.go index a2def5cc0915..d2172cce6509 100644 --- a/services/communication/mgmt/2020-08-20/communication/models.go +++ b/services/communication/mgmt/2020-08-20/communication/models.go @@ -32,6 +32,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorAdditionalInfo the resource management error additional info. type ErrorAdditionalInfo struct { // Type - READ-ONLY; The additional info type. @@ -40,6 +46,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetail the error detail. type ErrorDetail struct { // Code - READ-ONLY; The error code. @@ -54,6 +66,12 @@ type ErrorDetail struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetail. +func (ed ErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.). type ErrorResponse struct { @@ -138,6 +156,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult a list of REST API operations supported by an Azure Resource Provider. It contains // an URL link to get the next set of results. type OperationListResult struct { @@ -148,6 +172,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -404,6 +434,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegenerateKeyParameters parameters describes the request to regenerate access keys type RegenerateKeyParameters struct { // KeyType - The keyType to regenerate. Must be either 'primary' or 'secondary'(case-insensitive). Possible values include: 'Primary', 'Secondary' @@ -420,6 +456,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ServiceCreateOrUpdateFuture struct { diff --git a/services/compute/mgmt/2015-06-15/compute/CHANGELOG.md b/services/compute/mgmt/2015-06-15/compute/CHANGELOG.md index 52911e4cc5e4..a790bd4cedc2 100644 --- a/services/compute/mgmt/2015-06-15/compute/CHANGELOG.md +++ b/services/compute/mgmt/2015-06-15/compute/CHANGELOG.md @@ -1,2 +1,14 @@ # Change History +## Additive Changes + +### New Funcs + +1. BootDiagnosticsInstanceView.MarshalJSON() ([]byte, error) +1. DataDiskImage.MarshalJSON() ([]byte, error) +1. OperationStatusResponse.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetInstanceViewStatusesSummary.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetSku.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetSkuCapacity.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetVMExtensionsSummary.MarshalJSON() ([]byte, error) +1. VirtualMachineStatusCodeCount.MarshalJSON() ([]byte, error) diff --git a/services/compute/mgmt/2015-06-15/compute/_meta.json b/services/compute/mgmt/2015-06-15/compute/_meta.json index 03ea00de7d70..a05a499fc137 100644 --- a/services/compute/mgmt/2015-06-15/compute/_meta.json +++ b/services/compute/mgmt/2015-06-15/compute/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-compute-2015-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-compute-2015-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-compute-2015-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/compute/mgmt/2015-06-15/compute/models.go b/services/compute/mgmt/2015-06-15/compute/models.go index 261deabbf7af..942a709f810b 100644 --- a/services/compute/mgmt/2015-06-15/compute/models.go +++ b/services/compute/mgmt/2015-06-15/compute/models.go @@ -377,6 +377,12 @@ type BootDiagnosticsInstanceView struct { SerialConsoleLogBlobURI *string `json:"serialConsoleLogBlobUri,omitempty"` } +// MarshalJSON is the custom marshaler for BootDiagnosticsInstanceView. +func (bdiv BootDiagnosticsInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DataDisk describes a data disk. type DataDisk struct { // Lun - Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. @@ -401,6 +407,12 @@ type DataDiskImage struct { Lun *int32 `json:"lun,omitempty"` } +// MarshalJSON is the custom marshaler for DataDiskImage. +func (ddi DataDiskImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DiagnosticsProfile specifies the boot diagnostic settings state.

Minimum api-version: // 2015-06-15. type DiagnosticsProfile struct { @@ -753,6 +765,12 @@ type OperationStatusResponse struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for OperationStatusResponse. +func (osr OperationStatusResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OSDisk specifies information about the operating system disk used by the virtual machine.

For // more information about disks, see [About disks and VHDs for Azure virtual // machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). @@ -2267,6 +2285,12 @@ type VirtualMachineScaleSetInstanceViewStatusesSummary struct { StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetInstanceViewStatusesSummary. +func (vmssivss VirtualMachineScaleSetInstanceViewStatusesSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetIPConfiguration describes a virtual machine scale set network profile's IP // configuration. type VirtualMachineScaleSetIPConfiguration struct { @@ -3144,6 +3168,12 @@ type VirtualMachineScaleSetSku struct { Capacity *VirtualMachineScaleSetSkuCapacity `json:"capacity,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetSku. +func (vmsss VirtualMachineScaleSetSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetSkuCapacity describes scaling information of a sku. type VirtualMachineScaleSetSkuCapacity struct { // Minimum - READ-ONLY; The minimum capacity. @@ -3156,6 +3186,12 @@ type VirtualMachineScaleSetSkuCapacity struct { ScaleType VirtualMachineScaleSetSkuScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetSkuCapacity. +func (vmsssc VirtualMachineScaleSetSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetsPowerOffFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type VirtualMachineScaleSetsPowerOffFuture struct { @@ -3535,6 +3571,12 @@ type VirtualMachineScaleSetVMExtensionsSummary struct { StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetVMExtensionsSummary. +func (vmssves VirtualMachineScaleSetVMExtensionsSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetVMInstanceIDs specifies a list of virtual machine instance IDs from the VM scale // set. type VirtualMachineScaleSetVMInstanceIDs struct { @@ -4431,6 +4473,12 @@ type VirtualMachineStatusCodeCount struct { Count *int32 `json:"count,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineStatusCodeCount. +func (vmscc VirtualMachineStatusCodeCount) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WindowsConfiguration specifies Windows operating system settings on the virtual machine. type WindowsConfiguration struct { // ProvisionVMAgent - Indicates whether virtual machine agent should be provisioned on the virtual machine.

When this property is not specified in the request body, default behavior is to set it to true. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later. diff --git a/services/compute/mgmt/2016-03-30/compute/CHANGELOG.md b/services/compute/mgmt/2016-03-30/compute/CHANGELOG.md index 52911e4cc5e4..a790bd4cedc2 100644 --- a/services/compute/mgmt/2016-03-30/compute/CHANGELOG.md +++ b/services/compute/mgmt/2016-03-30/compute/CHANGELOG.md @@ -1,2 +1,14 @@ # Change History +## Additive Changes + +### New Funcs + +1. BootDiagnosticsInstanceView.MarshalJSON() ([]byte, error) +1. DataDiskImage.MarshalJSON() ([]byte, error) +1. OperationStatusResponse.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetInstanceViewStatusesSummary.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetSku.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetSkuCapacity.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetVMExtensionsSummary.MarshalJSON() ([]byte, error) +1. VirtualMachineStatusCodeCount.MarshalJSON() ([]byte, error) diff --git a/services/compute/mgmt/2016-03-30/compute/_meta.json b/services/compute/mgmt/2016-03-30/compute/_meta.json index 2e5acb80d418..46a9212852e1 100644 --- a/services/compute/mgmt/2016-03-30/compute/_meta.json +++ b/services/compute/mgmt/2016-03-30/compute/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-compute-2016-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-compute-2016-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-compute-2016-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/compute/mgmt/2016-03-30/compute/models.go b/services/compute/mgmt/2016-03-30/compute/models.go index 0bba7825da34..3d4fb86473e8 100644 --- a/services/compute/mgmt/2016-03-30/compute/models.go +++ b/services/compute/mgmt/2016-03-30/compute/models.go @@ -377,6 +377,12 @@ type BootDiagnosticsInstanceView struct { SerialConsoleLogBlobURI *string `json:"serialConsoleLogBlobUri,omitempty"` } +// MarshalJSON is the custom marshaler for BootDiagnosticsInstanceView. +func (bdiv BootDiagnosticsInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DataDisk describes a data disk. type DataDisk struct { // Lun - Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. @@ -401,6 +407,12 @@ type DataDiskImage struct { Lun *int32 `json:"lun,omitempty"` } +// MarshalJSON is the custom marshaler for DataDiskImage. +func (ddi DataDiskImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DiagnosticsProfile specifies the boot diagnostic settings state.

Minimum api-version: // 2015-06-15. type DiagnosticsProfile struct { @@ -753,6 +765,12 @@ type OperationStatusResponse struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for OperationStatusResponse. +func (osr OperationStatusResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OSDisk specifies information about the operating system disk used by the virtual machine.

For // more information about disks, see [About disks and VHDs for Azure virtual // machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). @@ -2342,6 +2360,12 @@ type VirtualMachineScaleSetInstanceViewStatusesSummary struct { StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetInstanceViewStatusesSummary. +func (vmssivss VirtualMachineScaleSetInstanceViewStatusesSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetIPConfiguration describes a virtual machine scale set network profile's IP // configuration. type VirtualMachineScaleSetIPConfiguration struct { @@ -3227,6 +3251,12 @@ type VirtualMachineScaleSetSku struct { Capacity *VirtualMachineScaleSetSkuCapacity `json:"capacity,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetSku. +func (vmsss VirtualMachineScaleSetSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetSkuCapacity describes scaling information of a sku. type VirtualMachineScaleSetSkuCapacity struct { // Minimum - READ-ONLY; The minimum capacity. @@ -3239,6 +3269,12 @@ type VirtualMachineScaleSetSkuCapacity struct { ScaleType VirtualMachineScaleSetSkuScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetSkuCapacity. +func (vmsssc VirtualMachineScaleSetSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetsPowerOffFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type VirtualMachineScaleSetsPowerOffFuture struct { @@ -3618,6 +3654,12 @@ type VirtualMachineScaleSetVMExtensionsSummary struct { StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetVMExtensionsSummary. +func (vmssves VirtualMachineScaleSetVMExtensionsSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetVMInstanceIDs specifies a list of virtual machine instance IDs from the VM scale // set. type VirtualMachineScaleSetVMInstanceIDs struct { @@ -4513,6 +4555,12 @@ type VirtualMachineStatusCodeCount struct { Count *int32 `json:"count,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineStatusCodeCount. +func (vmscc VirtualMachineStatusCodeCount) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WindowsConfiguration specifies Windows operating system settings on the virtual machine. type WindowsConfiguration struct { // ProvisionVMAgent - Indicates whether virtual machine agent should be provisioned on the virtual machine.

When this property is not specified in the request body, default behavior is to set it to true. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later. diff --git a/services/compute/mgmt/2017-03-30/compute/CHANGELOG.md b/services/compute/mgmt/2017-03-30/compute/CHANGELOG.md index 52911e4cc5e4..d2a41427aae1 100644 --- a/services/compute/mgmt/2017-03-30/compute/CHANGELOG.md +++ b/services/compute/mgmt/2017-03-30/compute/CHANGELOG.md @@ -1,2 +1,25 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccessURIRaw.MarshalJSON() ([]byte, error) +1. BootDiagnosticsInstanceView.MarshalJSON() ([]byte, error) +1. DataDiskImage.MarshalJSON() ([]byte, error) +1. OperationStatusResponse.MarshalJSON() ([]byte, error) +1. ResourceSku.MarshalJSON() ([]byte, error) +1. ResourceSkuCapabilities.MarshalJSON() ([]byte, error) +1. ResourceSkuCapacity.MarshalJSON() ([]byte, error) +1. ResourceSkuCosts.MarshalJSON() ([]byte, error) +1. ResourceSkuRestrictions.MarshalJSON() ([]byte, error) +1. RollingUpgradeProgressInfo.MarshalJSON() ([]byte, error) +1. RollingUpgradeRunningStatus.MarshalJSON() ([]byte, error) +1. RollingUpgradeStatusInfoProperties.MarshalJSON() ([]byte, error) +1. SubResourceReadOnly.MarshalJSON() ([]byte, error) +1. VirtualMachineHealthStatus.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetInstanceViewStatusesSummary.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetSku.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetSkuCapacity.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetVMExtensionsSummary.MarshalJSON() ([]byte, error) +1. VirtualMachineStatusCodeCount.MarshalJSON() ([]byte, error) diff --git a/services/compute/mgmt/2017-03-30/compute/_meta.json b/services/compute/mgmt/2017-03-30/compute/_meta.json index ef9aeb70fde2..ff30a5390bcf 100644 --- a/services/compute/mgmt/2017-03-30/compute/_meta.json +++ b/services/compute/mgmt/2017-03-30/compute/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-compute-2017-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-compute-2017-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-compute-2017-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/compute/mgmt/2017-03-30/compute/models.go b/services/compute/mgmt/2017-03-30/compute/models.go index f4179efccc3c..5e46d661097e 100644 --- a/services/compute/mgmt/2017-03-30/compute/models.go +++ b/services/compute/mgmt/2017-03-30/compute/models.go @@ -105,6 +105,12 @@ type AccessURIRaw struct { AccessSAS *string `json:"accessSAS,omitempty"` } +// MarshalJSON is the custom marshaler for AccessURIRaw. +func (aur AccessURIRaw) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AdditionalUnattendContent specifies additional XML formatted information that can be included in the // Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, // and the pass in which the content is applied. @@ -476,6 +482,12 @@ type BootDiagnosticsInstanceView struct { SerialConsoleLogBlobURI *string `json:"serialConsoleLogBlobUri,omitempty"` } +// MarshalJSON is the custom marshaler for BootDiagnosticsInstanceView. +func (bdiv BootDiagnosticsInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CreationData data used when creating a disk. type CreationData struct { // CreateOption - This enumerates the possible sources of a disk's creation. Possible values include: 'Empty', 'Attach', 'FromImage', 'Import', 'Copy' @@ -516,6 +528,12 @@ type DataDiskImage struct { Lun *int32 `json:"lun,omitempty"` } +// MarshalJSON is the custom marshaler for DataDiskImage. +func (ddi DataDiskImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DiagnosticsProfile specifies the boot diagnostic settings state.

Minimum api-version: // 2015-06-15. type DiagnosticsProfile struct { @@ -1991,6 +2009,12 @@ type OperationStatusResponse struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for OperationStatusResponse. +func (osr OperationStatusResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OSDisk specifies information about the operating system disk used by the virtual machine.

For // more information about disks, see [About disks and VHDs for Azure virtual // machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). @@ -2119,6 +2143,12 @@ type ResourceSku struct { Restrictions *[]ResourceSkuRestrictions `json:"restrictions,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSku. +func (rs ResourceSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCapabilities describes The SKU capabilities object. type ResourceSkuCapabilities struct { // Name - READ-ONLY; An invariant to describe the feature. @@ -2127,6 +2157,12 @@ type ResourceSkuCapabilities struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapabilities. +func (rsc ResourceSkuCapabilities) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCapacity describes scaling information of a SKU. type ResourceSkuCapacity struct { // Minimum - READ-ONLY; The minimum capacity. @@ -2139,6 +2175,12 @@ type ResourceSkuCapacity struct { ScaleType ResourceSkuCapacityScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapacity. +func (rsc ResourceSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCosts describes metadata for retrieving price info. type ResourceSkuCosts struct { // MeterID - READ-ONLY; Used for querying price from commerce. @@ -2149,6 +2191,12 @@ type ResourceSkuCosts struct { ExtendedUnit *string `json:"extendedUnit,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCosts. +func (rsc ResourceSkuCosts) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuRestrictions describes scaling information of a SKU. type ResourceSkuRestrictions struct { // Type - READ-ONLY; The type of restrictions. Possible values include: 'Location' @@ -2159,6 +2207,12 @@ type ResourceSkuRestrictions struct { ReasonCode ResourceSkuRestrictionsReasonCode `json:"reasonCode,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuRestrictions. +func (rsr ResourceSkuRestrictions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkusResult the Compute List Skus operation response. type ResourceSkusResult struct { autorest.Response `json:"-"` @@ -2362,6 +2416,12 @@ type RollingUpgradeProgressInfo struct { PendingInstanceCount *int32 `json:"pendingInstanceCount,omitempty"` } +// MarshalJSON is the custom marshaler for RollingUpgradeProgressInfo. +func (rupi RollingUpgradeProgressInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollingUpgradeRunningStatus information about the current running state of the overall upgrade. type RollingUpgradeRunningStatus struct { // Code - READ-ONLY; Code indicating the current status of the upgrade. Possible values include: 'RollingForward', 'Cancelled', 'Completed', 'Faulted' @@ -2374,6 +2434,12 @@ type RollingUpgradeRunningStatus struct { LastActionTime *date.Time `json:"lastActionTime,omitempty"` } +// MarshalJSON is the custom marshaler for RollingUpgradeRunningStatus. +func (rurs RollingUpgradeRunningStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollingUpgradeStatusInfo the status of the latest virtual machine scale set rolling upgrade. type RollingUpgradeStatusInfo struct { autorest.Response `json:"-"` @@ -2486,6 +2552,12 @@ type RollingUpgradeStatusInfoProperties struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for RollingUpgradeStatusInfoProperties. +func (rusip RollingUpgradeStatusInfoProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RunCommandDocument describes the properties of a Run Command. type RunCommandDocument struct { autorest.Response `json:"-"` @@ -3425,6 +3497,12 @@ type SubResourceReadOnly struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for SubResourceReadOnly. +func (srro SubResourceReadOnly) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpdateResource the Update Resource model definition. type UpdateResource struct { // Tags - Resource tags @@ -4227,6 +4305,12 @@ type VirtualMachineHealthStatus struct { Status *InstanceViewStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineHealthStatus. +func (vmhs VirtualMachineHealthStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineIdentity identity for the virtual machine. type VirtualMachineIdentity struct { // PrincipalID - READ-ONLY; The principal id of virtual machine identity. @@ -5193,6 +5277,12 @@ type VirtualMachineScaleSetInstanceViewStatusesSummary struct { StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetInstanceViewStatusesSummary. +func (vmssivss VirtualMachineScaleSetInstanceViewStatusesSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetIPConfiguration describes a virtual machine scale set network profile's IP // configuration. type VirtualMachineScaleSetIPConfiguration struct { @@ -6269,6 +6359,12 @@ type VirtualMachineScaleSetSku struct { Capacity *VirtualMachineScaleSetSkuCapacity `json:"capacity,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetSku. +func (vmsss VirtualMachineScaleSetSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetSkuCapacity describes scaling information of a sku. type VirtualMachineScaleSetSkuCapacity struct { // Minimum - READ-ONLY; The minimum capacity. @@ -6281,6 +6377,12 @@ type VirtualMachineScaleSetSkuCapacity struct { ScaleType VirtualMachineScaleSetSkuScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetSkuCapacity. +func (vmsssc VirtualMachineScaleSetSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetsPowerOffFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type VirtualMachineScaleSetsPowerOffFuture struct { @@ -7143,6 +7245,12 @@ type VirtualMachineScaleSetVMExtensionsSummary struct { StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetVMExtensionsSummary. +func (vmssves VirtualMachineScaleSetVMExtensionsSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetVMInstanceIDs specifies a list of virtual machine instance IDs from the VM scale // set. type VirtualMachineScaleSetVMInstanceIDs struct { @@ -8251,6 +8359,12 @@ type VirtualMachineStatusCodeCount struct { Count *int32 `json:"count,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineStatusCodeCount. +func (vmscc VirtualMachineStatusCodeCount) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WindowsConfiguration specifies Windows operating system settings on the virtual machine. type WindowsConfiguration struct { // ProvisionVMAgent - Indicates whether virtual machine agent should be provisioned on the virtual machine.

When this property is not specified in the request body, default behavior is to set it to true. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later. diff --git a/services/compute/mgmt/2017-09-01/skus/CHANGELOG.md b/services/compute/mgmt/2017-09-01/skus/CHANGELOG.md index 52911e4cc5e4..3b0e5b300569 100644 --- a/services/compute/mgmt/2017-09-01/skus/CHANGELOG.md +++ b/services/compute/mgmt/2017-09-01/skus/CHANGELOG.md @@ -1,2 +1,13 @@ # Change History +## Additive Changes + +### New Funcs + +1. ResourceSku.MarshalJSON() ([]byte, error) +1. ResourceSkuCapabilities.MarshalJSON() ([]byte, error) +1. ResourceSkuCapacity.MarshalJSON() ([]byte, error) +1. ResourceSkuCosts.MarshalJSON() ([]byte, error) +1. ResourceSkuLocationInfo.MarshalJSON() ([]byte, error) +1. ResourceSkuRestrictionInfo.MarshalJSON() ([]byte, error) +1. ResourceSkuRestrictions.MarshalJSON() ([]byte, error) diff --git a/services/compute/mgmt/2017-09-01/skus/_meta.json b/services/compute/mgmt/2017-09-01/skus/_meta.json index 016867182695..24797cde3a91 100644 --- a/services/compute/mgmt/2017-09-01/skus/_meta.json +++ b/services/compute/mgmt/2017-09-01/skus/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-skus-2017-09", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-skus-2017-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-skus-2017-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/compute/mgmt/2017-09-01/skus/models.go b/services/compute/mgmt/2017-09-01/skus/models.go index 26bdb21d90ae..84da8f59c1ca 100644 --- a/services/compute/mgmt/2017-09-01/skus/models.go +++ b/services/compute/mgmt/2017-09-01/skus/models.go @@ -8,6 +8,7 @@ package skus import ( "context" + "encoding/json" "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/to" "github.com/Azure/go-autorest/tracing" @@ -47,6 +48,12 @@ type ResourceSku struct { Restrictions *[]ResourceSkuRestrictions `json:"restrictions,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSku. +func (rs ResourceSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCapabilities describes The SKU capabilities object. type ResourceSkuCapabilities struct { // Name - READ-ONLY; An invariant to describe the feature. @@ -55,6 +62,12 @@ type ResourceSkuCapabilities struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapabilities. +func (rsc ResourceSkuCapabilities) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCapacity describes scaling information of a SKU. type ResourceSkuCapacity struct { // Minimum - READ-ONLY; The minimum capacity. @@ -67,6 +80,12 @@ type ResourceSkuCapacity struct { ScaleType ResourceSkuCapacityScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapacity. +func (rsc ResourceSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCosts describes metadata for retrieving price info. type ResourceSkuCosts struct { // MeterID - READ-ONLY; Used for querying price from commerce. @@ -77,6 +96,12 @@ type ResourceSkuCosts struct { ExtendedUnit *string `json:"extendedUnit,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCosts. +func (rsc ResourceSkuCosts) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuLocationInfo ... type ResourceSkuLocationInfo struct { // Location - READ-ONLY; Location of the SKU @@ -85,6 +110,12 @@ type ResourceSkuLocationInfo struct { Zones *[]string `json:"zones,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuLocationInfo. +func (rsli ResourceSkuLocationInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuRestrictionInfo ... type ResourceSkuRestrictionInfo struct { // Locations - READ-ONLY; Locations where the SKU is restricted @@ -93,6 +124,12 @@ type ResourceSkuRestrictionInfo struct { Zones *[]string `json:"zones,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuRestrictionInfo. +func (rsri ResourceSkuRestrictionInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuRestrictions describes scaling information of a SKU. type ResourceSkuRestrictions struct { // Type - READ-ONLY; The type of restrictions. Possible values include: 'Location', 'Zone' @@ -105,6 +142,12 @@ type ResourceSkuRestrictions struct { ReasonCode ResourceSkuRestrictionsReasonCode `json:"reasonCode,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuRestrictions. +func (rsr ResourceSkuRestrictions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkusResult the List Resource Skus operation response. type ResourceSkusResult struct { autorest.Response `json:"-"` diff --git a/services/compute/mgmt/2017-12-01/compute/CHANGELOG.md b/services/compute/mgmt/2017-12-01/compute/CHANGELOG.md index 52911e4cc5e4..40a2929f8d3e 100644 --- a/services/compute/mgmt/2017-12-01/compute/CHANGELOG.md +++ b/services/compute/mgmt/2017-12-01/compute/CHANGELOG.md @@ -1,2 +1,36 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccessURIRaw.MarshalJSON() ([]byte, error) +1. BootDiagnosticsInstanceView.MarshalJSON() ([]byte, error) +1. DataDiskImage.MarshalJSON() ([]byte, error) +1. LogAnalyticsOperationResult.MarshalJSON() ([]byte, error) +1. LogAnalyticsOutput.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OperationStatusResponse.MarshalJSON() ([]byte, error) +1. OperationValueDisplay.MarshalJSON() ([]byte, error) +1. RecoveryWalkResponse.MarshalJSON() ([]byte, error) +1. ResourceSku.MarshalJSON() ([]byte, error) +1. ResourceSkuCapabilities.MarshalJSON() ([]byte, error) +1. ResourceSkuCapacity.MarshalJSON() ([]byte, error) +1. ResourceSkuCosts.MarshalJSON() ([]byte, error) +1. ResourceSkuLocationInfo.MarshalJSON() ([]byte, error) +1. ResourceSkuRestrictionInfo.MarshalJSON() ([]byte, error) +1. ResourceSkuRestrictions.MarshalJSON() ([]byte, error) +1. RollbackStatusInfo.MarshalJSON() ([]byte, error) +1. RollingUpgradeProgressInfo.MarshalJSON() ([]byte, error) +1. RollingUpgradeRunningStatus.MarshalJSON() ([]byte, error) +1. RollingUpgradeStatusInfoProperties.MarshalJSON() ([]byte, error) +1. SubResourceReadOnly.MarshalJSON() ([]byte, error) +1. UpgradeOperationHistoricalStatusInfo.MarshalJSON() ([]byte, error) +1. UpgradeOperationHistoricalStatusInfoProperties.MarshalJSON() ([]byte, error) +1. UpgradeOperationHistoryStatus.MarshalJSON() ([]byte, error) +1. VirtualMachineHealthStatus.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetInstanceViewStatusesSummary.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetSku.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetSkuCapacity.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetVMExtensionsSummary.MarshalJSON() ([]byte, error) +1. VirtualMachineStatusCodeCount.MarshalJSON() ([]byte, error) diff --git a/services/compute/mgmt/2017-12-01/compute/_meta.json b/services/compute/mgmt/2017-12-01/compute/_meta.json index 880824ee4933..dbe0837541cf 100644 --- a/services/compute/mgmt/2017-12-01/compute/_meta.json +++ b/services/compute/mgmt/2017-12-01/compute/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-compute-2017-12", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-compute-2017-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-compute-2017-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/compute/mgmt/2017-12-01/compute/models.go b/services/compute/mgmt/2017-12-01/compute/models.go index 04ae82cf61e0..e2efc0545644 100644 --- a/services/compute/mgmt/2017-12-01/compute/models.go +++ b/services/compute/mgmt/2017-12-01/compute/models.go @@ -105,6 +105,12 @@ type AccessURIRaw struct { AccessSAS *string `json:"accessSAS,omitempty"` } +// MarshalJSON is the custom marshaler for AccessURIRaw. +func (aur AccessURIRaw) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AdditionalUnattendContent specifies additional XML formatted information that can be included in the // Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, // and the pass in which the content is applied. @@ -549,6 +555,12 @@ type BootDiagnosticsInstanceView struct { SerialConsoleLogBlobURI *string `json:"serialConsoleLogBlobUri,omitempty"` } +// MarshalJSON is the custom marshaler for BootDiagnosticsInstanceView. +func (bdiv BootDiagnosticsInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CreationData data used when creating a disk. type CreationData struct { // CreateOption - This enumerates the possible sources of a disk's creation. Possible values include: 'Empty', 'Attach', 'FromImage', 'Import', 'Copy' @@ -591,6 +603,12 @@ type DataDiskImage struct { Lun *int32 `json:"lun,omitempty"` } +// MarshalJSON is the custom marshaler for DataDiskImage. +func (ddi DataDiskImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DiagnosticsProfile specifies the boot diagnostic settings state.

Minimum api-version: // 2015-06-15. type DiagnosticsProfile struct { @@ -2170,12 +2188,24 @@ type LogAnalyticsOperationResult struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for LogAnalyticsOperationResult. +func (laor LogAnalyticsOperationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LogAnalyticsOutput logAnalytics output properties type LogAnalyticsOutput struct { // Output - READ-ONLY; Output file Uri path to blob container. Output *string `json:"output,omitempty"` } +// MarshalJSON is the custom marshaler for LogAnalyticsOutput. +func (lao LogAnalyticsOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LongRunningOperationProperties compute-specific operation properties, including output type LongRunningOperationProperties struct { // Output - Operation output data (raw JSON) @@ -2279,6 +2309,12 @@ type OperationListResult struct { Value *[]OperationValue `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationStatusResponse operation status response type OperationStatusResponse struct { autorest.Response `json:"-"` @@ -2294,6 +2330,12 @@ type OperationStatusResponse struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for OperationStatusResponse. +func (osr OperationStatusResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationValue describes the properties of a Compute Operation value. type OperationValue struct { // Origin - READ-ONLY; The origin of the compute operation. @@ -2366,6 +2408,12 @@ type OperationValueDisplay struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationValueDisplay. +func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OSDisk specifies information about the operating system disk used by the virtual machine.

For // more information about disks, see [About disks and VHDs for Azure virtual // machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). @@ -2451,6 +2499,12 @@ type RecoveryWalkResponse struct { NextPlatformUpdateDomain *int32 `json:"nextPlatformUpdateDomain,omitempty"` } +// MarshalJSON is the custom marshaler for RecoveryWalkResponse. +func (rwr RecoveryWalkResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RequestRateByIntervalInput api request input for LogAnalytics getRequestRateByInterval Api. type RequestRateByIntervalInput struct { // IntervalLength - Interval value in minutes used to create LogAnalytics call rate logs. Possible values include: 'ThreeMins', 'FiveMins', 'ThirtyMins', 'SixtyMins' @@ -2525,6 +2579,12 @@ type ResourceSku struct { Restrictions *[]ResourceSkuRestrictions `json:"restrictions,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSku. +func (rs ResourceSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCapabilities describes The SKU capabilities object. type ResourceSkuCapabilities struct { // Name - READ-ONLY; An invariant to describe the feature. @@ -2533,6 +2593,12 @@ type ResourceSkuCapabilities struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapabilities. +func (rsc ResourceSkuCapabilities) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCapacity describes scaling information of a SKU. type ResourceSkuCapacity struct { // Minimum - READ-ONLY; The minimum capacity. @@ -2545,6 +2611,12 @@ type ResourceSkuCapacity struct { ScaleType ResourceSkuCapacityScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapacity. +func (rsc ResourceSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCosts describes metadata for retrieving price info. type ResourceSkuCosts struct { // MeterID - READ-ONLY; Used for querying price from commerce. @@ -2555,6 +2627,12 @@ type ResourceSkuCosts struct { ExtendedUnit *string `json:"extendedUnit,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCosts. +func (rsc ResourceSkuCosts) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuLocationInfo ... type ResourceSkuLocationInfo struct { // Location - READ-ONLY; Location of the SKU @@ -2563,6 +2641,12 @@ type ResourceSkuLocationInfo struct { Zones *[]string `json:"zones,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuLocationInfo. +func (rsli ResourceSkuLocationInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuRestrictionInfo ... type ResourceSkuRestrictionInfo struct { // Locations - READ-ONLY; Locations where the SKU is restricted @@ -2571,6 +2655,12 @@ type ResourceSkuRestrictionInfo struct { Zones *[]string `json:"zones,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuRestrictionInfo. +func (rsri ResourceSkuRestrictionInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuRestrictions describes scaling information of a SKU. type ResourceSkuRestrictions struct { // Type - READ-ONLY; The type of restrictions. Possible values include: 'Location', 'Zone' @@ -2583,6 +2673,12 @@ type ResourceSkuRestrictions struct { ReasonCode ResourceSkuRestrictionsReasonCode `json:"reasonCode,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuRestrictions. +func (rsr ResourceSkuRestrictions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkusResult the List Resource Skus operation response. type ResourceSkusResult struct { autorest.Response `json:"-"` @@ -2771,6 +2867,12 @@ type RollbackStatusInfo struct { RollbackError *APIError `json:"rollbackError,omitempty"` } +// MarshalJSON is the custom marshaler for RollbackStatusInfo. +func (rsi RollbackStatusInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollingUpgradePolicy the configuration parameters used while performing a rolling upgrade. type RollingUpgradePolicy struct { // MaxBatchInstancePercent - The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The default value for this parameter is 20%. @@ -2796,6 +2898,12 @@ type RollingUpgradeProgressInfo struct { PendingInstanceCount *int32 `json:"pendingInstanceCount,omitempty"` } +// MarshalJSON is the custom marshaler for RollingUpgradeProgressInfo. +func (rupi RollingUpgradeProgressInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollingUpgradeRunningStatus information about the current running state of the overall upgrade. type RollingUpgradeRunningStatus struct { // Code - READ-ONLY; Code indicating the current status of the upgrade. Possible values include: 'RollingForward', 'Cancelled', 'Completed', 'Faulted' @@ -2808,6 +2916,12 @@ type RollingUpgradeRunningStatus struct { LastActionTime *date.Time `json:"lastActionTime,omitempty"` } +// MarshalJSON is the custom marshaler for RollingUpgradeRunningStatus. +func (rurs RollingUpgradeRunningStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollingUpgradeStatusInfo the status of the latest virtual machine scale set rolling upgrade. type RollingUpgradeStatusInfo struct { autorest.Response `json:"-"` @@ -2920,6 +3034,12 @@ type RollingUpgradeStatusInfoProperties struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for RollingUpgradeStatusInfoProperties. +func (rusip RollingUpgradeStatusInfoProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RunCommandDocument describes the properties of a Run Command. type RunCommandDocument struct { autorest.Response `json:"-"` @@ -3861,6 +3981,12 @@ type SubResourceReadOnly struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for SubResourceReadOnly. +func (srro SubResourceReadOnly) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ThrottledRequestsInput api request input for LogAnalytics getThrottledRequests Api. type ThrottledRequestsInput struct { // BlobContainerSasURI - SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. @@ -3902,6 +4028,12 @@ type UpgradeOperationHistoricalStatusInfo struct { Location *string `json:"location,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeOperationHistoricalStatusInfo. +func (uohsi UpgradeOperationHistoricalStatusInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpgradeOperationHistoricalStatusInfoProperties describes each OS upgrade on the Virtual Machine Scale // Set. type UpgradeOperationHistoricalStatusInfoProperties struct { @@ -3919,6 +4051,12 @@ type UpgradeOperationHistoricalStatusInfoProperties struct { RollbackInfo *RollbackStatusInfo `json:"rollbackInfo,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeOperationHistoricalStatusInfoProperties. +func (uohsip UpgradeOperationHistoricalStatusInfoProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpgradeOperationHistoryStatus information about the current running state of the overall upgrade. type UpgradeOperationHistoryStatus struct { // Code - READ-ONLY; Code indicating the current status of the upgrade. Possible values include: 'UpgradeStateRollingForward', 'UpgradeStateCancelled', 'UpgradeStateCompleted', 'UpgradeStateFaulted' @@ -3929,6 +4067,12 @@ type UpgradeOperationHistoryStatus struct { EndTime *date.Time `json:"endTime,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeOperationHistoryStatus. +func (uohs UpgradeOperationHistoryStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpgradePolicy describes an upgrade policy - automatic, manual, or rolling. type UpgradePolicy struct { // Mode - Specifies the mode of an upgrade to virtual machines in the scale set.

Possible values are:

**Manual** - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.

**Automatic** - All virtual machines in the scale set are automatically updated at the same time. Possible values include: 'Automatic', 'Manual', 'Rolling' @@ -4718,6 +4862,12 @@ type VirtualMachineHealthStatus struct { Status *InstanceViewStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineHealthStatus. +func (vmhs VirtualMachineHealthStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineIdentity identity for the virtual machine. type VirtualMachineIdentity struct { // PrincipalID - READ-ONLY; The principal id of virtual machine identity. This property will only be provided for a system assigned identity. @@ -5702,6 +5852,12 @@ type VirtualMachineScaleSetInstanceViewStatusesSummary struct { StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetInstanceViewStatusesSummary. +func (vmssivss VirtualMachineScaleSetInstanceViewStatusesSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetIPConfiguration describes a virtual machine scale set network profile's IP // configuration. type VirtualMachineScaleSetIPConfiguration struct { @@ -6954,6 +7110,12 @@ type VirtualMachineScaleSetSku struct { Capacity *VirtualMachineScaleSetSkuCapacity `json:"capacity,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetSku. +func (vmsss VirtualMachineScaleSetSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetSkuCapacity describes scaling information of a sku. type VirtualMachineScaleSetSkuCapacity struct { // Minimum - READ-ONLY; The minimum capacity. @@ -6966,6 +7128,12 @@ type VirtualMachineScaleSetSkuCapacity struct { ScaleType VirtualMachineScaleSetSkuScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetSkuCapacity. +func (vmsssc VirtualMachineScaleSetSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetsPerformMaintenanceFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type VirtualMachineScaleSetsPerformMaintenanceFuture struct { @@ -7918,6 +8086,12 @@ type VirtualMachineScaleSetVMExtensionsSummary struct { StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetVMExtensionsSummary. +func (vmssves VirtualMachineScaleSetVMExtensionsSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetVMInstanceIDs specifies a list of virtual machine instance IDs from the VM scale // set. type VirtualMachineScaleSetVMInstanceIDs struct { @@ -9164,6 +9338,12 @@ type VirtualMachineStatusCodeCount struct { Count *int32 `json:"count,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineStatusCodeCount. +func (vmscc VirtualMachineStatusCodeCount) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachinesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type VirtualMachinesUpdateFuture struct { diff --git a/services/compute/mgmt/2018-04-01/compute/CHANGELOG.md b/services/compute/mgmt/2018-04-01/compute/CHANGELOG.md index 52911e4cc5e4..d2828f1f34c5 100644 --- a/services/compute/mgmt/2018-04-01/compute/CHANGELOG.md +++ b/services/compute/mgmt/2018-04-01/compute/CHANGELOG.md @@ -1,2 +1,28 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccessURI.MarshalJSON() ([]byte, error) +1. BootDiagnosticsInstanceView.MarshalJSON() ([]byte, error) +1. DataDiskImage.MarshalJSON() ([]byte, error) +1. LogAnalyticsOperationResult.MarshalJSON() ([]byte, error) +1. LogAnalyticsOutput.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OperationValueDisplay.MarshalJSON() ([]byte, error) +1. RecoveryWalkResponse.MarshalJSON() ([]byte, error) +1. RollbackStatusInfo.MarshalJSON() ([]byte, error) +1. RollingUpgradeProgressInfo.MarshalJSON() ([]byte, error) +1. RollingUpgradeRunningStatus.MarshalJSON() ([]byte, error) +1. RollingUpgradeStatusInfoProperties.MarshalJSON() ([]byte, error) +1. SubResourceReadOnly.MarshalJSON() ([]byte, error) +1. UpgradeOperationHistoricalStatusInfo.MarshalJSON() ([]byte, error) +1. UpgradeOperationHistoricalStatusInfoProperties.MarshalJSON() ([]byte, error) +1. UpgradeOperationHistoryStatus.MarshalJSON() ([]byte, error) +1. VirtualMachineHealthStatus.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetInstanceViewStatusesSummary.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetSku.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetSkuCapacity.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetVMExtensionsSummary.MarshalJSON() ([]byte, error) +1. VirtualMachineStatusCodeCount.MarshalJSON() ([]byte, error) diff --git a/services/compute/mgmt/2018-04-01/compute/_meta.json b/services/compute/mgmt/2018-04-01/compute/_meta.json index 2811100185e3..e97725a65334 100644 --- a/services/compute/mgmt/2018-04-01/compute/_meta.json +++ b/services/compute/mgmt/2018-04-01/compute/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-compute-2018-04", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-compute-2018-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-compute-2018-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/compute/mgmt/2018-04-01/compute/models.go b/services/compute/mgmt/2018-04-01/compute/models.go index 78a5d8f55cd4..7720ffe1557c 100644 --- a/services/compute/mgmt/2018-04-01/compute/models.go +++ b/services/compute/mgmt/2018-04-01/compute/models.go @@ -27,6 +27,12 @@ type AccessURI struct { AccessSAS *string `json:"accessSAS,omitempty"` } +// MarshalJSON is the custom marshaler for AccessURI. +func (au AccessURI) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AdditionalUnattendContent specifies additional XML formatted information that can be included in the // Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, // and the pass in which the content is applied. @@ -478,6 +484,12 @@ type BootDiagnosticsInstanceView struct { Status *InstanceViewStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for BootDiagnosticsInstanceView. +func (bdiv BootDiagnosticsInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CreationData data used when creating a disk. type CreationData struct { // CreateOption - This enumerates the possible sources of a disk's creation. Possible values include: 'Empty', 'Attach', 'FromImage', 'Import', 'Copy', 'Restore' @@ -520,6 +532,12 @@ type DataDiskImage struct { Lun *int32 `json:"lun,omitempty"` } +// MarshalJSON is the custom marshaler for DataDiskImage. +func (ddi DataDiskImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DiagnosticsProfile specifies the boot diagnostic settings state.

Minimum api-version: // 2015-06-15. type DiagnosticsProfile struct { @@ -2071,12 +2089,24 @@ type LogAnalyticsOperationResult struct { Properties *LogAnalyticsOutput `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for LogAnalyticsOperationResult. +func (laor LogAnalyticsOperationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LogAnalyticsOutput logAnalytics output properties type LogAnalyticsOutput struct { // Output - READ-ONLY; Output file Uri path to blob container. Output *string `json:"output,omitempty"` } +// MarshalJSON is the custom marshaler for LogAnalyticsOutput. +func (lao LogAnalyticsOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MaintenanceRedeployStatus maintenance Operation Status. type MaintenanceRedeployStatus struct { // IsCustomerInitiatedMaintenanceAllowed - True, if customer is allowed to perform Maintenance. @@ -2174,6 +2204,12 @@ type OperationListResult struct { Value *[]OperationValue `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationValue describes the properties of a Compute Operation value. type OperationValue struct { // Origin - READ-ONLY; The origin of the compute operation. @@ -2246,6 +2282,12 @@ type OperationValueDisplay struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationValueDisplay. +func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OSDisk specifies information about the operating system disk used by the virtual machine.

For // more information about disks, see [About disks and VHDs for Azure virtual // machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). @@ -2628,6 +2670,12 @@ type RecoveryWalkResponse struct { NextPlatformUpdateDomain *int32 `json:"nextPlatformUpdateDomain,omitempty"` } +// MarshalJSON is the custom marshaler for RecoveryWalkResponse. +func (rwr RecoveryWalkResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RequestRateByIntervalInput api request input for LogAnalytics getRequestRateByInterval Api. type RequestRateByIntervalInput struct { // IntervalLength - Interval value in minutes used to create LogAnalytics call rate logs. Possible values include: 'ThreeMins', 'FiveMins', 'ThirtyMins', 'SixtyMins' @@ -2682,6 +2730,12 @@ type RollbackStatusInfo struct { RollbackError *APIError `json:"rollbackError,omitempty"` } +// MarshalJSON is the custom marshaler for RollbackStatusInfo. +func (rsi RollbackStatusInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollingUpgradePolicy the configuration parameters used while performing a rolling upgrade. type RollingUpgradePolicy struct { // MaxBatchInstancePercent - The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The default value for this parameter is 20%. @@ -2707,6 +2761,12 @@ type RollingUpgradeProgressInfo struct { PendingInstanceCount *int32 `json:"pendingInstanceCount,omitempty"` } +// MarshalJSON is the custom marshaler for RollingUpgradeProgressInfo. +func (rupi RollingUpgradeProgressInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollingUpgradeRunningStatus information about the current running state of the overall upgrade. type RollingUpgradeRunningStatus struct { // Code - READ-ONLY; Code indicating the current status of the upgrade. Possible values include: 'RollingForward', 'Cancelled', 'Completed', 'Faulted' @@ -2719,6 +2779,12 @@ type RollingUpgradeRunningStatus struct { LastActionTime *date.Time `json:"lastActionTime,omitempty"` } +// MarshalJSON is the custom marshaler for RollingUpgradeRunningStatus. +func (rurs RollingUpgradeRunningStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollingUpgradeStatusInfo the status of the latest virtual machine scale set rolling upgrade. type RollingUpgradeStatusInfo struct { autorest.Response `json:"-"` @@ -2831,6 +2897,12 @@ type RollingUpgradeStatusInfoProperties struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for RollingUpgradeStatusInfoProperties. +func (rusip RollingUpgradeStatusInfoProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RunCommandDocument describes the properties of a Run Command. type RunCommandDocument struct { autorest.Response `json:"-"` @@ -3684,6 +3756,12 @@ type SubResourceReadOnly struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for SubResourceReadOnly. +func (srro SubResourceReadOnly) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ThrottledRequestsInput api request input for LogAnalytics getThrottledRequests Api. type ThrottledRequestsInput struct { // BlobContainerSasURI - SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. @@ -3725,6 +3803,12 @@ type UpgradeOperationHistoricalStatusInfo struct { Location *string `json:"location,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeOperationHistoricalStatusInfo. +func (uohsi UpgradeOperationHistoricalStatusInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpgradeOperationHistoricalStatusInfoProperties describes each OS upgrade on the Virtual Machine Scale // Set. type UpgradeOperationHistoricalStatusInfoProperties struct { @@ -3742,6 +3826,12 @@ type UpgradeOperationHistoricalStatusInfoProperties struct { RollbackInfo *RollbackStatusInfo `json:"rollbackInfo,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeOperationHistoricalStatusInfoProperties. +func (uohsip UpgradeOperationHistoricalStatusInfoProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpgradeOperationHistoryStatus information about the current running state of the overall upgrade. type UpgradeOperationHistoryStatus struct { // Code - READ-ONLY; Code indicating the current status of the upgrade. Possible values include: 'UpgradeStateRollingForward', 'UpgradeStateCancelled', 'UpgradeStateCompleted', 'UpgradeStateFaulted' @@ -3752,6 +3842,12 @@ type UpgradeOperationHistoryStatus struct { EndTime *date.Time `json:"endTime,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeOperationHistoryStatus. +func (uohs UpgradeOperationHistoryStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpgradePolicy describes an upgrade policy - automatic, manual, or rolling. type UpgradePolicy struct { // Mode - Specifies the mode of an upgrade to virtual machines in the scale set.

Possible values are:

**Manual** - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.

**Automatic** - All virtual machines in the scale set are automatically updated at the same time. Possible values include: 'Automatic', 'Manual', 'Rolling' @@ -4500,6 +4596,12 @@ type VirtualMachineHealthStatus struct { Status *InstanceViewStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineHealthStatus. +func (vmhs VirtualMachineHealthStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineIdentity identity for the virtual machine. type VirtualMachineIdentity struct { // PrincipalID - READ-ONLY; The principal id of virtual machine identity. This property will only be provided for a system assigned identity. @@ -5483,6 +5585,12 @@ type VirtualMachineScaleSetInstanceViewStatusesSummary struct { StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetInstanceViewStatusesSummary. +func (vmssivss VirtualMachineScaleSetInstanceViewStatusesSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetIPConfiguration describes a virtual machine scale set network profile's IP // configuration. type VirtualMachineScaleSetIPConfiguration struct { @@ -6722,6 +6830,12 @@ type VirtualMachineScaleSetSku struct { Capacity *VirtualMachineScaleSetSkuCapacity `json:"capacity,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetSku. +func (vmsss VirtualMachineScaleSetSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetSkuCapacity describes scaling information of a sku. type VirtualMachineScaleSetSkuCapacity struct { // Minimum - READ-ONLY; The minimum capacity. @@ -6734,6 +6848,12 @@ type VirtualMachineScaleSetSkuCapacity struct { ScaleType VirtualMachineScaleSetSkuScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetSkuCapacity. +func (vmsssc VirtualMachineScaleSetSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetsPerformMaintenanceFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type VirtualMachineScaleSetsPerformMaintenanceFuture struct { @@ -7653,6 +7773,12 @@ type VirtualMachineScaleSetVMExtensionsSummary struct { StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetVMExtensionsSummary. +func (vmssves VirtualMachineScaleSetVMExtensionsSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetVMInstanceIDs specifies a list of virtual machine instance IDs from the VM scale // set. type VirtualMachineScaleSetVMInstanceIDs struct { @@ -8840,6 +8966,12 @@ type VirtualMachineStatusCodeCount struct { Count *int32 `json:"count,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineStatusCodeCount. +func (vmscc VirtualMachineStatusCodeCount) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachinesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type VirtualMachinesUpdateFuture struct { diff --git a/services/compute/mgmt/2018-06-01/compute/CHANGELOG.md b/services/compute/mgmt/2018-06-01/compute/CHANGELOG.md index 52911e4cc5e4..4a3834a4c00e 100644 --- a/services/compute/mgmt/2018-06-01/compute/CHANGELOG.md +++ b/services/compute/mgmt/2018-06-01/compute/CHANGELOG.md @@ -1,2 +1,44 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccessURI.MarshalJSON() ([]byte, error) +1. BootDiagnosticsInstanceView.MarshalJSON() ([]byte, error) +1. DataDiskImage.MarshalJSON() ([]byte, error) +1. GalleryDataDiskImage.MarshalJSON() ([]byte, error) +1. GalleryDiskImage.MarshalJSON() ([]byte, error) +1. GalleryIdentifier.MarshalJSON() ([]byte, error) +1. GalleryImageVersionStorageProfile.MarshalJSON() ([]byte, error) +1. GalleryOSDiskImage.MarshalJSON() ([]byte, error) +1. LogAnalyticsOperationResult.MarshalJSON() ([]byte, error) +1. LogAnalyticsOutput.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OperationValueDisplay.MarshalJSON() ([]byte, error) +1. RecoveryWalkResponse.MarshalJSON() ([]byte, error) +1. RegionalReplicationStatus.MarshalJSON() ([]byte, error) +1. ReplicationStatus.MarshalJSON() ([]byte, error) +1. ResourceSku.MarshalJSON() ([]byte, error) +1. ResourceSkuCapabilities.MarshalJSON() ([]byte, error) +1. ResourceSkuCapacity.MarshalJSON() ([]byte, error) +1. ResourceSkuCosts.MarshalJSON() ([]byte, error) +1. ResourceSkuLocationInfo.MarshalJSON() ([]byte, error) +1. ResourceSkuRestrictionInfo.MarshalJSON() ([]byte, error) +1. ResourceSkuRestrictions.MarshalJSON() ([]byte, error) +1. RollbackStatusInfo.MarshalJSON() ([]byte, error) +1. RollingUpgradeProgressInfo.MarshalJSON() ([]byte, error) +1. RollingUpgradeRunningStatus.MarshalJSON() ([]byte, error) +1. RollingUpgradeStatusInfoProperties.MarshalJSON() ([]byte, error) +1. SubResourceReadOnly.MarshalJSON() ([]byte, error) +1. UpgradeOperationHistoricalStatusInfo.MarshalJSON() ([]byte, error) +1. UpgradeOperationHistoricalStatusInfoProperties.MarshalJSON() ([]byte, error) +1. UpgradeOperationHistoryStatus.MarshalJSON() ([]byte, error) +1. VirtualMachineHealthStatus.MarshalJSON() ([]byte, error) +1. VirtualMachineIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetInstanceViewStatusesSummary.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetSku.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetSkuCapacity.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetVMExtensionsSummary.MarshalJSON() ([]byte, error) +1. VirtualMachineStatusCodeCount.MarshalJSON() ([]byte, error) diff --git a/services/compute/mgmt/2018-06-01/compute/_meta.json b/services/compute/mgmt/2018-06-01/compute/_meta.json index 7c781e772c75..28b44419e44b 100644 --- a/services/compute/mgmt/2018-06-01/compute/_meta.json +++ b/services/compute/mgmt/2018-06-01/compute/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-2018-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/compute/mgmt/2018-06-01/compute/models.go b/services/compute/mgmt/2018-06-01/compute/models.go index a647a55f429a..1eb8b3874c85 100644 --- a/services/compute/mgmt/2018-06-01/compute/models.go +++ b/services/compute/mgmt/2018-06-01/compute/models.go @@ -27,6 +27,12 @@ type AccessURI struct { AccessSAS *string `json:"accessSAS,omitempty"` } +// MarshalJSON is the custom marshaler for AccessURI. +func (au AccessURI) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AdditionalCapabilities enables or disables a capability on the virtual machine or virtual machine scale // set. type AdditionalCapabilities struct { @@ -485,6 +491,12 @@ type BootDiagnosticsInstanceView struct { Status *InstanceViewStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for BootDiagnosticsInstanceView. +func (bdiv BootDiagnosticsInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from the Gallery service. type CloudError struct { Error *APIError `json:"error,omitempty"` @@ -1049,6 +1061,12 @@ type DataDiskImage struct { Lun *int32 `json:"lun,omitempty"` } +// MarshalJSON is the custom marshaler for DataDiskImage. +func (ddi DataDiskImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DiagnosticsProfile specifies the boot diagnostic settings state.

Minimum api-version: // 2015-06-15. type DiagnosticsProfile struct { @@ -1939,6 +1957,12 @@ type GalleryDataDiskImage struct { HostCaching HostCaching `json:"hostCaching,omitempty"` } +// MarshalJSON is the custom marshaler for GalleryDataDiskImage. +func (gddi GalleryDataDiskImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GalleryDiskImage this is the disk image base class. type GalleryDiskImage struct { // SizeInGB - READ-ONLY; This property indicates the size of the VHD to be created. @@ -1947,12 +1971,24 @@ type GalleryDiskImage struct { HostCaching HostCaching `json:"hostCaching,omitempty"` } +// MarshalJSON is the custom marshaler for GalleryDiskImage. +func (gdi GalleryDiskImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GalleryIdentifier describes the gallery unique name. type GalleryIdentifier struct { // UniqueName - READ-ONLY; The unique name of the Shared Image Gallery. This name is generated automatically by Azure. UniqueName *string `json:"uniqueName,omitempty"` } +// MarshalJSON is the custom marshaler for GalleryIdentifier. +func (gi GalleryIdentifier) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GalleryImage specifies information about the gallery Image Definition that you want to create or update. type GalleryImage struct { autorest.Response `json:"-"` @@ -2769,6 +2805,12 @@ type GalleryImageVersionStorageProfile struct { DataDiskImages *[]GalleryDataDiskImage `json:"dataDiskImages,omitempty"` } +// MarshalJSON is the custom marshaler for GalleryImageVersionStorageProfile. +func (givsp GalleryImageVersionStorageProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GalleryList the List Galleries operation response. type GalleryList struct { autorest.Response `json:"-"` @@ -2936,6 +2978,12 @@ type GalleryOSDiskImage struct { HostCaching HostCaching `json:"hostCaching,omitempty"` } +// MarshalJSON is the custom marshaler for GalleryOSDiskImage. +func (godi GalleryOSDiskImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GalleryProperties describes the properties of a Shared Image Gallery. type GalleryProperties struct { // Description - The description of this Shared Image Gallery resource. This property is updatable. @@ -3860,12 +3908,24 @@ type LogAnalyticsOperationResult struct { Properties *LogAnalyticsOutput `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for LogAnalyticsOperationResult. +func (laor LogAnalyticsOperationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LogAnalyticsOutput logAnalytics output properties type LogAnalyticsOutput struct { // Output - READ-ONLY; Output file Uri path to blob container. Output *string `json:"output,omitempty"` } +// MarshalJSON is the custom marshaler for LogAnalyticsOutput. +func (lao LogAnalyticsOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MaintenanceRedeployStatus maintenance Operation Status. type MaintenanceRedeployStatus struct { // IsCustomerInitiatedMaintenanceAllowed - True, if customer is allowed to perform Maintenance. @@ -3969,6 +4029,12 @@ type OperationListResult struct { Value *[]OperationValue `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationValue describes the properties of a Compute Operation value. type OperationValue struct { // Origin - READ-ONLY; The origin of the compute operation. @@ -4041,6 +4107,12 @@ type OperationValueDisplay struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationValueDisplay. +func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OSDisk specifies information about the operating system disk used by the virtual machine.

For // more information about disks, see [About disks and VHDs for Azure virtual // machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). @@ -4434,6 +4506,12 @@ type RecoveryWalkResponse struct { NextPlatformUpdateDomain *int32 `json:"nextPlatformUpdateDomain,omitempty"` } +// MarshalJSON is the custom marshaler for RecoveryWalkResponse. +func (rwr RecoveryWalkResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegionalReplicationStatus this is the regional replication status. type RegionalReplicationStatus struct { // Region - READ-ONLY; The region to which the gallery Image Version is being replicated to. @@ -4446,6 +4524,12 @@ type RegionalReplicationStatus struct { Progress *int32 `json:"progress,omitempty"` } +// MarshalJSON is the custom marshaler for RegionalReplicationStatus. +func (rrs RegionalReplicationStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReplicationStatus this is the replication status of the gallery Image Version. type ReplicationStatus struct { // AggregatedState - READ-ONLY; This is the aggregated replication status based on all the regional replication status flags. Possible values include: 'Unknown', 'InProgress', 'Completed', 'Failed' @@ -4454,6 +4538,12 @@ type ReplicationStatus struct { Summary *[]RegionalReplicationStatus `json:"summary,omitempty"` } +// MarshalJSON is the custom marshaler for ReplicationStatus. +func (rs ReplicationStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RequestRateByIntervalInput api request input for LogAnalytics getRequestRateByInterval Api. type RequestRateByIntervalInput struct { // IntervalLength - Interval value in minutes used to create LogAnalytics call rate logs. Possible values include: 'ThreeMins', 'FiveMins', 'ThirtyMins', 'SixtyMins' @@ -4536,6 +4626,12 @@ type ResourceSku struct { Restrictions *[]ResourceSkuRestrictions `json:"restrictions,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSku. +func (rs ResourceSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCapabilities describes The SKU capabilities object. type ResourceSkuCapabilities struct { // Name - READ-ONLY; An invariant to describe the feature. @@ -4544,6 +4640,12 @@ type ResourceSkuCapabilities struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapabilities. +func (rsc ResourceSkuCapabilities) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCapacity describes scaling information of a SKU. type ResourceSkuCapacity struct { // Minimum - READ-ONLY; The minimum capacity. @@ -4556,6 +4658,12 @@ type ResourceSkuCapacity struct { ScaleType ResourceSkuCapacityScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapacity. +func (rsc ResourceSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCosts describes metadata for retrieving price info. type ResourceSkuCosts struct { // MeterID - READ-ONLY; Used for querying price from commerce. @@ -4566,6 +4674,12 @@ type ResourceSkuCosts struct { ExtendedUnit *string `json:"extendedUnit,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCosts. +func (rsc ResourceSkuCosts) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuLocationInfo ... type ResourceSkuLocationInfo struct { // Location - READ-ONLY; Location of the SKU @@ -4574,6 +4688,12 @@ type ResourceSkuLocationInfo struct { Zones *[]string `json:"zones,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuLocationInfo. +func (rsli ResourceSkuLocationInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuRestrictionInfo ... type ResourceSkuRestrictionInfo struct { // Locations - READ-ONLY; Locations where the SKU is restricted @@ -4582,6 +4702,12 @@ type ResourceSkuRestrictionInfo struct { Zones *[]string `json:"zones,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuRestrictionInfo. +func (rsri ResourceSkuRestrictionInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuRestrictions describes scaling information of a SKU. type ResourceSkuRestrictions struct { // Type - READ-ONLY; The type of restrictions. Possible values include: 'Location', 'Zone' @@ -4594,6 +4720,12 @@ type ResourceSkuRestrictions struct { ReasonCode ResourceSkuRestrictionsReasonCode `json:"reasonCode,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuRestrictions. +func (rsr ResourceSkuRestrictions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkusResult the List Resource Skus operation response. type ResourceSkusResult struct { autorest.Response `json:"-"` @@ -4763,6 +4895,12 @@ type RollbackStatusInfo struct { RollbackError *APIError `json:"rollbackError,omitempty"` } +// MarshalJSON is the custom marshaler for RollbackStatusInfo. +func (rsi RollbackStatusInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollingUpgradePolicy the configuration parameters used while performing a rolling upgrade. type RollingUpgradePolicy struct { // MaxBatchInstancePercent - The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The default value for this parameter is 20%. @@ -4788,6 +4926,12 @@ type RollingUpgradeProgressInfo struct { PendingInstanceCount *int32 `json:"pendingInstanceCount,omitempty"` } +// MarshalJSON is the custom marshaler for RollingUpgradeProgressInfo. +func (rupi RollingUpgradeProgressInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollingUpgradeRunningStatus information about the current running state of the overall upgrade. type RollingUpgradeRunningStatus struct { // Code - READ-ONLY; Code indicating the current status of the upgrade. Possible values include: 'RollingUpgradeStatusCodeRollingForward', 'RollingUpgradeStatusCodeCancelled', 'RollingUpgradeStatusCodeCompleted', 'RollingUpgradeStatusCodeFaulted' @@ -4800,6 +4944,12 @@ type RollingUpgradeRunningStatus struct { LastActionTime *date.Time `json:"lastActionTime,omitempty"` } +// MarshalJSON is the custom marshaler for RollingUpgradeRunningStatus. +func (rurs RollingUpgradeRunningStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollingUpgradeStatusInfo the status of the latest virtual machine scale set rolling upgrade. type RollingUpgradeStatusInfo struct { autorest.Response `json:"-"` @@ -4912,6 +5062,12 @@ type RollingUpgradeStatusInfoProperties struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for RollingUpgradeStatusInfoProperties. +func (rusip RollingUpgradeStatusInfoProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RunCommandDocument describes the properties of a Run Command. type RunCommandDocument struct { autorest.Response `json:"-"` @@ -5809,6 +5965,12 @@ type SubResourceReadOnly struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for SubResourceReadOnly. +func (srro SubResourceReadOnly) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TargetRegion describes the target region information. type TargetRegion struct { // Name - The name of the region. @@ -5858,6 +6020,12 @@ type UpgradeOperationHistoricalStatusInfo struct { Location *string `json:"location,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeOperationHistoricalStatusInfo. +func (uohsi UpgradeOperationHistoricalStatusInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpgradeOperationHistoricalStatusInfoProperties describes each OS upgrade on the Virtual Machine Scale // Set. type UpgradeOperationHistoricalStatusInfoProperties struct { @@ -5875,6 +6043,12 @@ type UpgradeOperationHistoricalStatusInfoProperties struct { RollbackInfo *RollbackStatusInfo `json:"rollbackInfo,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeOperationHistoricalStatusInfoProperties. +func (uohsip UpgradeOperationHistoricalStatusInfoProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpgradeOperationHistoryStatus information about the current running state of the overall upgrade. type UpgradeOperationHistoryStatus struct { // Code - READ-ONLY; Code indicating the current status of the upgrade. Possible values include: 'UpgradeStateRollingForward', 'UpgradeStateCancelled', 'UpgradeStateCompleted', 'UpgradeStateFaulted' @@ -5885,6 +6059,12 @@ type UpgradeOperationHistoryStatus struct { EndTime *date.Time `json:"endTime,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeOperationHistoryStatus. +func (uohs UpgradeOperationHistoryStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpgradePolicy describes an upgrade policy - automatic, manual, or rolling. type UpgradePolicy struct { // Mode - Specifies the mode of an upgrade to virtual machines in the scale set.

Possible values are:

**Manual** - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.

**Automatic** - All virtual machines in the scale set are automatically updated at the same time. Possible values include: 'Automatic', 'Manual', 'Rolling' @@ -6633,6 +6813,12 @@ type VirtualMachineHealthStatus struct { Status *InstanceViewStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineHealthStatus. +func (vmhs VirtualMachineHealthStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineIdentity identity for the virtual machine. type VirtualMachineIdentity struct { // PrincipalID - READ-ONLY; The principal id of virtual machine identity. This property will only be provided for a system assigned identity. @@ -6665,6 +6851,12 @@ type VirtualMachineIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineIdentityUserAssignedIdentitiesValue. +func (vmiAiv VirtualMachineIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineImage describes a Virtual Machine Image. type VirtualMachineImage struct { autorest.Response `json:"-"` @@ -7622,6 +7814,12 @@ type VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue. +func (vmssiAiv VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetInstanceView the instance view of a virtual machine scale set. type VirtualMachineScaleSetInstanceView struct { autorest.Response `json:"-"` @@ -7649,6 +7847,12 @@ type VirtualMachineScaleSetInstanceViewStatusesSummary struct { StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetInstanceViewStatusesSummary. +func (vmssivss VirtualMachineScaleSetInstanceViewStatusesSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetIPConfiguration describes a virtual machine scale set network profile's IP // configuration. type VirtualMachineScaleSetIPConfiguration struct { @@ -8939,6 +9143,12 @@ type VirtualMachineScaleSetSku struct { Capacity *VirtualMachineScaleSetSkuCapacity `json:"capacity,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetSku. +func (vmsss VirtualMachineScaleSetSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetSkuCapacity describes scaling information of a sku. type VirtualMachineScaleSetSkuCapacity struct { // Minimum - READ-ONLY; The minimum capacity. @@ -8951,6 +9161,12 @@ type VirtualMachineScaleSetSkuCapacity struct { ScaleType VirtualMachineScaleSetSkuScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetSkuCapacity. +func (vmsssc VirtualMachineScaleSetSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetsPerformMaintenanceFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type VirtualMachineScaleSetsPerformMaintenanceFuture struct { @@ -9872,6 +10088,12 @@ type VirtualMachineScaleSetVMExtensionsSummary struct { StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetVMExtensionsSummary. +func (vmssves VirtualMachineScaleSetVMExtensionsSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetVMInstanceIDs specifies a list of virtual machine instance IDs from the VM scale // set. type VirtualMachineScaleSetVMInstanceIDs struct { @@ -11109,6 +11331,12 @@ type VirtualMachineStatusCodeCount struct { Count *int32 `json:"count,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineStatusCodeCount. +func (vmscc VirtualMachineStatusCodeCount) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachinesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type VirtualMachinesUpdateFuture struct { diff --git a/services/compute/mgmt/2018-10-01/compute/CHANGELOG.md b/services/compute/mgmt/2018-10-01/compute/CHANGELOG.md index 52911e4cc5e4..4a3834a4c00e 100644 --- a/services/compute/mgmt/2018-10-01/compute/CHANGELOG.md +++ b/services/compute/mgmt/2018-10-01/compute/CHANGELOG.md @@ -1,2 +1,44 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccessURI.MarshalJSON() ([]byte, error) +1. BootDiagnosticsInstanceView.MarshalJSON() ([]byte, error) +1. DataDiskImage.MarshalJSON() ([]byte, error) +1. GalleryDataDiskImage.MarshalJSON() ([]byte, error) +1. GalleryDiskImage.MarshalJSON() ([]byte, error) +1. GalleryIdentifier.MarshalJSON() ([]byte, error) +1. GalleryImageVersionStorageProfile.MarshalJSON() ([]byte, error) +1. GalleryOSDiskImage.MarshalJSON() ([]byte, error) +1. LogAnalyticsOperationResult.MarshalJSON() ([]byte, error) +1. LogAnalyticsOutput.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OperationValueDisplay.MarshalJSON() ([]byte, error) +1. RecoveryWalkResponse.MarshalJSON() ([]byte, error) +1. RegionalReplicationStatus.MarshalJSON() ([]byte, error) +1. ReplicationStatus.MarshalJSON() ([]byte, error) +1. ResourceSku.MarshalJSON() ([]byte, error) +1. ResourceSkuCapabilities.MarshalJSON() ([]byte, error) +1. ResourceSkuCapacity.MarshalJSON() ([]byte, error) +1. ResourceSkuCosts.MarshalJSON() ([]byte, error) +1. ResourceSkuLocationInfo.MarshalJSON() ([]byte, error) +1. ResourceSkuRestrictionInfo.MarshalJSON() ([]byte, error) +1. ResourceSkuRestrictions.MarshalJSON() ([]byte, error) +1. RollbackStatusInfo.MarshalJSON() ([]byte, error) +1. RollingUpgradeProgressInfo.MarshalJSON() ([]byte, error) +1. RollingUpgradeRunningStatus.MarshalJSON() ([]byte, error) +1. RollingUpgradeStatusInfoProperties.MarshalJSON() ([]byte, error) +1. SubResourceReadOnly.MarshalJSON() ([]byte, error) +1. UpgradeOperationHistoricalStatusInfo.MarshalJSON() ([]byte, error) +1. UpgradeOperationHistoricalStatusInfoProperties.MarshalJSON() ([]byte, error) +1. UpgradeOperationHistoryStatus.MarshalJSON() ([]byte, error) +1. VirtualMachineHealthStatus.MarshalJSON() ([]byte, error) +1. VirtualMachineIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetInstanceViewStatusesSummary.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetSku.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetSkuCapacity.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetVMExtensionsSummary.MarshalJSON() ([]byte, error) +1. VirtualMachineStatusCodeCount.MarshalJSON() ([]byte, error) diff --git a/services/compute/mgmt/2018-10-01/compute/_meta.json b/services/compute/mgmt/2018-10-01/compute/_meta.json index 6ded83997520..916acf762a1b 100644 --- a/services/compute/mgmt/2018-10-01/compute/_meta.json +++ b/services/compute/mgmt/2018-10-01/compute/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-2018-10-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-10-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-10-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/compute/mgmt/2018-10-01/compute/models.go b/services/compute/mgmt/2018-10-01/compute/models.go index 0a1d44cdfd21..9aed45caac93 100644 --- a/services/compute/mgmt/2018-10-01/compute/models.go +++ b/services/compute/mgmt/2018-10-01/compute/models.go @@ -27,6 +27,12 @@ type AccessURI struct { AccessSAS *string `json:"accessSAS,omitempty"` } +// MarshalJSON is the custom marshaler for AccessURI. +func (au AccessURI) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AdditionalCapabilities enables or disables a capability on the virtual machine or virtual machine scale // set. type AdditionalCapabilities struct { @@ -502,6 +508,12 @@ type BootDiagnosticsInstanceView struct { Status *InstanceViewStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for BootDiagnosticsInstanceView. +func (bdiv BootDiagnosticsInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from the Gallery service. type CloudError struct { Error *APIError `json:"error,omitempty"` @@ -1066,6 +1078,12 @@ type DataDiskImage struct { Lun *int32 `json:"lun,omitempty"` } +// MarshalJSON is the custom marshaler for DataDiskImage. +func (ddi DataDiskImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DiagnosticsProfile specifies the boot diagnostic settings state.

Minimum api-version: // 2015-06-15. type DiagnosticsProfile struct { @@ -1956,6 +1974,12 @@ type GalleryDataDiskImage struct { HostCaching HostCaching `json:"hostCaching,omitempty"` } +// MarshalJSON is the custom marshaler for GalleryDataDiskImage. +func (gddi GalleryDataDiskImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GalleryDiskImage this is the disk image base class. type GalleryDiskImage struct { // SizeInGB - READ-ONLY; This property indicates the size of the VHD to be created. @@ -1964,12 +1988,24 @@ type GalleryDiskImage struct { HostCaching HostCaching `json:"hostCaching,omitempty"` } +// MarshalJSON is the custom marshaler for GalleryDiskImage. +func (gdi GalleryDiskImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GalleryIdentifier describes the gallery unique name. type GalleryIdentifier struct { // UniqueName - READ-ONLY; The unique name of the Shared Image Gallery. This name is generated automatically by Azure. UniqueName *string `json:"uniqueName,omitempty"` } +// MarshalJSON is the custom marshaler for GalleryIdentifier. +func (gi GalleryIdentifier) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GalleryImage specifies information about the gallery Image Definition that you want to create or update. type GalleryImage struct { autorest.Response `json:"-"` @@ -2786,6 +2822,12 @@ type GalleryImageVersionStorageProfile struct { DataDiskImages *[]GalleryDataDiskImage `json:"dataDiskImages,omitempty"` } +// MarshalJSON is the custom marshaler for GalleryImageVersionStorageProfile. +func (givsp GalleryImageVersionStorageProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GalleryList the List Galleries operation response. type GalleryList struct { autorest.Response `json:"-"` @@ -2953,6 +2995,12 @@ type GalleryOSDiskImage struct { HostCaching HostCaching `json:"hostCaching,omitempty"` } +// MarshalJSON is the custom marshaler for GalleryOSDiskImage. +func (godi GalleryOSDiskImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GalleryProperties describes the properties of a Shared Image Gallery. type GalleryProperties struct { // Description - The description of this Shared Image Gallery resource. This property is updatable. @@ -3877,12 +3925,24 @@ type LogAnalyticsOperationResult struct { Properties *LogAnalyticsOutput `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for LogAnalyticsOperationResult. +func (laor LogAnalyticsOperationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LogAnalyticsOutput logAnalytics output properties type LogAnalyticsOutput struct { // Output - READ-ONLY; Output file Uri path to blob container. Output *string `json:"output,omitempty"` } +// MarshalJSON is the custom marshaler for LogAnalyticsOutput. +func (lao LogAnalyticsOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MaintenanceRedeployStatus maintenance Operation Status. type MaintenanceRedeployStatus struct { // IsCustomerInitiatedMaintenanceAllowed - True, if customer is allowed to perform Maintenance. @@ -3986,6 +4046,12 @@ type OperationListResult struct { Value *[]OperationValue `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationValue describes the properties of a Compute Operation value. type OperationValue struct { // Origin - READ-ONLY; The origin of the compute operation. @@ -4058,6 +4124,12 @@ type OperationValueDisplay struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationValueDisplay. +func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OSDisk specifies information about the operating system disk used by the virtual machine.

For // more information about disks, see [About disks and VHDs for Azure virtual // machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). @@ -4451,6 +4523,12 @@ type RecoveryWalkResponse struct { NextPlatformUpdateDomain *int32 `json:"nextPlatformUpdateDomain,omitempty"` } +// MarshalJSON is the custom marshaler for RecoveryWalkResponse. +func (rwr RecoveryWalkResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegionalReplicationStatus this is the regional replication status. type RegionalReplicationStatus struct { // Region - READ-ONLY; The region to which the gallery Image Version is being replicated to. @@ -4463,6 +4541,12 @@ type RegionalReplicationStatus struct { Progress *int32 `json:"progress,omitempty"` } +// MarshalJSON is the custom marshaler for RegionalReplicationStatus. +func (rrs RegionalReplicationStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReplicationStatus this is the replication status of the gallery Image Version. type ReplicationStatus struct { // AggregatedState - READ-ONLY; This is the aggregated replication status based on all the regional replication status flags. Possible values include: 'Unknown', 'InProgress', 'Completed', 'Failed' @@ -4471,6 +4555,12 @@ type ReplicationStatus struct { Summary *[]RegionalReplicationStatus `json:"summary,omitempty"` } +// MarshalJSON is the custom marshaler for ReplicationStatus. +func (rs ReplicationStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RequestRateByIntervalInput api request input for LogAnalytics getRequestRateByInterval Api. type RequestRateByIntervalInput struct { // IntervalLength - Interval value in minutes used to create LogAnalytics call rate logs. Possible values include: 'ThreeMins', 'FiveMins', 'ThirtyMins', 'SixtyMins' @@ -4553,6 +4643,12 @@ type ResourceSku struct { Restrictions *[]ResourceSkuRestrictions `json:"restrictions,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSku. +func (rs ResourceSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCapabilities describes The SKU capabilities object. type ResourceSkuCapabilities struct { // Name - READ-ONLY; An invariant to describe the feature. @@ -4561,6 +4657,12 @@ type ResourceSkuCapabilities struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapabilities. +func (rsc ResourceSkuCapabilities) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCapacity describes scaling information of a SKU. type ResourceSkuCapacity struct { // Minimum - READ-ONLY; The minimum capacity. @@ -4573,6 +4675,12 @@ type ResourceSkuCapacity struct { ScaleType ResourceSkuCapacityScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapacity. +func (rsc ResourceSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCosts describes metadata for retrieving price info. type ResourceSkuCosts struct { // MeterID - READ-ONLY; Used for querying price from commerce. @@ -4583,6 +4691,12 @@ type ResourceSkuCosts struct { ExtendedUnit *string `json:"extendedUnit,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCosts. +func (rsc ResourceSkuCosts) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuLocationInfo ... type ResourceSkuLocationInfo struct { // Location - READ-ONLY; Location of the SKU @@ -4591,6 +4705,12 @@ type ResourceSkuLocationInfo struct { Zones *[]string `json:"zones,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuLocationInfo. +func (rsli ResourceSkuLocationInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuRestrictionInfo ... type ResourceSkuRestrictionInfo struct { // Locations - READ-ONLY; Locations where the SKU is restricted @@ -4599,6 +4719,12 @@ type ResourceSkuRestrictionInfo struct { Zones *[]string `json:"zones,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuRestrictionInfo. +func (rsri ResourceSkuRestrictionInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuRestrictions describes scaling information of a SKU. type ResourceSkuRestrictions struct { // Type - READ-ONLY; The type of restrictions. Possible values include: 'Location', 'Zone' @@ -4611,6 +4737,12 @@ type ResourceSkuRestrictions struct { ReasonCode ResourceSkuRestrictionsReasonCode `json:"reasonCode,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuRestrictions. +func (rsr ResourceSkuRestrictions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkusResult the List Resource Skus operation response. type ResourceSkusResult struct { autorest.Response `json:"-"` @@ -4780,6 +4912,12 @@ type RollbackStatusInfo struct { RollbackError *APIError `json:"rollbackError,omitempty"` } +// MarshalJSON is the custom marshaler for RollbackStatusInfo. +func (rsi RollbackStatusInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollingUpgradePolicy the configuration parameters used while performing a rolling upgrade. type RollingUpgradePolicy struct { // MaxBatchInstancePercent - The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The default value for this parameter is 20%. @@ -4805,6 +4943,12 @@ type RollingUpgradeProgressInfo struct { PendingInstanceCount *int32 `json:"pendingInstanceCount,omitempty"` } +// MarshalJSON is the custom marshaler for RollingUpgradeProgressInfo. +func (rupi RollingUpgradeProgressInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollingUpgradeRunningStatus information about the current running state of the overall upgrade. type RollingUpgradeRunningStatus struct { // Code - READ-ONLY; Code indicating the current status of the upgrade. Possible values include: 'RollingUpgradeStatusCodeRollingForward', 'RollingUpgradeStatusCodeCancelled', 'RollingUpgradeStatusCodeCompleted', 'RollingUpgradeStatusCodeFaulted' @@ -4817,6 +4961,12 @@ type RollingUpgradeRunningStatus struct { LastActionTime *date.Time `json:"lastActionTime,omitempty"` } +// MarshalJSON is the custom marshaler for RollingUpgradeRunningStatus. +func (rurs RollingUpgradeRunningStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollingUpgradeStatusInfo the status of the latest virtual machine scale set rolling upgrade. type RollingUpgradeStatusInfo struct { autorest.Response `json:"-"` @@ -4929,6 +5079,12 @@ type RollingUpgradeStatusInfoProperties struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for RollingUpgradeStatusInfoProperties. +func (rusip RollingUpgradeStatusInfoProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RunCommandDocument describes the properties of a Run Command. type RunCommandDocument struct { autorest.Response `json:"-"` @@ -5826,6 +5982,12 @@ type SubResourceReadOnly struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for SubResourceReadOnly. +func (srro SubResourceReadOnly) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TargetRegion describes the target region information. type TargetRegion struct { // Name - The name of the region. @@ -5875,6 +6037,12 @@ type UpgradeOperationHistoricalStatusInfo struct { Location *string `json:"location,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeOperationHistoricalStatusInfo. +func (uohsi UpgradeOperationHistoricalStatusInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpgradeOperationHistoricalStatusInfoProperties describes each OS upgrade on the Virtual Machine Scale // Set. type UpgradeOperationHistoricalStatusInfoProperties struct { @@ -5892,6 +6060,12 @@ type UpgradeOperationHistoricalStatusInfoProperties struct { RollbackInfo *RollbackStatusInfo `json:"rollbackInfo,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeOperationHistoricalStatusInfoProperties. +func (uohsip UpgradeOperationHistoricalStatusInfoProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpgradeOperationHistoryStatus information about the current running state of the overall upgrade. type UpgradeOperationHistoryStatus struct { // Code - READ-ONLY; Code indicating the current status of the upgrade. Possible values include: 'UpgradeStateRollingForward', 'UpgradeStateCancelled', 'UpgradeStateCompleted', 'UpgradeStateFaulted' @@ -5902,6 +6076,12 @@ type UpgradeOperationHistoryStatus struct { EndTime *date.Time `json:"endTime,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeOperationHistoryStatus. +func (uohs UpgradeOperationHistoryStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpgradePolicy describes an upgrade policy - automatic, manual, or rolling. type UpgradePolicy struct { // Mode - Specifies the mode of an upgrade to virtual machines in the scale set.

Possible values are:

**Manual** - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.

**Automatic** - All virtual machines in the scale set are automatically updated at the same time. Possible values include: 'Automatic', 'Manual', 'Rolling' @@ -6648,6 +6828,12 @@ type VirtualMachineHealthStatus struct { Status *InstanceViewStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineHealthStatus. +func (vmhs VirtualMachineHealthStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineIdentity identity for the virtual machine. type VirtualMachineIdentity struct { // PrincipalID - READ-ONLY; The principal id of virtual machine identity. This property will only be provided for a system assigned identity. @@ -6680,6 +6866,12 @@ type VirtualMachineIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineIdentityUserAssignedIdentitiesValue. +func (vmiAiv VirtualMachineIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineImage describes a Virtual Machine Image. type VirtualMachineImage struct { autorest.Response `json:"-"` @@ -7638,6 +7830,12 @@ type VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue. +func (vmssiAiv VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetInstanceView the instance view of a virtual machine scale set. type VirtualMachineScaleSetInstanceView struct { autorest.Response `json:"-"` @@ -7665,6 +7863,12 @@ type VirtualMachineScaleSetInstanceViewStatusesSummary struct { StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetInstanceViewStatusesSummary. +func (vmssivss VirtualMachineScaleSetInstanceViewStatusesSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetIPConfiguration describes a virtual machine scale set network profile's IP // configuration. type VirtualMachineScaleSetIPConfiguration struct { @@ -8965,6 +9169,12 @@ type VirtualMachineScaleSetSku struct { Capacity *VirtualMachineScaleSetSkuCapacity `json:"capacity,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetSku. +func (vmsss VirtualMachineScaleSetSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetSkuCapacity describes scaling information of a sku. type VirtualMachineScaleSetSkuCapacity struct { // Minimum - READ-ONLY; The minimum capacity. @@ -8977,6 +9187,12 @@ type VirtualMachineScaleSetSkuCapacity struct { ScaleType VirtualMachineScaleSetSkuScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetSkuCapacity. +func (vmsssc VirtualMachineScaleSetSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetsPerformMaintenanceFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type VirtualMachineScaleSetsPerformMaintenanceFuture struct { @@ -9902,6 +10118,12 @@ type VirtualMachineScaleSetVMExtensionsSummary struct { StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetVMExtensionsSummary. +func (vmssves VirtualMachineScaleSetVMExtensionsSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetVMInstanceIDs specifies a list of virtual machine instance IDs from the VM scale // set. type VirtualMachineScaleSetVMInstanceIDs struct { @@ -11139,6 +11361,12 @@ type VirtualMachineStatusCodeCount struct { Count *int32 `json:"count,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineStatusCodeCount. +func (vmscc VirtualMachineStatusCodeCount) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachinesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type VirtualMachinesUpdateFuture struct { diff --git a/services/compute/mgmt/2019-03-01/compute/CHANGELOG.md b/services/compute/mgmt/2019-03-01/compute/CHANGELOG.md index 52911e4cc5e4..4d66b8edac10 100644 --- a/services/compute/mgmt/2019-03-01/compute/CHANGELOG.md +++ b/services/compute/mgmt/2019-03-01/compute/CHANGELOG.md @@ -1,2 +1,45 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccessURI.MarshalJSON() ([]byte, error) +1. BootDiagnosticsInstanceView.MarshalJSON() ([]byte, error) +1. DataDiskImage.MarshalJSON() ([]byte, error) +1. GalleryDataDiskImage.MarshalJSON() ([]byte, error) +1. GalleryDiskImage.MarshalJSON() ([]byte, error) +1. GalleryIdentifier.MarshalJSON() ([]byte, error) +1. GalleryImageVersionStorageProfile.MarshalJSON() ([]byte, error) +1. GalleryOSDiskImage.MarshalJSON() ([]byte, error) +1. LogAnalyticsOperationResult.MarshalJSON() ([]byte, error) +1. LogAnalyticsOutput.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OperationValueDisplay.MarshalJSON() ([]byte, error) +1. RecoveryWalkResponse.MarshalJSON() ([]byte, error) +1. RegionalReplicationStatus.MarshalJSON() ([]byte, error) +1. ReplicationStatus.MarshalJSON() ([]byte, error) +1. ResourceSku.MarshalJSON() ([]byte, error) +1. ResourceSkuCapabilities.MarshalJSON() ([]byte, error) +1. ResourceSkuCapacity.MarshalJSON() ([]byte, error) +1. ResourceSkuCosts.MarshalJSON() ([]byte, error) +1. ResourceSkuLocationInfo.MarshalJSON() ([]byte, error) +1. ResourceSkuRestrictionInfo.MarshalJSON() ([]byte, error) +1. ResourceSkuRestrictions.MarshalJSON() ([]byte, error) +1. ResourceSkuZoneDetails.MarshalJSON() ([]byte, error) +1. RollbackStatusInfo.MarshalJSON() ([]byte, error) +1. RollingUpgradeProgressInfo.MarshalJSON() ([]byte, error) +1. RollingUpgradeRunningStatus.MarshalJSON() ([]byte, error) +1. RollingUpgradeStatusInfoProperties.MarshalJSON() ([]byte, error) +1. SubResourceReadOnly.MarshalJSON() ([]byte, error) +1. UpgradeOperationHistoricalStatusInfo.MarshalJSON() ([]byte, error) +1. UpgradeOperationHistoricalStatusInfoProperties.MarshalJSON() ([]byte, error) +1. UpgradeOperationHistoryStatus.MarshalJSON() ([]byte, error) +1. VirtualMachineHealthStatus.MarshalJSON() ([]byte, error) +1. VirtualMachineIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetInstanceViewStatusesSummary.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetSku.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetSkuCapacity.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetVMExtensionsSummary.MarshalJSON() ([]byte, error) +1. VirtualMachineStatusCodeCount.MarshalJSON() ([]byte, error) diff --git a/services/compute/mgmt/2019-03-01/compute/_meta.json b/services/compute/mgmt/2019-03-01/compute/_meta.json index 8b22d65f60b7..eac3db5703fa 100644 --- a/services/compute/mgmt/2019-03-01/compute/_meta.json +++ b/services/compute/mgmt/2019-03-01/compute/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-2019-03-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-03-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-03-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/compute/mgmt/2019-03-01/compute/models.go b/services/compute/mgmt/2019-03-01/compute/models.go index 95eb11ce55de..58810d3afb5e 100644 --- a/services/compute/mgmt/2019-03-01/compute/models.go +++ b/services/compute/mgmt/2019-03-01/compute/models.go @@ -27,6 +27,12 @@ type AccessURI struct { AccessSAS *string `json:"accessSAS,omitempty"` } +// MarshalJSON is the custom marshaler for AccessURI. +func (au AccessURI) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AdditionalCapabilities enables or disables a capability on the virtual machine or virtual machine scale // set. type AdditionalCapabilities struct { @@ -509,6 +515,12 @@ type BootDiagnosticsInstanceView struct { Status *InstanceViewStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for BootDiagnosticsInstanceView. +func (bdiv BootDiagnosticsInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from the Gallery service. type CloudError struct { Error *APIError `json:"error,omitempty"` @@ -1103,6 +1115,12 @@ type DataDiskImage struct { Lun *int32 `json:"lun,omitempty"` } +// MarshalJSON is the custom marshaler for DataDiskImage. +func (ddi DataDiskImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DedicatedHost specifies information about the Dedicated host. type DedicatedHost struct { autorest.Response `json:"-"` @@ -3688,6 +3706,12 @@ type GalleryDataDiskImage struct { HostCaching HostCaching `json:"hostCaching,omitempty"` } +// MarshalJSON is the custom marshaler for GalleryDataDiskImage. +func (gddi GalleryDataDiskImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GalleryDiskImage this is the disk image base class. type GalleryDiskImage struct { // SizeInGB - READ-ONLY; This property indicates the size of the VHD to be created. @@ -3696,12 +3720,24 @@ type GalleryDiskImage struct { HostCaching HostCaching `json:"hostCaching,omitempty"` } +// MarshalJSON is the custom marshaler for GalleryDiskImage. +func (gdi GalleryDiskImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GalleryIdentifier describes the gallery unique name. type GalleryIdentifier struct { // UniqueName - READ-ONLY; The unique name of the Shared Image Gallery. This name is generated automatically by Azure. UniqueName *string `json:"uniqueName,omitempty"` } +// MarshalJSON is the custom marshaler for GalleryIdentifier. +func (gi GalleryIdentifier) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GalleryImage specifies information about the gallery Image Definition that you want to create or update. type GalleryImage struct { autorest.Response `json:"-"` @@ -4523,6 +4559,12 @@ type GalleryImageVersionStorageProfile struct { DataDiskImages *[]GalleryDataDiskImage `json:"dataDiskImages,omitempty"` } +// MarshalJSON is the custom marshaler for GalleryImageVersionStorageProfile. +func (givsp GalleryImageVersionStorageProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GalleryList the List Galleries operation response. type GalleryList struct { autorest.Response `json:"-"` @@ -4690,6 +4732,12 @@ type GalleryOSDiskImage struct { HostCaching HostCaching `json:"hostCaching,omitempty"` } +// MarshalJSON is the custom marshaler for GalleryOSDiskImage. +func (godi GalleryOSDiskImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GalleryProperties describes the properties of a Shared Image Gallery. type GalleryProperties struct { // Description - The description of this Shared Image Gallery resource. This property is updatable. @@ -5619,12 +5667,24 @@ type LogAnalyticsOperationResult struct { Properties *LogAnalyticsOutput `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for LogAnalyticsOperationResult. +func (laor LogAnalyticsOperationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LogAnalyticsOutput logAnalytics output properties type LogAnalyticsOutput struct { // Output - READ-ONLY; Output file Uri path to blob container. Output *string `json:"output,omitempty"` } +// MarshalJSON is the custom marshaler for LogAnalyticsOutput. +func (lao LogAnalyticsOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MaintenanceRedeployStatus maintenance Operation Status. type MaintenanceRedeployStatus struct { // IsCustomerInitiatedMaintenanceAllowed - True, if customer is allowed to perform Maintenance. @@ -5728,6 +5788,12 @@ type OperationListResult struct { Value *[]OperationValue `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationValue describes the properties of a Compute Operation value. type OperationValue struct { // Origin - READ-ONLY; The origin of the compute operation. @@ -5800,6 +5866,12 @@ type OperationValueDisplay struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationValueDisplay. +func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OSDisk specifies information about the operating system disk used by the virtual machine.

For // more information about disks, see [About disks and VHDs for Azure virtual // machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). @@ -6195,6 +6267,12 @@ type RecoveryWalkResponse struct { NextPlatformUpdateDomain *int32 `json:"nextPlatformUpdateDomain,omitempty"` } +// MarshalJSON is the custom marshaler for RecoveryWalkResponse. +func (rwr RecoveryWalkResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegionalReplicationStatus this is the regional replication status. type RegionalReplicationStatus struct { // Region - READ-ONLY; The region to which the gallery Image Version is being replicated to. @@ -6207,6 +6285,12 @@ type RegionalReplicationStatus struct { Progress *int32 `json:"progress,omitempty"` } +// MarshalJSON is the custom marshaler for RegionalReplicationStatus. +func (rrs RegionalReplicationStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReplicationStatus this is the replication status of the gallery Image Version. type ReplicationStatus struct { // AggregatedState - READ-ONLY; This is the aggregated replication status based on all the regional replication status flags. Possible values include: 'Unknown', 'InProgress', 'Completed', 'Failed' @@ -6215,6 +6299,12 @@ type ReplicationStatus struct { Summary *[]RegionalReplicationStatus `json:"summary,omitempty"` } +// MarshalJSON is the custom marshaler for ReplicationStatus. +func (rs ReplicationStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RequestRateByIntervalInput api request input for LogAnalytics getRequestRateByInterval Api. type RequestRateByIntervalInput struct { // IntervalLength - Interval value in minutes used to create LogAnalytics call rate logs. Possible values include: 'ThreeMins', 'FiveMins', 'ThirtyMins', 'SixtyMins' @@ -6297,6 +6387,12 @@ type ResourceSku struct { Restrictions *[]ResourceSkuRestrictions `json:"restrictions,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSku. +func (rs ResourceSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCapabilities describes The SKU capabilities object. type ResourceSkuCapabilities struct { // Name - READ-ONLY; An invariant to describe the feature. @@ -6305,6 +6401,12 @@ type ResourceSkuCapabilities struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapabilities. +func (rsc ResourceSkuCapabilities) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCapacity describes scaling information of a SKU. type ResourceSkuCapacity struct { // Minimum - READ-ONLY; The minimum capacity. @@ -6317,6 +6419,12 @@ type ResourceSkuCapacity struct { ScaleType ResourceSkuCapacityScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapacity. +func (rsc ResourceSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCosts describes metadata for retrieving price info. type ResourceSkuCosts struct { // MeterID - READ-ONLY; Used for querying price from commerce. @@ -6327,6 +6435,12 @@ type ResourceSkuCosts struct { ExtendedUnit *string `json:"extendedUnit,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCosts. +func (rsc ResourceSkuCosts) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuLocationInfo ... type ResourceSkuLocationInfo struct { // Location - READ-ONLY; Location of the SKU @@ -6337,6 +6451,12 @@ type ResourceSkuLocationInfo struct { ZoneDetails *[]ResourceSkuZoneDetails `json:"zoneDetails,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuLocationInfo. +func (rsli ResourceSkuLocationInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuRestrictionInfo ... type ResourceSkuRestrictionInfo struct { // Locations - READ-ONLY; Locations where the SKU is restricted @@ -6345,6 +6465,12 @@ type ResourceSkuRestrictionInfo struct { Zones *[]string `json:"zones,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuRestrictionInfo. +func (rsri ResourceSkuRestrictionInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuRestrictions describes scaling information of a SKU. type ResourceSkuRestrictions struct { // Type - READ-ONLY; The type of restrictions. Possible values include: 'Location', 'Zone' @@ -6357,6 +6483,12 @@ type ResourceSkuRestrictions struct { ReasonCode ResourceSkuRestrictionsReasonCode `json:"reasonCode,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuRestrictions. +func (rsr ResourceSkuRestrictions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkusResult the List Resource Skus operation response. type ResourceSkusResult struct { autorest.Response `json:"-"` @@ -6524,6 +6656,12 @@ type ResourceSkuZoneDetails struct { Capabilities *[]ResourceSkuCapabilities `json:"capabilities,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuZoneDetails. +func (rszd ResourceSkuZoneDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollbackStatusInfo information about rollback on failed VM instances after a OS Upgrade operation. type RollbackStatusInfo struct { // SuccessfullyRolledbackInstanceCount - READ-ONLY; The number of instances which have been successfully rolled back. @@ -6534,6 +6672,12 @@ type RollbackStatusInfo struct { RollbackError *APIError `json:"rollbackError,omitempty"` } +// MarshalJSON is the custom marshaler for RollbackStatusInfo. +func (rsi RollbackStatusInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollingUpgradePolicy the configuration parameters used while performing a rolling upgrade. type RollingUpgradePolicy struct { // MaxBatchInstancePercent - The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The default value for this parameter is 20%. @@ -6559,6 +6703,12 @@ type RollingUpgradeProgressInfo struct { PendingInstanceCount *int32 `json:"pendingInstanceCount,omitempty"` } +// MarshalJSON is the custom marshaler for RollingUpgradeProgressInfo. +func (rupi RollingUpgradeProgressInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollingUpgradeRunningStatus information about the current running state of the overall upgrade. type RollingUpgradeRunningStatus struct { // Code - READ-ONLY; Code indicating the current status of the upgrade. Possible values include: 'RollingUpgradeStatusCodeRollingForward', 'RollingUpgradeStatusCodeCancelled', 'RollingUpgradeStatusCodeCompleted', 'RollingUpgradeStatusCodeFaulted' @@ -6571,6 +6721,12 @@ type RollingUpgradeRunningStatus struct { LastActionTime *date.Time `json:"lastActionTime,omitempty"` } +// MarshalJSON is the custom marshaler for RollingUpgradeRunningStatus. +func (rurs RollingUpgradeRunningStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollingUpgradeStatusInfo the status of the latest virtual machine scale set rolling upgrade. type RollingUpgradeStatusInfo struct { autorest.Response `json:"-"` @@ -6683,6 +6839,12 @@ type RollingUpgradeStatusInfoProperties struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for RollingUpgradeStatusInfoProperties. +func (rusip RollingUpgradeStatusInfoProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RunCommandDocument describes the properties of a Run Command. type RunCommandDocument struct { autorest.Response `json:"-"` @@ -7606,6 +7768,12 @@ type SubResourceReadOnly struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for SubResourceReadOnly. +func (srro SubResourceReadOnly) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TargetRegion describes the target region information. type TargetRegion struct { // Name - The name of the region. @@ -7665,6 +7833,12 @@ type UpgradeOperationHistoricalStatusInfo struct { Location *string `json:"location,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeOperationHistoricalStatusInfo. +func (uohsi UpgradeOperationHistoricalStatusInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpgradeOperationHistoricalStatusInfoProperties describes each OS upgrade on the Virtual Machine Scale // Set. type UpgradeOperationHistoricalStatusInfoProperties struct { @@ -7682,6 +7856,12 @@ type UpgradeOperationHistoricalStatusInfoProperties struct { RollbackInfo *RollbackStatusInfo `json:"rollbackInfo,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeOperationHistoricalStatusInfoProperties. +func (uohsip UpgradeOperationHistoricalStatusInfoProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpgradeOperationHistoryStatus information about the current running state of the overall upgrade. type UpgradeOperationHistoryStatus struct { // Code - READ-ONLY; Code indicating the current status of the upgrade. Possible values include: 'UpgradeStateRollingForward', 'UpgradeStateCancelled', 'UpgradeStateCompleted', 'UpgradeStateFaulted' @@ -7692,6 +7872,12 @@ type UpgradeOperationHistoryStatus struct { EndTime *date.Time `json:"endTime,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeOperationHistoryStatus. +func (uohs UpgradeOperationHistoryStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpgradePolicy describes an upgrade policy - automatic, manual, or rolling. type UpgradePolicy struct { // Mode - Specifies the mode of an upgrade to virtual machines in the scale set.

Possible values are:

**Manual** - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.

**Automatic** - All virtual machines in the scale set are automatically updated at the same time. Possible values include: 'Automatic', 'Manual', 'Rolling' @@ -8446,6 +8632,12 @@ type VirtualMachineHealthStatus struct { Status *InstanceViewStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineHealthStatus. +func (vmhs VirtualMachineHealthStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineIdentity identity for the virtual machine. type VirtualMachineIdentity struct { // PrincipalID - READ-ONLY; The principal id of virtual machine identity. This property will only be provided for a system assigned identity. @@ -8478,6 +8670,12 @@ type VirtualMachineIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineIdentityUserAssignedIdentitiesValue. +func (vmiAiv VirtualMachineIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineImage describes a Virtual Machine Image. type VirtualMachineImage struct { autorest.Response `json:"-"` @@ -9465,6 +9663,12 @@ type VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue. +func (vmssiAiv VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetInstanceView the instance view of a virtual machine scale set. type VirtualMachineScaleSetInstanceView struct { autorest.Response `json:"-"` @@ -9492,6 +9696,12 @@ type VirtualMachineScaleSetInstanceViewStatusesSummary struct { StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetInstanceViewStatusesSummary. +func (vmssivss VirtualMachineScaleSetInstanceViewStatusesSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetIPConfiguration describes a virtual machine scale set network profile's IP // configuration. type VirtualMachineScaleSetIPConfiguration struct { @@ -10802,6 +11012,12 @@ type VirtualMachineScaleSetSku struct { Capacity *VirtualMachineScaleSetSkuCapacity `json:"capacity,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetSku. +func (vmsss VirtualMachineScaleSetSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetSkuCapacity describes scaling information of a sku. type VirtualMachineScaleSetSkuCapacity struct { // Minimum - READ-ONLY; The minimum capacity. @@ -10814,6 +11030,12 @@ type VirtualMachineScaleSetSkuCapacity struct { ScaleType VirtualMachineScaleSetSkuScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetSkuCapacity. +func (vmsssc VirtualMachineScaleSetSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetsPerformMaintenanceFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type VirtualMachineScaleSetsPerformMaintenanceFuture struct { @@ -11749,6 +11971,12 @@ type VirtualMachineScaleSetVMExtensionsSummary struct { StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetVMExtensionsSummary. +func (vmssves VirtualMachineScaleSetVMExtensionsSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetVMInstanceIDs specifies a list of virtual machine instance IDs from the VM scale // set. type VirtualMachineScaleSetVMInstanceIDs struct { @@ -13015,6 +13243,12 @@ type VirtualMachineStatusCodeCount struct { Count *int32 `json:"count,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineStatusCodeCount. +func (vmscc VirtualMachineStatusCodeCount) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachinesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type VirtualMachinesUpdateFuture struct { diff --git a/services/compute/mgmt/2019-07-01/compute/CHANGELOG.md b/services/compute/mgmt/2019-07-01/compute/CHANGELOG.md index 52911e4cc5e4..79041df8f55e 100644 --- a/services/compute/mgmt/2019-07-01/compute/CHANGELOG.md +++ b/services/compute/mgmt/2019-07-01/compute/CHANGELOG.md @@ -1,2 +1,41 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccessURI.MarshalJSON() ([]byte, error) +1. BootDiagnosticsInstanceView.MarshalJSON() ([]byte, error) +1. DataDiskImage.MarshalJSON() ([]byte, error) +1. GalleryIdentifier.MarshalJSON() ([]byte, error) +1. LogAnalyticsOperationResult.MarshalJSON() ([]byte, error) +1. LogAnalyticsOutput.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OperationValueDisplay.MarshalJSON() ([]byte, error) +1. RecoveryWalkResponse.MarshalJSON() ([]byte, error) +1. RegionalReplicationStatus.MarshalJSON() ([]byte, error) +1. ReplicationStatus.MarshalJSON() ([]byte, error) +1. ResourceSku.MarshalJSON() ([]byte, error) +1. ResourceSkuCapabilities.MarshalJSON() ([]byte, error) +1. ResourceSkuCapacity.MarshalJSON() ([]byte, error) +1. ResourceSkuCosts.MarshalJSON() ([]byte, error) +1. ResourceSkuLocationInfo.MarshalJSON() ([]byte, error) +1. ResourceSkuRestrictionInfo.MarshalJSON() ([]byte, error) +1. ResourceSkuRestrictions.MarshalJSON() ([]byte, error) +1. ResourceSkuZoneDetails.MarshalJSON() ([]byte, error) +1. RollbackStatusInfo.MarshalJSON() ([]byte, error) +1. RollingUpgradeProgressInfo.MarshalJSON() ([]byte, error) +1. RollingUpgradeRunningStatus.MarshalJSON() ([]byte, error) +1. RollingUpgradeStatusInfoProperties.MarshalJSON() ([]byte, error) +1. SubResourceReadOnly.MarshalJSON() ([]byte, error) +1. UpgradeOperationHistoricalStatusInfo.MarshalJSON() ([]byte, error) +1. UpgradeOperationHistoricalStatusInfoProperties.MarshalJSON() ([]byte, error) +1. UpgradeOperationHistoryStatus.MarshalJSON() ([]byte, error) +1. VirtualMachineHealthStatus.MarshalJSON() ([]byte, error) +1. VirtualMachineIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetInstanceViewStatusesSummary.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetSku.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetSkuCapacity.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetVMExtensionsSummary.MarshalJSON() ([]byte, error) +1. VirtualMachineStatusCodeCount.MarshalJSON() ([]byte, error) diff --git a/services/compute/mgmt/2019-07-01/compute/_meta.json b/services/compute/mgmt/2019-07-01/compute/_meta.json index 7bf2cd7a4af8..0a135dc4bd83 100644 --- a/services/compute/mgmt/2019-07-01/compute/_meta.json +++ b/services/compute/mgmt/2019-07-01/compute/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-2019-07", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/compute/mgmt/2019-07-01/compute/models.go b/services/compute/mgmt/2019-07-01/compute/models.go index 1da35a2c791f..22e9a488220b 100644 --- a/services/compute/mgmt/2019-07-01/compute/models.go +++ b/services/compute/mgmt/2019-07-01/compute/models.go @@ -27,6 +27,12 @@ type AccessURI struct { AccessSAS *string `json:"accessSAS,omitempty"` } +// MarshalJSON is the custom marshaler for AccessURI. +func (au AccessURI) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AdditionalCapabilities enables or disables a capability on the virtual machine or virtual machine scale // set. type AdditionalCapabilities struct { @@ -509,6 +515,12 @@ type BootDiagnosticsInstanceView struct { Status *InstanceViewStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for BootDiagnosticsInstanceView. +func (bdiv BootDiagnosticsInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from the Compute service. type CloudError struct { Error *APIError `json:"error,omitempty"` @@ -1143,6 +1155,12 @@ type DataDiskImage struct { Lun *int32 `json:"lun,omitempty"` } +// MarshalJSON is the custom marshaler for DataDiskImage. +func (ddi DataDiskImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DedicatedHost specifies information about the Dedicated host. type DedicatedHost struct { autorest.Response `json:"-"` @@ -4526,6 +4544,12 @@ type GalleryIdentifier struct { UniqueName *string `json:"uniqueName,omitempty"` } +// MarshalJSON is the custom marshaler for GalleryIdentifier. +func (gi GalleryIdentifier) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GalleryImage specifies information about the gallery Image Definition that you want to create or update. type GalleryImage struct { autorest.Response `json:"-"` @@ -6746,12 +6770,24 @@ type LogAnalyticsOperationResult struct { Properties *LogAnalyticsOutput `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for LogAnalyticsOperationResult. +func (laor LogAnalyticsOperationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LogAnalyticsOutput logAnalytics output properties type LogAnalyticsOutput struct { // Output - READ-ONLY; Output file Uri path to blob container. Output *string `json:"output,omitempty"` } +// MarshalJSON is the custom marshaler for LogAnalyticsOutput. +func (lao LogAnalyticsOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MaintenanceRedeployStatus maintenance Operation Status. type MaintenanceRedeployStatus struct { // IsCustomerInitiatedMaintenanceAllowed - True, if customer is allowed to perform Maintenance. @@ -6857,6 +6893,12 @@ type OperationListResult struct { Value *[]OperationValue `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationValue describes the properties of a Compute Operation value. type OperationValue struct { // Origin - READ-ONLY; The origin of the compute operation. @@ -6929,6 +6971,12 @@ type OperationValueDisplay struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationValueDisplay. +func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OSDisk specifies information about the operating system disk used by the virtual machine.

For // more information about disks, see [About disks and VHDs for Azure virtual // machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). @@ -7330,6 +7378,12 @@ type RecoveryWalkResponse struct { NextPlatformUpdateDomain *int32 `json:"nextPlatformUpdateDomain,omitempty"` } +// MarshalJSON is the custom marshaler for RecoveryWalkResponse. +func (rwr RecoveryWalkResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegionalReplicationStatus this is the regional replication status. type RegionalReplicationStatus struct { // Region - READ-ONLY; The region to which the gallery Image Version is being replicated to. @@ -7342,6 +7396,12 @@ type RegionalReplicationStatus struct { Progress *int32 `json:"progress,omitempty"` } +// MarshalJSON is the custom marshaler for RegionalReplicationStatus. +func (rrs RegionalReplicationStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReplicationStatus this is the replication status of the gallery Image Version. type ReplicationStatus struct { // AggregatedState - READ-ONLY; This is the aggregated replication status based on all the regional replication status flags. Possible values include: 'Unknown', 'InProgress', 'Completed', 'Failed' @@ -7350,6 +7410,12 @@ type ReplicationStatus struct { Summary *[]RegionalReplicationStatus `json:"summary,omitempty"` } +// MarshalJSON is the custom marshaler for ReplicationStatus. +func (rs ReplicationStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RequestRateByIntervalInput api request input for LogAnalytics getRequestRateByInterval Api. type RequestRateByIntervalInput struct { // IntervalLength - Interval value in minutes used to create LogAnalytics call rate logs. Possible values include: 'ThreeMins', 'FiveMins', 'ThirtyMins', 'SixtyMins' @@ -7432,6 +7498,12 @@ type ResourceSku struct { Restrictions *[]ResourceSkuRestrictions `json:"restrictions,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSku. +func (rs ResourceSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCapabilities describes The SKU capabilities object. type ResourceSkuCapabilities struct { // Name - READ-ONLY; An invariant to describe the feature. @@ -7440,6 +7512,12 @@ type ResourceSkuCapabilities struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapabilities. +func (rsc ResourceSkuCapabilities) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCapacity describes scaling information of a SKU. type ResourceSkuCapacity struct { // Minimum - READ-ONLY; The minimum capacity. @@ -7452,6 +7530,12 @@ type ResourceSkuCapacity struct { ScaleType ResourceSkuCapacityScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapacity. +func (rsc ResourceSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCosts describes metadata for retrieving price info. type ResourceSkuCosts struct { // MeterID - READ-ONLY; Used for querying price from commerce. @@ -7462,6 +7546,12 @@ type ResourceSkuCosts struct { ExtendedUnit *string `json:"extendedUnit,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCosts. +func (rsc ResourceSkuCosts) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuLocationInfo ... type ResourceSkuLocationInfo struct { // Location - READ-ONLY; Location of the SKU @@ -7472,6 +7562,12 @@ type ResourceSkuLocationInfo struct { ZoneDetails *[]ResourceSkuZoneDetails `json:"zoneDetails,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuLocationInfo. +func (rsli ResourceSkuLocationInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuRestrictionInfo ... type ResourceSkuRestrictionInfo struct { // Locations - READ-ONLY; Locations where the SKU is restricted @@ -7480,6 +7576,12 @@ type ResourceSkuRestrictionInfo struct { Zones *[]string `json:"zones,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuRestrictionInfo. +func (rsri ResourceSkuRestrictionInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuRestrictions describes scaling information of a SKU. type ResourceSkuRestrictions struct { // Type - READ-ONLY; The type of restrictions. Possible values include: 'Location', 'Zone' @@ -7492,6 +7594,12 @@ type ResourceSkuRestrictions struct { ReasonCode ResourceSkuRestrictionsReasonCode `json:"reasonCode,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuRestrictions. +func (rsr ResourceSkuRestrictions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkusResult the List Resource Skus operation response. type ResourceSkusResult struct { autorest.Response `json:"-"` @@ -7659,6 +7767,12 @@ type ResourceSkuZoneDetails struct { Capabilities *[]ResourceSkuCapabilities `json:"capabilities,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuZoneDetails. +func (rszd ResourceSkuZoneDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollbackStatusInfo information about rollback on failed VM instances after a OS Upgrade operation. type RollbackStatusInfo struct { // SuccessfullyRolledbackInstanceCount - READ-ONLY; The number of instances which have been successfully rolled back. @@ -7669,6 +7783,12 @@ type RollbackStatusInfo struct { RollbackError *APIError `json:"rollbackError,omitempty"` } +// MarshalJSON is the custom marshaler for RollbackStatusInfo. +func (rsi RollbackStatusInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollingUpgradePolicy the configuration parameters used while performing a rolling upgrade. type RollingUpgradePolicy struct { // MaxBatchInstancePercent - The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The default value for this parameter is 20%. @@ -7694,6 +7814,12 @@ type RollingUpgradeProgressInfo struct { PendingInstanceCount *int32 `json:"pendingInstanceCount,omitempty"` } +// MarshalJSON is the custom marshaler for RollingUpgradeProgressInfo. +func (rupi RollingUpgradeProgressInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollingUpgradeRunningStatus information about the current running state of the overall upgrade. type RollingUpgradeRunningStatus struct { // Code - READ-ONLY; Code indicating the current status of the upgrade. Possible values include: 'RollingUpgradeStatusCodeRollingForward', 'RollingUpgradeStatusCodeCancelled', 'RollingUpgradeStatusCodeCompleted', 'RollingUpgradeStatusCodeFaulted' @@ -7706,6 +7832,12 @@ type RollingUpgradeRunningStatus struct { LastActionTime *date.Time `json:"lastActionTime,omitempty"` } +// MarshalJSON is the custom marshaler for RollingUpgradeRunningStatus. +func (rurs RollingUpgradeRunningStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollingUpgradeStatusInfo the status of the latest virtual machine scale set rolling upgrade. type RollingUpgradeStatusInfo struct { autorest.Response `json:"-"` @@ -7818,6 +7950,12 @@ type RollingUpgradeStatusInfoProperties struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for RollingUpgradeStatusInfoProperties. +func (rusip RollingUpgradeStatusInfoProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RunCommandDocument describes the properties of a Run Command. type RunCommandDocument struct { autorest.Response `json:"-"` @@ -8748,6 +8886,12 @@ type SubResourceReadOnly struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for SubResourceReadOnly. +func (srro SubResourceReadOnly) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SubResourceWithColocationStatus ... type SubResourceWithColocationStatus struct { // ColocationStatus - Describes colocation status of a resource in the Proximity Placement Group. @@ -8815,6 +8959,12 @@ type UpgradeOperationHistoricalStatusInfo struct { Location *string `json:"location,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeOperationHistoricalStatusInfo. +func (uohsi UpgradeOperationHistoricalStatusInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpgradeOperationHistoricalStatusInfoProperties describes each OS upgrade on the Virtual Machine Scale // Set. type UpgradeOperationHistoricalStatusInfoProperties struct { @@ -8832,6 +8982,12 @@ type UpgradeOperationHistoricalStatusInfoProperties struct { RollbackInfo *RollbackStatusInfo `json:"rollbackInfo,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeOperationHistoricalStatusInfoProperties. +func (uohsip UpgradeOperationHistoricalStatusInfoProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpgradeOperationHistoryStatus information about the current running state of the overall upgrade. type UpgradeOperationHistoryStatus struct { // Code - READ-ONLY; Code indicating the current status of the upgrade. Possible values include: 'UpgradeStateRollingForward', 'UpgradeStateCancelled', 'UpgradeStateCompleted', 'UpgradeStateFaulted' @@ -8842,6 +8998,12 @@ type UpgradeOperationHistoryStatus struct { EndTime *date.Time `json:"endTime,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeOperationHistoryStatus. +func (uohs UpgradeOperationHistoryStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpgradePolicy describes an upgrade policy - automatic, manual, or rolling. type UpgradePolicy struct { // Mode - Specifies the mode of an upgrade to virtual machines in the scale set.

Possible values are:

**Manual** - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.

**Automatic** - All virtual machines in the scale set are automatically updated at the same time. Possible values include: 'Automatic', 'Manual', 'Rolling' @@ -9596,6 +9758,12 @@ type VirtualMachineHealthStatus struct { Status *InstanceViewStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineHealthStatus. +func (vmhs VirtualMachineHealthStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineIdentity identity for the virtual machine. type VirtualMachineIdentity struct { // PrincipalID - READ-ONLY; The principal id of virtual machine identity. This property will only be provided for a system assigned identity. @@ -9628,6 +9796,12 @@ type VirtualMachineIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineIdentityUserAssignedIdentitiesValue. +func (vmiAiv VirtualMachineIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineImage describes a Virtual Machine Image. type VirtualMachineImage struct { autorest.Response `json:"-"` @@ -10744,6 +10918,12 @@ type VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue. +func (vmssiAiv VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetInstanceView the instance view of a virtual machine scale set. type VirtualMachineScaleSetInstanceView struct { autorest.Response `json:"-"` @@ -10771,6 +10951,12 @@ type VirtualMachineScaleSetInstanceViewStatusesSummary struct { StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetInstanceViewStatusesSummary. +func (vmssivss VirtualMachineScaleSetInstanceViewStatusesSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetIPConfiguration describes a virtual machine scale set network profile's IP // configuration. type VirtualMachineScaleSetIPConfiguration struct { @@ -12085,6 +12271,12 @@ type VirtualMachineScaleSetSku struct { Capacity *VirtualMachineScaleSetSkuCapacity `json:"capacity,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetSku. +func (vmsss VirtualMachineScaleSetSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetSkuCapacity describes scaling information of a sku. type VirtualMachineScaleSetSkuCapacity struct { // Minimum - READ-ONLY; The minimum capacity. @@ -12097,6 +12289,12 @@ type VirtualMachineScaleSetSkuCapacity struct { ScaleType VirtualMachineScaleSetSkuScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetSkuCapacity. +func (vmsssc VirtualMachineScaleSetSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetsPerformMaintenanceFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type VirtualMachineScaleSetsPerformMaintenanceFuture struct { @@ -13112,6 +13310,12 @@ type VirtualMachineScaleSetVMExtensionsSummary struct { StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetVMExtensionsSummary. +func (vmssves VirtualMachineScaleSetVMExtensionsSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetVMExtensionsUpdateFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type VirtualMachineScaleSetVMExtensionsUpdateFuture struct { @@ -14458,6 +14662,12 @@ type VirtualMachineStatusCodeCount struct { Count *int32 `json:"count,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineStatusCodeCount. +func (vmscc VirtualMachineStatusCodeCount) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachinesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type VirtualMachinesUpdateFuture struct { diff --git a/services/compute/mgmt/2019-12-01/compute/CHANGELOG.md b/services/compute/mgmt/2019-12-01/compute/CHANGELOG.md index 52911e4cc5e4..36998b6d59fb 100644 --- a/services/compute/mgmt/2019-12-01/compute/CHANGELOG.md +++ b/services/compute/mgmt/2019-12-01/compute/CHANGELOG.md @@ -1,2 +1,43 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccessURI.MarshalJSON() ([]byte, error) +1. BootDiagnosticsInstanceView.MarshalJSON() ([]byte, error) +1. DataDiskImage.MarshalJSON() ([]byte, error) +1. GalleryIdentifier.MarshalJSON() ([]byte, error) +1. LogAnalyticsOperationResult.MarshalJSON() ([]byte, error) +1. LogAnalyticsOutput.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OperationValueDisplay.MarshalJSON() ([]byte, error) +1. OrchestrationServiceSummary.MarshalJSON() ([]byte, error) +1. RecoveryWalkResponse.MarshalJSON() ([]byte, error) +1. RegionalReplicationStatus.MarshalJSON() ([]byte, error) +1. ReplicationStatus.MarshalJSON() ([]byte, error) +1. ResourceSku.MarshalJSON() ([]byte, error) +1. ResourceSkuCapabilities.MarshalJSON() ([]byte, error) +1. ResourceSkuCapacity.MarshalJSON() ([]byte, error) +1. ResourceSkuCosts.MarshalJSON() ([]byte, error) +1. ResourceSkuLocationInfo.MarshalJSON() ([]byte, error) +1. ResourceSkuRestrictionInfo.MarshalJSON() ([]byte, error) +1. ResourceSkuRestrictions.MarshalJSON() ([]byte, error) +1. ResourceSkuZoneDetails.MarshalJSON() ([]byte, error) +1. RollbackStatusInfo.MarshalJSON() ([]byte, error) +1. RollingUpgradeProgressInfo.MarshalJSON() ([]byte, error) +1. RollingUpgradeRunningStatus.MarshalJSON() ([]byte, error) +1. RollingUpgradeStatusInfoProperties.MarshalJSON() ([]byte, error) +1. ShareInfoElement.MarshalJSON() ([]byte, error) +1. SubResourceReadOnly.MarshalJSON() ([]byte, error) +1. UpgradeOperationHistoricalStatusInfo.MarshalJSON() ([]byte, error) +1. UpgradeOperationHistoricalStatusInfoProperties.MarshalJSON() ([]byte, error) +1. UpgradeOperationHistoryStatus.MarshalJSON() ([]byte, error) +1. VirtualMachineHealthStatus.MarshalJSON() ([]byte, error) +1. VirtualMachineIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetInstanceViewStatusesSummary.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetSku.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetSkuCapacity.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetVMExtensionsSummary.MarshalJSON() ([]byte, error) +1. VirtualMachineStatusCodeCount.MarshalJSON() ([]byte, error) diff --git a/services/compute/mgmt/2019-12-01/compute/_meta.json b/services/compute/mgmt/2019-12-01/compute/_meta.json index 2bec961980e8..19bf9006ede8 100644 --- a/services/compute/mgmt/2019-12-01/compute/_meta.json +++ b/services/compute/mgmt/2019-12-01/compute/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-2019-12-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-12-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-12-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/compute/mgmt/2019-12-01/compute/models.go b/services/compute/mgmt/2019-12-01/compute/models.go index 5d5a4e98b4ac..4cb1fad422d4 100644 --- a/services/compute/mgmt/2019-12-01/compute/models.go +++ b/services/compute/mgmt/2019-12-01/compute/models.go @@ -27,6 +27,12 @@ type AccessURI struct { AccessSAS *string `json:"accessSAS,omitempty"` } +// MarshalJSON is the custom marshaler for AccessURI. +func (au AccessURI) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AdditionalCapabilities enables or disables a capability on the virtual machine or virtual machine scale // set. type AdditionalCapabilities struct { @@ -509,6 +515,12 @@ type BootDiagnosticsInstanceView struct { Status *InstanceViewStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for BootDiagnosticsInstanceView. +func (bdiv BootDiagnosticsInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from the Compute service. type CloudError struct { Error *APIError `json:"error,omitempty"` @@ -1148,6 +1160,12 @@ type DataDiskImage struct { Lun *int32 `json:"lun,omitempty"` } +// MarshalJSON is the custom marshaler for DataDiskImage. +func (ddi DataDiskImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DataDiskImageEncryption contains encryption settings for a data disk image. type DataDiskImageEncryption struct { // Lun - This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine. @@ -4655,6 +4673,12 @@ type GalleryIdentifier struct { UniqueName *string `json:"uniqueName,omitempty"` } +// MarshalJSON is the custom marshaler for GalleryIdentifier. +func (gi GalleryIdentifier) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GalleryImage specifies information about the gallery Image Definition that you want to create or update. type GalleryImage struct { autorest.Response `json:"-"` @@ -6974,12 +6998,24 @@ type LogAnalyticsOperationResult struct { Properties *LogAnalyticsOutput `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for LogAnalyticsOperationResult. +func (laor LogAnalyticsOperationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LogAnalyticsOutput logAnalytics output properties type LogAnalyticsOutput struct { // Output - READ-ONLY; Output file Uri path to blob container. Output *string `json:"output,omitempty"` } +// MarshalJSON is the custom marshaler for LogAnalyticsOutput. +func (lao LogAnalyticsOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MaintenanceRedeployStatus maintenance Operation Status. type MaintenanceRedeployStatus struct { // IsCustomerInitiatedMaintenanceAllowed - True, if customer is allowed to perform Maintenance. @@ -7085,6 +7121,12 @@ type OperationListResult struct { Value *[]OperationValue `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationValue describes the properties of a Compute Operation value. type OperationValue struct { // Origin - READ-ONLY; The origin of the compute operation. @@ -7157,6 +7199,12 @@ type OperationValueDisplay struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationValueDisplay. +func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OrchestrationServiceStateInput the input for OrchestrationServiceState type OrchestrationServiceStateInput struct { // ServiceName - The name of the service. Possible values include: 'AutomaticRepairs' @@ -7173,6 +7221,12 @@ type OrchestrationServiceSummary struct { ServiceState OrchestrationServiceState `json:"serviceState,omitempty"` } +// MarshalJSON is the custom marshaler for OrchestrationServiceSummary. +func (oss OrchestrationServiceSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OSDisk specifies information about the operating system disk used by the virtual machine.

For // more information about disks, see [About disks and VHDs for Azure virtual // machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). @@ -7580,6 +7634,12 @@ type RecoveryWalkResponse struct { NextPlatformUpdateDomain *int32 `json:"nextPlatformUpdateDomain,omitempty"` } +// MarshalJSON is the custom marshaler for RecoveryWalkResponse. +func (rwr RecoveryWalkResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegionalReplicationStatus this is the regional replication status. type RegionalReplicationStatus struct { // Region - READ-ONLY; The region to which the gallery Image Version is being replicated to. @@ -7592,6 +7652,12 @@ type RegionalReplicationStatus struct { Progress *int32 `json:"progress,omitempty"` } +// MarshalJSON is the custom marshaler for RegionalReplicationStatus. +func (rrs RegionalReplicationStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReplicationStatus this is the replication status of the gallery Image Version. type ReplicationStatus struct { // AggregatedState - READ-ONLY; This is the aggregated replication status based on all the regional replication status flags. Possible values include: 'Unknown', 'InProgress', 'Completed', 'Failed' @@ -7600,6 +7666,12 @@ type ReplicationStatus struct { Summary *[]RegionalReplicationStatus `json:"summary,omitempty"` } +// MarshalJSON is the custom marshaler for ReplicationStatus. +func (rs ReplicationStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RequestRateByIntervalInput api request input for LogAnalytics getRequestRateByInterval Api. type RequestRateByIntervalInput struct { // IntervalLength - Interval value in minutes used to create LogAnalytics call rate logs. Possible values include: 'ThreeMins', 'FiveMins', 'ThirtyMins', 'SixtyMins' @@ -7682,6 +7754,12 @@ type ResourceSku struct { Restrictions *[]ResourceSkuRestrictions `json:"restrictions,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSku. +func (rs ResourceSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCapabilities describes The SKU capabilities object. type ResourceSkuCapabilities struct { // Name - READ-ONLY; An invariant to describe the feature. @@ -7690,6 +7768,12 @@ type ResourceSkuCapabilities struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapabilities. +func (rsc ResourceSkuCapabilities) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCapacity describes scaling information of a SKU. type ResourceSkuCapacity struct { // Minimum - READ-ONLY; The minimum capacity. @@ -7702,6 +7786,12 @@ type ResourceSkuCapacity struct { ScaleType ResourceSkuCapacityScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapacity. +func (rsc ResourceSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCosts describes metadata for retrieving price info. type ResourceSkuCosts struct { // MeterID - READ-ONLY; Used for querying price from commerce. @@ -7712,6 +7802,12 @@ type ResourceSkuCosts struct { ExtendedUnit *string `json:"extendedUnit,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCosts. +func (rsc ResourceSkuCosts) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuLocationInfo ... type ResourceSkuLocationInfo struct { // Location - READ-ONLY; Location of the SKU @@ -7722,6 +7818,12 @@ type ResourceSkuLocationInfo struct { ZoneDetails *[]ResourceSkuZoneDetails `json:"zoneDetails,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuLocationInfo. +func (rsli ResourceSkuLocationInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuRestrictionInfo ... type ResourceSkuRestrictionInfo struct { // Locations - READ-ONLY; Locations where the SKU is restricted @@ -7730,6 +7832,12 @@ type ResourceSkuRestrictionInfo struct { Zones *[]string `json:"zones,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuRestrictionInfo. +func (rsri ResourceSkuRestrictionInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuRestrictions describes scaling information of a SKU. type ResourceSkuRestrictions struct { // Type - READ-ONLY; The type of restrictions. Possible values include: 'Location', 'Zone' @@ -7742,6 +7850,12 @@ type ResourceSkuRestrictions struct { ReasonCode ResourceSkuRestrictionsReasonCode `json:"reasonCode,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuRestrictions. +func (rsr ResourceSkuRestrictions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkusResult the List Resource Skus operation response. type ResourceSkusResult struct { autorest.Response `json:"-"` @@ -7909,6 +8023,12 @@ type ResourceSkuZoneDetails struct { Capabilities *[]ResourceSkuCapabilities `json:"capabilities,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuZoneDetails. +func (rszd ResourceSkuZoneDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollbackStatusInfo information about rollback on failed VM instances after a OS Upgrade operation. type RollbackStatusInfo struct { // SuccessfullyRolledbackInstanceCount - READ-ONLY; The number of instances which have been successfully rolled back. @@ -7919,6 +8039,12 @@ type RollbackStatusInfo struct { RollbackError *APIError `json:"rollbackError,omitempty"` } +// MarshalJSON is the custom marshaler for RollbackStatusInfo. +func (rsi RollbackStatusInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollingUpgradePolicy the configuration parameters used while performing a rolling upgrade. type RollingUpgradePolicy struct { // MaxBatchInstancePercent - The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The default value for this parameter is 20%. @@ -7944,6 +8070,12 @@ type RollingUpgradeProgressInfo struct { PendingInstanceCount *int32 `json:"pendingInstanceCount,omitempty"` } +// MarshalJSON is the custom marshaler for RollingUpgradeProgressInfo. +func (rupi RollingUpgradeProgressInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollingUpgradeRunningStatus information about the current running state of the overall upgrade. type RollingUpgradeRunningStatus struct { // Code - READ-ONLY; Code indicating the current status of the upgrade. Possible values include: 'RollingUpgradeStatusCodeRollingForward', 'RollingUpgradeStatusCodeCancelled', 'RollingUpgradeStatusCodeCompleted', 'RollingUpgradeStatusCodeFaulted' @@ -7956,6 +8088,12 @@ type RollingUpgradeRunningStatus struct { LastActionTime *date.Time `json:"lastActionTime,omitempty"` } +// MarshalJSON is the custom marshaler for RollingUpgradeRunningStatus. +func (rurs RollingUpgradeRunningStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollingUpgradeStatusInfo the status of the latest virtual machine scale set rolling upgrade. type RollingUpgradeStatusInfo struct { autorest.Response `json:"-"` @@ -8068,6 +8206,12 @@ type RollingUpgradeStatusInfoProperties struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for RollingUpgradeStatusInfoProperties. +func (rusip RollingUpgradeStatusInfoProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RunCommandDocument describes the properties of a Run Command. type RunCommandDocument struct { autorest.Response `json:"-"` @@ -8315,6 +8459,12 @@ type ShareInfoElement struct { VMURI *string `json:"vmUri,omitempty"` } +// MarshalJSON is the custom marshaler for ShareInfoElement. +func (sie ShareInfoElement) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Sku describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware // the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU // name. @@ -9335,6 +9485,12 @@ type SubResourceReadOnly struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for SubResourceReadOnly. +func (srro SubResourceReadOnly) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SubResourceWithColocationStatus ... type SubResourceWithColocationStatus struct { // ColocationStatus - Describes colocation status of a resource in the Proximity Placement Group. @@ -9424,6 +9580,12 @@ type UpgradeOperationHistoricalStatusInfo struct { Location *string `json:"location,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeOperationHistoricalStatusInfo. +func (uohsi UpgradeOperationHistoricalStatusInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpgradeOperationHistoricalStatusInfoProperties describes each OS upgrade on the Virtual Machine Scale // Set. type UpgradeOperationHistoricalStatusInfoProperties struct { @@ -9441,6 +9603,12 @@ type UpgradeOperationHistoricalStatusInfoProperties struct { RollbackInfo *RollbackStatusInfo `json:"rollbackInfo,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeOperationHistoricalStatusInfoProperties. +func (uohsip UpgradeOperationHistoricalStatusInfoProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpgradeOperationHistoryStatus information about the current running state of the overall upgrade. type UpgradeOperationHistoryStatus struct { // Code - READ-ONLY; Code indicating the current status of the upgrade. Possible values include: 'UpgradeStateRollingForward', 'UpgradeStateCancelled', 'UpgradeStateCompleted', 'UpgradeStateFaulted' @@ -9451,6 +9619,12 @@ type UpgradeOperationHistoryStatus struct { EndTime *date.Time `json:"endTime,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeOperationHistoryStatus. +func (uohs UpgradeOperationHistoryStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpgradePolicy describes an upgrade policy - automatic, manual, or rolling. type UpgradePolicy struct { // Mode - Specifies the mode of an upgrade to virtual machines in the scale set.

Possible values are:

**Manual** - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.

**Automatic** - All virtual machines in the scale set are automatically updated at the same time. Possible values include: 'Automatic', 'Manual', 'Rolling' @@ -10205,6 +10379,12 @@ type VirtualMachineHealthStatus struct { Status *InstanceViewStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineHealthStatus. +func (vmhs VirtualMachineHealthStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineIdentity identity for the virtual machine. type VirtualMachineIdentity struct { // PrincipalID - READ-ONLY; The principal id of virtual machine identity. This property will only be provided for a system assigned identity. @@ -10237,6 +10417,12 @@ type VirtualMachineIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineIdentityUserAssignedIdentitiesValue. +func (vmiAiv VirtualMachineIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineImage describes a Virtual Machine Image. type VirtualMachineImage struct { autorest.Response `json:"-"` @@ -11353,6 +11539,12 @@ type VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue. +func (vmssiAiv VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetInstanceView the instance view of a virtual machine scale set. type VirtualMachineScaleSetInstanceView struct { autorest.Response `json:"-"` @@ -11382,6 +11574,12 @@ type VirtualMachineScaleSetInstanceViewStatusesSummary struct { StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetInstanceViewStatusesSummary. +func (vmssivss VirtualMachineScaleSetInstanceViewStatusesSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetIPConfiguration describes a virtual machine scale set network profile's IP // configuration. type VirtualMachineScaleSetIPConfiguration struct { @@ -12696,6 +12894,12 @@ type VirtualMachineScaleSetSku struct { Capacity *VirtualMachineScaleSetSkuCapacity `json:"capacity,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetSku. +func (vmsss VirtualMachineScaleSetSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetSkuCapacity describes scaling information of a sku. type VirtualMachineScaleSetSkuCapacity struct { // Minimum - READ-ONLY; The minimum capacity. @@ -12708,6 +12912,12 @@ type VirtualMachineScaleSetSkuCapacity struct { ScaleType VirtualMachineScaleSetSkuScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetSkuCapacity. +func (vmsssc VirtualMachineScaleSetSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetsPerformMaintenanceFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type VirtualMachineScaleSetsPerformMaintenanceFuture struct { @@ -13760,6 +13970,12 @@ type VirtualMachineScaleSetVMExtensionsSummary struct { StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetVMExtensionsSummary. +func (vmssves VirtualMachineScaleSetVMExtensionsSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetVMExtensionsUpdateFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type VirtualMachineScaleSetVMExtensionsUpdateFuture struct { @@ -15106,6 +15322,12 @@ type VirtualMachineStatusCodeCount struct { Count *int32 `json:"count,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineStatusCodeCount. +func (vmscc VirtualMachineStatusCodeCount) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachinesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type VirtualMachinesUpdateFuture struct { diff --git a/services/compute/mgmt/2020-06-01/compute/CHANGELOG.md b/services/compute/mgmt/2020-06-01/compute/CHANGELOG.md index 52911e4cc5e4..39d0e341e5e9 100644 --- a/services/compute/mgmt/2020-06-01/compute/CHANGELOG.md +++ b/services/compute/mgmt/2020-06-01/compute/CHANGELOG.md @@ -1,2 +1,50 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccessURI.MarshalJSON() ([]byte, error) +1. AvailablePatchSummary.MarshalJSON() ([]byte, error) +1. BootDiagnosticsInstanceView.MarshalJSON() ([]byte, error) +1. DataDiskImage.MarshalJSON() ([]byte, error) +1. DiskAccessProperties.MarshalJSON() ([]byte, error) +1. GalleryIdentifier.MarshalJSON() ([]byte, error) +1. LastPatchInstallationSummary.MarshalJSON() ([]byte, error) +1. LogAnalyticsOperationResult.MarshalJSON() ([]byte, error) +1. LogAnalyticsOutput.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OperationValueDisplay.MarshalJSON() ([]byte, error) +1. OrchestrationServiceSummary.MarshalJSON() ([]byte, error) +1. PrivateEndpoint.MarshalJSON() ([]byte, error) +1. RecoveryWalkResponse.MarshalJSON() ([]byte, error) +1. RegionalReplicationStatus.MarshalJSON() ([]byte, error) +1. ReplicationStatus.MarshalJSON() ([]byte, error) +1. ResourceSku.MarshalJSON() ([]byte, error) +1. ResourceSkuCapabilities.MarshalJSON() ([]byte, error) +1. ResourceSkuCapacity.MarshalJSON() ([]byte, error) +1. ResourceSkuCosts.MarshalJSON() ([]byte, error) +1. ResourceSkuLocationInfo.MarshalJSON() ([]byte, error) +1. ResourceSkuRestrictionInfo.MarshalJSON() ([]byte, error) +1. ResourceSkuRestrictions.MarshalJSON() ([]byte, error) +1. ResourceSkuZoneDetails.MarshalJSON() ([]byte, error) +1. RetrieveBootDiagnosticsDataResult.MarshalJSON() ([]byte, error) +1. RollbackStatusInfo.MarshalJSON() ([]byte, error) +1. RollingUpgradeProgressInfo.MarshalJSON() ([]byte, error) +1. RollingUpgradeRunningStatus.MarshalJSON() ([]byte, error) +1. RollingUpgradeStatusInfoProperties.MarshalJSON() ([]byte, error) +1. ShareInfoElement.MarshalJSON() ([]byte, error) +1. SubResourceReadOnly.MarshalJSON() ([]byte, error) +1. UpgradeOperationHistoricalStatusInfo.MarshalJSON() ([]byte, error) +1. UpgradeOperationHistoricalStatusInfoProperties.MarshalJSON() ([]byte, error) +1. UpgradeOperationHistoryStatus.MarshalJSON() ([]byte, error) +1. VirtualMachineAssessPatchesResult.MarshalJSON() ([]byte, error) +1. VirtualMachineHealthStatus.MarshalJSON() ([]byte, error) +1. VirtualMachineIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetInstanceViewStatusesSummary.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetSku.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetSkuCapacity.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetVMExtensionsSummary.MarshalJSON() ([]byte, error) +1. VirtualMachineSoftwarePatchProperties.MarshalJSON() ([]byte, error) +1. VirtualMachineStatusCodeCount.MarshalJSON() ([]byte, error) diff --git a/services/compute/mgmt/2020-06-01/compute/_meta.json b/services/compute/mgmt/2020-06-01/compute/_meta.json index ffbdec3db768..2ebcc340bbec 100644 --- a/services/compute/mgmt/2020-06-01/compute/_meta.json +++ b/services/compute/mgmt/2020-06-01/compute/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-2020-06-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-06-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-06-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/compute/mgmt/2020-06-01/compute/models.go b/services/compute/mgmt/2020-06-01/compute/models.go index 93f4255d310d..81992bd93191 100644 --- a/services/compute/mgmt/2020-06-01/compute/models.go +++ b/services/compute/mgmt/2020-06-01/compute/models.go @@ -27,6 +27,12 @@ type AccessURI struct { AccessSAS *string `json:"accessSAS,omitempty"` } +// MarshalJSON is the custom marshaler for AccessURI. +func (au AccessURI) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AdditionalCapabilities enables or disables a capability on the virtual machine or virtual machine scale // set. type AdditionalCapabilities struct { @@ -503,6 +509,12 @@ type AvailablePatchSummary struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for AvailablePatchSummary. +func (aps AvailablePatchSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BillingProfile specifies the billing related details of a Azure Spot VM or VMSS.

Minimum // api-version: 2019-03-01. type BillingProfile struct { @@ -530,6 +542,12 @@ type BootDiagnosticsInstanceView struct { Status *InstanceViewStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for BootDiagnosticsInstanceView. +func (bdiv BootDiagnosticsInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from the Compute service. type CloudError struct { Error *APIError `json:"error,omitempty"` @@ -1169,6 +1187,12 @@ type DataDiskImage struct { Lun *int32 `json:"lun,omitempty"` } +// MarshalJSON is the custom marshaler for DataDiskImage. +func (ddi DataDiskImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DataDiskImageEncryption contains encryption settings for a data disk image. type DataDiskImageEncryption struct { // Lun - This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine. @@ -2664,6 +2688,12 @@ type DiskAccessProperties struct { TimeCreated *date.Time `json:"timeCreated,omitempty"` } +// MarshalJSON is the custom marshaler for DiskAccessProperties. +func (dap DiskAccessProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DiskAccessUpdate used for updating a disk access resource. type DiskAccessUpdate struct { // Tags - Resource tags @@ -5148,6 +5178,12 @@ type GalleryIdentifier struct { UniqueName *string `json:"uniqueName,omitempty"` } +// MarshalJSON is the custom marshaler for GalleryIdentifier. +func (gi GalleryIdentifier) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GalleryImage specifies information about the gallery Image Definition that you want to create or update. type GalleryImage struct { autorest.Response `json:"-"` @@ -7203,6 +7239,12 @@ type LastPatchInstallationSummary struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for LastPatchInstallationSummary. +func (lpis LastPatchInstallationSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LinuxConfiguration specifies the Linux operating system settings on the virtual machine.

For a // list of supported Linux distributions, see [Linux on Azure-Endorsed // Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-endorsed-distros?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json) @@ -7497,12 +7539,24 @@ type LogAnalyticsOperationResult struct { Properties *LogAnalyticsOutput `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for LogAnalyticsOperationResult. +func (laor LogAnalyticsOperationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LogAnalyticsOutput logAnalytics output properties type LogAnalyticsOutput struct { // Output - READ-ONLY; Output file Uri path to blob container. Output *string `json:"output,omitempty"` } +// MarshalJSON is the custom marshaler for LogAnalyticsOutput. +func (lao LogAnalyticsOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MaintenanceRedeployStatus maintenance Operation Status. type MaintenanceRedeployStatus struct { // IsCustomerInitiatedMaintenanceAllowed - True, if customer is allowed to perform Maintenance. @@ -7608,6 +7662,12 @@ type OperationListResult struct { Value *[]OperationValue `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationValue describes the properties of a Compute Operation value. type OperationValue struct { // Origin - READ-ONLY; The origin of the compute operation. @@ -7680,6 +7740,12 @@ type OperationValueDisplay struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationValueDisplay. +func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OrchestrationServiceStateInput the input for OrchestrationServiceState type OrchestrationServiceStateInput struct { // ServiceName - The name of the service. Possible values include: 'AutomaticRepairs' @@ -7696,6 +7762,12 @@ type OrchestrationServiceSummary struct { ServiceState OrchestrationServiceState `json:"serviceState,omitempty"` } +// MarshalJSON is the custom marshaler for OrchestrationServiceSummary. +func (oss OrchestrationServiceSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OSDisk specifies information about the operating system disk used by the virtual machine.

For // more information about disks, see [About disks and VHDs for Azure virtual // machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). @@ -7787,6 +7859,12 @@ type PrivateEndpoint struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpoint. +func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection the Private Endpoint Connection resource. type PrivateEndpointConnection struct { // PrivateEndpointConnectionProperties - Resource properties. @@ -8306,6 +8384,12 @@ type RecoveryWalkResponse struct { NextPlatformUpdateDomain *int32 `json:"nextPlatformUpdateDomain,omitempty"` } +// MarshalJSON is the custom marshaler for RecoveryWalkResponse. +func (rwr RecoveryWalkResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegionalReplicationStatus this is the regional replication status. type RegionalReplicationStatus struct { // Region - READ-ONLY; The region to which the gallery Image Version is being replicated to. @@ -8318,6 +8402,12 @@ type RegionalReplicationStatus struct { Progress *int32 `json:"progress,omitempty"` } +// MarshalJSON is the custom marshaler for RegionalReplicationStatus. +func (rrs RegionalReplicationStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReplicationStatus this is the replication status of the gallery Image Version. type ReplicationStatus struct { // AggregatedState - READ-ONLY; This is the aggregated replication status based on all the regional replication status flags. Possible values include: 'Unknown', 'InProgress', 'Completed', 'Failed' @@ -8326,6 +8416,12 @@ type ReplicationStatus struct { Summary *[]RegionalReplicationStatus `json:"summary,omitempty"` } +// MarshalJSON is the custom marshaler for ReplicationStatus. +func (rs ReplicationStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RequestRateByIntervalInput api request input for LogAnalytics getRequestRateByInterval Api. type RequestRateByIntervalInput struct { // IntervalLength - Interval value in minutes used to create LogAnalytics call rate logs. Possible values include: 'ThreeMins', 'FiveMins', 'ThirtyMins', 'SixtyMins' @@ -8408,6 +8504,12 @@ type ResourceSku struct { Restrictions *[]ResourceSkuRestrictions `json:"restrictions,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSku. +func (rs ResourceSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCapabilities describes The SKU capabilities object. type ResourceSkuCapabilities struct { // Name - READ-ONLY; An invariant to describe the feature. @@ -8416,6 +8518,12 @@ type ResourceSkuCapabilities struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapabilities. +func (rsc ResourceSkuCapabilities) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCapacity describes scaling information of a SKU. type ResourceSkuCapacity struct { // Minimum - READ-ONLY; The minimum capacity. @@ -8428,6 +8536,12 @@ type ResourceSkuCapacity struct { ScaleType ResourceSkuCapacityScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapacity. +func (rsc ResourceSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCosts describes metadata for retrieving price info. type ResourceSkuCosts struct { // MeterID - READ-ONLY; Used for querying price from commerce. @@ -8438,6 +8552,12 @@ type ResourceSkuCosts struct { ExtendedUnit *string `json:"extendedUnit,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCosts. +func (rsc ResourceSkuCosts) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuLocationInfo ... type ResourceSkuLocationInfo struct { // Location - READ-ONLY; Location of the SKU @@ -8448,6 +8568,12 @@ type ResourceSkuLocationInfo struct { ZoneDetails *[]ResourceSkuZoneDetails `json:"zoneDetails,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuLocationInfo. +func (rsli ResourceSkuLocationInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuRestrictionInfo ... type ResourceSkuRestrictionInfo struct { // Locations - READ-ONLY; Locations where the SKU is restricted @@ -8456,6 +8582,12 @@ type ResourceSkuRestrictionInfo struct { Zones *[]string `json:"zones,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuRestrictionInfo. +func (rsri ResourceSkuRestrictionInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuRestrictions describes scaling information of a SKU. type ResourceSkuRestrictions struct { // Type - READ-ONLY; The type of restrictions. Possible values include: 'Location', 'Zone' @@ -8468,6 +8600,12 @@ type ResourceSkuRestrictions struct { ReasonCode ResourceSkuRestrictionsReasonCode `json:"reasonCode,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuRestrictions. +func (rsr ResourceSkuRestrictions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkusResult the List Resource Skus operation response. type ResourceSkusResult struct { autorest.Response `json:"-"` @@ -8635,6 +8773,12 @@ type ResourceSkuZoneDetails struct { Capabilities *[]ResourceSkuCapabilities `json:"capabilities,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuZoneDetails. +func (rszd ResourceSkuZoneDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RetrieveBootDiagnosticsDataResult the SAS URIs of the console screenshot and serial log blobs. type RetrieveBootDiagnosticsDataResult struct { autorest.Response `json:"-"` @@ -8644,6 +8788,12 @@ type RetrieveBootDiagnosticsDataResult struct { SerialConsoleLogBlobURI *string `json:"serialConsoleLogBlobUri,omitempty"` } +// MarshalJSON is the custom marshaler for RetrieveBootDiagnosticsDataResult. +func (rbddr RetrieveBootDiagnosticsDataResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollbackStatusInfo information about rollback on failed VM instances after a OS Upgrade operation. type RollbackStatusInfo struct { // SuccessfullyRolledbackInstanceCount - READ-ONLY; The number of instances which have been successfully rolled back. @@ -8654,6 +8804,12 @@ type RollbackStatusInfo struct { RollbackError *APIError `json:"rollbackError,omitempty"` } +// MarshalJSON is the custom marshaler for RollbackStatusInfo. +func (rsi RollbackStatusInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollingUpgradePolicy the configuration parameters used while performing a rolling upgrade. type RollingUpgradePolicy struct { // MaxBatchInstancePercent - The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The default value for this parameter is 20%. @@ -8679,6 +8835,12 @@ type RollingUpgradeProgressInfo struct { PendingInstanceCount *int32 `json:"pendingInstanceCount,omitempty"` } +// MarshalJSON is the custom marshaler for RollingUpgradeProgressInfo. +func (rupi RollingUpgradeProgressInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollingUpgradeRunningStatus information about the current running state of the overall upgrade. type RollingUpgradeRunningStatus struct { // Code - READ-ONLY; Code indicating the current status of the upgrade. Possible values include: 'RollingUpgradeStatusCodeRollingForward', 'RollingUpgradeStatusCodeCancelled', 'RollingUpgradeStatusCodeCompleted', 'RollingUpgradeStatusCodeFaulted' @@ -8691,6 +8853,12 @@ type RollingUpgradeRunningStatus struct { LastActionTime *date.Time `json:"lastActionTime,omitempty"` } +// MarshalJSON is the custom marshaler for RollingUpgradeRunningStatus. +func (rurs RollingUpgradeRunningStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollingUpgradeStatusInfo the status of the latest virtual machine scale set rolling upgrade. type RollingUpgradeStatusInfo struct { autorest.Response `json:"-"` @@ -8803,6 +8971,12 @@ type RollingUpgradeStatusInfoProperties struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for RollingUpgradeStatusInfoProperties. +func (rusip RollingUpgradeStatusInfoProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RunCommandDocument describes the properties of a Run Command. type RunCommandDocument struct { autorest.Response `json:"-"` @@ -9057,6 +9231,12 @@ type ShareInfoElement struct { VMURI *string `json:"vmUri,omitempty"` } +// MarshalJSON is the custom marshaler for ShareInfoElement. +func (sie ShareInfoElement) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Sku describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware // the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU // name. @@ -10091,6 +10271,12 @@ type SubResourceReadOnly struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for SubResourceReadOnly. +func (srro SubResourceReadOnly) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SubResourceWithColocationStatus ... type SubResourceWithColocationStatus struct { // ColocationStatus - Describes colocation status of a resource in the Proximity Placement Group. @@ -10180,6 +10366,12 @@ type UpgradeOperationHistoricalStatusInfo struct { Location *string `json:"location,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeOperationHistoricalStatusInfo. +func (uohsi UpgradeOperationHistoricalStatusInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpgradeOperationHistoricalStatusInfoProperties describes each OS upgrade on the Virtual Machine Scale // Set. type UpgradeOperationHistoricalStatusInfoProperties struct { @@ -10197,6 +10389,12 @@ type UpgradeOperationHistoricalStatusInfoProperties struct { RollbackInfo *RollbackStatusInfo `json:"rollbackInfo,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeOperationHistoricalStatusInfoProperties. +func (uohsip UpgradeOperationHistoricalStatusInfoProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpgradeOperationHistoryStatus information about the current running state of the overall upgrade. type UpgradeOperationHistoryStatus struct { // Code - READ-ONLY; Code indicating the current status of the upgrade. Possible values include: 'UpgradeStateRollingForward', 'UpgradeStateCancelled', 'UpgradeStateCompleted', 'UpgradeStateFaulted' @@ -10207,6 +10405,12 @@ type UpgradeOperationHistoryStatus struct { EndTime *date.Time `json:"endTime,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeOperationHistoryStatus. +func (uohs UpgradeOperationHistoryStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpgradePolicy describes an upgrade policy - automatic, manual, or rolling. type UpgradePolicy struct { // Mode - Specifies the mode of an upgrade to virtual machines in the scale set.

Possible values are:

**Manual** - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.

**Automatic** - All virtual machines in the scale set are automatically updated at the same time. Possible values include: 'UpgradeModeAutomatic', 'UpgradeModeManual', 'UpgradeModeRolling' @@ -10452,6 +10656,12 @@ type VirtualMachineAssessPatchesResult struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineAssessPatchesResult. +func (vmapr VirtualMachineAssessPatchesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineCaptureParameters capture Virtual Machine parameters. type VirtualMachineCaptureParameters struct { // VhdPrefix - The captured virtual hard disk's name prefix. @@ -10989,6 +11199,12 @@ type VirtualMachineHealthStatus struct { Status *InstanceViewStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineHealthStatus. +func (vmhs VirtualMachineHealthStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineIdentity identity for the virtual machine. type VirtualMachineIdentity struct { // PrincipalID - READ-ONLY; The principal id of virtual machine identity. This property will only be provided for a system assigned identity. @@ -11021,6 +11237,12 @@ type VirtualMachineIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineIdentityUserAssignedIdentitiesValue. +func (vmiAiv VirtualMachineIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineImage describes a Virtual Machine Image. type VirtualMachineImage struct { autorest.Response `json:"-"` @@ -12790,6 +13012,12 @@ type VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue. +func (vmssiAiv VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetInstanceView the instance view of a virtual machine scale set. type VirtualMachineScaleSetInstanceView struct { autorest.Response `json:"-"` @@ -12819,6 +13047,12 @@ type VirtualMachineScaleSetInstanceViewStatusesSummary struct { StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetInstanceViewStatusesSummary. +func (vmssivss VirtualMachineScaleSetInstanceViewStatusesSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetIPConfiguration describes a virtual machine scale set network profile's IP // configuration. type VirtualMachineScaleSetIPConfiguration struct { @@ -14138,6 +14372,12 @@ type VirtualMachineScaleSetSku struct { Capacity *VirtualMachineScaleSetSkuCapacity `json:"capacity,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetSku. +func (vmsss VirtualMachineScaleSetSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetSkuCapacity describes scaling information of a sku. type VirtualMachineScaleSetSkuCapacity struct { // Minimum - READ-ONLY; The minimum capacity. @@ -14150,6 +14390,12 @@ type VirtualMachineScaleSetSkuCapacity struct { ScaleType VirtualMachineScaleSetSkuScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetSkuCapacity. +func (vmsssc VirtualMachineScaleSetSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetsPerformMaintenanceFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type VirtualMachineScaleSetsPerformMaintenanceFuture struct { @@ -15283,6 +15529,12 @@ type VirtualMachineScaleSetVMExtensionsSummary struct { StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetVMExtensionsSummary. +func (vmssves VirtualMachineScaleSetVMExtensionsSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetVMExtensionsUpdateFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type VirtualMachineScaleSetVMExtensionsUpdateFuture struct { @@ -16545,6 +16797,12 @@ type VirtualMachineSoftwarePatchProperties struct { AssessmentState PatchAssessmentState `json:"assessmentState,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineSoftwarePatchProperties. +func (vmspp VirtualMachineSoftwarePatchProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachinesPerformMaintenanceFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type VirtualMachinesPerformMaintenanceFuture struct { @@ -16856,6 +17114,12 @@ type VirtualMachineStatusCodeCount struct { Count *int32 `json:"count,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineStatusCodeCount. +func (vmscc VirtualMachineStatusCodeCount) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachinesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type VirtualMachinesUpdateFuture struct { diff --git a/services/compute/mgmt/2020-06-30/compute/CHANGELOG.md b/services/compute/mgmt/2020-06-30/compute/CHANGELOG.md index 52911e4cc5e4..39d0e341e5e9 100644 --- a/services/compute/mgmt/2020-06-30/compute/CHANGELOG.md +++ b/services/compute/mgmt/2020-06-30/compute/CHANGELOG.md @@ -1,2 +1,50 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccessURI.MarshalJSON() ([]byte, error) +1. AvailablePatchSummary.MarshalJSON() ([]byte, error) +1. BootDiagnosticsInstanceView.MarshalJSON() ([]byte, error) +1. DataDiskImage.MarshalJSON() ([]byte, error) +1. DiskAccessProperties.MarshalJSON() ([]byte, error) +1. GalleryIdentifier.MarshalJSON() ([]byte, error) +1. LastPatchInstallationSummary.MarshalJSON() ([]byte, error) +1. LogAnalyticsOperationResult.MarshalJSON() ([]byte, error) +1. LogAnalyticsOutput.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OperationValueDisplay.MarshalJSON() ([]byte, error) +1. OrchestrationServiceSummary.MarshalJSON() ([]byte, error) +1. PrivateEndpoint.MarshalJSON() ([]byte, error) +1. RecoveryWalkResponse.MarshalJSON() ([]byte, error) +1. RegionalReplicationStatus.MarshalJSON() ([]byte, error) +1. ReplicationStatus.MarshalJSON() ([]byte, error) +1. ResourceSku.MarshalJSON() ([]byte, error) +1. ResourceSkuCapabilities.MarshalJSON() ([]byte, error) +1. ResourceSkuCapacity.MarshalJSON() ([]byte, error) +1. ResourceSkuCosts.MarshalJSON() ([]byte, error) +1. ResourceSkuLocationInfo.MarshalJSON() ([]byte, error) +1. ResourceSkuRestrictionInfo.MarshalJSON() ([]byte, error) +1. ResourceSkuRestrictions.MarshalJSON() ([]byte, error) +1. ResourceSkuZoneDetails.MarshalJSON() ([]byte, error) +1. RetrieveBootDiagnosticsDataResult.MarshalJSON() ([]byte, error) +1. RollbackStatusInfo.MarshalJSON() ([]byte, error) +1. RollingUpgradeProgressInfo.MarshalJSON() ([]byte, error) +1. RollingUpgradeRunningStatus.MarshalJSON() ([]byte, error) +1. RollingUpgradeStatusInfoProperties.MarshalJSON() ([]byte, error) +1. ShareInfoElement.MarshalJSON() ([]byte, error) +1. SubResourceReadOnly.MarshalJSON() ([]byte, error) +1. UpgradeOperationHistoricalStatusInfo.MarshalJSON() ([]byte, error) +1. UpgradeOperationHistoricalStatusInfoProperties.MarshalJSON() ([]byte, error) +1. UpgradeOperationHistoryStatus.MarshalJSON() ([]byte, error) +1. VirtualMachineAssessPatchesResult.MarshalJSON() ([]byte, error) +1. VirtualMachineHealthStatus.MarshalJSON() ([]byte, error) +1. VirtualMachineIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetInstanceViewStatusesSummary.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetSku.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetSkuCapacity.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetVMExtensionsSummary.MarshalJSON() ([]byte, error) +1. VirtualMachineSoftwarePatchProperties.MarshalJSON() ([]byte, error) +1. VirtualMachineStatusCodeCount.MarshalJSON() ([]byte, error) diff --git a/services/compute/mgmt/2020-06-30/compute/_meta.json b/services/compute/mgmt/2020-06-30/compute/_meta.json index cc9e78734c7b..4b9a6d80f9e4 100644 --- a/services/compute/mgmt/2020-06-30/compute/_meta.json +++ b/services/compute/mgmt/2020-06-30/compute/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-2020-06-30", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-06-30 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-06-30 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/compute/mgmt/2020-06-30/compute/models.go b/services/compute/mgmt/2020-06-30/compute/models.go index ce554d5da4d2..f6218bf1f9cd 100644 --- a/services/compute/mgmt/2020-06-30/compute/models.go +++ b/services/compute/mgmt/2020-06-30/compute/models.go @@ -27,6 +27,12 @@ type AccessURI struct { AccessSAS *string `json:"accessSAS,omitempty"` } +// MarshalJSON is the custom marshaler for AccessURI. +func (au AccessURI) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AdditionalCapabilities enables or disables a capability on the virtual machine or virtual machine scale // set. type AdditionalCapabilities struct { @@ -503,6 +509,12 @@ type AvailablePatchSummary struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for AvailablePatchSummary. +func (aps AvailablePatchSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BillingProfile specifies the billing related details of a Azure Spot VM or VMSS.

Minimum // api-version: 2019-03-01. type BillingProfile struct { @@ -530,6 +542,12 @@ type BootDiagnosticsInstanceView struct { Status *InstanceViewStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for BootDiagnosticsInstanceView. +func (bdiv BootDiagnosticsInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from the Compute service. type CloudError struct { Error *APIError `json:"error,omitempty"` @@ -1174,6 +1192,12 @@ type DataDiskImage struct { Lun *int32 `json:"lun,omitempty"` } +// MarshalJSON is the custom marshaler for DataDiskImage. +func (ddi DataDiskImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DataDiskImageEncryption contains encryption settings for a data disk image. type DataDiskImageEncryption struct { // Lun - This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine. @@ -2669,6 +2693,12 @@ type DiskAccessProperties struct { TimeCreated *date.Time `json:"timeCreated,omitempty"` } +// MarshalJSON is the custom marshaler for DiskAccessProperties. +func (dap DiskAccessProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DiskAccessUpdate used for updating a disk access resource. type DiskAccessUpdate struct { // Tags - Resource tags @@ -5163,6 +5193,12 @@ type GalleryIdentifier struct { UniqueName *string `json:"uniqueName,omitempty"` } +// MarshalJSON is the custom marshaler for GalleryIdentifier. +func (gi GalleryIdentifier) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GalleryImage specifies information about the gallery Image Definition that you want to create or update. type GalleryImage struct { autorest.Response `json:"-"` @@ -7218,6 +7254,12 @@ type LastPatchInstallationSummary struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for LastPatchInstallationSummary. +func (lpis LastPatchInstallationSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LinuxConfiguration specifies the Linux operating system settings on the virtual machine.

For a // list of supported Linux distributions, see [Linux on Azure-Endorsed // Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-endorsed-distros?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json) @@ -7512,12 +7554,24 @@ type LogAnalyticsOperationResult struct { Properties *LogAnalyticsOutput `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for LogAnalyticsOperationResult. +func (laor LogAnalyticsOperationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LogAnalyticsOutput logAnalytics output properties type LogAnalyticsOutput struct { // Output - READ-ONLY; Output file Uri path to blob container. Output *string `json:"output,omitempty"` } +// MarshalJSON is the custom marshaler for LogAnalyticsOutput. +func (lao LogAnalyticsOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MaintenanceRedeployStatus maintenance Operation Status. type MaintenanceRedeployStatus struct { // IsCustomerInitiatedMaintenanceAllowed - True, if customer is allowed to perform Maintenance. @@ -7623,6 +7677,12 @@ type OperationListResult struct { Value *[]OperationValue `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationValue describes the properties of a Compute Operation value. type OperationValue struct { // Origin - READ-ONLY; The origin of the compute operation. @@ -7695,6 +7755,12 @@ type OperationValueDisplay struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationValueDisplay. +func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OrchestrationServiceStateInput the input for OrchestrationServiceState type OrchestrationServiceStateInput struct { // ServiceName - The name of the service. Possible values include: 'AutomaticRepairs' @@ -7711,6 +7777,12 @@ type OrchestrationServiceSummary struct { ServiceState OrchestrationServiceState `json:"serviceState,omitempty"` } +// MarshalJSON is the custom marshaler for OrchestrationServiceSummary. +func (oss OrchestrationServiceSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OSDisk specifies information about the operating system disk used by the virtual machine.

For // more information about disks, see [About disks and VHDs for Azure virtual // machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). @@ -7802,6 +7874,12 @@ type PrivateEndpoint struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpoint. +func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection the Private Endpoint Connection resource. type PrivateEndpointConnection struct { // PrivateEndpointConnectionProperties - Resource properties. @@ -8321,6 +8399,12 @@ type RecoveryWalkResponse struct { NextPlatformUpdateDomain *int32 `json:"nextPlatformUpdateDomain,omitempty"` } +// MarshalJSON is the custom marshaler for RecoveryWalkResponse. +func (rwr RecoveryWalkResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegionalReplicationStatus this is the regional replication status. type RegionalReplicationStatus struct { // Region - READ-ONLY; The region to which the gallery Image Version is being replicated to. @@ -8333,6 +8417,12 @@ type RegionalReplicationStatus struct { Progress *int32 `json:"progress,omitempty"` } +// MarshalJSON is the custom marshaler for RegionalReplicationStatus. +func (rrs RegionalReplicationStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReplicationStatus this is the replication status of the gallery Image Version. type ReplicationStatus struct { // AggregatedState - READ-ONLY; This is the aggregated replication status based on all the regional replication status flags. Possible values include: 'Unknown', 'InProgress', 'Completed', 'Failed' @@ -8341,6 +8431,12 @@ type ReplicationStatus struct { Summary *[]RegionalReplicationStatus `json:"summary,omitempty"` } +// MarshalJSON is the custom marshaler for ReplicationStatus. +func (rs ReplicationStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RequestRateByIntervalInput api request input for LogAnalytics getRequestRateByInterval Api. type RequestRateByIntervalInput struct { // IntervalLength - Interval value in minutes used to create LogAnalytics call rate logs. Possible values include: 'ThreeMins', 'FiveMins', 'ThirtyMins', 'SixtyMins' @@ -8423,6 +8519,12 @@ type ResourceSku struct { Restrictions *[]ResourceSkuRestrictions `json:"restrictions,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSku. +func (rs ResourceSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCapabilities describes The SKU capabilities object. type ResourceSkuCapabilities struct { // Name - READ-ONLY; An invariant to describe the feature. @@ -8431,6 +8533,12 @@ type ResourceSkuCapabilities struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapabilities. +func (rsc ResourceSkuCapabilities) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCapacity describes scaling information of a SKU. type ResourceSkuCapacity struct { // Minimum - READ-ONLY; The minimum capacity. @@ -8443,6 +8551,12 @@ type ResourceSkuCapacity struct { ScaleType ResourceSkuCapacityScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapacity. +func (rsc ResourceSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCosts describes metadata for retrieving price info. type ResourceSkuCosts struct { // MeterID - READ-ONLY; Used for querying price from commerce. @@ -8453,6 +8567,12 @@ type ResourceSkuCosts struct { ExtendedUnit *string `json:"extendedUnit,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCosts. +func (rsc ResourceSkuCosts) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuLocationInfo ... type ResourceSkuLocationInfo struct { // Location - READ-ONLY; Location of the SKU @@ -8463,6 +8583,12 @@ type ResourceSkuLocationInfo struct { ZoneDetails *[]ResourceSkuZoneDetails `json:"zoneDetails,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuLocationInfo. +func (rsli ResourceSkuLocationInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuRestrictionInfo ... type ResourceSkuRestrictionInfo struct { // Locations - READ-ONLY; Locations where the SKU is restricted @@ -8471,6 +8597,12 @@ type ResourceSkuRestrictionInfo struct { Zones *[]string `json:"zones,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuRestrictionInfo. +func (rsri ResourceSkuRestrictionInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuRestrictions describes scaling information of a SKU. type ResourceSkuRestrictions struct { // Type - READ-ONLY; The type of restrictions. Possible values include: 'Location', 'Zone' @@ -8483,6 +8615,12 @@ type ResourceSkuRestrictions struct { ReasonCode ResourceSkuRestrictionsReasonCode `json:"reasonCode,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuRestrictions. +func (rsr ResourceSkuRestrictions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkusResult the List Resource Skus operation response. type ResourceSkusResult struct { autorest.Response `json:"-"` @@ -8650,6 +8788,12 @@ type ResourceSkuZoneDetails struct { Capabilities *[]ResourceSkuCapabilities `json:"capabilities,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuZoneDetails. +func (rszd ResourceSkuZoneDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceURIList the List resources which are encrypted with the disk encryption set. type ResourceURIList struct { autorest.Response `json:"-"` @@ -8818,6 +8962,12 @@ type RetrieveBootDiagnosticsDataResult struct { SerialConsoleLogBlobURI *string `json:"serialConsoleLogBlobUri,omitempty"` } +// MarshalJSON is the custom marshaler for RetrieveBootDiagnosticsDataResult. +func (rbddr RetrieveBootDiagnosticsDataResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollbackStatusInfo information about rollback on failed VM instances after a OS Upgrade operation. type RollbackStatusInfo struct { // SuccessfullyRolledbackInstanceCount - READ-ONLY; The number of instances which have been successfully rolled back. @@ -8828,6 +8978,12 @@ type RollbackStatusInfo struct { RollbackError *APIError `json:"rollbackError,omitempty"` } +// MarshalJSON is the custom marshaler for RollbackStatusInfo. +func (rsi RollbackStatusInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollingUpgradePolicy the configuration parameters used while performing a rolling upgrade. type RollingUpgradePolicy struct { // MaxBatchInstancePercent - The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The default value for this parameter is 20%. @@ -8853,6 +9009,12 @@ type RollingUpgradeProgressInfo struct { PendingInstanceCount *int32 `json:"pendingInstanceCount,omitempty"` } +// MarshalJSON is the custom marshaler for RollingUpgradeProgressInfo. +func (rupi RollingUpgradeProgressInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollingUpgradeRunningStatus information about the current running state of the overall upgrade. type RollingUpgradeRunningStatus struct { // Code - READ-ONLY; Code indicating the current status of the upgrade. Possible values include: 'RollingUpgradeStatusCodeRollingForward', 'RollingUpgradeStatusCodeCancelled', 'RollingUpgradeStatusCodeCompleted', 'RollingUpgradeStatusCodeFaulted' @@ -8865,6 +9027,12 @@ type RollingUpgradeRunningStatus struct { LastActionTime *date.Time `json:"lastActionTime,omitempty"` } +// MarshalJSON is the custom marshaler for RollingUpgradeRunningStatus. +func (rurs RollingUpgradeRunningStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollingUpgradeStatusInfo the status of the latest virtual machine scale set rolling upgrade. type RollingUpgradeStatusInfo struct { autorest.Response `json:"-"` @@ -8977,6 +9145,12 @@ type RollingUpgradeStatusInfoProperties struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for RollingUpgradeStatusInfoProperties. +func (rusip RollingUpgradeStatusInfoProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RunCommandDocument describes the properties of a Run Command. type RunCommandDocument struct { autorest.Response `json:"-"` @@ -9231,6 +9405,12 @@ type ShareInfoElement struct { VMURI *string `json:"vmUri,omitempty"` } +// MarshalJSON is the custom marshaler for ShareInfoElement. +func (sie ShareInfoElement) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Sku describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware // the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU // name. @@ -10270,6 +10450,12 @@ type SubResourceReadOnly struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for SubResourceReadOnly. +func (srro SubResourceReadOnly) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SubResourceWithColocationStatus ... type SubResourceWithColocationStatus struct { // ColocationStatus - Describes colocation status of a resource in the Proximity Placement Group. @@ -10359,6 +10545,12 @@ type UpgradeOperationHistoricalStatusInfo struct { Location *string `json:"location,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeOperationHistoricalStatusInfo. +func (uohsi UpgradeOperationHistoricalStatusInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpgradeOperationHistoricalStatusInfoProperties describes each OS upgrade on the Virtual Machine Scale // Set. type UpgradeOperationHistoricalStatusInfoProperties struct { @@ -10376,6 +10568,12 @@ type UpgradeOperationHistoricalStatusInfoProperties struct { RollbackInfo *RollbackStatusInfo `json:"rollbackInfo,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeOperationHistoricalStatusInfoProperties. +func (uohsip UpgradeOperationHistoricalStatusInfoProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpgradeOperationHistoryStatus information about the current running state of the overall upgrade. type UpgradeOperationHistoryStatus struct { // Code - READ-ONLY; Code indicating the current status of the upgrade. Possible values include: 'UpgradeStateRollingForward', 'UpgradeStateCancelled', 'UpgradeStateCompleted', 'UpgradeStateFaulted' @@ -10386,6 +10584,12 @@ type UpgradeOperationHistoryStatus struct { EndTime *date.Time `json:"endTime,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeOperationHistoryStatus. +func (uohs UpgradeOperationHistoryStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpgradePolicy describes an upgrade policy - automatic, manual, or rolling. type UpgradePolicy struct { // Mode - Specifies the mode of an upgrade to virtual machines in the scale set.

Possible values are:

**Manual** - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.

**Automatic** - All virtual machines in the scale set are automatically updated at the same time. Possible values include: 'UpgradeModeAutomatic', 'UpgradeModeManual', 'UpgradeModeRolling' @@ -10631,6 +10835,12 @@ type VirtualMachineAssessPatchesResult struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineAssessPatchesResult. +func (vmapr VirtualMachineAssessPatchesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineCaptureParameters capture Virtual Machine parameters. type VirtualMachineCaptureParameters struct { // VhdPrefix - The captured virtual hard disk's name prefix. @@ -11168,6 +11378,12 @@ type VirtualMachineHealthStatus struct { Status *InstanceViewStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineHealthStatus. +func (vmhs VirtualMachineHealthStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineIdentity identity for the virtual machine. type VirtualMachineIdentity struct { // PrincipalID - READ-ONLY; The principal id of virtual machine identity. This property will only be provided for a system assigned identity. @@ -11200,6 +11416,12 @@ type VirtualMachineIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineIdentityUserAssignedIdentitiesValue. +func (vmiAiv VirtualMachineIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineImage describes a Virtual Machine Image. type VirtualMachineImage struct { autorest.Response `json:"-"` @@ -12969,6 +13191,12 @@ type VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue. +func (vmssiAiv VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetInstanceView the instance view of a virtual machine scale set. type VirtualMachineScaleSetInstanceView struct { autorest.Response `json:"-"` @@ -12998,6 +13226,12 @@ type VirtualMachineScaleSetInstanceViewStatusesSummary struct { StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetInstanceViewStatusesSummary. +func (vmssivss VirtualMachineScaleSetInstanceViewStatusesSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetIPConfiguration describes a virtual machine scale set network profile's IP // configuration. type VirtualMachineScaleSetIPConfiguration struct { @@ -14317,6 +14551,12 @@ type VirtualMachineScaleSetSku struct { Capacity *VirtualMachineScaleSetSkuCapacity `json:"capacity,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetSku. +func (vmsss VirtualMachineScaleSetSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetSkuCapacity describes scaling information of a sku. type VirtualMachineScaleSetSkuCapacity struct { // Minimum - READ-ONLY; The minimum capacity. @@ -14329,6 +14569,12 @@ type VirtualMachineScaleSetSkuCapacity struct { ScaleType VirtualMachineScaleSetSkuScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetSkuCapacity. +func (vmsssc VirtualMachineScaleSetSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetsPerformMaintenanceFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type VirtualMachineScaleSetsPerformMaintenanceFuture struct { @@ -15462,6 +15708,12 @@ type VirtualMachineScaleSetVMExtensionsSummary struct { StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetVMExtensionsSummary. +func (vmssves VirtualMachineScaleSetVMExtensionsSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetVMExtensionsUpdateFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type VirtualMachineScaleSetVMExtensionsUpdateFuture struct { @@ -16724,6 +16976,12 @@ type VirtualMachineSoftwarePatchProperties struct { AssessmentState PatchAssessmentState `json:"assessmentState,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineSoftwarePatchProperties. +func (vmspp VirtualMachineSoftwarePatchProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachinesPerformMaintenanceFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type VirtualMachinesPerformMaintenanceFuture struct { @@ -17035,6 +17293,12 @@ type VirtualMachineStatusCodeCount struct { Count *int32 `json:"count,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineStatusCodeCount. +func (vmscc VirtualMachineStatusCodeCount) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachinesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type VirtualMachinesUpdateFuture struct { diff --git a/services/compute/mgmt/2020-12-01/compute/CHANGELOG.md b/services/compute/mgmt/2020-12-01/compute/CHANGELOG.md index 52911e4cc5e4..b9055bec3169 100644 --- a/services/compute/mgmt/2020-12-01/compute/CHANGELOG.md +++ b/services/compute/mgmt/2020-12-01/compute/CHANGELOG.md @@ -1,2 +1,53 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccessURI.MarshalJSON() ([]byte, error) +1. AvailablePatchSummary.MarshalJSON() ([]byte, error) +1. BootDiagnosticsInstanceView.MarshalJSON() ([]byte, error) +1. DataDiskImage.MarshalJSON() ([]byte, error) +1. DiskAccessProperties.MarshalJSON() ([]byte, error) +1. GalleryIdentifier.MarshalJSON() ([]byte, error) +1. LastPatchInstallationSummary.MarshalJSON() ([]byte, error) +1. LogAnalyticsOperationResult.MarshalJSON() ([]byte, error) +1. LogAnalyticsOutput.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OperationValueDisplay.MarshalJSON() ([]byte, error) +1. OrchestrationServiceSummary.MarshalJSON() ([]byte, error) +1. PatchInstallationDetail.MarshalJSON() ([]byte, error) +1. PrivateEndpoint.MarshalJSON() ([]byte, error) +1. ProxyOnlyResource.MarshalJSON() ([]byte, error) +1. RecoveryWalkResponse.MarshalJSON() ([]byte, error) +1. RegionalReplicationStatus.MarshalJSON() ([]byte, error) +1. ReplicationStatus.MarshalJSON() ([]byte, error) +1. ResourceSku.MarshalJSON() ([]byte, error) +1. ResourceSkuCapabilities.MarshalJSON() ([]byte, error) +1. ResourceSkuCapacity.MarshalJSON() ([]byte, error) +1. ResourceSkuCosts.MarshalJSON() ([]byte, error) +1. ResourceSkuLocationInfo.MarshalJSON() ([]byte, error) +1. ResourceSkuRestrictionInfo.MarshalJSON() ([]byte, error) +1. ResourceSkuRestrictions.MarshalJSON() ([]byte, error) +1. ResourceSkuZoneDetails.MarshalJSON() ([]byte, error) +1. RetrieveBootDiagnosticsDataResult.MarshalJSON() ([]byte, error) +1. RollbackStatusInfo.MarshalJSON() ([]byte, error) +1. RollingUpgradeProgressInfo.MarshalJSON() ([]byte, error) +1. RollingUpgradeRunningStatus.MarshalJSON() ([]byte, error) +1. RollingUpgradeStatusInfoProperties.MarshalJSON() ([]byte, error) +1. ShareInfoElement.MarshalJSON() ([]byte, error) +1. SubResourceReadOnly.MarshalJSON() ([]byte, error) +1. UpgradeOperationHistoricalStatusInfo.MarshalJSON() ([]byte, error) +1. UpgradeOperationHistoricalStatusInfoProperties.MarshalJSON() ([]byte, error) +1. UpgradeOperationHistoryStatus.MarshalJSON() ([]byte, error) +1. VirtualMachineAssessPatchesResult.MarshalJSON() ([]byte, error) +1. VirtualMachineHealthStatus.MarshalJSON() ([]byte, error) +1. VirtualMachineIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. VirtualMachineInstallPatchesResult.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetInstanceViewStatusesSummary.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetSku.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetSkuCapacity.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetVMExtensionsSummary.MarshalJSON() ([]byte, error) +1. VirtualMachineSoftwarePatchProperties.MarshalJSON() ([]byte, error) +1. VirtualMachineStatusCodeCount.MarshalJSON() ([]byte, error) diff --git a/services/compute/mgmt/2020-12-01/compute/_meta.json b/services/compute/mgmt/2020-12-01/compute/_meta.json index 5b97d54c931d..24ac069d726e 100644 --- a/services/compute/mgmt/2020-12-01/compute/_meta.json +++ b/services/compute/mgmt/2020-12-01/compute/_meta.json @@ -2,9 +2,9 @@ "commit": "e0f8b9ab0f5fe5e71b7429ebfea8a33c19ec9d8d", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-2020-12-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-12-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-12-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/compute/mgmt/2020-12-01/compute/models.go b/services/compute/mgmt/2020-12-01/compute/models.go index 4ddc76f433bf..9e9c951884a3 100644 --- a/services/compute/mgmt/2020-12-01/compute/models.go +++ b/services/compute/mgmt/2020-12-01/compute/models.go @@ -27,6 +27,12 @@ type AccessURI struct { AccessSAS *string `json:"accessSAS,omitempty"` } +// MarshalJSON is the custom marshaler for AccessURI. +func (au AccessURI) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AdditionalCapabilities enables or disables a capability on the virtual machine or virtual machine scale // set. type AdditionalCapabilities struct { @@ -503,6 +509,12 @@ type AvailablePatchSummary struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for AvailablePatchSummary. +func (aps AvailablePatchSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BillingProfile specifies the billing related details of a Azure Spot VM or VMSS.

Minimum // api-version: 2019-03-01. type BillingProfile struct { @@ -530,6 +542,12 @@ type BootDiagnosticsInstanceView struct { Status *InstanceViewStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for BootDiagnosticsInstanceView. +func (bdiv BootDiagnosticsInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from the Compute service. type CloudError struct { Error *APIError `json:"error,omitempty"` @@ -662,6 +680,12 @@ type DataDiskImage struct { Lun *int32 `json:"lun,omitempty"` } +// MarshalJSON is the custom marshaler for DataDiskImage. +func (ddi DataDiskImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DataDiskImageEncryption contains encryption settings for a data disk image. type DataDiskImageEncryption struct { // Lun - This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine. @@ -2251,6 +2275,12 @@ type DiskAccessProperties struct { TimeCreated *date.Time `json:"timeCreated,omitempty"` } +// MarshalJSON is the custom marshaler for DiskAccessProperties. +func (dap DiskAccessProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DiskAccessUpdate used for updating a disk access resource. type DiskAccessUpdate struct { // Tags - Resource tags @@ -5130,6 +5160,12 @@ type GalleryIdentifier struct { UniqueName *string `json:"uniqueName,omitempty"` } +// MarshalJSON is the custom marshaler for GalleryIdentifier. +func (gi GalleryIdentifier) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GalleryImage specifies information about the gallery Image Definition that you want to create or update. type GalleryImage struct { autorest.Response `json:"-"` @@ -7204,6 +7240,12 @@ type LastPatchInstallationSummary struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for LastPatchInstallationSummary. +func (lpis LastPatchInstallationSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LinuxConfiguration specifies the Linux operating system settings on the virtual machine.

For a // list of supported Linux distributions, see [Linux on Azure-Endorsed // Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-endorsed-distros?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json) @@ -7522,12 +7564,24 @@ type LogAnalyticsOperationResult struct { Properties *LogAnalyticsOutput `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for LogAnalyticsOperationResult. +func (laor LogAnalyticsOperationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LogAnalyticsOutput logAnalytics output properties type LogAnalyticsOutput struct { // Output - READ-ONLY; Output file Uri path to blob container. Output *string `json:"output,omitempty"` } +// MarshalJSON is the custom marshaler for LogAnalyticsOutput. +func (lao LogAnalyticsOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MaintenanceRedeployStatus maintenance Operation Status. type MaintenanceRedeployStatus struct { // IsCustomerInitiatedMaintenanceAllowed - True, if customer is allowed to perform Maintenance. @@ -7633,6 +7687,12 @@ type OperationListResult struct { Value *[]OperationValue `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationValue describes the properties of a Compute Operation value. type OperationValue struct { // Origin - READ-ONLY; The origin of the compute operation. @@ -7705,6 +7765,12 @@ type OperationValueDisplay struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationValueDisplay. +func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OrchestrationServiceStateInput the input for OrchestrationServiceState type OrchestrationServiceStateInput struct { // ServiceName - The name of the service. Possible values include: 'AutomaticRepairs' @@ -7721,6 +7787,12 @@ type OrchestrationServiceSummary struct { ServiceState OrchestrationServiceState `json:"serviceState,omitempty"` } +// MarshalJSON is the custom marshaler for OrchestrationServiceSummary. +func (oss OrchestrationServiceSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OSDisk specifies information about the operating system disk used by the virtual machine.

For // more information about disks, see [About disks and VHDs for Azure virtual // machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). @@ -7801,6 +7873,12 @@ type PatchInstallationDetail struct { InstallationState PatchInstallationState `json:"installationState,omitempty"` } +// MarshalJSON is the custom marshaler for PatchInstallationDetail. +func (pid PatchInstallationDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PatchSettings specifies settings related to VM Guest Patching on Windows. type PatchSettings struct { // PatchMode - Specifies the mode of VM Guest Patching to IaaS virtual machine.

Possible values are:

**Manual** - You control the application of patches to a virtual machine. You do this by applying patches manually inside the VM. In this mode, automatic updates are disabled; the property WindowsConfiguration.enableAutomaticUpdates must be false

**AutomaticByOS** - The virtual machine will automatically be updated by the OS. The property WindowsConfiguration.enableAutomaticUpdates must be true.

**AutomaticByPlatform** - the virtual machine will automatically updated by the platform. The properties provisionVMAgent and WindowsConfiguration.enableAutomaticUpdates must be true. Possible values include: 'WindowsVMGuestPatchModeManual', 'WindowsVMGuestPatchModeAutomaticByOS', 'WindowsVMGuestPatchModeAutomaticByPlatform' @@ -7831,6 +7909,12 @@ type PrivateEndpoint struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpoint. +func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection the Private Endpoint Connection resource. type PrivateEndpointConnection struct { autorest.Response `json:"-"` @@ -8513,6 +8597,12 @@ type ProxyOnlyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyOnlyResource. +func (por ProxyOnlyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PurchasePlan used for establishing the purchase context of any 3rd Party artifact through MarketPlace. type PurchasePlan struct { // Publisher - The publisher ID. @@ -8541,6 +8631,12 @@ type RecoveryWalkResponse struct { NextPlatformUpdateDomain *int32 `json:"nextPlatformUpdateDomain,omitempty"` } +// MarshalJSON is the custom marshaler for RecoveryWalkResponse. +func (rwr RecoveryWalkResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegionalReplicationStatus this is the regional replication status. type RegionalReplicationStatus struct { // Region - READ-ONLY; The region to which the gallery Image Version is being replicated to. @@ -8553,6 +8649,12 @@ type RegionalReplicationStatus struct { Progress *int32 `json:"progress,omitempty"` } +// MarshalJSON is the custom marshaler for RegionalReplicationStatus. +func (rrs RegionalReplicationStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReplicationStatus this is the replication status of the gallery Image Version. type ReplicationStatus struct { // AggregatedState - READ-ONLY; This is the aggregated replication status based on all the regional replication status flags. Possible values include: 'Unknown', 'InProgress', 'Completed', 'Failed' @@ -8561,6 +8663,12 @@ type ReplicationStatus struct { Summary *[]RegionalReplicationStatus `json:"summary,omitempty"` } +// MarshalJSON is the custom marshaler for ReplicationStatus. +func (rs ReplicationStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RequestRateByIntervalInput api request input for LogAnalytics getRequestRateByInterval Api. type RequestRateByIntervalInput struct { // IntervalLength - Interval value in minutes used to create LogAnalytics call rate logs. Possible values include: 'ThreeMins', 'FiveMins', 'ThirtyMins', 'SixtyMins' @@ -8647,6 +8755,12 @@ type ResourceSku struct { Restrictions *[]ResourceSkuRestrictions `json:"restrictions,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSku. +func (rs ResourceSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCapabilities describes The SKU capabilities object. type ResourceSkuCapabilities struct { // Name - READ-ONLY; An invariant to describe the feature. @@ -8655,6 +8769,12 @@ type ResourceSkuCapabilities struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapabilities. +func (rsc ResourceSkuCapabilities) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCapacity describes scaling information of a SKU. type ResourceSkuCapacity struct { // Minimum - READ-ONLY; The minimum capacity. @@ -8667,6 +8787,12 @@ type ResourceSkuCapacity struct { ScaleType ResourceSkuCapacityScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapacity. +func (rsc ResourceSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCosts describes metadata for retrieving price info. type ResourceSkuCosts struct { // MeterID - READ-ONLY; Used for querying price from commerce. @@ -8677,6 +8803,12 @@ type ResourceSkuCosts struct { ExtendedUnit *string `json:"extendedUnit,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCosts. +func (rsc ResourceSkuCosts) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuLocationInfo ... type ResourceSkuLocationInfo struct { // Location - READ-ONLY; Location of the SKU @@ -8687,6 +8819,12 @@ type ResourceSkuLocationInfo struct { ZoneDetails *[]ResourceSkuZoneDetails `json:"zoneDetails,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuLocationInfo. +func (rsli ResourceSkuLocationInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuRestrictionInfo ... type ResourceSkuRestrictionInfo struct { // Locations - READ-ONLY; Locations where the SKU is restricted @@ -8695,6 +8833,12 @@ type ResourceSkuRestrictionInfo struct { Zones *[]string `json:"zones,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuRestrictionInfo. +func (rsri ResourceSkuRestrictionInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuRestrictions describes scaling information of a SKU. type ResourceSkuRestrictions struct { // Type - READ-ONLY; The type of restrictions. Possible values include: 'Location', 'Zone' @@ -8707,6 +8851,12 @@ type ResourceSkuRestrictions struct { ReasonCode ResourceSkuRestrictionsReasonCode `json:"reasonCode,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuRestrictions. +func (rsr ResourceSkuRestrictions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkusResult the List Resource Skus operation response. type ResourceSkusResult struct { autorest.Response `json:"-"` @@ -8874,6 +9024,12 @@ type ResourceSkuZoneDetails struct { Capabilities *[]ResourceSkuCapabilities `json:"capabilities,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuZoneDetails. +func (rszd ResourceSkuZoneDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceURIList the List resources which are encrypted with the disk encryption set. type ResourceURIList struct { autorest.Response `json:"-"` @@ -9042,6 +9198,12 @@ type RetrieveBootDiagnosticsDataResult struct { SerialConsoleLogBlobURI *string `json:"serialConsoleLogBlobUri,omitempty"` } +// MarshalJSON is the custom marshaler for RetrieveBootDiagnosticsDataResult. +func (rbddr RetrieveBootDiagnosticsDataResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollbackStatusInfo information about rollback on failed VM instances after a OS Upgrade operation. type RollbackStatusInfo struct { // SuccessfullyRolledbackInstanceCount - READ-ONLY; The number of instances which have been successfully rolled back. @@ -9052,6 +9214,12 @@ type RollbackStatusInfo struct { RollbackError *APIError `json:"rollbackError,omitempty"` } +// MarshalJSON is the custom marshaler for RollbackStatusInfo. +func (rsi RollbackStatusInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollingUpgradePolicy the configuration parameters used while performing a rolling upgrade. type RollingUpgradePolicy struct { // MaxBatchInstancePercent - The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The default value for this parameter is 20%. @@ -9081,6 +9249,12 @@ type RollingUpgradeProgressInfo struct { PendingInstanceCount *int32 `json:"pendingInstanceCount,omitempty"` } +// MarshalJSON is the custom marshaler for RollingUpgradeProgressInfo. +func (rupi RollingUpgradeProgressInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollingUpgradeRunningStatus information about the current running state of the overall upgrade. type RollingUpgradeRunningStatus struct { // Code - READ-ONLY; Code indicating the current status of the upgrade. Possible values include: 'RollingUpgradeStatusCodeRollingForward', 'RollingUpgradeStatusCodeCancelled', 'RollingUpgradeStatusCodeCompleted', 'RollingUpgradeStatusCodeFaulted' @@ -9093,6 +9267,12 @@ type RollingUpgradeRunningStatus struct { LastActionTime *date.Time `json:"lastActionTime,omitempty"` } +// MarshalJSON is the custom marshaler for RollingUpgradeRunningStatus. +func (rurs RollingUpgradeRunningStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollingUpgradeStatusInfo the status of the latest virtual machine scale set rolling upgrade. type RollingUpgradeStatusInfo struct { autorest.Response `json:"-"` @@ -9205,6 +9385,12 @@ type RollingUpgradeStatusInfoProperties struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for RollingUpgradeStatusInfoProperties. +func (rusip RollingUpgradeStatusInfoProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RunCommandDocument describes the properties of a Run Command. type RunCommandDocument struct { autorest.Response `json:"-"` @@ -9463,6 +9649,12 @@ type ShareInfoElement struct { VMURI *string `json:"vmUri,omitempty"` } +// MarshalJSON is the custom marshaler for ShareInfoElement. +func (sie ShareInfoElement) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Sku describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware // the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU // name. @@ -10530,6 +10722,12 @@ type SubResourceReadOnly struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for SubResourceReadOnly. +func (srro SubResourceReadOnly) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SubResourceWithColocationStatus ... type SubResourceWithColocationStatus struct { // ColocationStatus - Describes colocation status of a resource in the Proximity Placement Group. @@ -10632,6 +10830,12 @@ type UpgradeOperationHistoricalStatusInfo struct { Location *string `json:"location,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeOperationHistoricalStatusInfo. +func (uohsi UpgradeOperationHistoricalStatusInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpgradeOperationHistoricalStatusInfoProperties describes each OS upgrade on the Virtual Machine Scale // Set. type UpgradeOperationHistoricalStatusInfoProperties struct { @@ -10649,6 +10853,12 @@ type UpgradeOperationHistoricalStatusInfoProperties struct { RollbackInfo *RollbackStatusInfo `json:"rollbackInfo,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeOperationHistoricalStatusInfoProperties. +func (uohsip UpgradeOperationHistoricalStatusInfoProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpgradeOperationHistoryStatus information about the current running state of the overall upgrade. type UpgradeOperationHistoryStatus struct { // Code - READ-ONLY; Code indicating the current status of the upgrade. Possible values include: 'UpgradeStateRollingForward', 'UpgradeStateCancelled', 'UpgradeStateCompleted', 'UpgradeStateFaulted' @@ -10659,6 +10869,12 @@ type UpgradeOperationHistoryStatus struct { EndTime *date.Time `json:"endTime,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeOperationHistoryStatus. +func (uohs UpgradeOperationHistoryStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpgradePolicy describes an upgrade policy - automatic, manual, or rolling. type UpgradePolicy struct { // Mode - Specifies the mode of an upgrade to virtual machines in the scale set.

Possible values are:

**Manual** - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.

**Automatic** - All virtual machines in the scale set are automatically updated at the same time. Possible values include: 'Automatic', 'Manual', 'Rolling' @@ -10928,6 +11144,12 @@ type VirtualMachineAssessPatchesResult struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineAssessPatchesResult. +func (vmapr VirtualMachineAssessPatchesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineCaptureParameters capture Virtual Machine parameters. type VirtualMachineCaptureParameters struct { // VhdPrefix - The captured virtual hard disk's name prefix. @@ -11465,6 +11687,12 @@ type VirtualMachineHealthStatus struct { Status *InstanceViewStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineHealthStatus. +func (vmhs VirtualMachineHealthStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineIdentity identity for the virtual machine. type VirtualMachineIdentity struct { // PrincipalID - READ-ONLY; The principal id of virtual machine identity. This property will only be provided for a system assigned identity. @@ -11497,6 +11725,12 @@ type VirtualMachineIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineIdentityUserAssignedIdentitiesValue. +func (vmiAiv VirtualMachineIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineImage describes a Virtual Machine Image. type VirtualMachineImage struct { autorest.Response `json:"-"` @@ -11703,6 +11937,12 @@ type VirtualMachineInstallPatchesResult struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineInstallPatchesResult. +func (vmipr VirtualMachineInstallPatchesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineInstanceView the instance view of a virtual machine. type VirtualMachineInstanceView struct { autorest.Response `json:"-"` @@ -13368,6 +13608,12 @@ type VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue. +func (vmssiAiv VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetInstanceView the instance view of a virtual machine scale set. type VirtualMachineScaleSetInstanceView struct { autorest.Response `json:"-"` @@ -13397,6 +13643,12 @@ type VirtualMachineScaleSetInstanceViewStatusesSummary struct { StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetInstanceViewStatusesSummary. +func (vmssivss VirtualMachineScaleSetInstanceViewStatusesSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetIPConfiguration describes a virtual machine scale set network profile's IP // configuration. type VirtualMachineScaleSetIPConfiguration struct { @@ -14723,6 +14975,12 @@ type VirtualMachineScaleSetSku struct { Capacity *VirtualMachineScaleSetSkuCapacity `json:"capacity,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetSku. +func (vmsss VirtualMachineScaleSetSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetSkuCapacity describes scaling information of a sku. type VirtualMachineScaleSetSkuCapacity struct { // Minimum - READ-ONLY; The minimum capacity. @@ -14735,6 +14993,12 @@ type VirtualMachineScaleSetSkuCapacity struct { ScaleType VirtualMachineScaleSetSkuScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetSkuCapacity. +func (vmsssc VirtualMachineScaleSetSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetsPerformMaintenanceFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type VirtualMachineScaleSetsPerformMaintenanceFuture struct { @@ -15870,6 +16134,12 @@ type VirtualMachineScaleSetVMExtensionsSummary struct { StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetVMExtensionsSummary. +func (vmssves VirtualMachineScaleSetVMExtensionsSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetVMExtensionsUpdateFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type VirtualMachineScaleSetVMExtensionsUpdateFuture struct { @@ -17175,6 +17445,12 @@ type VirtualMachineSoftwarePatchProperties struct { AssessmentState PatchAssessmentState `json:"assessmentState,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineSoftwarePatchProperties. +func (vmspp VirtualMachineSoftwarePatchProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachinesPerformMaintenanceFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type VirtualMachinesPerformMaintenanceFuture struct { @@ -17486,6 +17762,12 @@ type VirtualMachineStatusCodeCount struct { Count *int32 `json:"count,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineStatusCodeCount. +func (vmscc VirtualMachineStatusCodeCount) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachinesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type VirtualMachinesUpdateFuture struct { diff --git a/services/compute/mgmt/2021-03-01/compute/CHANGELOG.md b/services/compute/mgmt/2021-03-01/compute/CHANGELOG.md index 52911e4cc5e4..259a02ae6f87 100644 --- a/services/compute/mgmt/2021-03-01/compute/CHANGELOG.md +++ b/services/compute/mgmt/2021-03-01/compute/CHANGELOG.md @@ -1,2 +1,924 @@ # Change History +## Breaking Changes + +### Removed Constants + +1. AccessLevel.None +1. AccessLevel.Read +1. AccessLevel.Write +1. AggregatedReplicationState.Completed +1. AggregatedReplicationState.Failed +1. AggregatedReplicationState.InProgress +1. AggregatedReplicationState.Unknown +1. AvailabilitySetSkuTypes.Aligned +1. AvailabilitySetSkuTypes.Classic +1. CloudServiceUpgradeMode.Auto +1. CloudServiceUpgradeMode.Manual +1. CloudServiceUpgradeMode.Simultaneous +1. ComponentNames.MicrosoftWindowsShellSetup +1. DiffDiskOptions.Local +1. DiffDiskPlacement.CacheDisk +1. DiffDiskPlacement.ResourceDisk +1. DiskCreateOption.Attach +1. DiskCreateOption.Copy +1. DiskCreateOption.Empty +1. DiskCreateOption.FromImage +1. DiskCreateOption.Import +1. DiskCreateOption.Restore +1. DiskCreateOption.Upload +1. DiskDetachOptionTypes.ForceDetach +1. DiskEncryptionSetType.EncryptionAtRestWithCustomerKey +1. DiskEncryptionSetType.EncryptionAtRestWithPlatformAndCustomerKeys +1. DiskSecurityTypes.TrustedLaunch +1. DiskState.ActiveSAS +1. DiskState.ActiveUpload +1. DiskState.Attached +1. DiskState.ReadyToUpload +1. DiskState.Reserved +1. DiskState.Unattached +1. DiskStorageAccountTypes.PremiumLRS +1. DiskStorageAccountTypes.PremiumZRS +1. DiskStorageAccountTypes.StandardLRS +1. DiskStorageAccountTypes.StandardSSDLRS +1. DiskStorageAccountTypes.StandardSSDZRS +1. DiskStorageAccountTypes.UltraSSDLRS +1. ExtendedLocationTypes.EdgeZone +1. HyperVGeneration.V1 +1. HyperVGeneration.V2 +1. IPVersion.IPv4 +1. IPVersion.IPv6 +1. InstanceViewTypes.InstanceView +1. IntervalInMins.FiveMins +1. IntervalInMins.SixtyMins +1. IntervalInMins.ThirtyMins +1. IntervalInMins.ThreeMins +1. LinuxVMGuestPatchMode.AutomaticByPlatform +1. LinuxVMGuestPatchMode.ImageDefault +1. NetworkAccessPolicy.AllowAll +1. NetworkAccessPolicy.AllowPrivate +1. NetworkAccessPolicy.DenyAll +1. OperatingSystemStateTypes.Generalized +1. OperatingSystemStateTypes.Specialized +1. OperatingSystemTypes.Linux +1. OperatingSystemTypes.Windows +1. OrchestrationMode.Flexible +1. OrchestrationMode.Uniform +1. OrchestrationServiceNames.AutomaticRepairs +1. OrchestrationServiceState.NotRunning +1. OrchestrationServiceState.Running +1. OrchestrationServiceState.Suspended +1. OrchestrationServiceStateAction.Resume +1. OrchestrationServiceStateAction.Suspend +1. PassNames.OobeSystem +1. PrivateEndpointServiceConnectionStatus.Approved +1. PrivateEndpointServiceConnectionStatus.Pending +1. PrivateEndpointServiceConnectionStatus.Rejected +1. ProtocolTypes.HTTP +1. ProtocolTypes.HTTPS +1. ProximityPlacementGroupType.Standard +1. ProximityPlacementGroupType.Ultra +1. ResourceSkuRestrictionsReasonCode.NotAvailableForSubscription +1. ResourceSkuRestrictionsReasonCode.QuotaID +1. ResourceSkuRestrictionsType.Location +1. ResourceSkuRestrictionsType.Zone +1. RollingUpgradeActionType.Cancel +1. RollingUpgradeActionType.Start +1. SettingNames.AutoLogon +1. SettingNames.FirstLogonCommands +1. StatusLevelTypes.Error +1. StatusLevelTypes.Info +1. StatusLevelTypes.Warning +1. VMGuestPatchClassificationLinux.Critical +1. VMGuestPatchClassificationLinux.Other +1. VMGuestPatchClassificationLinux.Security +1. VMGuestPatchRebootSetting.Always +1. VMGuestPatchRebootSetting.IfRequired +1. VMGuestPatchRebootSetting.Never +1. VirtualMachineEvictionPolicyTypes.Deallocate +1. VirtualMachineEvictionPolicyTypes.Delete +1. VirtualMachinePriorityTypes.Low +1. VirtualMachinePriorityTypes.Regular +1. VirtualMachinePriorityTypes.Spot +1. VirtualMachineScaleSetScaleInRules.Default +1. VirtualMachineScaleSetScaleInRules.NewestVM +1. VirtualMachineScaleSetScaleInRules.OldestVM +1. VirtualMachineSizeTypes.BasicA0 +1. VirtualMachineSizeTypes.BasicA1 +1. VirtualMachineSizeTypes.BasicA2 +1. VirtualMachineSizeTypes.BasicA3 +1. VirtualMachineSizeTypes.BasicA4 +1. VirtualMachineSizeTypes.StandardA0 +1. VirtualMachineSizeTypes.StandardA1 +1. VirtualMachineSizeTypes.StandardA10 +1. VirtualMachineSizeTypes.StandardA11 +1. VirtualMachineSizeTypes.StandardA1V2 +1. VirtualMachineSizeTypes.StandardA2 +1. VirtualMachineSizeTypes.StandardA2V2 +1. VirtualMachineSizeTypes.StandardA2mV2 +1. VirtualMachineSizeTypes.StandardA3 +1. VirtualMachineSizeTypes.StandardA4 +1. VirtualMachineSizeTypes.StandardA4V2 +1. VirtualMachineSizeTypes.StandardA4mV2 +1. VirtualMachineSizeTypes.StandardA5 +1. VirtualMachineSizeTypes.StandardA6 +1. VirtualMachineSizeTypes.StandardA7 +1. VirtualMachineSizeTypes.StandardA8 +1. VirtualMachineSizeTypes.StandardA8V2 +1. VirtualMachineSizeTypes.StandardA8mV2 +1. VirtualMachineSizeTypes.StandardA9 +1. VirtualMachineSizeTypes.StandardB1ms +1. VirtualMachineSizeTypes.StandardB1s +1. VirtualMachineSizeTypes.StandardB2ms +1. VirtualMachineSizeTypes.StandardB2s +1. VirtualMachineSizeTypes.StandardB4ms +1. VirtualMachineSizeTypes.StandardB8ms +1. VirtualMachineSizeTypes.StandardD1 +1. VirtualMachineSizeTypes.StandardD11 +1. VirtualMachineSizeTypes.StandardD11V2 +1. VirtualMachineSizeTypes.StandardD12 +1. VirtualMachineSizeTypes.StandardD12V2 +1. VirtualMachineSizeTypes.StandardD13 +1. VirtualMachineSizeTypes.StandardD13V2 +1. VirtualMachineSizeTypes.StandardD14 +1. VirtualMachineSizeTypes.StandardD14V2 +1. VirtualMachineSizeTypes.StandardD15V2 +1. VirtualMachineSizeTypes.StandardD16V3 +1. VirtualMachineSizeTypes.StandardD16sV3 +1. VirtualMachineSizeTypes.StandardD1V2 +1. VirtualMachineSizeTypes.StandardD2 +1. VirtualMachineSizeTypes.StandardD2V2 +1. VirtualMachineSizeTypes.StandardD2V3 +1. VirtualMachineSizeTypes.StandardD2sV3 +1. VirtualMachineSizeTypes.StandardD3 +1. VirtualMachineSizeTypes.StandardD32V3 +1. VirtualMachineSizeTypes.StandardD32sV3 +1. VirtualMachineSizeTypes.StandardD3V2 +1. VirtualMachineSizeTypes.StandardD4 +1. VirtualMachineSizeTypes.StandardD4V2 +1. VirtualMachineSizeTypes.StandardD4V3 +1. VirtualMachineSizeTypes.StandardD4sV3 +1. VirtualMachineSizeTypes.StandardD5V2 +1. VirtualMachineSizeTypes.StandardD64V3 +1. VirtualMachineSizeTypes.StandardD64sV3 +1. VirtualMachineSizeTypes.StandardD8V3 +1. VirtualMachineSizeTypes.StandardD8sV3 +1. VirtualMachineSizeTypes.StandardDS1 +1. VirtualMachineSizeTypes.StandardDS11 +1. VirtualMachineSizeTypes.StandardDS11V2 +1. VirtualMachineSizeTypes.StandardDS12 +1. VirtualMachineSizeTypes.StandardDS12V2 +1. VirtualMachineSizeTypes.StandardDS13 +1. VirtualMachineSizeTypes.StandardDS132V2 +1. VirtualMachineSizeTypes.StandardDS134V2 +1. VirtualMachineSizeTypes.StandardDS13V2 +1. VirtualMachineSizeTypes.StandardDS14 +1. VirtualMachineSizeTypes.StandardDS144V2 +1. VirtualMachineSizeTypes.StandardDS148V2 +1. VirtualMachineSizeTypes.StandardDS14V2 +1. VirtualMachineSizeTypes.StandardDS15V2 +1. VirtualMachineSizeTypes.StandardDS1V2 +1. VirtualMachineSizeTypes.StandardDS2 +1. VirtualMachineSizeTypes.StandardDS2V2 +1. VirtualMachineSizeTypes.StandardDS3 +1. VirtualMachineSizeTypes.StandardDS3V2 +1. VirtualMachineSizeTypes.StandardDS4 +1. VirtualMachineSizeTypes.StandardDS4V2 +1. VirtualMachineSizeTypes.StandardDS5V2 +1. VirtualMachineSizeTypes.StandardE16V3 +1. VirtualMachineSizeTypes.StandardE16sV3 +1. VirtualMachineSizeTypes.StandardE2V3 +1. VirtualMachineSizeTypes.StandardE2sV3 +1. VirtualMachineSizeTypes.StandardE3216V3 +1. VirtualMachineSizeTypes.StandardE328sV3 +1. VirtualMachineSizeTypes.StandardE32V3 +1. VirtualMachineSizeTypes.StandardE32sV3 +1. VirtualMachineSizeTypes.StandardE4V3 +1. VirtualMachineSizeTypes.StandardE4sV3 +1. VirtualMachineSizeTypes.StandardE6416sV3 +1. VirtualMachineSizeTypes.StandardE6432sV3 +1. VirtualMachineSizeTypes.StandardE64V3 +1. VirtualMachineSizeTypes.StandardE64sV3 +1. VirtualMachineSizeTypes.StandardE8V3 +1. VirtualMachineSizeTypes.StandardE8sV3 +1. VirtualMachineSizeTypes.StandardF1 +1. VirtualMachineSizeTypes.StandardF16 +1. VirtualMachineSizeTypes.StandardF16s +1. VirtualMachineSizeTypes.StandardF16sV2 +1. VirtualMachineSizeTypes.StandardF1s +1. VirtualMachineSizeTypes.StandardF2 +1. VirtualMachineSizeTypes.StandardF2s +1. VirtualMachineSizeTypes.StandardF2sV2 +1. VirtualMachineSizeTypes.StandardF32sV2 +1. VirtualMachineSizeTypes.StandardF4 +1. VirtualMachineSizeTypes.StandardF4s +1. VirtualMachineSizeTypes.StandardF4sV2 +1. VirtualMachineSizeTypes.StandardF64sV2 +1. VirtualMachineSizeTypes.StandardF72sV2 +1. VirtualMachineSizeTypes.StandardF8 +1. VirtualMachineSizeTypes.StandardF8s +1. VirtualMachineSizeTypes.StandardF8sV2 +1. VirtualMachineSizeTypes.StandardG1 +1. VirtualMachineSizeTypes.StandardG2 +1. VirtualMachineSizeTypes.StandardG3 +1. VirtualMachineSizeTypes.StandardG4 +1. VirtualMachineSizeTypes.StandardG5 +1. VirtualMachineSizeTypes.StandardGS1 +1. VirtualMachineSizeTypes.StandardGS2 +1. VirtualMachineSizeTypes.StandardGS3 +1. VirtualMachineSizeTypes.StandardGS4 +1. VirtualMachineSizeTypes.StandardGS44 +1. VirtualMachineSizeTypes.StandardGS48 +1. VirtualMachineSizeTypes.StandardGS5 +1. VirtualMachineSizeTypes.StandardGS516 +1. VirtualMachineSizeTypes.StandardGS58 +1. VirtualMachineSizeTypes.StandardH16 +1. VirtualMachineSizeTypes.StandardH16m +1. VirtualMachineSizeTypes.StandardH16mr +1. VirtualMachineSizeTypes.StandardH16r +1. VirtualMachineSizeTypes.StandardH8 +1. VirtualMachineSizeTypes.StandardH8m +1. VirtualMachineSizeTypes.StandardL16s +1. VirtualMachineSizeTypes.StandardL32s +1. VirtualMachineSizeTypes.StandardL4s +1. VirtualMachineSizeTypes.StandardL8s +1. VirtualMachineSizeTypes.StandardM12832ms +1. VirtualMachineSizeTypes.StandardM12864ms +1. VirtualMachineSizeTypes.StandardM128ms +1. VirtualMachineSizeTypes.StandardM128s +1. VirtualMachineSizeTypes.StandardM6416ms +1. VirtualMachineSizeTypes.StandardM6432ms +1. VirtualMachineSizeTypes.StandardM64ms +1. VirtualMachineSizeTypes.StandardM64s +1. VirtualMachineSizeTypes.StandardNC12 +1. VirtualMachineSizeTypes.StandardNC12sV2 +1. VirtualMachineSizeTypes.StandardNC12sV3 +1. VirtualMachineSizeTypes.StandardNC24 +1. VirtualMachineSizeTypes.StandardNC24r +1. VirtualMachineSizeTypes.StandardNC24rsV2 +1. VirtualMachineSizeTypes.StandardNC24rsV3 +1. VirtualMachineSizeTypes.StandardNC24sV2 +1. VirtualMachineSizeTypes.StandardNC24sV3 +1. VirtualMachineSizeTypes.StandardNC6 +1. VirtualMachineSizeTypes.StandardNC6sV2 +1. VirtualMachineSizeTypes.StandardNC6sV3 +1. VirtualMachineSizeTypes.StandardND12s +1. VirtualMachineSizeTypes.StandardND24rs +1. VirtualMachineSizeTypes.StandardND24s +1. VirtualMachineSizeTypes.StandardND6s +1. VirtualMachineSizeTypes.StandardNV12 +1. VirtualMachineSizeTypes.StandardNV24 +1. VirtualMachineSizeTypes.StandardNV6 + +### Signature Changes + +#### Funcs + +1. GalleriesClient.Get + - Params + - From: context.Context, string, string + - To: context.Context, string, string, SelectPermissions +1. GalleriesClient.GetPreparer + - Params + - From: context.Context, string, string + - To: context.Context, string, string, SelectPermissions +1. VirtualMachineScaleSetsClient.Get + - Params + - From: context.Context, string, string + - To: context.Context, string, string, ExpandTypesForGetVMScaleSets +1. VirtualMachineScaleSetsClient.GetPreparer + - Params + - From: context.Context, string, string + - To: context.Context, string, string, ExpandTypesForGetVMScaleSets + +#### Struct Fields + +1. OrchestrationServiceStateInput.ServiceName changed type from OrchestrationServiceNames to *string + +## Additive Changes + +### New Constants + +1. AccessLevel.AccessLevelNone +1. AccessLevel.AccessLevelRead +1. AccessLevel.AccessLevelWrite +1. AggregatedReplicationState.AggregatedReplicationStateCompleted +1. AggregatedReplicationState.AggregatedReplicationStateFailed +1. AggregatedReplicationState.AggregatedReplicationStateInProgress +1. AggregatedReplicationState.AggregatedReplicationStateUnknown +1. AvailabilitySetSkuTypes.AvailabilitySetSkuTypesAligned +1. AvailabilitySetSkuTypes.AvailabilitySetSkuTypesClassic +1. CloudServiceUpgradeMode.CloudServiceUpgradeModeAuto +1. CloudServiceUpgradeMode.CloudServiceUpgradeModeManual +1. CloudServiceUpgradeMode.CloudServiceUpgradeModeSimultaneous +1. ComponentNames.ComponentNamesMicrosoftWindowsShellSetup +1. ConsistencyModeTypes.ConsistencyModeTypesApplicationConsistent +1. ConsistencyModeTypes.ConsistencyModeTypesCrashConsistent +1. ConsistencyModeTypes.ConsistencyModeTypesFileSystemConsistent +1. DeleteOptions.DeleteOptionsDelete +1. DeleteOptions.DeleteOptionsDetach +1. DiffDiskOptions.DiffDiskOptionsLocal +1. DiffDiskPlacement.DiffDiskPlacementCacheDisk +1. DiffDiskPlacement.DiffDiskPlacementResourceDisk +1. DiskCreateOption.DiskCreateOptionAttach +1. DiskCreateOption.DiskCreateOptionCopy +1. DiskCreateOption.DiskCreateOptionEmpty +1. DiskCreateOption.DiskCreateOptionFromImage +1. DiskCreateOption.DiskCreateOptionImport +1. DiskCreateOption.DiskCreateOptionRestore +1. DiskCreateOption.DiskCreateOptionUpload +1. DiskDeleteOptionTypes.DiskDeleteOptionTypesDelete +1. DiskDeleteOptionTypes.DiskDeleteOptionTypesDetach +1. DiskDetachOptionTypes.DiskDetachOptionTypesForceDetach +1. DiskEncryptionSetType.DiskEncryptionSetTypeEncryptionAtRestWithCustomerKey +1. DiskEncryptionSetType.DiskEncryptionSetTypeEncryptionAtRestWithPlatformAndCustomerKeys +1. DiskSecurityTypes.DiskSecurityTypesTrustedLaunch +1. DiskState.DiskStateActiveSAS +1. DiskState.DiskStateActiveUpload +1. DiskState.DiskStateAttached +1. DiskState.DiskStateReadyToUpload +1. DiskState.DiskStateReserved +1. DiskState.DiskStateUnattached +1. DiskStorageAccountTypes.DiskStorageAccountTypesPremiumLRS +1. DiskStorageAccountTypes.DiskStorageAccountTypesPremiumZRS +1. DiskStorageAccountTypes.DiskStorageAccountTypesStandardLRS +1. DiskStorageAccountTypes.DiskStorageAccountTypesStandardSSDLRS +1. DiskStorageAccountTypes.DiskStorageAccountTypesStandardSSDZRS +1. DiskStorageAccountTypes.DiskStorageAccountTypesUltraSSDLRS +1. ExpandTypesForGetVMScaleSets.ExpandTypesForGetVMScaleSetsUserData +1. ExtendedLocationTypes.ExtendedLocationTypesEdgeZone +1. GallerySharingPermissionTypes.GallerySharingPermissionTypesGroups +1. GallerySharingPermissionTypes.GallerySharingPermissionTypesPrivate +1. HyperVGeneration.HyperVGenerationV1 +1. HyperVGeneration.HyperVGenerationV2 +1. IPVersion.IPVersionIPv4 +1. IPVersion.IPVersionIPv6 +1. IPVersions.IPVersionsIPv4 +1. IPVersions.IPVersionsIPv6 +1. InstanceViewTypes.InstanceViewTypesInstanceView +1. InstanceViewTypes.InstanceViewTypesUserData +1. IntervalInMins.IntervalInMinsFiveMins +1. IntervalInMins.IntervalInMinsSixtyMins +1. IntervalInMins.IntervalInMinsThirtyMins +1. IntervalInMins.IntervalInMinsThreeMins +1. LinuxPatchAssessmentMode.LinuxPatchAssessmentModeAutomaticByPlatform +1. LinuxPatchAssessmentMode.LinuxPatchAssessmentModeImageDefault +1. LinuxVMGuestPatchMode.LinuxVMGuestPatchModeAutomaticByPlatform +1. LinuxVMGuestPatchMode.LinuxVMGuestPatchModeImageDefault +1. NetworkAPIVersion.NetworkAPIVersionTwoZeroTwoZeroHyphenMinusOneOneHyphenMinusZeroOne +1. NetworkAccessPolicy.NetworkAccessPolicyAllowAll +1. NetworkAccessPolicy.NetworkAccessPolicyAllowPrivate +1. NetworkAccessPolicy.NetworkAccessPolicyDenyAll +1. OperatingSystemStateTypes.OperatingSystemStateTypesGeneralized +1. OperatingSystemStateTypes.OperatingSystemStateTypesSpecialized +1. OperatingSystemType.OperatingSystemTypeLinux +1. OperatingSystemType.OperatingSystemTypeWindows +1. OperatingSystemTypes.OperatingSystemTypesLinux +1. OperatingSystemTypes.OperatingSystemTypesWindows +1. OrchestrationMode.OrchestrationModeFlexible +1. OrchestrationMode.OrchestrationModeUniform +1. OrchestrationServiceNames.OrchestrationServiceNamesAutomaticRepairs +1. OrchestrationServiceState.OrchestrationServiceStateNotRunning +1. OrchestrationServiceState.OrchestrationServiceStateRunning +1. OrchestrationServiceState.OrchestrationServiceStateSuspended +1. OrchestrationServiceStateAction.OrchestrationServiceStateActionResume +1. OrchestrationServiceStateAction.OrchestrationServiceStateActionSuspend +1. PassNames.PassNamesOobeSystem +1. PrivateEndpointServiceConnectionStatus.PrivateEndpointServiceConnectionStatusApproved +1. PrivateEndpointServiceConnectionStatus.PrivateEndpointServiceConnectionStatusPending +1. PrivateEndpointServiceConnectionStatus.PrivateEndpointServiceConnectionStatusRejected +1. ProtocolTypes.ProtocolTypesHTTP +1. ProtocolTypes.ProtocolTypesHTTPS +1. ProximityPlacementGroupType.ProximityPlacementGroupTypeStandard +1. ProximityPlacementGroupType.ProximityPlacementGroupTypeUltra +1. PublicIPAddressSkuName.PublicIPAddressSkuNameBasic +1. PublicIPAddressSkuName.PublicIPAddressSkuNameStandard +1. PublicIPAddressSkuTier.PublicIPAddressSkuTierGlobal +1. PublicIPAddressSkuTier.PublicIPAddressSkuTierRegional +1. PublicIPAllocationMethod.PublicIPAllocationMethodDynamic +1. PublicIPAllocationMethod.PublicIPAllocationMethodStatic +1. ResourceSkuRestrictionsReasonCode.ResourceSkuRestrictionsReasonCodeNotAvailableForSubscription +1. ResourceSkuRestrictionsReasonCode.ResourceSkuRestrictionsReasonCodeQuotaID +1. ResourceSkuRestrictionsType.ResourceSkuRestrictionsTypeLocation +1. ResourceSkuRestrictionsType.ResourceSkuRestrictionsTypeZone +1. RestorePointCollectionExpandOptions.RestorePointCollectionExpandOptionsRestorePoints +1. RollingUpgradeActionType.RollingUpgradeActionTypeCancel +1. RollingUpgradeActionType.RollingUpgradeActionTypeStart +1. SelectPermissions.SelectPermissionsPermissions +1. SettingNames.SettingNamesAutoLogon +1. SettingNames.SettingNamesFirstLogonCommands +1. SharedToValues.SharedToValuesTenant +1. SharingProfileGroupTypes.SharingProfileGroupTypesAADTenants +1. SharingProfileGroupTypes.SharingProfileGroupTypesSubscriptions +1. SharingUpdateOperationTypes.SharingUpdateOperationTypesAdd +1. SharingUpdateOperationTypes.SharingUpdateOperationTypesRemove +1. SharingUpdateOperationTypes.SharingUpdateOperationTypesReset +1. StatusLevelTypes.StatusLevelTypesError +1. StatusLevelTypes.StatusLevelTypesInfo +1. StatusLevelTypes.StatusLevelTypesWarning +1. VMGuestPatchClassificationLinux.VMGuestPatchClassificationLinuxCritical +1. VMGuestPatchClassificationLinux.VMGuestPatchClassificationLinuxOther +1. VMGuestPatchClassificationLinux.VMGuestPatchClassificationLinuxSecurity +1. VMGuestPatchRebootSetting.VMGuestPatchRebootSettingAlways +1. VMGuestPatchRebootSetting.VMGuestPatchRebootSettingIfRequired +1. VMGuestPatchRebootSetting.VMGuestPatchRebootSettingNever +1. VirtualMachineEvictionPolicyTypes.VirtualMachineEvictionPolicyTypesDeallocate +1. VirtualMachineEvictionPolicyTypes.VirtualMachineEvictionPolicyTypesDelete +1. VirtualMachinePriorityTypes.VirtualMachinePriorityTypesLow +1. VirtualMachinePriorityTypes.VirtualMachinePriorityTypesRegular +1. VirtualMachinePriorityTypes.VirtualMachinePriorityTypesSpot +1. VirtualMachineScaleSetScaleInRules.VirtualMachineScaleSetScaleInRulesDefault +1. VirtualMachineScaleSetScaleInRules.VirtualMachineScaleSetScaleInRulesNewestVM +1. VirtualMachineScaleSetScaleInRules.VirtualMachineScaleSetScaleInRulesOldestVM +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesBasicA0 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesBasicA1 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesBasicA2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesBasicA3 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesBasicA4 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardA0 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardA1 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardA10 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardA11 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardA1V2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardA2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardA2V2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardA2mV2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardA3 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardA4 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardA4V2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardA4mV2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardA5 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardA6 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardA7 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardA8 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardA8V2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardA8mV2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardA9 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardB1ms +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardB1s +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardB2ms +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardB2s +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardB4ms +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardB8ms +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD1 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD11 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD11V2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD12 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD12V2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD13 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD13V2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD14 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD14V2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD15V2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD16V3 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD16sV3 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD1V2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD2V2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD2V3 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD2sV3 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD3 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD32V3 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD32sV3 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD3V2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD4 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD4V2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD4V3 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD4sV3 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD5V2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD64V3 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD64sV3 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD8V3 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD8sV3 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS1 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS11 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS11V2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS12 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS12V2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS13 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS132V2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS134V2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS13V2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS14 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS144V2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS148V2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS14V2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS15V2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS1V2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS2V2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS3 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS3V2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS4 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS4V2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS5V2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardE16V3 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardE16sV3 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardE2V3 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardE2sV3 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardE3216V3 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardE328sV3 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardE32V3 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardE32sV3 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardE4V3 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardE4sV3 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardE6416sV3 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardE6432sV3 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardE64V3 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardE64sV3 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardE8V3 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardE8sV3 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardF1 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardF16 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardF16s +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardF16sV2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardF1s +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardF2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardF2s +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardF2sV2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardF32sV2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardF4 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardF4s +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardF4sV2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardF64sV2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardF72sV2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardF8 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardF8s +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardF8sV2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardG1 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardG2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardG3 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardG4 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardG5 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardGS1 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardGS2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardGS3 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardGS4 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardGS44 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardGS48 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardGS5 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardGS516 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardGS58 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardH16 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardH16m +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardH16mr +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardH16r +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardH8 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardH8m +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardL16s +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardL32s +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardL4s +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardL8s +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardM12832ms +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardM12864ms +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardM128ms +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardM128s +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardM6416ms +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardM6432ms +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardM64ms +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardM64s +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardNC12 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardNC12sV2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardNC12sV3 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardNC24 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardNC24r +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardNC24rsV2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardNC24rsV3 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardNC24sV2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardNC24sV3 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardNC6 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardNC6sV2 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardNC6sV3 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardND12s +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardND24rs +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardND24s +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardND6s +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardNV12 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardNV24 +1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardNV6 +1. WindowsPatchAssessmentMode.WindowsPatchAssessmentModeAutomaticByPlatform +1. WindowsPatchAssessmentMode.WindowsPatchAssessmentModeImageDefault + +### New Funcs + +1. *GallerySharingProfileUpdateFuture.UnmarshalJSON([]byte) error +1. *PirSharedGalleryResource.UnmarshalJSON([]byte) error +1. *RestorePointCollection.UnmarshalJSON([]byte) error +1. *RestorePointCollectionListResultIterator.Next() error +1. *RestorePointCollectionListResultIterator.NextWithContext(context.Context) error +1. *RestorePointCollectionListResultPage.Next() error +1. *RestorePointCollectionListResultPage.NextWithContext(context.Context) error +1. *RestorePointCollectionUpdate.UnmarshalJSON([]byte) error +1. *RestorePointCollectionsDeleteFuture.UnmarshalJSON([]byte) error +1. *RestorePointsCreateFuture.UnmarshalJSON([]byte) error +1. *RestorePointsDeleteFuture.UnmarshalJSON([]byte) error +1. *SharedGallery.UnmarshalJSON([]byte) error +1. *SharedGalleryImage.UnmarshalJSON([]byte) error +1. *SharedGalleryImageListIterator.Next() error +1. *SharedGalleryImageListIterator.NextWithContext(context.Context) error +1. *SharedGalleryImageListPage.Next() error +1. *SharedGalleryImageListPage.NextWithContext(context.Context) error +1. *SharedGalleryImageVersion.UnmarshalJSON([]byte) error +1. *SharedGalleryImageVersionListIterator.Next() error +1. *SharedGalleryImageVersionListIterator.NextWithContext(context.Context) error +1. *SharedGalleryImageVersionListPage.Next() error +1. *SharedGalleryImageVersionListPage.NextWithContext(context.Context) error +1. *SharedGalleryListIterator.Next() error +1. *SharedGalleryListIterator.NextWithContext(context.Context) error +1. *SharedGalleryListPage.Next() error +1. *SharedGalleryListPage.NextWithContext(context.Context) error +1. *VirtualMachineNetworkInterfaceConfiguration.UnmarshalJSON([]byte) error +1. *VirtualMachineNetworkInterfaceIPConfiguration.UnmarshalJSON([]byte) error +1. *VirtualMachinePublicIPAddressConfiguration.UnmarshalJSON([]byte) error +1. AccessURI.MarshalJSON() ([]byte, error) +1. AvailablePatchSummary.MarshalJSON() ([]byte, error) +1. BootDiagnosticsInstanceView.MarshalJSON() ([]byte, error) +1. CloudServiceRoleProperties.MarshalJSON() ([]byte, error) +1. DataDiskImage.MarshalJSON() ([]byte, error) +1. DiskAccessProperties.MarshalJSON() ([]byte, error) +1. GalleryIdentifier.MarshalJSON() ([]byte, error) +1. GallerySharingProfileClient.Update(context.Context, string, string, SharingUpdate) (GallerySharingProfileUpdateFuture, error) +1. GallerySharingProfileClient.UpdatePreparer(context.Context, string, string, SharingUpdate) (*http.Request, error) +1. GallerySharingProfileClient.UpdateResponder(*http.Response) (SharingUpdate, error) +1. GallerySharingProfileClient.UpdateSender(*http.Request) (GallerySharingProfileUpdateFuture, error) +1. InstanceSku.MarshalJSON() ([]byte, error) +1. InstanceViewStatusesSummary.MarshalJSON() ([]byte, error) +1. LastPatchInstallationSummary.MarshalJSON() ([]byte, error) +1. LogAnalyticsOperationResult.MarshalJSON() ([]byte, error) +1. LogAnalyticsOutput.MarshalJSON() ([]byte, error) +1. NewGallerySharingProfileClient(string) GallerySharingProfileClient +1. NewGallerySharingProfileClientWithBaseURI(string, string) GallerySharingProfileClient +1. NewRestorePointCollectionListResultIterator(RestorePointCollectionListResultPage) RestorePointCollectionListResultIterator +1. NewRestorePointCollectionListResultPage(RestorePointCollectionListResult, func(context.Context, RestorePointCollectionListResult) (RestorePointCollectionListResult, error)) RestorePointCollectionListResultPage +1. NewRestorePointCollectionsClient(string) RestorePointCollectionsClient +1. NewRestorePointCollectionsClientWithBaseURI(string, string) RestorePointCollectionsClient +1. NewRestorePointsClient(string) RestorePointsClient +1. NewRestorePointsClientWithBaseURI(string, string) RestorePointsClient +1. NewSharedGalleriesClient(string) SharedGalleriesClient +1. NewSharedGalleriesClientWithBaseURI(string, string) SharedGalleriesClient +1. NewSharedGalleryImageListIterator(SharedGalleryImageListPage) SharedGalleryImageListIterator +1. NewSharedGalleryImageListPage(SharedGalleryImageList, func(context.Context, SharedGalleryImageList) (SharedGalleryImageList, error)) SharedGalleryImageListPage +1. NewSharedGalleryImageVersionListIterator(SharedGalleryImageVersionListPage) SharedGalleryImageVersionListIterator +1. NewSharedGalleryImageVersionListPage(SharedGalleryImageVersionList, func(context.Context, SharedGalleryImageVersionList) (SharedGalleryImageVersionList, error)) SharedGalleryImageVersionListPage +1. NewSharedGalleryImageVersionsClient(string) SharedGalleryImageVersionsClient +1. NewSharedGalleryImageVersionsClientWithBaseURI(string, string) SharedGalleryImageVersionsClient +1. NewSharedGalleryImagesClient(string) SharedGalleryImagesClient +1. NewSharedGalleryImagesClientWithBaseURI(string, string) SharedGalleryImagesClient +1. NewSharedGalleryListIterator(SharedGalleryListPage) SharedGalleryListIterator +1. NewSharedGalleryListPage(SharedGalleryList, func(context.Context, SharedGalleryList) (SharedGalleryList, error)) SharedGalleryListPage +1. OSFamilyProperties.MarshalJSON() ([]byte, error) +1. OSVersionProperties.MarshalJSON() ([]byte, error) +1. OSVersionPropertiesBase.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OperationValueDisplay.MarshalJSON() ([]byte, error) +1. OrchestrationServiceSummary.MarshalJSON() ([]byte, error) +1. PatchInstallationDetail.MarshalJSON() ([]byte, error) +1. PirResource.MarshalJSON() ([]byte, error) +1. PirSharedGalleryResource.MarshalJSON() ([]byte, error) +1. PossibleConsistencyModeTypesValues() []ConsistencyModeTypes +1. PossibleDeleteOptionsValues() []DeleteOptions +1. PossibleDiskDeleteOptionTypesValues() []DiskDeleteOptionTypes +1. PossibleExpandTypesForGetVMScaleSetsValues() []ExpandTypesForGetVMScaleSets +1. PossibleGallerySharingPermissionTypesValues() []GallerySharingPermissionTypes +1. PossibleIPVersionsValues() []IPVersions +1. PossibleLinuxPatchAssessmentModeValues() []LinuxPatchAssessmentMode +1. PossibleNetworkAPIVersionValues() []NetworkAPIVersion +1. PossibleOperatingSystemTypeValues() []OperatingSystemType +1. PossiblePublicIPAddressSkuNameValues() []PublicIPAddressSkuName +1. PossiblePublicIPAddressSkuTierValues() []PublicIPAddressSkuTier +1. PossiblePublicIPAllocationMethodValues() []PublicIPAllocationMethod +1. PossibleRestorePointCollectionExpandOptionsValues() []RestorePointCollectionExpandOptions +1. PossibleSelectPermissionsValues() []SelectPermissions +1. PossibleSharedToValuesValues() []SharedToValues +1. PossibleSharingProfileGroupTypesValues() []SharingProfileGroupTypes +1. PossibleSharingUpdateOperationTypesValues() []SharingUpdateOperationTypes +1. PossibleWindowsPatchAssessmentModeValues() []WindowsPatchAssessmentMode +1. PrivateEndpoint.MarshalJSON() ([]byte, error) +1. ProxyOnlyResource.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. RecoveryWalkResponse.MarshalJSON() ([]byte, error) +1. RegionalReplicationStatus.MarshalJSON() ([]byte, error) +1. ReplicationStatus.MarshalJSON() ([]byte, error) +1. ResourceSku.MarshalJSON() ([]byte, error) +1. ResourceSkuCapabilities.MarshalJSON() ([]byte, error) +1. ResourceSkuCapacity.MarshalJSON() ([]byte, error) +1. ResourceSkuCosts.MarshalJSON() ([]byte, error) +1. ResourceSkuLocationInfo.MarshalJSON() ([]byte, error) +1. ResourceSkuRestrictionInfo.MarshalJSON() ([]byte, error) +1. ResourceSkuRestrictions.MarshalJSON() ([]byte, error) +1. ResourceSkuZoneDetails.MarshalJSON() ([]byte, error) +1. RestorePoint.MarshalJSON() ([]byte, error) +1. RestorePointCollection.MarshalJSON() ([]byte, error) +1. RestorePointCollectionListResult.IsEmpty() bool +1. RestorePointCollectionListResultIterator.NotDone() bool +1. RestorePointCollectionListResultIterator.Response() RestorePointCollectionListResult +1. RestorePointCollectionListResultIterator.Value() RestorePointCollection +1. RestorePointCollectionListResultPage.NotDone() bool +1. RestorePointCollectionListResultPage.Response() RestorePointCollectionListResult +1. RestorePointCollectionListResultPage.Values() []RestorePointCollection +1. RestorePointCollectionProperties.MarshalJSON() ([]byte, error) +1. RestorePointCollectionSourceProperties.MarshalJSON() ([]byte, error) +1. RestorePointCollectionUpdate.MarshalJSON() ([]byte, error) +1. RestorePointCollectionsClient.CreateOrUpdate(context.Context, string, string, RestorePointCollection) (RestorePointCollection, error) +1. RestorePointCollectionsClient.CreateOrUpdatePreparer(context.Context, string, string, RestorePointCollection) (*http.Request, error) +1. RestorePointCollectionsClient.CreateOrUpdateResponder(*http.Response) (RestorePointCollection, error) +1. RestorePointCollectionsClient.CreateOrUpdateSender(*http.Request) (*http.Response, error) +1. RestorePointCollectionsClient.Delete(context.Context, string, string) (RestorePointCollectionsDeleteFuture, error) +1. RestorePointCollectionsClient.DeletePreparer(context.Context, string, string) (*http.Request, error) +1. RestorePointCollectionsClient.DeleteResponder(*http.Response) (autorest.Response, error) +1. RestorePointCollectionsClient.DeleteSender(*http.Request) (RestorePointCollectionsDeleteFuture, error) +1. RestorePointCollectionsClient.Get(context.Context, string, string, RestorePointCollectionExpandOptions) (RestorePointCollection, error) +1. RestorePointCollectionsClient.GetPreparer(context.Context, string, string, RestorePointCollectionExpandOptions) (*http.Request, error) +1. RestorePointCollectionsClient.GetResponder(*http.Response) (RestorePointCollection, error) +1. RestorePointCollectionsClient.GetSender(*http.Request) (*http.Response, error) +1. RestorePointCollectionsClient.List(context.Context, string) (RestorePointCollectionListResultPage, error) +1. RestorePointCollectionsClient.ListAll(context.Context) (RestorePointCollectionListResultPage, error) +1. RestorePointCollectionsClient.ListAllComplete(context.Context) (RestorePointCollectionListResultIterator, error) +1. RestorePointCollectionsClient.ListAllPreparer(context.Context) (*http.Request, error) +1. RestorePointCollectionsClient.ListAllResponder(*http.Response) (RestorePointCollectionListResult, error) +1. RestorePointCollectionsClient.ListAllSender(*http.Request) (*http.Response, error) +1. RestorePointCollectionsClient.ListComplete(context.Context, string) (RestorePointCollectionListResultIterator, error) +1. RestorePointCollectionsClient.ListPreparer(context.Context, string) (*http.Request, error) +1. RestorePointCollectionsClient.ListResponder(*http.Response) (RestorePointCollectionListResult, error) +1. RestorePointCollectionsClient.ListSender(*http.Request) (*http.Response, error) +1. RestorePointCollectionsClient.Update(context.Context, string, string, RestorePointCollectionUpdate) (RestorePointCollection, error) +1. RestorePointCollectionsClient.UpdatePreparer(context.Context, string, string, RestorePointCollectionUpdate) (*http.Request, error) +1. RestorePointCollectionsClient.UpdateResponder(*http.Response) (RestorePointCollection, error) +1. RestorePointCollectionsClient.UpdateSender(*http.Request) (*http.Response, error) +1. RestorePointsClient.Create(context.Context, string, string, string, RestorePoint) (RestorePointsCreateFuture, error) +1. RestorePointsClient.CreatePreparer(context.Context, string, string, string, RestorePoint) (*http.Request, error) +1. RestorePointsClient.CreateResponder(*http.Response) (RestorePoint, error) +1. RestorePointsClient.CreateSender(*http.Request) (RestorePointsCreateFuture, error) +1. RestorePointsClient.Delete(context.Context, string, string, string) (RestorePointsDeleteFuture, error) +1. RestorePointsClient.DeletePreparer(context.Context, string, string, string) (*http.Request, error) +1. RestorePointsClient.DeleteResponder(*http.Response) (autorest.Response, error) +1. RestorePointsClient.DeleteSender(*http.Request) (RestorePointsDeleteFuture, error) +1. RestorePointsClient.Get(context.Context, string, string, string) (RestorePoint, error) +1. RestorePointsClient.GetPreparer(context.Context, string, string, string) (*http.Request, error) +1. RestorePointsClient.GetResponder(*http.Response) (RestorePoint, error) +1. RestorePointsClient.GetSender(*http.Request) (*http.Response, error) +1. RetrieveBootDiagnosticsDataResult.MarshalJSON() ([]byte, error) +1. RoleInstanceInstanceView.MarshalJSON() ([]byte, error) +1. RoleInstanceNetworkProfile.MarshalJSON() ([]byte, error) +1. RollbackStatusInfo.MarshalJSON() ([]byte, error) +1. RollingUpgradeProgressInfo.MarshalJSON() ([]byte, error) +1. RollingUpgradeRunningStatus.MarshalJSON() ([]byte, error) +1. RollingUpgradeStatusInfoProperties.MarshalJSON() ([]byte, error) +1. ShareInfoElement.MarshalJSON() ([]byte, error) +1. SharedGalleriesClient.Get(context.Context, string, string) (SharedGallery, error) +1. SharedGalleriesClient.GetPreparer(context.Context, string, string) (*http.Request, error) +1. SharedGalleriesClient.GetResponder(*http.Response) (SharedGallery, error) +1. SharedGalleriesClient.GetSender(*http.Request) (*http.Response, error) +1. SharedGalleriesClient.List(context.Context, string, SharedToValues) (SharedGalleryListPage, error) +1. SharedGalleriesClient.ListComplete(context.Context, string, SharedToValues) (SharedGalleryListIterator, error) +1. SharedGalleriesClient.ListPreparer(context.Context, string, SharedToValues) (*http.Request, error) +1. SharedGalleriesClient.ListResponder(*http.Response) (SharedGalleryList, error) +1. SharedGalleriesClient.ListSender(*http.Request) (*http.Response, error) +1. SharedGallery.MarshalJSON() ([]byte, error) +1. SharedGalleryImage.MarshalJSON() ([]byte, error) +1. SharedGalleryImageList.IsEmpty() bool +1. SharedGalleryImageListIterator.NotDone() bool +1. SharedGalleryImageListIterator.Response() SharedGalleryImageList +1. SharedGalleryImageListIterator.Value() SharedGalleryImage +1. SharedGalleryImageListPage.NotDone() bool +1. SharedGalleryImageListPage.Response() SharedGalleryImageList +1. SharedGalleryImageListPage.Values() []SharedGalleryImage +1. SharedGalleryImageVersion.MarshalJSON() ([]byte, error) +1. SharedGalleryImageVersionList.IsEmpty() bool +1. SharedGalleryImageVersionListIterator.NotDone() bool +1. SharedGalleryImageVersionListIterator.Response() SharedGalleryImageVersionList +1. SharedGalleryImageVersionListIterator.Value() SharedGalleryImageVersion +1. SharedGalleryImageVersionListPage.NotDone() bool +1. SharedGalleryImageVersionListPage.Response() SharedGalleryImageVersionList +1. SharedGalleryImageVersionListPage.Values() []SharedGalleryImageVersion +1. SharedGalleryImageVersionsClient.Get(context.Context, string, string, string, string) (SharedGalleryImageVersion, error) +1. SharedGalleryImageVersionsClient.GetPreparer(context.Context, string, string, string, string) (*http.Request, error) +1. SharedGalleryImageVersionsClient.GetResponder(*http.Response) (SharedGalleryImageVersion, error) +1. SharedGalleryImageVersionsClient.GetSender(*http.Request) (*http.Response, error) +1. SharedGalleryImageVersionsClient.List(context.Context, string, string, string, SharedToValues) (SharedGalleryImageVersionListPage, error) +1. SharedGalleryImageVersionsClient.ListComplete(context.Context, string, string, string, SharedToValues) (SharedGalleryImageVersionListIterator, error) +1. SharedGalleryImageVersionsClient.ListPreparer(context.Context, string, string, string, SharedToValues) (*http.Request, error) +1. SharedGalleryImageVersionsClient.ListResponder(*http.Response) (SharedGalleryImageVersionList, error) +1. SharedGalleryImageVersionsClient.ListSender(*http.Request) (*http.Response, error) +1. SharedGalleryImagesClient.Get(context.Context, string, string, string) (SharedGalleryImage, error) +1. SharedGalleryImagesClient.GetPreparer(context.Context, string, string, string) (*http.Request, error) +1. SharedGalleryImagesClient.GetResponder(*http.Response) (SharedGalleryImage, error) +1. SharedGalleryImagesClient.GetSender(*http.Request) (*http.Response, error) +1. SharedGalleryImagesClient.List(context.Context, string, string, SharedToValues) (SharedGalleryImageListPage, error) +1. SharedGalleryImagesClient.ListComplete(context.Context, string, string, SharedToValues) (SharedGalleryImageListIterator, error) +1. SharedGalleryImagesClient.ListPreparer(context.Context, string, string, SharedToValues) (*http.Request, error) +1. SharedGalleryImagesClient.ListResponder(*http.Response) (SharedGalleryImageList, error) +1. SharedGalleryImagesClient.ListSender(*http.Request) (*http.Response, error) +1. SharedGalleryList.IsEmpty() bool +1. SharedGalleryListIterator.NotDone() bool +1. SharedGalleryListIterator.Response() SharedGalleryList +1. SharedGalleryListIterator.Value() SharedGallery +1. SharedGalleryListPage.NotDone() bool +1. SharedGalleryListPage.Response() SharedGalleryList +1. SharedGalleryListPage.Values() []SharedGallery +1. SharingProfile.MarshalJSON() ([]byte, error) +1. StatusCodeCount.MarshalJSON() ([]byte, error) +1. SubResourceReadOnly.MarshalJSON() ([]byte, error) +1. UpdateDomain.MarshalJSON() ([]byte, error) +1. UpgradeOperationHistoricalStatusInfo.MarshalJSON() ([]byte, error) +1. UpgradeOperationHistoricalStatusInfoProperties.MarshalJSON() ([]byte, error) +1. UpgradeOperationHistoryStatus.MarshalJSON() ([]byte, error) +1. VirtualMachineAssessPatchesResult.MarshalJSON() ([]byte, error) +1. VirtualMachineHealthStatus.MarshalJSON() ([]byte, error) +1. VirtualMachineIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. VirtualMachineInstallPatchesResult.MarshalJSON() ([]byte, error) +1. VirtualMachineNetworkInterfaceConfiguration.MarshalJSON() ([]byte, error) +1. VirtualMachineNetworkInterfaceIPConfiguration.MarshalJSON() ([]byte, error) +1. VirtualMachinePublicIPAddressConfiguration.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetInstanceViewStatusesSummary.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetSku.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetSkuCapacity.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetVMExtensionsSummary.MarshalJSON() ([]byte, error) +1. VirtualMachineSoftwarePatchProperties.MarshalJSON() ([]byte, error) +1. VirtualMachineStatusCodeCount.MarshalJSON() ([]byte, error) + +### Struct Changes + +#### New Structs + +1. GalleryImageFeature +1. GallerySharingProfileClient +1. GallerySharingProfileUpdateFuture +1. PirResource +1. PirSharedGalleryResource +1. ProxyResource +1. PublicIPAddressSku +1. RestorePoint +1. RestorePointCollection +1. RestorePointCollectionListResult +1. RestorePointCollectionListResultIterator +1. RestorePointCollectionListResultPage +1. RestorePointCollectionProperties +1. RestorePointCollectionSourceProperties +1. RestorePointCollectionUpdate +1. RestorePointCollectionsClient +1. RestorePointCollectionsDeleteFuture +1. RestorePointProvisioningDetails +1. RestorePointSourceMetadata +1. RestorePointSourceVMDataDisk +1. RestorePointSourceVMOSDisk +1. RestorePointSourceVMStorageProfile +1. RestorePointsClient +1. RestorePointsCreateFuture +1. RestorePointsDeleteFuture +1. SharedGalleriesClient +1. SharedGallery +1. SharedGalleryIdentifier +1. SharedGalleryImage +1. SharedGalleryImageList +1. SharedGalleryImageListIterator +1. SharedGalleryImageListPage +1. SharedGalleryImageProperties +1. SharedGalleryImageVersion +1. SharedGalleryImageVersionList +1. SharedGalleryImageVersionListIterator +1. SharedGalleryImageVersionListPage +1. SharedGalleryImageVersionProperties +1. SharedGalleryImageVersionsClient +1. SharedGalleryImagesClient +1. SharedGalleryList +1. SharedGalleryListIterator +1. SharedGalleryListPage +1. SharingProfile +1. SharingProfileGroup +1. SharingUpdate +1. VirtualMachineIPTag +1. VirtualMachineNetworkInterfaceConfiguration +1. VirtualMachineNetworkInterfaceConfigurationProperties +1. VirtualMachineNetworkInterfaceDNSSettingsConfiguration +1. VirtualMachineNetworkInterfaceIPConfiguration +1. VirtualMachineNetworkInterfaceIPConfigurationProperties +1. VirtualMachinePublicIPAddressConfiguration +1. VirtualMachinePublicIPAddressConfigurationProperties +1. VirtualMachinePublicIPAddressDNSSettingsConfiguration + +#### New Struct Fields + +1. DataDisk.DeleteOption +1. GalleryArtifactVersionSource.URI +1. GalleryImageProperties.Features +1. GalleryProperties.SharingProfile +1. LinuxPatchSettings.AssessmentMode +1. NetworkInterfaceReferenceProperties.DeleteOption +1. NetworkProfile.NetworkAPIVersion +1. NetworkProfile.NetworkInterfaceConfigurations +1. OSDisk.DeleteOption +1. PatchSettings.AssessmentMode +1. VirtualMachineProperties.ScheduledEventsProfile +1. VirtualMachineProperties.UserData +1. VirtualMachineScaleSetNetworkConfigurationProperties.DeleteOption +1. VirtualMachineScaleSetNetworkProfile.NetworkAPIVersion +1. VirtualMachineScaleSetPublicIPAddressConfiguration.Sku +1. VirtualMachineScaleSetPublicIPAddressConfigurationProperties.DeleteOption +1. VirtualMachineScaleSetUpdateNetworkConfigurationProperties.DeleteOption +1. VirtualMachineScaleSetUpdateNetworkProfile.NetworkAPIVersion +1. VirtualMachineScaleSetUpdatePublicIPAddressConfigurationProperties.DeleteOption +1. VirtualMachineScaleSetUpdateVMProfile.UserData +1. VirtualMachineScaleSetVMProfile.UserData +1. VirtualMachineScaleSetVMProperties.UserData diff --git a/services/compute/mgmt/2021-03-01/compute/_meta.json b/services/compute/mgmt/2021-03-01/compute/_meta.json index cfb2b8401e0f..720dbeccb766 100644 --- a/services/compute/mgmt/2021-03-01/compute/_meta.json +++ b/services/compute/mgmt/2021-03-01/compute/_meta.json @@ -1,11 +1,11 @@ { - "commit": "0f0e41fa4e3679510fcf03ecd60084f1cdbd5805", + "commit": "394395ed0bdc1c5c05cb37a031379ca03bfebbb5", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-2021-03-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2021-03-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2021-03-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "additional_properties": { - "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" + "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix" } } \ No newline at end of file diff --git a/services/compute/mgmt/2021-03-01/compute/availabilitysets.go b/services/compute/mgmt/2021-03-01/compute/availabilitysets.go index 07422d5ab10a..9ceb961d672a 100644 --- a/services/compute/mgmt/2021-03-01/compute/availabilitysets.go +++ b/services/compute/mgmt/2021-03-01/compute/availabilitysets.go @@ -77,7 +77,7 @@ func (client AvailabilitySetsClient) CreateOrUpdatePreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -155,7 +155,7 @@ func (client AvailabilitySetsClient) DeletePreparer(ctx context.Context, resourc "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -230,7 +230,7 @@ func (client AvailabilitySetsClient) GetPreparer(ctx context.Context, resourceGr "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -309,7 +309,7 @@ func (client AvailabilitySetsClient) ListPreparer(ctx context.Context, resourceG "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -423,7 +423,7 @@ func (client AvailabilitySetsClient) ListAvailableSizesPreparer(ctx context.Cont "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -501,7 +501,7 @@ func (client AvailabilitySetsClient) ListBySubscriptionPreparer(ctx context.Cont "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -618,7 +618,7 @@ func (client AvailabilitySetsClient) UpdatePreparer(ctx context.Context, resourc "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/services/compute/mgmt/2021-03-01/compute/cloudserviceroleinstances.go b/services/compute/mgmt/2021-03-01/compute/cloudserviceroleinstances.go index 1b8ebb65e7f8..7b0c6da9e32c 100644 --- a/services/compute/mgmt/2021-03-01/compute/cloudserviceroleinstances.go +++ b/services/compute/mgmt/2021-03-01/compute/cloudserviceroleinstances.go @@ -111,7 +111,7 @@ func (client CloudServiceRoleInstancesClient) DeleteResponder(resp *http.Respons // Get gets a role instance from a cloud service. // Parameters: // roleInstanceName - name of the role instance. -// expand - the expand expression to apply to the operation. +// expand - the expand expression to apply to the operation. 'UserData' is not supported for cloud services. func (client CloudServiceRoleInstancesClient) Get(ctx context.Context, roleInstanceName string, resourceGroupName string, cloudServiceName string, expand InstanceViewTypes) (result RoleInstance, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/CloudServiceRoleInstancesClient.Get") @@ -342,7 +342,7 @@ func (client CloudServiceRoleInstancesClient) GetRemoteDesktopFileResponder(resp // List gets the list of all role instances in a cloud service. Use nextLink property in the response to get the next // page of role instances. Do this till nextLink is null to fetch all the role instances. // Parameters: -// expand - the expand expression to apply to the operation. +// expand - the expand expression to apply to the operation. 'UserData' is not supported for cloud services. func (client CloudServiceRoleInstancesClient) List(ctx context.Context, resourceGroupName string, cloudServiceName string, expand InstanceViewTypes) (result RoleInstanceListResultPage, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/CloudServiceRoleInstancesClient.List") diff --git a/services/compute/mgmt/2021-03-01/compute/computeapi/interfaces.go b/services/compute/mgmt/2021-03-01/compute/computeapi/interfaces.go index b16c52dd2665..c952b33db1e4 100644 --- a/services/compute/mgmt/2021-03-01/compute/computeapi/interfaces.go +++ b/services/compute/mgmt/2021-03-01/compute/computeapi/interfaces.go @@ -181,7 +181,7 @@ type VirtualMachineScaleSetsClientAPI interface { Delete(ctx context.Context, resourceGroupName string, VMScaleSetName string, forceDeletion *bool) (result compute.VirtualMachineScaleSetsDeleteFuture, err error) DeleteInstances(ctx context.Context, resourceGroupName string, VMScaleSetName string, VMInstanceIDs compute.VirtualMachineScaleSetVMInstanceRequiredIDs, forceDeletion *bool) (result compute.VirtualMachineScaleSetsDeleteInstancesFuture, err error) ForceRecoveryServiceFabricPlatformUpdateDomainWalk(ctx context.Context, resourceGroupName string, VMScaleSetName string, platformUpdateDomain int32) (result compute.RecoveryWalkResponse, err error) - Get(ctx context.Context, resourceGroupName string, VMScaleSetName string) (result compute.VirtualMachineScaleSet, err error) + Get(ctx context.Context, resourceGroupName string, VMScaleSetName string, expand compute.ExpandTypesForGetVMScaleSets) (result compute.VirtualMachineScaleSet, err error) GetInstanceView(ctx context.Context, resourceGroupName string, VMScaleSetName string) (result compute.VirtualMachineScaleSetInstanceView, err error) GetOSUpgradeHistory(ctx context.Context, resourceGroupName string, VMScaleSetName string) (result compute.VirtualMachineScaleSetListOSUpgradeHistoryPage, err error) GetOSUpgradeHistoryComplete(ctx context.Context, resourceGroupName string, VMScaleSetName string) (result compute.VirtualMachineScaleSetListOSUpgradeHistoryIterator, err error) @@ -228,6 +228,29 @@ type ImagesClientAPI interface { var _ ImagesClientAPI = (*compute.ImagesClient)(nil) +// RestorePointCollectionsClientAPI contains the set of methods on the RestorePointCollectionsClient type. +type RestorePointCollectionsClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, restorePointCollectionName string, parameters compute.RestorePointCollection) (result compute.RestorePointCollection, err error) + Delete(ctx context.Context, resourceGroupName string, restorePointCollectionName string) (result compute.RestorePointCollectionsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, restorePointCollectionName string, expand compute.RestorePointCollectionExpandOptions) (result compute.RestorePointCollection, err error) + List(ctx context.Context, resourceGroupName string) (result compute.RestorePointCollectionListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string) (result compute.RestorePointCollectionListResultIterator, err error) + ListAll(ctx context.Context) (result compute.RestorePointCollectionListResultPage, err error) + ListAllComplete(ctx context.Context) (result compute.RestorePointCollectionListResultIterator, err error) + Update(ctx context.Context, resourceGroupName string, restorePointCollectionName string, parameters compute.RestorePointCollectionUpdate) (result compute.RestorePointCollection, err error) +} + +var _ RestorePointCollectionsClientAPI = (*compute.RestorePointCollectionsClient)(nil) + +// RestorePointsClientAPI contains the set of methods on the RestorePointsClient type. +type RestorePointsClientAPI interface { + Create(ctx context.Context, resourceGroupName string, restorePointCollectionName string, restorePointName string, parameters compute.RestorePoint) (result compute.RestorePointsCreateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, restorePointCollectionName string, restorePointName string) (result compute.RestorePointsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, restorePointCollectionName string, restorePointName string) (result compute.RestorePoint, err error) +} + +var _ RestorePointsClientAPI = (*compute.RestorePointsClient)(nil) + // VirtualMachineScaleSetExtensionsClientAPI contains the set of methods on the VirtualMachineScaleSetExtensionsClient type. type VirtualMachineScaleSetExtensionsClientAPI interface { CreateOrUpdate(ctx context.Context, resourceGroupName string, VMScaleSetName string, vmssExtensionName string, extensionParameters compute.VirtualMachineScaleSetExtension) (result compute.VirtualMachineScaleSetExtensionsCreateOrUpdateFuture, err error) @@ -408,7 +431,7 @@ var _ DiskRestorePointClientAPI = (*compute.DiskRestorePointClient)(nil) type GalleriesClientAPI interface { CreateOrUpdate(ctx context.Context, resourceGroupName string, galleryName string, gallery compute.Gallery) (result compute.GalleriesCreateOrUpdateFuture, err error) Delete(ctx context.Context, resourceGroupName string, galleryName string) (result compute.GalleriesDeleteFuture, err error) - Get(ctx context.Context, resourceGroupName string, galleryName string) (result compute.Gallery, err error) + Get(ctx context.Context, resourceGroupName string, galleryName string, selectParameter compute.SelectPermissions) (result compute.Gallery, err error) List(ctx context.Context) (result compute.GalleryListPage, err error) ListComplete(ctx context.Context) (result compute.GalleryListIterator, err error) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result compute.GalleryListPage, err error) @@ -466,6 +489,40 @@ type GalleryApplicationVersionsClientAPI interface { var _ GalleryApplicationVersionsClientAPI = (*compute.GalleryApplicationVersionsClient)(nil) +// GallerySharingProfileClientAPI contains the set of methods on the GallerySharingProfileClient type. +type GallerySharingProfileClientAPI interface { + Update(ctx context.Context, resourceGroupName string, galleryName string, sharingUpdate compute.SharingUpdate) (result compute.GallerySharingProfileUpdateFuture, err error) +} + +var _ GallerySharingProfileClientAPI = (*compute.GallerySharingProfileClient)(nil) + +// SharedGalleriesClientAPI contains the set of methods on the SharedGalleriesClient type. +type SharedGalleriesClientAPI interface { + Get(ctx context.Context, location string, galleryUniqueName string) (result compute.SharedGallery, err error) + List(ctx context.Context, location string, sharedTo compute.SharedToValues) (result compute.SharedGalleryListPage, err error) + ListComplete(ctx context.Context, location string, sharedTo compute.SharedToValues) (result compute.SharedGalleryListIterator, err error) +} + +var _ SharedGalleriesClientAPI = (*compute.SharedGalleriesClient)(nil) + +// SharedGalleryImagesClientAPI contains the set of methods on the SharedGalleryImagesClient type. +type SharedGalleryImagesClientAPI interface { + Get(ctx context.Context, location string, galleryUniqueName string, galleryImageName string) (result compute.SharedGalleryImage, err error) + List(ctx context.Context, location string, galleryUniqueName string, sharedTo compute.SharedToValues) (result compute.SharedGalleryImageListPage, err error) + ListComplete(ctx context.Context, location string, galleryUniqueName string, sharedTo compute.SharedToValues) (result compute.SharedGalleryImageListIterator, err error) +} + +var _ SharedGalleryImagesClientAPI = (*compute.SharedGalleryImagesClient)(nil) + +// SharedGalleryImageVersionsClientAPI contains the set of methods on the SharedGalleryImageVersionsClient type. +type SharedGalleryImageVersionsClientAPI interface { + Get(ctx context.Context, location string, galleryUniqueName string, galleryImageName string, galleryImageVersionName string) (result compute.SharedGalleryImageVersion, err error) + List(ctx context.Context, location string, galleryUniqueName string, galleryImageName string, sharedTo compute.SharedToValues) (result compute.SharedGalleryImageVersionListPage, err error) + ListComplete(ctx context.Context, location string, galleryUniqueName string, galleryImageName string, sharedTo compute.SharedToValues) (result compute.SharedGalleryImageVersionListIterator, err error) +} + +var _ SharedGalleryImageVersionsClientAPI = (*compute.SharedGalleryImageVersionsClient)(nil) + // CloudServiceRoleInstancesClientAPI contains the set of methods on the CloudServiceRoleInstancesClient type. type CloudServiceRoleInstancesClientAPI interface { Delete(ctx context.Context, roleInstanceName string, resourceGroupName string, cloudServiceName string) (result compute.CloudServiceRoleInstancesDeleteFuture, err error) diff --git a/services/compute/mgmt/2021-03-01/compute/dedicatedhostgroups.go b/services/compute/mgmt/2021-03-01/compute/dedicatedhostgroups.go index 4c72632aefc1..aa870bd44495 100644 --- a/services/compute/mgmt/2021-03-01/compute/dedicatedhostgroups.go +++ b/services/compute/mgmt/2021-03-01/compute/dedicatedhostgroups.go @@ -88,7 +88,7 @@ func (client DedicatedHostGroupsClient) CreateOrUpdatePreparer(ctx context.Conte "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -166,7 +166,7 @@ func (client DedicatedHostGroupsClient) DeletePreparer(ctx context.Context, reso "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -200,8 +200,9 @@ func (client DedicatedHostGroupsClient) DeleteResponder(resp *http.Response) (re // Parameters: // resourceGroupName - the name of the resource group. // hostGroupName - the name of the dedicated host group. -// expand - the expand expression to apply on the operation. The response shows the list of instance view of -// the dedicated hosts under the dedicated host group. +// expand - the expand expression to apply on the operation. 'InstanceView' will retrieve the list of instance +// views of the dedicated hosts under the dedicated host group. 'UserData' is not supported for dedicated host +// group. func (client DedicatedHostGroupsClient) Get(ctx context.Context, resourceGroupName string, hostGroupName string, expand InstanceViewTypes) (result DedicatedHostGroup, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/DedicatedHostGroupsClient.Get") @@ -243,7 +244,7 @@ func (client DedicatedHostGroupsClient) GetPreparer(ctx context.Context, resourc "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -326,7 +327,7 @@ func (client DedicatedHostGroupsClient) ListByResourceGroupPreparer(ctx context. "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -440,7 +441,7 @@ func (client DedicatedHostGroupsClient) ListBySubscriptionPreparer(ctx context.C "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -554,7 +555,7 @@ func (client DedicatedHostGroupsClient) UpdatePreparer(ctx context.Context, reso "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/services/compute/mgmt/2021-03-01/compute/dedicatedhosts.go b/services/compute/mgmt/2021-03-01/compute/dedicatedhosts.go index f8e12fe08136..75d1cb40c0d7 100644 --- a/services/compute/mgmt/2021-03-01/compute/dedicatedhosts.go +++ b/services/compute/mgmt/2021-03-01/compute/dedicatedhosts.go @@ -82,7 +82,7 @@ func (client DedicatedHostsClient) CreateOrUpdatePreparer(ctx context.Context, r "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -164,7 +164,7 @@ func (client DedicatedHostsClient) DeletePreparer(ctx context.Context, resourceG "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -208,7 +208,8 @@ func (client DedicatedHostsClient) DeleteResponder(resp *http.Response) (result // resourceGroupName - the name of the resource group. // hostGroupName - the name of the dedicated host group. // hostName - the name of the dedicated host. -// expand - the expand expression to apply on the operation. +// expand - the expand expression to apply on the operation. 'InstanceView' will retrieve the list of instance +// views of the dedicated host. 'UserData' is not supported for dedicated host. func (client DedicatedHostsClient) Get(ctx context.Context, resourceGroupName string, hostGroupName string, hostName string, expand InstanceViewTypes) (result DedicatedHost, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/DedicatedHostsClient.Get") @@ -251,7 +252,7 @@ func (client DedicatedHostsClient) GetPreparer(ctx context.Context, resourceGrou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -336,7 +337,7 @@ func (client DedicatedHostsClient) ListByHostGroupPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -445,7 +446,7 @@ func (client DedicatedHostsClient) UpdatePreparer(ctx context.Context, resourceG "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/services/compute/mgmt/2021-03-01/compute/enums.go b/services/compute/mgmt/2021-03-01/compute/enums.go index d4626964444a..c3cb09d7da30 100644 --- a/services/compute/mgmt/2021-03-01/compute/enums.go +++ b/services/compute/mgmt/2021-03-01/compute/enums.go @@ -10,51 +10,51 @@ package compute type AccessLevel string const ( - // None ... - None AccessLevel = "None" - // Read ... - Read AccessLevel = "Read" - // Write ... - Write AccessLevel = "Write" + // AccessLevelNone ... + AccessLevelNone AccessLevel = "None" + // AccessLevelRead ... + AccessLevelRead AccessLevel = "Read" + // AccessLevelWrite ... + AccessLevelWrite AccessLevel = "Write" ) // PossibleAccessLevelValues returns an array of possible values for the AccessLevel const type. func PossibleAccessLevelValues() []AccessLevel { - return []AccessLevel{None, Read, Write} + return []AccessLevel{AccessLevelNone, AccessLevelRead, AccessLevelWrite} } // AggregatedReplicationState enumerates the values for aggregated replication state. type AggregatedReplicationState string const ( - // Completed ... - Completed AggregatedReplicationState = "Completed" - // Failed ... - Failed AggregatedReplicationState = "Failed" - // InProgress ... - InProgress AggregatedReplicationState = "InProgress" - // Unknown ... - Unknown AggregatedReplicationState = "Unknown" + // AggregatedReplicationStateCompleted ... + AggregatedReplicationStateCompleted AggregatedReplicationState = "Completed" + // AggregatedReplicationStateFailed ... + AggregatedReplicationStateFailed AggregatedReplicationState = "Failed" + // AggregatedReplicationStateInProgress ... + AggregatedReplicationStateInProgress AggregatedReplicationState = "InProgress" + // AggregatedReplicationStateUnknown ... + AggregatedReplicationStateUnknown AggregatedReplicationState = "Unknown" ) // PossibleAggregatedReplicationStateValues returns an array of possible values for the AggregatedReplicationState const type. func PossibleAggregatedReplicationStateValues() []AggregatedReplicationState { - return []AggregatedReplicationState{Completed, Failed, InProgress, Unknown} + return []AggregatedReplicationState{AggregatedReplicationStateCompleted, AggregatedReplicationStateFailed, AggregatedReplicationStateInProgress, AggregatedReplicationStateUnknown} } // AvailabilitySetSkuTypes enumerates the values for availability set sku types. type AvailabilitySetSkuTypes string const ( - // Aligned ... - Aligned AvailabilitySetSkuTypes = "Aligned" - // Classic ... - Classic AvailabilitySetSkuTypes = "Classic" + // AvailabilitySetSkuTypesAligned ... + AvailabilitySetSkuTypesAligned AvailabilitySetSkuTypes = "Aligned" + // AvailabilitySetSkuTypesClassic ... + AvailabilitySetSkuTypesClassic AvailabilitySetSkuTypes = "Classic" ) // PossibleAvailabilitySetSkuTypesValues returns an array of possible values for the AvailabilitySetSkuTypes const type. func PossibleAvailabilitySetSkuTypesValues() []AvailabilitySetSkuTypes { - return []AvailabilitySetSkuTypes{Aligned, Classic} + return []AvailabilitySetSkuTypes{AvailabilitySetSkuTypesAligned, AvailabilitySetSkuTypesClassic} } // CachingTypes enumerates the values for caching types. @@ -78,30 +78,47 @@ func PossibleCachingTypesValues() []CachingTypes { type CloudServiceUpgradeMode string const ( - // Auto ... - Auto CloudServiceUpgradeMode = "Auto" - // Manual ... - Manual CloudServiceUpgradeMode = "Manual" - // Simultaneous ... - Simultaneous CloudServiceUpgradeMode = "Simultaneous" + // CloudServiceUpgradeModeAuto ... + CloudServiceUpgradeModeAuto CloudServiceUpgradeMode = "Auto" + // CloudServiceUpgradeModeManual ... + CloudServiceUpgradeModeManual CloudServiceUpgradeMode = "Manual" + // CloudServiceUpgradeModeSimultaneous ... + CloudServiceUpgradeModeSimultaneous CloudServiceUpgradeMode = "Simultaneous" ) // PossibleCloudServiceUpgradeModeValues returns an array of possible values for the CloudServiceUpgradeMode const type. func PossibleCloudServiceUpgradeModeValues() []CloudServiceUpgradeMode { - return []CloudServiceUpgradeMode{Auto, Manual, Simultaneous} + return []CloudServiceUpgradeMode{CloudServiceUpgradeModeAuto, CloudServiceUpgradeModeManual, CloudServiceUpgradeModeSimultaneous} } // ComponentNames enumerates the values for component names. type ComponentNames string const ( - // MicrosoftWindowsShellSetup ... - MicrosoftWindowsShellSetup ComponentNames = "Microsoft-Windows-Shell-Setup" + // ComponentNamesMicrosoftWindowsShellSetup ... + ComponentNamesMicrosoftWindowsShellSetup ComponentNames = "Microsoft-Windows-Shell-Setup" ) // PossibleComponentNamesValues returns an array of possible values for the ComponentNames const type. func PossibleComponentNamesValues() []ComponentNames { - return []ComponentNames{MicrosoftWindowsShellSetup} + return []ComponentNames{ComponentNamesMicrosoftWindowsShellSetup} +} + +// ConsistencyModeTypes enumerates the values for consistency mode types. +type ConsistencyModeTypes string + +const ( + // ConsistencyModeTypesApplicationConsistent ... + ConsistencyModeTypesApplicationConsistent ConsistencyModeTypes = "ApplicationConsistent" + // ConsistencyModeTypesCrashConsistent ... + ConsistencyModeTypesCrashConsistent ConsistencyModeTypes = "CrashConsistent" + // ConsistencyModeTypesFileSystemConsistent ... + ConsistencyModeTypesFileSystemConsistent ConsistencyModeTypes = "FileSystemConsistent" +) + +// PossibleConsistencyModeTypesValues returns an array of possible values for the ConsistencyModeTypes const type. +func PossibleConsistencyModeTypesValues() []ConsistencyModeTypes { + return []ConsistencyModeTypes{ConsistencyModeTypesApplicationConsistent, ConsistencyModeTypesCrashConsistent, ConsistencyModeTypesFileSystemConsistent} } // DedicatedHostLicenseTypes enumerates the values for dedicated host license types. @@ -121,61 +138,76 @@ func PossibleDedicatedHostLicenseTypesValues() []DedicatedHostLicenseTypes { return []DedicatedHostLicenseTypes{DedicatedHostLicenseTypesNone, DedicatedHostLicenseTypesWindowsServerHybrid, DedicatedHostLicenseTypesWindowsServerPerpetual} } +// DeleteOptions enumerates the values for delete options. +type DeleteOptions string + +const ( + // DeleteOptionsDelete ... + DeleteOptionsDelete DeleteOptions = "Delete" + // DeleteOptionsDetach ... + DeleteOptionsDetach DeleteOptions = "Detach" +) + +// PossibleDeleteOptionsValues returns an array of possible values for the DeleteOptions const type. +func PossibleDeleteOptionsValues() []DeleteOptions { + return []DeleteOptions{DeleteOptionsDelete, DeleteOptionsDetach} +} + // DiffDiskOptions enumerates the values for diff disk options. type DiffDiskOptions string const ( - // Local ... - Local DiffDiskOptions = "Local" + // DiffDiskOptionsLocal ... + DiffDiskOptionsLocal DiffDiskOptions = "Local" ) // PossibleDiffDiskOptionsValues returns an array of possible values for the DiffDiskOptions const type. func PossibleDiffDiskOptionsValues() []DiffDiskOptions { - return []DiffDiskOptions{Local} + return []DiffDiskOptions{DiffDiskOptionsLocal} } // DiffDiskPlacement enumerates the values for diff disk placement. type DiffDiskPlacement string const ( - // CacheDisk ... - CacheDisk DiffDiskPlacement = "CacheDisk" - // ResourceDisk ... - ResourceDisk DiffDiskPlacement = "ResourceDisk" + // DiffDiskPlacementCacheDisk ... + DiffDiskPlacementCacheDisk DiffDiskPlacement = "CacheDisk" + // DiffDiskPlacementResourceDisk ... + DiffDiskPlacementResourceDisk DiffDiskPlacement = "ResourceDisk" ) // PossibleDiffDiskPlacementValues returns an array of possible values for the DiffDiskPlacement const type. func PossibleDiffDiskPlacementValues() []DiffDiskPlacement { - return []DiffDiskPlacement{CacheDisk, ResourceDisk} + return []DiffDiskPlacement{DiffDiskPlacementCacheDisk, DiffDiskPlacementResourceDisk} } // DiskCreateOption enumerates the values for disk create option. type DiskCreateOption string const ( - // Attach Disk will be attached to a VM. - Attach DiskCreateOption = "Attach" - // Copy Create a new disk or snapshot by copying from a disk or snapshot specified by the given - // sourceResourceId. - Copy DiskCreateOption = "Copy" - // Empty Create an empty data disk of a size given by diskSizeGB. - Empty DiskCreateOption = "Empty" - // FromImage Create a new disk from a platform image specified by the given imageReference or - // galleryImageReference. - FromImage DiskCreateOption = "FromImage" - // Import Create a disk by importing from a blob specified by a sourceUri in a storage account specified by - // storageAccountId. - Import DiskCreateOption = "Import" - // Restore Create a new disk by copying from a backup recovery point. - Restore DiskCreateOption = "Restore" - // Upload Create a new disk by obtaining a write token and using it to directly upload the contents of the - // disk. - Upload DiskCreateOption = "Upload" + // DiskCreateOptionAttach Disk will be attached to a VM. + DiskCreateOptionAttach DiskCreateOption = "Attach" + // DiskCreateOptionCopy Create a new disk or snapshot by copying from a disk or snapshot specified by the + // given sourceResourceId. + DiskCreateOptionCopy DiskCreateOption = "Copy" + // DiskCreateOptionEmpty Create an empty data disk of a size given by diskSizeGB. + DiskCreateOptionEmpty DiskCreateOption = "Empty" + // DiskCreateOptionFromImage Create a new disk from a platform image specified by the given imageReference + // or galleryImageReference. + DiskCreateOptionFromImage DiskCreateOption = "FromImage" + // DiskCreateOptionImport Create a disk by importing from a blob specified by a sourceUri in a storage + // account specified by storageAccountId. + DiskCreateOptionImport DiskCreateOption = "Import" + // DiskCreateOptionRestore Create a new disk by copying from a backup recovery point. + DiskCreateOptionRestore DiskCreateOption = "Restore" + // DiskCreateOptionUpload Create a new disk by obtaining a write token and using it to directly upload the + // contents of the disk. + DiskCreateOptionUpload DiskCreateOption = "Upload" ) // PossibleDiskCreateOptionValues returns an array of possible values for the DiskCreateOption const type. func PossibleDiskCreateOptionValues() []DiskCreateOption { - return []DiskCreateOption{Attach, Copy, Empty, FromImage, Import, Restore, Upload} + return []DiskCreateOption{DiskCreateOptionAttach, DiskCreateOptionCopy, DiskCreateOptionEmpty, DiskCreateOptionFromImage, DiskCreateOptionImport, DiskCreateOptionRestore, DiskCreateOptionUpload} } // DiskCreateOptionTypes enumerates the values for disk create option types. @@ -195,17 +227,32 @@ func PossibleDiskCreateOptionTypesValues() []DiskCreateOptionTypes { return []DiskCreateOptionTypes{DiskCreateOptionTypesAttach, DiskCreateOptionTypesEmpty, DiskCreateOptionTypesFromImage} } +// DiskDeleteOptionTypes enumerates the values for disk delete option types. +type DiskDeleteOptionTypes string + +const ( + // DiskDeleteOptionTypesDelete ... + DiskDeleteOptionTypesDelete DiskDeleteOptionTypes = "Delete" + // DiskDeleteOptionTypesDetach ... + DiskDeleteOptionTypesDetach DiskDeleteOptionTypes = "Detach" +) + +// PossibleDiskDeleteOptionTypesValues returns an array of possible values for the DiskDeleteOptionTypes const type. +func PossibleDiskDeleteOptionTypesValues() []DiskDeleteOptionTypes { + return []DiskDeleteOptionTypes{DiskDeleteOptionTypesDelete, DiskDeleteOptionTypesDetach} +} + // DiskDetachOptionTypes enumerates the values for disk detach option types. type DiskDetachOptionTypes string const ( - // ForceDetach ... - ForceDetach DiskDetachOptionTypes = "ForceDetach" + // DiskDetachOptionTypesForceDetach ... + DiskDetachOptionTypesForceDetach DiskDetachOptionTypes = "ForceDetach" ) // PossibleDiskDetachOptionTypesValues returns an array of possible values for the DiskDetachOptionTypes const type. func PossibleDiskDetachOptionTypesValues() []DiskDetachOptionTypes { - return []DiskDetachOptionTypes{ForceDetach} + return []DiskDetachOptionTypes{DiskDetachOptionTypesForceDetach} } // DiskEncryptionSetIdentityType enumerates the values for disk encryption set identity type. @@ -227,84 +274,85 @@ func PossibleDiskEncryptionSetIdentityTypeValues() []DiskEncryptionSetIdentityTy type DiskEncryptionSetType string const ( - // EncryptionAtRestWithCustomerKey Resource using diskEncryptionSet would be encrypted at rest with - // Customer managed key that can be changed and revoked by a customer. - EncryptionAtRestWithCustomerKey DiskEncryptionSetType = "EncryptionAtRestWithCustomerKey" - // EncryptionAtRestWithPlatformAndCustomerKeys Resource using diskEncryptionSet would be encrypted at rest - // with two layers of encryption. One of the keys is Customer managed and the other key is Platform - // managed. - EncryptionAtRestWithPlatformAndCustomerKeys DiskEncryptionSetType = "EncryptionAtRestWithPlatformAndCustomerKeys" + // DiskEncryptionSetTypeEncryptionAtRestWithCustomerKey Resource using diskEncryptionSet would be encrypted + // at rest with Customer managed key that can be changed and revoked by a customer. + DiskEncryptionSetTypeEncryptionAtRestWithCustomerKey DiskEncryptionSetType = "EncryptionAtRestWithCustomerKey" + // DiskEncryptionSetTypeEncryptionAtRestWithPlatformAndCustomerKeys Resource using diskEncryptionSet would + // be encrypted at rest with two layers of encryption. One of the keys is Customer managed and the other + // key is Platform managed. + DiskEncryptionSetTypeEncryptionAtRestWithPlatformAndCustomerKeys DiskEncryptionSetType = "EncryptionAtRestWithPlatformAndCustomerKeys" ) // PossibleDiskEncryptionSetTypeValues returns an array of possible values for the DiskEncryptionSetType const type. func PossibleDiskEncryptionSetTypeValues() []DiskEncryptionSetType { - return []DiskEncryptionSetType{EncryptionAtRestWithCustomerKey, EncryptionAtRestWithPlatformAndCustomerKeys} + return []DiskEncryptionSetType{DiskEncryptionSetTypeEncryptionAtRestWithCustomerKey, DiskEncryptionSetTypeEncryptionAtRestWithPlatformAndCustomerKeys} } // DiskSecurityTypes enumerates the values for disk security types. type DiskSecurityTypes string const ( - // TrustedLaunch Trusted Launch provides security features such as secure boot and virtual Trusted Platform - // Module (vTPM) - TrustedLaunch DiskSecurityTypes = "TrustedLaunch" + // DiskSecurityTypesTrustedLaunch Trusted Launch provides security features such as secure boot and virtual + // Trusted Platform Module (vTPM) + DiskSecurityTypesTrustedLaunch DiskSecurityTypes = "TrustedLaunch" ) // PossibleDiskSecurityTypesValues returns an array of possible values for the DiskSecurityTypes const type. func PossibleDiskSecurityTypesValues() []DiskSecurityTypes { - return []DiskSecurityTypes{TrustedLaunch} + return []DiskSecurityTypes{DiskSecurityTypesTrustedLaunch} } // DiskState enumerates the values for disk state. type DiskState string const ( - // ActiveSAS The disk currently has an Active SAS Uri associated with it. - ActiveSAS DiskState = "ActiveSAS" - // ActiveUpload A disk is created for upload and a write token has been issued for uploading to it. - ActiveUpload DiskState = "ActiveUpload" - // Attached The disk is currently mounted to a running VM. - Attached DiskState = "Attached" - // ReadyToUpload A disk is ready to be created by upload by requesting a write token. - ReadyToUpload DiskState = "ReadyToUpload" - // Reserved The disk is mounted to a stopped-deallocated VM - Reserved DiskState = "Reserved" - // Unattached The disk is not being used and can be attached to a VM. - Unattached DiskState = "Unattached" + // DiskStateActiveSAS The disk currently has an Active SAS Uri associated with it. + DiskStateActiveSAS DiskState = "ActiveSAS" + // DiskStateActiveUpload A disk is created for upload and a write token has been issued for uploading to + // it. + DiskStateActiveUpload DiskState = "ActiveUpload" + // DiskStateAttached The disk is currently mounted to a running VM. + DiskStateAttached DiskState = "Attached" + // DiskStateReadyToUpload A disk is ready to be created by upload by requesting a write token. + DiskStateReadyToUpload DiskState = "ReadyToUpload" + // DiskStateReserved The disk is mounted to a stopped-deallocated VM + DiskStateReserved DiskState = "Reserved" + // DiskStateUnattached The disk is not being used and can be attached to a VM. + DiskStateUnattached DiskState = "Unattached" ) // PossibleDiskStateValues returns an array of possible values for the DiskState const type. func PossibleDiskStateValues() []DiskState { - return []DiskState{ActiveSAS, ActiveUpload, Attached, ReadyToUpload, Reserved, Unattached} + return []DiskState{DiskStateActiveSAS, DiskStateActiveUpload, DiskStateAttached, DiskStateReadyToUpload, DiskStateReserved, DiskStateUnattached} } // DiskStorageAccountTypes enumerates the values for disk storage account types. type DiskStorageAccountTypes string const ( - // PremiumLRS Premium SSD locally redundant storage. Best for production and performance sensitive - // workloads. - PremiumLRS DiskStorageAccountTypes = "Premium_LRS" - // PremiumZRS Premium SSD zone redundant storage. Best for the production workloads that need storage - // resiliency against zone failures. - PremiumZRS DiskStorageAccountTypes = "Premium_ZRS" - // StandardLRS Standard HDD locally redundant storage. Best for backup, non-critical, and infrequent - // access. - StandardLRS DiskStorageAccountTypes = "Standard_LRS" - // StandardSSDLRS Standard SSD locally redundant storage. Best for web servers, lightly used enterprise - // applications and dev/test. - StandardSSDLRS DiskStorageAccountTypes = "StandardSSD_LRS" - // StandardSSDZRS Standard SSD zone redundant storage. Best for web servers, lightly used enterprise - // applications and dev/test that need storage resiliency against zone failures. - StandardSSDZRS DiskStorageAccountTypes = "StandardSSD_ZRS" - // UltraSSDLRS Ultra SSD locally redundant storage. Best for IO-intensive workloads such as SAP HANA, top - // tier databases (for example, SQL, Oracle), and other transaction-heavy workloads. - UltraSSDLRS DiskStorageAccountTypes = "UltraSSD_LRS" + // DiskStorageAccountTypesPremiumLRS Premium SSD locally redundant storage. Best for production and + // performance sensitive workloads. + DiskStorageAccountTypesPremiumLRS DiskStorageAccountTypes = "Premium_LRS" + // DiskStorageAccountTypesPremiumZRS Premium SSD zone redundant storage. Best for the production workloads + // that need storage resiliency against zone failures. + DiskStorageAccountTypesPremiumZRS DiskStorageAccountTypes = "Premium_ZRS" + // DiskStorageAccountTypesStandardLRS Standard HDD locally redundant storage. Best for backup, + // non-critical, and infrequent access. + DiskStorageAccountTypesStandardLRS DiskStorageAccountTypes = "Standard_LRS" + // DiskStorageAccountTypesStandardSSDLRS Standard SSD locally redundant storage. Best for web servers, + // lightly used enterprise applications and dev/test. + DiskStorageAccountTypesStandardSSDLRS DiskStorageAccountTypes = "StandardSSD_LRS" + // DiskStorageAccountTypesStandardSSDZRS Standard SSD zone redundant storage. Best for web servers, lightly + // used enterprise applications and dev/test that need storage resiliency against zone failures. + DiskStorageAccountTypesStandardSSDZRS DiskStorageAccountTypes = "StandardSSD_ZRS" + // DiskStorageAccountTypesUltraSSDLRS Ultra SSD locally redundant storage. Best for IO-intensive workloads + // such as SAP HANA, top tier databases (for example, SQL, Oracle), and other transaction-heavy workloads. + DiskStorageAccountTypesUltraSSDLRS DiskStorageAccountTypes = "UltraSSD_LRS" ) // PossibleDiskStorageAccountTypesValues returns an array of possible values for the DiskStorageAccountTypes const type. func PossibleDiskStorageAccountTypesValues() []DiskStorageAccountTypes { - return []DiskStorageAccountTypes{PremiumLRS, PremiumZRS, StandardLRS, StandardSSDLRS, StandardSSDZRS, UltraSSDLRS} + return []DiskStorageAccountTypes{DiskStorageAccountTypesPremiumLRS, DiskStorageAccountTypesPremiumZRS, DiskStorageAccountTypesStandardLRS, DiskStorageAccountTypesStandardSSDLRS, DiskStorageAccountTypesStandardSSDZRS, DiskStorageAccountTypesUltraSSDLRS} } // EncryptionType enumerates the values for encryption type. @@ -352,17 +400,45 @@ func PossibleExecutionStateValues() []ExecutionState { return []ExecutionState{ExecutionStateCanceled, ExecutionStateFailed, ExecutionStatePending, ExecutionStateRunning, ExecutionStateSucceeded, ExecutionStateTimedOut, ExecutionStateUnknown} } +// ExpandTypesForGetVMScaleSets enumerates the values for expand types for get vm scale sets. +type ExpandTypesForGetVMScaleSets string + +const ( + // ExpandTypesForGetVMScaleSetsUserData ... + ExpandTypesForGetVMScaleSetsUserData ExpandTypesForGetVMScaleSets = "userData" +) + +// PossibleExpandTypesForGetVMScaleSetsValues returns an array of possible values for the ExpandTypesForGetVMScaleSets const type. +func PossibleExpandTypesForGetVMScaleSetsValues() []ExpandTypesForGetVMScaleSets { + return []ExpandTypesForGetVMScaleSets{ExpandTypesForGetVMScaleSetsUserData} +} + // ExtendedLocationTypes enumerates the values for extended location types. type ExtendedLocationTypes string const ( - // EdgeZone ... - EdgeZone ExtendedLocationTypes = "EdgeZone" + // ExtendedLocationTypesEdgeZone ... + ExtendedLocationTypesEdgeZone ExtendedLocationTypes = "EdgeZone" ) // PossibleExtendedLocationTypesValues returns an array of possible values for the ExtendedLocationTypes const type. func PossibleExtendedLocationTypesValues() []ExtendedLocationTypes { - return []ExtendedLocationTypes{EdgeZone} + return []ExtendedLocationTypes{ExtendedLocationTypesEdgeZone} +} + +// GallerySharingPermissionTypes enumerates the values for gallery sharing permission types. +type GallerySharingPermissionTypes string + +const ( + // GallerySharingPermissionTypesGroups ... + GallerySharingPermissionTypesGroups GallerySharingPermissionTypes = "Groups" + // GallerySharingPermissionTypesPrivate ... + GallerySharingPermissionTypesPrivate GallerySharingPermissionTypes = "Private" +) + +// PossibleGallerySharingPermissionTypesValues returns an array of possible values for the GallerySharingPermissionTypes const type. +func PossibleGallerySharingPermissionTypesValues() []GallerySharingPermissionTypes { + return []GallerySharingPermissionTypes{GallerySharingPermissionTypesGroups, GallerySharingPermissionTypesPrivate} } // HostCaching enumerates the values for host caching. @@ -386,15 +462,15 @@ func PossibleHostCachingValues() []HostCaching { type HyperVGeneration string const ( - // V1 ... - V1 HyperVGeneration = "V1" - // V2 ... - V2 HyperVGeneration = "V2" + // HyperVGenerationV1 ... + HyperVGenerationV1 HyperVGeneration = "V1" + // HyperVGenerationV2 ... + HyperVGenerationV2 HyperVGeneration = "V2" ) // PossibleHyperVGenerationValues returns an array of possible values for the HyperVGeneration const type. func PossibleHyperVGenerationValues() []HyperVGeneration { - return []HyperVGeneration{V1, V2} + return []HyperVGeneration{HyperVGenerationV1, HyperVGenerationV2} } // HyperVGenerationType enumerates the values for hyper v generation type. @@ -431,62 +507,94 @@ func PossibleHyperVGenerationTypesValues() []HyperVGenerationTypes { type InstanceViewTypes string const ( - // InstanceView ... - InstanceView InstanceViewTypes = "instanceView" + // InstanceViewTypesInstanceView ... + InstanceViewTypesInstanceView InstanceViewTypes = "instanceView" + // InstanceViewTypesUserData ... + InstanceViewTypesUserData InstanceViewTypes = "userData" ) // PossibleInstanceViewTypesValues returns an array of possible values for the InstanceViewTypes const type. func PossibleInstanceViewTypesValues() []InstanceViewTypes { - return []InstanceViewTypes{InstanceView} + return []InstanceViewTypes{InstanceViewTypesInstanceView, InstanceViewTypesUserData} } // IntervalInMins enumerates the values for interval in mins. type IntervalInMins string const ( - // FiveMins ... - FiveMins IntervalInMins = "FiveMins" - // SixtyMins ... - SixtyMins IntervalInMins = "SixtyMins" - // ThirtyMins ... - ThirtyMins IntervalInMins = "ThirtyMins" - // ThreeMins ... - ThreeMins IntervalInMins = "ThreeMins" + // IntervalInMinsFiveMins ... + IntervalInMinsFiveMins IntervalInMins = "FiveMins" + // IntervalInMinsSixtyMins ... + IntervalInMinsSixtyMins IntervalInMins = "SixtyMins" + // IntervalInMinsThirtyMins ... + IntervalInMinsThirtyMins IntervalInMins = "ThirtyMins" + // IntervalInMinsThreeMins ... + IntervalInMinsThreeMins IntervalInMins = "ThreeMins" ) // PossibleIntervalInMinsValues returns an array of possible values for the IntervalInMins const type. func PossibleIntervalInMinsValues() []IntervalInMins { - return []IntervalInMins{FiveMins, SixtyMins, ThirtyMins, ThreeMins} + return []IntervalInMins{IntervalInMinsFiveMins, IntervalInMinsSixtyMins, IntervalInMinsThirtyMins, IntervalInMinsThreeMins} } // IPVersion enumerates the values for ip version. type IPVersion string const ( - // IPv4 ... - IPv4 IPVersion = "IPv4" - // IPv6 ... - IPv6 IPVersion = "IPv6" + // IPVersionIPv4 ... + IPVersionIPv4 IPVersion = "IPv4" + // IPVersionIPv6 ... + IPVersionIPv6 IPVersion = "IPv6" ) // PossibleIPVersionValues returns an array of possible values for the IPVersion const type. func PossibleIPVersionValues() []IPVersion { - return []IPVersion{IPv4, IPv6} + return []IPVersion{IPVersionIPv4, IPVersionIPv6} +} + +// IPVersions enumerates the values for ip versions. +type IPVersions string + +const ( + // IPVersionsIPv4 ... + IPVersionsIPv4 IPVersions = "IPv4" + // IPVersionsIPv6 ... + IPVersionsIPv6 IPVersions = "IPv6" +) + +// PossibleIPVersionsValues returns an array of possible values for the IPVersions const type. +func PossibleIPVersionsValues() []IPVersions { + return []IPVersions{IPVersionsIPv4, IPVersionsIPv6} +} + +// LinuxPatchAssessmentMode enumerates the values for linux patch assessment mode. +type LinuxPatchAssessmentMode string + +const ( + // LinuxPatchAssessmentModeAutomaticByPlatform ... + LinuxPatchAssessmentModeAutomaticByPlatform LinuxPatchAssessmentMode = "AutomaticByPlatform" + // LinuxPatchAssessmentModeImageDefault ... + LinuxPatchAssessmentModeImageDefault LinuxPatchAssessmentMode = "ImageDefault" +) + +// PossibleLinuxPatchAssessmentModeValues returns an array of possible values for the LinuxPatchAssessmentMode const type. +func PossibleLinuxPatchAssessmentModeValues() []LinuxPatchAssessmentMode { + return []LinuxPatchAssessmentMode{LinuxPatchAssessmentModeAutomaticByPlatform, LinuxPatchAssessmentModeImageDefault} } // LinuxVMGuestPatchMode enumerates the values for linux vm guest patch mode. type LinuxVMGuestPatchMode string const ( - // AutomaticByPlatform ... - AutomaticByPlatform LinuxVMGuestPatchMode = "AutomaticByPlatform" - // ImageDefault ... - ImageDefault LinuxVMGuestPatchMode = "ImageDefault" + // LinuxVMGuestPatchModeAutomaticByPlatform ... + LinuxVMGuestPatchModeAutomaticByPlatform LinuxVMGuestPatchMode = "AutomaticByPlatform" + // LinuxVMGuestPatchModeImageDefault ... + LinuxVMGuestPatchModeImageDefault LinuxVMGuestPatchMode = "ImageDefault" ) // PossibleLinuxVMGuestPatchModeValues returns an array of possible values for the LinuxVMGuestPatchMode const type. func PossibleLinuxVMGuestPatchModeValues() []LinuxVMGuestPatchMode { - return []LinuxVMGuestPatchMode{AutomaticByPlatform, ImageDefault} + return []LinuxVMGuestPatchMode{LinuxVMGuestPatchModeAutomaticByPlatform, LinuxVMGuestPatchModeImageDefault} } // MaintenanceOperationResultCodeTypes enumerates the values for maintenance operation result code types. @@ -512,120 +620,149 @@ func PossibleMaintenanceOperationResultCodeTypesValues() []MaintenanceOperationR type NetworkAccessPolicy string const ( - // AllowAll The disk can be exported or uploaded to from any network. - AllowAll NetworkAccessPolicy = "AllowAll" - // AllowPrivate The disk can be exported or uploaded to using a DiskAccess resource's private endpoints. - AllowPrivate NetworkAccessPolicy = "AllowPrivate" - // DenyAll The disk cannot be exported. - DenyAll NetworkAccessPolicy = "DenyAll" + // NetworkAccessPolicyAllowAll The disk can be exported or uploaded to from any network. + NetworkAccessPolicyAllowAll NetworkAccessPolicy = "AllowAll" + // NetworkAccessPolicyAllowPrivate The disk can be exported or uploaded to using a DiskAccess resource's + // private endpoints. + NetworkAccessPolicyAllowPrivate NetworkAccessPolicy = "AllowPrivate" + // NetworkAccessPolicyDenyAll The disk cannot be exported. + NetworkAccessPolicyDenyAll NetworkAccessPolicy = "DenyAll" ) // PossibleNetworkAccessPolicyValues returns an array of possible values for the NetworkAccessPolicy const type. func PossibleNetworkAccessPolicyValues() []NetworkAccessPolicy { - return []NetworkAccessPolicy{AllowAll, AllowPrivate, DenyAll} + return []NetworkAccessPolicy{NetworkAccessPolicyAllowAll, NetworkAccessPolicyAllowPrivate, NetworkAccessPolicyDenyAll} +} + +// NetworkAPIVersion enumerates the values for network api version. +type NetworkAPIVersion string + +const ( + // NetworkAPIVersionTwoZeroTwoZeroHyphenMinusOneOneHyphenMinusZeroOne ... + NetworkAPIVersionTwoZeroTwoZeroHyphenMinusOneOneHyphenMinusZeroOne NetworkAPIVersion = "2020-11-01" +) + +// PossibleNetworkAPIVersionValues returns an array of possible values for the NetworkAPIVersion const type. +func PossibleNetworkAPIVersionValues() []NetworkAPIVersion { + return []NetworkAPIVersion{NetworkAPIVersionTwoZeroTwoZeroHyphenMinusOneOneHyphenMinusZeroOne} } // OperatingSystemStateTypes enumerates the values for operating system state types. type OperatingSystemStateTypes string const ( - // Generalized Generalized image. Needs to be provisioned during deployment time. - Generalized OperatingSystemStateTypes = "Generalized" - // Specialized Specialized image. Contains already provisioned OS Disk. - Specialized OperatingSystemStateTypes = "Specialized" + // OperatingSystemStateTypesGeneralized Generalized image. Needs to be provisioned during deployment time. + OperatingSystemStateTypesGeneralized OperatingSystemStateTypes = "Generalized" + // OperatingSystemStateTypesSpecialized Specialized image. Contains already provisioned OS Disk. + OperatingSystemStateTypesSpecialized OperatingSystemStateTypes = "Specialized" ) // PossibleOperatingSystemStateTypesValues returns an array of possible values for the OperatingSystemStateTypes const type. func PossibleOperatingSystemStateTypesValues() []OperatingSystemStateTypes { - return []OperatingSystemStateTypes{Generalized, Specialized} + return []OperatingSystemStateTypes{OperatingSystemStateTypesGeneralized, OperatingSystemStateTypesSpecialized} +} + +// OperatingSystemType enumerates the values for operating system type. +type OperatingSystemType string + +const ( + // OperatingSystemTypeLinux ... + OperatingSystemTypeLinux OperatingSystemType = "Linux" + // OperatingSystemTypeWindows ... + OperatingSystemTypeWindows OperatingSystemType = "Windows" +) + +// PossibleOperatingSystemTypeValues returns an array of possible values for the OperatingSystemType const type. +func PossibleOperatingSystemTypeValues() []OperatingSystemType { + return []OperatingSystemType{OperatingSystemTypeLinux, OperatingSystemTypeWindows} } // OperatingSystemTypes enumerates the values for operating system types. type OperatingSystemTypes string const ( - // Linux ... - Linux OperatingSystemTypes = "Linux" - // Windows ... - Windows OperatingSystemTypes = "Windows" + // OperatingSystemTypesLinux ... + OperatingSystemTypesLinux OperatingSystemTypes = "Linux" + // OperatingSystemTypesWindows ... + OperatingSystemTypesWindows OperatingSystemTypes = "Windows" ) // PossibleOperatingSystemTypesValues returns an array of possible values for the OperatingSystemTypes const type. func PossibleOperatingSystemTypesValues() []OperatingSystemTypes { - return []OperatingSystemTypes{Linux, Windows} + return []OperatingSystemTypes{OperatingSystemTypesLinux, OperatingSystemTypesWindows} } // OrchestrationMode enumerates the values for orchestration mode. type OrchestrationMode string const ( - // Flexible ... - Flexible OrchestrationMode = "Flexible" - // Uniform ... - Uniform OrchestrationMode = "Uniform" + // OrchestrationModeFlexible ... + OrchestrationModeFlexible OrchestrationMode = "Flexible" + // OrchestrationModeUniform ... + OrchestrationModeUniform OrchestrationMode = "Uniform" ) // PossibleOrchestrationModeValues returns an array of possible values for the OrchestrationMode const type. func PossibleOrchestrationModeValues() []OrchestrationMode { - return []OrchestrationMode{Flexible, Uniform} + return []OrchestrationMode{OrchestrationModeFlexible, OrchestrationModeUniform} } // OrchestrationServiceNames enumerates the values for orchestration service names. type OrchestrationServiceNames string const ( - // AutomaticRepairs ... - AutomaticRepairs OrchestrationServiceNames = "AutomaticRepairs" + // OrchestrationServiceNamesAutomaticRepairs ... + OrchestrationServiceNamesAutomaticRepairs OrchestrationServiceNames = "AutomaticRepairs" ) // PossibleOrchestrationServiceNamesValues returns an array of possible values for the OrchestrationServiceNames const type. func PossibleOrchestrationServiceNamesValues() []OrchestrationServiceNames { - return []OrchestrationServiceNames{AutomaticRepairs} + return []OrchestrationServiceNames{OrchestrationServiceNamesAutomaticRepairs} } // OrchestrationServiceState enumerates the values for orchestration service state. type OrchestrationServiceState string const ( - // NotRunning ... - NotRunning OrchestrationServiceState = "NotRunning" - // Running ... - Running OrchestrationServiceState = "Running" - // Suspended ... - Suspended OrchestrationServiceState = "Suspended" + // OrchestrationServiceStateNotRunning ... + OrchestrationServiceStateNotRunning OrchestrationServiceState = "NotRunning" + // OrchestrationServiceStateRunning ... + OrchestrationServiceStateRunning OrchestrationServiceState = "Running" + // OrchestrationServiceStateSuspended ... + OrchestrationServiceStateSuspended OrchestrationServiceState = "Suspended" ) // PossibleOrchestrationServiceStateValues returns an array of possible values for the OrchestrationServiceState const type. func PossibleOrchestrationServiceStateValues() []OrchestrationServiceState { - return []OrchestrationServiceState{NotRunning, Running, Suspended} + return []OrchestrationServiceState{OrchestrationServiceStateNotRunning, OrchestrationServiceStateRunning, OrchestrationServiceStateSuspended} } // OrchestrationServiceStateAction enumerates the values for orchestration service state action. type OrchestrationServiceStateAction string const ( - // Resume ... - Resume OrchestrationServiceStateAction = "Resume" - // Suspend ... - Suspend OrchestrationServiceStateAction = "Suspend" + // OrchestrationServiceStateActionResume ... + OrchestrationServiceStateActionResume OrchestrationServiceStateAction = "Resume" + // OrchestrationServiceStateActionSuspend ... + OrchestrationServiceStateActionSuspend OrchestrationServiceStateAction = "Suspend" ) // PossibleOrchestrationServiceStateActionValues returns an array of possible values for the OrchestrationServiceStateAction const type. func PossibleOrchestrationServiceStateActionValues() []OrchestrationServiceStateAction { - return []OrchestrationServiceStateAction{Resume, Suspend} + return []OrchestrationServiceStateAction{OrchestrationServiceStateActionResume, OrchestrationServiceStateActionSuspend} } // PassNames enumerates the values for pass names. type PassNames string const ( - // OobeSystem ... - OobeSystem PassNames = "OobeSystem" + // PassNamesOobeSystem ... + PassNamesOobeSystem PassNames = "OobeSystem" ) // PossiblePassNamesValues returns an array of possible values for the PassNames const type. func PossiblePassNamesValues() []PassNames { - return []PassNames{OobeSystem} + return []PassNames{PassNamesOobeSystem} } // PatchAssessmentState enumerates the values for patch assessment state. @@ -711,32 +848,32 @@ func PossiblePrivateEndpointConnectionProvisioningStateValues() []PrivateEndpoin type PrivateEndpointServiceConnectionStatus string const ( - // Approved ... - Approved PrivateEndpointServiceConnectionStatus = "Approved" - // Pending ... - Pending PrivateEndpointServiceConnectionStatus = "Pending" - // Rejected ... - Rejected PrivateEndpointServiceConnectionStatus = "Rejected" + // PrivateEndpointServiceConnectionStatusApproved ... + PrivateEndpointServiceConnectionStatusApproved PrivateEndpointServiceConnectionStatus = "Approved" + // PrivateEndpointServiceConnectionStatusPending ... + PrivateEndpointServiceConnectionStatusPending PrivateEndpointServiceConnectionStatus = "Pending" + // PrivateEndpointServiceConnectionStatusRejected ... + PrivateEndpointServiceConnectionStatusRejected PrivateEndpointServiceConnectionStatus = "Rejected" ) // PossiblePrivateEndpointServiceConnectionStatusValues returns an array of possible values for the PrivateEndpointServiceConnectionStatus const type. func PossiblePrivateEndpointServiceConnectionStatusValues() []PrivateEndpointServiceConnectionStatus { - return []PrivateEndpointServiceConnectionStatus{Approved, Pending, Rejected} + return []PrivateEndpointServiceConnectionStatus{PrivateEndpointServiceConnectionStatusApproved, PrivateEndpointServiceConnectionStatusPending, PrivateEndpointServiceConnectionStatusRejected} } // ProtocolTypes enumerates the values for protocol types. type ProtocolTypes string const ( - // HTTP ... - HTTP ProtocolTypes = "Http" - // HTTPS ... - HTTPS ProtocolTypes = "Https" + // ProtocolTypesHTTP ... + ProtocolTypesHTTP ProtocolTypes = "Http" + // ProtocolTypesHTTPS ... + ProtocolTypesHTTPS ProtocolTypes = "Https" ) // PossibleProtocolTypesValues returns an array of possible values for the ProtocolTypes const type. func PossibleProtocolTypesValues() []ProtocolTypes { - return []ProtocolTypes{HTTP, HTTPS} + return []ProtocolTypes{ProtocolTypesHTTP, ProtocolTypesHTTPS} } // ProvisioningState enumerates the values for provisioning state. @@ -835,15 +972,60 @@ func PossibleProvisioningState3Values() []ProvisioningState3 { type ProximityPlacementGroupType string const ( - // Standard ... - Standard ProximityPlacementGroupType = "Standard" - // Ultra ... - Ultra ProximityPlacementGroupType = "Ultra" + // ProximityPlacementGroupTypeStandard ... + ProximityPlacementGroupTypeStandard ProximityPlacementGroupType = "Standard" + // ProximityPlacementGroupTypeUltra ... + ProximityPlacementGroupTypeUltra ProximityPlacementGroupType = "Ultra" ) // PossibleProximityPlacementGroupTypeValues returns an array of possible values for the ProximityPlacementGroupType const type. func PossibleProximityPlacementGroupTypeValues() []ProximityPlacementGroupType { - return []ProximityPlacementGroupType{Standard, Ultra} + return []ProximityPlacementGroupType{ProximityPlacementGroupTypeStandard, ProximityPlacementGroupTypeUltra} +} + +// PublicIPAddressSkuName enumerates the values for public ip address sku name. +type PublicIPAddressSkuName string + +const ( + // PublicIPAddressSkuNameBasic ... + PublicIPAddressSkuNameBasic PublicIPAddressSkuName = "Basic" + // PublicIPAddressSkuNameStandard ... + PublicIPAddressSkuNameStandard PublicIPAddressSkuName = "Standard" +) + +// PossiblePublicIPAddressSkuNameValues returns an array of possible values for the PublicIPAddressSkuName const type. +func PossiblePublicIPAddressSkuNameValues() []PublicIPAddressSkuName { + return []PublicIPAddressSkuName{PublicIPAddressSkuNameBasic, PublicIPAddressSkuNameStandard} +} + +// PublicIPAddressSkuTier enumerates the values for public ip address sku tier. +type PublicIPAddressSkuTier string + +const ( + // PublicIPAddressSkuTierGlobal ... + PublicIPAddressSkuTierGlobal PublicIPAddressSkuTier = "Global" + // PublicIPAddressSkuTierRegional ... + PublicIPAddressSkuTierRegional PublicIPAddressSkuTier = "Regional" +) + +// PossiblePublicIPAddressSkuTierValues returns an array of possible values for the PublicIPAddressSkuTier const type. +func PossiblePublicIPAddressSkuTierValues() []PublicIPAddressSkuTier { + return []PublicIPAddressSkuTier{PublicIPAddressSkuTierGlobal, PublicIPAddressSkuTierRegional} +} + +// PublicIPAllocationMethod enumerates the values for public ip allocation method. +type PublicIPAllocationMethod string + +const ( + // PublicIPAllocationMethodDynamic ... + PublicIPAllocationMethodDynamic PublicIPAllocationMethod = "Dynamic" + // PublicIPAllocationMethodStatic ... + PublicIPAllocationMethodStatic PublicIPAllocationMethod = "Static" +) + +// PossiblePublicIPAllocationMethodValues returns an array of possible values for the PublicIPAllocationMethod const type. +func PossiblePublicIPAllocationMethodValues() []PublicIPAllocationMethod { + return []PublicIPAllocationMethod{PublicIPAllocationMethodDynamic, PublicIPAllocationMethodStatic} } // ReplicationState enumerates the values for replication state. @@ -918,45 +1100,58 @@ func PossibleResourceSkuCapacityScaleTypeValues() []ResourceSkuCapacityScaleType type ResourceSkuRestrictionsReasonCode string const ( - // NotAvailableForSubscription ... - NotAvailableForSubscription ResourceSkuRestrictionsReasonCode = "NotAvailableForSubscription" - // QuotaID ... - QuotaID ResourceSkuRestrictionsReasonCode = "QuotaId" + // ResourceSkuRestrictionsReasonCodeNotAvailableForSubscription ... + ResourceSkuRestrictionsReasonCodeNotAvailableForSubscription ResourceSkuRestrictionsReasonCode = "NotAvailableForSubscription" + // ResourceSkuRestrictionsReasonCodeQuotaID ... + ResourceSkuRestrictionsReasonCodeQuotaID ResourceSkuRestrictionsReasonCode = "QuotaId" ) // PossibleResourceSkuRestrictionsReasonCodeValues returns an array of possible values for the ResourceSkuRestrictionsReasonCode const type. func PossibleResourceSkuRestrictionsReasonCodeValues() []ResourceSkuRestrictionsReasonCode { - return []ResourceSkuRestrictionsReasonCode{NotAvailableForSubscription, QuotaID} + return []ResourceSkuRestrictionsReasonCode{ResourceSkuRestrictionsReasonCodeNotAvailableForSubscription, ResourceSkuRestrictionsReasonCodeQuotaID} } // ResourceSkuRestrictionsType enumerates the values for resource sku restrictions type. type ResourceSkuRestrictionsType string const ( - // Location ... - Location ResourceSkuRestrictionsType = "Location" - // Zone ... - Zone ResourceSkuRestrictionsType = "Zone" + // ResourceSkuRestrictionsTypeLocation ... + ResourceSkuRestrictionsTypeLocation ResourceSkuRestrictionsType = "Location" + // ResourceSkuRestrictionsTypeZone ... + ResourceSkuRestrictionsTypeZone ResourceSkuRestrictionsType = "Zone" ) // PossibleResourceSkuRestrictionsTypeValues returns an array of possible values for the ResourceSkuRestrictionsType const type. func PossibleResourceSkuRestrictionsTypeValues() []ResourceSkuRestrictionsType { - return []ResourceSkuRestrictionsType{Location, Zone} + return []ResourceSkuRestrictionsType{ResourceSkuRestrictionsTypeLocation, ResourceSkuRestrictionsTypeZone} +} + +// RestorePointCollectionExpandOptions enumerates the values for restore point collection expand options. +type RestorePointCollectionExpandOptions string + +const ( + // RestorePointCollectionExpandOptionsRestorePoints ... + RestorePointCollectionExpandOptionsRestorePoints RestorePointCollectionExpandOptions = "restorePoints" +) + +// PossibleRestorePointCollectionExpandOptionsValues returns an array of possible values for the RestorePointCollectionExpandOptions const type. +func PossibleRestorePointCollectionExpandOptionsValues() []RestorePointCollectionExpandOptions { + return []RestorePointCollectionExpandOptions{RestorePointCollectionExpandOptionsRestorePoints} } // RollingUpgradeActionType enumerates the values for rolling upgrade action type. type RollingUpgradeActionType string const ( - // Cancel ... - Cancel RollingUpgradeActionType = "Cancel" - // Start ... - Start RollingUpgradeActionType = "Start" + // RollingUpgradeActionTypeCancel ... + RollingUpgradeActionTypeCancel RollingUpgradeActionType = "Cancel" + // RollingUpgradeActionTypeStart ... + RollingUpgradeActionTypeStart RollingUpgradeActionType = "Start" ) // PossibleRollingUpgradeActionTypeValues returns an array of possible values for the RollingUpgradeActionType const type. func PossibleRollingUpgradeActionTypeValues() []RollingUpgradeActionType { - return []RollingUpgradeActionType{Cancel, Start} + return []RollingUpgradeActionType{RollingUpgradeActionTypeCancel, RollingUpgradeActionTypeStart} } // RollingUpgradeStatusCode enumerates the values for rolling upgrade status code. @@ -991,19 +1186,77 @@ func PossibleSecurityTypesValues() []SecurityTypes { return []SecurityTypes{SecurityTypesTrustedLaunch} } +// SelectPermissions enumerates the values for select permissions. +type SelectPermissions string + +const ( + // SelectPermissionsPermissions ... + SelectPermissionsPermissions SelectPermissions = "Permissions" +) + +// PossibleSelectPermissionsValues returns an array of possible values for the SelectPermissions const type. +func PossibleSelectPermissionsValues() []SelectPermissions { + return []SelectPermissions{SelectPermissionsPermissions} +} + // SettingNames enumerates the values for setting names. type SettingNames string const ( - // AutoLogon ... - AutoLogon SettingNames = "AutoLogon" - // FirstLogonCommands ... - FirstLogonCommands SettingNames = "FirstLogonCommands" + // SettingNamesAutoLogon ... + SettingNamesAutoLogon SettingNames = "AutoLogon" + // SettingNamesFirstLogonCommands ... + SettingNamesFirstLogonCommands SettingNames = "FirstLogonCommands" ) // PossibleSettingNamesValues returns an array of possible values for the SettingNames const type. func PossibleSettingNamesValues() []SettingNames { - return []SettingNames{AutoLogon, FirstLogonCommands} + return []SettingNames{SettingNamesAutoLogon, SettingNamesFirstLogonCommands} +} + +// SharedToValues enumerates the values for shared to values. +type SharedToValues string + +const ( + // SharedToValuesTenant ... + SharedToValuesTenant SharedToValues = "tenant" +) + +// PossibleSharedToValuesValues returns an array of possible values for the SharedToValues const type. +func PossibleSharedToValuesValues() []SharedToValues { + return []SharedToValues{SharedToValuesTenant} +} + +// SharingProfileGroupTypes enumerates the values for sharing profile group types. +type SharingProfileGroupTypes string + +const ( + // SharingProfileGroupTypesAADTenants ... + SharingProfileGroupTypesAADTenants SharingProfileGroupTypes = "AADTenants" + // SharingProfileGroupTypesSubscriptions ... + SharingProfileGroupTypesSubscriptions SharingProfileGroupTypes = "Subscriptions" +) + +// PossibleSharingProfileGroupTypesValues returns an array of possible values for the SharingProfileGroupTypes const type. +func PossibleSharingProfileGroupTypesValues() []SharingProfileGroupTypes { + return []SharingProfileGroupTypes{SharingProfileGroupTypesAADTenants, SharingProfileGroupTypesSubscriptions} +} + +// SharingUpdateOperationTypes enumerates the values for sharing update operation types. +type SharingUpdateOperationTypes string + +const ( + // SharingUpdateOperationTypesAdd ... + SharingUpdateOperationTypesAdd SharingUpdateOperationTypes = "Add" + // SharingUpdateOperationTypesRemove ... + SharingUpdateOperationTypesRemove SharingUpdateOperationTypes = "Remove" + // SharingUpdateOperationTypesReset ... + SharingUpdateOperationTypesReset SharingUpdateOperationTypes = "Reset" +) + +// PossibleSharingUpdateOperationTypesValues returns an array of possible values for the SharingUpdateOperationTypes const type. +func PossibleSharingUpdateOperationTypesValues() []SharingUpdateOperationTypes { + return []SharingUpdateOperationTypes{SharingUpdateOperationTypesAdd, SharingUpdateOperationTypesRemove, SharingUpdateOperationTypesReset} } // SnapshotStorageAccountTypes enumerates the values for snapshot storage account types. @@ -1027,17 +1280,17 @@ func PossibleSnapshotStorageAccountTypesValues() []SnapshotStorageAccountTypes { type StatusLevelTypes string const ( - // Error ... - Error StatusLevelTypes = "Error" - // Info ... - Info StatusLevelTypes = "Info" - // Warning ... - Warning StatusLevelTypes = "Warning" + // StatusLevelTypesError ... + StatusLevelTypesError StatusLevelTypes = "Error" + // StatusLevelTypesInfo ... + StatusLevelTypesInfo StatusLevelTypes = "Info" + // StatusLevelTypesWarning ... + StatusLevelTypesWarning StatusLevelTypes = "Warning" ) // PossibleStatusLevelTypesValues returns an array of possible values for the StatusLevelTypes const type. func PossibleStatusLevelTypesValues() []StatusLevelTypes { - return []StatusLevelTypes{Error, Info, Warning} + return []StatusLevelTypes{StatusLevelTypesError, StatusLevelTypesInfo, StatusLevelTypesWarning} } // StorageAccountType enumerates the values for storage account type. @@ -1137,49 +1390,49 @@ func PossibleUpgradeStateValues() []UpgradeState { type VirtualMachineEvictionPolicyTypes string const ( - // Deallocate ... - Deallocate VirtualMachineEvictionPolicyTypes = "Deallocate" - // Delete ... - Delete VirtualMachineEvictionPolicyTypes = "Delete" + // VirtualMachineEvictionPolicyTypesDeallocate ... + VirtualMachineEvictionPolicyTypesDeallocate VirtualMachineEvictionPolicyTypes = "Deallocate" + // VirtualMachineEvictionPolicyTypesDelete ... + VirtualMachineEvictionPolicyTypesDelete VirtualMachineEvictionPolicyTypes = "Delete" ) // PossibleVirtualMachineEvictionPolicyTypesValues returns an array of possible values for the VirtualMachineEvictionPolicyTypes const type. func PossibleVirtualMachineEvictionPolicyTypesValues() []VirtualMachineEvictionPolicyTypes { - return []VirtualMachineEvictionPolicyTypes{Deallocate, Delete} + return []VirtualMachineEvictionPolicyTypes{VirtualMachineEvictionPolicyTypesDeallocate, VirtualMachineEvictionPolicyTypesDelete} } // VirtualMachinePriorityTypes enumerates the values for virtual machine priority types. type VirtualMachinePriorityTypes string const ( - // Low ... - Low VirtualMachinePriorityTypes = "Low" - // Regular ... - Regular VirtualMachinePriorityTypes = "Regular" - // Spot ... - Spot VirtualMachinePriorityTypes = "Spot" + // VirtualMachinePriorityTypesLow ... + VirtualMachinePriorityTypesLow VirtualMachinePriorityTypes = "Low" + // VirtualMachinePriorityTypesRegular ... + VirtualMachinePriorityTypesRegular VirtualMachinePriorityTypes = "Regular" + // VirtualMachinePriorityTypesSpot ... + VirtualMachinePriorityTypesSpot VirtualMachinePriorityTypes = "Spot" ) // PossibleVirtualMachinePriorityTypesValues returns an array of possible values for the VirtualMachinePriorityTypes const type. func PossibleVirtualMachinePriorityTypesValues() []VirtualMachinePriorityTypes { - return []VirtualMachinePriorityTypes{Low, Regular, Spot} + return []VirtualMachinePriorityTypes{VirtualMachinePriorityTypesLow, VirtualMachinePriorityTypesRegular, VirtualMachinePriorityTypesSpot} } // VirtualMachineScaleSetScaleInRules enumerates the values for virtual machine scale set scale in rules. type VirtualMachineScaleSetScaleInRules string const ( - // Default ... - Default VirtualMachineScaleSetScaleInRules = "Default" - // NewestVM ... - NewestVM VirtualMachineScaleSetScaleInRules = "NewestVM" - // OldestVM ... - OldestVM VirtualMachineScaleSetScaleInRules = "OldestVM" + // VirtualMachineScaleSetScaleInRulesDefault ... + VirtualMachineScaleSetScaleInRulesDefault VirtualMachineScaleSetScaleInRules = "Default" + // VirtualMachineScaleSetScaleInRulesNewestVM ... + VirtualMachineScaleSetScaleInRulesNewestVM VirtualMachineScaleSetScaleInRules = "NewestVM" + // VirtualMachineScaleSetScaleInRulesOldestVM ... + VirtualMachineScaleSetScaleInRulesOldestVM VirtualMachineScaleSetScaleInRules = "OldestVM" ) // PossibleVirtualMachineScaleSetScaleInRulesValues returns an array of possible values for the VirtualMachineScaleSetScaleInRules const type. func PossibleVirtualMachineScaleSetScaleInRulesValues() []VirtualMachineScaleSetScaleInRules { - return []VirtualMachineScaleSetScaleInRules{Default, NewestVM, OldestVM} + return []VirtualMachineScaleSetScaleInRules{VirtualMachineScaleSetScaleInRulesDefault, VirtualMachineScaleSetScaleInRulesNewestVM, VirtualMachineScaleSetScaleInRulesOldestVM} } // VirtualMachineScaleSetSkuScaleType enumerates the values for virtual machine scale set sku scale type. @@ -1201,343 +1454,343 @@ func PossibleVirtualMachineScaleSetSkuScaleTypeValues() []VirtualMachineScaleSet type VirtualMachineSizeTypes string const ( - // BasicA0 ... - BasicA0 VirtualMachineSizeTypes = "Basic_A0" - // BasicA1 ... - BasicA1 VirtualMachineSizeTypes = "Basic_A1" - // BasicA2 ... - BasicA2 VirtualMachineSizeTypes = "Basic_A2" - // BasicA3 ... - BasicA3 VirtualMachineSizeTypes = "Basic_A3" - // BasicA4 ... - BasicA4 VirtualMachineSizeTypes = "Basic_A4" - // StandardA0 ... - StandardA0 VirtualMachineSizeTypes = "Standard_A0" - // StandardA1 ... - StandardA1 VirtualMachineSizeTypes = "Standard_A1" - // StandardA10 ... - StandardA10 VirtualMachineSizeTypes = "Standard_A10" - // StandardA11 ... - StandardA11 VirtualMachineSizeTypes = "Standard_A11" - // StandardA1V2 ... - StandardA1V2 VirtualMachineSizeTypes = "Standard_A1_v2" - // StandardA2 ... - StandardA2 VirtualMachineSizeTypes = "Standard_A2" - // StandardA2mV2 ... - StandardA2mV2 VirtualMachineSizeTypes = "Standard_A2m_v2" - // StandardA2V2 ... - StandardA2V2 VirtualMachineSizeTypes = "Standard_A2_v2" - // StandardA3 ... - StandardA3 VirtualMachineSizeTypes = "Standard_A3" - // StandardA4 ... - StandardA4 VirtualMachineSizeTypes = "Standard_A4" - // StandardA4mV2 ... - StandardA4mV2 VirtualMachineSizeTypes = "Standard_A4m_v2" - // StandardA4V2 ... - StandardA4V2 VirtualMachineSizeTypes = "Standard_A4_v2" - // StandardA5 ... - StandardA5 VirtualMachineSizeTypes = "Standard_A5" - // StandardA6 ... - StandardA6 VirtualMachineSizeTypes = "Standard_A6" - // StandardA7 ... - StandardA7 VirtualMachineSizeTypes = "Standard_A7" - // StandardA8 ... - StandardA8 VirtualMachineSizeTypes = "Standard_A8" - // StandardA8mV2 ... - StandardA8mV2 VirtualMachineSizeTypes = "Standard_A8m_v2" - // StandardA8V2 ... - StandardA8V2 VirtualMachineSizeTypes = "Standard_A8_v2" - // StandardA9 ... - StandardA9 VirtualMachineSizeTypes = "Standard_A9" - // StandardB1ms ... - StandardB1ms VirtualMachineSizeTypes = "Standard_B1ms" - // StandardB1s ... - StandardB1s VirtualMachineSizeTypes = "Standard_B1s" - // StandardB2ms ... - StandardB2ms VirtualMachineSizeTypes = "Standard_B2ms" - // StandardB2s ... - StandardB2s VirtualMachineSizeTypes = "Standard_B2s" - // StandardB4ms ... - StandardB4ms VirtualMachineSizeTypes = "Standard_B4ms" - // StandardB8ms ... - StandardB8ms VirtualMachineSizeTypes = "Standard_B8ms" - // StandardD1 ... - StandardD1 VirtualMachineSizeTypes = "Standard_D1" - // StandardD11 ... - StandardD11 VirtualMachineSizeTypes = "Standard_D11" - // StandardD11V2 ... - StandardD11V2 VirtualMachineSizeTypes = "Standard_D11_v2" - // StandardD12 ... - StandardD12 VirtualMachineSizeTypes = "Standard_D12" - // StandardD12V2 ... - StandardD12V2 VirtualMachineSizeTypes = "Standard_D12_v2" - // StandardD13 ... - StandardD13 VirtualMachineSizeTypes = "Standard_D13" - // StandardD13V2 ... - StandardD13V2 VirtualMachineSizeTypes = "Standard_D13_v2" - // StandardD14 ... - StandardD14 VirtualMachineSizeTypes = "Standard_D14" - // StandardD14V2 ... - StandardD14V2 VirtualMachineSizeTypes = "Standard_D14_v2" - // StandardD15V2 ... - StandardD15V2 VirtualMachineSizeTypes = "Standard_D15_v2" - // StandardD16sV3 ... - StandardD16sV3 VirtualMachineSizeTypes = "Standard_D16s_v3" - // StandardD16V3 ... - StandardD16V3 VirtualMachineSizeTypes = "Standard_D16_v3" - // StandardD1V2 ... - StandardD1V2 VirtualMachineSizeTypes = "Standard_D1_v2" - // StandardD2 ... - StandardD2 VirtualMachineSizeTypes = "Standard_D2" - // StandardD2sV3 ... - StandardD2sV3 VirtualMachineSizeTypes = "Standard_D2s_v3" - // StandardD2V2 ... - StandardD2V2 VirtualMachineSizeTypes = "Standard_D2_v2" - // StandardD2V3 ... - StandardD2V3 VirtualMachineSizeTypes = "Standard_D2_v3" - // StandardD3 ... - StandardD3 VirtualMachineSizeTypes = "Standard_D3" - // StandardD32sV3 ... - StandardD32sV3 VirtualMachineSizeTypes = "Standard_D32s_v3" - // StandardD32V3 ... - StandardD32V3 VirtualMachineSizeTypes = "Standard_D32_v3" - // StandardD3V2 ... - StandardD3V2 VirtualMachineSizeTypes = "Standard_D3_v2" - // StandardD4 ... - StandardD4 VirtualMachineSizeTypes = "Standard_D4" - // StandardD4sV3 ... - StandardD4sV3 VirtualMachineSizeTypes = "Standard_D4s_v3" - // StandardD4V2 ... - StandardD4V2 VirtualMachineSizeTypes = "Standard_D4_v2" - // StandardD4V3 ... - StandardD4V3 VirtualMachineSizeTypes = "Standard_D4_v3" - // StandardD5V2 ... - StandardD5V2 VirtualMachineSizeTypes = "Standard_D5_v2" - // StandardD64sV3 ... - StandardD64sV3 VirtualMachineSizeTypes = "Standard_D64s_v3" - // StandardD64V3 ... - StandardD64V3 VirtualMachineSizeTypes = "Standard_D64_v3" - // StandardD8sV3 ... - StandardD8sV3 VirtualMachineSizeTypes = "Standard_D8s_v3" - // StandardD8V3 ... - StandardD8V3 VirtualMachineSizeTypes = "Standard_D8_v3" - // StandardDS1 ... - StandardDS1 VirtualMachineSizeTypes = "Standard_DS1" - // StandardDS11 ... - StandardDS11 VirtualMachineSizeTypes = "Standard_DS11" - // StandardDS11V2 ... - StandardDS11V2 VirtualMachineSizeTypes = "Standard_DS11_v2" - // StandardDS12 ... - StandardDS12 VirtualMachineSizeTypes = "Standard_DS12" - // StandardDS12V2 ... - StandardDS12V2 VirtualMachineSizeTypes = "Standard_DS12_v2" - // StandardDS13 ... - StandardDS13 VirtualMachineSizeTypes = "Standard_DS13" - // StandardDS132V2 ... - StandardDS132V2 VirtualMachineSizeTypes = "Standard_DS13-2_v2" - // StandardDS134V2 ... - StandardDS134V2 VirtualMachineSizeTypes = "Standard_DS13-4_v2" - // StandardDS13V2 ... - StandardDS13V2 VirtualMachineSizeTypes = "Standard_DS13_v2" - // StandardDS14 ... - StandardDS14 VirtualMachineSizeTypes = "Standard_DS14" - // StandardDS144V2 ... - StandardDS144V2 VirtualMachineSizeTypes = "Standard_DS14-4_v2" - // StandardDS148V2 ... - StandardDS148V2 VirtualMachineSizeTypes = "Standard_DS14-8_v2" - // StandardDS14V2 ... - StandardDS14V2 VirtualMachineSizeTypes = "Standard_DS14_v2" - // StandardDS15V2 ... - StandardDS15V2 VirtualMachineSizeTypes = "Standard_DS15_v2" - // StandardDS1V2 ... - StandardDS1V2 VirtualMachineSizeTypes = "Standard_DS1_v2" - // StandardDS2 ... - StandardDS2 VirtualMachineSizeTypes = "Standard_DS2" - // StandardDS2V2 ... - StandardDS2V2 VirtualMachineSizeTypes = "Standard_DS2_v2" - // StandardDS3 ... - StandardDS3 VirtualMachineSizeTypes = "Standard_DS3" - // StandardDS3V2 ... - StandardDS3V2 VirtualMachineSizeTypes = "Standard_DS3_v2" - // StandardDS4 ... - StandardDS4 VirtualMachineSizeTypes = "Standard_DS4" - // StandardDS4V2 ... - StandardDS4V2 VirtualMachineSizeTypes = "Standard_DS4_v2" - // StandardDS5V2 ... - StandardDS5V2 VirtualMachineSizeTypes = "Standard_DS5_v2" - // StandardE16sV3 ... - StandardE16sV3 VirtualMachineSizeTypes = "Standard_E16s_v3" - // StandardE16V3 ... - StandardE16V3 VirtualMachineSizeTypes = "Standard_E16_v3" - // StandardE2sV3 ... - StandardE2sV3 VirtualMachineSizeTypes = "Standard_E2s_v3" - // StandardE2V3 ... - StandardE2V3 VirtualMachineSizeTypes = "Standard_E2_v3" - // StandardE3216V3 ... - StandardE3216V3 VirtualMachineSizeTypes = "Standard_E32-16_v3" - // StandardE328sV3 ... - StandardE328sV3 VirtualMachineSizeTypes = "Standard_E32-8s_v3" - // StandardE32sV3 ... - StandardE32sV3 VirtualMachineSizeTypes = "Standard_E32s_v3" - // StandardE32V3 ... - StandardE32V3 VirtualMachineSizeTypes = "Standard_E32_v3" - // StandardE4sV3 ... - StandardE4sV3 VirtualMachineSizeTypes = "Standard_E4s_v3" - // StandardE4V3 ... - StandardE4V3 VirtualMachineSizeTypes = "Standard_E4_v3" - // StandardE6416sV3 ... - StandardE6416sV3 VirtualMachineSizeTypes = "Standard_E64-16s_v3" - // StandardE6432sV3 ... - StandardE6432sV3 VirtualMachineSizeTypes = "Standard_E64-32s_v3" - // StandardE64sV3 ... - StandardE64sV3 VirtualMachineSizeTypes = "Standard_E64s_v3" - // StandardE64V3 ... - StandardE64V3 VirtualMachineSizeTypes = "Standard_E64_v3" - // StandardE8sV3 ... - StandardE8sV3 VirtualMachineSizeTypes = "Standard_E8s_v3" - // StandardE8V3 ... - StandardE8V3 VirtualMachineSizeTypes = "Standard_E8_v3" - // StandardF1 ... - StandardF1 VirtualMachineSizeTypes = "Standard_F1" - // StandardF16 ... - StandardF16 VirtualMachineSizeTypes = "Standard_F16" - // StandardF16s ... - StandardF16s VirtualMachineSizeTypes = "Standard_F16s" - // StandardF16sV2 ... - StandardF16sV2 VirtualMachineSizeTypes = "Standard_F16s_v2" - // StandardF1s ... - StandardF1s VirtualMachineSizeTypes = "Standard_F1s" - // StandardF2 ... - StandardF2 VirtualMachineSizeTypes = "Standard_F2" - // StandardF2s ... - StandardF2s VirtualMachineSizeTypes = "Standard_F2s" - // StandardF2sV2 ... - StandardF2sV2 VirtualMachineSizeTypes = "Standard_F2s_v2" - // StandardF32sV2 ... - StandardF32sV2 VirtualMachineSizeTypes = "Standard_F32s_v2" - // StandardF4 ... - StandardF4 VirtualMachineSizeTypes = "Standard_F4" - // StandardF4s ... - StandardF4s VirtualMachineSizeTypes = "Standard_F4s" - // StandardF4sV2 ... - StandardF4sV2 VirtualMachineSizeTypes = "Standard_F4s_v2" - // StandardF64sV2 ... - StandardF64sV2 VirtualMachineSizeTypes = "Standard_F64s_v2" - // StandardF72sV2 ... - StandardF72sV2 VirtualMachineSizeTypes = "Standard_F72s_v2" - // StandardF8 ... - StandardF8 VirtualMachineSizeTypes = "Standard_F8" - // StandardF8s ... - StandardF8s VirtualMachineSizeTypes = "Standard_F8s" - // StandardF8sV2 ... - StandardF8sV2 VirtualMachineSizeTypes = "Standard_F8s_v2" - // StandardG1 ... - StandardG1 VirtualMachineSizeTypes = "Standard_G1" - // StandardG2 ... - StandardG2 VirtualMachineSizeTypes = "Standard_G2" - // StandardG3 ... - StandardG3 VirtualMachineSizeTypes = "Standard_G3" - // StandardG4 ... - StandardG4 VirtualMachineSizeTypes = "Standard_G4" - // StandardG5 ... - StandardG5 VirtualMachineSizeTypes = "Standard_G5" - // StandardGS1 ... - StandardGS1 VirtualMachineSizeTypes = "Standard_GS1" - // StandardGS2 ... - StandardGS2 VirtualMachineSizeTypes = "Standard_GS2" - // StandardGS3 ... - StandardGS3 VirtualMachineSizeTypes = "Standard_GS3" - // StandardGS4 ... - StandardGS4 VirtualMachineSizeTypes = "Standard_GS4" - // StandardGS44 ... - StandardGS44 VirtualMachineSizeTypes = "Standard_GS4-4" - // StandardGS48 ... - StandardGS48 VirtualMachineSizeTypes = "Standard_GS4-8" - // StandardGS5 ... - StandardGS5 VirtualMachineSizeTypes = "Standard_GS5" - // StandardGS516 ... - StandardGS516 VirtualMachineSizeTypes = "Standard_GS5-16" - // StandardGS58 ... - StandardGS58 VirtualMachineSizeTypes = "Standard_GS5-8" - // StandardH16 ... - StandardH16 VirtualMachineSizeTypes = "Standard_H16" - // StandardH16m ... - StandardH16m VirtualMachineSizeTypes = "Standard_H16m" - // StandardH16mr ... - StandardH16mr VirtualMachineSizeTypes = "Standard_H16mr" - // StandardH16r ... - StandardH16r VirtualMachineSizeTypes = "Standard_H16r" - // StandardH8 ... - StandardH8 VirtualMachineSizeTypes = "Standard_H8" - // StandardH8m ... - StandardH8m VirtualMachineSizeTypes = "Standard_H8m" - // StandardL16s ... - StandardL16s VirtualMachineSizeTypes = "Standard_L16s" - // StandardL32s ... - StandardL32s VirtualMachineSizeTypes = "Standard_L32s" - // StandardL4s ... - StandardL4s VirtualMachineSizeTypes = "Standard_L4s" - // StandardL8s ... - StandardL8s VirtualMachineSizeTypes = "Standard_L8s" - // StandardM12832ms ... - StandardM12832ms VirtualMachineSizeTypes = "Standard_M128-32ms" - // StandardM12864ms ... - StandardM12864ms VirtualMachineSizeTypes = "Standard_M128-64ms" - // StandardM128ms ... - StandardM128ms VirtualMachineSizeTypes = "Standard_M128ms" - // StandardM128s ... - StandardM128s VirtualMachineSizeTypes = "Standard_M128s" - // StandardM6416ms ... - StandardM6416ms VirtualMachineSizeTypes = "Standard_M64-16ms" - // StandardM6432ms ... - StandardM6432ms VirtualMachineSizeTypes = "Standard_M64-32ms" - // StandardM64ms ... - StandardM64ms VirtualMachineSizeTypes = "Standard_M64ms" - // StandardM64s ... - StandardM64s VirtualMachineSizeTypes = "Standard_M64s" - // StandardNC12 ... - StandardNC12 VirtualMachineSizeTypes = "Standard_NC12" - // StandardNC12sV2 ... - StandardNC12sV2 VirtualMachineSizeTypes = "Standard_NC12s_v2" - // StandardNC12sV3 ... - StandardNC12sV3 VirtualMachineSizeTypes = "Standard_NC12s_v3" - // StandardNC24 ... - StandardNC24 VirtualMachineSizeTypes = "Standard_NC24" - // StandardNC24r ... - StandardNC24r VirtualMachineSizeTypes = "Standard_NC24r" - // StandardNC24rsV2 ... - StandardNC24rsV2 VirtualMachineSizeTypes = "Standard_NC24rs_v2" - // StandardNC24rsV3 ... - StandardNC24rsV3 VirtualMachineSizeTypes = "Standard_NC24rs_v3" - // StandardNC24sV2 ... - StandardNC24sV2 VirtualMachineSizeTypes = "Standard_NC24s_v2" - // StandardNC24sV3 ... - StandardNC24sV3 VirtualMachineSizeTypes = "Standard_NC24s_v3" - // StandardNC6 ... - StandardNC6 VirtualMachineSizeTypes = "Standard_NC6" - // StandardNC6sV2 ... - StandardNC6sV2 VirtualMachineSizeTypes = "Standard_NC6s_v2" - // StandardNC6sV3 ... - StandardNC6sV3 VirtualMachineSizeTypes = "Standard_NC6s_v3" - // StandardND12s ... - StandardND12s VirtualMachineSizeTypes = "Standard_ND12s" - // StandardND24rs ... - StandardND24rs VirtualMachineSizeTypes = "Standard_ND24rs" - // StandardND24s ... - StandardND24s VirtualMachineSizeTypes = "Standard_ND24s" - // StandardND6s ... - StandardND6s VirtualMachineSizeTypes = "Standard_ND6s" - // StandardNV12 ... - StandardNV12 VirtualMachineSizeTypes = "Standard_NV12" - // StandardNV24 ... - StandardNV24 VirtualMachineSizeTypes = "Standard_NV24" - // StandardNV6 ... - StandardNV6 VirtualMachineSizeTypes = "Standard_NV6" + // VirtualMachineSizeTypesBasicA0 ... + VirtualMachineSizeTypesBasicA0 VirtualMachineSizeTypes = "Basic_A0" + // VirtualMachineSizeTypesBasicA1 ... + VirtualMachineSizeTypesBasicA1 VirtualMachineSizeTypes = "Basic_A1" + // VirtualMachineSizeTypesBasicA2 ... + VirtualMachineSizeTypesBasicA2 VirtualMachineSizeTypes = "Basic_A2" + // VirtualMachineSizeTypesBasicA3 ... + VirtualMachineSizeTypesBasicA3 VirtualMachineSizeTypes = "Basic_A3" + // VirtualMachineSizeTypesBasicA4 ... + VirtualMachineSizeTypesBasicA4 VirtualMachineSizeTypes = "Basic_A4" + // VirtualMachineSizeTypesStandardA0 ... + VirtualMachineSizeTypesStandardA0 VirtualMachineSizeTypes = "Standard_A0" + // VirtualMachineSizeTypesStandardA1 ... + VirtualMachineSizeTypesStandardA1 VirtualMachineSizeTypes = "Standard_A1" + // VirtualMachineSizeTypesStandardA10 ... + VirtualMachineSizeTypesStandardA10 VirtualMachineSizeTypes = "Standard_A10" + // VirtualMachineSizeTypesStandardA11 ... + VirtualMachineSizeTypesStandardA11 VirtualMachineSizeTypes = "Standard_A11" + // VirtualMachineSizeTypesStandardA1V2 ... + VirtualMachineSizeTypesStandardA1V2 VirtualMachineSizeTypes = "Standard_A1_v2" + // VirtualMachineSizeTypesStandardA2 ... + VirtualMachineSizeTypesStandardA2 VirtualMachineSizeTypes = "Standard_A2" + // VirtualMachineSizeTypesStandardA2mV2 ... + VirtualMachineSizeTypesStandardA2mV2 VirtualMachineSizeTypes = "Standard_A2m_v2" + // VirtualMachineSizeTypesStandardA2V2 ... + VirtualMachineSizeTypesStandardA2V2 VirtualMachineSizeTypes = "Standard_A2_v2" + // VirtualMachineSizeTypesStandardA3 ... + VirtualMachineSizeTypesStandardA3 VirtualMachineSizeTypes = "Standard_A3" + // VirtualMachineSizeTypesStandardA4 ... + VirtualMachineSizeTypesStandardA4 VirtualMachineSizeTypes = "Standard_A4" + // VirtualMachineSizeTypesStandardA4mV2 ... + VirtualMachineSizeTypesStandardA4mV2 VirtualMachineSizeTypes = "Standard_A4m_v2" + // VirtualMachineSizeTypesStandardA4V2 ... + VirtualMachineSizeTypesStandardA4V2 VirtualMachineSizeTypes = "Standard_A4_v2" + // VirtualMachineSizeTypesStandardA5 ... + VirtualMachineSizeTypesStandardA5 VirtualMachineSizeTypes = "Standard_A5" + // VirtualMachineSizeTypesStandardA6 ... + VirtualMachineSizeTypesStandardA6 VirtualMachineSizeTypes = "Standard_A6" + // VirtualMachineSizeTypesStandardA7 ... + VirtualMachineSizeTypesStandardA7 VirtualMachineSizeTypes = "Standard_A7" + // VirtualMachineSizeTypesStandardA8 ... + VirtualMachineSizeTypesStandardA8 VirtualMachineSizeTypes = "Standard_A8" + // VirtualMachineSizeTypesStandardA8mV2 ... + VirtualMachineSizeTypesStandardA8mV2 VirtualMachineSizeTypes = "Standard_A8m_v2" + // VirtualMachineSizeTypesStandardA8V2 ... + VirtualMachineSizeTypesStandardA8V2 VirtualMachineSizeTypes = "Standard_A8_v2" + // VirtualMachineSizeTypesStandardA9 ... + VirtualMachineSizeTypesStandardA9 VirtualMachineSizeTypes = "Standard_A9" + // VirtualMachineSizeTypesStandardB1ms ... + VirtualMachineSizeTypesStandardB1ms VirtualMachineSizeTypes = "Standard_B1ms" + // VirtualMachineSizeTypesStandardB1s ... + VirtualMachineSizeTypesStandardB1s VirtualMachineSizeTypes = "Standard_B1s" + // VirtualMachineSizeTypesStandardB2ms ... + VirtualMachineSizeTypesStandardB2ms VirtualMachineSizeTypes = "Standard_B2ms" + // VirtualMachineSizeTypesStandardB2s ... + VirtualMachineSizeTypesStandardB2s VirtualMachineSizeTypes = "Standard_B2s" + // VirtualMachineSizeTypesStandardB4ms ... + VirtualMachineSizeTypesStandardB4ms VirtualMachineSizeTypes = "Standard_B4ms" + // VirtualMachineSizeTypesStandardB8ms ... + VirtualMachineSizeTypesStandardB8ms VirtualMachineSizeTypes = "Standard_B8ms" + // VirtualMachineSizeTypesStandardD1 ... + VirtualMachineSizeTypesStandardD1 VirtualMachineSizeTypes = "Standard_D1" + // VirtualMachineSizeTypesStandardD11 ... + VirtualMachineSizeTypesStandardD11 VirtualMachineSizeTypes = "Standard_D11" + // VirtualMachineSizeTypesStandardD11V2 ... + VirtualMachineSizeTypesStandardD11V2 VirtualMachineSizeTypes = "Standard_D11_v2" + // VirtualMachineSizeTypesStandardD12 ... + VirtualMachineSizeTypesStandardD12 VirtualMachineSizeTypes = "Standard_D12" + // VirtualMachineSizeTypesStandardD12V2 ... + VirtualMachineSizeTypesStandardD12V2 VirtualMachineSizeTypes = "Standard_D12_v2" + // VirtualMachineSizeTypesStandardD13 ... + VirtualMachineSizeTypesStandardD13 VirtualMachineSizeTypes = "Standard_D13" + // VirtualMachineSizeTypesStandardD13V2 ... + VirtualMachineSizeTypesStandardD13V2 VirtualMachineSizeTypes = "Standard_D13_v2" + // VirtualMachineSizeTypesStandardD14 ... + VirtualMachineSizeTypesStandardD14 VirtualMachineSizeTypes = "Standard_D14" + // VirtualMachineSizeTypesStandardD14V2 ... + VirtualMachineSizeTypesStandardD14V2 VirtualMachineSizeTypes = "Standard_D14_v2" + // VirtualMachineSizeTypesStandardD15V2 ... + VirtualMachineSizeTypesStandardD15V2 VirtualMachineSizeTypes = "Standard_D15_v2" + // VirtualMachineSizeTypesStandardD16sV3 ... + VirtualMachineSizeTypesStandardD16sV3 VirtualMachineSizeTypes = "Standard_D16s_v3" + // VirtualMachineSizeTypesStandardD16V3 ... + VirtualMachineSizeTypesStandardD16V3 VirtualMachineSizeTypes = "Standard_D16_v3" + // VirtualMachineSizeTypesStandardD1V2 ... + VirtualMachineSizeTypesStandardD1V2 VirtualMachineSizeTypes = "Standard_D1_v2" + // VirtualMachineSizeTypesStandardD2 ... + VirtualMachineSizeTypesStandardD2 VirtualMachineSizeTypes = "Standard_D2" + // VirtualMachineSizeTypesStandardD2sV3 ... + VirtualMachineSizeTypesStandardD2sV3 VirtualMachineSizeTypes = "Standard_D2s_v3" + // VirtualMachineSizeTypesStandardD2V2 ... + VirtualMachineSizeTypesStandardD2V2 VirtualMachineSizeTypes = "Standard_D2_v2" + // VirtualMachineSizeTypesStandardD2V3 ... + VirtualMachineSizeTypesStandardD2V3 VirtualMachineSizeTypes = "Standard_D2_v3" + // VirtualMachineSizeTypesStandardD3 ... + VirtualMachineSizeTypesStandardD3 VirtualMachineSizeTypes = "Standard_D3" + // VirtualMachineSizeTypesStandardD32sV3 ... + VirtualMachineSizeTypesStandardD32sV3 VirtualMachineSizeTypes = "Standard_D32s_v3" + // VirtualMachineSizeTypesStandardD32V3 ... + VirtualMachineSizeTypesStandardD32V3 VirtualMachineSizeTypes = "Standard_D32_v3" + // VirtualMachineSizeTypesStandardD3V2 ... + VirtualMachineSizeTypesStandardD3V2 VirtualMachineSizeTypes = "Standard_D3_v2" + // VirtualMachineSizeTypesStandardD4 ... + VirtualMachineSizeTypesStandardD4 VirtualMachineSizeTypes = "Standard_D4" + // VirtualMachineSizeTypesStandardD4sV3 ... + VirtualMachineSizeTypesStandardD4sV3 VirtualMachineSizeTypes = "Standard_D4s_v3" + // VirtualMachineSizeTypesStandardD4V2 ... + VirtualMachineSizeTypesStandardD4V2 VirtualMachineSizeTypes = "Standard_D4_v2" + // VirtualMachineSizeTypesStandardD4V3 ... + VirtualMachineSizeTypesStandardD4V3 VirtualMachineSizeTypes = "Standard_D4_v3" + // VirtualMachineSizeTypesStandardD5V2 ... + VirtualMachineSizeTypesStandardD5V2 VirtualMachineSizeTypes = "Standard_D5_v2" + // VirtualMachineSizeTypesStandardD64sV3 ... + VirtualMachineSizeTypesStandardD64sV3 VirtualMachineSizeTypes = "Standard_D64s_v3" + // VirtualMachineSizeTypesStandardD64V3 ... + VirtualMachineSizeTypesStandardD64V3 VirtualMachineSizeTypes = "Standard_D64_v3" + // VirtualMachineSizeTypesStandardD8sV3 ... + VirtualMachineSizeTypesStandardD8sV3 VirtualMachineSizeTypes = "Standard_D8s_v3" + // VirtualMachineSizeTypesStandardD8V3 ... + VirtualMachineSizeTypesStandardD8V3 VirtualMachineSizeTypes = "Standard_D8_v3" + // VirtualMachineSizeTypesStandardDS1 ... + VirtualMachineSizeTypesStandardDS1 VirtualMachineSizeTypes = "Standard_DS1" + // VirtualMachineSizeTypesStandardDS11 ... + VirtualMachineSizeTypesStandardDS11 VirtualMachineSizeTypes = "Standard_DS11" + // VirtualMachineSizeTypesStandardDS11V2 ... + VirtualMachineSizeTypesStandardDS11V2 VirtualMachineSizeTypes = "Standard_DS11_v2" + // VirtualMachineSizeTypesStandardDS12 ... + VirtualMachineSizeTypesStandardDS12 VirtualMachineSizeTypes = "Standard_DS12" + // VirtualMachineSizeTypesStandardDS12V2 ... + VirtualMachineSizeTypesStandardDS12V2 VirtualMachineSizeTypes = "Standard_DS12_v2" + // VirtualMachineSizeTypesStandardDS13 ... + VirtualMachineSizeTypesStandardDS13 VirtualMachineSizeTypes = "Standard_DS13" + // VirtualMachineSizeTypesStandardDS132V2 ... + VirtualMachineSizeTypesStandardDS132V2 VirtualMachineSizeTypes = "Standard_DS13-2_v2" + // VirtualMachineSizeTypesStandardDS134V2 ... + VirtualMachineSizeTypesStandardDS134V2 VirtualMachineSizeTypes = "Standard_DS13-4_v2" + // VirtualMachineSizeTypesStandardDS13V2 ... + VirtualMachineSizeTypesStandardDS13V2 VirtualMachineSizeTypes = "Standard_DS13_v2" + // VirtualMachineSizeTypesStandardDS14 ... + VirtualMachineSizeTypesStandardDS14 VirtualMachineSizeTypes = "Standard_DS14" + // VirtualMachineSizeTypesStandardDS144V2 ... + VirtualMachineSizeTypesStandardDS144V2 VirtualMachineSizeTypes = "Standard_DS14-4_v2" + // VirtualMachineSizeTypesStandardDS148V2 ... + VirtualMachineSizeTypesStandardDS148V2 VirtualMachineSizeTypes = "Standard_DS14-8_v2" + // VirtualMachineSizeTypesStandardDS14V2 ... + VirtualMachineSizeTypesStandardDS14V2 VirtualMachineSizeTypes = "Standard_DS14_v2" + // VirtualMachineSizeTypesStandardDS15V2 ... + VirtualMachineSizeTypesStandardDS15V2 VirtualMachineSizeTypes = "Standard_DS15_v2" + // VirtualMachineSizeTypesStandardDS1V2 ... + VirtualMachineSizeTypesStandardDS1V2 VirtualMachineSizeTypes = "Standard_DS1_v2" + // VirtualMachineSizeTypesStandardDS2 ... + VirtualMachineSizeTypesStandardDS2 VirtualMachineSizeTypes = "Standard_DS2" + // VirtualMachineSizeTypesStandardDS2V2 ... + VirtualMachineSizeTypesStandardDS2V2 VirtualMachineSizeTypes = "Standard_DS2_v2" + // VirtualMachineSizeTypesStandardDS3 ... + VirtualMachineSizeTypesStandardDS3 VirtualMachineSizeTypes = "Standard_DS3" + // VirtualMachineSizeTypesStandardDS3V2 ... + VirtualMachineSizeTypesStandardDS3V2 VirtualMachineSizeTypes = "Standard_DS3_v2" + // VirtualMachineSizeTypesStandardDS4 ... + VirtualMachineSizeTypesStandardDS4 VirtualMachineSizeTypes = "Standard_DS4" + // VirtualMachineSizeTypesStandardDS4V2 ... + VirtualMachineSizeTypesStandardDS4V2 VirtualMachineSizeTypes = "Standard_DS4_v2" + // VirtualMachineSizeTypesStandardDS5V2 ... + VirtualMachineSizeTypesStandardDS5V2 VirtualMachineSizeTypes = "Standard_DS5_v2" + // VirtualMachineSizeTypesStandardE16sV3 ... + VirtualMachineSizeTypesStandardE16sV3 VirtualMachineSizeTypes = "Standard_E16s_v3" + // VirtualMachineSizeTypesStandardE16V3 ... + VirtualMachineSizeTypesStandardE16V3 VirtualMachineSizeTypes = "Standard_E16_v3" + // VirtualMachineSizeTypesStandardE2sV3 ... + VirtualMachineSizeTypesStandardE2sV3 VirtualMachineSizeTypes = "Standard_E2s_v3" + // VirtualMachineSizeTypesStandardE2V3 ... + VirtualMachineSizeTypesStandardE2V3 VirtualMachineSizeTypes = "Standard_E2_v3" + // VirtualMachineSizeTypesStandardE3216V3 ... + VirtualMachineSizeTypesStandardE3216V3 VirtualMachineSizeTypes = "Standard_E32-16_v3" + // VirtualMachineSizeTypesStandardE328sV3 ... + VirtualMachineSizeTypesStandardE328sV3 VirtualMachineSizeTypes = "Standard_E32-8s_v3" + // VirtualMachineSizeTypesStandardE32sV3 ... + VirtualMachineSizeTypesStandardE32sV3 VirtualMachineSizeTypes = "Standard_E32s_v3" + // VirtualMachineSizeTypesStandardE32V3 ... + VirtualMachineSizeTypesStandardE32V3 VirtualMachineSizeTypes = "Standard_E32_v3" + // VirtualMachineSizeTypesStandardE4sV3 ... + VirtualMachineSizeTypesStandardE4sV3 VirtualMachineSizeTypes = "Standard_E4s_v3" + // VirtualMachineSizeTypesStandardE4V3 ... + VirtualMachineSizeTypesStandardE4V3 VirtualMachineSizeTypes = "Standard_E4_v3" + // VirtualMachineSizeTypesStandardE6416sV3 ... + VirtualMachineSizeTypesStandardE6416sV3 VirtualMachineSizeTypes = "Standard_E64-16s_v3" + // VirtualMachineSizeTypesStandardE6432sV3 ... + VirtualMachineSizeTypesStandardE6432sV3 VirtualMachineSizeTypes = "Standard_E64-32s_v3" + // VirtualMachineSizeTypesStandardE64sV3 ... + VirtualMachineSizeTypesStandardE64sV3 VirtualMachineSizeTypes = "Standard_E64s_v3" + // VirtualMachineSizeTypesStandardE64V3 ... + VirtualMachineSizeTypesStandardE64V3 VirtualMachineSizeTypes = "Standard_E64_v3" + // VirtualMachineSizeTypesStandardE8sV3 ... + VirtualMachineSizeTypesStandardE8sV3 VirtualMachineSizeTypes = "Standard_E8s_v3" + // VirtualMachineSizeTypesStandardE8V3 ... + VirtualMachineSizeTypesStandardE8V3 VirtualMachineSizeTypes = "Standard_E8_v3" + // VirtualMachineSizeTypesStandardF1 ... + VirtualMachineSizeTypesStandardF1 VirtualMachineSizeTypes = "Standard_F1" + // VirtualMachineSizeTypesStandardF16 ... + VirtualMachineSizeTypesStandardF16 VirtualMachineSizeTypes = "Standard_F16" + // VirtualMachineSizeTypesStandardF16s ... + VirtualMachineSizeTypesStandardF16s VirtualMachineSizeTypes = "Standard_F16s" + // VirtualMachineSizeTypesStandardF16sV2 ... + VirtualMachineSizeTypesStandardF16sV2 VirtualMachineSizeTypes = "Standard_F16s_v2" + // VirtualMachineSizeTypesStandardF1s ... + VirtualMachineSizeTypesStandardF1s VirtualMachineSizeTypes = "Standard_F1s" + // VirtualMachineSizeTypesStandardF2 ... + VirtualMachineSizeTypesStandardF2 VirtualMachineSizeTypes = "Standard_F2" + // VirtualMachineSizeTypesStandardF2s ... + VirtualMachineSizeTypesStandardF2s VirtualMachineSizeTypes = "Standard_F2s" + // VirtualMachineSizeTypesStandardF2sV2 ... + VirtualMachineSizeTypesStandardF2sV2 VirtualMachineSizeTypes = "Standard_F2s_v2" + // VirtualMachineSizeTypesStandardF32sV2 ... + VirtualMachineSizeTypesStandardF32sV2 VirtualMachineSizeTypes = "Standard_F32s_v2" + // VirtualMachineSizeTypesStandardF4 ... + VirtualMachineSizeTypesStandardF4 VirtualMachineSizeTypes = "Standard_F4" + // VirtualMachineSizeTypesStandardF4s ... + VirtualMachineSizeTypesStandardF4s VirtualMachineSizeTypes = "Standard_F4s" + // VirtualMachineSizeTypesStandardF4sV2 ... + VirtualMachineSizeTypesStandardF4sV2 VirtualMachineSizeTypes = "Standard_F4s_v2" + // VirtualMachineSizeTypesStandardF64sV2 ... + VirtualMachineSizeTypesStandardF64sV2 VirtualMachineSizeTypes = "Standard_F64s_v2" + // VirtualMachineSizeTypesStandardF72sV2 ... + VirtualMachineSizeTypesStandardF72sV2 VirtualMachineSizeTypes = "Standard_F72s_v2" + // VirtualMachineSizeTypesStandardF8 ... + VirtualMachineSizeTypesStandardF8 VirtualMachineSizeTypes = "Standard_F8" + // VirtualMachineSizeTypesStandardF8s ... + VirtualMachineSizeTypesStandardF8s VirtualMachineSizeTypes = "Standard_F8s" + // VirtualMachineSizeTypesStandardF8sV2 ... + VirtualMachineSizeTypesStandardF8sV2 VirtualMachineSizeTypes = "Standard_F8s_v2" + // VirtualMachineSizeTypesStandardG1 ... + VirtualMachineSizeTypesStandardG1 VirtualMachineSizeTypes = "Standard_G1" + // VirtualMachineSizeTypesStandardG2 ... + VirtualMachineSizeTypesStandardG2 VirtualMachineSizeTypes = "Standard_G2" + // VirtualMachineSizeTypesStandardG3 ... + VirtualMachineSizeTypesStandardG3 VirtualMachineSizeTypes = "Standard_G3" + // VirtualMachineSizeTypesStandardG4 ... + VirtualMachineSizeTypesStandardG4 VirtualMachineSizeTypes = "Standard_G4" + // VirtualMachineSizeTypesStandardG5 ... + VirtualMachineSizeTypesStandardG5 VirtualMachineSizeTypes = "Standard_G5" + // VirtualMachineSizeTypesStandardGS1 ... + VirtualMachineSizeTypesStandardGS1 VirtualMachineSizeTypes = "Standard_GS1" + // VirtualMachineSizeTypesStandardGS2 ... + VirtualMachineSizeTypesStandardGS2 VirtualMachineSizeTypes = "Standard_GS2" + // VirtualMachineSizeTypesStandardGS3 ... + VirtualMachineSizeTypesStandardGS3 VirtualMachineSizeTypes = "Standard_GS3" + // VirtualMachineSizeTypesStandardGS4 ... + VirtualMachineSizeTypesStandardGS4 VirtualMachineSizeTypes = "Standard_GS4" + // VirtualMachineSizeTypesStandardGS44 ... + VirtualMachineSizeTypesStandardGS44 VirtualMachineSizeTypes = "Standard_GS4-4" + // VirtualMachineSizeTypesStandardGS48 ... + VirtualMachineSizeTypesStandardGS48 VirtualMachineSizeTypes = "Standard_GS4-8" + // VirtualMachineSizeTypesStandardGS5 ... + VirtualMachineSizeTypesStandardGS5 VirtualMachineSizeTypes = "Standard_GS5" + // VirtualMachineSizeTypesStandardGS516 ... + VirtualMachineSizeTypesStandardGS516 VirtualMachineSizeTypes = "Standard_GS5-16" + // VirtualMachineSizeTypesStandardGS58 ... + VirtualMachineSizeTypesStandardGS58 VirtualMachineSizeTypes = "Standard_GS5-8" + // VirtualMachineSizeTypesStandardH16 ... + VirtualMachineSizeTypesStandardH16 VirtualMachineSizeTypes = "Standard_H16" + // VirtualMachineSizeTypesStandardH16m ... + VirtualMachineSizeTypesStandardH16m VirtualMachineSizeTypes = "Standard_H16m" + // VirtualMachineSizeTypesStandardH16mr ... + VirtualMachineSizeTypesStandardH16mr VirtualMachineSizeTypes = "Standard_H16mr" + // VirtualMachineSizeTypesStandardH16r ... + VirtualMachineSizeTypesStandardH16r VirtualMachineSizeTypes = "Standard_H16r" + // VirtualMachineSizeTypesStandardH8 ... + VirtualMachineSizeTypesStandardH8 VirtualMachineSizeTypes = "Standard_H8" + // VirtualMachineSizeTypesStandardH8m ... + VirtualMachineSizeTypesStandardH8m VirtualMachineSizeTypes = "Standard_H8m" + // VirtualMachineSizeTypesStandardL16s ... + VirtualMachineSizeTypesStandardL16s VirtualMachineSizeTypes = "Standard_L16s" + // VirtualMachineSizeTypesStandardL32s ... + VirtualMachineSizeTypesStandardL32s VirtualMachineSizeTypes = "Standard_L32s" + // VirtualMachineSizeTypesStandardL4s ... + VirtualMachineSizeTypesStandardL4s VirtualMachineSizeTypes = "Standard_L4s" + // VirtualMachineSizeTypesStandardL8s ... + VirtualMachineSizeTypesStandardL8s VirtualMachineSizeTypes = "Standard_L8s" + // VirtualMachineSizeTypesStandardM12832ms ... + VirtualMachineSizeTypesStandardM12832ms VirtualMachineSizeTypes = "Standard_M128-32ms" + // VirtualMachineSizeTypesStandardM12864ms ... + VirtualMachineSizeTypesStandardM12864ms VirtualMachineSizeTypes = "Standard_M128-64ms" + // VirtualMachineSizeTypesStandardM128ms ... + VirtualMachineSizeTypesStandardM128ms VirtualMachineSizeTypes = "Standard_M128ms" + // VirtualMachineSizeTypesStandardM128s ... + VirtualMachineSizeTypesStandardM128s VirtualMachineSizeTypes = "Standard_M128s" + // VirtualMachineSizeTypesStandardM6416ms ... + VirtualMachineSizeTypesStandardM6416ms VirtualMachineSizeTypes = "Standard_M64-16ms" + // VirtualMachineSizeTypesStandardM6432ms ... + VirtualMachineSizeTypesStandardM6432ms VirtualMachineSizeTypes = "Standard_M64-32ms" + // VirtualMachineSizeTypesStandardM64ms ... + VirtualMachineSizeTypesStandardM64ms VirtualMachineSizeTypes = "Standard_M64ms" + // VirtualMachineSizeTypesStandardM64s ... + VirtualMachineSizeTypesStandardM64s VirtualMachineSizeTypes = "Standard_M64s" + // VirtualMachineSizeTypesStandardNC12 ... + VirtualMachineSizeTypesStandardNC12 VirtualMachineSizeTypes = "Standard_NC12" + // VirtualMachineSizeTypesStandardNC12sV2 ... + VirtualMachineSizeTypesStandardNC12sV2 VirtualMachineSizeTypes = "Standard_NC12s_v2" + // VirtualMachineSizeTypesStandardNC12sV3 ... + VirtualMachineSizeTypesStandardNC12sV3 VirtualMachineSizeTypes = "Standard_NC12s_v3" + // VirtualMachineSizeTypesStandardNC24 ... + VirtualMachineSizeTypesStandardNC24 VirtualMachineSizeTypes = "Standard_NC24" + // VirtualMachineSizeTypesStandardNC24r ... + VirtualMachineSizeTypesStandardNC24r VirtualMachineSizeTypes = "Standard_NC24r" + // VirtualMachineSizeTypesStandardNC24rsV2 ... + VirtualMachineSizeTypesStandardNC24rsV2 VirtualMachineSizeTypes = "Standard_NC24rs_v2" + // VirtualMachineSizeTypesStandardNC24rsV3 ... + VirtualMachineSizeTypesStandardNC24rsV3 VirtualMachineSizeTypes = "Standard_NC24rs_v3" + // VirtualMachineSizeTypesStandardNC24sV2 ... + VirtualMachineSizeTypesStandardNC24sV2 VirtualMachineSizeTypes = "Standard_NC24s_v2" + // VirtualMachineSizeTypesStandardNC24sV3 ... + VirtualMachineSizeTypesStandardNC24sV3 VirtualMachineSizeTypes = "Standard_NC24s_v3" + // VirtualMachineSizeTypesStandardNC6 ... + VirtualMachineSizeTypesStandardNC6 VirtualMachineSizeTypes = "Standard_NC6" + // VirtualMachineSizeTypesStandardNC6sV2 ... + VirtualMachineSizeTypesStandardNC6sV2 VirtualMachineSizeTypes = "Standard_NC6s_v2" + // VirtualMachineSizeTypesStandardNC6sV3 ... + VirtualMachineSizeTypesStandardNC6sV3 VirtualMachineSizeTypes = "Standard_NC6s_v3" + // VirtualMachineSizeTypesStandardND12s ... + VirtualMachineSizeTypesStandardND12s VirtualMachineSizeTypes = "Standard_ND12s" + // VirtualMachineSizeTypesStandardND24rs ... + VirtualMachineSizeTypesStandardND24rs VirtualMachineSizeTypes = "Standard_ND24rs" + // VirtualMachineSizeTypesStandardND24s ... + VirtualMachineSizeTypesStandardND24s VirtualMachineSizeTypes = "Standard_ND24s" + // VirtualMachineSizeTypesStandardND6s ... + VirtualMachineSizeTypesStandardND6s VirtualMachineSizeTypes = "Standard_ND6s" + // VirtualMachineSizeTypesStandardNV12 ... + VirtualMachineSizeTypesStandardNV12 VirtualMachineSizeTypes = "Standard_NV12" + // VirtualMachineSizeTypesStandardNV24 ... + VirtualMachineSizeTypesStandardNV24 VirtualMachineSizeTypes = "Standard_NV24" + // VirtualMachineSizeTypesStandardNV6 ... + VirtualMachineSizeTypesStandardNV6 VirtualMachineSizeTypes = "Standard_NV6" ) // PossibleVirtualMachineSizeTypesValues returns an array of possible values for the VirtualMachineSizeTypes const type. func PossibleVirtualMachineSizeTypesValues() []VirtualMachineSizeTypes { - return []VirtualMachineSizeTypes{BasicA0, BasicA1, BasicA2, BasicA3, BasicA4, StandardA0, StandardA1, StandardA10, StandardA11, StandardA1V2, StandardA2, StandardA2mV2, StandardA2V2, StandardA3, StandardA4, StandardA4mV2, StandardA4V2, StandardA5, StandardA6, StandardA7, StandardA8, StandardA8mV2, StandardA8V2, StandardA9, StandardB1ms, StandardB1s, StandardB2ms, StandardB2s, StandardB4ms, StandardB8ms, StandardD1, StandardD11, StandardD11V2, StandardD12, StandardD12V2, StandardD13, StandardD13V2, StandardD14, StandardD14V2, StandardD15V2, StandardD16sV3, StandardD16V3, StandardD1V2, StandardD2, StandardD2sV3, StandardD2V2, StandardD2V3, StandardD3, StandardD32sV3, StandardD32V3, StandardD3V2, StandardD4, StandardD4sV3, StandardD4V2, StandardD4V3, StandardD5V2, StandardD64sV3, StandardD64V3, StandardD8sV3, StandardD8V3, StandardDS1, StandardDS11, StandardDS11V2, StandardDS12, StandardDS12V2, StandardDS13, StandardDS132V2, StandardDS134V2, StandardDS13V2, StandardDS14, StandardDS144V2, StandardDS148V2, StandardDS14V2, StandardDS15V2, StandardDS1V2, StandardDS2, StandardDS2V2, StandardDS3, StandardDS3V2, StandardDS4, StandardDS4V2, StandardDS5V2, StandardE16sV3, StandardE16V3, StandardE2sV3, StandardE2V3, StandardE3216V3, StandardE328sV3, StandardE32sV3, StandardE32V3, StandardE4sV3, StandardE4V3, StandardE6416sV3, StandardE6432sV3, StandardE64sV3, StandardE64V3, StandardE8sV3, StandardE8V3, StandardF1, StandardF16, StandardF16s, StandardF16sV2, StandardF1s, StandardF2, StandardF2s, StandardF2sV2, StandardF32sV2, StandardF4, StandardF4s, StandardF4sV2, StandardF64sV2, StandardF72sV2, StandardF8, StandardF8s, StandardF8sV2, StandardG1, StandardG2, StandardG3, StandardG4, StandardG5, StandardGS1, StandardGS2, StandardGS3, StandardGS4, StandardGS44, StandardGS48, StandardGS5, StandardGS516, StandardGS58, StandardH16, StandardH16m, StandardH16mr, StandardH16r, StandardH8, StandardH8m, StandardL16s, StandardL32s, StandardL4s, StandardL8s, StandardM12832ms, StandardM12864ms, StandardM128ms, StandardM128s, StandardM6416ms, StandardM6432ms, StandardM64ms, StandardM64s, StandardNC12, StandardNC12sV2, StandardNC12sV3, StandardNC24, StandardNC24r, StandardNC24rsV2, StandardNC24rsV3, StandardNC24sV2, StandardNC24sV3, StandardNC6, StandardNC6sV2, StandardNC6sV3, StandardND12s, StandardND24rs, StandardND24s, StandardND6s, StandardNV12, StandardNV24, StandardNV6} + return []VirtualMachineSizeTypes{VirtualMachineSizeTypesBasicA0, VirtualMachineSizeTypesBasicA1, VirtualMachineSizeTypesBasicA2, VirtualMachineSizeTypesBasicA3, VirtualMachineSizeTypesBasicA4, VirtualMachineSizeTypesStandardA0, VirtualMachineSizeTypesStandardA1, VirtualMachineSizeTypesStandardA10, VirtualMachineSizeTypesStandardA11, VirtualMachineSizeTypesStandardA1V2, VirtualMachineSizeTypesStandardA2, VirtualMachineSizeTypesStandardA2mV2, VirtualMachineSizeTypesStandardA2V2, VirtualMachineSizeTypesStandardA3, VirtualMachineSizeTypesStandardA4, VirtualMachineSizeTypesStandardA4mV2, VirtualMachineSizeTypesStandardA4V2, VirtualMachineSizeTypesStandardA5, VirtualMachineSizeTypesStandardA6, VirtualMachineSizeTypesStandardA7, VirtualMachineSizeTypesStandardA8, VirtualMachineSizeTypesStandardA8mV2, VirtualMachineSizeTypesStandardA8V2, VirtualMachineSizeTypesStandardA9, VirtualMachineSizeTypesStandardB1ms, VirtualMachineSizeTypesStandardB1s, VirtualMachineSizeTypesStandardB2ms, VirtualMachineSizeTypesStandardB2s, VirtualMachineSizeTypesStandardB4ms, VirtualMachineSizeTypesStandardB8ms, VirtualMachineSizeTypesStandardD1, VirtualMachineSizeTypesStandardD11, VirtualMachineSizeTypesStandardD11V2, VirtualMachineSizeTypesStandardD12, VirtualMachineSizeTypesStandardD12V2, VirtualMachineSizeTypesStandardD13, VirtualMachineSizeTypesStandardD13V2, VirtualMachineSizeTypesStandardD14, VirtualMachineSizeTypesStandardD14V2, VirtualMachineSizeTypesStandardD15V2, VirtualMachineSizeTypesStandardD16sV3, VirtualMachineSizeTypesStandardD16V3, VirtualMachineSizeTypesStandardD1V2, VirtualMachineSizeTypesStandardD2, VirtualMachineSizeTypesStandardD2sV3, VirtualMachineSizeTypesStandardD2V2, VirtualMachineSizeTypesStandardD2V3, VirtualMachineSizeTypesStandardD3, VirtualMachineSizeTypesStandardD32sV3, VirtualMachineSizeTypesStandardD32V3, VirtualMachineSizeTypesStandardD3V2, VirtualMachineSizeTypesStandardD4, VirtualMachineSizeTypesStandardD4sV3, VirtualMachineSizeTypesStandardD4V2, VirtualMachineSizeTypesStandardD4V3, VirtualMachineSizeTypesStandardD5V2, VirtualMachineSizeTypesStandardD64sV3, VirtualMachineSizeTypesStandardD64V3, VirtualMachineSizeTypesStandardD8sV3, VirtualMachineSizeTypesStandardD8V3, VirtualMachineSizeTypesStandardDS1, VirtualMachineSizeTypesStandardDS11, VirtualMachineSizeTypesStandardDS11V2, VirtualMachineSizeTypesStandardDS12, VirtualMachineSizeTypesStandardDS12V2, VirtualMachineSizeTypesStandardDS13, VirtualMachineSizeTypesStandardDS132V2, VirtualMachineSizeTypesStandardDS134V2, VirtualMachineSizeTypesStandardDS13V2, VirtualMachineSizeTypesStandardDS14, VirtualMachineSizeTypesStandardDS144V2, VirtualMachineSizeTypesStandardDS148V2, VirtualMachineSizeTypesStandardDS14V2, VirtualMachineSizeTypesStandardDS15V2, VirtualMachineSizeTypesStandardDS1V2, VirtualMachineSizeTypesStandardDS2, VirtualMachineSizeTypesStandardDS2V2, VirtualMachineSizeTypesStandardDS3, VirtualMachineSizeTypesStandardDS3V2, VirtualMachineSizeTypesStandardDS4, VirtualMachineSizeTypesStandardDS4V2, VirtualMachineSizeTypesStandardDS5V2, VirtualMachineSizeTypesStandardE16sV3, VirtualMachineSizeTypesStandardE16V3, VirtualMachineSizeTypesStandardE2sV3, VirtualMachineSizeTypesStandardE2V3, VirtualMachineSizeTypesStandardE3216V3, VirtualMachineSizeTypesStandardE328sV3, VirtualMachineSizeTypesStandardE32sV3, VirtualMachineSizeTypesStandardE32V3, VirtualMachineSizeTypesStandardE4sV3, VirtualMachineSizeTypesStandardE4V3, VirtualMachineSizeTypesStandardE6416sV3, VirtualMachineSizeTypesStandardE6432sV3, VirtualMachineSizeTypesStandardE64sV3, VirtualMachineSizeTypesStandardE64V3, VirtualMachineSizeTypesStandardE8sV3, VirtualMachineSizeTypesStandardE8V3, VirtualMachineSizeTypesStandardF1, VirtualMachineSizeTypesStandardF16, VirtualMachineSizeTypesStandardF16s, VirtualMachineSizeTypesStandardF16sV2, VirtualMachineSizeTypesStandardF1s, VirtualMachineSizeTypesStandardF2, VirtualMachineSizeTypesStandardF2s, VirtualMachineSizeTypesStandardF2sV2, VirtualMachineSizeTypesStandardF32sV2, VirtualMachineSizeTypesStandardF4, VirtualMachineSizeTypesStandardF4s, VirtualMachineSizeTypesStandardF4sV2, VirtualMachineSizeTypesStandardF64sV2, VirtualMachineSizeTypesStandardF72sV2, VirtualMachineSizeTypesStandardF8, VirtualMachineSizeTypesStandardF8s, VirtualMachineSizeTypesStandardF8sV2, VirtualMachineSizeTypesStandardG1, VirtualMachineSizeTypesStandardG2, VirtualMachineSizeTypesStandardG3, VirtualMachineSizeTypesStandardG4, VirtualMachineSizeTypesStandardG5, VirtualMachineSizeTypesStandardGS1, VirtualMachineSizeTypesStandardGS2, VirtualMachineSizeTypesStandardGS3, VirtualMachineSizeTypesStandardGS4, VirtualMachineSizeTypesStandardGS44, VirtualMachineSizeTypesStandardGS48, VirtualMachineSizeTypesStandardGS5, VirtualMachineSizeTypesStandardGS516, VirtualMachineSizeTypesStandardGS58, VirtualMachineSizeTypesStandardH16, VirtualMachineSizeTypesStandardH16m, VirtualMachineSizeTypesStandardH16mr, VirtualMachineSizeTypesStandardH16r, VirtualMachineSizeTypesStandardH8, VirtualMachineSizeTypesStandardH8m, VirtualMachineSizeTypesStandardL16s, VirtualMachineSizeTypesStandardL32s, VirtualMachineSizeTypesStandardL4s, VirtualMachineSizeTypesStandardL8s, VirtualMachineSizeTypesStandardM12832ms, VirtualMachineSizeTypesStandardM12864ms, VirtualMachineSizeTypesStandardM128ms, VirtualMachineSizeTypesStandardM128s, VirtualMachineSizeTypesStandardM6416ms, VirtualMachineSizeTypesStandardM6432ms, VirtualMachineSizeTypesStandardM64ms, VirtualMachineSizeTypesStandardM64s, VirtualMachineSizeTypesStandardNC12, VirtualMachineSizeTypesStandardNC12sV2, VirtualMachineSizeTypesStandardNC12sV3, VirtualMachineSizeTypesStandardNC24, VirtualMachineSizeTypesStandardNC24r, VirtualMachineSizeTypesStandardNC24rsV2, VirtualMachineSizeTypesStandardNC24rsV3, VirtualMachineSizeTypesStandardNC24sV2, VirtualMachineSizeTypesStandardNC24sV3, VirtualMachineSizeTypesStandardNC6, VirtualMachineSizeTypesStandardNC6sV2, VirtualMachineSizeTypesStandardNC6sV3, VirtualMachineSizeTypesStandardND12s, VirtualMachineSizeTypesStandardND24rs, VirtualMachineSizeTypesStandardND24s, VirtualMachineSizeTypesStandardND6s, VirtualMachineSizeTypesStandardNV12, VirtualMachineSizeTypesStandardNV24, VirtualMachineSizeTypesStandardNV6} } // VMDiskTypes enumerates the values for vm disk types. @@ -1559,17 +1812,17 @@ func PossibleVMDiskTypesValues() []VMDiskTypes { type VMGuestPatchClassificationLinux string const ( - // Critical ... - Critical VMGuestPatchClassificationLinux = "Critical" - // Other ... - Other VMGuestPatchClassificationLinux = "Other" - // Security ... - Security VMGuestPatchClassificationLinux = "Security" + // VMGuestPatchClassificationLinuxCritical ... + VMGuestPatchClassificationLinuxCritical VMGuestPatchClassificationLinux = "Critical" + // VMGuestPatchClassificationLinuxOther ... + VMGuestPatchClassificationLinuxOther VMGuestPatchClassificationLinux = "Other" + // VMGuestPatchClassificationLinuxSecurity ... + VMGuestPatchClassificationLinuxSecurity VMGuestPatchClassificationLinux = "Security" ) // PossibleVMGuestPatchClassificationLinuxValues returns an array of possible values for the VMGuestPatchClassificationLinux const type. func PossibleVMGuestPatchClassificationLinuxValues() []VMGuestPatchClassificationLinux { - return []VMGuestPatchClassificationLinux{Critical, Other, Security} + return []VMGuestPatchClassificationLinux{VMGuestPatchClassificationLinuxCritical, VMGuestPatchClassificationLinuxOther, VMGuestPatchClassificationLinuxSecurity} } // VMGuestPatchClassificationWindows enumerates the values for vm guest patch classification windows. @@ -1622,17 +1875,17 @@ func PossibleVMGuestPatchRebootBehaviorValues() []VMGuestPatchRebootBehavior { type VMGuestPatchRebootSetting string const ( - // Always ... - Always VMGuestPatchRebootSetting = "Always" - // IfRequired ... - IfRequired VMGuestPatchRebootSetting = "IfRequired" - // Never ... - Never VMGuestPatchRebootSetting = "Never" + // VMGuestPatchRebootSettingAlways ... + VMGuestPatchRebootSettingAlways VMGuestPatchRebootSetting = "Always" + // VMGuestPatchRebootSettingIfRequired ... + VMGuestPatchRebootSettingIfRequired VMGuestPatchRebootSetting = "IfRequired" + // VMGuestPatchRebootSettingNever ... + VMGuestPatchRebootSettingNever VMGuestPatchRebootSetting = "Never" ) // PossibleVMGuestPatchRebootSettingValues returns an array of possible values for the VMGuestPatchRebootSetting const type. func PossibleVMGuestPatchRebootSettingValues() []VMGuestPatchRebootSetting { - return []VMGuestPatchRebootSetting{Always, IfRequired, Never} + return []VMGuestPatchRebootSetting{VMGuestPatchRebootSettingAlways, VMGuestPatchRebootSettingIfRequired, VMGuestPatchRebootSettingNever} } // VMGuestPatchRebootStatus enumerates the values for vm guest patch reboot status. @@ -1658,6 +1911,21 @@ func PossibleVMGuestPatchRebootStatusValues() []VMGuestPatchRebootStatus { return []VMGuestPatchRebootStatus{VMGuestPatchRebootStatusCompleted, VMGuestPatchRebootStatusFailed, VMGuestPatchRebootStatusNotNeeded, VMGuestPatchRebootStatusRequired, VMGuestPatchRebootStatusStarted, VMGuestPatchRebootStatusUnknown} } +// WindowsPatchAssessmentMode enumerates the values for windows patch assessment mode. +type WindowsPatchAssessmentMode string + +const ( + // WindowsPatchAssessmentModeAutomaticByPlatform ... + WindowsPatchAssessmentModeAutomaticByPlatform WindowsPatchAssessmentMode = "AutomaticByPlatform" + // WindowsPatchAssessmentModeImageDefault ... + WindowsPatchAssessmentModeImageDefault WindowsPatchAssessmentMode = "ImageDefault" +) + +// PossibleWindowsPatchAssessmentModeValues returns an array of possible values for the WindowsPatchAssessmentMode const type. +func PossibleWindowsPatchAssessmentModeValues() []WindowsPatchAssessmentMode { + return []WindowsPatchAssessmentMode{WindowsPatchAssessmentModeAutomaticByPlatform, WindowsPatchAssessmentModeImageDefault} +} + // WindowsVMGuestPatchMode enumerates the values for windows vm guest patch mode. type WindowsVMGuestPatchMode string diff --git a/services/compute/mgmt/2021-03-01/compute/galleries.go b/services/compute/mgmt/2021-03-01/compute/galleries.go index 75873554375b..1eb1d00701ba 100644 --- a/services/compute/mgmt/2021-03-01/compute/galleries.go +++ b/services/compute/mgmt/2021-03-01/compute/galleries.go @@ -70,7 +70,7 @@ func (client GalleriesClient) CreateOrUpdatePreparer(ctx context.Context, resour "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2019-12-01" + const APIVersion = "2020-09-30" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -150,7 +150,7 @@ func (client GalleriesClient) DeletePreparer(ctx context.Context, resourceGroupN "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2019-12-01" + const APIVersion = "2020-09-30" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -193,7 +193,8 @@ func (client GalleriesClient) DeleteResponder(resp *http.Response) (result autor // Parameters: // resourceGroupName - the name of the resource group. // galleryName - the name of the Shared Image Gallery. -func (client GalleriesClient) Get(ctx context.Context, resourceGroupName string, galleryName string) (result Gallery, err error) { +// selectParameter - the select expression to apply on the operation. +func (client GalleriesClient) Get(ctx context.Context, resourceGroupName string, galleryName string, selectParameter SelectPermissions) (result Gallery, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/GalleriesClient.Get") defer func() { @@ -204,7 +205,7 @@ func (client GalleriesClient) Get(ctx context.Context, resourceGroupName string, tracing.EndSpan(ctx, sc, err) }() } - req, err := client.GetPreparer(ctx, resourceGroupName, galleryName) + req, err := client.GetPreparer(ctx, resourceGroupName, galleryName, selectParameter) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "Get", nil, "Failure preparing request") return @@ -227,17 +228,20 @@ func (client GalleriesClient) Get(ctx context.Context, resourceGroupName string, } // GetPreparer prepares the Get request. -func (client GalleriesClient) GetPreparer(ctx context.Context, resourceGroupName string, galleryName string) (*http.Request, error) { +func (client GalleriesClient) GetPreparer(ctx context.Context, resourceGroupName string, galleryName string, selectParameter SelectPermissions) (*http.Request, error) { pathParameters := map[string]interface{}{ "galleryName": autorest.Encode("path", galleryName), "resourceGroupName": autorest.Encode("path", resourceGroupName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2019-12-01" + const APIVersion = "2020-09-30" queryParameters := map[string]interface{}{ "api-version": APIVersion, } + if len(string(selectParameter)) > 0 { + queryParameters["$select"] = autorest.Encode("query", selectParameter) + } preparer := autorest.CreatePreparer( autorest.AsGet(), @@ -310,7 +314,7 @@ func (client GalleriesClient) ListPreparer(ctx context.Context) (*http.Request, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2019-12-01" + const APIVersion = "2020-09-30" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -426,7 +430,7 @@ func (client GalleriesClient) ListByResourceGroupPreparer(ctx context.Context, r "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2019-12-01" + const APIVersion = "2020-09-30" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -534,7 +538,7 @@ func (client GalleriesClient) UpdatePreparer(ctx context.Context, resourceGroupN "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2019-12-01" + const APIVersion = "2020-09-30" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/services/compute/mgmt/2021-03-01/compute/galleryapplications.go b/services/compute/mgmt/2021-03-01/compute/galleryapplications.go index 9f50ac068e76..2bca9cf6aa96 100644 --- a/services/compute/mgmt/2021-03-01/compute/galleryapplications.go +++ b/services/compute/mgmt/2021-03-01/compute/galleryapplications.go @@ -75,7 +75,7 @@ func (client GalleryApplicationsClient) CreateOrUpdatePreparer(ctx context.Conte "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2019-12-01" + const APIVersion = "2020-09-30" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -158,7 +158,7 @@ func (client GalleryApplicationsClient) DeletePreparer(ctx context.Context, reso "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2019-12-01" + const APIVersion = "2020-09-30" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -245,7 +245,7 @@ func (client GalleryApplicationsClient) GetPreparer(ctx context.Context, resourc "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2019-12-01" + const APIVersion = "2020-09-30" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -327,7 +327,7 @@ func (client GalleryApplicationsClient) ListByGalleryPreparer(ctx context.Contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2019-12-01" + const APIVersion = "2020-09-30" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -439,7 +439,7 @@ func (client GalleryApplicationsClient) UpdatePreparer(ctx context.Context, reso "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2019-12-01" + const APIVersion = "2020-09-30" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/services/compute/mgmt/2021-03-01/compute/galleryapplicationversions.go b/services/compute/mgmt/2021-03-01/compute/galleryapplicationversions.go index a5b0fdf91e75..e7e64d0acb54 100644 --- a/services/compute/mgmt/2021-03-01/compute/galleryapplicationversions.go +++ b/services/compute/mgmt/2021-03-01/compute/galleryapplicationversions.go @@ -94,7 +94,7 @@ func (client GalleryApplicationVersionsClient) CreateOrUpdatePreparer(ctx contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2019-12-01" + const APIVersion = "2020-09-30" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -179,7 +179,7 @@ func (client GalleryApplicationVersionsClient) DeletePreparer(ctx context.Contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2019-12-01" + const APIVersion = "2020-09-30" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -269,7 +269,7 @@ func (client GalleryApplicationVersionsClient) GetPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2019-12-01" + const APIVersion = "2020-09-30" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -356,7 +356,7 @@ func (client GalleryApplicationVersionsClient) ListByGalleryApplicationPreparer( "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2019-12-01" + const APIVersion = "2020-09-30" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -470,7 +470,7 @@ func (client GalleryApplicationVersionsClient) UpdatePreparer(ctx context.Contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2019-12-01" + const APIVersion = "2020-09-30" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/services/compute/mgmt/2021-03-01/compute/galleryimages.go b/services/compute/mgmt/2021-03-01/compute/galleryimages.go index 98858ff6c7e3..880db63c29e6 100644 --- a/services/compute/mgmt/2021-03-01/compute/galleryimages.go +++ b/services/compute/mgmt/2021-03-01/compute/galleryimages.go @@ -31,11 +31,11 @@ func NewGalleryImagesClientWithBaseURI(baseURI string, subscriptionID string) Ga return GalleryImagesClient{NewWithBaseURI(baseURI, subscriptionID)} } -// CreateOrUpdate create or update a gallery Image Definition. +// CreateOrUpdate create or update a gallery image definition. // Parameters: // resourceGroupName - the name of the resource group. // galleryName - the name of the Shared Image Gallery in which the Image Definition is to be created. -// galleryImageName - the name of the gallery Image Definition to be created or updated. The allowed characters +// galleryImageName - the name of the gallery image definition to be created or updated. The allowed characters // are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 // characters. // galleryImage - parameters supplied to the create or update gallery image operation. @@ -86,7 +86,7 @@ func (client GalleryImagesClient) CreateOrUpdatePreparer(ctx context.Context, re "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2019-12-01" + const APIVersion = "2020-09-30" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -132,7 +132,7 @@ func (client GalleryImagesClient) CreateOrUpdateResponder(resp *http.Response) ( // Parameters: // resourceGroupName - the name of the resource group. // galleryName - the name of the Shared Image Gallery in which the Image Definition is to be deleted. -// galleryImageName - the name of the gallery Image Definition to be deleted. +// galleryImageName - the name of the gallery image definition to be deleted. func (client GalleryImagesClient) Delete(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string) (result GalleryImagesDeleteFuture, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/GalleryImagesClient.Delete") @@ -168,7 +168,7 @@ func (client GalleryImagesClient) DeletePreparer(ctx context.Context, resourceGr "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2019-12-01" + const APIVersion = "2020-09-30" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -207,11 +207,11 @@ func (client GalleryImagesClient) DeleteResponder(resp *http.Response) (result a return } -// Get retrieves information about a gallery Image Definition. +// Get retrieves information about a gallery image definition. // Parameters: // resourceGroupName - the name of the resource group. // galleryName - the name of the Shared Image Gallery from which the Image Definitions are to be retrieved. -// galleryImageName - the name of the gallery Image Definition to be retrieved. +// galleryImageName - the name of the gallery image definition to be retrieved. func (client GalleryImagesClient) Get(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string) (result GalleryImage, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/GalleryImagesClient.Get") @@ -254,7 +254,7 @@ func (client GalleryImagesClient) GetPreparer(ctx context.Context, resourceGroup "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2019-12-01" + const APIVersion = "2020-09-30" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -285,7 +285,7 @@ func (client GalleryImagesClient) GetResponder(resp *http.Response) (result Gall return } -// ListByGallery list gallery Image Definitions in a gallery. +// ListByGallery list gallery image definitions in a gallery. // Parameters: // resourceGroupName - the name of the resource group. // galleryName - the name of the Shared Image Gallery from which Image Definitions are to be listed. @@ -335,7 +335,7 @@ func (client GalleryImagesClient) ListByGalleryPreparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2019-12-01" + const APIVersion = "2020-09-30" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -403,11 +403,11 @@ func (client GalleryImagesClient) ListByGalleryComplete(ctx context.Context, res return } -// Update update a gallery Image Definition. +// Update update a gallery image definition. // Parameters: // resourceGroupName - the name of the resource group. // galleryName - the name of the Shared Image Gallery in which the Image Definition is to be updated. -// galleryImageName - the name of the gallery Image Definition to be updated. The allowed characters are +// galleryImageName - the name of the gallery image definition to be updated. The allowed characters are // alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 // characters. // galleryImage - parameters supplied to the update gallery image operation. @@ -446,7 +446,7 @@ func (client GalleryImagesClient) UpdatePreparer(ctx context.Context, resourceGr "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2019-12-01" + const APIVersion = "2020-09-30" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/services/compute/mgmt/2021-03-01/compute/galleryimageversions.go b/services/compute/mgmt/2021-03-01/compute/galleryimageversions.go index 64ab355fd855..cc80dc96d409 100644 --- a/services/compute/mgmt/2021-03-01/compute/galleryimageversions.go +++ b/services/compute/mgmt/2021-03-01/compute/galleryimageversions.go @@ -32,15 +32,15 @@ func NewGalleryImageVersionsClientWithBaseURI(baseURI string, subscriptionID str return GalleryImageVersionsClient{NewWithBaseURI(baseURI, subscriptionID)} } -// CreateOrUpdate create or update a gallery Image Version. +// CreateOrUpdate create or update a gallery image version. // Parameters: // resourceGroupName - the name of the resource group. // galleryName - the name of the Shared Image Gallery in which the Image Definition resides. -// galleryImageName - the name of the gallery Image Definition in which the Image Version is to be created. -// galleryImageVersionName - the name of the gallery Image Version to be created. Needs to follow semantic +// galleryImageName - the name of the gallery image definition in which the Image Version is to be created. +// galleryImageVersionName - the name of the gallery image version to be created. Needs to follow semantic // version name pattern: The allowed characters are digit and period. Digits must be within the range of a // 32-bit integer. Format: .. -// galleryImageVersion - parameters supplied to the create or update gallery Image Version operation. +// galleryImageVersion - parameters supplied to the create or update gallery image version operation. func (client GalleryImageVersionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, galleryImageVersionName string, galleryImageVersion GalleryImageVersion) (result GalleryImageVersionsCreateOrUpdateFuture, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/GalleryImageVersionsClient.CreateOrUpdate") @@ -84,7 +84,7 @@ func (client GalleryImageVersionsClient) CreateOrUpdatePreparer(ctx context.Cont "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2019-12-01" + const APIVersion = "2020-09-30" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -126,12 +126,12 @@ func (client GalleryImageVersionsClient) CreateOrUpdateResponder(resp *http.Resp return } -// Delete delete a gallery Image Version. +// Delete delete a gallery image version. // Parameters: // resourceGroupName - the name of the resource group. // galleryName - the name of the Shared Image Gallery in which the Image Definition resides. -// galleryImageName - the name of the gallery Image Definition in which the Image Version resides. -// galleryImageVersionName - the name of the gallery Image Version to be deleted. +// galleryImageName - the name of the gallery image definition in which the Image Version resides. +// galleryImageVersionName - the name of the gallery image version to be deleted. func (client GalleryImageVersionsClient) Delete(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, galleryImageVersionName string) (result GalleryImageVersionsDeleteFuture, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/GalleryImageVersionsClient.Delete") @@ -168,7 +168,7 @@ func (client GalleryImageVersionsClient) DeletePreparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2019-12-01" + const APIVersion = "2020-09-30" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -207,12 +207,12 @@ func (client GalleryImageVersionsClient) DeleteResponder(resp *http.Response) (r return } -// Get retrieves information about a gallery Image Version. +// Get retrieves information about a gallery image version. // Parameters: // resourceGroupName - the name of the resource group. // galleryName - the name of the Shared Image Gallery in which the Image Definition resides. -// galleryImageName - the name of the gallery Image Definition in which the Image Version resides. -// galleryImageVersionName - the name of the gallery Image Version to be retrieved. +// galleryImageName - the name of the gallery image definition in which the Image Version resides. +// galleryImageVersionName - the name of the gallery image version to be retrieved. // expand - the expand expression to apply on the operation. func (client GalleryImageVersionsClient) Get(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, galleryImageVersionName string, expand ReplicationStatusTypes) (result GalleryImageVersion, err error) { if tracing.IsEnabled() { @@ -257,7 +257,7 @@ func (client GalleryImageVersionsClient) GetPreparer(ctx context.Context, resour "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2019-12-01" + const APIVersion = "2020-09-30" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -291,7 +291,7 @@ func (client GalleryImageVersionsClient) GetResponder(resp *http.Response) (resu return } -// ListByGalleryImage list gallery Image Versions in a gallery Image Definition. +// ListByGalleryImage list gallery image versions in a gallery image definition. // Parameters: // resourceGroupName - the name of the resource group. // galleryName - the name of the Shared Image Gallery in which the Image Definition resides. @@ -344,7 +344,7 @@ func (client GalleryImageVersionsClient) ListByGalleryImagePreparer(ctx context. "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2019-12-01" + const APIVersion = "2020-09-30" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -412,15 +412,15 @@ func (client GalleryImageVersionsClient) ListByGalleryImageComplete(ctx context. return } -// Update update a gallery Image Version. +// Update update a gallery image version. // Parameters: // resourceGroupName - the name of the resource group. // galleryName - the name of the Shared Image Gallery in which the Image Definition resides. -// galleryImageName - the name of the gallery Image Definition in which the Image Version is to be updated. -// galleryImageVersionName - the name of the gallery Image Version to be updated. Needs to follow semantic +// galleryImageName - the name of the gallery image definition in which the Image Version is to be updated. +// galleryImageVersionName - the name of the gallery image version to be updated. Needs to follow semantic // version name pattern: The allowed characters are digit and period. Digits must be within the range of a // 32-bit integer. Format: .. -// galleryImageVersion - parameters supplied to the update gallery Image Version operation. +// galleryImageVersion - parameters supplied to the update gallery image version operation. func (client GalleryImageVersionsClient) Update(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, galleryImageVersionName string, galleryImageVersion GalleryImageVersionUpdate) (result GalleryImageVersionsUpdateFuture, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/GalleryImageVersionsClient.Update") @@ -457,7 +457,7 @@ func (client GalleryImageVersionsClient) UpdatePreparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2019-12-01" + const APIVersion = "2020-09-30" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/services/compute/mgmt/2021-03-01/compute/gallerysharingprofile.go b/services/compute/mgmt/2021-03-01/compute/gallerysharingprofile.go new file mode 100644 index 000000000000..244acc67acaf --- /dev/null +++ b/services/compute/mgmt/2021-03-01/compute/gallerysharingprofile.go @@ -0,0 +1,113 @@ +package compute + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// GallerySharingProfileClient is the compute Client +type GallerySharingProfileClient struct { + BaseClient +} + +// NewGallerySharingProfileClient creates an instance of the GallerySharingProfileClient client. +func NewGallerySharingProfileClient(subscriptionID string) GallerySharingProfileClient { + return NewGallerySharingProfileClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewGallerySharingProfileClientWithBaseURI creates an instance of the GallerySharingProfileClient client using a +// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, +// Azure stack). +func NewGallerySharingProfileClientWithBaseURI(baseURI string, subscriptionID string) GallerySharingProfileClient { + return GallerySharingProfileClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Update update sharing profile of a gallery. +// Parameters: +// resourceGroupName - the name of the resource group. +// galleryName - the name of the Shared Image Gallery. +// sharingUpdate - parameters supplied to the update gallery sharing profile. +func (client GallerySharingProfileClient) Update(ctx context.Context, resourceGroupName string, galleryName string, sharingUpdate SharingUpdate) (result GallerySharingProfileUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/GallerySharingProfileClient.Update") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdatePreparer(ctx, resourceGroupName, galleryName, sharingUpdate) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.GallerySharingProfileClient", "Update", nil, "Failure preparing request") + return + } + + result, err = client.UpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.GallerySharingProfileClient", "Update", nil, "Failure sending request") + return + } + + return +} + +// UpdatePreparer prepares the Update request. +func (client GallerySharingProfileClient) UpdatePreparer(ctx context.Context, resourceGroupName string, galleryName string, sharingUpdate SharingUpdate) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "galleryName": autorest.Encode("path", galleryName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-30" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/share", pathParameters), + autorest.WithJSON(sharingUpdate), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateSender sends the Update request. The method will close the +// http.Response Body if it receives an error. +func (client GallerySharingProfileClient) UpdateSender(req *http.Request) (future GallerySharingProfileUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// UpdateResponder handles the response to the Update request. The method always +// closes the http.Response Body. +func (client GallerySharingProfileClient) UpdateResponder(resp *http.Response) (result SharingUpdate, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/compute/mgmt/2021-03-01/compute/images.go b/services/compute/mgmt/2021-03-01/compute/images.go index 67ce0b343c7f..49c99e577eab 100644 --- a/services/compute/mgmt/2021-03-01/compute/images.go +++ b/services/compute/mgmt/2021-03-01/compute/images.go @@ -69,7 +69,7 @@ func (client ImagesClient) CreateOrUpdatePreparer(ctx context.Context, resourceG "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -149,7 +149,7 @@ func (client ImagesClient) DeletePreparer(ctx context.Context, resourceGroupName "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -234,7 +234,7 @@ func (client ImagesClient) GetPreparer(ctx context.Context, resourceGroupName st "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -314,7 +314,7 @@ func (client ImagesClient) ListPreparer(ctx context.Context) (*http.Request, err "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -430,7 +430,7 @@ func (client ImagesClient) ListByResourceGroupPreparer(ctx context.Context, reso "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -537,7 +537,7 @@ func (client ImagesClient) UpdatePreparer(ctx context.Context, resourceGroupName "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/services/compute/mgmt/2021-03-01/compute/loganalytics.go b/services/compute/mgmt/2021-03-01/compute/loganalytics.go index e6b75efaf96f..08e069a1fc71 100644 --- a/services/compute/mgmt/2021-03-01/compute/loganalytics.go +++ b/services/compute/mgmt/2021-03-01/compute/loganalytics.go @@ -75,7 +75,7 @@ func (client LogAnalyticsClient) ExportRequestRateByIntervalPreparer(ctx context "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -161,7 +161,7 @@ func (client LogAnalyticsClient) ExportThrottledRequestsPreparer(ctx context.Con "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/services/compute/mgmt/2021-03-01/compute/models.go b/services/compute/mgmt/2021-03-01/compute/models.go index dd2bced6f7d8..e5be0f2f6e62 100644 --- a/services/compute/mgmt/2021-03-01/compute/models.go +++ b/services/compute/mgmt/2021-03-01/compute/models.go @@ -28,6 +28,12 @@ type AccessURI struct { AccessSAS *string `json:"accessSAS,omitempty"` } +// MarshalJSON is the custom marshaler for AccessURI. +func (au AccessURI) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AdditionalCapabilities enables or disables a capability on the virtual machine or virtual machine scale // set. type AdditionalCapabilities struct { @@ -39,11 +45,11 @@ type AdditionalCapabilities struct { // Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, // and the pass in which the content is applied. type AdditionalUnattendContent struct { - // PassName - The pass name. Currently, the only allowable value is OobeSystem. Possible values include: 'OobeSystem' + // PassName - The pass name. Currently, the only allowable value is OobeSystem. Possible values include: 'PassNamesOobeSystem' PassName PassNames `json:"passName,omitempty"` - // ComponentName - The component name. Currently, the only allowable value is Microsoft-Windows-Shell-Setup. Possible values include: 'MicrosoftWindowsShellSetup' + // ComponentName - The component name. Currently, the only allowable value is Microsoft-Windows-Shell-Setup. Possible values include: 'ComponentNamesMicrosoftWindowsShellSetup' ComponentName ComponentNames `json:"componentName,omitempty"` - // SettingName - Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Possible values include: 'AutoLogon', 'FirstLogonCommands' + // SettingName - Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Possible values include: 'SettingNamesAutoLogon', 'SettingNamesFirstLogonCommands' SettingName SettingNames `json:"settingName,omitempty"` // Content - Specifies the XML formatted content that is added to the unattend.xml file for the specified path and component. The XML must be less than 4KB and must include the root element for the setting or feature that is being inserted. Content *string `json:"content,omitempty"` @@ -104,14 +110,12 @@ type AutomaticRepairsPolicy struct { // AvailabilitySet specifies information about the availability set that the virtual machine should be // assigned to. Virtual machines specified in the same availability set are allocated to different nodes to -// maximize availability. For more information about availability sets, see [Manage the availability of -// virtual -// machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). -//

For more information on Azure planned maintenance, see [Planned maintenance for virtual -// machines in -// Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) -//

Currently, a VM can only be added to availability set at creation time. An existing VM cannot -// be added to an availability set. +// maximize availability. For more information about availability sets, see [Availability sets +// overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview).

For +// more information on Azure planned maintenance, see [Maintenance and updates for Virtual Machines in +// Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates)

Currently, a +// VM can only be added to availability set at creation time. An existing VM cannot be added to an +// availability set. type AvailabilitySet struct { autorest.Response `json:"-"` *AvailabilitySetProperties `json:"properties,omitempty"` @@ -504,6 +508,12 @@ type AvailablePatchSummary struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for AvailablePatchSummary. +func (aps AvailablePatchSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BillingProfile specifies the billing related details of a Azure Spot VM or VMSS.

Minimum // api-version: 2019-03-01. type BillingProfile struct { @@ -531,6 +541,12 @@ type BootDiagnosticsInstanceView struct { Status *InstanceViewStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for BootDiagnosticsInstanceView. +func (bdiv BootDiagnosticsInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from the Compute service. type CloudError struct { Error *APIError `json:"error,omitempty"` @@ -841,7 +857,7 @@ type CloudServiceProperties struct { // AllowModelOverride - (Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override the role instance count and vm size specified in the .cscfg and .csdef respectively. // The default value is `false`. AllowModelOverride *bool `json:"allowModelOverride,omitempty"` - // UpgradeMode - Possible values include: 'Auto', 'Manual', 'Simultaneous' + // UpgradeMode - Possible values include: 'CloudServiceUpgradeModeAuto', 'CloudServiceUpgradeModeManual', 'CloudServiceUpgradeModeSimultaneous' UpgradeMode CloudServiceUpgradeMode `json:"upgradeMode,omitempty"` RoleProfile *CloudServiceRoleProfile `json:"roleProfile,omitempty"` OsProfile *CloudServiceOsProfile `json:"osProfile,omitempty"` @@ -1240,6 +1256,12 @@ type CloudServiceRoleProperties struct { UniqueID *string `json:"uniqueId,omitempty"` } +// MarshalJSON is the custom marshaler for CloudServiceRoleProperties. +func (csrp CloudServiceRoleProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudServiceRoleSku describes the cloud service role sku. type CloudServiceRoleSku struct { // Name - The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete and recreate the cloud service or move back to the old sku. @@ -1670,7 +1692,7 @@ type CloudServiceVaultSecretGroup struct { // CreationData data used when creating a disk. type CreationData struct { - // CreateOption - This enumerates the possible sources of a disk's creation. Possible values include: 'Empty', 'Attach', 'FromImage', 'Import', 'Copy', 'Restore', 'Upload' + // CreateOption - This enumerates the possible sources of a disk's creation. Possible values include: 'DiskCreateOptionEmpty', 'DiskCreateOptionAttach', 'DiskCreateOptionFromImage', 'DiskCreateOptionImport', 'DiskCreateOptionCopy', 'DiskCreateOptionRestore', 'DiskCreateOptionUpload' CreateOption DiskCreateOption `json:"createOption,omitempty"` // StorageAccountID - Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk. StorageAccountID *string `json:"storageAccountId,omitempty"` @@ -1746,8 +1768,10 @@ type DataDisk struct { DiskIOPSReadWrite *int64 `json:"diskIOPSReadWrite,omitempty"` // DiskMBpsReadWrite - READ-ONLY; Specifies the bandwidth in MB per second for the managed disk when StorageAccountType is UltraSSD_LRS. Returned only for VirtualMachine ScaleSet VM disks. Can be updated only via updates to the VirtualMachine Scale Set. DiskMBpsReadWrite *int64 `json:"diskMBpsReadWrite,omitempty"` - // DetachOption - Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from the virtual machine. Supported values: **ForceDetach**.

detachOption: **ForceDetach** is applicable only for managed data disks. If a previous detachment attempt of the data disk did not complete due to an unexpected failure from the virtual machine and the disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior.

This feature is still in preview mode and is not supported for VirtualMachineScaleSet. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'. Possible values include: 'ForceDetach' + // DetachOption - Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from the virtual machine. Supported values: **ForceDetach**.

detachOption: **ForceDetach** is applicable only for managed data disks. If a previous detachment attempt of the data disk did not complete due to an unexpected failure from the virtual machine and the disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior.

This feature is still in preview mode and is not supported for VirtualMachineScaleSet. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'. Possible values include: 'DiskDetachOptionTypesForceDetach' DetachOption DiskDetachOptionTypes `json:"detachOption,omitempty"` + // DeleteOption - Specifies whether data disk should be deleted or detached upon VM deletion.

Possible values:

**Delete** If this value is used, the data disk is deleted when VM is deleted.

**Detach** If this value is used, the data disk is retained after VM is deleted.

The default value is set to **detach**. Possible values include: 'DiskDeleteOptionTypesDelete', 'DiskDeleteOptionTypesDetach' + DeleteOption DiskDeleteOptionTypes `json:"deleteOption,omitempty"` } // MarshalJSON is the custom marshaler for DataDisk. @@ -1786,6 +1810,9 @@ func (dd DataDisk) MarshalJSON() ([]byte, error) { if dd.DetachOption != "" { objectMap["detachOption"] = dd.DetachOption } + if dd.DeleteOption != "" { + objectMap["deleteOption"] = dd.DeleteOption + } return json.Marshal(objectMap) } @@ -1795,6 +1822,12 @@ type DataDiskImage struct { Lun *int32 `json:"lun,omitempty"` } +// MarshalJSON is the custom marshaler for DataDiskImage. +func (ddi DataDiskImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DataDiskImageEncryption contains encryption settings for a data disk image. type DataDiskImageEncryption struct { // Lun - This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine. @@ -2731,9 +2764,9 @@ type DiagnosticsProfile struct { // DiffDiskSettings describes the parameters of ephemeral disk settings that can be specified for operating // system disk.

NOTE: The ephemeral disk settings can only be specified for managed disk. type DiffDiskSettings struct { - // Option - Specifies the ephemeral disk settings for operating system disk. Possible values include: 'Local' + // Option - Specifies the ephemeral disk settings for operating system disk. Possible values include: 'DiffDiskOptionsLocal' Option DiffDiskOptions `json:"option,omitempty"` - // Placement - Specifies the ephemeral disk placement for operating system disk.

Possible values are:

**CacheDisk**

**ResourceDisk**

Default: **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk** is used.

Refer to VM size documentation for Windows VM at https://docs.microsoft.com/en-us/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/en-us/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk' + // Placement - Specifies the ephemeral disk placement for operating system disk.

Possible values are:

**CacheDisk**

**ResourceDisk**

Default: **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk** is used.

Refer to VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Possible values include: 'DiffDiskPlacementCacheDisk', 'DiffDiskPlacementResourceDisk' Placement DiffDiskPlacement `json:"placement,omitempty"` } @@ -3384,6 +3417,12 @@ type DiskAccessProperties struct { TimeCreated *date.Time `json:"timeCreated,omitempty"` } +// MarshalJSON is the custom marshaler for DiskAccessProperties. +func (dap DiskAccessProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DiskAccessUpdate used for updating a disk access resource. type DiskAccessUpdate struct { // Tags - Resource tags @@ -3879,7 +3918,7 @@ func (desu *DiskEncryptionSetUpdate) UnmarshalJSON(body []byte) error { // DiskEncryptionSetUpdateProperties disk encryption set resource update properties. type DiskEncryptionSetUpdateProperties struct { - // EncryptionType - Possible values include: 'EncryptionAtRestWithCustomerKey', 'EncryptionAtRestWithPlatformAndCustomerKeys' + // EncryptionType - Possible values include: 'DiskEncryptionSetTypeEncryptionAtRestWithCustomerKey', 'DiskEncryptionSetTypeEncryptionAtRestWithPlatformAndCustomerKeys' EncryptionType DiskEncryptionSetType `json:"encryptionType,omitempty"` ActiveKey *KeyForDiskEncryptionSet `json:"activeKey,omitempty"` // RotationToLatestKeyVersionEnabled - Set this flag to true to enable auto-updating of this disk encryption set to the latest key version. @@ -4065,9 +4104,9 @@ func NewDiskListPage(cur DiskList, getNextPage func(context.Context, DiskList) ( type DiskProperties struct { // TimeCreated - READ-ONLY; The time when the disk was created. TimeCreated *date.Time `json:"timeCreated,omitempty"` - // OsType - The Operating System type. Possible values include: 'Windows', 'Linux' + // OsType - The Operating System type. Possible values include: 'OperatingSystemTypesWindows', 'OperatingSystemTypesLinux' OsType OperatingSystemTypes `json:"osType,omitempty"` - // HyperVGeneration - The hypervisor generation of the Virtual Machine. Applicable to OS disks only. Possible values include: 'V1', 'V2' + // HyperVGeneration - The hypervisor generation of the Virtual Machine. Applicable to OS disks only. Possible values include: 'HyperVGenerationV1', 'HyperVGenerationV2' HyperVGeneration HyperVGeneration `json:"hyperVGeneration,omitempty"` // PurchasePlan - Purchase plan information for the the image from which the OS disk was created. E.g. - {name: 2019-Datacenter, publisher: MicrosoftWindowsServer, product: WindowsServer} PurchasePlan *PurchasePlan `json:"purchasePlan,omitempty"` @@ -4091,7 +4130,7 @@ type DiskProperties struct { DiskIOPSReadOnly *int64 `json:"diskIOPSReadOnly,omitempty"` // DiskMBpsReadOnly - The total throughput (MBps) that will be allowed across all VMs mounting the shared disk as ReadOnly. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10. DiskMBpsReadOnly *int64 `json:"diskMBpsReadOnly,omitempty"` - // DiskState - The state of the disk. Possible values include: 'Unattached', 'Attached', 'Reserved', 'ActiveSAS', 'ReadyToUpload', 'ActiveUpload' + // DiskState - The state of the disk. Possible values include: 'DiskStateUnattached', 'DiskStateAttached', 'DiskStateReserved', 'DiskStateActiveSAS', 'DiskStateReadyToUpload', 'DiskStateActiveUpload' DiskState DiskState `json:"diskState,omitempty"` // Encryption - Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys. Encryption *Encryption `json:"encryption,omitempty"` @@ -4099,7 +4138,7 @@ type DiskProperties struct { MaxShares *int32 `json:"maxShares,omitempty"` // ShareInfo - READ-ONLY; Details of the list of all VMs that have the disk attached. maxShares should be set to a value greater than one for disks to allow attaching them to multiple VMs. ShareInfo *[]ShareInfoElement `json:"shareInfo,omitempty"` - // NetworkAccessPolicy - Possible values include: 'AllowAll', 'AllowPrivate', 'DenyAll' + // NetworkAccessPolicy - Possible values include: 'NetworkAccessPolicyAllowAll', 'NetworkAccessPolicyAllowPrivate', 'NetworkAccessPolicyDenyAll' NetworkAccessPolicy NetworkAccessPolicy `json:"networkAccessPolicy,omitempty"` // DiskAccessID - ARM id of the DiskAccess resource for using private endpoints on disks. DiskAccessID *string `json:"diskAccessId,omitempty"` @@ -4415,9 +4454,9 @@ type DiskRestorePointProperties struct { TimeCreated *date.Time `json:"timeCreated,omitempty"` // SourceResourceID - READ-ONLY; arm id of source disk SourceResourceID *string `json:"sourceResourceId,omitempty"` - // OsType - READ-ONLY; The Operating System type. Possible values include: 'Windows', 'Linux' + // OsType - READ-ONLY; The Operating System type. Possible values include: 'OperatingSystemTypesWindows', 'OperatingSystemTypesLinux' OsType OperatingSystemTypes `json:"osType,omitempty"` - // HyperVGeneration - The hypervisor generation of the Virtual Machine. Applicable to OS disks only. Possible values include: 'V1', 'V2' + // HyperVGeneration - The hypervisor generation of the Virtual Machine. Applicable to OS disks only. Possible values include: 'HyperVGenerationV1', 'HyperVGenerationV2' HyperVGeneration HyperVGeneration `json:"hyperVGeneration,omitempty"` // PurchasePlan - Purchase plan information for the the image from which the OS disk was created. PurchasePlan *PurchasePlan `json:"purchasePlan,omitempty"` @@ -4527,7 +4566,7 @@ func (future *DisksDeleteFuture) result(client DisksClient) (ar autorest.Respons // DiskSecurityProfile contains the security related information for the resource. type DiskSecurityProfile struct { - // SecurityType - Possible values include: 'TrustedLaunch' + // SecurityType - Possible values include: 'DiskSecurityTypesTrustedLaunch' SecurityType DiskSecurityTypes `json:"securityType,omitempty"` } @@ -4577,7 +4616,7 @@ func (future *DisksGrantAccessFuture) result(client DisksClient) (au AccessURI, // DiskSku the disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, // Premium_ZRS, or StandardSSD_ZRS. type DiskSku struct { - // Name - The sku name. Possible values include: 'StandardLRS', 'PremiumLRS', 'StandardSSDLRS', 'UltraSSDLRS', 'PremiumZRS', 'StandardSSDZRS' + // Name - The sku name. Possible values include: 'DiskStorageAccountTypesStandardLRS', 'DiskStorageAccountTypesPremiumLRS', 'DiskStorageAccountTypesStandardSSDLRS', 'DiskStorageAccountTypesUltraSSDLRS', 'DiskStorageAccountTypesPremiumZRS', 'DiskStorageAccountTypesStandardSSDZRS' Name DiskStorageAccountTypes `json:"name,omitempty"` // Tier - READ-ONLY; The sku tier. Tier *string `json:"tier,omitempty"` @@ -4738,7 +4777,7 @@ func (du *DiskUpdate) UnmarshalJSON(body []byte) error { // DiskUpdateProperties disk resource update properties. type DiskUpdateProperties struct { - // OsType - the Operating System type. Possible values include: 'Windows', 'Linux' + // OsType - the Operating System type. Possible values include: 'OperatingSystemTypesWindows', 'OperatingSystemTypesLinux' OsType OperatingSystemTypes `json:"osType,omitempty"` // DiskSizeGB - If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. DiskSizeGB *int32 `json:"diskSizeGB,omitempty"` @@ -4756,7 +4795,7 @@ type DiskUpdateProperties struct { MaxShares *int32 `json:"maxShares,omitempty"` // Encryption - Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys. Encryption *Encryption `json:"encryption,omitempty"` - // NetworkAccessPolicy - Possible values include: 'AllowAll', 'AllowPrivate', 'DenyAll' + // NetworkAccessPolicy - Possible values include: 'NetworkAccessPolicyAllowAll', 'NetworkAccessPolicyAllowPrivate', 'NetworkAccessPolicyDenyAll' NetworkAccessPolicy NetworkAccessPolicy `json:"networkAccessPolicy,omitempty"` // DiskAccessID - ARM id of the DiskAccess resource for using private endpoints on disks. DiskAccessID *string `json:"diskAccessId,omitempty"` @@ -4861,7 +4900,7 @@ func (esi EncryptionSetIdentity) MarshalJSON() ([]byte, error) { // EncryptionSetProperties ... type EncryptionSetProperties struct { - // EncryptionType - Possible values include: 'EncryptionAtRestWithCustomerKey', 'EncryptionAtRestWithPlatformAndCustomerKeys' + // EncryptionType - Possible values include: 'DiskEncryptionSetTypeEncryptionAtRestWithCustomerKey', 'DiskEncryptionSetTypeEncryptionAtRestWithPlatformAndCustomerKeys' EncryptionType DiskEncryptionSetType `json:"encryptionType,omitempty"` // ActiveKey - The key vault key which is currently used by this disk encryption set. ActiveKey *KeyForDiskEncryptionSet `json:"activeKey,omitempty"` @@ -4912,7 +4951,7 @@ type EncryptionSettingsElement struct { type ExtendedLocation struct { // Name - The name of the extended location. Name *string `json:"name,omitempty"` - // Type - The type of the extended location. Possible values include: 'EdgeZone' + // Type - The type of the extended location. Possible values include: 'ExtendedLocationTypesEdgeZone' Type ExtendedLocationTypes `json:"type,omitempty"` } @@ -5418,7 +5457,7 @@ type GalleryApplicationProperties struct { ReleaseNoteURI *string `json:"releaseNoteUri,omitempty"` // EndOfLifeDate - The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable. EndOfLifeDate *date.Time `json:"endOfLifeDate,omitempty"` - // SupportedOSType - This property allows you to specify the supported type of the OS that application is built for.

Possible values are:

**Windows**

**Linux**. Possible values include: 'Windows', 'Linux' + // SupportedOSType - This property allows you to specify the supported type of the OS that application is built for.

Possible values are:

**Windows**

**Linux**. Possible values include: 'OperatingSystemTypesWindows', 'OperatingSystemTypesLinux' SupportedOSType OperatingSystemTypes `json:"supportedOSType,omitempty"` } @@ -5892,7 +5931,7 @@ func NewGalleryApplicationVersionListPage(cur GalleryApplicationVersionList, get } } -// GalleryApplicationVersionProperties describes the properties of a gallery Image Version. +// GalleryApplicationVersionProperties describes the properties of a gallery image version. type GalleryApplicationVersionProperties struct { PublishingProfile *GalleryApplicationVersionPublishingProfile `json:"publishingProfile,omitempty"` // ProvisioningState - READ-ONLY; The provisioning state, which only appears in the response. Possible values include: 'ProvisioningState1Creating', 'ProvisioningState1Updating', 'ProvisioningState1Failed', 'ProvisioningState1Succeeded', 'ProvisioningState1Deleting', 'ProvisioningState1Migrating' @@ -5922,9 +5961,9 @@ type GalleryApplicationVersionPublishingProfile struct { ReplicaCount *int32 `json:"replicaCount,omitempty"` // ExcludeFromLatest - If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version. ExcludeFromLatest *bool `json:"excludeFromLatest,omitempty"` - // PublishedDate - READ-ONLY; The timestamp for when the gallery Image Version is published. + // PublishedDate - READ-ONLY; The timestamp for when the gallery image version is published. PublishedDate *date.Time `json:"publishedDate,omitempty"` - // EndOfLifeDate - The end of life date of the gallery Image Version. This property can be used for decommissioning purposes. This property is updatable. + // EndOfLifeDate - The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable. EndOfLifeDate *date.Time `json:"endOfLifeDate,omitempty"` // StorageAccountType - Specifies the storage account type to be used to store the image. This property is not updatable. Possible values include: 'StorageAccountTypeStandardLRS', 'StorageAccountTypeStandardZRS', 'StorageAccountTypePremiumLRS' StorageAccountType StorageAccountType `json:"storageAccountType,omitempty"` @@ -6177,9 +6216,9 @@ type GalleryArtifactPublishingProfileBase struct { ReplicaCount *int32 `json:"replicaCount,omitempty"` // ExcludeFromLatest - If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version. ExcludeFromLatest *bool `json:"excludeFromLatest,omitempty"` - // PublishedDate - READ-ONLY; The timestamp for when the gallery Image Version is published. + // PublishedDate - READ-ONLY; The timestamp for when the gallery image version is published. PublishedDate *date.Time `json:"publishedDate,omitempty"` - // EndOfLifeDate - The end of life date of the gallery Image Version. This property can be used for decommissioning purposes. This property is updatable. + // EndOfLifeDate - The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable. EndOfLifeDate *date.Time `json:"endOfLifeDate,omitempty"` // StorageAccountType - Specifies the storage account type to be used to store the image. This property is not updatable. Possible values include: 'StorageAccountTypeStandardLRS', 'StorageAccountTypeStandardZRS', 'StorageAccountTypePremiumLRS' StorageAccountType StorageAccountType `json:"storageAccountType,omitempty"` @@ -6213,8 +6252,10 @@ type GalleryArtifactSource struct { // GalleryArtifactVersionSource the gallery artifact version source. type GalleryArtifactVersionSource struct { - // ID - The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, or user image. + // ID - The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource. ID *string `json:"id,omitempty"` + // URI - The uri of the gallery artifact version source. Currently used to specify vhd/blob source. + URI *string `json:"uri,omitempty"` } // GalleryDataDiskImage this is the data disk image. @@ -6270,7 +6311,13 @@ type GalleryIdentifier struct { UniqueName *string `json:"uniqueName,omitempty"` } -// GalleryImage specifies information about the gallery Image Definition that you want to create or update. +// MarshalJSON is the custom marshaler for GalleryIdentifier. +func (gi GalleryIdentifier) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// GalleryImage specifies information about the gallery image definition that you want to create or update. type GalleryImage struct { autorest.Response `json:"-"` *GalleryImageProperties `json:"properties,omitempty"` @@ -6370,13 +6417,21 @@ func (gi *GalleryImage) UnmarshalJSON(body []byte) error { return nil } -// GalleryImageIdentifier this is the gallery Image Definition identifier. +// GalleryImageFeature a feature for gallery image. +type GalleryImageFeature struct { + // Name - The name of the gallery image feature. + Name *string `json:"name,omitempty"` + // Value - The value of the gallery image feature. + Value *string `json:"value,omitempty"` +} + +// GalleryImageIdentifier this is the gallery image definition identifier. type GalleryImageIdentifier struct { - // Publisher - The name of the gallery Image Definition publisher. + // Publisher - The name of the gallery image definition publisher. Publisher *string `json:"publisher,omitempty"` - // Offer - The name of the gallery Image Definition offer. + // Offer - The name of the gallery image definition offer. Offer *string `json:"offer,omitempty"` - // Sku - The name of the gallery Image Definition SKU. + // Sku - The name of the gallery image definition SKU. Sku *string `json:"sku,omitempty"` } @@ -6385,7 +6440,7 @@ type GalleryImageList struct { autorest.Response `json:"-"` // Value - A list of Shared Image Gallery images. Value *[]GalleryImage `json:"value,omitempty"` - // NextLink - The uri to fetch the next page of Image Definitions in the Shared Image Gallery. Call ListNext() with this to fetch the next page of gallery Image Definitions. + // NextLink - The uri to fetch the next page of Image Definitions in the Shared Image Gallery. Call ListNext() with this to fetch the next page of gallery image definitions. NextLink *string `json:"nextLink,omitempty"` } @@ -6539,23 +6594,23 @@ func NewGalleryImageListPage(cur GalleryImageList, getNextPage func(context.Cont } } -// GalleryImageProperties describes the properties of a gallery Image Definition. +// GalleryImageProperties describes the properties of a gallery image definition. type GalleryImageProperties struct { - // Description - The description of this gallery Image Definition resource. This property is updatable. + // Description - The description of this gallery image definition resource. This property is updatable. Description *string `json:"description,omitempty"` - // Eula - The Eula agreement for the gallery Image Definition. + // Eula - The Eula agreement for the gallery image definition. Eula *string `json:"eula,omitempty"` // PrivacyStatementURI - The privacy statement uri. PrivacyStatementURI *string `json:"privacyStatementUri,omitempty"` // ReleaseNoteURI - The release note uri. ReleaseNoteURI *string `json:"releaseNoteUri,omitempty"` - // OsType - This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image.

Possible values are:

**Windows**

**Linux**. Possible values include: 'Windows', 'Linux' + // OsType - This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image.

Possible values are:

**Windows**

**Linux**. Possible values include: 'OperatingSystemTypesWindows', 'OperatingSystemTypesLinux' OsType OperatingSystemTypes `json:"osType,omitempty"` - // OsState - This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. Possible values include: 'Generalized', 'Specialized' + // OsState - This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. Possible values include: 'OperatingSystemStateTypesGeneralized', 'OperatingSystemStateTypesSpecialized' OsState OperatingSystemStateTypes `json:"osState,omitempty"` - // HyperVGeneration - The hypervisor generation of the Virtual Machine. Applicable to OS disks only. Possible values include: 'V1', 'V2' + // HyperVGeneration - The hypervisor generation of the Virtual Machine. Applicable to OS disks only. Possible values include: 'HyperVGenerationV1', 'HyperVGenerationV2' HyperVGeneration HyperVGeneration `json:"hyperVGeneration,omitempty"` - // EndOfLifeDate - The end of life date of the gallery Image Definition. This property can be used for decommissioning purposes. This property is updatable. + // EndOfLifeDate - The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable. EndOfLifeDate *date.Time `json:"endOfLifeDate,omitempty"` Identifier *GalleryImageIdentifier `json:"identifier,omitempty"` Recommended *RecommendedMachineConfiguration `json:"recommended,omitempty"` @@ -6563,6 +6618,8 @@ type GalleryImageProperties struct { PurchasePlan *ImagePurchasePlan `json:"purchasePlan,omitempty"` // ProvisioningState - READ-ONLY; The provisioning state, which only appears in the response. Possible values include: 'ProvisioningState2Creating', 'ProvisioningState2Updating', 'ProvisioningState2Failed', 'ProvisioningState2Succeeded', 'ProvisioningState2Deleting', 'ProvisioningState2Migrating' ProvisioningState ProvisioningState2 `json:"provisioningState,omitempty"` + // Features - A list of gallery image features. + Features *[]GalleryImageFeature `json:"features,omitempty"` } // MarshalJSON is the custom marshaler for GalleryImageProperties. @@ -6604,6 +6661,9 @@ func (gip GalleryImageProperties) MarshalJSON() ([]byte, error) { if gip.PurchasePlan != nil { objectMap["purchasePlan"] = gip.PurchasePlan } + if gip.Features != nil { + objectMap["features"] = gip.Features + } return json.Marshal(objectMap) } @@ -6730,7 +6790,7 @@ func (future *GalleryImagesUpdateFuture) result(client GalleryImagesClient) (gi return } -// GalleryImageUpdate specifies information about the gallery Image Definition that you want to update. +// GalleryImageUpdate specifies information about the gallery image definition that you want to update. type GalleryImageUpdate struct { *GalleryImageProperties `json:"properties,omitempty"` // ID - READ-ONLY; Resource Id @@ -6815,7 +6875,7 @@ func (giu *GalleryImageUpdate) UnmarshalJSON(body []byte) error { return nil } -// GalleryImageVersion specifies information about the gallery Image Version that you want to create or +// GalleryImageVersion specifies information about the gallery image version that you want to create or // update. type GalleryImageVersion struct { autorest.Response `json:"-"` @@ -6919,9 +6979,9 @@ func (giv *GalleryImageVersion) UnmarshalJSON(body []byte) error { // GalleryImageVersionList the List Gallery Image version operation response. type GalleryImageVersionList struct { autorest.Response `json:"-"` - // Value - A list of gallery Image Versions. + // Value - A list of gallery image versions. Value *[]GalleryImageVersion `json:"value,omitempty"` - // NextLink - The uri to fetch the next page of gallery Image Versions. Call ListNext() with this to fetch the next page of gallery Image Versions. + // NextLink - The uri to fetch the next page of gallery image versions. Call ListNext() with this to fetch the next page of gallery image versions. NextLink *string `json:"nextLink,omitempty"` } @@ -7075,7 +7135,7 @@ func NewGalleryImageVersionListPage(cur GalleryImageVersionList, getNextPage fun } } -// GalleryImageVersionProperties describes the properties of a gallery Image Version. +// GalleryImageVersionProperties describes the properties of a gallery image version. type GalleryImageVersionProperties struct { PublishingProfile *GalleryImageVersionPublishingProfile `json:"publishingProfile,omitempty"` // ProvisioningState - READ-ONLY; The provisioning state, which only appears in the response. Possible values include: 'ProvisioningState3Creating', 'ProvisioningState3Updating', 'ProvisioningState3Failed', 'ProvisioningState3Succeeded', 'ProvisioningState3Deleting', 'ProvisioningState3Migrating' @@ -7097,7 +7157,7 @@ func (givp GalleryImageVersionProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// GalleryImageVersionPublishingProfile the publishing profile of a gallery Image Version. +// GalleryImageVersionPublishingProfile the publishing profile of a gallery image Version. type GalleryImageVersionPublishingProfile struct { // TargetRegions - The target regions where the Image Version is going to be replicated to. This property is updatable. TargetRegions *[]TargetRegion `json:"targetRegions,omitempty"` @@ -7105,9 +7165,9 @@ type GalleryImageVersionPublishingProfile struct { ReplicaCount *int32 `json:"replicaCount,omitempty"` // ExcludeFromLatest - If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version. ExcludeFromLatest *bool `json:"excludeFromLatest,omitempty"` - // PublishedDate - READ-ONLY; The timestamp for when the gallery Image Version is published. + // PublishedDate - READ-ONLY; The timestamp for when the gallery image version is published. PublishedDate *date.Time `json:"publishedDate,omitempty"` - // EndOfLifeDate - The end of life date of the gallery Image Version. This property can be used for decommissioning purposes. This property is updatable. + // EndOfLifeDate - The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable. EndOfLifeDate *date.Time `json:"endOfLifeDate,omitempty"` // StorageAccountType - Specifies the storage account type to be used to store the image. This property is not updatable. Possible values include: 'StorageAccountTypeStandardLRS', 'StorageAccountTypeStandardZRS', 'StorageAccountTypePremiumLRS' StorageAccountType StorageAccountType `json:"storageAccountType,omitempty"` @@ -7265,7 +7325,7 @@ func (future *GalleryImageVersionsUpdateFuture) result(client GalleryImageVersio return } -// GalleryImageVersionUpdate specifies information about the gallery Image Version that you want to update. +// GalleryImageVersionUpdate specifies information about the gallery image version that you want to update. type GalleryImageVersionUpdate struct { *GalleryImageVersionProperties `json:"properties,omitempty"` // ID - READ-ONLY; Resource Id @@ -7537,6 +7597,7 @@ type GalleryProperties struct { Identifier *GalleryIdentifier `json:"identifier,omitempty"` // ProvisioningState - READ-ONLY; The provisioning state, which only appears in the response. Possible values include: 'ProvisioningStateCreating', 'ProvisioningStateUpdating', 'ProvisioningStateFailed', 'ProvisioningStateSucceeded', 'ProvisioningStateDeleting', 'ProvisioningStateMigrating' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + SharingProfile *SharingProfile `json:"sharingProfile,omitempty"` } // MarshalJSON is the custom marshaler for GalleryProperties. @@ -7548,9 +7609,55 @@ func (gp GalleryProperties) MarshalJSON() ([]byte, error) { if gp.Identifier != nil { objectMap["identifier"] = gp.Identifier } + if gp.SharingProfile != nil { + objectMap["sharingProfile"] = gp.SharingProfile + } return json.Marshal(objectMap) } +// GallerySharingProfileUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type GallerySharingProfileUpdateFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(GallerySharingProfileClient) (SharingUpdate, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *GallerySharingProfileUpdateFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for GallerySharingProfileUpdateFuture.Result. +func (future *GallerySharingProfileUpdateFuture) result(client GallerySharingProfileClient) (su SharingUpdate, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.GallerySharingProfileUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + su.Response.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("compute.GallerySharingProfileUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if su.Response.Response, err = future.GetResult(sender); err == nil && su.Response.Response.StatusCode != http.StatusNoContent { + su, err = client.UpdateResponder(su.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.GallerySharingProfileUpdateFuture", "Result", su.Response.Response, "Failure responding to request") + } + } + return +} + // GalleryUpdate specifies information about the Shared Image Gallery that you want to update. type GalleryUpdate struct { *GalleryProperties `json:"properties,omitempty"` @@ -7638,7 +7745,7 @@ func (gu *GalleryUpdate) UnmarshalJSON(body []byte) error { // GrantAccessData data used for requesting a SAS. type GrantAccessData struct { - // Access - Possible values include: 'None', 'Read', 'Write' + // Access - Possible values include: 'AccessLevelNone', 'AccessLevelRead', 'AccessLevelWrite' Access AccessLevel `json:"access,omitempty"` // DurationInSeconds - Time duration in seconds until the SAS access expires. DurationInSeconds *int32 `json:"durationInSeconds,omitempty"` @@ -7646,7 +7753,7 @@ type GrantAccessData struct { // HardwareProfile specifies the hardware settings for the virtual machine. type HardwareProfile struct { - // VMSize - Specifies the size of the virtual machine.

The enum data type is currently deprecated and will be removed by December 23rd 2023.

Recommended way to get the list of available sizes is using these APIs:

[List all available virtual machine sizes in an availability set](https://docs.microsoft.com/rest/api/compute/availabilitysets/listavailablesizes)

[List all available virtual machine sizes in a region]( https://docs.microsoft.com/en-us/rest/api/compute/resourceskus/list)

[List all available virtual machine sizes for resizing](https://docs.microsoft.com/rest/api/compute/virtualmachines/listavailablesizes). For more information about virtual machine sizes, see [Sizes for virtual machines](https://docs.microsoft.com/en-us/azure/virtual-machines/sizes).

The available VM sizes depend on region and availability set. Possible values include: 'BasicA0', 'BasicA1', 'BasicA2', 'BasicA3', 'BasicA4', 'StandardA0', 'StandardA1', 'StandardA2', 'StandardA3', 'StandardA4', 'StandardA5', 'StandardA6', 'StandardA7', 'StandardA8', 'StandardA9', 'StandardA10', 'StandardA11', 'StandardA1V2', 'StandardA2V2', 'StandardA4V2', 'StandardA8V2', 'StandardA2mV2', 'StandardA4mV2', 'StandardA8mV2', 'StandardB1s', 'StandardB1ms', 'StandardB2s', 'StandardB2ms', 'StandardB4ms', 'StandardB8ms', 'StandardD1', 'StandardD2', 'StandardD3', 'StandardD4', 'StandardD11', 'StandardD12', 'StandardD13', 'StandardD14', 'StandardD1V2', 'StandardD2V2', 'StandardD3V2', 'StandardD4V2', 'StandardD5V2', 'StandardD2V3', 'StandardD4V3', 'StandardD8V3', 'StandardD16V3', 'StandardD32V3', 'StandardD64V3', 'StandardD2sV3', 'StandardD4sV3', 'StandardD8sV3', 'StandardD16sV3', 'StandardD32sV3', 'StandardD64sV3', 'StandardD11V2', 'StandardD12V2', 'StandardD13V2', 'StandardD14V2', 'StandardD15V2', 'StandardDS1', 'StandardDS2', 'StandardDS3', 'StandardDS4', 'StandardDS11', 'StandardDS12', 'StandardDS13', 'StandardDS14', 'StandardDS1V2', 'StandardDS2V2', 'StandardDS3V2', 'StandardDS4V2', 'StandardDS5V2', 'StandardDS11V2', 'StandardDS12V2', 'StandardDS13V2', 'StandardDS14V2', 'StandardDS15V2', 'StandardDS134V2', 'StandardDS132V2', 'StandardDS148V2', 'StandardDS144V2', 'StandardE2V3', 'StandardE4V3', 'StandardE8V3', 'StandardE16V3', 'StandardE32V3', 'StandardE64V3', 'StandardE2sV3', 'StandardE4sV3', 'StandardE8sV3', 'StandardE16sV3', 'StandardE32sV3', 'StandardE64sV3', 'StandardE3216V3', 'StandardE328sV3', 'StandardE6432sV3', 'StandardE6416sV3', 'StandardF1', 'StandardF2', 'StandardF4', 'StandardF8', 'StandardF16', 'StandardF1s', 'StandardF2s', 'StandardF4s', 'StandardF8s', 'StandardF16s', 'StandardF2sV2', 'StandardF4sV2', 'StandardF8sV2', 'StandardF16sV2', 'StandardF32sV2', 'StandardF64sV2', 'StandardF72sV2', 'StandardG1', 'StandardG2', 'StandardG3', 'StandardG4', 'StandardG5', 'StandardGS1', 'StandardGS2', 'StandardGS3', 'StandardGS4', 'StandardGS5', 'StandardGS48', 'StandardGS44', 'StandardGS516', 'StandardGS58', 'StandardH8', 'StandardH16', 'StandardH8m', 'StandardH16m', 'StandardH16r', 'StandardH16mr', 'StandardL4s', 'StandardL8s', 'StandardL16s', 'StandardL32s', 'StandardM64s', 'StandardM64ms', 'StandardM128s', 'StandardM128ms', 'StandardM6432ms', 'StandardM6416ms', 'StandardM12864ms', 'StandardM12832ms', 'StandardNC6', 'StandardNC12', 'StandardNC24', 'StandardNC24r', 'StandardNC6sV2', 'StandardNC12sV2', 'StandardNC24sV2', 'StandardNC24rsV2', 'StandardNC6sV3', 'StandardNC12sV3', 'StandardNC24sV3', 'StandardNC24rsV3', 'StandardND6s', 'StandardND12s', 'StandardND24s', 'StandardND24rs', 'StandardNV6', 'StandardNV12', 'StandardNV24' + // VMSize - Specifies the size of the virtual machine.

The enum data type is currently deprecated and will be removed by December 23rd 2023.

Recommended way to get the list of available sizes is using these APIs:

[List all available virtual machine sizes in an availability set](https://docs.microsoft.com/rest/api/compute/availabilitysets/listavailablesizes)

[List all available virtual machine sizes in a region]( https://docs.microsoft.com/rest/api/compute/resourceskus/list)

[List all available virtual machine sizes for resizing](https://docs.microsoft.com/rest/api/compute/virtualmachines/listavailablesizes). For more information about virtual machine sizes, see [Sizes for virtual machines](https://docs.microsoft.com/azure/virtual-machines/sizes).

The available VM sizes depend on region and availability set. Possible values include: 'VirtualMachineSizeTypesBasicA0', 'VirtualMachineSizeTypesBasicA1', 'VirtualMachineSizeTypesBasicA2', 'VirtualMachineSizeTypesBasicA3', 'VirtualMachineSizeTypesBasicA4', 'VirtualMachineSizeTypesStandardA0', 'VirtualMachineSizeTypesStandardA1', 'VirtualMachineSizeTypesStandardA2', 'VirtualMachineSizeTypesStandardA3', 'VirtualMachineSizeTypesStandardA4', 'VirtualMachineSizeTypesStandardA5', 'VirtualMachineSizeTypesStandardA6', 'VirtualMachineSizeTypesStandardA7', 'VirtualMachineSizeTypesStandardA8', 'VirtualMachineSizeTypesStandardA9', 'VirtualMachineSizeTypesStandardA10', 'VirtualMachineSizeTypesStandardA11', 'VirtualMachineSizeTypesStandardA1V2', 'VirtualMachineSizeTypesStandardA2V2', 'VirtualMachineSizeTypesStandardA4V2', 'VirtualMachineSizeTypesStandardA8V2', 'VirtualMachineSizeTypesStandardA2mV2', 'VirtualMachineSizeTypesStandardA4mV2', 'VirtualMachineSizeTypesStandardA8mV2', 'VirtualMachineSizeTypesStandardB1s', 'VirtualMachineSizeTypesStandardB1ms', 'VirtualMachineSizeTypesStandardB2s', 'VirtualMachineSizeTypesStandardB2ms', 'VirtualMachineSizeTypesStandardB4ms', 'VirtualMachineSizeTypesStandardB8ms', 'VirtualMachineSizeTypesStandardD1', 'VirtualMachineSizeTypesStandardD2', 'VirtualMachineSizeTypesStandardD3', 'VirtualMachineSizeTypesStandardD4', 'VirtualMachineSizeTypesStandardD11', 'VirtualMachineSizeTypesStandardD12', 'VirtualMachineSizeTypesStandardD13', 'VirtualMachineSizeTypesStandardD14', 'VirtualMachineSizeTypesStandardD1V2', 'VirtualMachineSizeTypesStandardD2V2', 'VirtualMachineSizeTypesStandardD3V2', 'VirtualMachineSizeTypesStandardD4V2', 'VirtualMachineSizeTypesStandardD5V2', 'VirtualMachineSizeTypesStandardD2V3', 'VirtualMachineSizeTypesStandardD4V3', 'VirtualMachineSizeTypesStandardD8V3', 'VirtualMachineSizeTypesStandardD16V3', 'VirtualMachineSizeTypesStandardD32V3', 'VirtualMachineSizeTypesStandardD64V3', 'VirtualMachineSizeTypesStandardD2sV3', 'VirtualMachineSizeTypesStandardD4sV3', 'VirtualMachineSizeTypesStandardD8sV3', 'VirtualMachineSizeTypesStandardD16sV3', 'VirtualMachineSizeTypesStandardD32sV3', 'VirtualMachineSizeTypesStandardD64sV3', 'VirtualMachineSizeTypesStandardD11V2', 'VirtualMachineSizeTypesStandardD12V2', 'VirtualMachineSizeTypesStandardD13V2', 'VirtualMachineSizeTypesStandardD14V2', 'VirtualMachineSizeTypesStandardD15V2', 'VirtualMachineSizeTypesStandardDS1', 'VirtualMachineSizeTypesStandardDS2', 'VirtualMachineSizeTypesStandardDS3', 'VirtualMachineSizeTypesStandardDS4', 'VirtualMachineSizeTypesStandardDS11', 'VirtualMachineSizeTypesStandardDS12', 'VirtualMachineSizeTypesStandardDS13', 'VirtualMachineSizeTypesStandardDS14', 'VirtualMachineSizeTypesStandardDS1V2', 'VirtualMachineSizeTypesStandardDS2V2', 'VirtualMachineSizeTypesStandardDS3V2', 'VirtualMachineSizeTypesStandardDS4V2', 'VirtualMachineSizeTypesStandardDS5V2', 'VirtualMachineSizeTypesStandardDS11V2', 'VirtualMachineSizeTypesStandardDS12V2', 'VirtualMachineSizeTypesStandardDS13V2', 'VirtualMachineSizeTypesStandardDS14V2', 'VirtualMachineSizeTypesStandardDS15V2', 'VirtualMachineSizeTypesStandardDS134V2', 'VirtualMachineSizeTypesStandardDS132V2', 'VirtualMachineSizeTypesStandardDS148V2', 'VirtualMachineSizeTypesStandardDS144V2', 'VirtualMachineSizeTypesStandardE2V3', 'VirtualMachineSizeTypesStandardE4V3', 'VirtualMachineSizeTypesStandardE8V3', 'VirtualMachineSizeTypesStandardE16V3', 'VirtualMachineSizeTypesStandardE32V3', 'VirtualMachineSizeTypesStandardE64V3', 'VirtualMachineSizeTypesStandardE2sV3', 'VirtualMachineSizeTypesStandardE4sV3', 'VirtualMachineSizeTypesStandardE8sV3', 'VirtualMachineSizeTypesStandardE16sV3', 'VirtualMachineSizeTypesStandardE32sV3', 'VirtualMachineSizeTypesStandardE64sV3', 'VirtualMachineSizeTypesStandardE3216V3', 'VirtualMachineSizeTypesStandardE328sV3', 'VirtualMachineSizeTypesStandardE6432sV3', 'VirtualMachineSizeTypesStandardE6416sV3', 'VirtualMachineSizeTypesStandardF1', 'VirtualMachineSizeTypesStandardF2', 'VirtualMachineSizeTypesStandardF4', 'VirtualMachineSizeTypesStandardF8', 'VirtualMachineSizeTypesStandardF16', 'VirtualMachineSizeTypesStandardF1s', 'VirtualMachineSizeTypesStandardF2s', 'VirtualMachineSizeTypesStandardF4s', 'VirtualMachineSizeTypesStandardF8s', 'VirtualMachineSizeTypesStandardF16s', 'VirtualMachineSizeTypesStandardF2sV2', 'VirtualMachineSizeTypesStandardF4sV2', 'VirtualMachineSizeTypesStandardF8sV2', 'VirtualMachineSizeTypesStandardF16sV2', 'VirtualMachineSizeTypesStandardF32sV2', 'VirtualMachineSizeTypesStandardF64sV2', 'VirtualMachineSizeTypesStandardF72sV2', 'VirtualMachineSizeTypesStandardG1', 'VirtualMachineSizeTypesStandardG2', 'VirtualMachineSizeTypesStandardG3', 'VirtualMachineSizeTypesStandardG4', 'VirtualMachineSizeTypesStandardG5', 'VirtualMachineSizeTypesStandardGS1', 'VirtualMachineSizeTypesStandardGS2', 'VirtualMachineSizeTypesStandardGS3', 'VirtualMachineSizeTypesStandardGS4', 'VirtualMachineSizeTypesStandardGS5', 'VirtualMachineSizeTypesStandardGS48', 'VirtualMachineSizeTypesStandardGS44', 'VirtualMachineSizeTypesStandardGS516', 'VirtualMachineSizeTypesStandardGS58', 'VirtualMachineSizeTypesStandardH8', 'VirtualMachineSizeTypesStandardH16', 'VirtualMachineSizeTypesStandardH8m', 'VirtualMachineSizeTypesStandardH16m', 'VirtualMachineSizeTypesStandardH16r', 'VirtualMachineSizeTypesStandardH16mr', 'VirtualMachineSizeTypesStandardL4s', 'VirtualMachineSizeTypesStandardL8s', 'VirtualMachineSizeTypesStandardL16s', 'VirtualMachineSizeTypesStandardL32s', 'VirtualMachineSizeTypesStandardM64s', 'VirtualMachineSizeTypesStandardM64ms', 'VirtualMachineSizeTypesStandardM128s', 'VirtualMachineSizeTypesStandardM128ms', 'VirtualMachineSizeTypesStandardM6432ms', 'VirtualMachineSizeTypesStandardM6416ms', 'VirtualMachineSizeTypesStandardM12864ms', 'VirtualMachineSizeTypesStandardM12832ms', 'VirtualMachineSizeTypesStandardNC6', 'VirtualMachineSizeTypesStandardNC12', 'VirtualMachineSizeTypesStandardNC24', 'VirtualMachineSizeTypesStandardNC24r', 'VirtualMachineSizeTypesStandardNC6sV2', 'VirtualMachineSizeTypesStandardNC12sV2', 'VirtualMachineSizeTypesStandardNC24sV2', 'VirtualMachineSizeTypesStandardNC24rsV2', 'VirtualMachineSizeTypesStandardNC6sV3', 'VirtualMachineSizeTypesStandardNC12sV3', 'VirtualMachineSizeTypesStandardNC24sV3', 'VirtualMachineSizeTypesStandardNC24rsV3', 'VirtualMachineSizeTypesStandardND6s', 'VirtualMachineSizeTypesStandardND12s', 'VirtualMachineSizeTypesStandardND24s', 'VirtualMachineSizeTypesStandardND24rs', 'VirtualMachineSizeTypesStandardNV6', 'VirtualMachineSizeTypesStandardNV12', 'VirtualMachineSizeTypesStandardNV24' VMSize VirtualMachineSizeTypes `json:"vmSize,omitempty"` } @@ -7973,9 +8080,9 @@ func NewImageListResultPage(cur ImageListResult, getNextPage func(context.Contex // ImageOSDisk describes an Operating System disk. type ImageOSDisk struct { - // OsType - This property allows you to specify the type of the OS that is included in the disk if creating a VM from a custom image.

Possible values are:

**Windows**

**Linux**. Possible values include: 'Windows', 'Linux' + // OsType - This property allows you to specify the type of the OS that is included in the disk if creating a VM from a custom image.

Possible values are:

**Windows**

**Linux**. Possible values include: 'OperatingSystemTypesWindows', 'OperatingSystemTypesLinux' OsType OperatingSystemTypes `json:"osType,omitempty"` - // OsState - The OS State. Possible values include: 'Generalized', 'Specialized' + // OsState - The OS State. Possible values include: 'OperatingSystemStateTypesGeneralized', 'OperatingSystemStateTypesSpecialized' OsState OperatingSystemStateTypes `json:"osState,omitempty"` // Snapshot - The snapshot. Snapshot *SubResource `json:"snapshot,omitempty"` @@ -8020,7 +8127,7 @@ func (IP ImageProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// ImagePurchasePlan describes the gallery Image Definition purchase plan. This is used by marketplace +// ImagePurchasePlan describes the gallery image definition purchase plan. This is used by marketplace // images. type ImagePurchasePlan struct { // Name - The plan ID. @@ -8152,9 +8259,9 @@ func (future *ImagesDeleteFuture) result(client ImagesClient) (ar autorest.Respo // ImageStorageProfile describes a storage profile. type ImageStorageProfile struct { - // OsDisk - Specifies information about the operating system disk used by the virtual machine.

For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). + // OsDisk - Specifies information about the operating system disk used by the virtual machine.

For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). OsDisk *ImageOSDisk `json:"osDisk,omitempty"` - // DataDisks - Specifies the parameters that are used to add a data disk to a virtual machine.

For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). + // DataDisks - Specifies the parameters that are used to add a data disk to a virtual machine.

For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). DataDisks *[]ImageDataDisk `json:"dataDisks,omitempty"` // ZoneResilient - Specifies whether an image is zone resilient or not. Default is false. Zone resilient images can be created only in regions that provide Zone Redundant Storage (ZRS). ZoneResilient *bool `json:"zoneResilient,omitempty"` @@ -8270,11 +8377,17 @@ type InstanceSku struct { Tier *string `json:"tier,omitempty"` } +// MarshalJSON is the custom marshaler for InstanceSku. +func (is InstanceSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InstanceViewStatus instance view status. type InstanceViewStatus struct { // Code - The status code. Code *string `json:"code,omitempty"` - // Level - The level code. Possible values include: 'Info', 'Warning', 'Error' + // Level - The level code. Possible values include: 'StatusLevelTypesInfo', 'StatusLevelTypesWarning', 'StatusLevelTypesError' Level StatusLevelTypes `json:"level,omitempty"` // DisplayStatus - The short localizable label for the status. DisplayStatus *string `json:"displayStatus,omitempty"` @@ -8290,6 +8403,12 @@ type InstanceViewStatusesSummary struct { StatusesSummary *[]StatusCodeCount `json:"statusesSummary,omitempty"` } +// MarshalJSON is the custom marshaler for InstanceViewStatusesSummary. +func (ivss InstanceViewStatusesSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // KeyForDiskEncryptionSet key Vault Key Url to be used for server side encryption of Managed Disks and // Snapshots type KeyForDiskEncryptionSet struct { @@ -8358,11 +8477,15 @@ type LastPatchInstallationSummary struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for LastPatchInstallationSummary. +func (lpis LastPatchInstallationSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LinuxConfiguration specifies the Linux operating system settings on the virtual machine.

For a // list of supported Linux distributions, see [Linux on Azure-Endorsed -// Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-endorsed-distros?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json) -//

For running non-endorsed distributions, see [Information for Non-Endorsed -// Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-create-upload-generic?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json). +// Distributions](https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros). type LinuxConfiguration struct { // DisablePasswordAuthentication - Specifies whether password authentication should be disabled. DisablePasswordAuthentication *bool `json:"disablePasswordAuthentication,omitempty"` @@ -8388,8 +8511,10 @@ type LinuxParameters struct { // LinuxPatchSettings specifies settings related to VM Guest Patching on Linux. type LinuxPatchSettings struct { - // PatchMode - Specifies the mode of VM Guest Patching to IaaS virtual machine.

Possible values are:

**ImageDefault** - The virtual machine's default patching configuration is used.

**AutomaticByPlatform** - The virtual machine will be automatically updated by the platform. The property provisionVMAgent must be true. Possible values include: 'ImageDefault', 'AutomaticByPlatform' + // PatchMode - Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.

Possible values are:

**ImageDefault** - The virtual machine's default patching configuration is used.

**AutomaticByPlatform** - The virtual machine will be automatically updated by the platform. The property provisionVMAgent must be true. Possible values include: 'LinuxVMGuestPatchModeImageDefault', 'LinuxVMGuestPatchModeAutomaticByPlatform' PatchMode LinuxVMGuestPatchMode `json:"patchMode,omitempty"` + // AssessmentMode - Specifies the mode of VM Guest Patch Assessment for the IaaS virtual machine.

Possible values are:

**ImageDefault** - You control the timing of patch assessments on a virtual machine.

**AutomaticByPlatform** - The platform will trigger periodic patch assessments. The property provisionVMAgent must be true. Possible values include: 'LinuxPatchAssessmentModeImageDefault', 'LinuxPatchAssessmentModeAutomaticByPlatform' + AssessmentMode LinuxPatchAssessmentMode `json:"assessmentMode,omitempty"` } // ListUsagesResult the List Usages operation response. @@ -8710,12 +8835,24 @@ type LogAnalyticsOperationResult struct { Properties *LogAnalyticsOutput `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for LogAnalyticsOperationResult. +func (laor LogAnalyticsOperationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LogAnalyticsOutput logAnalytics output properties type LogAnalyticsOutput struct { // Output - READ-ONLY; Output file Uri path to blob container. Output *string `json:"output,omitempty"` } +// MarshalJSON is the custom marshaler for LogAnalyticsOutput. +func (lao LogAnalyticsOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MaintenanceRedeployStatus maintenance Operation Status. type MaintenanceRedeployStatus struct { // IsCustomerInitiatedMaintenanceAllowed - True, if customer is allowed to perform Maintenance. @@ -8806,12 +8943,18 @@ func (nir *NetworkInterfaceReference) UnmarshalJSON(body []byte) error { type NetworkInterfaceReferenceProperties struct { // Primary - Specifies the primary network interface in case the virtual machine has more than 1 network interface. Primary *bool `json:"primary,omitempty"` + // DeleteOption - Specify what happens to the network interface when the VM is deleted. Possible values include: 'DeleteOptionsDelete', 'DeleteOptionsDetach' + DeleteOption DeleteOptions `json:"deleteOption,omitempty"` } -// NetworkProfile specifies the network interfaces of the virtual machine. +// NetworkProfile specifies the network interfaces or the networking configuration of the virtual machine. type NetworkProfile struct { // NetworkInterfaces - Specifies the list of resource Ids for the network interfaces associated with the virtual machine. NetworkInterfaces *[]NetworkInterfaceReference `json:"networkInterfaces,omitempty"` + // NetworkAPIVersion - specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations. Possible values include: 'NetworkAPIVersionTwoZeroTwoZeroHyphenMinusOneOneHyphenMinusZeroOne' + NetworkAPIVersion NetworkAPIVersion `json:"networkApiVersion,omitempty"` + // NetworkInterfaceConfigurations - Specifies the networking configurations that will be used to create the virtual machine networking resources. + NetworkInterfaceConfigurations *[]VirtualMachineNetworkInterfaceConfiguration `json:"networkInterfaceConfigurations,omitempty"` } // OperationListResult the List Compute Operation operation response. @@ -8821,6 +8964,12 @@ type OperationListResult struct { Value *[]OperationValue `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationValue describes the properties of a Compute Operation value. type OperationValue struct { // Origin - READ-ONLY; The origin of the compute operation. @@ -8893,27 +9042,39 @@ type OperationValueDisplay struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationValueDisplay. +func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OrchestrationServiceStateInput the input for OrchestrationServiceState type OrchestrationServiceStateInput struct { - // ServiceName - The name of the service. Possible values include: 'AutomaticRepairs' - ServiceName OrchestrationServiceNames `json:"serviceName,omitempty"` - // Action - The action to be performed. Possible values include: 'Resume', 'Suspend' + // ServiceName - The name of the service. + ServiceName *string `json:"serviceName,omitempty"` + // Action - The action to be performed. Possible values include: 'OrchestrationServiceStateActionResume', 'OrchestrationServiceStateActionSuspend' Action OrchestrationServiceStateAction `json:"action,omitempty"` } // OrchestrationServiceSummary summary for an orchestration service of a virtual machine scale set. type OrchestrationServiceSummary struct { - // ServiceName - READ-ONLY; The name of the service. Possible values include: 'AutomaticRepairs', 'DummyOrchestrationServiceName' + // ServiceName - READ-ONLY; The name of the service. Possible values include: 'OrchestrationServiceNamesAutomaticRepairs' ServiceName OrchestrationServiceNames `json:"serviceName,omitempty"` - // ServiceState - READ-ONLY; The current state of the service. Possible values include: 'NotRunning', 'Running', 'Suspended' + // ServiceState - READ-ONLY; The current state of the service. Possible values include: 'OrchestrationServiceStateNotRunning', 'OrchestrationServiceStateRunning', 'OrchestrationServiceStateSuspended' ServiceState OrchestrationServiceState `json:"serviceState,omitempty"` } +// MarshalJSON is the custom marshaler for OrchestrationServiceSummary. +func (oss OrchestrationServiceSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OSDisk specifies information about the operating system disk used by the virtual machine.

For // more information about disks, see [About disks and VHDs for Azure virtual -// machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). +// machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). type OSDisk struct { - // OsType - This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD.

Possible values are:

**Windows**

**Linux**. Possible values include: 'Windows', 'Linux' + // OsType - This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD.

Possible values are:

**Windows**

**Linux**. Possible values include: 'OperatingSystemTypesWindows', 'OperatingSystemTypesLinux' OsType OperatingSystemTypes `json:"osType,omitempty"` // EncryptionSettings - Specifies the encryption settings for the OS Disk.

Minimum api-version: 2015-06-15 EncryptionSettings *DiskEncryptionSettings `json:"encryptionSettings,omitempty"` @@ -8935,11 +9096,13 @@ type OSDisk struct { DiskSizeGB *int32 `json:"diskSizeGB,omitempty"` // ManagedDisk - The managed disk parameters. ManagedDisk *ManagedDiskParameters `json:"managedDisk,omitempty"` + // DeleteOption - Specifies whether OS Disk should be deleted or detached upon VM deletion.

Possible values:

**Delete** If this value is used, the OS disk is deleted when VM is deleted.

**Detach** If this value is used, the os disk is retained after VM is deleted.

The default value is set to **detach**. For an ephemeral OS Disk, the default value is set to **Delete**. User cannot change the delete option for ephemeral OS Disk. Possible values include: 'DiskDeleteOptionTypesDelete', 'DiskDeleteOptionTypesDetach' + DeleteOption DiskDeleteOptionTypes `json:"deleteOption,omitempty"` } // OSDiskImage contains the os disk image information. type OSDiskImage struct { - // OperatingSystem - The operating system of the osDiskImage. Possible values include: 'Windows', 'Linux' + // OperatingSystem - The operating system of the osDiskImage. Possible values include: 'OperatingSystemTypesWindows', 'OperatingSystemTypesLinux' OperatingSystem OperatingSystemTypes `json:"operatingSystem,omitempty"` } @@ -9139,20 +9302,26 @@ type OSFamilyProperties struct { Versions *[]OSVersionPropertiesBase `json:"versions,omitempty"` } +// MarshalJSON is the custom marshaler for OSFamilyProperties. +func (ofp OSFamilyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OSProfile specifies the operating system settings for the virtual machine. Some of the settings cannot // be changed once VM is provisioned. type OSProfile struct { - // ComputerName - Specifies the host OS name of the virtual machine.

This name cannot be updated after the VM is created.

**Max-length (Windows):** 15 characters

**Max-length (Linux):** 64 characters.

For naming conventions and restrictions see [Azure infrastructure services implementation guidelines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-infrastructure-subscription-accounts-guidelines?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#1-naming-conventions). + // ComputerName - Specifies the host OS name of the virtual machine.

This name cannot be updated after the VM is created.

**Max-length (Windows):** 15 characters

**Max-length (Linux):** 64 characters.

For naming conventions and restrictions see [Azure infrastructure services implementation guidelines](https://docs.microsoft.com/azure/azure-resource-manager/management/resource-name-rules). ComputerName *string `json:"computerName,omitempty"` - // AdminUsername - Specifies the name of the administrator account.

This property cannot be updated after the VM is created.

**Windows-only restriction:** Cannot end in "."

**Disallowed values:** "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5".

**Minimum-length (Linux):** 1 character

**Max-length (Linux):** 64 characters

**Max-length (Windows):** 20 characters

  • For root access to the Linux VM, see [Using root privileges on Linux virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-use-root-privileges?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
  • For a list of built-in system users on Linux that should not be used in this field, see [Selecting User Names for Linux on Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-usernames?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json) + // AdminUsername - Specifies the name of the administrator account.

    This property cannot be updated after the VM is created.

    **Windows-only restriction:** Cannot end in "."

    **Disallowed values:** "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5".

    **Minimum-length (Linux):** 1 character

    **Max-length (Linux):** 64 characters

    **Max-length (Windows):** 20 characters. AdminUsername *string `json:"adminUsername,omitempty"` - // AdminPassword - Specifies the password of the administrator account.

    **Minimum-length (Windows):** 8 characters

    **Minimum-length (Linux):** 6 characters

    **Max-length (Windows):** 123 characters

    **Max-length (Linux):** 72 characters

    **Complexity requirements:** 3 out of 4 conditions below need to be fulfilled
    Has lower characters
    Has upper characters
    Has a digit
    Has a special character (Regex match [\W_])

    **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!"

    For resetting the password, see [How to reset the Remote Desktop service or its login password in a Windows VM](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-reset-rdp?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)

    For resetting root password, see [Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-vmaccess-extension?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#reset-root-password) + // AdminPassword - Specifies the password of the administrator account.

    **Minimum-length (Windows):** 8 characters

    **Minimum-length (Linux):** 6 characters

    **Max-length (Windows):** 123 characters

    **Max-length (Linux):** 72 characters

    **Complexity requirements:** 3 out of 4 conditions below need to be fulfilled
    Has lower characters
    Has upper characters
    Has a digit
    Has a special character (Regex match [\W_])

    **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!"

    For resetting the password, see [How to reset the Remote Desktop service or its login password in a Windows VM](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/reset-rdp)

    For resetting root password, see [Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection) AdminPassword *string `json:"adminPassword,omitempty"` - // CustomData - Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes.

    **Note: Do not pass any secrets or passwords in customData property**

    This property cannot be updated after the VM is created.

    customData is passed to the VM to be saved as a file, for more information see [Custom Data on Azure VMs](https://azure.microsoft.com/en-us/blog/custom-data-and-cloud-init-on-windows-azure/)

    For using cloud-init for your Linux VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-cloud-init?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json) + // CustomData - Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes.

    **Note: Do not pass any secrets or passwords in customData property**

    This property cannot be updated after the VM is created.

    customData is passed to the VM to be saved as a file, for more information see [Custom Data on Azure VMs](https://azure.microsoft.com/blog/custom-data-and-cloud-init-on-windows-azure/)

    For using cloud-init for your Linux VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/linux/using-cloud-init) CustomData *string `json:"customData,omitempty"` // WindowsConfiguration - Specifies Windows operating system settings on the virtual machine. WindowsConfiguration *WindowsConfiguration `json:"windowsConfiguration,omitempty"` - // LinuxConfiguration - Specifies the Linux operating system settings on the virtual machine.

    For a list of supported Linux distributions, see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-endorsed-distros?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)

    For running non-endorsed distributions, see [Information for Non-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-create-upload-generic?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json). + // LinuxConfiguration - Specifies the Linux operating system settings on the virtual machine.

    For a list of supported Linux distributions, see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros). LinuxConfiguration *LinuxConfiguration `json:"linuxConfiguration,omitempty"` // Secrets - Specifies set of certificates that should be installed onto the virtual machine. Secrets *[]VaultSecretGroup `json:"secrets,omitempty"` @@ -9358,6 +9527,12 @@ type OSVersionProperties struct { IsActive *bool `json:"isActive,omitempty"` } +// MarshalJSON is the custom marshaler for OSVersionProperties. +func (ovp OSVersionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OSVersionPropertiesBase configuration view of an OS version. type OSVersionPropertiesBase struct { // Version - READ-ONLY; The OS version. @@ -9370,6 +9545,12 @@ type OSVersionPropertiesBase struct { IsActive *bool `json:"isActive,omitempty"` } +// MarshalJSON is the custom marshaler for OSVersionPropertiesBase. +func (ovpb OSVersionPropertiesBase) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PatchInstallationDetail information about a specific patch that was encountered during an installation // action. type PatchInstallationDetail struct { @@ -9387,12 +9568,94 @@ type PatchInstallationDetail struct { InstallationState PatchInstallationState `json:"installationState,omitempty"` } +// MarshalJSON is the custom marshaler for PatchInstallationDetail. +func (pid PatchInstallationDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PatchSettings specifies settings related to VM Guest Patching on Windows. type PatchSettings struct { - // PatchMode - Specifies the mode of VM Guest Patching to IaaS virtual machine.

    Possible values are:

    **Manual** - You control the application of patches to a virtual machine. You do this by applying patches manually inside the VM. In this mode, automatic updates are disabled; the property WindowsConfiguration.enableAutomaticUpdates must be false

    **AutomaticByOS** - The virtual machine will automatically be updated by the OS. The property WindowsConfiguration.enableAutomaticUpdates must be true.

    **AutomaticByPlatform** - the virtual machine will automatically updated by the platform. The properties provisionVMAgent and WindowsConfiguration.enableAutomaticUpdates must be true. Possible values include: 'WindowsVMGuestPatchModeManual', 'WindowsVMGuestPatchModeAutomaticByOS', 'WindowsVMGuestPatchModeAutomaticByPlatform' + // PatchMode - Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.

    Possible values are:

    **Manual** - You control the application of patches to a virtual machine. You do this by applying patches manually inside the VM. In this mode, automatic updates are disabled; the property WindowsConfiguration.enableAutomaticUpdates must be false

    **AutomaticByOS** - The virtual machine will automatically be updated by the OS. The property WindowsConfiguration.enableAutomaticUpdates must be true.

    **AutomaticByPlatform** - the virtual machine will automatically updated by the platform. The properties provisionVMAgent and WindowsConfiguration.enableAutomaticUpdates must be true. Possible values include: 'WindowsVMGuestPatchModeManual', 'WindowsVMGuestPatchModeAutomaticByOS', 'WindowsVMGuestPatchModeAutomaticByPlatform' PatchMode WindowsVMGuestPatchMode `json:"patchMode,omitempty"` // EnableHotpatching - Enables customers to patch their Azure VMs without requiring a reboot. For enableHotpatching, the 'provisionVMAgent' must be set to true and 'patchMode' must be set to 'AutomaticByPlatform'. EnableHotpatching *bool `json:"enableHotpatching,omitempty"` + // AssessmentMode - Specifies the mode of VM Guest patch assessment for the IaaS virtual machine.

    Possible values are:

    **ImageDefault** - You control the timing of patch assessments on a virtual machine.

    **AutomaticByPlatform** - The platform will trigger periodic patch assessments. The property provisionVMAgent must be true. Possible values include: 'WindowsPatchAssessmentModeImageDefault', 'WindowsPatchAssessmentModeAutomaticByPlatform' + AssessmentMode WindowsPatchAssessmentMode `json:"assessmentMode,omitempty"` +} + +// PirResource the Resource model definition. +type PirResource struct { + // Name - READ-ONLY; Resource name + Name *string `json:"name,omitempty"` + // Location - READ-ONLY; Resource location + Location *string `json:"location,omitempty"` +} + +// MarshalJSON is the custom marshaler for PirResource. +func (pr PirResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// PirSharedGalleryResource base information about the shared gallery resource in pir. +type PirSharedGalleryResource struct { + *SharedGalleryIdentifier `json:"identifier,omitempty"` + // Name - READ-ONLY; Resource name + Name *string `json:"name,omitempty"` + // Location - READ-ONLY; Resource location + Location *string `json:"location,omitempty"` +} + +// MarshalJSON is the custom marshaler for PirSharedGalleryResource. +func (psgr PirSharedGalleryResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if psgr.SharedGalleryIdentifier != nil { + objectMap["identifier"] = psgr.SharedGalleryIdentifier + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for PirSharedGalleryResource struct. +func (psgr *PirSharedGalleryResource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "identifier": + if v != nil { + var sharedGalleryIdentifier SharedGalleryIdentifier + err = json.Unmarshal(*v, &sharedGalleryIdentifier) + if err != nil { + return err + } + psgr.SharedGalleryIdentifier = &sharedGalleryIdentifier + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + psgr.Name = &name + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + psgr.Location = &location + } + } + } + + return nil } // Plan specifies information about the marketplace image used to create the virtual machine. This element @@ -9417,6 +9680,12 @@ type PrivateEndpoint struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpoint. +func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection the Private Endpoint Connection resource. type PrivateEndpointConnection struct { autorest.Response `json:"-"` @@ -9773,7 +10042,7 @@ func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { // PrivateLinkServiceConnectionState a collection of information about the state of the connection between // service consumer and provider. type PrivateLinkServiceConnectionState struct { - // Status - Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. Possible values include: 'Pending', 'Approved', 'Rejected' + // Status - Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. Possible values include: 'PrivateEndpointServiceConnectionStatusPending', 'PrivateEndpointServiceConnectionStatusApproved', 'PrivateEndpointServiceConnectionStatusRejected' Status PrivateEndpointServiceConnectionStatus `json:"status,omitempty"` // Description - The reason for approval/rejection of the connection. Description *string `json:"description,omitempty"` @@ -10050,7 +10319,7 @@ func NewProximityPlacementGroupListResultPage(cur ProximityPlacementGroupListRes // ProximityPlacementGroupProperties describes the properties of a Proximity Placement Group. type ProximityPlacementGroupProperties struct { - // ProximityPlacementGroupType - Specifies the type of the proximity placement group.

    Possible values are:

    **Standard** : Co-locate resources within an Azure region or Availability Zone.

    **Ultra** : For future use. Possible values include: 'Standard', 'Ultra' + // ProximityPlacementGroupType - Specifies the type of the proximity placement group.

    Possible values are:

    **Standard** : Co-locate resources within an Azure region or Availability Zone.

    **Ultra** : For future use. Possible values include: 'ProximityPlacementGroupTypeStandard', 'ProximityPlacementGroupTypeUltra' ProximityPlacementGroupType ProximityPlacementGroupType `json:"proximityPlacementGroupType,omitempty"` // VirtualMachines - READ-ONLY; A list of references to all virtual machines in the proximity placement group. VirtualMachines *[]SubResourceWithColocationStatus `json:"virtualMachines,omitempty"` @@ -10099,6 +10368,37 @@ type ProxyOnlyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyOnlyResource. +func (por ProxyOnlyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// ProxyResource the resource model definition for an Azure Resource Manager proxy resource. It will not +// have tags and a location +type ProxyResource struct { + // ID - READ-ONLY; Resource Id + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// PublicIPAddressSku describes the public IP Sku +type PublicIPAddressSku struct { + // PublicIPAddressSkuName - Specify public IP sku name. Possible values include: 'PublicIPAddressSkuNameBasic', 'PublicIPAddressSkuNameStandard' + PublicIPAddressSkuName PublicIPAddressSkuName `json:"publicIPAddressSkuName,omitempty"` + // PublicIPAddressSkuTier - Specify public IP sku tier. Possible values include: 'PublicIPAddressSkuTierRegional', 'PublicIPAddressSkuTierGlobal' + PublicIPAddressSkuTier PublicIPAddressSkuTier `json:"publicIPAddressSkuTier,omitempty"` +} + // PurchasePlan used for establishing the purchase context of any 3rd Party artifact through MarketPlace. type PurchasePlan struct { // Publisher - The publisher ID. @@ -10133,9 +10433,15 @@ type RecoveryWalkResponse struct { NextPlatformUpdateDomain *int32 `json:"nextPlatformUpdateDomain,omitempty"` } +// MarshalJSON is the custom marshaler for RecoveryWalkResponse. +func (rwr RecoveryWalkResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegionalReplicationStatus this is the regional replication status. type RegionalReplicationStatus struct { - // Region - READ-ONLY; The region to which the gallery Image Version is being replicated to. + // Region - READ-ONLY; The region to which the gallery image version is being replicated to. Region *string `json:"region,omitempty"` // State - READ-ONLY; This is the regional replication state. Possible values include: 'ReplicationStateUnknown', 'ReplicationStateReplicating', 'ReplicationStateCompleted', 'ReplicationStateFailed' State ReplicationState `json:"state,omitempty"` @@ -10145,17 +10451,29 @@ type RegionalReplicationStatus struct { Progress *int32 `json:"progress,omitempty"` } -// ReplicationStatus this is the replication status of the gallery Image Version. +// MarshalJSON is the custom marshaler for RegionalReplicationStatus. +func (rrs RegionalReplicationStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// ReplicationStatus this is the replication status of the gallery image version. type ReplicationStatus struct { - // AggregatedState - READ-ONLY; This is the aggregated replication status based on all the regional replication status flags. Possible values include: 'Unknown', 'InProgress', 'Completed', 'Failed' + // AggregatedState - READ-ONLY; This is the aggregated replication status based on all the regional replication status flags. Possible values include: 'AggregatedReplicationStateUnknown', 'AggregatedReplicationStateInProgress', 'AggregatedReplicationStateCompleted', 'AggregatedReplicationStateFailed' AggregatedState AggregatedReplicationState `json:"aggregatedState,omitempty"` // Summary - READ-ONLY; This is a summary of replication status for each region. Summary *[]RegionalReplicationStatus `json:"summary,omitempty"` } +// MarshalJSON is the custom marshaler for ReplicationStatus. +func (rs ReplicationStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RequestRateByIntervalInput api request input for LogAnalytics getRequestRateByInterval Api. type RequestRateByIntervalInput struct { - // IntervalLength - Interval value in minutes used to create LogAnalytics call rate logs. Possible values include: 'ThreeMins', 'FiveMins', 'ThirtyMins', 'SixtyMins' + // IntervalLength - Interval value in minutes used to create LogAnalytics call rate logs. Possible values include: 'IntervalInMinsThreeMins', 'IntervalInMinsFiveMins', 'IntervalInMinsThirtyMins', 'IntervalInMinsSixtyMins' IntervalLength IntervalInMins `json:"intervalLength,omitempty"` // BlobContainerSasURI - SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. BlobContainerSasURI *string `json:"blobContainerSasUri,omitempty"` @@ -10211,7 +10529,7 @@ type ResourceInstanceViewStatus struct { Message *string `json:"message,omitempty"` // Time - READ-ONLY; The time of the status. Time *date.Time `json:"time,omitempty"` - // Level - The level code. Possible values include: 'Info', 'Warning', 'Error' + // Level - The level code. Possible values include: 'StatusLevelTypesInfo', 'StatusLevelTypesWarning', 'StatusLevelTypesError' Level StatusLevelTypes `json:"level,omitempty"` } @@ -10262,6 +10580,12 @@ type ResourceSku struct { Restrictions *[]ResourceSkuRestrictions `json:"restrictions,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSku. +func (rs ResourceSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCapabilities describes The SKU capabilities object. type ResourceSkuCapabilities struct { // Name - READ-ONLY; An invariant to describe the feature. @@ -10270,6 +10594,12 @@ type ResourceSkuCapabilities struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapabilities. +func (rsc ResourceSkuCapabilities) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCapacity describes scaling information of a SKU. type ResourceSkuCapacity struct { // Minimum - READ-ONLY; The minimum capacity. @@ -10282,6 +10612,12 @@ type ResourceSkuCapacity struct { ScaleType ResourceSkuCapacityScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapacity. +func (rsc ResourceSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCosts describes metadata for retrieving price info. type ResourceSkuCosts struct { // MeterID - READ-ONLY; Used for querying price from commerce. @@ -10292,6 +10628,12 @@ type ResourceSkuCosts struct { ExtendedUnit *string `json:"extendedUnit,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCosts. +func (rsc ResourceSkuCosts) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuLocationInfo ... type ResourceSkuLocationInfo struct { // Location - READ-ONLY; Location of the SKU @@ -10302,6 +10644,12 @@ type ResourceSkuLocationInfo struct { ZoneDetails *[]ResourceSkuZoneDetails `json:"zoneDetails,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuLocationInfo. +func (rsli ResourceSkuLocationInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuRestrictionInfo ... type ResourceSkuRestrictionInfo struct { // Locations - READ-ONLY; Locations where the SKU is restricted @@ -10310,18 +10658,30 @@ type ResourceSkuRestrictionInfo struct { Zones *[]string `json:"zones,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuRestrictionInfo. +func (rsri ResourceSkuRestrictionInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuRestrictions describes scaling information of a SKU. type ResourceSkuRestrictions struct { - // Type - READ-ONLY; The type of restrictions. Possible values include: 'Location', 'Zone' + // Type - READ-ONLY; The type of restrictions. Possible values include: 'ResourceSkuRestrictionsTypeLocation', 'ResourceSkuRestrictionsTypeZone' Type ResourceSkuRestrictionsType `json:"type,omitempty"` // Values - READ-ONLY; The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted. Values *[]string `json:"values,omitempty"` // RestrictionInfo - READ-ONLY; The information about the restriction where the SKU cannot be used. RestrictionInfo *ResourceSkuRestrictionInfo `json:"restrictionInfo,omitempty"` - // ReasonCode - READ-ONLY; The reason for restriction. Possible values include: 'QuotaID', 'NotAvailableForSubscription' + // ReasonCode - READ-ONLY; The reason for restriction. Possible values include: 'ResourceSkuRestrictionsReasonCodeQuotaID', 'ResourceSkuRestrictionsReasonCodeNotAvailableForSubscription' ReasonCode ResourceSkuRestrictionsReasonCode `json:"reasonCode,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuRestrictions. +func (rsr ResourceSkuRestrictions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkusResult the List Resource Skus operation response. type ResourceSkusResult struct { autorest.Response `json:"-"` @@ -10489,6 +10849,12 @@ type ResourceSkuZoneDetails struct { Capabilities *[]ResourceSkuCapabilities `json:"capabilities,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuZoneDetails. +func (rszd ResourceSkuZoneDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceURIList the List resources which are encrypted with the disk encryption set. type ResourceURIList struct { autorest.Response `json:"-"` @@ -10648,75 +11014,157 @@ func NewResourceURIListPage(cur ResourceURIList, getNextPage func(context.Contex } } -// RetrieveBootDiagnosticsDataResult the SAS URIs of the console screenshot and serial log blobs. -type RetrieveBootDiagnosticsDataResult struct { - autorest.Response `json:"-"` - // ConsoleScreenshotBlobURI - READ-ONLY; The console screenshot blob URI - ConsoleScreenshotBlobURI *string `json:"consoleScreenshotBlobUri,omitempty"` - // SerialConsoleLogBlobURI - READ-ONLY; The serial console log blob URI. - SerialConsoleLogBlobURI *string `json:"serialConsoleLogBlobUri,omitempty"` -} - -// RoleInstance ... -type RoleInstance struct { +// RestorePoint restore Point details. +type RestorePoint struct { autorest.Response `json:"-"` + // SourceMetadata - READ-ONLY; Gets the details of the VM captured at the time of the restore point creation. + SourceMetadata *RestorePointSourceMetadata `json:"sourceMetadata,omitempty"` + // ProvisioningState - READ-ONLY; Gets the provisioning state of the restore point. + ProvisioningState *string `json:"provisioningState,omitempty"` + // ConsistencyMode - READ-ONLY; Gets the consistency mode for the restore point. Please refer to https://aka.ms/RestorePoints for more details. Possible values include: 'ConsistencyModeTypesCrashConsistent', 'ConsistencyModeTypesFileSystemConsistent', 'ConsistencyModeTypesApplicationConsistent' + ConsistencyMode ConsistencyModeTypes `json:"consistencyMode,omitempty"` + // ProvisioningDetails - READ-ONLY; Gets the provisioning details set by the server during Create restore point operation. + ProvisioningDetails *RestorePointProvisioningDetails `json:"provisioningDetails,omitempty"` + // ExcludeDisks - List of disk resource ids that the customer wishes to exclude from the restore point. If no disks are specified, all disks will be included. + ExcludeDisks *[]APIEntityReference `json:"excludeDisks,omitempty"` // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - READ-ONLY; Resource Name. + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - READ-ONLY; Resource Type. + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` - // Location - READ-ONLY; Resource Location. - Location *string `json:"location,omitempty"` - // Tags - READ-ONLY; Resource tags. - Tags map[string]*string `json:"tags"` - Sku *InstanceSku `json:"sku,omitempty"` - Properties *RoleInstanceProperties `json:"properties,omitempty"` } -// MarshalJSON is the custom marshaler for RoleInstance. -func (ri RoleInstance) MarshalJSON() ([]byte, error) { +// MarshalJSON is the custom marshaler for RestorePoint. +func (rp RestorePoint) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if ri.Sku != nil { - objectMap["sku"] = ri.Sku + if rp.ExcludeDisks != nil { + objectMap["excludeDisks"] = rp.ExcludeDisks } - if ri.Properties != nil { - objectMap["properties"] = ri.Properties + return json.Marshal(objectMap) +} + +// RestorePointCollection create or update Restore Point collection parameters. +type RestorePointCollection struct { + autorest.Response `json:"-"` + *RestorePointCollectionProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Resource Id + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type + Type *string `json:"type,omitempty"` + // Location - Resource location + Location *string `json:"location,omitempty"` + // Tags - Resource tags + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for RestorePointCollection. +func (RPCVar RestorePointCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if RPCVar.RestorePointCollectionProperties != nil { + objectMap["properties"] = RPCVar.RestorePointCollectionProperties + } + if RPCVar.Location != nil { + objectMap["location"] = RPCVar.Location + } + if RPCVar.Tags != nil { + objectMap["tags"] = RPCVar.Tags } return json.Marshal(objectMap) } -// RoleInstanceInstanceView the instance view of the role instance. -type RoleInstanceInstanceView struct { - autorest.Response `json:"-"` - // PlatformUpdateDomain - READ-ONLY; The Update Domain. - PlatformUpdateDomain *int32 `json:"platformUpdateDomain,omitempty"` - // PlatformFaultDomain - READ-ONLY; The Fault Domain. - PlatformFaultDomain *int32 `json:"platformFaultDomain,omitempty"` - // PrivateID - READ-ONLY; Specifies a unique identifier generated internally for the cloud service associated with this role instance.

    NOTE: If you are using Azure Diagnostics extension, this property can be used as 'DeploymentId' for querying details. - PrivateID *string `json:"privateId,omitempty"` - // Statuses - READ-ONLY - Statuses *[]ResourceInstanceViewStatus `json:"statuses,omitempty"` +// UnmarshalJSON is the custom unmarshaler for RestorePointCollection struct. +func (RPCVar *RestorePointCollection) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var restorePointCollectionProperties RestorePointCollectionProperties + err = json.Unmarshal(*v, &restorePointCollectionProperties) + if err != nil { + return err + } + RPCVar.RestorePointCollectionProperties = &restorePointCollectionProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + RPCVar.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + RPCVar.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + RPCVar.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + RPCVar.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + RPCVar.Tags = tags + } + } + } + + return nil } -// RoleInstanceListResult ... -type RoleInstanceListResult struct { +// RestorePointCollectionListResult the List restore point collection operation response. +type RestorePointCollectionListResult struct { autorest.Response `json:"-"` - Value *[]RoleInstance `json:"value,omitempty"` - NextLink *string `json:"nextLink,omitempty"` + // Value - Gets the list of restore point collections. + Value *[]RestorePointCollection `json:"value,omitempty"` + // NextLink - The uri to fetch the next page of RestorePointCollections. Call ListNext() with this to fetch the next page of RestorePointCollections + NextLink *string `json:"nextLink,omitempty"` } -// RoleInstanceListResultIterator provides access to a complete listing of RoleInstance values. -type RoleInstanceListResultIterator struct { +// RestorePointCollectionListResultIterator provides access to a complete listing of RestorePointCollection +// values. +type RestorePointCollectionListResultIterator struct { i int - page RoleInstanceListResultPage + page RestorePointCollectionListResultPage } // NextWithContext advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. -func (iter *RoleInstanceListResultIterator) NextWithContext(ctx context.Context) (err error) { +func (iter *RestorePointCollectionListResultIterator) NextWithContext(ctx context.Context) (err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/RoleInstanceListResultIterator.NextWithContext") + ctx = tracing.StartSpan(ctx, fqdn+"/RestorePointCollectionListResultIterator.NextWithContext") defer func() { sc := -1 if iter.Response().Response.Response != nil { @@ -10741,67 +11189,67 @@ func (iter *RoleInstanceListResultIterator) NextWithContext(ctx context.Context) // Next advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. -func (iter *RoleInstanceListResultIterator) Next() error { +func (iter *RestorePointCollectionListResultIterator) Next() error { return iter.NextWithContext(context.Background()) } // NotDone returns true if the enumeration should be started or is not yet complete. -func (iter RoleInstanceListResultIterator) NotDone() bool { +func (iter RestorePointCollectionListResultIterator) NotDone() bool { return iter.page.NotDone() && iter.i < len(iter.page.Values()) } // Response returns the raw server response from the last page request. -func (iter RoleInstanceListResultIterator) Response() RoleInstanceListResult { +func (iter RestorePointCollectionListResultIterator) Response() RestorePointCollectionListResult { return iter.page.Response() } // Value returns the current value or a zero-initialized value if the // iterator has advanced beyond the end of the collection. -func (iter RoleInstanceListResultIterator) Value() RoleInstance { +func (iter RestorePointCollectionListResultIterator) Value() RestorePointCollection { if !iter.page.NotDone() { - return RoleInstance{} + return RestorePointCollection{} } return iter.page.Values()[iter.i] } -// Creates a new instance of the RoleInstanceListResultIterator type. -func NewRoleInstanceListResultIterator(page RoleInstanceListResultPage) RoleInstanceListResultIterator { - return RoleInstanceListResultIterator{page: page} +// Creates a new instance of the RestorePointCollectionListResultIterator type. +func NewRestorePointCollectionListResultIterator(page RestorePointCollectionListResultPage) RestorePointCollectionListResultIterator { + return RestorePointCollectionListResultIterator{page: page} } // IsEmpty returns true if the ListResult contains no values. -func (rilr RoleInstanceListResult) IsEmpty() bool { - return rilr.Value == nil || len(*rilr.Value) == 0 +func (rpclr RestorePointCollectionListResult) IsEmpty() bool { + return rpclr.Value == nil || len(*rpclr.Value) == 0 } // hasNextLink returns true if the NextLink is not empty. -func (rilr RoleInstanceListResult) hasNextLink() bool { - return rilr.NextLink != nil && len(*rilr.NextLink) != 0 +func (rpclr RestorePointCollectionListResult) hasNextLink() bool { + return rpclr.NextLink != nil && len(*rpclr.NextLink) != 0 } -// roleInstanceListResultPreparer prepares a request to retrieve the next set of results. +// restorePointCollectionListResultPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. -func (rilr RoleInstanceListResult) roleInstanceListResultPreparer(ctx context.Context) (*http.Request, error) { - if !rilr.hasNextLink() { +func (rpclr RestorePointCollectionListResult) restorePointCollectionListResultPreparer(ctx context.Context) (*http.Request, error) { + if !rpclr.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), autorest.AsJSON(), autorest.AsGet(), - autorest.WithBaseURL(to.String(rilr.NextLink))) + autorest.WithBaseURL(to.String(rpclr.NextLink))) } -// RoleInstanceListResultPage contains a page of RoleInstance values. -type RoleInstanceListResultPage struct { - fn func(context.Context, RoleInstanceListResult) (RoleInstanceListResult, error) - rilr RoleInstanceListResult +// RestorePointCollectionListResultPage contains a page of RestorePointCollection values. +type RestorePointCollectionListResultPage struct { + fn func(context.Context, RestorePointCollectionListResult) (RestorePointCollectionListResult, error) + rpclr RestorePointCollectionListResult } // NextWithContext advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. -func (page *RoleInstanceListResultPage) NextWithContext(ctx context.Context) (err error) { +func (page *RestorePointCollectionListResultPage) NextWithContext(ctx context.Context) (err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/RoleInstanceListResultPage.NextWithContext") + ctx = tracing.StartSpan(ctx, fqdn+"/RestorePointCollectionListResultPage.NextWithContext") defer func() { sc := -1 if page.Response().Response.Response != nil { @@ -10811,11 +11259,11 @@ func (page *RoleInstanceListResultPage) NextWithContext(ctx context.Context) (er }() } for { - next, err := page.fn(ctx, page.rilr) + next, err := page.fn(ctx, page.rpclr) if err != nil { return err } - page.rilr = next + page.rpclr = next if !next.hasNextLink() || !next.IsEmpty() { break } @@ -10826,138 +11274,132 @@ func (page *RoleInstanceListResultPage) NextWithContext(ctx context.Context) (er // Next advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. -func (page *RoleInstanceListResultPage) Next() error { +func (page *RestorePointCollectionListResultPage) Next() error { return page.NextWithContext(context.Background()) } // NotDone returns true if the page enumeration should be started or is not yet complete. -func (page RoleInstanceListResultPage) NotDone() bool { - return !page.rilr.IsEmpty() +func (page RestorePointCollectionListResultPage) NotDone() bool { + return !page.rpclr.IsEmpty() } // Response returns the raw server response from the last page request. -func (page RoleInstanceListResultPage) Response() RoleInstanceListResult { - return page.rilr +func (page RestorePointCollectionListResultPage) Response() RestorePointCollectionListResult { + return page.rpclr } // Values returns the slice of values for the current page or nil if there are no values. -func (page RoleInstanceListResultPage) Values() []RoleInstance { - if page.rilr.IsEmpty() { +func (page RestorePointCollectionListResultPage) Values() []RestorePointCollection { + if page.rpclr.IsEmpty() { return nil } - return *page.rilr.Value + return *page.rpclr.Value } -// Creates a new instance of the RoleInstanceListResultPage type. -func NewRoleInstanceListResultPage(cur RoleInstanceListResult, getNextPage func(context.Context, RoleInstanceListResult) (RoleInstanceListResult, error)) RoleInstanceListResultPage { - return RoleInstanceListResultPage{ - fn: getNextPage, - rilr: cur, +// Creates a new instance of the RestorePointCollectionListResultPage type. +func NewRestorePointCollectionListResultPage(cur RestorePointCollectionListResult, getNextPage func(context.Context, RestorePointCollectionListResult) (RestorePointCollectionListResult, error)) RestorePointCollectionListResultPage { + return RestorePointCollectionListResultPage{ + fn: getNextPage, + rpclr: cur, } } -// RoleInstanceNetworkProfile describes the network profile for the role instance. -type RoleInstanceNetworkProfile struct { - // NetworkInterfaces - READ-ONLY; Specifies the list of resource Ids for the network interfaces associated with the role instance. - NetworkInterfaces *[]SubResource `json:"networkInterfaces,omitempty"` +// RestorePointCollectionProperties the restore point collection properties. +type RestorePointCollectionProperties struct { + Source *RestorePointCollectionSourceProperties `json:"source,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the restore point collection. + ProvisioningState *string `json:"provisioningState,omitempty"` + // RestorePointCollectionID - READ-ONLY; The unique id of the restore point collection. + RestorePointCollectionID *string `json:"restorePointCollectionId,omitempty"` + // RestorePoints - READ-ONLY; A list containing all restore points created under this restore point collection. + RestorePoints *[]RestorePoint `json:"restorePoints,omitempty"` } -// RoleInstanceProperties ... -type RoleInstanceProperties struct { - NetworkProfile *RoleInstanceNetworkProfile `json:"networkProfile,omitempty"` - InstanceView *RoleInstanceInstanceView `json:"instanceView,omitempty"` +// MarshalJSON is the custom marshaler for RestorePointCollectionProperties. +func (rpcp RestorePointCollectionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rpcp.Source != nil { + objectMap["source"] = rpcp.Source + } + return json.Marshal(objectMap) } -// RoleInstances specifies a list of role instances from the cloud service. -type RoleInstances struct { - // RoleInstances - List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service. - RoleInstances *[]string `json:"roleInstances,omitempty"` +// RestorePointCollectionsDeleteFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type RestorePointCollectionsDeleteFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(RestorePointCollectionsClient) (autorest.Response, error) } -// RollbackStatusInfo information about rollback on failed VM instances after a OS Upgrade operation. -type RollbackStatusInfo struct { - // SuccessfullyRolledbackInstanceCount - READ-ONLY; The number of instances which have been successfully rolled back. - SuccessfullyRolledbackInstanceCount *int32 `json:"successfullyRolledbackInstanceCount,omitempty"` - // FailedRolledbackInstanceCount - READ-ONLY; The number of instances which failed to rollback. - FailedRolledbackInstanceCount *int32 `json:"failedRolledbackInstanceCount,omitempty"` - // RollbackError - READ-ONLY; Error details if OS rollback failed. - RollbackError *APIError `json:"rollbackError,omitempty"` +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *RestorePointCollectionsDeleteFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil } -// RollingUpgradePolicy the configuration parameters used while performing a rolling upgrade. -type RollingUpgradePolicy struct { - // MaxBatchInstancePercent - The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The default value for this parameter is 20%. - MaxBatchInstancePercent *int32 `json:"maxBatchInstancePercent,omitempty"` - // MaxUnhealthyInstancePercent - The maximum percentage of the total virtual machine instances in the scale set that can be simultaneously unhealthy, either as a result of being upgraded, or by being found in an unhealthy state by the virtual machine health checks before the rolling upgrade aborts. This constraint will be checked prior to starting any batch. The default value for this parameter is 20%. - MaxUnhealthyInstancePercent *int32 `json:"maxUnhealthyInstancePercent,omitempty"` - // MaxUnhealthyUpgradedInstancePercent - The maximum percentage of upgraded virtual machine instances that can be found to be in an unhealthy state. This check will happen after each batch is upgraded. If this percentage is ever exceeded, the rolling update aborts. The default value for this parameter is 20%. - MaxUnhealthyUpgradedInstancePercent *int32 `json:"maxUnhealthyUpgradedInstancePercent,omitempty"` - // PauseTimeBetweenBatches - The wait time between completing the update for all virtual machines in one batch and starting the next batch. The time duration should be specified in ISO 8601 format. The default value is 0 seconds (PT0S). - PauseTimeBetweenBatches *string `json:"pauseTimeBetweenBatches,omitempty"` - // EnableCrossZoneUpgrade - Allow VMSS to ignore AZ boundaries when constructing upgrade batches. Take into consideration the Update Domain and maxBatchInstancePercent to determine the batch size. - EnableCrossZoneUpgrade *bool `json:"enableCrossZoneUpgrade,omitempty"` - // PrioritizeUnhealthyInstances - Upgrade all unhealthy instances in a scale set before any healthy instances. - PrioritizeUnhealthyInstances *bool `json:"prioritizeUnhealthyInstances,omitempty"` +// result is the default implementation for RestorePointCollectionsDeleteFuture.Result. +func (future *RestorePointCollectionsDeleteFuture) result(client RestorePointCollectionsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.RestorePointCollectionsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + ar.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("compute.RestorePointCollectionsDeleteFuture") + return + } + ar.Response = future.Response() + return } -// RollingUpgradeProgressInfo information about the number of virtual machine instances in each upgrade -// state. -type RollingUpgradeProgressInfo struct { - // SuccessfulInstanceCount - READ-ONLY; The number of instances that have been successfully upgraded. - SuccessfulInstanceCount *int32 `json:"successfulInstanceCount,omitempty"` - // FailedInstanceCount - READ-ONLY; The number of instances that have failed to be upgraded successfully. - FailedInstanceCount *int32 `json:"failedInstanceCount,omitempty"` - // InProgressInstanceCount - READ-ONLY; The number of instances that are currently being upgraded. - InProgressInstanceCount *int32 `json:"inProgressInstanceCount,omitempty"` - // PendingInstanceCount - READ-ONLY; The number of instances that have not yet begun to be upgraded. - PendingInstanceCount *int32 `json:"pendingInstanceCount,omitempty"` +// RestorePointCollectionSourceProperties the properties of the source resource that this restore point +// collection is created from. +type RestorePointCollectionSourceProperties struct { + // Location - READ-ONLY; Location of the source resource used to create this restore point collection. + Location *string `json:"location,omitempty"` + // ID - Resource Id of the source resource used to create this restore point collection + ID *string `json:"id,omitempty"` } -// RollingUpgradeRunningStatus information about the current running state of the overall upgrade. -type RollingUpgradeRunningStatus struct { - // Code - READ-ONLY; Code indicating the current status of the upgrade. Possible values include: 'RollingUpgradeStatusCodeRollingForward', 'RollingUpgradeStatusCodeCancelled', 'RollingUpgradeStatusCodeCompleted', 'RollingUpgradeStatusCodeFaulted' - Code RollingUpgradeStatusCode `json:"code,omitempty"` - // StartTime - READ-ONLY; Start time of the upgrade. - StartTime *date.Time `json:"startTime,omitempty"` - // LastAction - READ-ONLY; The last action performed on the rolling upgrade. Possible values include: 'Start', 'Cancel' - LastAction RollingUpgradeActionType `json:"lastAction,omitempty"` - // LastActionTime - READ-ONLY; Last action time of the upgrade. - LastActionTime *date.Time `json:"lastActionTime,omitempty"` +// MarshalJSON is the custom marshaler for RestorePointCollectionSourceProperties. +func (rpcsp RestorePointCollectionSourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rpcsp.ID != nil { + objectMap["id"] = rpcsp.ID + } + return json.Marshal(objectMap) } -// RollingUpgradeStatusInfo the status of the latest virtual machine scale set rolling upgrade. -type RollingUpgradeStatusInfo struct { - autorest.Response `json:"-"` - *RollingUpgradeStatusInfoProperties `json:"properties,omitempty"` - // ID - READ-ONLY; Resource Id - ID *string `json:"id,omitempty"` - // Name - READ-ONLY; Resource name - Name *string `json:"name,omitempty"` - // Type - READ-ONLY; Resource type - Type *string `json:"type,omitempty"` - // Location - Resource location - Location *string `json:"location,omitempty"` +// RestorePointCollectionUpdate update Restore Point collection parameters. +type RestorePointCollectionUpdate struct { + *RestorePointCollectionProperties `json:"properties,omitempty"` // Tags - Resource tags Tags map[string]*string `json:"tags"` } -// MarshalJSON is the custom marshaler for RollingUpgradeStatusInfo. -func (rusi RollingUpgradeStatusInfo) MarshalJSON() ([]byte, error) { +// MarshalJSON is the custom marshaler for RestorePointCollectionUpdate. +func (rpcu RestorePointCollectionUpdate) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if rusi.RollingUpgradeStatusInfoProperties != nil { - objectMap["properties"] = rusi.RollingUpgradeStatusInfoProperties - } - if rusi.Location != nil { - objectMap["location"] = rusi.Location + if rpcu.RestorePointCollectionProperties != nil { + objectMap["properties"] = rpcu.RestorePointCollectionProperties } - if rusi.Tags != nil { - objectMap["tags"] = rusi.Tags + if rpcu.Tags != nil { + objectMap["tags"] = rpcu.Tags } return json.Marshal(objectMap) } -// UnmarshalJSON is the custom unmarshaler for RollingUpgradeStatusInfo struct. -func (rusi *RollingUpgradeStatusInfo) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for RestorePointCollectionUpdate struct. +func (rpcu *RestorePointCollectionUpdate) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -10967,21 +11409,901 @@ func (rusi *RollingUpgradeStatusInfo) UnmarshalJSON(body []byte) error { switch k { case "properties": if v != nil { - var rollingUpgradeStatusInfoProperties RollingUpgradeStatusInfoProperties - err = json.Unmarshal(*v, &rollingUpgradeStatusInfoProperties) + var restorePointCollectionProperties RestorePointCollectionProperties + err = json.Unmarshal(*v, &restorePointCollectionProperties) if err != nil { return err } - rusi.RollingUpgradeStatusInfoProperties = &rollingUpgradeStatusInfoProperties + rpcu.RestorePointCollectionProperties = &restorePointCollectionProperties + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + rpcu.Tags = tags + } + } + } + + return nil +} + +// RestorePointProvisioningDetails restore Point Provisioning details. +type RestorePointProvisioningDetails struct { + // CreationTime - Gets the creation time of the restore point. + CreationTime *date.Time `json:"creationTime,omitempty"` + // TotalUsedSizeInBytes - Gets the total size of the data in all the disks which are part of the restore point. + TotalUsedSizeInBytes *int64 `json:"totalUsedSizeInBytes,omitempty"` + // StatusCode - Gets the status of the Create restore point operation. + StatusCode *int32 `json:"statusCode,omitempty"` + // StatusMessage - Gets the status message of the Create restore point operation. + StatusMessage *string `json:"statusMessage,omitempty"` +} + +// RestorePointsCreateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type RestorePointsCreateFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(RestorePointsClient) (RestorePoint, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *RestorePointsCreateFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for RestorePointsCreateFuture.Result. +func (future *RestorePointsCreateFuture) result(client RestorePointsClient) (rp RestorePoint, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.RestorePointsCreateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + rp.Response.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("compute.RestorePointsCreateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if rp.Response.Response, err = future.GetResult(sender); err == nil && rp.Response.Response.StatusCode != http.StatusNoContent { + rp, err = client.CreateResponder(rp.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.RestorePointsCreateFuture", "Result", rp.Response.Response, "Failure responding to request") + } + } + return +} + +// RestorePointsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type RestorePointsDeleteFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(RestorePointsClient) (autorest.Response, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *RestorePointsDeleteFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for RestorePointsDeleteFuture.Result. +func (future *RestorePointsDeleteFuture) result(client RestorePointsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.RestorePointsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + ar.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("compute.RestorePointsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// RestorePointSourceMetadata describes the properties of the Virtual Machine for which the restore point +// was created. The properties provided are a subset and the snapshot of the overall Virtual Machine +// properties captured at the time of the restore point creation. +type RestorePointSourceMetadata struct { + // HardwareProfile - Gets the hardware profile. + HardwareProfile *HardwareProfile `json:"hardwareProfile,omitempty"` + // StorageProfile - Gets the storage profile. + StorageProfile *RestorePointSourceVMStorageProfile `json:"storageProfile,omitempty"` + // OsProfile - Gets the OS profile. + OsProfile *OSProfile `json:"osProfile,omitempty"` + // DiagnosticsProfile - Gets the diagnostics profile. + DiagnosticsProfile *DiagnosticsProfile `json:"diagnosticsProfile,omitempty"` + // LicenseType - Gets the license type, which is for bring your own license scenario. + LicenseType *string `json:"licenseType,omitempty"` + // VMID - Gets the virtual machine unique id. + VMID *string `json:"vmId,omitempty"` + // SecurityProfile - Gets the security profile. + SecurityProfile *SecurityProfile `json:"securityProfile,omitempty"` +} + +// RestorePointSourceVMDataDisk describes a data disk. +type RestorePointSourceVMDataDisk struct { + // Lun - Gets the logical unit number. + Lun *int32 `json:"lun,omitempty"` + // Name - Gets the disk name. + Name *string `json:"name,omitempty"` + // Caching - Gets the caching type. Possible values include: 'CachingTypesNone', 'CachingTypesReadOnly', 'CachingTypesReadWrite' + Caching CachingTypes `json:"caching,omitempty"` + // DiskSizeGB - Gets the initial disk size in GB for blank data disks, and the new desired size for existing OS and Data disks. + DiskSizeGB *int32 `json:"diskSizeGB,omitempty"` + // ManagedDisk - Gets the managed disk details + ManagedDisk *ManagedDiskParameters `json:"managedDisk,omitempty"` + // DiskRestorePoint - Gets the disk restore point Id. + DiskRestorePoint *APIEntityReference `json:"diskRestorePoint,omitempty"` +} + +// RestorePointSourceVMOSDisk describes an Operating System disk. +type RestorePointSourceVMOSDisk struct { + // OsType - Gets the Operating System type. Possible values include: 'OperatingSystemTypeWindows', 'OperatingSystemTypeLinux' + OsType OperatingSystemType `json:"osType,omitempty"` + // EncryptionSettings - Gets the disk encryption settings. + EncryptionSettings *DiskEncryptionSettings `json:"encryptionSettings,omitempty"` + // Name - Gets the disk name. + Name *string `json:"name,omitempty"` + // Caching - Gets the caching type. Possible values include: 'CachingTypesNone', 'CachingTypesReadOnly', 'CachingTypesReadWrite' + Caching CachingTypes `json:"caching,omitempty"` + // DiskSizeGB - Gets the disk size in GB. + DiskSizeGB *int32 `json:"diskSizeGB,omitempty"` + // ManagedDisk - Gets the managed disk details + ManagedDisk *ManagedDiskParameters `json:"managedDisk,omitempty"` + // DiskRestorePoint - Gets the disk restore point Id. + DiskRestorePoint *APIEntityReference `json:"diskRestorePoint,omitempty"` +} + +// RestorePointSourceVMStorageProfile describes the storage profile. +type RestorePointSourceVMStorageProfile struct { + // OsDisk - Gets the OS disk of the VM captured at the time of the restore point creation. + OsDisk *RestorePointSourceVMOSDisk `json:"osDisk,omitempty"` + // DataDisks - Gets the data disks of the VM captured at the time of the restore point creation. + DataDisks *[]RestorePointSourceVMDataDisk `json:"dataDisks,omitempty"` +} + +// RetrieveBootDiagnosticsDataResult the SAS URIs of the console screenshot and serial log blobs. +type RetrieveBootDiagnosticsDataResult struct { + autorest.Response `json:"-"` + // ConsoleScreenshotBlobURI - READ-ONLY; The console screenshot blob URI + ConsoleScreenshotBlobURI *string `json:"consoleScreenshotBlobUri,omitempty"` + // SerialConsoleLogBlobURI - READ-ONLY; The serial console log blob URI. + SerialConsoleLogBlobURI *string `json:"serialConsoleLogBlobUri,omitempty"` +} + +// MarshalJSON is the custom marshaler for RetrieveBootDiagnosticsDataResult. +func (rbddr RetrieveBootDiagnosticsDataResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// RoleInstance ... +type RoleInstance struct { + autorest.Response `json:"-"` + // ID - READ-ONLY; Resource Id + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource Name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource Type. + Type *string `json:"type,omitempty"` + // Location - READ-ONLY; Resource Location. + Location *string `json:"location,omitempty"` + // Tags - READ-ONLY; Resource tags. + Tags map[string]*string `json:"tags"` + Sku *InstanceSku `json:"sku,omitempty"` + Properties *RoleInstanceProperties `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for RoleInstance. +func (ri RoleInstance) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ri.Sku != nil { + objectMap["sku"] = ri.Sku + } + if ri.Properties != nil { + objectMap["properties"] = ri.Properties + } + return json.Marshal(objectMap) +} + +// RoleInstanceInstanceView the instance view of the role instance. +type RoleInstanceInstanceView struct { + autorest.Response `json:"-"` + // PlatformUpdateDomain - READ-ONLY; The Update Domain. + PlatformUpdateDomain *int32 `json:"platformUpdateDomain,omitempty"` + // PlatformFaultDomain - READ-ONLY; The Fault Domain. + PlatformFaultDomain *int32 `json:"platformFaultDomain,omitempty"` + // PrivateID - READ-ONLY; Specifies a unique identifier generated internally for the cloud service associated with this role instance.

    NOTE: If you are using Azure Diagnostics extension, this property can be used as 'DeploymentId' for querying details. + PrivateID *string `json:"privateId,omitempty"` + // Statuses - READ-ONLY + Statuses *[]ResourceInstanceViewStatus `json:"statuses,omitempty"` +} + +// MarshalJSON is the custom marshaler for RoleInstanceInstanceView. +func (riiv RoleInstanceInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// RoleInstanceListResult ... +type RoleInstanceListResult struct { + autorest.Response `json:"-"` + Value *[]RoleInstance `json:"value,omitempty"` + NextLink *string `json:"nextLink,omitempty"` +} + +// RoleInstanceListResultIterator provides access to a complete listing of RoleInstance values. +type RoleInstanceListResultIterator struct { + i int + page RoleInstanceListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *RoleInstanceListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RoleInstanceListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *RoleInstanceListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter RoleInstanceListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter RoleInstanceListResultIterator) Response() RoleInstanceListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter RoleInstanceListResultIterator) Value() RoleInstance { + if !iter.page.NotDone() { + return RoleInstance{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the RoleInstanceListResultIterator type. +func NewRoleInstanceListResultIterator(page RoleInstanceListResultPage) RoleInstanceListResultIterator { + return RoleInstanceListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (rilr RoleInstanceListResult) IsEmpty() bool { + return rilr.Value == nil || len(*rilr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (rilr RoleInstanceListResult) hasNextLink() bool { + return rilr.NextLink != nil && len(*rilr.NextLink) != 0 +} + +// roleInstanceListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (rilr RoleInstanceListResult) roleInstanceListResultPreparer(ctx context.Context) (*http.Request, error) { + if !rilr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(rilr.NextLink))) +} + +// RoleInstanceListResultPage contains a page of RoleInstance values. +type RoleInstanceListResultPage struct { + fn func(context.Context, RoleInstanceListResult) (RoleInstanceListResult, error) + rilr RoleInstanceListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *RoleInstanceListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RoleInstanceListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.rilr) + if err != nil { + return err + } + page.rilr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *RoleInstanceListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page RoleInstanceListResultPage) NotDone() bool { + return !page.rilr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page RoleInstanceListResultPage) Response() RoleInstanceListResult { + return page.rilr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page RoleInstanceListResultPage) Values() []RoleInstance { + if page.rilr.IsEmpty() { + return nil + } + return *page.rilr.Value +} + +// Creates a new instance of the RoleInstanceListResultPage type. +func NewRoleInstanceListResultPage(cur RoleInstanceListResult, getNextPage func(context.Context, RoleInstanceListResult) (RoleInstanceListResult, error)) RoleInstanceListResultPage { + return RoleInstanceListResultPage{ + fn: getNextPage, + rilr: cur, + } +} + +// RoleInstanceNetworkProfile describes the network profile for the role instance. +type RoleInstanceNetworkProfile struct { + // NetworkInterfaces - READ-ONLY; Specifies the list of resource Ids for the network interfaces associated with the role instance. + NetworkInterfaces *[]SubResource `json:"networkInterfaces,omitempty"` +} + +// MarshalJSON is the custom marshaler for RoleInstanceNetworkProfile. +func (rinp RoleInstanceNetworkProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// RoleInstanceProperties ... +type RoleInstanceProperties struct { + NetworkProfile *RoleInstanceNetworkProfile `json:"networkProfile,omitempty"` + InstanceView *RoleInstanceInstanceView `json:"instanceView,omitempty"` +} + +// RoleInstances specifies a list of role instances from the cloud service. +type RoleInstances struct { + // RoleInstances - List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service. + RoleInstances *[]string `json:"roleInstances,omitempty"` +} + +// RollbackStatusInfo information about rollback on failed VM instances after a OS Upgrade operation. +type RollbackStatusInfo struct { + // SuccessfullyRolledbackInstanceCount - READ-ONLY; The number of instances which have been successfully rolled back. + SuccessfullyRolledbackInstanceCount *int32 `json:"successfullyRolledbackInstanceCount,omitempty"` + // FailedRolledbackInstanceCount - READ-ONLY; The number of instances which failed to rollback. + FailedRolledbackInstanceCount *int32 `json:"failedRolledbackInstanceCount,omitempty"` + // RollbackError - READ-ONLY; Error details if OS rollback failed. + RollbackError *APIError `json:"rollbackError,omitempty"` +} + +// MarshalJSON is the custom marshaler for RollbackStatusInfo. +func (rsi RollbackStatusInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// RollingUpgradePolicy the configuration parameters used while performing a rolling upgrade. +type RollingUpgradePolicy struct { + // MaxBatchInstancePercent - The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The default value for this parameter is 20%. + MaxBatchInstancePercent *int32 `json:"maxBatchInstancePercent,omitempty"` + // MaxUnhealthyInstancePercent - The maximum percentage of the total virtual machine instances in the scale set that can be simultaneously unhealthy, either as a result of being upgraded, or by being found in an unhealthy state by the virtual machine health checks before the rolling upgrade aborts. This constraint will be checked prior to starting any batch. The default value for this parameter is 20%. + MaxUnhealthyInstancePercent *int32 `json:"maxUnhealthyInstancePercent,omitempty"` + // MaxUnhealthyUpgradedInstancePercent - The maximum percentage of upgraded virtual machine instances that can be found to be in an unhealthy state. This check will happen after each batch is upgraded. If this percentage is ever exceeded, the rolling update aborts. The default value for this parameter is 20%. + MaxUnhealthyUpgradedInstancePercent *int32 `json:"maxUnhealthyUpgradedInstancePercent,omitempty"` + // PauseTimeBetweenBatches - The wait time between completing the update for all virtual machines in one batch and starting the next batch. The time duration should be specified in ISO 8601 format. The default value is 0 seconds (PT0S). + PauseTimeBetweenBatches *string `json:"pauseTimeBetweenBatches,omitempty"` + // EnableCrossZoneUpgrade - Allow VMSS to ignore AZ boundaries when constructing upgrade batches. Take into consideration the Update Domain and maxBatchInstancePercent to determine the batch size. + EnableCrossZoneUpgrade *bool `json:"enableCrossZoneUpgrade,omitempty"` + // PrioritizeUnhealthyInstances - Upgrade all unhealthy instances in a scale set before any healthy instances. + PrioritizeUnhealthyInstances *bool `json:"prioritizeUnhealthyInstances,omitempty"` +} + +// RollingUpgradeProgressInfo information about the number of virtual machine instances in each upgrade +// state. +type RollingUpgradeProgressInfo struct { + // SuccessfulInstanceCount - READ-ONLY; The number of instances that have been successfully upgraded. + SuccessfulInstanceCount *int32 `json:"successfulInstanceCount,omitempty"` + // FailedInstanceCount - READ-ONLY; The number of instances that have failed to be upgraded successfully. + FailedInstanceCount *int32 `json:"failedInstanceCount,omitempty"` + // InProgressInstanceCount - READ-ONLY; The number of instances that are currently being upgraded. + InProgressInstanceCount *int32 `json:"inProgressInstanceCount,omitempty"` + // PendingInstanceCount - READ-ONLY; The number of instances that have not yet begun to be upgraded. + PendingInstanceCount *int32 `json:"pendingInstanceCount,omitempty"` +} + +// MarshalJSON is the custom marshaler for RollingUpgradeProgressInfo. +func (rupi RollingUpgradeProgressInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// RollingUpgradeRunningStatus information about the current running state of the overall upgrade. +type RollingUpgradeRunningStatus struct { + // Code - READ-ONLY; Code indicating the current status of the upgrade. Possible values include: 'RollingUpgradeStatusCodeRollingForward', 'RollingUpgradeStatusCodeCancelled', 'RollingUpgradeStatusCodeCompleted', 'RollingUpgradeStatusCodeFaulted' + Code RollingUpgradeStatusCode `json:"code,omitempty"` + // StartTime - READ-ONLY; Start time of the upgrade. + StartTime *date.Time `json:"startTime,omitempty"` + // LastAction - READ-ONLY; The last action performed on the rolling upgrade. Possible values include: 'RollingUpgradeActionTypeStart', 'RollingUpgradeActionTypeCancel' + LastAction RollingUpgradeActionType `json:"lastAction,omitempty"` + // LastActionTime - READ-ONLY; Last action time of the upgrade. + LastActionTime *date.Time `json:"lastActionTime,omitempty"` +} + +// MarshalJSON is the custom marshaler for RollingUpgradeRunningStatus. +func (rurs RollingUpgradeRunningStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// RollingUpgradeStatusInfo the status of the latest virtual machine scale set rolling upgrade. +type RollingUpgradeStatusInfo struct { + autorest.Response `json:"-"` + *RollingUpgradeStatusInfoProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Resource Id + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type + Type *string `json:"type,omitempty"` + // Location - Resource location + Location *string `json:"location,omitempty"` + // Tags - Resource tags + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for RollingUpgradeStatusInfo. +func (rusi RollingUpgradeStatusInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rusi.RollingUpgradeStatusInfoProperties != nil { + objectMap["properties"] = rusi.RollingUpgradeStatusInfoProperties + } + if rusi.Location != nil { + objectMap["location"] = rusi.Location + } + if rusi.Tags != nil { + objectMap["tags"] = rusi.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for RollingUpgradeStatusInfo struct. +func (rusi *RollingUpgradeStatusInfo) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var rollingUpgradeStatusInfoProperties RollingUpgradeStatusInfoProperties + err = json.Unmarshal(*v, &rollingUpgradeStatusInfoProperties) + if err != nil { + return err + } + rusi.RollingUpgradeStatusInfoProperties = &rollingUpgradeStatusInfoProperties } case "id": if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + rusi.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + rusi.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + rusi.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + rusi.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + rusi.Tags = tags + } + } + } + + return nil +} + +// RollingUpgradeStatusInfoProperties the status of the latest virtual machine scale set rolling upgrade. +type RollingUpgradeStatusInfoProperties struct { + // Policy - READ-ONLY; The rolling upgrade policies applied for this upgrade. + Policy *RollingUpgradePolicy `json:"policy,omitempty"` + // RunningStatus - READ-ONLY; Information about the current running state of the overall upgrade. + RunningStatus *RollingUpgradeRunningStatus `json:"runningStatus,omitempty"` + // Progress - READ-ONLY; Information about the number of virtual machine instances in each upgrade state. + Progress *RollingUpgradeProgressInfo `json:"progress,omitempty"` + // Error - READ-ONLY; Error details for this upgrade, if there are any. + Error *APIError `json:"error,omitempty"` +} + +// MarshalJSON is the custom marshaler for RollingUpgradeStatusInfoProperties. +func (rusip RollingUpgradeStatusInfoProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// RunCommandDocument describes the properties of a Run Command. +type RunCommandDocument struct { + autorest.Response `json:"-"` + // Script - The script to be executed. + Script *[]string `json:"script,omitempty"` + // Parameters - The parameters used by the script. + Parameters *[]RunCommandParameterDefinition `json:"parameters,omitempty"` + // Schema - The VM run command schema. + Schema *string `json:"$schema,omitempty"` + // ID - The VM run command id. + ID *string `json:"id,omitempty"` + // OsType - The Operating System type. Possible values include: 'OperatingSystemTypesWindows', 'OperatingSystemTypesLinux' + OsType OperatingSystemTypes `json:"osType,omitempty"` + // Label - The VM run command label. + Label *string `json:"label,omitempty"` + // Description - The VM run command description. + Description *string `json:"description,omitempty"` +} + +// RunCommandDocumentBase describes the properties of a Run Command metadata. +type RunCommandDocumentBase struct { + // Schema - The VM run command schema. + Schema *string `json:"$schema,omitempty"` + // ID - The VM run command id. + ID *string `json:"id,omitempty"` + // OsType - The Operating System type. Possible values include: 'OperatingSystemTypesWindows', 'OperatingSystemTypesLinux' + OsType OperatingSystemTypes `json:"osType,omitempty"` + // Label - The VM run command label. + Label *string `json:"label,omitempty"` + // Description - The VM run command description. + Description *string `json:"description,omitempty"` +} + +// RunCommandInput capture Virtual Machine parameters. +type RunCommandInput struct { + // CommandID - The run command id. + CommandID *string `json:"commandId,omitempty"` + // Script - Optional. The script to be executed. When this value is given, the given script will override the default script of the command. + Script *[]string `json:"script,omitempty"` + // Parameters - The run command parameters. + Parameters *[]RunCommandInputParameter `json:"parameters,omitempty"` +} + +// RunCommandInputParameter describes the properties of a run command parameter. +type RunCommandInputParameter struct { + // Name - The run command parameter name. + Name *string `json:"name,omitempty"` + // Value - The run command parameter value. + Value *string `json:"value,omitempty"` +} + +// RunCommandListResult the List Virtual Machine operation response. +type RunCommandListResult struct { + autorest.Response `json:"-"` + // Value - The list of virtual machine run commands. + Value *[]RunCommandDocumentBase `json:"value,omitempty"` + // NextLink - The uri to fetch the next page of run commands. Call ListNext() with this to fetch the next page of run commands. + NextLink *string `json:"nextLink,omitempty"` +} + +// RunCommandListResultIterator provides access to a complete listing of RunCommandDocumentBase values. +type RunCommandListResultIterator struct { + i int + page RunCommandListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *RunCommandListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RunCommandListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *RunCommandListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter RunCommandListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter RunCommandListResultIterator) Response() RunCommandListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter RunCommandListResultIterator) Value() RunCommandDocumentBase { + if !iter.page.NotDone() { + return RunCommandDocumentBase{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the RunCommandListResultIterator type. +func NewRunCommandListResultIterator(page RunCommandListResultPage) RunCommandListResultIterator { + return RunCommandListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (rclr RunCommandListResult) IsEmpty() bool { + return rclr.Value == nil || len(*rclr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (rclr RunCommandListResult) hasNextLink() bool { + return rclr.NextLink != nil && len(*rclr.NextLink) != 0 +} + +// runCommandListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (rclr RunCommandListResult) runCommandListResultPreparer(ctx context.Context) (*http.Request, error) { + if !rclr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(rclr.NextLink))) +} + +// RunCommandListResultPage contains a page of RunCommandDocumentBase values. +type RunCommandListResultPage struct { + fn func(context.Context, RunCommandListResult) (RunCommandListResult, error) + rclr RunCommandListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *RunCommandListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RunCommandListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.rclr) + if err != nil { + return err + } + page.rclr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *RunCommandListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page RunCommandListResultPage) NotDone() bool { + return !page.rclr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page RunCommandListResultPage) Response() RunCommandListResult { + return page.rclr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page RunCommandListResultPage) Values() []RunCommandDocumentBase { + if page.rclr.IsEmpty() { + return nil + } + return *page.rclr.Value +} + +// Creates a new instance of the RunCommandListResultPage type. +func NewRunCommandListResultPage(cur RunCommandListResult, getNextPage func(context.Context, RunCommandListResult) (RunCommandListResult, error)) RunCommandListResultPage { + return RunCommandListResultPage{ + fn: getNextPage, + rclr: cur, + } +} + +// RunCommandParameterDefinition describes the properties of a run command parameter. +type RunCommandParameterDefinition struct { + // Name - The run command parameter name. + Name *string `json:"name,omitempty"` + // Type - The run command parameter type. + Type *string `json:"type,omitempty"` + // DefaultValue - The run command parameter default value. + DefaultValue *string `json:"defaultValue,omitempty"` + // Required - The run command parameter required. + Required *bool `json:"required,omitempty"` +} + +// RunCommandResult ... +type RunCommandResult struct { + autorest.Response `json:"-"` + // Value - Run command operation response. + Value *[]InstanceViewStatus `json:"value,omitempty"` +} + +// ScaleInPolicy describes a scale-in policy for a virtual machine scale set. +type ScaleInPolicy struct { + // Rules - The rules to be followed when scaling-in a virtual machine scale set.

    Possible values are:

    **Default** When a virtual machine scale set is scaled in, the scale set will first be balanced across zones if it is a zonal scale set. Then, it will be balanced across Fault Domains as far as possible. Within each Fault Domain, the virtual machines chosen for removal will be the newest ones that are not protected from scale-in.

    **OldestVM** When a virtual machine scale set is being scaled-in, the oldest virtual machines that are not protected from scale-in will be chosen for removal. For zonal virtual machine scale sets, the scale set will first be balanced across zones. Within each zone, the oldest virtual machines that are not protected will be chosen for removal.

    **NewestVM** When a virtual machine scale set is being scaled-in, the newest virtual machines that are not protected from scale-in will be chosen for removal. For zonal virtual machine scale sets, the scale set will first be balanced across zones. Within each zone, the newest virtual machines that are not protected will be chosen for removal.

    + Rules *[]VirtualMachineScaleSetScaleInRules `json:"rules,omitempty"` +} + +// ScheduledEventsProfile ... +type ScheduledEventsProfile struct { + // TerminateNotificationProfile - Specifies Terminate Scheduled Event related configurations. + TerminateNotificationProfile *TerminateNotificationProfile `json:"terminateNotificationProfile,omitempty"` +} + +// SecurityProfile specifies the Security profile settings for the virtual machine or virtual machine scale +// set. +type SecurityProfile struct { + // UefiSettings - Specifies the security settings like secure boot and vTPM used while creating the virtual machine.

    Minimum api-version: 2020-12-01 + UefiSettings *UefiSettings `json:"uefiSettings,omitempty"` + // EncryptionAtHost - This property can be used by user in the request to enable or disable the Host Encryption for the virtual machine or virtual machine scale set. This will enable the encryption for all the disks including Resource/Temp disk at host itself.

    Default: The Encryption at host will be disabled unless this property is set to true for the resource. + EncryptionAtHost *bool `json:"encryptionAtHost,omitempty"` + // SecurityType - Specifies the SecurityType of the virtual machine. It is set as TrustedLaunch to enable UefiSettings.

    Default: UefiSettings will not be enabled unless this property is set as TrustedLaunch. Possible values include: 'SecurityTypesTrustedLaunch' + SecurityType SecurityTypes `json:"securityType,omitempty"` +} + +// SharedGallery specifies information about the Shared Gallery that you want to create or update. +type SharedGallery struct { + autorest.Response `json:"-"` + *SharedGalleryIdentifier `json:"identifier,omitempty"` + // Name - READ-ONLY; Resource name + Name *string `json:"name,omitempty"` + // Location - READ-ONLY; Resource location + Location *string `json:"location,omitempty"` +} + +// MarshalJSON is the custom marshaler for SharedGallery. +func (sg SharedGallery) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if sg.SharedGalleryIdentifier != nil { + objectMap["identifier"] = sg.SharedGalleryIdentifier + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for SharedGallery struct. +func (sg *SharedGallery) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "identifier": + if v != nil { + var sharedGalleryIdentifier SharedGalleryIdentifier + err = json.Unmarshal(*v, &sharedGalleryIdentifier) if err != nil { return err } - rusi.ID = &ID + sg.SharedGalleryIdentifier = &sharedGalleryIdentifier } case "name": if v != nil { @@ -10990,16 +12312,88 @@ func (rusi *RollingUpgradeStatusInfo) UnmarshalJSON(body []byte) error { if err != nil { return err } - rusi.Name = &name + sg.Name = &name } - case "type": + case "location": if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) + var location string + err = json.Unmarshal(*v, &location) if err != nil { return err } - rusi.Type = &typeVar + sg.Location = &location + } + } + } + + return nil +} + +// SharedGalleryIdentifier the identifier information of shared gallery. +type SharedGalleryIdentifier struct { + // UniqueID - The unique id of this shared gallery. + UniqueID *string `json:"uniqueId,omitempty"` +} + +// SharedGalleryImage specifies information about the gallery image definition that you want to create or +// update. +type SharedGalleryImage struct { + autorest.Response `json:"-"` + *SharedGalleryImageProperties `json:"properties,omitempty"` + *SharedGalleryIdentifier `json:"identifier,omitempty"` + // Name - READ-ONLY; Resource name + Name *string `json:"name,omitempty"` + // Location - READ-ONLY; Resource location + Location *string `json:"location,omitempty"` +} + +// MarshalJSON is the custom marshaler for SharedGalleryImage. +func (sgi SharedGalleryImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if sgi.SharedGalleryImageProperties != nil { + objectMap["properties"] = sgi.SharedGalleryImageProperties + } + if sgi.SharedGalleryIdentifier != nil { + objectMap["identifier"] = sgi.SharedGalleryIdentifier + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for SharedGalleryImage struct. +func (sgi *SharedGalleryImage) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var sharedGalleryImageProperties SharedGalleryImageProperties + err = json.Unmarshal(*v, &sharedGalleryImageProperties) + if err != nil { + return err + } + sgi.SharedGalleryImageProperties = &sharedGalleryImageProperties + } + case "identifier": + if v != nil { + var sharedGalleryIdentifier SharedGalleryIdentifier + err = json.Unmarshal(*v, &sharedGalleryIdentifier) + if err != nil { + return err + } + sgi.SharedGalleryIdentifier = &sharedGalleryIdentifier + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + sgi.Name = &name } case "location": if v != nil { @@ -11008,16 +12402,259 @@ func (rusi *RollingUpgradeStatusInfo) UnmarshalJSON(body []byte) error { if err != nil { return err } - rusi.Location = &location + sgi.Location = &location + } + } + } + + return nil +} + +// SharedGalleryImageList the List Shared Gallery Images operation response. +type SharedGalleryImageList struct { + autorest.Response `json:"-"` + // Value - A list of shared gallery images. + Value *[]SharedGalleryImage `json:"value,omitempty"` + // NextLink - The uri to fetch the next page of shared gallery images. Call ListNext() with this to fetch the next page of shared gallery images. + NextLink *string `json:"nextLink,omitempty"` +} + +// SharedGalleryImageListIterator provides access to a complete listing of SharedGalleryImage values. +type SharedGalleryImageListIterator struct { + i int + page SharedGalleryImageListPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *SharedGalleryImageListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SharedGalleryImageListIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *SharedGalleryImageListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter SharedGalleryImageListIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter SharedGalleryImageListIterator) Response() SharedGalleryImageList { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter SharedGalleryImageListIterator) Value() SharedGalleryImage { + if !iter.page.NotDone() { + return SharedGalleryImage{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the SharedGalleryImageListIterator type. +func NewSharedGalleryImageListIterator(page SharedGalleryImageListPage) SharedGalleryImageListIterator { + return SharedGalleryImageListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (sgil SharedGalleryImageList) IsEmpty() bool { + return sgil.Value == nil || len(*sgil.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (sgil SharedGalleryImageList) hasNextLink() bool { + return sgil.NextLink != nil && len(*sgil.NextLink) != 0 +} + +// sharedGalleryImageListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (sgil SharedGalleryImageList) sharedGalleryImageListPreparer(ctx context.Context) (*http.Request, error) { + if !sgil.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(sgil.NextLink))) +} + +// SharedGalleryImageListPage contains a page of SharedGalleryImage values. +type SharedGalleryImageListPage struct { + fn func(context.Context, SharedGalleryImageList) (SharedGalleryImageList, error) + sgil SharedGalleryImageList +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *SharedGalleryImageListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SharedGalleryImageListPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.sgil) + if err != nil { + return err + } + page.sgil = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *SharedGalleryImageListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page SharedGalleryImageListPage) NotDone() bool { + return !page.sgil.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page SharedGalleryImageListPage) Response() SharedGalleryImageList { + return page.sgil +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page SharedGalleryImageListPage) Values() []SharedGalleryImage { + if page.sgil.IsEmpty() { + return nil + } + return *page.sgil.Value +} + +// Creates a new instance of the SharedGalleryImageListPage type. +func NewSharedGalleryImageListPage(cur SharedGalleryImageList, getNextPage func(context.Context, SharedGalleryImageList) (SharedGalleryImageList, error)) SharedGalleryImageListPage { + return SharedGalleryImageListPage{ + fn: getNextPage, + sgil: cur, + } +} + +// SharedGalleryImageProperties describes the properties of a gallery image definition. +type SharedGalleryImageProperties struct { + // OsType - This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image.

    Possible values are:

    **Windows**

    **Linux**. Possible values include: 'OperatingSystemTypesWindows', 'OperatingSystemTypesLinux' + OsType OperatingSystemTypes `json:"osType,omitempty"` + // OsState - This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. Possible values include: 'OperatingSystemStateTypesGeneralized', 'OperatingSystemStateTypesSpecialized' + OsState OperatingSystemStateTypes `json:"osState,omitempty"` + // EndOfLifeDate - The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable. + EndOfLifeDate *date.Time `json:"endOfLifeDate,omitempty"` + Identifier *GalleryImageIdentifier `json:"identifier,omitempty"` + Recommended *RecommendedMachineConfiguration `json:"recommended,omitempty"` + Disallowed *Disallowed `json:"disallowed,omitempty"` + // HyperVGeneration - The hypervisor generation of the Virtual Machine. Applicable to OS disks only. Possible values include: 'HyperVGenerationV1', 'HyperVGenerationV2' + HyperVGeneration HyperVGeneration `json:"hyperVGeneration,omitempty"` + // Features - A list of gallery image features. + Features *[]GalleryImageFeature `json:"features,omitempty"` + PurchasePlan *ImagePurchasePlan `json:"purchasePlan,omitempty"` +} + +// SharedGalleryImageVersion specifies information about the gallery image version that you want to create +// or update. +type SharedGalleryImageVersion struct { + autorest.Response `json:"-"` + *SharedGalleryImageVersionProperties `json:"properties,omitempty"` + *SharedGalleryIdentifier `json:"identifier,omitempty"` + // Name - READ-ONLY; Resource name + Name *string `json:"name,omitempty"` + // Location - READ-ONLY; Resource location + Location *string `json:"location,omitempty"` +} + +// MarshalJSON is the custom marshaler for SharedGalleryImageVersion. +func (sgiv SharedGalleryImageVersion) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if sgiv.SharedGalleryImageVersionProperties != nil { + objectMap["properties"] = sgiv.SharedGalleryImageVersionProperties + } + if sgiv.SharedGalleryIdentifier != nil { + objectMap["identifier"] = sgiv.SharedGalleryIdentifier + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for SharedGalleryImageVersion struct. +func (sgiv *SharedGalleryImageVersion) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var sharedGalleryImageVersionProperties SharedGalleryImageVersionProperties + err = json.Unmarshal(*v, &sharedGalleryImageVersionProperties) + if err != nil { + return err + } + sgiv.SharedGalleryImageVersionProperties = &sharedGalleryImageVersionProperties + } + case "identifier": + if v != nil { + var sharedGalleryIdentifier SharedGalleryIdentifier + err = json.Unmarshal(*v, &sharedGalleryIdentifier) + if err != nil { + return err + } + sgiv.SharedGalleryIdentifier = &sharedGalleryIdentifier + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + sgiv.Name = &name } - case "tags": + case "location": if v != nil { - var tags map[string]*string - err = json.Unmarshal(*v, &tags) + var location string + err = json.Unmarshal(*v, &location) if err != nil { return err } - rusi.Tags = tags + sgiv.Location = &location } } } @@ -11025,89 +12662,194 @@ func (rusi *RollingUpgradeStatusInfo) UnmarshalJSON(body []byte) error { return nil } -// RollingUpgradeStatusInfoProperties the status of the latest virtual machine scale set rolling upgrade. -type RollingUpgradeStatusInfoProperties struct { - // Policy - READ-ONLY; The rolling upgrade policies applied for this upgrade. - Policy *RollingUpgradePolicy `json:"policy,omitempty"` - // RunningStatus - READ-ONLY; Information about the current running state of the overall upgrade. - RunningStatus *RollingUpgradeRunningStatus `json:"runningStatus,omitempty"` - // Progress - READ-ONLY; Information about the number of virtual machine instances in each upgrade state. - Progress *RollingUpgradeProgressInfo `json:"progress,omitempty"` - // Error - READ-ONLY; Error details for this upgrade, if there are any. - Error *APIError `json:"error,omitempty"` +// SharedGalleryImageVersionList the List Shared Gallery Image versions operation response. +type SharedGalleryImageVersionList struct { + autorest.Response `json:"-"` + // Value - A list of shared gallery images versions. + Value *[]SharedGalleryImageVersion `json:"value,omitempty"` + // NextLink - The uri to fetch the next page of shared gallery image versions. Call ListNext() with this to fetch the next page of shared gallery image versions. + NextLink *string `json:"nextLink,omitempty"` } -// RunCommandDocument describes the properties of a Run Command. -type RunCommandDocument struct { - autorest.Response `json:"-"` - // Script - The script to be executed. - Script *[]string `json:"script,omitempty"` - // Parameters - The parameters used by the script. - Parameters *[]RunCommandParameterDefinition `json:"parameters,omitempty"` - // Schema - The VM run command schema. - Schema *string `json:"$schema,omitempty"` - // ID - The VM run command id. - ID *string `json:"id,omitempty"` - // OsType - The Operating System type. Possible values include: 'Windows', 'Linux' - OsType OperatingSystemTypes `json:"osType,omitempty"` - // Label - The VM run command label. - Label *string `json:"label,omitempty"` - // Description - The VM run command description. - Description *string `json:"description,omitempty"` +// SharedGalleryImageVersionListIterator provides access to a complete listing of SharedGalleryImageVersion +// values. +type SharedGalleryImageVersionListIterator struct { + i int + page SharedGalleryImageVersionListPage } -// RunCommandDocumentBase describes the properties of a Run Command metadata. -type RunCommandDocumentBase struct { - // Schema - The VM run command schema. - Schema *string `json:"$schema,omitempty"` - // ID - The VM run command id. - ID *string `json:"id,omitempty"` - // OsType - The Operating System type. Possible values include: 'Windows', 'Linux' - OsType OperatingSystemTypes `json:"osType,omitempty"` - // Label - The VM run command label. - Label *string `json:"label,omitempty"` - // Description - The VM run command description. - Description *string `json:"description,omitempty"` +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *SharedGalleryImageVersionListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SharedGalleryImageVersionListIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil } -// RunCommandInput capture Virtual Machine parameters. -type RunCommandInput struct { - // CommandID - The run command id. - CommandID *string `json:"commandId,omitempty"` - // Script - Optional. The script to be executed. When this value is given, the given script will override the default script of the command. - Script *[]string `json:"script,omitempty"` - // Parameters - The run command parameters. - Parameters *[]RunCommandInputParameter `json:"parameters,omitempty"` +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *SharedGalleryImageVersionListIterator) Next() error { + return iter.NextWithContext(context.Background()) } -// RunCommandInputParameter describes the properties of a run command parameter. -type RunCommandInputParameter struct { - // Name - The run command parameter name. - Name *string `json:"name,omitempty"` - // Value - The run command parameter value. - Value *string `json:"value,omitempty"` +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter SharedGalleryImageVersionListIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) } -// RunCommandListResult the List Virtual Machine operation response. -type RunCommandListResult struct { +// Response returns the raw server response from the last page request. +func (iter SharedGalleryImageVersionListIterator) Response() SharedGalleryImageVersionList { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter SharedGalleryImageVersionListIterator) Value() SharedGalleryImageVersion { + if !iter.page.NotDone() { + return SharedGalleryImageVersion{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the SharedGalleryImageVersionListIterator type. +func NewSharedGalleryImageVersionListIterator(page SharedGalleryImageVersionListPage) SharedGalleryImageVersionListIterator { + return SharedGalleryImageVersionListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (sgivl SharedGalleryImageVersionList) IsEmpty() bool { + return sgivl.Value == nil || len(*sgivl.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (sgivl SharedGalleryImageVersionList) hasNextLink() bool { + return sgivl.NextLink != nil && len(*sgivl.NextLink) != 0 +} + +// sharedGalleryImageVersionListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (sgivl SharedGalleryImageVersionList) sharedGalleryImageVersionListPreparer(ctx context.Context) (*http.Request, error) { + if !sgivl.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(sgivl.NextLink))) +} + +// SharedGalleryImageVersionListPage contains a page of SharedGalleryImageVersion values. +type SharedGalleryImageVersionListPage struct { + fn func(context.Context, SharedGalleryImageVersionList) (SharedGalleryImageVersionList, error) + sgivl SharedGalleryImageVersionList +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *SharedGalleryImageVersionListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SharedGalleryImageVersionListPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.sgivl) + if err != nil { + return err + } + page.sgivl = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *SharedGalleryImageVersionListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page SharedGalleryImageVersionListPage) NotDone() bool { + return !page.sgivl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page SharedGalleryImageVersionListPage) Response() SharedGalleryImageVersionList { + return page.sgivl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page SharedGalleryImageVersionListPage) Values() []SharedGalleryImageVersion { + if page.sgivl.IsEmpty() { + return nil + } + return *page.sgivl.Value +} + +// Creates a new instance of the SharedGalleryImageVersionListPage type. +func NewSharedGalleryImageVersionListPage(cur SharedGalleryImageVersionList, getNextPage func(context.Context, SharedGalleryImageVersionList) (SharedGalleryImageVersionList, error)) SharedGalleryImageVersionListPage { + return SharedGalleryImageVersionListPage{ + fn: getNextPage, + sgivl: cur, + } +} + +// SharedGalleryImageVersionProperties describes the properties of a gallery image version. +type SharedGalleryImageVersionProperties struct { + // PublishedDate - The published date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable. + PublishedDate *date.Time `json:"publishedDate,omitempty"` + // EndOfLifeDate - The end of life date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable. + EndOfLifeDate *date.Time `json:"endOfLifeDate,omitempty"` +} + +// SharedGalleryList the List Shared Galleries operation response. +type SharedGalleryList struct { autorest.Response `json:"-"` - // Value - The list of virtual machine run commands. - Value *[]RunCommandDocumentBase `json:"value,omitempty"` - // NextLink - The uri to fetch the next page of run commands. Call ListNext() with this to fetch the next page of run commands. + // Value - A list of shared galleries. + Value *[]SharedGallery `json:"value,omitempty"` + // NextLink - The uri to fetch the next page of shared galleries. Call ListNext() with this to fetch the next page of shared galleries. NextLink *string `json:"nextLink,omitempty"` } -// RunCommandListResultIterator provides access to a complete listing of RunCommandDocumentBase values. -type RunCommandListResultIterator struct { +// SharedGalleryListIterator provides access to a complete listing of SharedGallery values. +type SharedGalleryListIterator struct { i int - page RunCommandListResultPage + page SharedGalleryListPage } // NextWithContext advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. -func (iter *RunCommandListResultIterator) NextWithContext(ctx context.Context) (err error) { +func (iter *SharedGalleryListIterator) NextWithContext(ctx context.Context) (err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/RunCommandListResultIterator.NextWithContext") + ctx = tracing.StartSpan(ctx, fqdn+"/SharedGalleryListIterator.NextWithContext") defer func() { sc := -1 if iter.Response().Response.Response != nil { @@ -11132,67 +12874,67 @@ func (iter *RunCommandListResultIterator) NextWithContext(ctx context.Context) ( // Next advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. -func (iter *RunCommandListResultIterator) Next() error { +func (iter *SharedGalleryListIterator) Next() error { return iter.NextWithContext(context.Background()) } // NotDone returns true if the enumeration should be started or is not yet complete. -func (iter RunCommandListResultIterator) NotDone() bool { +func (iter SharedGalleryListIterator) NotDone() bool { return iter.page.NotDone() && iter.i < len(iter.page.Values()) } // Response returns the raw server response from the last page request. -func (iter RunCommandListResultIterator) Response() RunCommandListResult { +func (iter SharedGalleryListIterator) Response() SharedGalleryList { return iter.page.Response() } // Value returns the current value or a zero-initialized value if the // iterator has advanced beyond the end of the collection. -func (iter RunCommandListResultIterator) Value() RunCommandDocumentBase { +func (iter SharedGalleryListIterator) Value() SharedGallery { if !iter.page.NotDone() { - return RunCommandDocumentBase{} + return SharedGallery{} } return iter.page.Values()[iter.i] } -// Creates a new instance of the RunCommandListResultIterator type. -func NewRunCommandListResultIterator(page RunCommandListResultPage) RunCommandListResultIterator { - return RunCommandListResultIterator{page: page} +// Creates a new instance of the SharedGalleryListIterator type. +func NewSharedGalleryListIterator(page SharedGalleryListPage) SharedGalleryListIterator { + return SharedGalleryListIterator{page: page} } // IsEmpty returns true if the ListResult contains no values. -func (rclr RunCommandListResult) IsEmpty() bool { - return rclr.Value == nil || len(*rclr.Value) == 0 +func (sgl SharedGalleryList) IsEmpty() bool { + return sgl.Value == nil || len(*sgl.Value) == 0 } // hasNextLink returns true if the NextLink is not empty. -func (rclr RunCommandListResult) hasNextLink() bool { - return rclr.NextLink != nil && len(*rclr.NextLink) != 0 +func (sgl SharedGalleryList) hasNextLink() bool { + return sgl.NextLink != nil && len(*sgl.NextLink) != 0 } -// runCommandListResultPreparer prepares a request to retrieve the next set of results. +// sharedGalleryListPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. -func (rclr RunCommandListResult) runCommandListResultPreparer(ctx context.Context) (*http.Request, error) { - if !rclr.hasNextLink() { +func (sgl SharedGalleryList) sharedGalleryListPreparer(ctx context.Context) (*http.Request, error) { + if !sgl.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), autorest.AsJSON(), autorest.AsGet(), - autorest.WithBaseURL(to.String(rclr.NextLink))) + autorest.WithBaseURL(to.String(sgl.NextLink))) } -// RunCommandListResultPage contains a page of RunCommandDocumentBase values. -type RunCommandListResultPage struct { - fn func(context.Context, RunCommandListResult) (RunCommandListResult, error) - rclr RunCommandListResult +// SharedGalleryListPage contains a page of SharedGallery values. +type SharedGalleryListPage struct { + fn func(context.Context, SharedGalleryList) (SharedGalleryList, error) + sgl SharedGalleryList } // NextWithContext advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. -func (page *RunCommandListResultPage) NextWithContext(ctx context.Context) (err error) { +func (page *SharedGalleryListPage) NextWithContext(ctx context.Context) (err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/RunCommandListResultPage.NextWithContext") + ctx = tracing.StartSpan(ctx, fqdn+"/SharedGalleryListPage.NextWithContext") defer func() { sc := -1 if page.Response().Response.Response != nil { @@ -11202,11 +12944,11 @@ func (page *RunCommandListResultPage) NextWithContext(ctx context.Context) (err }() } for { - next, err := page.fn(ctx, page.rclr) + next, err := page.fn(ctx, page.sgl) if err != nil { return err } - page.rclr = next + page.sgl = next if !next.hasNextLink() || !next.IsEmpty() { break } @@ -11217,82 +12959,80 @@ func (page *RunCommandListResultPage) NextWithContext(ctx context.Context) (err // Next advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. -func (page *RunCommandListResultPage) Next() error { +func (page *SharedGalleryListPage) Next() error { return page.NextWithContext(context.Background()) } // NotDone returns true if the page enumeration should be started or is not yet complete. -func (page RunCommandListResultPage) NotDone() bool { - return !page.rclr.IsEmpty() +func (page SharedGalleryListPage) NotDone() bool { + return !page.sgl.IsEmpty() } // Response returns the raw server response from the last page request. -func (page RunCommandListResultPage) Response() RunCommandListResult { - return page.rclr +func (page SharedGalleryListPage) Response() SharedGalleryList { + return page.sgl } // Values returns the slice of values for the current page or nil if there are no values. -func (page RunCommandListResultPage) Values() []RunCommandDocumentBase { - if page.rclr.IsEmpty() { +func (page SharedGalleryListPage) Values() []SharedGallery { + if page.sgl.IsEmpty() { return nil } - return *page.rclr.Value + return *page.sgl.Value } -// Creates a new instance of the RunCommandListResultPage type. -func NewRunCommandListResultPage(cur RunCommandListResult, getNextPage func(context.Context, RunCommandListResult) (RunCommandListResult, error)) RunCommandListResultPage { - return RunCommandListResultPage{ - fn: getNextPage, - rclr: cur, +// Creates a new instance of the SharedGalleryListPage type. +func NewSharedGalleryListPage(cur SharedGalleryList, getNextPage func(context.Context, SharedGalleryList) (SharedGalleryList, error)) SharedGalleryListPage { + return SharedGalleryListPage{ + fn: getNextPage, + sgl: cur, } } -// RunCommandParameterDefinition describes the properties of a run command parameter. -type RunCommandParameterDefinition struct { - // Name - The run command parameter name. - Name *string `json:"name,omitempty"` - // Type - The run command parameter type. - Type *string `json:"type,omitempty"` - // DefaultValue - The run command parameter default value. - DefaultValue *string `json:"defaultValue,omitempty"` - // Required - The run command parameter required. - Required *bool `json:"required,omitempty"` -} - -// RunCommandResult ... -type RunCommandResult struct { - autorest.Response `json:"-"` - // Value - Run command operation response. - Value *[]InstanceViewStatus `json:"value,omitempty"` +// ShareInfoElement ... +type ShareInfoElement struct { + // VMURI - READ-ONLY; A relative URI containing the ID of the VM that has the disk attached. + VMURI *string `json:"vmUri,omitempty"` } -// ScaleInPolicy describes a scale-in policy for a virtual machine scale set. -type ScaleInPolicy struct { - // Rules - The rules to be followed when scaling-in a virtual machine scale set.

    Possible values are:

    **Default** When a virtual machine scale set is scaled in, the scale set will first be balanced across zones if it is a zonal scale set. Then, it will be balanced across Fault Domains as far as possible. Within each Fault Domain, the virtual machines chosen for removal will be the newest ones that are not protected from scale-in.

    **OldestVM** When a virtual machine scale set is being scaled-in, the oldest virtual machines that are not protected from scale-in will be chosen for removal. For zonal virtual machine scale sets, the scale set will first be balanced across zones. Within each zone, the oldest virtual machines that are not protected will be chosen for removal.

    **NewestVM** When a virtual machine scale set is being scaled-in, the newest virtual machines that are not protected from scale-in will be chosen for removal. For zonal virtual machine scale sets, the scale set will first be balanced across zones. Within each zone, the newest virtual machines that are not protected will be chosen for removal.

    - Rules *[]VirtualMachineScaleSetScaleInRules `json:"rules,omitempty"` +// MarshalJSON is the custom marshaler for ShareInfoElement. +func (sie ShareInfoElement) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) } -// ScheduledEventsProfile ... -type ScheduledEventsProfile struct { - // TerminateNotificationProfile - Specifies Terminate Scheduled Event related configurations. - TerminateNotificationProfile *TerminateNotificationProfile `json:"terminateNotificationProfile,omitempty"` +// SharingProfile profile for gallery sharing to subscription or tenant +type SharingProfile struct { + // Permissions - This property allows you to specify the permission of sharing gallery.

    Possible values are:

    **Private**

    **Groups**. Possible values include: 'GallerySharingPermissionTypesPrivate', 'GallerySharingPermissionTypesGroups' + Permissions GallerySharingPermissionTypes `json:"permissions,omitempty"` + // Groups - READ-ONLY; A list of sharing profile groups. + Groups *[]SharingProfileGroup `json:"groups,omitempty"` } -// SecurityProfile specifies the Security profile settings for the virtual machine or virtual machine scale -// set. -type SecurityProfile struct { - // UefiSettings - Specifies the security settings like secure boot and vTPM used while creating the virtual machine.

    Minimum api-version: 2020-12-01 - UefiSettings *UefiSettings `json:"uefiSettings,omitempty"` - // EncryptionAtHost - This property can be used by user in the request to enable or disable the Host Encryption for the virtual machine or virtual machine scale set. This will enable the encryption for all the disks including Resource/Temp disk at host itself.

    Default: The Encryption at host will be disabled unless this property is set to true for the resource. - EncryptionAtHost *bool `json:"encryptionAtHost,omitempty"` - // SecurityType - Specifies the SecurityType of the virtual machine. It is set as TrustedLaunch to enable UefiSettings.

    Default: UefiSettings will not be enabled unless this property is set as TrustedLaunch. Possible values include: 'SecurityTypesTrustedLaunch' - SecurityType SecurityTypes `json:"securityType,omitempty"` +// MarshalJSON is the custom marshaler for SharingProfile. +func (sp SharingProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if sp.Permissions != "" { + objectMap["permissions"] = sp.Permissions + } + return json.Marshal(objectMap) } -// ShareInfoElement ... -type ShareInfoElement struct { - // VMURI - READ-ONLY; A relative URI containing the ID of the VM that has the disk attached. - VMURI *string `json:"vmUri,omitempty"` +// SharingProfileGroup group of the gallery sharing profile +type SharingProfileGroup struct { + // Type - This property allows you to specify the type of sharing group.

    Possible values are:

    **Subscriptions**

    **AADTenants**. Possible values include: 'SharingProfileGroupTypesSubscriptions', 'SharingProfileGroupTypesAADTenants' + Type SharingProfileGroupTypes `json:"type,omitempty"` + // Ids - A list of subscription/tenant ids the gallery is aimed to be shared to. + Ids *[]string `json:"ids,omitempty"` +} + +// SharingUpdate specifies information about the gallery sharing profile update. +type SharingUpdate struct { + autorest.Response `json:"-"` + // OperationType - This property allows you to specify the operation type of gallery sharing update.

    Possible values are:

    **Add**

    **Remove**

    **Reset**. Possible values include: 'SharingUpdateOperationTypesAdd', 'SharingUpdateOperationTypesRemove', 'SharingUpdateOperationTypesReset' + OperationType SharingUpdateOperationTypes `json:"operationType,omitempty"` + // Groups - A list of sharing profile groups. + Groups *[]SharingProfileGroup `json:"groups,omitempty"` } // Sku describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware @@ -11608,9 +13348,9 @@ func NewSnapshotListPage(cur SnapshotList, getNextPage func(context.Context, Sna type SnapshotProperties struct { // TimeCreated - READ-ONLY; The time when the snapshot was created. TimeCreated *date.Time `json:"timeCreated,omitempty"` - // OsType - The Operating System type. Possible values include: 'Windows', 'Linux' + // OsType - The Operating System type. Possible values include: 'OperatingSystemTypesWindows', 'OperatingSystemTypesLinux' OsType OperatingSystemTypes `json:"osType,omitempty"` - // HyperVGeneration - The hypervisor generation of the Virtual Machine. Applicable to OS disks only. Possible values include: 'V1', 'V2' + // HyperVGeneration - The hypervisor generation of the Virtual Machine. Applicable to OS disks only. Possible values include: 'HyperVGenerationV1', 'HyperVGenerationV2' HyperVGeneration HyperVGeneration `json:"hyperVGeneration,omitempty"` // PurchasePlan - Purchase plan information for the image from which the source disk for the snapshot was originally created. PurchasePlan *PurchasePlan `json:"purchasePlan,omitempty"` @@ -11620,7 +13360,7 @@ type SnapshotProperties struct { DiskSizeGB *int32 `json:"diskSizeGB,omitempty"` // DiskSizeBytes - READ-ONLY; The size of the disk in bytes. This field is read only. DiskSizeBytes *int64 `json:"diskSizeBytes,omitempty"` - // DiskState - The state of the snapshot. Possible values include: 'Unattached', 'Attached', 'Reserved', 'ActiveSAS', 'ReadyToUpload', 'ActiveUpload' + // DiskState - The state of the snapshot. Possible values include: 'DiskStateUnattached', 'DiskStateAttached', 'DiskStateReserved', 'DiskStateActiveSAS', 'DiskStateReadyToUpload', 'DiskStateActiveUpload' DiskState DiskState `json:"diskState,omitempty"` // UniqueID - READ-ONLY; Unique Guid identifying the resource. UniqueID *string `json:"uniqueId,omitempty"` @@ -11632,7 +13372,7 @@ type SnapshotProperties struct { Incremental *bool `json:"incremental,omitempty"` // Encryption - Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys. Encryption *Encryption `json:"encryption,omitempty"` - // NetworkAccessPolicy - Possible values include: 'AllowAll', 'AllowPrivate', 'DenyAll' + // NetworkAccessPolicy - Possible values include: 'NetworkAccessPolicyAllowAll', 'NetworkAccessPolicyAllowPrivate', 'NetworkAccessPolicyDenyAll' NetworkAccessPolicy NetworkAccessPolicy `json:"networkAccessPolicy,omitempty"` // DiskAccessID - ARM id of the DiskAccess resource for using private endpoints on disks. DiskAccessID *string `json:"diskAccessId,omitempty"` @@ -11971,7 +13711,7 @@ func (su *SnapshotUpdate) UnmarshalJSON(body []byte) error { // SnapshotUpdateProperties snapshot resource update properties. type SnapshotUpdateProperties struct { - // OsType - the Operating System type. Possible values include: 'Windows', 'Linux' + // OsType - the Operating System type. Possible values include: 'OperatingSystemTypesWindows', 'OperatingSystemTypesLinux' OsType OperatingSystemTypes `json:"osType,omitempty"` // DiskSizeGB - If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. DiskSizeGB *int32 `json:"diskSizeGB,omitempty"` @@ -11979,7 +13719,7 @@ type SnapshotUpdateProperties struct { EncryptionSettingsCollection *EncryptionSettingsCollection `json:"encryptionSettingsCollection,omitempty"` // Encryption - Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys. Encryption *Encryption `json:"encryption,omitempty"` - // NetworkAccessPolicy - Possible values include: 'AllowAll', 'AllowPrivate', 'DenyAll' + // NetworkAccessPolicy - Possible values include: 'NetworkAccessPolicyAllowAll', 'NetworkAccessPolicyAllowPrivate', 'NetworkAccessPolicyDenyAll' NetworkAccessPolicy NetworkAccessPolicy `json:"networkAccessPolicy,omitempty"` // DiskAccessID - ARM id of the DiskAccess resource for using private endpoints on disks. DiskAccessID *string `json:"diskAccessId,omitempty"` @@ -12005,7 +13745,7 @@ type SSHConfiguration struct { type SSHPublicKey struct { // Path - Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: /home/user/.ssh/authorized_keys Path *string `json:"path,omitempty"` - // KeyData - SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format.

    For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure](https://docs.microsoft.com/en-us/azure/virtual-machines/linux/mac-create-ssh-keys?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json). + // KeyData - SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format.

    For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed). KeyData *string `json:"keyData,omitempty"` } @@ -12348,13 +14088,19 @@ type StatusCodeCount struct { Count *int32 `json:"count,omitempty"` } +// MarshalJSON is the custom marshaler for StatusCodeCount. +func (scc StatusCodeCount) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageProfile specifies the storage settings for the virtual machine disks. type StorageProfile struct { // ImageReference - Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. ImageReference *ImageReference `json:"imageReference,omitempty"` - // OsDisk - Specifies information about the operating system disk used by the virtual machine.

    For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). + // OsDisk - Specifies information about the operating system disk used by the virtual machine.

    For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). OsDisk *OSDisk `json:"osDisk,omitempty"` - // DataDisks - Specifies the parameters that are used to add a data disk to a virtual machine.

    For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). + // DataDisks - Specifies the parameters that are used to add a data disk to a virtual machine.

    For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). DataDisks *[]DataDisk `json:"dataDisks,omitempty"` } @@ -12370,6 +14116,12 @@ type SubResourceReadOnly struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for SubResourceReadOnly. +func (srro SubResourceReadOnly) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SubResourceWithColocationStatus ... type SubResourceWithColocationStatus struct { // ColocationStatus - Describes colocation status of a resource in the Proximity Placement Group. @@ -12435,6 +14187,12 @@ type UpdateDomain struct { Name *string `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for UpdateDomain. +func (ud UpdateDomain) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpdateDomainListResult ... type UpdateDomainListResult struct { autorest.Response `json:"-"` @@ -12638,6 +14396,12 @@ type UpgradeOperationHistoricalStatusInfo struct { Location *string `json:"location,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeOperationHistoricalStatusInfo. +func (uohsi UpgradeOperationHistoricalStatusInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpgradeOperationHistoricalStatusInfoProperties describes each OS upgrade on the Virtual Machine Scale // Set. type UpgradeOperationHistoricalStatusInfoProperties struct { @@ -12655,6 +14419,12 @@ type UpgradeOperationHistoricalStatusInfoProperties struct { RollbackInfo *RollbackStatusInfo `json:"rollbackInfo,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeOperationHistoricalStatusInfoProperties. +func (uohsip UpgradeOperationHistoricalStatusInfoProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpgradeOperationHistoryStatus information about the current running state of the overall upgrade. type UpgradeOperationHistoryStatus struct { // Code - READ-ONLY; Code indicating the current status of the upgrade. Possible values include: 'UpgradeStateRollingForward', 'UpgradeStateCancelled', 'UpgradeStateCompleted', 'UpgradeStateFaulted' @@ -12665,6 +14435,12 @@ type UpgradeOperationHistoryStatus struct { EndTime *date.Time `json:"endTime,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeOperationHistoryStatus. +func (uohs UpgradeOperationHistoryStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpgradePolicy describes an upgrade policy - automatic, manual, or rolling. type UpgradePolicy struct { // Mode - Specifies the mode of an upgrade to virtual machines in the scale set.

    Possible values are:

    **Manual** - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.

    **Automatic** - All virtual machines in the scale set are automatically updated at the same time. Possible values include: 'UpgradeModeAutomatic', 'UpgradeModeManual', 'UpgradeModeRolling' @@ -12934,6 +14710,12 @@ type VirtualMachineAssessPatchesResult struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineAssessPatchesResult. +func (vmapr VirtualMachineAssessPatchesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineCaptureParameters capture Virtual Machine parameters. type VirtualMachineCaptureParameters struct { // VhdPrefix - The captured virtual hard disk's name prefix. @@ -13471,6 +15253,12 @@ type VirtualMachineHealthStatus struct { Status *InstanceViewStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineHealthStatus. +func (vmhs VirtualMachineHealthStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineIdentity identity for the virtual machine. type VirtualMachineIdentity struct { // PrincipalID - READ-ONLY; The principal id of virtual machine identity. This property will only be provided for a system assigned identity. @@ -13503,6 +15291,12 @@ type VirtualMachineIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineIdentityUserAssignedIdentitiesValue. +func (vmiAiv VirtualMachineIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineImage describes a Virtual Machine Image. type VirtualMachineImage struct { autorest.Response `json:"-"` @@ -13672,7 +15466,7 @@ func (vmir VirtualMachineImageResource) MarshalJSON() ([]byte, error) { type VirtualMachineInstallPatchesParameters struct { // MaximumDuration - Specifies the maximum amount of time that the operation will run. It must be an ISO 8601-compliant duration string such as PT4H (4 hours) MaximumDuration *string `json:"maximumDuration,omitempty"` - // RebootSetting - Defines when it is acceptable to reboot a VM during a software update operation. Possible values include: 'IfRequired', 'Never', 'Always' + // RebootSetting - Defines when it is acceptable to reboot a VM during a software update operation. Possible values include: 'VMGuestPatchRebootSettingIfRequired', 'VMGuestPatchRebootSettingNever', 'VMGuestPatchRebootSettingAlways' RebootSetting VMGuestPatchRebootSetting `json:"rebootSetting,omitempty"` // WindowsParameters - Input for InstallPatches on a Windows VM, as directly received by the API WindowsParameters *WindowsParameters `json:"windowsParameters,omitempty"` @@ -13709,6 +15503,12 @@ type VirtualMachineInstallPatchesResult struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineInstallPatchesResult. +func (vmipr VirtualMachineInstallPatchesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineInstanceView the instance view of a virtual machine. type VirtualMachineInstanceView struct { autorest.Response `json:"-"` @@ -13794,6 +15594,14 @@ func (vmiv VirtualMachineInstanceView) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } +// VirtualMachineIPTag contains the IP tag associated with the public IP address. +type VirtualMachineIPTag struct { + // IPTagType - IP tag type. Example: FirstPartyUsage. + IPTagType *string `json:"ipTagType,omitempty"` + // Tag - IP tag associated with the public IP. Example: SQL, Storage etc. + Tag *string `json:"tag,omitempty"` +} + // VirtualMachineListResult the List Virtual Machine operation response. type VirtualMachineListResult struct { autorest.Response `json:"-"` @@ -13953,6 +15761,160 @@ func NewVirtualMachineListResultPage(cur VirtualMachineListResult, getNextPage f } } +// VirtualMachineNetworkInterfaceConfiguration describes a virtual machine network interface +// configurations. +type VirtualMachineNetworkInterfaceConfiguration struct { + // Name - The network interface configuration name. + Name *string `json:"name,omitempty"` + *VirtualMachineNetworkInterfaceConfigurationProperties `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for VirtualMachineNetworkInterfaceConfiguration. +func (vmnic VirtualMachineNetworkInterfaceConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vmnic.Name != nil { + objectMap["name"] = vmnic.Name + } + if vmnic.VirtualMachineNetworkInterfaceConfigurationProperties != nil { + objectMap["properties"] = vmnic.VirtualMachineNetworkInterfaceConfigurationProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for VirtualMachineNetworkInterfaceConfiguration struct. +func (vmnic *VirtualMachineNetworkInterfaceConfiguration) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + vmnic.Name = &name + } + case "properties": + if v != nil { + var virtualMachineNetworkInterfaceConfigurationProperties VirtualMachineNetworkInterfaceConfigurationProperties + err = json.Unmarshal(*v, &virtualMachineNetworkInterfaceConfigurationProperties) + if err != nil { + return err + } + vmnic.VirtualMachineNetworkInterfaceConfigurationProperties = &virtualMachineNetworkInterfaceConfigurationProperties + } + } + } + + return nil +} + +// VirtualMachineNetworkInterfaceConfigurationProperties describes a virtual machine network profile's IP +// configuration. +type VirtualMachineNetworkInterfaceConfigurationProperties struct { + // Primary - Specifies the primary network interface in case the virtual machine has more than 1 network interface. + Primary *bool `json:"primary,omitempty"` + // DeleteOption - Specify what happens to the network interface when the VM is deleted. Possible values include: 'DeleteOptionsDelete', 'DeleteOptionsDetach' + DeleteOption DeleteOptions `json:"deleteOption,omitempty"` + // EnableAcceleratedNetworking - Specifies whether the network interface is accelerated networking-enabled. + EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"` + // EnableFpga - Specifies whether the network interface is FPGA networking-enabled. + EnableFpga *bool `json:"enableFpga,omitempty"` + // EnableIPForwarding - Whether IP forwarding enabled on this NIC. + EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"` + // NetworkSecurityGroup - The network security group. + NetworkSecurityGroup *SubResource `json:"networkSecurityGroup,omitempty"` + // DNSSettings - The dns settings to be applied on the network interfaces. + DNSSettings *VirtualMachineNetworkInterfaceDNSSettingsConfiguration `json:"dnsSettings,omitempty"` + // IPConfigurations - Specifies the IP configurations of the network interface. + IPConfigurations *[]VirtualMachineNetworkInterfaceIPConfiguration `json:"ipConfigurations,omitempty"` + DscpConfiguration *SubResource `json:"dscpConfiguration,omitempty"` +} + +// VirtualMachineNetworkInterfaceDNSSettingsConfiguration describes a virtual machines network +// configuration's DNS settings. +type VirtualMachineNetworkInterfaceDNSSettingsConfiguration struct { + // DNSServers - List of DNS servers IP addresses + DNSServers *[]string `json:"dnsServers,omitempty"` +} + +// VirtualMachineNetworkInterfaceIPConfiguration describes a virtual machine network profile's IP +// configuration. +type VirtualMachineNetworkInterfaceIPConfiguration struct { + // Name - The IP configuration name. + Name *string `json:"name,omitempty"` + *VirtualMachineNetworkInterfaceIPConfigurationProperties `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for VirtualMachineNetworkInterfaceIPConfiguration. +func (vmniic VirtualMachineNetworkInterfaceIPConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vmniic.Name != nil { + objectMap["name"] = vmniic.Name + } + if vmniic.VirtualMachineNetworkInterfaceIPConfigurationProperties != nil { + objectMap["properties"] = vmniic.VirtualMachineNetworkInterfaceIPConfigurationProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for VirtualMachineNetworkInterfaceIPConfiguration struct. +func (vmniic *VirtualMachineNetworkInterfaceIPConfiguration) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + vmniic.Name = &name + } + case "properties": + if v != nil { + var virtualMachineNetworkInterfaceIPConfigurationProperties VirtualMachineNetworkInterfaceIPConfigurationProperties + err = json.Unmarshal(*v, &virtualMachineNetworkInterfaceIPConfigurationProperties) + if err != nil { + return err + } + vmniic.VirtualMachineNetworkInterfaceIPConfigurationProperties = &virtualMachineNetworkInterfaceIPConfigurationProperties + } + } + } + + return nil +} + +// VirtualMachineNetworkInterfaceIPConfigurationProperties describes a virtual machine network interface IP +// configuration properties. +type VirtualMachineNetworkInterfaceIPConfigurationProperties struct { + // Subnet - Specifies the identifier of the subnet. + Subnet *SubResource `json:"subnet,omitempty"` + // Primary - Specifies the primary network interface in case the virtual machine has more than 1 network interface. + Primary *bool `json:"primary,omitempty"` + // PublicIPAddressConfiguration - The publicIPAddressConfiguration. + PublicIPAddressConfiguration *VirtualMachinePublicIPAddressConfiguration `json:"publicIPAddressConfiguration,omitempty"` + // PrivateIPAddressVersion - Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. Possible values include: 'IPVersionsIPv4', 'IPVersionsIPv6' + PrivateIPAddressVersion IPVersions `json:"privateIPAddressVersion,omitempty"` + // ApplicationSecurityGroups - Specifies an array of references to application security group. + ApplicationSecurityGroups *[]SubResource `json:"applicationSecurityGroups,omitempty"` + // ApplicationGatewayBackendAddressPools - Specifies an array of references to backend address pools of application gateways. A virtual machine can reference backend address pools of multiple application gateways. Multiple virtual machines cannot use the same application gateway. + ApplicationGatewayBackendAddressPools *[]SubResource `json:"applicationGatewayBackendAddressPools,omitempty"` + // LoadBalancerBackendAddressPools - Specifies an array of references to backend address pools of load balancers. A virtual machine can reference backend address pools of one public and one internal load balancer. [Multiple virtual machines cannot use the same basic sku load balancer]. + LoadBalancerBackendAddressPools *[]SubResource `json:"loadBalancerBackendAddressPools,omitempty"` +} + // VirtualMachinePatchStatus the status of virtual machine patch operations. type VirtualMachinePatchStatus struct { // AvailablePatchSummary - The available patch summary of the latest assessment operation for the virtual machine. @@ -13991,15 +15953,15 @@ type VirtualMachineProperties struct { SecurityProfile *SecurityProfile `json:"securityProfile,omitempty"` // DiagnosticsProfile - Specifies the boot diagnostic settings state.

    Minimum api-version: 2015-06-15. DiagnosticsProfile *DiagnosticsProfile `json:"diagnosticsProfile,omitempty"` - // AvailabilitySet - Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Manage the availability of virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).

    For more information on Azure planned maintenance, see [Planned maintenance for virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)

    Currently, a VM can only be added to availability set at creation time. The availability set to which the VM is being added should be under the same resource group as the availability set resource. An existing VM cannot be added to an availability set.

    This property cannot exist along with a non-null properties.virtualMachineScaleSet reference. + // AvailabilitySet - Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Availability sets overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview).

    For more information on Azure planned maintenance, see [Maintenance and updates for Virtual Machines in Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates)

    Currently, a VM can only be added to availability set at creation time. The availability set to which the VM is being added should be under the same resource group as the availability set resource. An existing VM cannot be added to an availability set.

    This property cannot exist along with a non-null properties.virtualMachineScaleSet reference. AvailabilitySet *SubResource `json:"availabilitySet,omitempty"` // VirtualMachineScaleSet - Specifies information about the virtual machine scale set that the virtual machine should be assigned to. Virtual machines specified in the same virtual machine scale set are allocated to different nodes to maximize availability. Currently, a VM can only be added to virtual machine scale set at creation time. An existing VM cannot be added to a virtual machine scale set.

    This property cannot exist along with a non-null properties.availabilitySet reference.

    Minimum api‐version: 2019‐03‐01 VirtualMachineScaleSet *SubResource `json:"virtualMachineScaleSet,omitempty"` // ProximityPlacementGroup - Specifies information about the proximity placement group that the virtual machine should be assigned to.

    Minimum api-version: 2018-04-01. ProximityPlacementGroup *SubResource `json:"proximityPlacementGroup,omitempty"` - // Priority - Specifies the priority for the virtual machine.

    Minimum api-version: 2019-03-01. Possible values include: 'Regular', 'Low', 'Spot' + // Priority - Specifies the priority for the virtual machine.

    Minimum api-version: 2019-03-01. Possible values include: 'VirtualMachinePriorityTypesRegular', 'VirtualMachinePriorityTypesLow', 'VirtualMachinePriorityTypesSpot' Priority VirtualMachinePriorityTypes `json:"priority,omitempty"` - // EvictionPolicy - Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set.

    For Azure Spot virtual machines, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01.

    For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2017-10-30-preview. Possible values include: 'Deallocate', 'Delete' + // EvictionPolicy - Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set.

    For Azure Spot virtual machines, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01.

    For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2017-10-30-preview. Possible values include: 'VirtualMachineEvictionPolicyTypesDeallocate', 'VirtualMachineEvictionPolicyTypesDelete' EvictionPolicy VirtualMachineEvictionPolicyTypes `json:"evictionPolicy,omitempty"` // BillingProfile - Specifies the billing related details of a Azure Spot virtual machine.

    Minimum api-version: 2019-03-01. BillingProfile *BillingProfile `json:"billingProfile,omitempty"` @@ -14019,6 +15981,10 @@ type VirtualMachineProperties struct { ExtensionsTimeBudget *string `json:"extensionsTimeBudget,omitempty"` // PlatformFaultDomain - Specifies the scale set logical fault domain into which the Virtual Machine will be created. By default, the Virtual Machine will by automatically assigned to a fault domain that best maintains balance across available fault domains.
  • This is applicable only if the 'virtualMachineScaleSet' property of this Virtual Machine is set.
  • The Virtual Machine Scale Set that is referenced, must have 'platformFaultDomainCount' > 1.
  • This property cannot be updated once the Virtual Machine is created.
  • Fault domain assignment can be viewed in the Virtual Machine Instance View.

    Minimum api‐version: 2020‐12‐01 PlatformFaultDomain *int32 `json:"platformFaultDomain,omitempty"` + // ScheduledEventsProfile - Specifies Scheduled Event related configurations. + ScheduledEventsProfile *ScheduledEventsProfile `json:"scheduledEventsProfile,omitempty"` + // UserData - UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here.

    Minimum api-version: 2021-03-01 + UserData *string `json:"userData,omitempty"` } // MarshalJSON is the custom marshaler for VirtualMachineProperties. @@ -14078,9 +16044,107 @@ func (vmp VirtualMachineProperties) MarshalJSON() ([]byte, error) { if vmp.PlatformFaultDomain != nil { objectMap["platformFaultDomain"] = vmp.PlatformFaultDomain } + if vmp.ScheduledEventsProfile != nil { + objectMap["scheduledEventsProfile"] = vmp.ScheduledEventsProfile + } + if vmp.UserData != nil { + objectMap["userData"] = vmp.UserData + } + return json.Marshal(objectMap) +} + +// VirtualMachinePublicIPAddressConfiguration describes a virtual machines IP Configuration's +// PublicIPAddress configuration +type VirtualMachinePublicIPAddressConfiguration struct { + // Name - The publicIP address configuration name. + Name *string `json:"name,omitempty"` + *VirtualMachinePublicIPAddressConfigurationProperties `json:"properties,omitempty"` + Sku *PublicIPAddressSku `json:"sku,omitempty"` +} + +// MarshalJSON is the custom marshaler for VirtualMachinePublicIPAddressConfiguration. +func (vmpiac VirtualMachinePublicIPAddressConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vmpiac.Name != nil { + objectMap["name"] = vmpiac.Name + } + if vmpiac.VirtualMachinePublicIPAddressConfigurationProperties != nil { + objectMap["properties"] = vmpiac.VirtualMachinePublicIPAddressConfigurationProperties + } + if vmpiac.Sku != nil { + objectMap["sku"] = vmpiac.Sku + } return json.Marshal(objectMap) } +// UnmarshalJSON is the custom unmarshaler for VirtualMachinePublicIPAddressConfiguration struct. +func (vmpiac *VirtualMachinePublicIPAddressConfiguration) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + vmpiac.Name = &name + } + case "properties": + if v != nil { + var virtualMachinePublicIPAddressConfigurationProperties VirtualMachinePublicIPAddressConfigurationProperties + err = json.Unmarshal(*v, &virtualMachinePublicIPAddressConfigurationProperties) + if err != nil { + return err + } + vmpiac.VirtualMachinePublicIPAddressConfigurationProperties = &virtualMachinePublicIPAddressConfigurationProperties + } + case "sku": + if v != nil { + var sku PublicIPAddressSku + err = json.Unmarshal(*v, &sku) + if err != nil { + return err + } + vmpiac.Sku = &sku + } + } + } + + return nil +} + +// VirtualMachinePublicIPAddressConfigurationProperties describes a virtual machines IP Configuration's +// PublicIPAddress configuration +type VirtualMachinePublicIPAddressConfigurationProperties struct { + // IdleTimeoutInMinutes - The idle timeout of the public IP address. + IdleTimeoutInMinutes *int32 `json:"idleTimeoutInMinutes,omitempty"` + // DeleteOption - Specify what happens to the public IP address when the VM is deleted. Possible values include: 'DeleteOptionsDelete', 'DeleteOptionsDetach' + DeleteOption DeleteOptions `json:"deleteOption,omitempty"` + // DNSSettings - The dns settings to be applied on the publicIP addresses . + DNSSettings *VirtualMachinePublicIPAddressDNSSettingsConfiguration `json:"dnsSettings,omitempty"` + // IPTags - The list of IP tags associated with the public IP address. + IPTags *[]VirtualMachineIPTag `json:"ipTags,omitempty"` + // PublicIPPrefix - The PublicIPPrefix from which to allocate publicIP addresses. + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + // PublicIPAddressVersion - Available from Api-Version 2019-07-01 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. Possible values include: 'IPVersionsIPv4', 'IPVersionsIPv6' + PublicIPAddressVersion IPVersions `json:"publicIPAddressVersion,omitempty"` + // PublicIPAllocationMethod - Specify the public IP allocation type. Possible values include: 'PublicIPAllocationMethodDynamic', 'PublicIPAllocationMethodStatic' + PublicIPAllocationMethod PublicIPAllocationMethod `json:"publicIPAllocationMethod,omitempty"` +} + +// VirtualMachinePublicIPAddressDNSSettingsConfiguration describes a virtual machines network +// configuration's DNS settings. +type VirtualMachinePublicIPAddressDNSSettingsConfiguration struct { + // DomainNameLabel - The Domain name label prefix of the PublicIPAddress resources that will be created. The generated name label is the concatenation of the domain name label and vm network profile unique ID. + DomainNameLabel *string `json:"domainNameLabel,omitempty"` +} + // VirtualMachineReimageParameters parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk // will always be reimaged type VirtualMachineReimageParameters struct { @@ -15374,6 +17438,12 @@ type VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue. +func (vmssiAiv VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetInstanceView the instance view of a virtual machine scale set. type VirtualMachineScaleSetInstanceView struct { autorest.Response `json:"-"` @@ -15403,6 +17473,12 @@ type VirtualMachineScaleSetInstanceViewStatusesSummary struct { StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetInstanceViewStatusesSummary. +func (vmssivss VirtualMachineScaleSetInstanceViewStatusesSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetIPConfiguration describes a virtual machine scale set network profile's IP // configuration. type VirtualMachineScaleSetIPConfiguration struct { @@ -15479,7 +17555,7 @@ type VirtualMachineScaleSetIPConfigurationProperties struct { Primary *bool `json:"primary,omitempty"` // PublicIPAddressConfiguration - The publicIPAddressConfiguration. PublicIPAddressConfiguration *VirtualMachineScaleSetPublicIPAddressConfiguration `json:"publicIPAddressConfiguration,omitempty"` - // PrivateIPAddressVersion - Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', 'IPv6' + // PrivateIPAddressVersion - Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. Possible values include: 'IPVersionIPv4', 'IPVersionIPv6' PrivateIPAddressVersion IPVersion `json:"privateIPAddressVersion,omitempty"` // ApplicationGatewayBackendAddressPools - Specifies an array of references to backend address pools of application gateways. A scale set can reference backend address pools of multiple application gateways. Multiple scale sets cannot use the same application gateway. ApplicationGatewayBackendAddressPools *[]SubResource `json:"applicationGatewayBackendAddressPools,omitempty"` @@ -16240,6 +18316,8 @@ type VirtualMachineScaleSetNetworkConfigurationProperties struct { IPConfigurations *[]VirtualMachineScaleSetIPConfiguration `json:"ipConfigurations,omitempty"` // EnableIPForwarding - Whether IP forwarding enabled on this NIC. EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"` + // DeleteOption - Specify what happens to the network interface when the VM is deleted. Possible values include: 'DeleteOptionsDelete', 'DeleteOptionsDetach' + DeleteOption DeleteOptions `json:"deleteOption,omitempty"` } // VirtualMachineScaleSetNetworkProfile describes a virtual machine scale set network profile. @@ -16248,6 +18326,8 @@ type VirtualMachineScaleSetNetworkProfile struct { HealthProbe *APIEntityReference `json:"healthProbe,omitempty"` // NetworkInterfaceConfigurations - The list of network configurations. NetworkInterfaceConfigurations *[]VirtualMachineScaleSetNetworkConfiguration `json:"networkInterfaceConfigurations,omitempty"` + // NetworkAPIVersion - specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations for Virtual Machine Scale Set with orchestration mode 'Flexible'. Possible values include: 'NetworkAPIVersionTwoZeroTwoZeroHyphenMinusOneOneHyphenMinusZeroOne' + NetworkAPIVersion NetworkAPIVersion `json:"networkApiVersion,omitempty"` } // VirtualMachineScaleSetOSDisk describes a virtual machine scale set operating system disk. @@ -16264,7 +18344,7 @@ type VirtualMachineScaleSetOSDisk struct { DiffDiskSettings *DiffDiskSettings `json:"diffDiskSettings,omitempty"` // DiskSizeGB - Specifies the size of the operating system disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image.

    This value cannot be larger than 1023 GB DiskSizeGB *int32 `json:"diskSizeGB,omitempty"` - // OsType - This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD.

    Possible values are:

    **Windows**

    **Linux**. Possible values include: 'Windows', 'Linux' + // OsType - This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD.

    Possible values are:

    **Windows**

    **Linux**. Possible values include: 'OperatingSystemTypesWindows', 'OperatingSystemTypesLinux' OsType OperatingSystemTypes `json:"osType,omitempty"` // Image - Specifies information about the unmanaged user image to base the scale set on. Image *VirtualHardDisk `json:"image,omitempty"` @@ -16278,15 +18358,15 @@ type VirtualMachineScaleSetOSDisk struct { type VirtualMachineScaleSetOSProfile struct { // ComputerNamePrefix - Specifies the computer name prefix for all of the virtual machines in the scale set. Computer name prefixes must be 1 to 15 characters long. ComputerNamePrefix *string `json:"computerNamePrefix,omitempty"` - // AdminUsername - Specifies the name of the administrator account.

    **Windows-only restriction:** Cannot end in "."

    **Disallowed values:** "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5".

    **Minimum-length (Linux):** 1 character

    **Max-length (Linux):** 64 characters

    **Max-length (Windows):** 20 characters

  • For root access to the Linux VM, see [Using root privileges on Linux virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-use-root-privileges?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
  • For a list of built-in system users on Linux that should not be used in this field, see [Selecting User Names for Linux on Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-usernames?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json) + // AdminUsername - Specifies the name of the administrator account.

    **Windows-only restriction:** Cannot end in "."

    **Disallowed values:** "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5".

    **Minimum-length (Linux):** 1 character

    **Max-length (Linux):** 64 characters

    **Max-length (Windows):** 20 characters AdminUsername *string `json:"adminUsername,omitempty"` - // AdminPassword - Specifies the password of the administrator account.

    **Minimum-length (Windows):** 8 characters

    **Minimum-length (Linux):** 6 characters

    **Max-length (Windows):** 123 characters

    **Max-length (Linux):** 72 characters

    **Complexity requirements:** 3 out of 4 conditions below need to be fulfilled
    Has lower characters
    Has upper characters
    Has a digit
    Has a special character (Regex match [\W_])

    **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!"

    For resetting the password, see [How to reset the Remote Desktop service or its login password in a Windows VM](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-reset-rdp?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)

    For resetting root password, see [Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-vmaccess-extension?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#reset-root-password) + // AdminPassword - Specifies the password of the administrator account.

    **Minimum-length (Windows):** 8 characters

    **Minimum-length (Linux):** 6 characters

    **Max-length (Windows):** 123 characters

    **Max-length (Linux):** 72 characters

    **Complexity requirements:** 3 out of 4 conditions below need to be fulfilled
    Has lower characters
    Has upper characters
    Has a digit
    Has a special character (Regex match [\W_])

    **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!"

    For resetting the password, see [How to reset the Remote Desktop service or its login password in a Windows VM](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/reset-rdp)

    For resetting root password, see [Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection) AdminPassword *string `json:"adminPassword,omitempty"` - // CustomData - Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes.

    For using cloud-init for your VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-cloud-init?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json) + // CustomData - Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes.

    For using cloud-init for your VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/linux/using-cloud-init) CustomData *string `json:"customData,omitempty"` // WindowsConfiguration - Specifies Windows operating system settings on the virtual machine. WindowsConfiguration *WindowsConfiguration `json:"windowsConfiguration,omitempty"` - // LinuxConfiguration - Specifies the Linux operating system settings on the virtual machine.

    For a list of supported Linux distributions, see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-endorsed-distros?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)

    For running non-endorsed distributions, see [Information for Non-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-create-upload-generic?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json). + // LinuxConfiguration - Specifies the Linux operating system settings on the virtual machine.

    For a list of supported Linux distributions, see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros). LinuxConfiguration *LinuxConfiguration `json:"linuxConfiguration,omitempty"` // Secrets - Specifies set of certificates that should be installed onto the virtual machines in the scale set. Secrets *[]VaultSecretGroup `json:"secrets,omitempty"` @@ -16322,7 +18402,7 @@ type VirtualMachineScaleSetProperties struct { AdditionalCapabilities *AdditionalCapabilities `json:"additionalCapabilities,omitempty"` // ScaleInPolicy - Specifies the scale-in policy that decides which virtual machines are chosen for removal when a Virtual Machine Scale Set is scaled-in. ScaleInPolicy *ScaleInPolicy `json:"scaleInPolicy,omitempty"` - // OrchestrationMode - Specifies the orchestration mode for the virtual machine scale set. Possible values include: 'Uniform', 'Flexible' + // OrchestrationMode - Specifies the orchestration mode for the virtual machine scale set. Possible values include: 'OrchestrationModeUniform', 'OrchestrationModeFlexible' OrchestrationMode OrchestrationMode `json:"orchestrationMode,omitempty"` } @@ -16377,6 +18457,7 @@ type VirtualMachineScaleSetPublicIPAddressConfiguration struct { // Name - The publicIP address configuration name. Name *string `json:"name,omitempty"` *VirtualMachineScaleSetPublicIPAddressConfigurationProperties `json:"properties,omitempty"` + Sku *PublicIPAddressSku `json:"sku,omitempty"` } // MarshalJSON is the custom marshaler for VirtualMachineScaleSetPublicIPAddressConfiguration. @@ -16388,6 +18469,9 @@ func (vmsspiac VirtualMachineScaleSetPublicIPAddressConfiguration) MarshalJSON() if vmsspiac.VirtualMachineScaleSetPublicIPAddressConfigurationProperties != nil { objectMap["properties"] = vmsspiac.VirtualMachineScaleSetPublicIPAddressConfigurationProperties } + if vmsspiac.Sku != nil { + objectMap["sku"] = vmsspiac.Sku + } return json.Marshal(objectMap) } @@ -16418,6 +18502,15 @@ func (vmsspiac *VirtualMachineScaleSetPublicIPAddressConfiguration) UnmarshalJSO } vmsspiac.VirtualMachineScaleSetPublicIPAddressConfigurationProperties = &virtualMachineScaleSetPublicIPAddressConfigurationProperties } + case "sku": + if v != nil { + var sku PublicIPAddressSku + err = json.Unmarshal(*v, &sku) + if err != nil { + return err + } + vmsspiac.Sku = &sku + } } } @@ -16442,8 +18535,10 @@ type VirtualMachineScaleSetPublicIPAddressConfigurationProperties struct { IPTags *[]VirtualMachineScaleSetIPTag `json:"ipTags,omitempty"` // PublicIPPrefix - The PublicIPPrefix from which to allocate publicIP addresses. PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` - // PublicIPAddressVersion - Available from Api-Version 2019-07-01 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', 'IPv6' + // PublicIPAddressVersion - Available from Api-Version 2019-07-01 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. Possible values include: 'IPVersionIPv4', 'IPVersionIPv6' PublicIPAddressVersion IPVersion `json:"publicIPAddressVersion,omitempty"` + // DeleteOption - Specify what happens to the public IP when the VM is deleted. Possible values include: 'DeleteOptionsDelete', 'DeleteOptionsDetach' + DeleteOption DeleteOptions `json:"deleteOption,omitempty"` } // VirtualMachineScaleSetReimageParameters describes a Virtual Machine Scale Set VM Reimage Parameters. @@ -16729,6 +18824,12 @@ type VirtualMachineScaleSetSku struct { Capacity *VirtualMachineScaleSetSkuCapacity `json:"capacity,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetSku. +func (vmsss VirtualMachineScaleSetSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetSkuCapacity describes scaling information of a sku. type VirtualMachineScaleSetSkuCapacity struct { // Minimum - READ-ONLY; The minimum capacity. @@ -16741,6 +18842,12 @@ type VirtualMachineScaleSetSkuCapacity struct { ScaleType VirtualMachineScaleSetSkuScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetSkuCapacity. +func (vmsssc VirtualMachineScaleSetSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetsPerformMaintenanceFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type VirtualMachineScaleSetsPerformMaintenanceFuture struct { @@ -17041,9 +19148,9 @@ func (future *VirtualMachineScaleSetsStartFuture) result(client VirtualMachineSc type VirtualMachineScaleSetStorageProfile struct { // ImageReference - Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. ImageReference *ImageReference `json:"imageReference,omitempty"` - // OsDisk - Specifies information about the operating system disk used by the virtual machines in the scale set.

    For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). + // OsDisk - Specifies information about the operating system disk used by the virtual machines in the scale set.

    For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). OsDisk *VirtualMachineScaleSetOSDisk `json:"osDisk,omitempty"` - // DataDisks - Specifies the parameters that are used to add data disks to the virtual machines in the scale set.

    For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). + // DataDisks - Specifies the parameters that are used to add data disks to the virtual machines in the scale set.

    For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). DataDisks *[]VirtualMachineScaleSetDataDisk `json:"dataDisks,omitempty"` } @@ -17298,7 +19405,7 @@ type VirtualMachineScaleSetUpdateIPConfigurationProperties struct { Primary *bool `json:"primary,omitempty"` // PublicIPAddressConfiguration - The publicIPAddressConfiguration. PublicIPAddressConfiguration *VirtualMachineScaleSetUpdatePublicIPAddressConfiguration `json:"publicIPAddressConfiguration,omitempty"` - // PrivateIPAddressVersion - Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', 'IPv6' + // PrivateIPAddressVersion - Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. Possible values include: 'IPVersionIPv4', 'IPVersionIPv6' PrivateIPAddressVersion IPVersion `json:"privateIPAddressVersion,omitempty"` // ApplicationGatewayBackendAddressPools - The application gateway backend address pools. ApplicationGatewayBackendAddressPools *[]SubResource `json:"applicationGatewayBackendAddressPools,omitempty"` @@ -17395,6 +19502,8 @@ type VirtualMachineScaleSetUpdateNetworkConfigurationProperties struct { IPConfigurations *[]VirtualMachineScaleSetUpdateIPConfiguration `json:"ipConfigurations,omitempty"` // EnableIPForwarding - Whether IP forwarding enabled on this NIC. EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"` + // DeleteOption - Specify what happens to the network interface when the VM is deleted. Possible values include: 'DeleteOptionsDelete', 'DeleteOptionsDetach' + DeleteOption DeleteOptions `json:"deleteOption,omitempty"` } // VirtualMachineScaleSetUpdateNetworkProfile describes a virtual machine scale set network profile. @@ -17403,6 +19512,8 @@ type VirtualMachineScaleSetUpdateNetworkProfile struct { HealthProbe *APIEntityReference `json:"healthProbe,omitempty"` // NetworkInterfaceConfigurations - The list of network configurations. NetworkInterfaceConfigurations *[]VirtualMachineScaleSetUpdateNetworkConfiguration `json:"networkInterfaceConfigurations,omitempty"` + // NetworkAPIVersion - specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations for Virtual Machine Scale Set with orchestration mode 'Flexible'. Possible values include: 'NetworkAPIVersionTwoZeroTwoZeroHyphenMinusOneOneHyphenMinusZeroOne' + NetworkAPIVersion NetworkAPIVersion `json:"networkApiVersion,omitempty"` } // VirtualMachineScaleSetUpdateOSDisk describes virtual machine scale set operating system disk Update @@ -17516,6 +19627,8 @@ type VirtualMachineScaleSetUpdatePublicIPAddressConfigurationProperties struct { IdleTimeoutInMinutes *int32 `json:"idleTimeoutInMinutes,omitempty"` // DNSSettings - The dns settings to be applied on the publicIP addresses . DNSSettings *VirtualMachineScaleSetPublicIPAddressConfigurationDNSSettings `json:"dnsSettings,omitempty"` + // DeleteOption - Specify what happens to the public IP when the VM is deleted. Possible values include: 'DeleteOptionsDelete', 'DeleteOptionsDetach' + DeleteOption DeleteOptions `json:"deleteOption,omitempty"` } // VirtualMachineScaleSetUpdateStorageProfile describes a virtual machine scale set storage profile. @@ -17548,6 +19661,8 @@ type VirtualMachineScaleSetUpdateVMProfile struct { BillingProfile *BillingProfile `json:"billingProfile,omitempty"` // ScheduledEventsProfile - Specifies Scheduled Event related configurations. ScheduledEventsProfile *ScheduledEventsProfile `json:"scheduledEventsProfile,omitempty"` + // UserData - UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here.

    Minimum api-version: 2021-03-01 + UserData *string `json:"userData,omitempty"` } // VirtualMachineScaleSetVM describes a virtual machine scale set virtual machine. @@ -17876,6 +19991,12 @@ type VirtualMachineScaleSetVMExtensionsSummary struct { StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetVMExtensionsSummary. +func (vmssves VirtualMachineScaleSetVMExtensionsSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetVMExtensionsUpdateFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type VirtualMachineScaleSetVMExtensionsUpdateFuture struct { @@ -18252,14 +20373,16 @@ type VirtualMachineScaleSetVMProfile struct { ExtensionProfile *VirtualMachineScaleSetExtensionProfile `json:"extensionProfile,omitempty"` // LicenseType - Specifies that the image or disk that is being used was licensed on-premises.

    Possible values for Windows Server operating system are:

    Windows_Client

    Windows_Server

    Possible values for Linux Server operating system are:

    RHEL_BYOS (for RHEL)

    SLES_BYOS (for SUSE)

    For more information, see [Azure Hybrid Use Benefit for Windows Server](https://docs.microsoft.com/azure/virtual-machines/windows/hybrid-use-benefit-licensing)

    [Azure Hybrid Use Benefit for Linux Server](https://docs.microsoft.com/azure/virtual-machines/linux/azure-hybrid-benefit-linux)

    Minimum api-version: 2015-06-15 LicenseType *string `json:"licenseType,omitempty"` - // Priority - Specifies the priority for the virtual machines in the scale set.

    Minimum api-version: 2017-10-30-preview. Possible values include: 'Regular', 'Low', 'Spot' + // Priority - Specifies the priority for the virtual machines in the scale set.

    Minimum api-version: 2017-10-30-preview. Possible values include: 'VirtualMachinePriorityTypesRegular', 'VirtualMachinePriorityTypesLow', 'VirtualMachinePriorityTypesSpot' Priority VirtualMachinePriorityTypes `json:"priority,omitempty"` - // EvictionPolicy - Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set.

    For Azure Spot virtual machines, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01.

    For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2017-10-30-preview. Possible values include: 'Deallocate', 'Delete' + // EvictionPolicy - Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set.

    For Azure Spot virtual machines, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01.

    For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2017-10-30-preview. Possible values include: 'VirtualMachineEvictionPolicyTypesDeallocate', 'VirtualMachineEvictionPolicyTypesDelete' EvictionPolicy VirtualMachineEvictionPolicyTypes `json:"evictionPolicy,omitempty"` // BillingProfile - Specifies the billing related details of a Azure Spot VMSS.

    Minimum api-version: 2019-03-01. BillingProfile *BillingProfile `json:"billingProfile,omitempty"` // ScheduledEventsProfile - Specifies Scheduled Event related configurations. ScheduledEventsProfile *ScheduledEventsProfile `json:"scheduledEventsProfile,omitempty"` + // UserData - UserData for the virtual machines in the scale set, which must be base-64 encoded. Customer should not pass any secrets in here.

    Minimum api-version: 2021-03-01 + UserData *string `json:"userData,omitempty"` } // VirtualMachineScaleSetVMProperties describes the properties of a virtual machine scale set virtual @@ -18287,7 +20410,7 @@ type VirtualMachineScaleSetVMProperties struct { NetworkProfileConfiguration *VirtualMachineScaleSetVMNetworkProfileConfiguration `json:"networkProfileConfiguration,omitempty"` // DiagnosticsProfile - Specifies the boot diagnostic settings state.

    Minimum api-version: 2015-06-15. DiagnosticsProfile *DiagnosticsProfile `json:"diagnosticsProfile,omitempty"` - // AvailabilitySet - Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Manage the availability of virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).

    For more information on Azure planned maintenance, see [Planned maintenance for virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)

    Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. + // AvailabilitySet - Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Availability sets overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview).

    For more information on Azure planned maintenance, see [Maintenance and updates for Virtual Machines in Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates)

    Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. AvailabilitySet *SubResource `json:"availabilitySet,omitempty"` // ProvisioningState - READ-ONLY; The provisioning state, which only appears in the response. ProvisioningState *string `json:"provisioningState,omitempty"` @@ -18297,6 +20420,8 @@ type VirtualMachineScaleSetVMProperties struct { ModelDefinitionApplied *string `json:"modelDefinitionApplied,omitempty"` // ProtectionPolicy - Specifies the protection policy of the virtual machine. ProtectionPolicy *VirtualMachineScaleSetVMProtectionPolicy `json:"protectionPolicy,omitempty"` + // UserData - UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here.

    Minimum api-version: 2021-03-01 + UserData *string `json:"userData,omitempty"` } // MarshalJSON is the custom marshaler for VirtualMachineScaleSetVMProperties. @@ -18335,6 +20460,9 @@ func (vmssvp VirtualMachineScaleSetVMProperties) MarshalJSON() ([]byte, error) { if vmssvp.ProtectionPolicy != nil { objectMap["protectionPolicy"] = vmssvp.ProtectionPolicy } + if vmssvp.UserData != nil { + objectMap["userData"] = vmssvp.UserData + } return json.Marshal(objectMap) } @@ -19138,7 +21266,7 @@ func (future *VirtualMachinesInstallPatchesFuture) result(client VirtualMachines type VirtualMachineSize struct { // Name - The name of the virtual machine size. Name *string `json:"name,omitempty"` - // NumberOfCores - The number of cores supported by the virtual machine size. + // NumberOfCores - The number of cores supported by the virtual machine size. For Constrained vCPU capable VM sizes, this number represents the total vCPUs of quota that the VM uses. For accurate vCPU count, please refer to https://docs.microsoft.com/azure/virtual-machines/constrained-vcpu or https://docs.microsoft.com/rest/api/compute/resourceskus/list NumberOfCores *int32 `json:"numberOfCores,omitempty"` // OsDiskSizeInMB - The OS disk size, in MB, allowed by the virtual machine size. OsDiskSizeInMB *int32 `json:"osDiskSizeInMB,omitempty"` @@ -19181,6 +21309,12 @@ type VirtualMachineSoftwarePatchProperties struct { AssessmentState PatchAssessmentState `json:"assessmentState,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineSoftwarePatchProperties. +func (vmspp VirtualMachineSoftwarePatchProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachinesPerformMaintenanceFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type VirtualMachinesPerformMaintenanceFuture struct { @@ -19492,6 +21626,12 @@ type VirtualMachineStatusCodeCount struct { Count *int32 `json:"count,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineStatusCodeCount. +func (vmscc VirtualMachineStatusCodeCount) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachinesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type VirtualMachinesUpdateFuture struct { @@ -19641,7 +21781,7 @@ type WindowsConfiguration struct { ProvisionVMAgent *bool `json:"provisionVMAgent,omitempty"` // EnableAutomaticUpdates - Indicates whether Automatic Updates is enabled for the Windows virtual machine. Default value is true.

    For virtual machine scale sets, this property can be updated and updates will take effect on OS reprovisioning. EnableAutomaticUpdates *bool `json:"enableAutomaticUpdates,omitempty"` - // TimeZone - Specifies the time zone of the virtual machine. e.g. "Pacific Standard Time".

    Possible values can be [TimeZoneInfo.Id](https://docs.microsoft.com/en-us/dotnet/api/system.timezoneinfo.id?#System_TimeZoneInfo_Id) value from time zones returned by [TimeZoneInfo.GetSystemTimeZones](https://docs.microsoft.com/en-us/dotnet/api/system.timezoneinfo.getsystemtimezones). + // TimeZone - Specifies the time zone of the virtual machine. e.g. "Pacific Standard Time".

    Possible values can be [TimeZoneInfo.Id](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.id?#System_TimeZoneInfo_Id) value from time zones returned by [TimeZoneInfo.GetSystemTimeZones](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.getsystemtimezones). TimeZone *string `json:"timeZone,omitempty"` // AdditionalUnattendContent - Specifies additional base-64 encoded XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. AdditionalUnattendContent *[]AdditionalUnattendContent `json:"additionalUnattendContent,omitempty"` @@ -19673,7 +21813,7 @@ type WinRMConfiguration struct { // WinRMListener describes Protocol and thumbprint of Windows Remote Management listener type WinRMListener struct { - // Protocol - Specifies the protocol of WinRM listener.

    Possible values are:
    **http**

    **https**. Possible values include: 'HTTP', 'HTTPS' + // Protocol - Specifies the protocol of WinRM listener.

    Possible values are:
    **http**

    **https**. Possible values include: 'ProtocolTypesHTTP', 'ProtocolTypesHTTPS' Protocol ProtocolTypes `json:"protocol,omitempty"` // CertificateURL - This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see [Add a key or secret to the key vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add). In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded in UTF-8:

    {
    "data":"",
    "dataType":"pfx",
    "password":""
    } CertificateURL *string `json:"certificateUrl,omitempty"` diff --git a/services/compute/mgmt/2021-03-01/compute/operations.go b/services/compute/mgmt/2021-03-01/compute/operations.go index 2fbe19560a79..70c3607cd742 100644 --- a/services/compute/mgmt/2021-03-01/compute/operations.go +++ b/services/compute/mgmt/2021-03-01/compute/operations.go @@ -66,7 +66,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe // ListPreparer prepares the List request. func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) { - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/services/compute/mgmt/2021-03-01/compute/proximityplacementgroups.go b/services/compute/mgmt/2021-03-01/compute/proximityplacementgroups.go index efc93754a8cb..931976c7a4dd 100644 --- a/services/compute/mgmt/2021-03-01/compute/proximityplacementgroups.go +++ b/services/compute/mgmt/2021-03-01/compute/proximityplacementgroups.go @@ -77,7 +77,7 @@ func (client ProximityPlacementGroupsClient) CreateOrUpdatePreparer(ctx context. "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -155,7 +155,7 @@ func (client ProximityPlacementGroupsClient) DeletePreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -232,7 +232,7 @@ func (client ProximityPlacementGroupsClient) GetPreparer(ctx context.Context, re "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -314,7 +314,7 @@ func (client ProximityPlacementGroupsClient) ListByResourceGroupPreparer(ctx con "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -427,7 +427,7 @@ func (client ProximityPlacementGroupsClient) ListBySubscriptionPreparer(ctx cont "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -541,7 +541,7 @@ func (client ProximityPlacementGroupsClient) UpdatePreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/services/compute/mgmt/2021-03-01/compute/restorepointcollections.go b/services/compute/mgmt/2021-03-01/compute/restorepointcollections.go new file mode 100644 index 000000000000..0fbe5d021da6 --- /dev/null +++ b/services/compute/mgmt/2021-03-01/compute/restorepointcollections.go @@ -0,0 +1,581 @@ +package compute + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// RestorePointCollectionsClient is the compute Client +type RestorePointCollectionsClient struct { + BaseClient +} + +// NewRestorePointCollectionsClient creates an instance of the RestorePointCollectionsClient client. +func NewRestorePointCollectionsClient(subscriptionID string) RestorePointCollectionsClient { + return NewRestorePointCollectionsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewRestorePointCollectionsClientWithBaseURI creates an instance of the RestorePointCollectionsClient client using a +// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, +// Azure stack). +func NewRestorePointCollectionsClientWithBaseURI(baseURI string, subscriptionID string) RestorePointCollectionsClient { + return RestorePointCollectionsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate the operation to create or update the restore point collection. Please refer to +// https://aka.ms/RestorePoints for more details. When updating a restore point collection, only tags may be modified. +// Parameters: +// resourceGroupName - the name of the resource group. +// restorePointCollectionName - the name of the restore point collection. +// parameters - parameters supplied to the Create or Update restore point collection operation. +func (client RestorePointCollectionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, restorePointCollectionName string, parameters RestorePointCollection) (result RestorePointCollection, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RestorePointCollectionsClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, restorePointCollectionName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.RestorePointCollectionsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + resp, err := client.CreateOrUpdateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "compute.RestorePointCollectionsClient", "CreateOrUpdate", resp, "Failure sending request") + return + } + + result, err = client.CreateOrUpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.RestorePointCollectionsClient", "CreateOrUpdate", resp, "Failure responding to request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client RestorePointCollectionsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, restorePointCollectionName string, parameters RestorePointCollection) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "restorePointCollectionName": autorest.Encode("path", restorePointCollectionName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-03-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client RestorePointCollectionsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client RestorePointCollectionsClient) CreateOrUpdateResponder(resp *http.Response) (result RestorePointCollection, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete the operation to delete the restore point collection. This operation will also delete all the contained +// restore points. +// Parameters: +// resourceGroupName - the name of the resource group. +// restorePointCollectionName - the name of the Restore Point Collection. +func (client RestorePointCollectionsClient) Delete(ctx context.Context, resourceGroupName string, restorePointCollectionName string) (result RestorePointCollectionsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RestorePointCollectionsClient.Delete") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, restorePointCollectionName) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.RestorePointCollectionsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.RestorePointCollectionsClient", "Delete", nil, "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client RestorePointCollectionsClient) DeletePreparer(ctx context.Context, resourceGroupName string, restorePointCollectionName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "restorePointCollectionName": autorest.Encode("path", restorePointCollectionName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-03-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client RestorePointCollectionsClient) DeleteSender(req *http.Request) (future RestorePointCollectionsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client RestorePointCollectionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get the operation to get the restore point collection. +// Parameters: +// resourceGroupName - the name of the resource group. +// restorePointCollectionName - the name of the restore point collection. +// expand - the expand expression to apply on the operation. If expand=restorePoints, server will return all +// contained restore points in the restorePointCollection. +func (client RestorePointCollectionsClient) Get(ctx context.Context, resourceGroupName string, restorePointCollectionName string, expand RestorePointCollectionExpandOptions) (result RestorePointCollection, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RestorePointCollectionsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, restorePointCollectionName, expand) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.RestorePointCollectionsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "compute.RestorePointCollectionsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.RestorePointCollectionsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client RestorePointCollectionsClient) GetPreparer(ctx context.Context, resourceGroupName string, restorePointCollectionName string, expand RestorePointCollectionExpandOptions) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "restorePointCollectionName": autorest.Encode("path", restorePointCollectionName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-03-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(string(expand)) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client RestorePointCollectionsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client RestorePointCollectionsClient) GetResponder(resp *http.Response) (result RestorePointCollection, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets the list of restore point collections in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +func (client RestorePointCollectionsClient) List(ctx context.Context, resourceGroupName string) (result RestorePointCollectionListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RestorePointCollectionsClient.List") + defer func() { + sc := -1 + if result.rpclr.Response.Response != nil { + sc = result.rpclr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.RestorePointCollectionsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.rpclr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "compute.RestorePointCollectionsClient", "List", resp, "Failure sending request") + return + } + + result.rpclr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.RestorePointCollectionsClient", "List", resp, "Failure responding to request") + return + } + if result.rpclr.hasNextLink() && result.rpclr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client RestorePointCollectionsClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-03-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client RestorePointCollectionsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client RestorePointCollectionsClient) ListResponder(resp *http.Response) (result RestorePointCollectionListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client RestorePointCollectionsClient) listNextResults(ctx context.Context, lastResults RestorePointCollectionListResult) (result RestorePointCollectionListResult, err error) { + req, err := lastResults.restorePointCollectionListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "compute.RestorePointCollectionsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "compute.RestorePointCollectionsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.RestorePointCollectionsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client RestorePointCollectionsClient) ListComplete(ctx context.Context, resourceGroupName string) (result RestorePointCollectionListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RestorePointCollectionsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName) + return +} + +// ListAll gets the list of restore point collections in the subscription. Use nextLink property in the response to get +// the next page of restore point collections. Do this till nextLink is not null to fetch all the restore point +// collections. +func (client RestorePointCollectionsClient) ListAll(ctx context.Context) (result RestorePointCollectionListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RestorePointCollectionsClient.ListAll") + defer func() { + sc := -1 + if result.rpclr.Response.Response != nil { + sc = result.rpclr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listAllNextResults + req, err := client.ListAllPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.RestorePointCollectionsClient", "ListAll", nil, "Failure preparing request") + return + } + + resp, err := client.ListAllSender(req) + if err != nil { + result.rpclr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "compute.RestorePointCollectionsClient", "ListAll", resp, "Failure sending request") + return + } + + result.rpclr, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.RestorePointCollectionsClient", "ListAll", resp, "Failure responding to request") + return + } + if result.rpclr.hasNextLink() && result.rpclr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListAllPreparer prepares the ListAll request. +func (client RestorePointCollectionsClient) ListAllPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-03-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/restorePointCollections", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListAllSender sends the ListAll request. The method will close the +// http.Response Body if it receives an error. +func (client RestorePointCollectionsClient) ListAllSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListAllResponder handles the response to the ListAll request. The method always +// closes the http.Response Body. +func (client RestorePointCollectionsClient) ListAllResponder(resp *http.Response) (result RestorePointCollectionListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listAllNextResults retrieves the next set of results, if any. +func (client RestorePointCollectionsClient) listAllNextResults(ctx context.Context, lastResults RestorePointCollectionListResult) (result RestorePointCollectionListResult, err error) { + req, err := lastResults.restorePointCollectionListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "compute.RestorePointCollectionsClient", "listAllNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListAllSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "compute.RestorePointCollectionsClient", "listAllNextResults", resp, "Failure sending next results request") + } + result, err = client.ListAllResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.RestorePointCollectionsClient", "listAllNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListAllComplete enumerates all values, automatically crossing page boundaries as required. +func (client RestorePointCollectionsClient) ListAllComplete(ctx context.Context) (result RestorePointCollectionListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RestorePointCollectionsClient.ListAll") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListAll(ctx) + return +} + +// Update the operation to update the restore point collection. +// Parameters: +// resourceGroupName - the name of the resource group. +// restorePointCollectionName - the name of the restore point collection. +// parameters - parameters supplied to the Update restore point collection operation. +func (client RestorePointCollectionsClient) Update(ctx context.Context, resourceGroupName string, restorePointCollectionName string, parameters RestorePointCollectionUpdate) (result RestorePointCollection, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RestorePointCollectionsClient.Update") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdatePreparer(ctx, resourceGroupName, restorePointCollectionName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.RestorePointCollectionsClient", "Update", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "compute.RestorePointCollectionsClient", "Update", resp, "Failure sending request") + return + } + + result, err = client.UpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.RestorePointCollectionsClient", "Update", resp, "Failure responding to request") + return + } + + return +} + +// UpdatePreparer prepares the Update request. +func (client RestorePointCollectionsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, restorePointCollectionName string, parameters RestorePointCollectionUpdate) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "restorePointCollectionName": autorest.Encode("path", restorePointCollectionName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-03-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateSender sends the Update request. The method will close the +// http.Response Body if it receives an error. +func (client RestorePointCollectionsClient) UpdateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateResponder handles the response to the Update request. The method always +// closes the http.Response Body. +func (client RestorePointCollectionsClient) UpdateResponder(resp *http.Response) (result RestorePointCollection, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/compute/mgmt/2021-03-01/compute/restorepoints.go b/services/compute/mgmt/2021-03-01/compute/restorepoints.go new file mode 100644 index 000000000000..c59a4cc8bf57 --- /dev/null +++ b/services/compute/mgmt/2021-03-01/compute/restorepoints.go @@ -0,0 +1,297 @@ +package compute + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// RestorePointsClient is the compute Client +type RestorePointsClient struct { + BaseClient +} + +// NewRestorePointsClient creates an instance of the RestorePointsClient client. +func NewRestorePointsClient(subscriptionID string) RestorePointsClient { + return NewRestorePointsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewRestorePointsClientWithBaseURI creates an instance of the RestorePointsClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewRestorePointsClientWithBaseURI(baseURI string, subscriptionID string) RestorePointsClient { + return RestorePointsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Create the operation to create the restore point. Updating properties of an existing restore point is not allowed +// Parameters: +// resourceGroupName - the name of the resource group. +// restorePointCollectionName - the name of the restore point collection. +// restorePointName - the name of the restore point. +// parameters - parameters supplied to the Create restore point operation. +func (client RestorePointsClient) Create(ctx context.Context, resourceGroupName string, restorePointCollectionName string, restorePointName string, parameters RestorePoint) (result RestorePointsCreateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RestorePointsClient.Create") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.SourceMetadata", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.SourceMetadata.StorageProfile", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.SourceMetadata.StorageProfile.OsDisk", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.SourceMetadata.StorageProfile.OsDisk.EncryptionSettings", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.SourceMetadata.StorageProfile.OsDisk.EncryptionSettings.DiskEncryptionKey", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.SourceMetadata.StorageProfile.OsDisk.EncryptionSettings.DiskEncryptionKey.SecretURL", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.SourceMetadata.StorageProfile.OsDisk.EncryptionSettings.DiskEncryptionKey.SourceVault", Name: validation.Null, Rule: true, Chain: nil}, + }}, + {Target: "parameters.SourceMetadata.StorageProfile.OsDisk.EncryptionSettings.KeyEncryptionKey", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.SourceMetadata.StorageProfile.OsDisk.EncryptionSettings.KeyEncryptionKey.KeyURL", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.SourceMetadata.StorageProfile.OsDisk.EncryptionSettings.KeyEncryptionKey.SourceVault", Name: validation.Null, Rule: true, Chain: nil}, + }}, + }}, + }}, + }}, + }}}}}); err != nil { + return result, validation.NewError("compute.RestorePointsClient", "Create", err.Error()) + } + + req, err := client.CreatePreparer(ctx, resourceGroupName, restorePointCollectionName, restorePointName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.RestorePointsClient", "Create", nil, "Failure preparing request") + return + } + + result, err = client.CreateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.RestorePointsClient", "Create", nil, "Failure sending request") + return + } + + return +} + +// CreatePreparer prepares the Create request. +func (client RestorePointsClient) CreatePreparer(ctx context.Context, resourceGroupName string, restorePointCollectionName string, restorePointName string, parameters RestorePoint) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "restorePointCollectionName": autorest.Encode("path", restorePointCollectionName), + "restorePointName": autorest.Encode("path", restorePointName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-03-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.SourceMetadata = nil + parameters.ProvisioningState = nil + parameters.ConsistencyMode = "" + parameters.ProvisioningDetails = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateSender sends the Create request. The method will close the +// http.Response Body if it receives an error. +func (client RestorePointsClient) CreateSender(req *http.Request) (future RestorePointsCreateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// CreateResponder handles the response to the Create request. The method always +// closes the http.Response Body. +func (client RestorePointsClient) CreateResponder(resp *http.Response) (result RestorePoint, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete the operation to delete the restore point. +// Parameters: +// resourceGroupName - the name of the resource group. +// restorePointCollectionName - the name of the Restore Point Collection. +// restorePointName - the name of the restore point. +func (client RestorePointsClient) Delete(ctx context.Context, resourceGroupName string, restorePointCollectionName string, restorePointName string) (result RestorePointsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RestorePointsClient.Delete") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, restorePointCollectionName, restorePointName) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.RestorePointsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.RestorePointsClient", "Delete", nil, "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client RestorePointsClient) DeletePreparer(ctx context.Context, resourceGroupName string, restorePointCollectionName string, restorePointName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "restorePointCollectionName": autorest.Encode("path", restorePointCollectionName), + "restorePointName": autorest.Encode("path", restorePointName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-03-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client RestorePointsClient) DeleteSender(req *http.Request) (future RestorePointsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client RestorePointsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get the operation to get the restore point. +// Parameters: +// resourceGroupName - the name of the resource group. +// restorePointCollectionName - the name of the restore point collection. +// restorePointName - the name of the restore point. +func (client RestorePointsClient) Get(ctx context.Context, resourceGroupName string, restorePointCollectionName string, restorePointName string) (result RestorePoint, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RestorePointsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, restorePointCollectionName, restorePointName) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.RestorePointsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "compute.RestorePointsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.RestorePointsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client RestorePointsClient) GetPreparer(ctx context.Context, resourceGroupName string, restorePointCollectionName string, restorePointName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "restorePointCollectionName": autorest.Encode("path", restorePointCollectionName), + "restorePointName": autorest.Encode("path", restorePointName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-03-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client RestorePointsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client RestorePointsClient) GetResponder(resp *http.Response) (result RestorePoint, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/compute/mgmt/2021-03-01/compute/sharedgalleries.go b/services/compute/mgmt/2021-03-01/compute/sharedgalleries.go new file mode 100644 index 000000000000..52d38b527ec4 --- /dev/null +++ b/services/compute/mgmt/2021-03-01/compute/sharedgalleries.go @@ -0,0 +1,227 @@ +package compute + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// SharedGalleriesClient is the compute Client +type SharedGalleriesClient struct { + BaseClient +} + +// NewSharedGalleriesClient creates an instance of the SharedGalleriesClient client. +func NewSharedGalleriesClient(subscriptionID string) SharedGalleriesClient { + return NewSharedGalleriesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewSharedGalleriesClientWithBaseURI creates an instance of the SharedGalleriesClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewSharedGalleriesClientWithBaseURI(baseURI string, subscriptionID string) SharedGalleriesClient { + return SharedGalleriesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get get a shared gallery by subscription id or tenant id. +// Parameters: +// location - resource location. +// galleryUniqueName - the unique name of the Shared Gallery. +func (client SharedGalleriesClient) Get(ctx context.Context, location string, galleryUniqueName string) (result SharedGallery, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SharedGalleriesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, location, galleryUniqueName) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.SharedGalleriesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "compute.SharedGalleriesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.SharedGalleriesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client SharedGalleriesClient) GetPreparer(ctx context.Context, location string, galleryUniqueName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "galleryUniqueName": autorest.Encode("path", galleryUniqueName), + "location": autorest.Encode("path", location), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-30" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client SharedGalleriesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client SharedGalleriesClient) GetResponder(resp *http.Response) (result SharedGallery, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List list shared galleries by subscription id or tenant id. +// Parameters: +// location - resource location. +// sharedTo - the query parameter to decide what shared galleries to fetch when doing listing operations. +func (client SharedGalleriesClient) List(ctx context.Context, location string, sharedTo SharedToValues) (result SharedGalleryListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SharedGalleriesClient.List") + defer func() { + sc := -1 + if result.sgl.Response.Response != nil { + sc = result.sgl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, location, sharedTo) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.SharedGalleriesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.sgl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "compute.SharedGalleriesClient", "List", resp, "Failure sending request") + return + } + + result.sgl, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.SharedGalleriesClient", "List", resp, "Failure responding to request") + return + } + if result.sgl.hasNextLink() && result.sgl.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client SharedGalleriesClient) ListPreparer(ctx context.Context, location string, sharedTo SharedToValues) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "location": autorest.Encode("path", location), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-30" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(string(sharedTo)) > 0 { + queryParameters["sharedTo"] = autorest.Encode("query", sharedTo) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client SharedGalleriesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client SharedGalleriesClient) ListResponder(resp *http.Response) (result SharedGalleryList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client SharedGalleriesClient) listNextResults(ctx context.Context, lastResults SharedGalleryList) (result SharedGalleryList, err error) { + req, err := lastResults.sharedGalleryListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "compute.SharedGalleriesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "compute.SharedGalleriesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.SharedGalleriesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client SharedGalleriesClient) ListComplete(ctx context.Context, location string, sharedTo SharedToValues) (result SharedGalleryListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SharedGalleriesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, location, sharedTo) + return +} diff --git a/services/compute/mgmt/2021-03-01/compute/sharedgalleryimages.go b/services/compute/mgmt/2021-03-01/compute/sharedgalleryimages.go new file mode 100644 index 000000000000..a5e82d4ac3fc --- /dev/null +++ b/services/compute/mgmt/2021-03-01/compute/sharedgalleryimages.go @@ -0,0 +1,233 @@ +package compute + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// SharedGalleryImagesClient is the compute Client +type SharedGalleryImagesClient struct { + BaseClient +} + +// NewSharedGalleryImagesClient creates an instance of the SharedGalleryImagesClient client. +func NewSharedGalleryImagesClient(subscriptionID string) SharedGalleryImagesClient { + return NewSharedGalleryImagesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewSharedGalleryImagesClientWithBaseURI creates an instance of the SharedGalleryImagesClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewSharedGalleryImagesClientWithBaseURI(baseURI string, subscriptionID string) SharedGalleryImagesClient { + return SharedGalleryImagesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get get a shared gallery image by subscription id or tenant id. +// Parameters: +// location - resource location. +// galleryUniqueName - the unique name of the Shared Gallery. +// galleryImageName - the name of the Shared Gallery Image Definition from which the Image Versions are to be +// listed. +func (client SharedGalleryImagesClient) Get(ctx context.Context, location string, galleryUniqueName string, galleryImageName string) (result SharedGalleryImage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SharedGalleryImagesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, location, galleryUniqueName, galleryImageName) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.SharedGalleryImagesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "compute.SharedGalleryImagesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.SharedGalleryImagesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client SharedGalleryImagesClient) GetPreparer(ctx context.Context, location string, galleryUniqueName string, galleryImageName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "galleryImageName": autorest.Encode("path", galleryImageName), + "galleryUniqueName": autorest.Encode("path", galleryUniqueName), + "location": autorest.Encode("path", location), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-30" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client SharedGalleryImagesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client SharedGalleryImagesClient) GetResponder(resp *http.Response) (result SharedGalleryImage, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List list shared gallery images by subscription id or tenant id. +// Parameters: +// location - resource location. +// galleryUniqueName - the unique name of the Shared Gallery. +// sharedTo - the query parameter to decide what shared galleries to fetch when doing listing operations. +func (client SharedGalleryImagesClient) List(ctx context.Context, location string, galleryUniqueName string, sharedTo SharedToValues) (result SharedGalleryImageListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SharedGalleryImagesClient.List") + defer func() { + sc := -1 + if result.sgil.Response.Response != nil { + sc = result.sgil.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, location, galleryUniqueName, sharedTo) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.SharedGalleryImagesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.sgil.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "compute.SharedGalleryImagesClient", "List", resp, "Failure sending request") + return + } + + result.sgil, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.SharedGalleryImagesClient", "List", resp, "Failure responding to request") + return + } + if result.sgil.hasNextLink() && result.sgil.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client SharedGalleryImagesClient) ListPreparer(ctx context.Context, location string, galleryUniqueName string, sharedTo SharedToValues) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "galleryUniqueName": autorest.Encode("path", galleryUniqueName), + "location": autorest.Encode("path", location), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-30" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(string(sharedTo)) > 0 { + queryParameters["sharedTo"] = autorest.Encode("query", sharedTo) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client SharedGalleryImagesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client SharedGalleryImagesClient) ListResponder(resp *http.Response) (result SharedGalleryImageList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client SharedGalleryImagesClient) listNextResults(ctx context.Context, lastResults SharedGalleryImageList) (result SharedGalleryImageList, err error) { + req, err := lastResults.sharedGalleryImageListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "compute.SharedGalleryImagesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "compute.SharedGalleryImagesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.SharedGalleryImagesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client SharedGalleryImagesClient) ListComplete(ctx context.Context, location string, galleryUniqueName string, sharedTo SharedToValues) (result SharedGalleryImageListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SharedGalleryImagesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, location, galleryUniqueName, sharedTo) + return +} diff --git a/services/compute/mgmt/2021-03-01/compute/sharedgalleryimageversions.go b/services/compute/mgmt/2021-03-01/compute/sharedgalleryimageversions.go new file mode 100644 index 000000000000..f16f48c20b02 --- /dev/null +++ b/services/compute/mgmt/2021-03-01/compute/sharedgalleryimageversions.go @@ -0,0 +1,240 @@ +package compute + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// SharedGalleryImageVersionsClient is the compute Client +type SharedGalleryImageVersionsClient struct { + BaseClient +} + +// NewSharedGalleryImageVersionsClient creates an instance of the SharedGalleryImageVersionsClient client. +func NewSharedGalleryImageVersionsClient(subscriptionID string) SharedGalleryImageVersionsClient { + return NewSharedGalleryImageVersionsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewSharedGalleryImageVersionsClientWithBaseURI creates an instance of the SharedGalleryImageVersionsClient client +// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign +// clouds, Azure stack). +func NewSharedGalleryImageVersionsClientWithBaseURI(baseURI string, subscriptionID string) SharedGalleryImageVersionsClient { + return SharedGalleryImageVersionsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get get a shared gallery image version by subscription id or tenant id. +// Parameters: +// location - resource location. +// galleryUniqueName - the unique name of the Shared Gallery. +// galleryImageName - the name of the Shared Gallery Image Definition from which the Image Versions are to be +// listed. +// galleryImageVersionName - the name of the gallery image version to be created. Needs to follow semantic +// version name pattern: The allowed characters are digit and period. Digits must be within the range of a +// 32-bit integer. Format: .. +func (client SharedGalleryImageVersionsClient) Get(ctx context.Context, location string, galleryUniqueName string, galleryImageName string, galleryImageVersionName string) (result SharedGalleryImageVersion, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SharedGalleryImageVersionsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, location, galleryUniqueName, galleryImageName, galleryImageVersionName) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.SharedGalleryImageVersionsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "compute.SharedGalleryImageVersionsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.SharedGalleryImageVersionsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client SharedGalleryImageVersionsClient) GetPreparer(ctx context.Context, location string, galleryUniqueName string, galleryImageName string, galleryImageVersionName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "galleryImageName": autorest.Encode("path", galleryImageName), + "galleryImageVersionName": autorest.Encode("path", galleryImageVersionName), + "galleryUniqueName": autorest.Encode("path", galleryUniqueName), + "location": autorest.Encode("path", location), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-30" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/versions/{galleryImageVersionName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client SharedGalleryImageVersionsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client SharedGalleryImageVersionsClient) GetResponder(resp *http.Response) (result SharedGalleryImageVersion, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List list shared gallery image versions by subscription id or tenant id. +// Parameters: +// location - resource location. +// galleryUniqueName - the unique name of the Shared Gallery. +// galleryImageName - the name of the Shared Gallery Image Definition from which the Image Versions are to be +// listed. +// sharedTo - the query parameter to decide what shared galleries to fetch when doing listing operations. +func (client SharedGalleryImageVersionsClient) List(ctx context.Context, location string, galleryUniqueName string, galleryImageName string, sharedTo SharedToValues) (result SharedGalleryImageVersionListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SharedGalleryImageVersionsClient.List") + defer func() { + sc := -1 + if result.sgivl.Response.Response != nil { + sc = result.sgivl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, location, galleryUniqueName, galleryImageName, sharedTo) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.SharedGalleryImageVersionsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.sgivl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "compute.SharedGalleryImageVersionsClient", "List", resp, "Failure sending request") + return + } + + result.sgivl, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.SharedGalleryImageVersionsClient", "List", resp, "Failure responding to request") + return + } + if result.sgivl.hasNextLink() && result.sgivl.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client SharedGalleryImageVersionsClient) ListPreparer(ctx context.Context, location string, galleryUniqueName string, galleryImageName string, sharedTo SharedToValues) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "galleryImageName": autorest.Encode("path", galleryImageName), + "galleryUniqueName": autorest.Encode("path", galleryUniqueName), + "location": autorest.Encode("path", location), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-09-30" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(string(sharedTo)) > 0 { + queryParameters["sharedTo"] = autorest.Encode("query", sharedTo) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/versions", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client SharedGalleryImageVersionsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client SharedGalleryImageVersionsClient) ListResponder(resp *http.Response) (result SharedGalleryImageVersionList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client SharedGalleryImageVersionsClient) listNextResults(ctx context.Context, lastResults SharedGalleryImageVersionList) (result SharedGalleryImageVersionList, err error) { + req, err := lastResults.sharedGalleryImageVersionListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "compute.SharedGalleryImageVersionsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "compute.SharedGalleryImageVersionsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.SharedGalleryImageVersionsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client SharedGalleryImageVersionsClient) ListComplete(ctx context.Context, location string, galleryUniqueName string, galleryImageName string, sharedTo SharedToValues) (result SharedGalleryImageVersionListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SharedGalleryImageVersionsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, location, galleryUniqueName, galleryImageName, sharedTo) + return +} diff --git a/services/compute/mgmt/2021-03-01/compute/sshpublickeys.go b/services/compute/mgmt/2021-03-01/compute/sshpublickeys.go index 58a8c9e4ff87..7d6e7981cf83 100644 --- a/services/compute/mgmt/2021-03-01/compute/sshpublickeys.go +++ b/services/compute/mgmt/2021-03-01/compute/sshpublickeys.go @@ -76,7 +76,7 @@ func (client SSHPublicKeysClient) CreatePreparer(ctx context.Context, resourceGr "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -154,7 +154,7 @@ func (client SSHPublicKeysClient) DeletePreparer(ctx context.Context, resourceGr "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -231,7 +231,7 @@ func (client SSHPublicKeysClient) GenerateKeyPairPreparer(ctx context.Context, r "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -307,7 +307,7 @@ func (client SSHPublicKeysClient) GetPreparer(ctx context.Context, resourceGroup "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -387,7 +387,7 @@ func (client SSHPublicKeysClient) ListByResourceGroupPreparer(ctx context.Contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -501,7 +501,7 @@ func (client SSHPublicKeysClient) ListBySubscriptionPreparer(ctx context.Context "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -615,7 +615,7 @@ func (client SSHPublicKeysClient) UpdatePreparer(ctx context.Context, resourceGr "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/services/compute/mgmt/2021-03-01/compute/usage.go b/services/compute/mgmt/2021-03-01/compute/usage.go index 65d7cfcdf4ed..f45a71a709e4 100644 --- a/services/compute/mgmt/2021-03-01/compute/usage.go +++ b/services/compute/mgmt/2021-03-01/compute/usage.go @@ -86,7 +86,7 @@ func (client UsageClient) ListPreparer(ctx context.Context, location string) (*h "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/services/compute/mgmt/2021-03-01/compute/virtualmachineextensionimages.go b/services/compute/mgmt/2021-03-01/compute/virtualmachineextensionimages.go index 01aa7197a1ab..366ddb1cc5a6 100644 --- a/services/compute/mgmt/2021-03-01/compute/virtualmachineextensionimages.go +++ b/services/compute/mgmt/2021-03-01/compute/virtualmachineextensionimages.go @@ -77,7 +77,7 @@ func (client VirtualMachineExtensionImagesClient) GetPreparer(ctx context.Contex "version": autorest.Encode("path", version), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -152,7 +152,7 @@ func (client VirtualMachineExtensionImagesClient) ListTypesPreparer(ctx context. "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -229,7 +229,7 @@ func (client VirtualMachineExtensionImagesClient) ListVersionsPreparer(ctx conte "type": autorest.Encode("path", typeParameter), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/services/compute/mgmt/2021-03-01/compute/virtualmachineextensions.go b/services/compute/mgmt/2021-03-01/compute/virtualmachineextensions.go index 2b86103c94ea..9070d04b0503 100644 --- a/services/compute/mgmt/2021-03-01/compute/virtualmachineextensions.go +++ b/services/compute/mgmt/2021-03-01/compute/virtualmachineextensions.go @@ -72,7 +72,7 @@ func (client VirtualMachineExtensionsClient) CreateOrUpdatePreparer(ctx context. "vmName": autorest.Encode("path", VMName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -154,7 +154,7 @@ func (client VirtualMachineExtensionsClient) DeletePreparer(ctx context.Context, "vmName": autorest.Encode("path", VMName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -241,7 +241,7 @@ func (client VirtualMachineExtensionsClient) GetPreparer(ctx context.Context, re "vmName": autorest.Encode("path", VMName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -321,7 +321,7 @@ func (client VirtualMachineExtensionsClient) ListPreparer(ctx context.Context, r "vmName": autorest.Encode("path", VMName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -396,7 +396,7 @@ func (client VirtualMachineExtensionsClient) UpdatePreparer(ctx context.Context, "vmName": autorest.Encode("path", VMName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/services/compute/mgmt/2021-03-01/compute/virtualmachineimages.go b/services/compute/mgmt/2021-03-01/compute/virtualmachineimages.go index 5cc60e1dc730..1a0b1ffa4c7f 100644 --- a/services/compute/mgmt/2021-03-01/compute/virtualmachineimages.go +++ b/services/compute/mgmt/2021-03-01/compute/virtualmachineimages.go @@ -82,7 +82,7 @@ func (client VirtualMachineImagesClient) GetPreparer(ctx context.Context, locati "version": autorest.Encode("path", version), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -163,7 +163,7 @@ func (client VirtualMachineImagesClient) ListPreparer(ctx context.Context, locat "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -248,7 +248,7 @@ func (client VirtualMachineImagesClient) ListOffersPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -322,7 +322,7 @@ func (client VirtualMachineImagesClient) ListPublishersPreparer(ctx context.Cont "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -400,7 +400,7 @@ func (client VirtualMachineImagesClient) ListSkusPreparer(ctx context.Context, l "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/services/compute/mgmt/2021-03-01/compute/virtualmachineimagesedgezone.go b/services/compute/mgmt/2021-03-01/compute/virtualmachineimagesedgezone.go index c7150075b454..85c55adad1b3 100644 --- a/services/compute/mgmt/2021-03-01/compute/virtualmachineimagesedgezone.go +++ b/services/compute/mgmt/2021-03-01/compute/virtualmachineimagesedgezone.go @@ -84,7 +84,7 @@ func (client VirtualMachineImagesEdgeZoneClient) GetPreparer(ctx context.Context "version": autorest.Encode("path", version), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -170,7 +170,7 @@ func (client VirtualMachineImagesEdgeZoneClient) ListPreparer(ctx context.Contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -257,7 +257,7 @@ func (client VirtualMachineImagesEdgeZoneClient) ListOffersPreparer(ctx context. "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -333,7 +333,7 @@ func (client VirtualMachineImagesEdgeZoneClient) ListPublishersPreparer(ctx cont "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -413,7 +413,7 @@ func (client VirtualMachineImagesEdgeZoneClient) ListSkusPreparer(ctx context.Co "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/services/compute/mgmt/2021-03-01/compute/virtualmachineruncommands.go b/services/compute/mgmt/2021-03-01/compute/virtualmachineruncommands.go index 54b53b69cbe7..faf03c27375b 100644 --- a/services/compute/mgmt/2021-03-01/compute/virtualmachineruncommands.go +++ b/services/compute/mgmt/2021-03-01/compute/virtualmachineruncommands.go @@ -73,7 +73,7 @@ func (client VirtualMachineRunCommandsClient) CreateOrUpdatePreparer(ctx context "vmName": autorest.Encode("path", VMName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -155,7 +155,7 @@ func (client VirtualMachineRunCommandsClient) DeletePreparer(ctx context.Context "vmName": autorest.Encode("path", VMName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -245,7 +245,7 @@ func (client VirtualMachineRunCommandsClient) GetPreparer(ctx context.Context, l "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -324,7 +324,7 @@ func (client VirtualMachineRunCommandsClient) GetByVirtualMachinePreparer(ctx co "vmName": autorest.Encode("path", VMName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -412,7 +412,7 @@ func (client VirtualMachineRunCommandsClient) ListPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -531,7 +531,7 @@ func (client VirtualMachineRunCommandsClient) ListByVirtualMachinePreparer(ctx c "vmName": autorest.Encode("path", VMName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -643,7 +643,7 @@ func (client VirtualMachineRunCommandsClient) UpdatePreparer(ctx context.Context "vmName": autorest.Encode("path", VMName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/services/compute/mgmt/2021-03-01/compute/virtualmachines.go b/services/compute/mgmt/2021-03-01/compute/virtualmachines.go index 2fa040a0e2e0..fbc92e3cefb1 100644 --- a/services/compute/mgmt/2021-03-01/compute/virtualmachines.go +++ b/services/compute/mgmt/2021-03-01/compute/virtualmachines.go @@ -69,7 +69,7 @@ func (client VirtualMachinesClient) AssessPatchesPreparer(ctx context.Context, r "vmName": autorest.Encode("path", VMName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -157,7 +157,7 @@ func (client VirtualMachinesClient) CapturePreparer(ctx context.Context, resourc "vmName": autorest.Encode("path", VMName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -238,7 +238,7 @@ func (client VirtualMachinesClient) ConvertToManagedDisksPreparer(ctx context.Co "vmName": autorest.Encode("path", VMName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -338,7 +338,7 @@ func (client VirtualMachinesClient) CreateOrUpdatePreparer(ctx context.Context, "vmName": autorest.Encode("path", VMName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -420,7 +420,7 @@ func (client VirtualMachinesClient) DeallocatePreparer(ctx context.Context, reso "vmName": autorest.Encode("path", VMName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -498,7 +498,7 @@ func (client VirtualMachinesClient) DeletePreparer(ctx context.Context, resource "vmName": autorest.Encode("path", VMName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -542,9 +542,9 @@ func (client VirtualMachinesClient) DeleteResponder(resp *http.Response) (result // Generalize sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine // before performing this operation.
    For Windows, please refer to [Create a managed image of a generalized VM in -// Azure](https://docs.microsoft.com/en-us/azure/virtual-machines/windows/capture-image-resource).
    For Linux, please -// refer to [How to create an image of a virtual machine or -// VHD](https://docs.microsoft.com/en-us/azure/virtual-machines/linux/capture-image). +// Azure](https://docs.microsoft.com/azure/virtual-machines/windows/capture-image-resource).
    For Linux, please refer +// to [How to create an image of a virtual machine or +// VHD](https://docs.microsoft.com/azure/virtual-machines/linux/capture-image). // Parameters: // resourceGroupName - the name of the resource group. // VMName - the name of the virtual machine. @@ -589,7 +589,7 @@ func (client VirtualMachinesClient) GeneralizePreparer(ctx context.Context, reso "vmName": autorest.Encode("path", VMName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -623,7 +623,10 @@ func (client VirtualMachinesClient) GeneralizeResponder(resp *http.Response) (re // Parameters: // resourceGroupName - the name of the resource group. // VMName - the name of the virtual machine. -// expand - the expand expression to apply on the operation. +// expand - the expand expression to apply on the operation. 'InstanceView' retrieves a snapshot of the runtime +// properties of the virtual machine that is managed by the platform and can change outside of control plane +// operations. 'UserData' retrieves the UserData property as part of the VM model view that was provided by the +// user during the VM Create/Update operation. func (client VirtualMachinesClient) Get(ctx context.Context, resourceGroupName string, VMName string, expand InstanceViewTypes) (result VirtualMachine, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachinesClient.Get") @@ -665,7 +668,7 @@ func (client VirtualMachinesClient) GetPreparer(ctx context.Context, resourceGro "vmName": autorest.Encode("path", VMName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -744,7 +747,7 @@ func (client VirtualMachinesClient) InstallPatchesPreparer(ctx context.Context, "vmName": autorest.Encode("path", VMName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -831,7 +834,7 @@ func (client VirtualMachinesClient) InstanceViewPreparer(ctx context.Context, re "vmName": autorest.Encode("path", VMName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -911,7 +914,7 @@ func (client VirtualMachinesClient) ListPreparer(ctx context.Context, resourceGr "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1027,7 +1030,7 @@ func (client VirtualMachinesClient) ListAllPreparer(ctx context.Context, statusO "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1143,7 +1146,7 @@ func (client VirtualMachinesClient) ListAvailableSizesPreparer(ctx context.Conte "vmName": autorest.Encode("path", VMName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1228,7 +1231,7 @@ func (client VirtualMachinesClient) ListByLocationPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1334,7 +1337,7 @@ func (client VirtualMachinesClient) PerformMaintenancePreparer(ctx context.Conte "vmName": autorest.Encode("path", VMName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1415,7 +1418,7 @@ func (client VirtualMachinesClient) PowerOffPreparer(ctx context.Context, resour "vmName": autorest.Encode("path", VMName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1497,7 +1500,7 @@ func (client VirtualMachinesClient) ReapplyPreparer(ctx context.Context, resourc "vmName": autorest.Encode("path", VMName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1574,7 +1577,7 @@ func (client VirtualMachinesClient) RedeployPreparer(ctx context.Context, resour "vmName": autorest.Encode("path", VMName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1652,7 +1655,7 @@ func (client VirtualMachinesClient) ReimagePreparer(ctx context.Context, resourc "vmName": autorest.Encode("path", VMName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1734,7 +1737,7 @@ func (client VirtualMachinesClient) RestartPreparer(ctx context.Context, resourc "vmName": autorest.Encode("path", VMName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1821,7 +1824,7 @@ func (client VirtualMachinesClient) RetrieveBootDiagnosticsDataPreparer(ctx cont "vmName": autorest.Encode("path", VMName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1900,7 +1903,7 @@ func (client VirtualMachinesClient) RunCommandPreparer(ctx context.Context, reso "vmName": autorest.Encode("path", VMName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1987,7 +1990,7 @@ func (client VirtualMachinesClient) SimulateEvictionPreparer(ctx context.Context "vmName": autorest.Encode("path", VMName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -2055,7 +2058,7 @@ func (client VirtualMachinesClient) StartPreparer(ctx context.Context, resourceG "vmName": autorest.Encode("path", VMName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -2133,7 +2136,7 @@ func (client VirtualMachinesClient) UpdatePreparer(ctx context.Context, resource "vmName": autorest.Encode("path", VMName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/services/compute/mgmt/2021-03-01/compute/virtualmachinescalesetextensions.go b/services/compute/mgmt/2021-03-01/compute/virtualmachinescalesetextensions.go index 391520fdd46f..7a218aeedf80 100644 --- a/services/compute/mgmt/2021-03-01/compute/virtualmachinescalesetextensions.go +++ b/services/compute/mgmt/2021-03-01/compute/virtualmachinescalesetextensions.go @@ -72,7 +72,7 @@ func (client VirtualMachineScaleSetExtensionsClient) CreateOrUpdatePreparer(ctx "vmssExtensionName": autorest.Encode("path", vmssExtensionName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -155,7 +155,7 @@ func (client VirtualMachineScaleSetExtensionsClient) DeletePreparer(ctx context. "vmssExtensionName": autorest.Encode("path", vmssExtensionName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -242,7 +242,7 @@ func (client VirtualMachineScaleSetExtensionsClient) GetPreparer(ctx context.Con "vmssExtensionName": autorest.Encode("path", vmssExtensionName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -326,7 +326,7 @@ func (client VirtualMachineScaleSetExtensionsClient) ListPreparer(ctx context.Co "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -435,7 +435,7 @@ func (client VirtualMachineScaleSetExtensionsClient) UpdatePreparer(ctx context. "vmssExtensionName": autorest.Encode("path", vmssExtensionName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/services/compute/mgmt/2021-03-01/compute/virtualmachinescalesetrollingupgrades.go b/services/compute/mgmt/2021-03-01/compute/virtualmachinescalesetrollingupgrades.go index 9a2747ea62e1..cd7cd46950fa 100644 --- a/services/compute/mgmt/2021-03-01/compute/virtualmachinescalesetrollingupgrades.go +++ b/services/compute/mgmt/2021-03-01/compute/virtualmachinescalesetrollingupgrades.go @@ -70,7 +70,7 @@ func (client VirtualMachineScaleSetRollingUpgradesClient) CancelPreparer(ctx con "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -154,7 +154,7 @@ func (client VirtualMachineScaleSetRollingUpgradesClient) GetLatestPreparer(ctx "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -225,7 +225,7 @@ func (client VirtualMachineScaleSetRollingUpgradesClient) StartExtensionUpgradeP "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -303,7 +303,7 @@ func (client VirtualMachineScaleSetRollingUpgradesClient) StartOSUpgradePreparer "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/services/compute/mgmt/2021-03-01/compute/virtualmachinescalesets.go b/services/compute/mgmt/2021-03-01/compute/virtualmachinescalesets.go index 909df89996f1..d056894e33b3 100644 --- a/services/compute/mgmt/2021-03-01/compute/virtualmachinescalesets.go +++ b/services/compute/mgmt/2021-03-01/compute/virtualmachinescalesets.go @@ -79,7 +79,7 @@ func (client VirtualMachineScaleSetsClient) ConvertToSinglePlacementGroupPrepare "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -173,7 +173,7 @@ func (client VirtualMachineScaleSetsClient) CreateOrUpdatePreparer(ctx context.C "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -255,7 +255,7 @@ func (client VirtualMachineScaleSetsClient) DeallocatePreparer(ctx context.Conte "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -338,7 +338,7 @@ func (client VirtualMachineScaleSetsClient) DeletePreparer(ctx context.Context, "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -427,7 +427,7 @@ func (client VirtualMachineScaleSetsClient) DeleteInstancesPreparer(ctx context. "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -518,7 +518,7 @@ func (client VirtualMachineScaleSetsClient) ForceRecoveryServiceFabricPlatformUp "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, "platformUpdateDomain": autorest.Encode("query", platformUpdateDomain), @@ -554,7 +554,9 @@ func (client VirtualMachineScaleSetsClient) ForceRecoveryServiceFabricPlatformUp // Parameters: // resourceGroupName - the name of the resource group. // VMScaleSetName - the name of the VM scale set. -func (client VirtualMachineScaleSetsClient) Get(ctx context.Context, resourceGroupName string, VMScaleSetName string) (result VirtualMachineScaleSet, err error) { +// expand - the expand expression to apply on the operation. 'UserData' retrieves the UserData property of the +// VM scale set that was provided by the user during the VM scale set Create/Update operation +func (client VirtualMachineScaleSetsClient) Get(ctx context.Context, resourceGroupName string, VMScaleSetName string, expand ExpandTypesForGetVMScaleSets) (result VirtualMachineScaleSet, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetsClient.Get") defer func() { @@ -565,7 +567,7 @@ func (client VirtualMachineScaleSetsClient) Get(ctx context.Context, resourceGro tracing.EndSpan(ctx, sc, err) }() } - req, err := client.GetPreparer(ctx, resourceGroupName, VMScaleSetName) + req, err := client.GetPreparer(ctx, resourceGroupName, VMScaleSetName, expand) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Get", nil, "Failure preparing request") return @@ -588,17 +590,20 @@ func (client VirtualMachineScaleSetsClient) Get(ctx context.Context, resourceGro } // GetPreparer prepares the Get request. -func (client VirtualMachineScaleSetsClient) GetPreparer(ctx context.Context, resourceGroupName string, VMScaleSetName string) (*http.Request, error) { +func (client VirtualMachineScaleSetsClient) GetPreparer(ctx context.Context, resourceGroupName string, VMScaleSetName string, expand ExpandTypesForGetVMScaleSets) (*http.Request, error) { pathParameters := map[string]interface{}{ "resourceGroupName": autorest.Encode("path", resourceGroupName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } + if len(string(expand)) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } preparer := autorest.CreatePreparer( autorest.AsGet(), @@ -671,7 +676,7 @@ func (client VirtualMachineScaleSetsClient) GetInstanceViewPreparer(ctx context. "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -752,7 +757,7 @@ func (client VirtualMachineScaleSetsClient) GetOSUpgradeHistoryPreparer(ctx cont "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -868,7 +873,7 @@ func (client VirtualMachineScaleSetsClient) ListPreparer(ctx context.Context, re "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -983,7 +988,7 @@ func (client VirtualMachineScaleSetsClient) ListAllPreparer(ctx context.Context) "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1105,7 +1110,7 @@ func (client VirtualMachineScaleSetsClient) ListByLocationPreparer(ctx context.C "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1224,7 +1229,7 @@ func (client VirtualMachineScaleSetsClient) ListSkusPreparer(ctx context.Context "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1294,7 +1299,7 @@ func (client VirtualMachineScaleSetsClient) ListSkusComplete(ctx context.Context // PerformMaintenance perform maintenance on one or more virtual machines in a VM scale set. Operation on instances // which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: -// https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications +// https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications // Parameters: // resourceGroupName - the name of the resource group. // VMScaleSetName - the name of the VM scale set. @@ -1333,7 +1338,7 @@ func (client VirtualMachineScaleSetsClient) PerformMaintenancePreparer(ctx conte "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1420,7 +1425,7 @@ func (client VirtualMachineScaleSetsClient) PowerOffPreparer(ctx context.Context "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1509,7 +1514,7 @@ func (client VirtualMachineScaleSetsClient) RedeployPreparer(ctx context.Context "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1593,7 +1598,7 @@ func (client VirtualMachineScaleSetsClient) ReimagePreparer(ctx context.Context, "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1677,7 +1682,7 @@ func (client VirtualMachineScaleSetsClient) ReimageAllPreparer(ctx context.Conte "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1760,7 +1765,7 @@ func (client VirtualMachineScaleSetsClient) RestartPreparer(ctx context.Context, "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1820,6 +1825,12 @@ func (client VirtualMachineScaleSetsClient) SetOrchestrationServiceState(ctx con tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.ServiceName", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("compute.VirtualMachineScaleSetsClient", "SetOrchestrationServiceState", err.Error()) + } + req, err := client.SetOrchestrationServiceStatePreparer(ctx, resourceGroupName, VMScaleSetName, parameters) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "SetOrchestrationServiceState", nil, "Failure preparing request") @@ -1843,7 +1854,7 @@ func (client VirtualMachineScaleSetsClient) SetOrchestrationServiceStatePreparer "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1923,7 +1934,7 @@ func (client VirtualMachineScaleSetsClient) StartPreparer(ctx context.Context, r "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -2006,7 +2017,7 @@ func (client VirtualMachineScaleSetsClient) UpdatePreparer(ctx context.Context, "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -2093,7 +2104,7 @@ func (client VirtualMachineScaleSetsClient) UpdateInstancesPreparer(ctx context. "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/services/compute/mgmt/2021-03-01/compute/virtualmachinescalesetvmextensions.go b/services/compute/mgmt/2021-03-01/compute/virtualmachinescalesetvmextensions.go index 04657720b31f..ec90b52fe2bc 100644 --- a/services/compute/mgmt/2021-03-01/compute/virtualmachinescalesetvmextensions.go +++ b/services/compute/mgmt/2021-03-01/compute/virtualmachinescalesetvmextensions.go @@ -75,7 +75,7 @@ func (client VirtualMachineScaleSetVMExtensionsClient) CreateOrUpdatePreparer(ct "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -161,7 +161,7 @@ func (client VirtualMachineScaleSetVMExtensionsClient) DeletePreparer(ctx contex "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -250,7 +250,7 @@ func (client VirtualMachineScaleSetVMExtensionsClient) GetPreparer(ctx context.C "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -332,7 +332,7 @@ func (client VirtualMachineScaleSetVMExtensionsClient) ListPreparer(ctx context. "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -409,7 +409,7 @@ func (client VirtualMachineScaleSetVMExtensionsClient) UpdatePreparer(ctx contex "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/services/compute/mgmt/2021-03-01/compute/virtualmachinescalesetvmruncommands.go b/services/compute/mgmt/2021-03-01/compute/virtualmachinescalesetvmruncommands.go index 497b56a50596..bc6846a6a200 100644 --- a/services/compute/mgmt/2021-03-01/compute/virtualmachinescalesetvmruncommands.go +++ b/services/compute/mgmt/2021-03-01/compute/virtualmachinescalesetvmruncommands.go @@ -75,7 +75,7 @@ func (client VirtualMachineScaleSetVMRunCommandsClient) CreateOrUpdatePreparer(c "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -159,7 +159,7 @@ func (client VirtualMachineScaleSetVMRunCommandsClient) DeletePreparer(ctx conte "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -248,7 +248,7 @@ func (client VirtualMachineScaleSetVMRunCommandsClient) GetPreparer(ctx context. "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -335,7 +335,7 @@ func (client VirtualMachineScaleSetVMRunCommandsClient) ListPreparer(ctx context "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -449,7 +449,7 @@ func (client VirtualMachineScaleSetVMRunCommandsClient) UpdatePreparer(ctx conte "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/services/compute/mgmt/2021-03-01/compute/virtualmachinescalesetvms.go b/services/compute/mgmt/2021-03-01/compute/virtualmachinescalesetvms.go index fcbd9da1e04b..19e81a174b46 100644 --- a/services/compute/mgmt/2021-03-01/compute/virtualmachinescalesetvms.go +++ b/services/compute/mgmt/2021-03-01/compute/virtualmachinescalesetvms.go @@ -74,7 +74,7 @@ func (client VirtualMachineScaleSetVMsClient) DeallocatePreparer(ctx context.Con "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -155,7 +155,7 @@ func (client VirtualMachineScaleSetVMsClient) DeletePreparer(ctx context.Context "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -202,7 +202,8 @@ func (client VirtualMachineScaleSetVMsClient) DeleteResponder(resp *http.Respons // resourceGroupName - the name of the resource group. // VMScaleSetName - the name of the VM scale set. // instanceID - the instance ID of the virtual machine. -// expand - the expand expression to apply on the operation. +// expand - the expand expression to apply on the operation. 'InstanceView' will retrieve the instance view of +// the virtual machine. 'UserData' will retrieve the UserData of the virtual machine. func (client VirtualMachineScaleSetVMsClient) Get(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string, expand InstanceViewTypes) (result VirtualMachineScaleSetVM, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetVMsClient.Get") @@ -245,7 +246,7 @@ func (client VirtualMachineScaleSetVMsClient) GetPreparer(ctx context.Context, r "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -326,7 +327,7 @@ func (client VirtualMachineScaleSetVMsClient) GetInstanceViewPreparer(ctx contex "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -411,7 +412,7 @@ func (client VirtualMachineScaleSetVMsClient) ListPreparer(ctx context.Context, "virtualMachineScaleSetName": autorest.Encode("path", virtualMachineScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -528,7 +529,7 @@ func (client VirtualMachineScaleSetVMsClient) PerformMaintenancePreparer(ctx con "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -611,7 +612,7 @@ func (client VirtualMachineScaleSetVMsClient) PowerOffPreparer(ctx context.Conte "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -696,7 +697,7 @@ func (client VirtualMachineScaleSetVMsClient) RedeployPreparer(ctx context.Conte "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -776,7 +777,7 @@ func (client VirtualMachineScaleSetVMsClient) ReimagePreparer(ctx context.Contex "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -861,7 +862,7 @@ func (client VirtualMachineScaleSetVMsClient) ReimageAllPreparer(ctx context.Con "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -940,7 +941,7 @@ func (client VirtualMachineScaleSetVMsClient) RestartPreparer(ctx context.Contex "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1030,7 +1031,7 @@ func (client VirtualMachineScaleSetVMsClient) RetrieveBootDiagnosticsDataPrepare "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1111,7 +1112,7 @@ func (client VirtualMachineScaleSetVMsClient) RunCommandPreparer(ctx context.Con "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1200,7 +1201,7 @@ func (client VirtualMachineScaleSetVMsClient) SimulateEvictionPreparer(ctx conte "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1270,7 +1271,7 @@ func (client VirtualMachineScaleSetVMsClient) StartPreparer(ctx context.Context, "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1371,7 +1372,7 @@ func (client VirtualMachineScaleSetVMsClient) UpdatePreparer(ctx context.Context "vmScaleSetName": autorest.Encode("path", VMScaleSetName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/services/compute/mgmt/2021-03-01/compute/virtualmachinesizes.go b/services/compute/mgmt/2021-03-01/compute/virtualmachinesizes.go index 4eca9cbe2ccf..6aa8255569f9 100644 --- a/services/compute/mgmt/2021-03-01/compute/virtualmachinesizes.go +++ b/services/compute/mgmt/2021-03-01/compute/virtualmachinesizes.go @@ -32,8 +32,7 @@ func NewVirtualMachineSizesClientWithBaseURI(baseURI string, subscriptionID stri return VirtualMachineSizesClient{NewWithBaseURI(baseURI, subscriptionID)} } -// List this API is deprecated. Use [Resources -// Skus](https://docs.microsoft.com/en-us/rest/api/compute/resourceskus/list) +// List this API is deprecated. Use [Resources Skus](https://docs.microsoft.com/rest/api/compute/resourceskus/list) // Parameters: // location - the location upon which virtual-machine-sizes is queried. func (client VirtualMachineSizesClient) List(ctx context.Context, location string) (result VirtualMachineSizeListResult, err error) { @@ -82,7 +81,7 @@ func (client VirtualMachineSizesClient) ListPreparer(ctx context.Context, locati "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/services/confluent/mgmt/2020-03-01/confluent/CHANGELOG.md b/services/confluent/mgmt/2020-03-01/confluent/CHANGELOG.md index 52911e4cc5e4..c0cb3d541873 100644 --- a/services/confluent/mgmt/2020-03-01/confluent/CHANGELOG.md +++ b/services/confluent/mgmt/2020-03-01/confluent/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. ErrorResponseBody.MarshalJSON() ([]byte, error) +1. ResourceProviderDefaultErrorResponse.MarshalJSON() ([]byte, error) diff --git a/services/confluent/mgmt/2020-03-01/confluent/_meta.json b/services/confluent/mgmt/2020-03-01/confluent/_meta.json index f0b9802ef1e0..b903880b0cbe 100644 --- a/services/confluent/mgmt/2020-03-01/confluent/_meta.json +++ b/services/confluent/mgmt/2020-03-01/confluent/_meta.json @@ -2,9 +2,9 @@ "commit": "d4bad535d456ee82c7fd17d1ec2b8802a0b83205", "readme": "/_/azure-rest-api-specs/specification/confluent/resource-manager/readme.md", "tag": "package-2020-03-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-03-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/confluent/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-03-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/confluent/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/confluent/mgmt/2020-03-01/confluent/models.go b/services/confluent/mgmt/2020-03-01/confluent/models.go index 20845a324576..c86d2cf3d3f8 100644 --- a/services/confluent/mgmt/2020-03-01/confluent/models.go +++ b/services/confluent/mgmt/2020-03-01/confluent/models.go @@ -284,6 +284,12 @@ type ErrorResponseBody struct { Details *[]ErrorResponseBody `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponseBody. +func (erb ErrorResponseBody) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OfferDetail confluent Offer detail type OfferDetail struct { // PublisherID - Publisher Id @@ -931,6 +937,12 @@ type ResourceProviderDefaultErrorResponse struct { Error *ErrorResponseBody `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceProviderDefaultErrorResponse. +func (rpder ResourceProviderDefaultErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UserDetail subscriber detail type UserDetail struct { // FirstName - First name diff --git a/services/consumption/mgmt/2017-11-30/consumption/CHANGELOG.md b/services/consumption/mgmt/2017-11-30/consumption/CHANGELOG.md index 52911e4cc5e4..bff9d1bc90ea 100644 --- a/services/consumption/mgmt/2017-11-30/consumption/CHANGELOG.md +++ b/services/consumption/mgmt/2017-11-30/consumption/CHANGELOG.md @@ -1,2 +1,16 @@ # Change History +## Additive Changes + +### New Funcs + +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. MeterDetails.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. ReservationDetailsListResult.MarshalJSON() ([]byte, error) +1. ReservationDetailsProperties.MarshalJSON() ([]byte, error) +1. ReservationSummariesListResult.MarshalJSON() ([]byte, error) +1. ReservationSummariesProperties.MarshalJSON() ([]byte, error) +1. UsageDetailProperties.MarshalJSON() ([]byte, error) +1. UsageDetailsListResult.MarshalJSON() ([]byte, error) diff --git a/services/consumption/mgmt/2017-11-30/consumption/_meta.json b/services/consumption/mgmt/2017-11-30/consumption/_meta.json index 6d41171ddac0..6015a9886c42 100644 --- a/services/consumption/mgmt/2017-11-30/consumption/_meta.json +++ b/services/consumption/mgmt/2017-11-30/consumption/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/consumption/resource-manager/readme.md", "tag": "package-2017-11", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/consumption/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/consumption/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/consumption/mgmt/2017-11-30/consumption/models.go b/services/consumption/mgmt/2017-11-30/consumption/models.go index 992662601496..f4ea8ebc9ffe 100644 --- a/services/consumption/mgmt/2017-11-30/consumption/models.go +++ b/services/consumption/mgmt/2017-11-30/consumption/models.go @@ -28,6 +28,12 @@ type ErrorDetails struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse error response indicates that the service is not able to process the incoming request. The // reason is provided in the error message. type ErrorResponse struct { @@ -53,6 +59,12 @@ type MeterDetails struct { PretaxStandardRate *decimal.Decimal `json:"pretaxStandardRate,omitempty"` } +// MarshalJSON is the custom marshaler for MeterDetails. +func (md MeterDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation a Consumption REST API operation. type Operation struct { // Name - READ-ONLY; Operation name: {provider}/{resource}/{operation}. @@ -80,6 +92,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of listing consumption operations. It contains a list of operations and a URL // link to get the next set of results. type OperationListResult struct { @@ -90,6 +108,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -329,6 +353,12 @@ type ReservationDetailsListResult struct { Value *[]ReservationDetails `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationDetailsListResult. +func (rdlr ReservationDetailsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationDetailsProperties the properties of the reservation details. type ReservationDetailsProperties struct { // ReservationOrderID - READ-ONLY; The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations. @@ -349,6 +379,12 @@ type ReservationDetailsProperties struct { TotalReservedQuantity *decimal.Decimal `json:"totalReservedQuantity,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationDetailsProperties. +func (rdp ReservationDetailsProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationSummaries reservation summaries resource. type ReservationSummaries struct { *ReservationSummariesProperties `json:"properties,omitempty"` @@ -438,6 +474,12 @@ type ReservationSummariesListResult struct { Value *[]ReservationSummaries `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationSummariesListResult. +func (rslr ReservationSummariesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationSummariesProperties the properties of the reservation summaries. type ReservationSummariesProperties struct { // ReservationOrderID - READ-ONLY; The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations. @@ -460,6 +502,12 @@ type ReservationSummariesProperties struct { MaxUtilizationPercentage *decimal.Decimal `json:"maxUtilizationPercentage,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationSummariesProperties. +func (rsp ReservationSummariesProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource the Resource model definition. type Resource struct { // ID - READ-ONLY; Resource Id. @@ -608,6 +656,12 @@ type UsageDetailProperties struct { AdditionalProperties *string `json:"additionalProperties,omitempty"` } +// MarshalJSON is the custom marshaler for UsageDetailProperties. +func (UDP UsageDetailProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageDetailsListResult result of listing usage details. It contains a list of available usage details in // reverse chronological order by billing period. type UsageDetailsListResult struct { @@ -618,6 +672,12 @@ type UsageDetailsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for UsageDetailsListResult. +func (udlr UsageDetailsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageDetailsListResultIterator provides access to a complete listing of UsageDetail values. type UsageDetailsListResultIterator struct { i int diff --git a/services/consumption/mgmt/2018-01-31/consumption/CHANGELOG.md b/services/consumption/mgmt/2018-01-31/consumption/CHANGELOG.md index 52911e4cc5e4..6022037b1777 100644 --- a/services/consumption/mgmt/2018-01-31/consumption/CHANGELOG.md +++ b/services/consumption/mgmt/2018-01-31/consumption/CHANGELOG.md @@ -1,2 +1,22 @@ # Change History +## Additive Changes + +### New Funcs + +1. BudgetsListResult.MarshalJSON() ([]byte, error) +1. CurrentSpend.MarshalJSON() ([]byte, error) +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. MarketplaceProperties.MarshalJSON() ([]byte, error) +1. MarketplacesListResult.MarshalJSON() ([]byte, error) +1. MeterDetails.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. PriceSheetModel.MarshalJSON() ([]byte, error) +1. PriceSheetProperties.MarshalJSON() ([]byte, error) +1. ReservationDetailsListResult.MarshalJSON() ([]byte, error) +1. ReservationDetailsProperties.MarshalJSON() ([]byte, error) +1. ReservationSummariesListResult.MarshalJSON() ([]byte, error) +1. ReservationSummariesProperties.MarshalJSON() ([]byte, error) +1. UsageDetailProperties.MarshalJSON() ([]byte, error) +1. UsageDetailsListResult.MarshalJSON() ([]byte, error) diff --git a/services/consumption/mgmt/2018-01-31/consumption/_meta.json b/services/consumption/mgmt/2018-01-31/consumption/_meta.json index 60a86b0de2c8..2b32edbaf588 100644 --- a/services/consumption/mgmt/2018-01-31/consumption/_meta.json +++ b/services/consumption/mgmt/2018-01-31/consumption/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/consumption/resource-manager/readme.md", "tag": "package-2018-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/consumption/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/consumption/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/consumption/mgmt/2018-01-31/consumption/models.go b/services/consumption/mgmt/2018-01-31/consumption/models.go index a925eb1d4433..b07a61ea88a6 100644 --- a/services/consumption/mgmt/2018-01-31/consumption/models.go +++ b/services/consumption/mgmt/2018-01-31/consumption/models.go @@ -158,6 +158,12 @@ type BudgetsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for BudgetsListResult. +func (blr BudgetsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BudgetsListResultIterator provides access to a complete listing of Budget values. type BudgetsListResultIterator struct { i int @@ -324,6 +330,12 @@ type CurrentSpend struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for CurrentSpend. +func (cs CurrentSpend) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetails the details of the error. type ErrorDetails struct { // Code - READ-ONLY; Error code. @@ -332,6 +344,12 @@ type ErrorDetails struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse error response indicates that the service is not able to process the incoming request. The // reason is provided in the error message. type ErrorResponse struct { @@ -483,6 +501,12 @@ type MarketplaceProperties struct { PlanName *string `json:"planName,omitempty"` } +// MarshalJSON is the custom marshaler for MarketplaceProperties. +func (mp MarketplaceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MarketplacesListResult result of listing marketplaces. It contains a list of available marketplaces in // reverse chronological order by billing period. type MarketplacesListResult struct { @@ -493,6 +517,12 @@ type MarketplacesListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for MarketplacesListResult. +func (mlr MarketplacesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MarketplacesListResultIterator provides access to a complete listing of Marketplace values. type MarketplacesListResultIterator struct { i int @@ -661,6 +691,12 @@ type MeterDetails struct { PretaxStandardRate *decimal.Decimal `json:"pretaxStandardRate,omitempty"` } +// MarshalJSON is the custom marshaler for MeterDetails. +func (md MeterDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Notification the notification associated with a budget. type Notification struct { // Enabled - The notification is enabled or not. @@ -704,6 +740,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of listing consumption operations. It contains a list of operations and a URL // link to get the next set of results. type OperationListResult struct { @@ -714,6 +756,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -872,6 +920,12 @@ type PriceSheetModel struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PriceSheetModel. +func (psm PriceSheetModel) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PriceSheetProperties the properties of the price sheet. type PriceSheetProperties struct { // BillingPeriodID - READ-ONLY; The id of the billing period resource that the usage belongs to. @@ -892,6 +946,12 @@ type PriceSheetProperties struct { CurrencyCode *string `json:"currencyCode,omitempty"` } +// MarshalJSON is the custom marshaler for PriceSheetProperties. +func (psp PriceSheetProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PriceSheetResult an pricesheet resource. type PriceSheetResult struct { autorest.Response `json:"-"` @@ -1087,6 +1147,12 @@ type ReservationDetailsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationDetailsListResult. +func (rdlr ReservationDetailsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationDetailsListResultIterator provides access to a complete listing of ReservationDetails values. type ReservationDetailsListResultIterator struct { i int @@ -1257,6 +1323,12 @@ type ReservationDetailsProperties struct { TotalReservedQuantity *decimal.Decimal `json:"totalReservedQuantity,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationDetailsProperties. +func (rdp ReservationDetailsProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationSummaries reservation summaries resource. type ReservationSummaries struct { *ReservationSummariesProperties `json:"properties,omitempty"` @@ -1348,6 +1420,12 @@ type ReservationSummariesListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationSummariesListResult. +func (rslr ReservationSummariesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationSummariesListResultIterator provides access to a complete listing of ReservationSummaries // values. type ReservationSummariesListResultIterator struct { @@ -1521,6 +1599,12 @@ type ReservationSummariesProperties struct { MaxUtilizationPercentage *decimal.Decimal `json:"maxUtilizationPercentage,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationSummariesProperties. +func (rsp ReservationSummariesProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource the Resource model definition. type Resource struct { // ID - READ-ONLY; Resource Id. @@ -1669,6 +1753,12 @@ type UsageDetailProperties struct { AdditionalProperties *string `json:"additionalProperties,omitempty"` } +// MarshalJSON is the custom marshaler for UsageDetailProperties. +func (UDP UsageDetailProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageDetailsListResult result of listing usage details. It contains a list of available usage details in // reverse chronological order by billing period. type UsageDetailsListResult struct { @@ -1679,6 +1769,12 @@ type UsageDetailsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for UsageDetailsListResult. +func (udlr UsageDetailsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageDetailsListResultIterator provides access to a complete listing of UsageDetail values. type UsageDetailsListResultIterator struct { i int diff --git a/services/consumption/mgmt/2018-03-31/consumption/CHANGELOG.md b/services/consumption/mgmt/2018-03-31/consumption/CHANGELOG.md index 52911e4cc5e4..bf7730b8b4ce 100644 --- a/services/consumption/mgmt/2018-03-31/consumption/CHANGELOG.md +++ b/services/consumption/mgmt/2018-03-31/consumption/CHANGELOG.md @@ -1,2 +1,27 @@ # Change History +## Additive Changes + +### New Funcs + +1. BalancePropertiesAdjustmentDetailsItem.MarshalJSON() ([]byte, error) +1. BalancePropertiesNewPurchasesDetailsItem.MarshalJSON() ([]byte, error) +1. BudgetsListResult.MarshalJSON() ([]byte, error) +1. CurrentSpend.MarshalJSON() ([]byte, error) +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. MarketplaceProperties.MarshalJSON() ([]byte, error) +1. MarketplacesListResult.MarshalJSON() ([]byte, error) +1. MeterDetails.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. PriceSheetModel.MarshalJSON() ([]byte, error) +1. PriceSheetProperties.MarshalJSON() ([]byte, error) +1. ReservationDetailsListResult.MarshalJSON() ([]byte, error) +1. ReservationDetailsProperties.MarshalJSON() ([]byte, error) +1. ReservationRecommendationsListResult.MarshalJSON() ([]byte, error) +1. ReservationRecommendationsProperties.MarshalJSON() ([]byte, error) +1. ReservationSummariesListResult.MarshalJSON() ([]byte, error) +1. ReservationSummariesProperties.MarshalJSON() ([]byte, error) +1. ResourceAttributes.MarshalJSON() ([]byte, error) +1. UsageDetailProperties.MarshalJSON() ([]byte, error) +1. UsageDetailsListResult.MarshalJSON() ([]byte, error) diff --git a/services/consumption/mgmt/2018-03-31/consumption/_meta.json b/services/consumption/mgmt/2018-03-31/consumption/_meta.json index 233b1391bc7d..51ae84d3bc1e 100644 --- a/services/consumption/mgmt/2018-03-31/consumption/_meta.json +++ b/services/consumption/mgmt/2018-03-31/consumption/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/consumption/resource-manager/readme.md", "tag": "package-2018-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/consumption/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/consumption/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/consumption/mgmt/2018-03-31/consumption/models.go b/services/consumption/mgmt/2018-03-31/consumption/models.go index 5389153165eb..d553809b368b 100644 --- a/services/consumption/mgmt/2018-03-31/consumption/models.go +++ b/services/consumption/mgmt/2018-03-31/consumption/models.go @@ -155,6 +155,12 @@ type BalancePropertiesAdjustmentDetailsItem struct { Value *decimal.Decimal `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for BalancePropertiesAdjustmentDetailsItem. +func (bpDi BalancePropertiesAdjustmentDetailsItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BalancePropertiesNewPurchasesDetailsItem ... type BalancePropertiesNewPurchasesDetailsItem struct { // Name - READ-ONLY; the name of new purchase. @@ -163,6 +169,12 @@ type BalancePropertiesNewPurchasesDetailsItem struct { Value *decimal.Decimal `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for BalancePropertiesNewPurchasesDetailsItem. +func (bpPdi BalancePropertiesNewPurchasesDetailsItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Budget a budget resource. type Budget struct { autorest.Response `json:"-"` @@ -301,6 +313,12 @@ type BudgetsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for BudgetsListResult. +func (blr BudgetsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BudgetsListResultIterator provides access to a complete listing of Budget values. type BudgetsListResultIterator struct { i int @@ -565,6 +583,12 @@ type CurrentSpend struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for CurrentSpend. +func (cs CurrentSpend) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetails the details of the error. type ErrorDetails struct { // Code - READ-ONLY; Error code. @@ -573,6 +597,12 @@ type ErrorDetails struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse error response indicates that the service is not able to process the incoming request. The // reason is provided in the error message. type ErrorResponse struct { @@ -744,6 +774,12 @@ type MarketplaceProperties struct { PlanName *string `json:"planName,omitempty"` } +// MarshalJSON is the custom marshaler for MarketplaceProperties. +func (mp MarketplaceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MarketplacesListResult result of listing marketplaces. It contains a list of available marketplaces in // reverse chronological order by billing period. type MarketplacesListResult struct { @@ -754,6 +790,12 @@ type MarketplacesListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for MarketplacesListResult. +func (mlr MarketplacesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MarketplacesListResultIterator provides access to a complete listing of Marketplace values. type MarketplacesListResultIterator struct { i int @@ -922,6 +964,12 @@ type MeterDetails struct { PretaxStandardRate *decimal.Decimal `json:"pretaxStandardRate,omitempty"` } +// MarshalJSON is the custom marshaler for MeterDetails. +func (md MeterDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Notification the notification associated with a budget. type Notification struct { // Enabled - The notification is enabled or not. @@ -965,6 +1013,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of listing consumption operations. It contains a list of operations and a URL // link to get the next set of results. type OperationListResult struct { @@ -975,6 +1029,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -1133,6 +1193,12 @@ type PriceSheetModel struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PriceSheetModel. +func (psm PriceSheetModel) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PriceSheetProperties the properties of the price sheet. type PriceSheetProperties struct { // BillingPeriodID - READ-ONLY; The id of the billing period resource that the usage belongs to. @@ -1153,6 +1219,12 @@ type PriceSheetProperties struct { CurrencyCode *string `json:"currencyCode,omitempty"` } +// MarshalJSON is the custom marshaler for PriceSheetProperties. +func (psp PriceSheetProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PriceSheetResult an pricesheet resource. type PriceSheetResult struct { autorest.Response `json:"-"` @@ -1348,6 +1420,12 @@ type ReservationDetailsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationDetailsListResult. +func (rdlr ReservationDetailsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationDetailsListResultIterator provides access to a complete listing of ReservationDetails values. type ReservationDetailsListResultIterator struct { i int @@ -1518,6 +1596,12 @@ type ReservationDetailsProperties struct { TotalReservedQuantity *decimal.Decimal `json:"totalReservedQuantity,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationDetailsProperties. +func (rdp ReservationDetailsProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationRecommendations reservation recommendations resource. type ReservationRecommendations struct { // ID - READ-ONLY; Resource Id. @@ -1631,6 +1715,12 @@ type ReservationRecommendationsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationRecommendationsListResult. +func (rrlr ReservationRecommendationsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationRecommendationsListResultIterator provides access to a complete listing of // ReservationRecommendations values. type ReservationRecommendationsListResultIterator struct { @@ -1804,6 +1894,12 @@ type ReservationRecommendationsProperties struct { Scope *string `json:"scope,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationRecommendationsProperties. +func (rrp ReservationRecommendationsProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationSummaries reservation summaries resource. type ReservationSummaries struct { *ReservationSummariesProperties `json:"properties,omitempty"` @@ -1895,6 +1991,12 @@ type ReservationSummariesListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationSummariesListResult. +func (rslr ReservationSummariesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationSummariesListResultIterator provides access to a complete listing of ReservationSummaries // values. type ReservationSummariesListResultIterator struct { @@ -2068,6 +2170,12 @@ type ReservationSummariesProperties struct { MaxUtilizationPercentage *decimal.Decimal `json:"maxUtilizationPercentage,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationSummariesProperties. +func (rsp ReservationSummariesProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource the Resource model definition. type Resource struct { // ID - READ-ONLY; Resource Id. @@ -2094,6 +2202,12 @@ type ResourceAttributes struct { Sku *string `json:"sku,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceAttributes. +func (ra ResourceAttributes) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Tag the tag resource. type Tag struct { // Key - Tag key. @@ -2322,6 +2436,12 @@ type UsageDetailProperties struct { AdditionalProperties *string `json:"additionalProperties,omitempty"` } +// MarshalJSON is the custom marshaler for UsageDetailProperties. +func (UDP UsageDetailProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageDetailsListResult result of listing usage details. It contains a list of available usage details in // reverse chronological order by billing period. type UsageDetailsListResult struct { @@ -2332,6 +2452,12 @@ type UsageDetailsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for UsageDetailsListResult. +func (udlr UsageDetailsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageDetailsListResultIterator provides access to a complete listing of UsageDetail values. type UsageDetailsListResultIterator struct { i int diff --git a/services/consumption/mgmt/2018-05-31/consumption/CHANGELOG.md b/services/consumption/mgmt/2018-05-31/consumption/CHANGELOG.md index 52911e4cc5e4..9b5b4bb91888 100644 --- a/services/consumption/mgmt/2018-05-31/consumption/CHANGELOG.md +++ b/services/consumption/mgmt/2018-05-31/consumption/CHANGELOG.md @@ -1,2 +1,15 @@ # Change History +## Additive Changes + +### New Funcs + +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. ForecastsListResult.MarshalJSON() ([]byte, error) +1. MeterDetails.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. PriceSheetModel.MarshalJSON() ([]byte, error) +1. PriceSheetProperties.MarshalJSON() ([]byte, error) +1. UsageDetailProperties.MarshalJSON() ([]byte, error) +1. UsageDetailsListResult.MarshalJSON() ([]byte, error) diff --git a/services/consumption/mgmt/2018-05-31/consumption/_meta.json b/services/consumption/mgmt/2018-05-31/consumption/_meta.json index e1c4cc69d112..4cf8c9580dd8 100644 --- a/services/consumption/mgmt/2018-05-31/consumption/_meta.json +++ b/services/consumption/mgmt/2018-05-31/consumption/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/consumption/resource-manager/readme.md", "tag": "package-2018-05", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/consumption/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/consumption/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/consumption/mgmt/2018-05-31/consumption/models.go b/services/consumption/mgmt/2018-05-31/consumption/models.go index 5de3f2d9615e..73602ac8772c 100644 --- a/services/consumption/mgmt/2018-05-31/consumption/models.go +++ b/services/consumption/mgmt/2018-05-31/consumption/models.go @@ -29,6 +29,12 @@ type ErrorDetails struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse error response indicates that the service is not able to process the incoming request. The // reason is provided in the error message. type ErrorResponse struct { @@ -172,6 +178,12 @@ type ForecastsListResult struct { Value *[]Forecast `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ForecastsListResult. +func (flr ForecastsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MeterDetails the properties of the meter detail. type MeterDetails struct { // MeterName - READ-ONLY; The name of the meter, within the given meter category @@ -190,6 +202,12 @@ type MeterDetails struct { PretaxStandardRate *decimal.Decimal `json:"pretaxStandardRate,omitempty"` } +// MarshalJSON is the custom marshaler for MeterDetails. +func (md MeterDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation a Consumption REST API operation. type Operation struct { // Name - READ-ONLY; Operation name: {provider}/{resource}/{operation}. @@ -217,6 +235,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of listing consumption operations. It contains a list of operations and a URL // link to get the next set of results. type OperationListResult struct { @@ -227,6 +251,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -385,6 +415,12 @@ type PriceSheetModel struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PriceSheetModel. +func (psm PriceSheetModel) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PriceSheetProperties the properties of the price sheet. type PriceSheetProperties struct { // BillingPeriodID - READ-ONLY; The id of the billing period resource that the usage belongs to. @@ -407,6 +443,12 @@ type PriceSheetProperties struct { OfferID *string `json:"offerId,omitempty"` } +// MarshalJSON is the custom marshaler for PriceSheetProperties. +func (psp PriceSheetProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PriceSheetResult an pricesheet resource. type PriceSheetResult struct { autorest.Response `json:"-"` @@ -646,6 +688,12 @@ type UsageDetailProperties struct { AdditionalProperties *string `json:"additionalProperties,omitempty"` } +// MarshalJSON is the custom marshaler for UsageDetailProperties. +func (UDP UsageDetailProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageDetailsListResult result of listing usage details. It contains a list of available usage details in // reverse chronological order by billing period. type UsageDetailsListResult struct { @@ -656,6 +704,12 @@ type UsageDetailsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for UsageDetailsListResult. +func (udlr UsageDetailsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageDetailsListResultIterator provides access to a complete listing of UsageDetail values. type UsageDetailsListResultIterator struct { i int diff --git a/services/consumption/mgmt/2018-06-30/consumption/CHANGELOG.md b/services/consumption/mgmt/2018-06-30/consumption/CHANGELOG.md index 52911e4cc5e4..06e390e51eca 100644 --- a/services/consumption/mgmt/2018-06-30/consumption/CHANGELOG.md +++ b/services/consumption/mgmt/2018-06-30/consumption/CHANGELOG.md @@ -1,2 +1,28 @@ # Change History +## Additive Changes + +### New Funcs + +1. BalancePropertiesAdjustmentDetailsItem.MarshalJSON() ([]byte, error) +1. BalancePropertiesNewPurchasesDetailsItem.MarshalJSON() ([]byte, error) +1. BudgetsListResult.MarshalJSON() ([]byte, error) +1. CurrentSpend.MarshalJSON() ([]byte, error) +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. ForecastsListResult.MarshalJSON() ([]byte, error) +1. MarketplaceProperties.MarshalJSON() ([]byte, error) +1. MarketplacesListResult.MarshalJSON() ([]byte, error) +1. MeterDetails.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. PriceSheetModel.MarshalJSON() ([]byte, error) +1. PriceSheetProperties.MarshalJSON() ([]byte, error) +1. ReservationDetailProperties.MarshalJSON() ([]byte, error) +1. ReservationDetailsListResult.MarshalJSON() ([]byte, error) +1. ReservationRecommendationProperties.MarshalJSON() ([]byte, error) +1. ReservationRecommendationsListResult.MarshalJSON() ([]byte, error) +1. ReservationSummariesListResult.MarshalJSON() ([]byte, error) +1. ReservationSummaryProperties.MarshalJSON() ([]byte, error) +1. ResourceAttributes.MarshalJSON() ([]byte, error) +1. UsageDetailProperties.MarshalJSON() ([]byte, error) +1. UsageDetailsListResult.MarshalJSON() ([]byte, error) diff --git a/services/consumption/mgmt/2018-06-30/consumption/_meta.json b/services/consumption/mgmt/2018-06-30/consumption/_meta.json index 038ffa9d9410..5a24624f7660 100644 --- a/services/consumption/mgmt/2018-06-30/consumption/_meta.json +++ b/services/consumption/mgmt/2018-06-30/consumption/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/consumption/resource-manager/readme.md", "tag": "package-2018-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/consumption/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/consumption/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/consumption/mgmt/2018-06-30/consumption/models.go b/services/consumption/mgmt/2018-06-30/consumption/models.go index 9d00552f2a14..54617b2f4273 100644 --- a/services/consumption/mgmt/2018-06-30/consumption/models.go +++ b/services/consumption/mgmt/2018-06-30/consumption/models.go @@ -155,6 +155,12 @@ type BalancePropertiesAdjustmentDetailsItem struct { Value *decimal.Decimal `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for BalancePropertiesAdjustmentDetailsItem. +func (bpDi BalancePropertiesAdjustmentDetailsItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BalancePropertiesNewPurchasesDetailsItem ... type BalancePropertiesNewPurchasesDetailsItem struct { // Name - READ-ONLY; the name of new purchase. @@ -163,6 +169,12 @@ type BalancePropertiesNewPurchasesDetailsItem struct { Value *decimal.Decimal `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for BalancePropertiesNewPurchasesDetailsItem. +func (bpPdi BalancePropertiesNewPurchasesDetailsItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Budget a budget resource. type Budget struct { autorest.Response `json:"-"` @@ -301,6 +313,12 @@ type BudgetsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for BudgetsListResult. +func (blr BudgetsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BudgetsListResultIterator provides access to a complete listing of Budget values. type BudgetsListResultIterator struct { i int @@ -565,6 +583,12 @@ type CurrentSpend struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for CurrentSpend. +func (cs CurrentSpend) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetails the details of the error. type ErrorDetails struct { // Code - READ-ONLY; Error code. @@ -573,6 +597,12 @@ type ErrorDetails struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse error response indicates that the service is not able to process the incoming request. The // reason is provided in the error message. type ErrorResponse struct { @@ -746,6 +776,12 @@ type ForecastsListResult struct { Value *[]Forecast `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ForecastsListResult. +func (flr ForecastsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagementGroupAggregatedCostProperties the properties of the Management Group Aggregated Cost. type ManagementGroupAggregatedCostProperties struct { // BillingPeriodID - READ-ONLY; The id of the billing period resource that the aggregated cost belongs to. @@ -988,6 +1024,12 @@ type MarketplaceProperties struct { PlanName *string `json:"planName,omitempty"` } +// MarshalJSON is the custom marshaler for MarketplaceProperties. +func (mp MarketplaceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MarketplacesListResult result of listing marketplaces. It contains a list of available marketplaces in // reverse chronological order by billing period. type MarketplacesListResult struct { @@ -998,6 +1040,12 @@ type MarketplacesListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for MarketplacesListResult. +func (mlr MarketplacesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MarketplacesListResultIterator provides access to a complete listing of Marketplace values. type MarketplacesListResultIterator struct { i int @@ -1170,6 +1218,12 @@ type MeterDetails struct { ServiceTier *string `json:"serviceTier,omitempty"` } +// MarshalJSON is the custom marshaler for MeterDetails. +func (md MeterDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Notification the notification associated with a budget. type Notification struct { // Enabled - The notification is enabled or not. @@ -1213,6 +1267,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of listing consumption operations. It contains a list of operations and a URL // link to get the next set of results. type OperationListResult struct { @@ -1223,6 +1283,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -1381,6 +1447,12 @@ type PriceSheetModel struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PriceSheetModel. +func (psm PriceSheetModel) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PriceSheetProperties the properties of the price sheet. type PriceSheetProperties struct { // BillingPeriodID - READ-ONLY; The id of the billing period resource that the usage belongs to. @@ -1403,6 +1475,12 @@ type PriceSheetProperties struct { OfferID *string `json:"offerId,omitempty"` } +// MarshalJSON is the custom marshaler for PriceSheetProperties. +func (psp PriceSheetProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PriceSheetResult an pricesheet resource. type PriceSheetResult struct { autorest.Response `json:"-"` @@ -1609,6 +1687,12 @@ type ReservationDetailProperties struct { TotalReservedQuantity *decimal.Decimal `json:"totalReservedQuantity,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationDetailProperties. +func (rdp ReservationDetailProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationDetailsListResult result of listing reservation details. type ReservationDetailsListResult struct { autorest.Response `json:"-"` @@ -1618,6 +1702,12 @@ type ReservationDetailsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationDetailsListResult. +func (rdlr ReservationDetailsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationDetailsListResultIterator provides access to a complete listing of ReservationDetail values. type ReservationDetailsListResultIterator struct { i int @@ -1894,6 +1984,12 @@ type ReservationRecommendationProperties struct { Scope *string `json:"scope,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationRecommendationProperties. +func (rrp ReservationRecommendationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationRecommendationsListResult result of listing reservation recommendations. type ReservationRecommendationsListResult struct { autorest.Response `json:"-"` @@ -1903,6 +1999,12 @@ type ReservationRecommendationsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationRecommendationsListResult. +func (rrlr ReservationRecommendationsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationRecommendationsListResultIterator provides access to a complete listing of // ReservationRecommendation values. type ReservationRecommendationsListResultIterator struct { @@ -2063,6 +2165,12 @@ type ReservationSummariesListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationSummariesListResult. +func (rslr ReservationSummariesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationSummariesListResultIterator provides access to a complete listing of ReservationSummary // values. type ReservationSummariesListResultIterator struct { @@ -2318,6 +2426,12 @@ type ReservationSummaryProperties struct { MaxUtilizationPercentage *decimal.Decimal `json:"maxUtilizationPercentage,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationSummaryProperties. +func (rsp ReservationSummaryProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource the Resource model definition. type Resource struct { // ID - READ-ONLY; Resource Id. @@ -2344,6 +2458,12 @@ type ResourceAttributes struct { Sku *string `json:"sku,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceAttributes. +func (ra ResourceAttributes) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Tag the tag resource. type Tag struct { // Key - Tag key. @@ -2582,6 +2702,12 @@ type UsageDetailProperties struct { AdditionalProperties *string `json:"additionalProperties,omitempty"` } +// MarshalJSON is the custom marshaler for UsageDetailProperties. +func (UDP UsageDetailProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageDetailsListResult result of listing usage details. It contains a list of available usage details in // reverse chronological order by billing period. type UsageDetailsListResult struct { @@ -2592,6 +2718,12 @@ type UsageDetailsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for UsageDetailsListResult. +func (udlr UsageDetailsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageDetailsListResultIterator provides access to a complete listing of UsageDetail values. type UsageDetailsListResultIterator struct { i int diff --git a/services/consumption/mgmt/2018-08-31/consumption/CHANGELOG.md b/services/consumption/mgmt/2018-08-31/consumption/CHANGELOG.md index 52911e4cc5e4..85de86a01541 100644 --- a/services/consumption/mgmt/2018-08-31/consumption/CHANGELOG.md +++ b/services/consumption/mgmt/2018-08-31/consumption/CHANGELOG.md @@ -1,2 +1,30 @@ # Change History +## Additive Changes + +### New Funcs + +1. BalancePropertiesAdjustmentDetailsItem.MarshalJSON() ([]byte, error) +1. BalancePropertiesNewPurchasesDetailsItem.MarshalJSON() ([]byte, error) +1. BudgetsListResult.MarshalJSON() ([]byte, error) +1. ChargeSummaryProperties.MarshalJSON() ([]byte, error) +1. ChargesListResult.MarshalJSON() ([]byte, error) +1. CurrentSpend.MarshalJSON() ([]byte, error) +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. ForecastsListResult.MarshalJSON() ([]byte, error) +1. MarketplaceProperties.MarshalJSON() ([]byte, error) +1. MarketplacesListResult.MarshalJSON() ([]byte, error) +1. MeterDetails.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. PriceSheetModel.MarshalJSON() ([]byte, error) +1. PriceSheetProperties.MarshalJSON() ([]byte, error) +1. ReservationDetailProperties.MarshalJSON() ([]byte, error) +1. ReservationDetailsListResult.MarshalJSON() ([]byte, error) +1. ReservationRecommendationProperties.MarshalJSON() ([]byte, error) +1. ReservationRecommendationsListResult.MarshalJSON() ([]byte, error) +1. ReservationSummariesListResult.MarshalJSON() ([]byte, error) +1. ReservationSummaryProperties.MarshalJSON() ([]byte, error) +1. ResourceAttributes.MarshalJSON() ([]byte, error) +1. UsageDetailProperties.MarshalJSON() ([]byte, error) +1. UsageDetailsListResult.MarshalJSON() ([]byte, error) diff --git a/services/consumption/mgmt/2018-08-31/consumption/_meta.json b/services/consumption/mgmt/2018-08-31/consumption/_meta.json index 90fd181332d1..671dd47a7aa9 100644 --- a/services/consumption/mgmt/2018-08-31/consumption/_meta.json +++ b/services/consumption/mgmt/2018-08-31/consumption/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/consumption/resource-manager/readme.md", "tag": "package-2018-08", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/consumption/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/consumption/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/consumption/mgmt/2018-08-31/consumption/models.go b/services/consumption/mgmt/2018-08-31/consumption/models.go index 066d12ad1ecd..8e70c39d8cdd 100644 --- a/services/consumption/mgmt/2018-08-31/consumption/models.go +++ b/services/consumption/mgmt/2018-08-31/consumption/models.go @@ -155,6 +155,12 @@ type BalancePropertiesAdjustmentDetailsItem struct { Value *decimal.Decimal `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for BalancePropertiesAdjustmentDetailsItem. +func (bpDi BalancePropertiesAdjustmentDetailsItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BalancePropertiesNewPurchasesDetailsItem ... type BalancePropertiesNewPurchasesDetailsItem struct { // Name - READ-ONLY; the name of new purchase. @@ -163,6 +169,12 @@ type BalancePropertiesNewPurchasesDetailsItem struct { Value *decimal.Decimal `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for BalancePropertiesNewPurchasesDetailsItem. +func (bpPdi BalancePropertiesNewPurchasesDetailsItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Budget a budget resource. type Budget struct { autorest.Response `json:"-"` @@ -301,6 +313,12 @@ type BudgetsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for BudgetsListResult. +func (blr BudgetsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BudgetsListResultIterator provides access to a complete listing of Budget values. type BudgetsListResultIterator struct { i int @@ -466,6 +484,12 @@ type ChargesListResult struct { Value *[]ChargeSummary `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ChargesListResult. +func (clr ChargesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ChargeSummary a charge summary resource. type ChargeSummary struct { autorest.Response `json:"-"` @@ -567,6 +591,12 @@ type ChargeSummaryProperties struct { Currency *string `json:"currency,omitempty"` } +// MarshalJSON is the custom marshaler for ChargeSummaryProperties. +func (csp ChargeSummaryProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CurrentSpend the current amount of cost which is being tracked for a budget. type CurrentSpend struct { // Amount - READ-ONLY; The total amount of cost which is being tracked by the budget. @@ -575,6 +605,12 @@ type CurrentSpend struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for CurrentSpend. +func (cs CurrentSpend) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetails the details of the error. type ErrorDetails struct { // Code - READ-ONLY; Error code. @@ -583,6 +619,12 @@ type ErrorDetails struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse error response indicates that the service is not able to process the incoming request. The // reason is provided in the error message. type ErrorResponse struct { @@ -756,6 +798,12 @@ type ForecastsListResult struct { Value *[]Forecast `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ForecastsListResult. +func (flr ForecastsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagementGroupAggregatedCostProperties the properties of the Management Group Aggregated Cost. type ManagementGroupAggregatedCostProperties struct { // BillingPeriodID - READ-ONLY; The id of the billing period resource that the aggregated cost belongs to. @@ -1004,6 +1052,12 @@ type MarketplaceProperties struct { IsRecurringCharge *bool `json:"isRecurringCharge,omitempty"` } +// MarshalJSON is the custom marshaler for MarketplaceProperties. +func (mp MarketplaceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MarketplacesListResult result of listing marketplaces. It contains a list of available marketplaces in // reverse chronological order by billing period. type MarketplacesListResult struct { @@ -1014,6 +1068,12 @@ type MarketplacesListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for MarketplacesListResult. +func (mlr MarketplacesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MarketplacesListResultIterator provides access to a complete listing of Marketplace values. type MarketplacesListResultIterator struct { i int @@ -1186,6 +1246,12 @@ type MeterDetails struct { ServiceTier *string `json:"serviceTier,omitempty"` } +// MarshalJSON is the custom marshaler for MeterDetails. +func (md MeterDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Notification the notification associated with a budget. type Notification struct { // Enabled - The notification is enabled or not. @@ -1229,6 +1295,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of listing consumption operations. It contains a list of operations and a URL // link to get the next set of results. type OperationListResult struct { @@ -1239,6 +1311,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -1397,6 +1475,12 @@ type PriceSheetModel struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PriceSheetModel. +func (psm PriceSheetModel) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PriceSheetProperties the properties of the price sheet. type PriceSheetProperties struct { // BillingPeriodID - READ-ONLY; The id of the billing period resource that the usage belongs to. @@ -1419,6 +1503,12 @@ type PriceSheetProperties struct { OfferID *string `json:"offerId,omitempty"` } +// MarshalJSON is the custom marshaler for PriceSheetProperties. +func (psp PriceSheetProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PriceSheetResult an pricesheet resource. type PriceSheetResult struct { autorest.Response `json:"-"` @@ -1625,6 +1715,12 @@ type ReservationDetailProperties struct { TotalReservedQuantity *decimal.Decimal `json:"totalReservedQuantity,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationDetailProperties. +func (rdp ReservationDetailProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationDetailsListResult result of listing reservation details. type ReservationDetailsListResult struct { autorest.Response `json:"-"` @@ -1634,6 +1730,12 @@ type ReservationDetailsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationDetailsListResult. +func (rdlr ReservationDetailsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationDetailsListResultIterator provides access to a complete listing of ReservationDetail values. type ReservationDetailsListResultIterator struct { i int @@ -1910,6 +2012,12 @@ type ReservationRecommendationProperties struct { Scope *string `json:"scope,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationRecommendationProperties. +func (rrp ReservationRecommendationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationRecommendationsListResult result of listing reservation recommendations. type ReservationRecommendationsListResult struct { autorest.Response `json:"-"` @@ -1919,6 +2027,12 @@ type ReservationRecommendationsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationRecommendationsListResult. +func (rrlr ReservationRecommendationsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationRecommendationsListResultIterator provides access to a complete listing of // ReservationRecommendation values. type ReservationRecommendationsListResultIterator struct { @@ -2079,6 +2193,12 @@ type ReservationSummariesListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationSummariesListResult. +func (rslr ReservationSummariesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationSummariesListResultIterator provides access to a complete listing of ReservationSummary // values. type ReservationSummariesListResultIterator struct { @@ -2334,6 +2454,12 @@ type ReservationSummaryProperties struct { MaxUtilizationPercentage *decimal.Decimal `json:"maxUtilizationPercentage,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationSummaryProperties. +func (rsp ReservationSummaryProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource the Resource model definition. type Resource struct { // ID - READ-ONLY; Resource Id. @@ -2360,6 +2486,12 @@ type ResourceAttributes struct { Sku *string `json:"sku,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceAttributes. +func (ra ResourceAttributes) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Tag the tag resource. type Tag struct { // Key - Tag key. @@ -2598,6 +2730,12 @@ type UsageDetailProperties struct { AdditionalProperties *string `json:"additionalProperties,omitempty"` } +// MarshalJSON is the custom marshaler for UsageDetailProperties. +func (UDP UsageDetailProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageDetailsListResult result of listing usage details. It contains a list of available usage details in // reverse chronological order by billing period. type UsageDetailsListResult struct { @@ -2608,6 +2746,12 @@ type UsageDetailsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for UsageDetailsListResult. +func (udlr UsageDetailsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageDetailsListResultIterator provides access to a complete listing of UsageDetail values. type UsageDetailsListResultIterator struct { i int diff --git a/services/consumption/mgmt/2018-10-01/consumption/CHANGELOG.md b/services/consumption/mgmt/2018-10-01/consumption/CHANGELOG.md index 52911e4cc5e4..814a28f61542 100644 --- a/services/consumption/mgmt/2018-10-01/consumption/CHANGELOG.md +++ b/services/consumption/mgmt/2018-10-01/consumption/CHANGELOG.md @@ -1,2 +1,32 @@ # Change History +## Additive Changes + +### New Funcs + +1. BalancePropertiesAdjustmentDetailsItem.MarshalJSON() ([]byte, error) +1. BalancePropertiesNewPurchasesDetailsItem.MarshalJSON() ([]byte, error) +1. BudgetsListResult.MarshalJSON() ([]byte, error) +1. ChargeSummaryProperties.MarshalJSON() ([]byte, error) +1. ChargesListResult.MarshalJSON() ([]byte, error) +1. CurrentSpend.MarshalJSON() ([]byte, error) +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. ForecastsListResult.MarshalJSON() ([]byte, error) +1. MarketplaceProperties.MarshalJSON() ([]byte, error) +1. MarketplacesListResult.MarshalJSON() ([]byte, error) +1. MeterDetails.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. PriceSheetModel.MarshalJSON() ([]byte, error) +1. PriceSheetProperties.MarshalJSON() ([]byte, error) +1. ReservationDetailProperties.MarshalJSON() ([]byte, error) +1. ReservationDetailsListResult.MarshalJSON() ([]byte, error) +1. ReservationRecommendationProperties.MarshalJSON() ([]byte, error) +1. ReservationRecommendationsListResult.MarshalJSON() ([]byte, error) +1. ReservationSummariesListResult.MarshalJSON() ([]byte, error) +1. ReservationSummaryProperties.MarshalJSON() ([]byte, error) +1. ResourceAttributes.MarshalJSON() ([]byte, error) +1. TenantListResult.MarshalJSON() ([]byte, error) +1. TenantProperties.MarshalJSON() ([]byte, error) +1. UsageDetailProperties.MarshalJSON() ([]byte, error) +1. UsageDetailsListResult.MarshalJSON() ([]byte, error) diff --git a/services/consumption/mgmt/2018-10-01/consumption/_meta.json b/services/consumption/mgmt/2018-10-01/consumption/_meta.json index fb8773c79cf0..4d98db316dc7 100644 --- a/services/consumption/mgmt/2018-10-01/consumption/_meta.json +++ b/services/consumption/mgmt/2018-10-01/consumption/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/consumption/resource-manager/readme.md", "tag": "package-2018-10", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/consumption/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/consumption/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/consumption/mgmt/2018-10-01/consumption/models.go b/services/consumption/mgmt/2018-10-01/consumption/models.go index 2e62754353aa..4ef5bfff8b0f 100644 --- a/services/consumption/mgmt/2018-10-01/consumption/models.go +++ b/services/consumption/mgmt/2018-10-01/consumption/models.go @@ -155,6 +155,12 @@ type BalancePropertiesAdjustmentDetailsItem struct { Value *decimal.Decimal `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for BalancePropertiesAdjustmentDetailsItem. +func (bpDi BalancePropertiesAdjustmentDetailsItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BalancePropertiesNewPurchasesDetailsItem ... type BalancePropertiesNewPurchasesDetailsItem struct { // Name - READ-ONLY; the name of new purchase. @@ -163,6 +169,12 @@ type BalancePropertiesNewPurchasesDetailsItem struct { Value *decimal.Decimal `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for BalancePropertiesNewPurchasesDetailsItem. +func (bpPdi BalancePropertiesNewPurchasesDetailsItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Budget a budget resource. type Budget struct { autorest.Response `json:"-"` @@ -301,6 +313,12 @@ type BudgetsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for BudgetsListResult. +func (blr BudgetsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BudgetsListResultIterator provides access to a complete listing of Budget values. type BudgetsListResultIterator struct { i int @@ -466,6 +484,12 @@ type ChargesListResult struct { Value *[]ChargeSummary `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ChargesListResult. +func (clr ChargesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ChargeSummary a charge summary resource. type ChargeSummary struct { autorest.Response `json:"-"` @@ -567,6 +591,12 @@ type ChargeSummaryProperties struct { Currency *string `json:"currency,omitempty"` } +// MarshalJSON is the custom marshaler for ChargeSummaryProperties. +func (csp ChargeSummaryProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CurrentSpend the current amount of cost which is being tracked for a budget. type CurrentSpend struct { // Amount - READ-ONLY; The total amount of cost which is being tracked by the budget. @@ -575,6 +605,12 @@ type CurrentSpend struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for CurrentSpend. +func (cs CurrentSpend) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetails the details of the error. type ErrorDetails struct { // Code - READ-ONLY; Error code. @@ -583,6 +619,12 @@ type ErrorDetails struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse error response indicates that the service is not able to process the incoming request. The // reason is provided in the error message. type ErrorResponse struct { @@ -756,6 +798,12 @@ type ForecastsListResult struct { Value *[]Forecast `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ForecastsListResult. +func (flr ForecastsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagementGroupAggregatedCostProperties the properties of the Management Group Aggregated Cost. type ManagementGroupAggregatedCostProperties struct { // BillingPeriodID - READ-ONLY; The id of the billing period resource that the aggregated cost belongs to. @@ -1014,6 +1062,12 @@ type MarketplaceProperties struct { IsRecurringCharge *bool `json:"isRecurringCharge,omitempty"` } +// MarshalJSON is the custom marshaler for MarketplaceProperties. +func (mp MarketplaceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MarketplacesListResult result of listing marketplaces. It contains a list of available marketplaces in // reverse chronological order by billing period. type MarketplacesListResult struct { @@ -1024,6 +1078,12 @@ type MarketplacesListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for MarketplacesListResult. +func (mlr MarketplacesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MarketplacesListResultIterator provides access to a complete listing of Marketplace values. type MarketplacesListResultIterator struct { i int @@ -1196,6 +1256,12 @@ type MeterDetails struct { ServiceTier *string `json:"serviceTier,omitempty"` } +// MarshalJSON is the custom marshaler for MeterDetails. +func (md MeterDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Notification the notification associated with a budget. type Notification struct { // Enabled - The notification is enabled or not. @@ -1239,6 +1305,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of listing consumption operations. It contains a list of operations and a URL // link to get the next set of results. type OperationListResult struct { @@ -1249,6 +1321,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -1407,6 +1485,12 @@ type PriceSheetModel struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PriceSheetModel. +func (psm PriceSheetModel) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PriceSheetProperties the properties of the price sheet. type PriceSheetProperties struct { // BillingPeriodID - READ-ONLY; The id of the billing period resource that the usage belongs to. @@ -1429,6 +1513,12 @@ type PriceSheetProperties struct { OfferID *string `json:"offerId,omitempty"` } +// MarshalJSON is the custom marshaler for PriceSheetProperties. +func (psp PriceSheetProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PriceSheetResult an pricesheet resource. type PriceSheetResult struct { autorest.Response `json:"-"` @@ -1635,6 +1725,12 @@ type ReservationDetailProperties struct { TotalReservedQuantity *decimal.Decimal `json:"totalReservedQuantity,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationDetailProperties. +func (rdp ReservationDetailProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationDetailsListResult result of listing reservation details. type ReservationDetailsListResult struct { autorest.Response `json:"-"` @@ -1644,6 +1740,12 @@ type ReservationDetailsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationDetailsListResult. +func (rdlr ReservationDetailsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationDetailsListResultIterator provides access to a complete listing of ReservationDetail values. type ReservationDetailsListResultIterator struct { i int @@ -1920,6 +2022,12 @@ type ReservationRecommendationProperties struct { Scope *string `json:"scope,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationRecommendationProperties. +func (rrp ReservationRecommendationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationRecommendationsListResult result of listing reservation recommendations. type ReservationRecommendationsListResult struct { autorest.Response `json:"-"` @@ -1929,6 +2037,12 @@ type ReservationRecommendationsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationRecommendationsListResult. +func (rrlr ReservationRecommendationsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationRecommendationsListResultIterator provides access to a complete listing of // ReservationRecommendation values. type ReservationRecommendationsListResultIterator struct { @@ -2089,6 +2203,12 @@ type ReservationSummariesListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationSummariesListResult. +func (rslr ReservationSummariesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationSummariesListResultIterator provides access to a complete listing of ReservationSummary // values. type ReservationSummariesListResultIterator struct { @@ -2344,6 +2464,12 @@ type ReservationSummaryProperties struct { MaxUtilizationPercentage *decimal.Decimal `json:"maxUtilizationPercentage,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationSummaryProperties. +func (rsp ReservationSummaryProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource the Resource model definition. type Resource struct { // ID - READ-ONLY; Resource Id. @@ -2370,6 +2496,12 @@ type ResourceAttributes struct { Sku *string `json:"sku,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceAttributes. +func (ra ResourceAttributes) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Tag the tag resource. type Tag struct { // Key - Tag key. @@ -2559,6 +2691,12 @@ type TenantListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for TenantListResult. +func (tlr TenantListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TenantProperties the properties of the tenants. type TenantProperties struct { // BillingProfileName - READ-ONLY; The Billing Profile name. @@ -2571,6 +2709,12 @@ type TenantProperties struct { BillingAccountName *string `json:"billingAccountName,omitempty"` } +// MarshalJSON is the custom marshaler for TenantProperties. +func (tp TenantProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageDetail an usage detail resource. type UsageDetail struct { *UsageDetailProperties `json:"properties,omitempty"` @@ -2711,6 +2855,12 @@ type UsageDetailProperties struct { AdditionalProperties *string `json:"additionalProperties,omitempty"` } +// MarshalJSON is the custom marshaler for UsageDetailProperties. +func (UDP UsageDetailProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageDetailsListResult result of listing usage details. It contains a list of available usage details in // reverse chronological order by billing period. type UsageDetailsListResult struct { @@ -2721,6 +2871,12 @@ type UsageDetailsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for UsageDetailsListResult. +func (udlr UsageDetailsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageDetailsListResultIterator provides access to a complete listing of UsageDetail values. type UsageDetailsListResultIterator struct { i int diff --git a/services/consumption/mgmt/2019-01-01/consumption/CHANGELOG.md b/services/consumption/mgmt/2019-01-01/consumption/CHANGELOG.md index 52911e4cc5e4..85de86a01541 100644 --- a/services/consumption/mgmt/2019-01-01/consumption/CHANGELOG.md +++ b/services/consumption/mgmt/2019-01-01/consumption/CHANGELOG.md @@ -1,2 +1,30 @@ # Change History +## Additive Changes + +### New Funcs + +1. BalancePropertiesAdjustmentDetailsItem.MarshalJSON() ([]byte, error) +1. BalancePropertiesNewPurchasesDetailsItem.MarshalJSON() ([]byte, error) +1. BudgetsListResult.MarshalJSON() ([]byte, error) +1. ChargeSummaryProperties.MarshalJSON() ([]byte, error) +1. ChargesListResult.MarshalJSON() ([]byte, error) +1. CurrentSpend.MarshalJSON() ([]byte, error) +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. ForecastsListResult.MarshalJSON() ([]byte, error) +1. MarketplaceProperties.MarshalJSON() ([]byte, error) +1. MarketplacesListResult.MarshalJSON() ([]byte, error) +1. MeterDetails.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. PriceSheetModel.MarshalJSON() ([]byte, error) +1. PriceSheetProperties.MarshalJSON() ([]byte, error) +1. ReservationDetailProperties.MarshalJSON() ([]byte, error) +1. ReservationDetailsListResult.MarshalJSON() ([]byte, error) +1. ReservationRecommendationProperties.MarshalJSON() ([]byte, error) +1. ReservationRecommendationsListResult.MarshalJSON() ([]byte, error) +1. ReservationSummariesListResult.MarshalJSON() ([]byte, error) +1. ReservationSummaryProperties.MarshalJSON() ([]byte, error) +1. ResourceAttributes.MarshalJSON() ([]byte, error) +1. UsageDetailProperties.MarshalJSON() ([]byte, error) +1. UsageDetailsListResult.MarshalJSON() ([]byte, error) diff --git a/services/consumption/mgmt/2019-01-01/consumption/_meta.json b/services/consumption/mgmt/2019-01-01/consumption/_meta.json index 228ec943c874..8a06f097c86f 100644 --- a/services/consumption/mgmt/2019-01-01/consumption/_meta.json +++ b/services/consumption/mgmt/2019-01-01/consumption/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/consumption/resource-manager/readme.md", "tag": "package-2019-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/consumption/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/consumption/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/consumption/mgmt/2019-01-01/consumption/models.go b/services/consumption/mgmt/2019-01-01/consumption/models.go index e42549dc0a9d..07d8f5c3de59 100644 --- a/services/consumption/mgmt/2019-01-01/consumption/models.go +++ b/services/consumption/mgmt/2019-01-01/consumption/models.go @@ -155,6 +155,12 @@ type BalancePropertiesAdjustmentDetailsItem struct { Value *decimal.Decimal `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for BalancePropertiesAdjustmentDetailsItem. +func (bpDi BalancePropertiesAdjustmentDetailsItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BalancePropertiesNewPurchasesDetailsItem ... type BalancePropertiesNewPurchasesDetailsItem struct { // Name - READ-ONLY; the name of new purchase. @@ -163,6 +169,12 @@ type BalancePropertiesNewPurchasesDetailsItem struct { Value *decimal.Decimal `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for BalancePropertiesNewPurchasesDetailsItem. +func (bpPdi BalancePropertiesNewPurchasesDetailsItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Budget a budget resource. type Budget struct { autorest.Response `json:"-"` @@ -301,6 +313,12 @@ type BudgetsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for BudgetsListResult. +func (blr BudgetsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BudgetsListResultIterator provides access to a complete listing of Budget values. type BudgetsListResultIterator struct { i int @@ -465,6 +483,12 @@ type ChargesListResult struct { Value *[]ChargeSummary `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ChargesListResult. +func (clr ChargesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ChargeSummary a charge summary resource. type ChargeSummary struct { autorest.Response `json:"-"` @@ -566,6 +590,12 @@ type ChargeSummaryProperties struct { Currency *string `json:"currency,omitempty"` } +// MarshalJSON is the custom marshaler for ChargeSummaryProperties. +func (csp ChargeSummaryProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CurrentSpend the current amount of cost which is being tracked for a budget. type CurrentSpend struct { // Amount - READ-ONLY; The total amount of cost which is being tracked by the budget. @@ -574,6 +604,12 @@ type CurrentSpend struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for CurrentSpend. +func (cs CurrentSpend) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetails the details of the error. type ErrorDetails struct { // Code - READ-ONLY; Error code. @@ -582,6 +618,12 @@ type ErrorDetails struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse error response indicates that the service is not able to process the incoming request. The // reason is provided in the error message. type ErrorResponse struct { @@ -755,6 +797,12 @@ type ForecastsListResult struct { Value *[]Forecast `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ForecastsListResult. +func (flr ForecastsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagementGroupAggregatedCostProperties the properties of the Management Group Aggregated Cost. type ManagementGroupAggregatedCostProperties struct { // BillingPeriodID - READ-ONLY; The id of the billing period resource that the aggregated cost belongs to. @@ -1013,6 +1061,12 @@ type MarketplaceProperties struct { IsRecurringCharge *bool `json:"isRecurringCharge,omitempty"` } +// MarshalJSON is the custom marshaler for MarketplaceProperties. +func (mp MarketplaceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MarketplacesListResult result of listing marketplaces. It contains a list of available marketplaces in // reverse chronological order by billing period. type MarketplacesListResult struct { @@ -1023,6 +1077,12 @@ type MarketplacesListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for MarketplacesListResult. +func (mlr MarketplacesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MarketplacesListResultIterator provides access to a complete listing of Marketplace values. type MarketplacesListResultIterator struct { i int @@ -1195,6 +1255,12 @@ type MeterDetails struct { ServiceTier *string `json:"serviceTier,omitempty"` } +// MarshalJSON is the custom marshaler for MeterDetails. +func (md MeterDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Notification the notification associated with a budget. type Notification struct { // Enabled - The notification is enabled or not. @@ -1238,6 +1304,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of listing consumption operations. It contains a list of operations and a URL // link to get the next set of results. type OperationListResult struct { @@ -1248,6 +1320,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -1406,6 +1484,12 @@ type PriceSheetModel struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PriceSheetModel. +func (psm PriceSheetModel) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PriceSheetProperties the properties of the price sheet. type PriceSheetProperties struct { // BillingPeriodID - READ-ONLY; The id of the billing period resource that the usage belongs to. @@ -1428,6 +1512,12 @@ type PriceSheetProperties struct { OfferID *string `json:"offerId,omitempty"` } +// MarshalJSON is the custom marshaler for PriceSheetProperties. +func (psp PriceSheetProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PriceSheetResult an pricesheet resource. type PriceSheetResult struct { autorest.Response `json:"-"` @@ -1634,6 +1724,12 @@ type ReservationDetailProperties struct { TotalReservedQuantity *decimal.Decimal `json:"totalReservedQuantity,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationDetailProperties. +func (rdp ReservationDetailProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationDetailsListResult result of listing reservation details. type ReservationDetailsListResult struct { autorest.Response `json:"-"` @@ -1643,6 +1739,12 @@ type ReservationDetailsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationDetailsListResult. +func (rdlr ReservationDetailsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationDetailsListResultIterator provides access to a complete listing of ReservationDetail values. type ReservationDetailsListResultIterator struct { i int @@ -1919,6 +2021,12 @@ type ReservationRecommendationProperties struct { Scope *string `json:"scope,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationRecommendationProperties. +func (rrp ReservationRecommendationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationRecommendationsListResult result of listing reservation recommendations. type ReservationRecommendationsListResult struct { autorest.Response `json:"-"` @@ -1928,6 +2036,12 @@ type ReservationRecommendationsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationRecommendationsListResult. +func (rrlr ReservationRecommendationsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationRecommendationsListResultIterator provides access to a complete listing of // ReservationRecommendation values. type ReservationRecommendationsListResultIterator struct { @@ -2088,6 +2202,12 @@ type ReservationSummariesListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationSummariesListResult. +func (rslr ReservationSummariesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationSummariesListResultIterator provides access to a complete listing of ReservationSummary // values. type ReservationSummariesListResultIterator struct { @@ -2343,6 +2463,12 @@ type ReservationSummaryProperties struct { MaxUtilizationPercentage *decimal.Decimal `json:"maxUtilizationPercentage,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationSummaryProperties. +func (rsp ReservationSummaryProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource the Resource model definition. type Resource struct { // ID - READ-ONLY; Resource Id. @@ -2369,6 +2495,12 @@ type ResourceAttributes struct { Sku *string `json:"sku,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceAttributes. +func (ra ResourceAttributes) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Tag the tag resource. type Tag struct { // Key - Tag key. @@ -2607,6 +2739,12 @@ type UsageDetailProperties struct { AdditionalProperties *string `json:"additionalProperties,omitempty"` } +// MarshalJSON is the custom marshaler for UsageDetailProperties. +func (UDP UsageDetailProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageDetailsListResult result of listing usage details. It contains a list of available usage details in // reverse chronological order by billing period. type UsageDetailsListResult struct { @@ -2617,6 +2755,12 @@ type UsageDetailsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for UsageDetailsListResult. +func (udlr UsageDetailsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageDetailsListResultIterator provides access to a complete listing of UsageDetail values. type UsageDetailsListResultIterator struct { i int diff --git a/services/consumption/mgmt/2019-10-01/consumption/CHANGELOG.md b/services/consumption/mgmt/2019-10-01/consumption/CHANGELOG.md index 52911e4cc5e4..a494ca2b4584 100644 --- a/services/consumption/mgmt/2019-10-01/consumption/CHANGELOG.md +++ b/services/consumption/mgmt/2019-10-01/consumption/CHANGELOG.md @@ -1,2 +1,49 @@ # Change History +## Additive Changes + +### New Funcs + +1. Amount.MarshalJSON() ([]byte, error) +1. BalancePropertiesAdjustmentDetailsItem.MarshalJSON() ([]byte, error) +1. BalancePropertiesNewPurchasesDetailsItem.MarshalJSON() ([]byte, error) +1. BudgetsListResult.MarshalJSON() ([]byte, error) +1. ChargesListResult.MarshalJSON() ([]byte, error) +1. CreditBalanceSummary.MarshalJSON() ([]byte, error) +1. CreditSummaryProperties.MarshalJSON() ([]byte, error) +1. CurrentSpend.MarshalJSON() ([]byte, error) +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. Events.MarshalJSON() ([]byte, error) +1. ForecastsListResult.MarshalJSON() ([]byte, error) +1. LegacyChargeSummaryProperties.MarshalJSON() ([]byte, error) +1. LegacyReservationRecommendationProperties.MarshalJSON() ([]byte, error) +1. LegacyReservationTransactionProperties.MarshalJSON() ([]byte, error) +1. LegacyUsageDetailProperties.MarshalJSON() ([]byte, error) +1. LotProperties.MarshalJSON() ([]byte, error) +1. Lots.MarshalJSON() ([]byte, error) +1. MarketplaceProperties.MarshalJSON() ([]byte, error) +1. MarketplacesListResult.MarshalJSON() ([]byte, error) +1. MeterDetails.MarshalJSON() ([]byte, error) +1. MeterDetailsResponse.MarshalJSON() ([]byte, error) +1. ModernChargeSummaryProperties.MarshalJSON() ([]byte, error) +1. ModernReservationRecommendationProperties.MarshalJSON() ([]byte, error) +1. ModernReservationTransactionProperties.MarshalJSON() ([]byte, error) +1. ModernReservationTransactionsListResult.MarshalJSON() ([]byte, error) +1. ModernUsageDetailProperties.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. PriceSheetModel.MarshalJSON() ([]byte, error) +1. PriceSheetProperties.MarshalJSON() ([]byte, error) +1. ReservationDetailProperties.MarshalJSON() ([]byte, error) +1. ReservationDetailsListResult.MarshalJSON() ([]byte, error) +1. ReservationRecommendationDetailsProperties.MarshalJSON() ([]byte, error) +1. ReservationRecommendationDetailsResourceProperties.MarshalJSON() ([]byte, error) +1. ReservationRecommendationDetailsUsageProperties.MarshalJSON() ([]byte, error) +1. ReservationRecommendationsListResult.MarshalJSON() ([]byte, error) +1. ReservationSummariesListResult.MarshalJSON() ([]byte, error) +1. ReservationSummaryProperties.MarshalJSON() ([]byte, error) +1. ReservationTransactionResource.MarshalJSON() ([]byte, error) +1. ReservationTransactionsListResult.MarshalJSON() ([]byte, error) +1. ResourceAttributes.MarshalJSON() ([]byte, error) +1. SkuProperty.MarshalJSON() ([]byte, error) +1. UsageDetailsListResult.MarshalJSON() ([]byte, error) diff --git a/services/consumption/mgmt/2019-10-01/consumption/_meta.json b/services/consumption/mgmt/2019-10-01/consumption/_meta.json index 0b7ebaddfa62..db468a27e10b 100644 --- a/services/consumption/mgmt/2019-10-01/consumption/_meta.json +++ b/services/consumption/mgmt/2019-10-01/consumption/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/consumption/resource-manager/readme.md", "tag": "package-2019-10", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/consumption/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/consumption/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/consumption/mgmt/2019-10-01/consumption/models.go b/services/consumption/mgmt/2019-10-01/consumption/models.go index 7131f3c1b875..678711298328 100644 --- a/services/consumption/mgmt/2019-10-01/consumption/models.go +++ b/services/consumption/mgmt/2019-10-01/consumption/models.go @@ -29,6 +29,12 @@ type Amount struct { Value *decimal.Decimal `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for Amount. +func (a Amount) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Balance a balance resource. type Balance struct { autorest.Response `json:"-"` @@ -163,6 +169,12 @@ type BalancePropertiesAdjustmentDetailsItem struct { Value *decimal.Decimal `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for BalancePropertiesAdjustmentDetailsItem. +func (bpDi BalancePropertiesAdjustmentDetailsItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BalancePropertiesNewPurchasesDetailsItem ... type BalancePropertiesNewPurchasesDetailsItem struct { // Name - READ-ONLY; the name of new purchase. @@ -171,6 +183,12 @@ type BalancePropertiesNewPurchasesDetailsItem struct { Value *decimal.Decimal `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for BalancePropertiesNewPurchasesDetailsItem. +func (bpPdi BalancePropertiesNewPurchasesDetailsItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Budget a budget resource. type Budget struct { autorest.Response `json:"-"` @@ -339,6 +357,12 @@ type BudgetsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for BudgetsListResult. +func (blr BudgetsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BudgetsListResultIterator provides access to a complete listing of Budget values. type BudgetsListResultIterator struct { i int @@ -504,6 +528,12 @@ type ChargesListResult struct { Value *[]BasicChargeSummary `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ChargesListResult. +func (clr ChargesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UnmarshalJSON is the custom unmarshaler for ChargesListResult struct. func (clr *ChargesListResult) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -627,6 +657,12 @@ type CreditBalanceSummary struct { CurrentBalance *Amount `json:"currentBalance,omitempty"` } +// MarshalJSON is the custom marshaler for CreditBalanceSummary. +func (cbs CreditBalanceSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CreditSummary a credit summary resource. type CreditSummary struct { autorest.Response `json:"-"` @@ -722,6 +758,12 @@ type CreditSummaryProperties struct { PendingEligibleCharges *Amount `json:"pendingEligibleCharges,omitempty"` } +// MarshalJSON is the custom marshaler for CreditSummaryProperties. +func (csp CreditSummaryProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CurrentSpend the current amount of cost which is being tracked for a budget. type CurrentSpend struct { // Amount - READ-ONLY; The total amount of cost which is being tracked by the budget. @@ -730,6 +772,12 @@ type CurrentSpend struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for CurrentSpend. +func (cs CurrentSpend) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetails the details of the error. type ErrorDetails struct { // Code - READ-ONLY; Error code. @@ -738,6 +786,12 @@ type ErrorDetails struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse error response indicates that the service is not able to process the incoming request. The // reason is provided in the error message. // @@ -793,6 +847,12 @@ type Events struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for Events. +func (e Events) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EventsIterator provides access to a complete listing of EventSummary values. type EventsIterator struct { i int @@ -1161,6 +1221,12 @@ type ForecastsListResult struct { Value *[]Forecast `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ForecastsListResult. +func (flr ForecastsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LegacyChargeSummary legacy charge summary. type LegacyChargeSummary struct { // LegacyChargeSummaryProperties - Properties for legacy charge summary @@ -1297,6 +1363,12 @@ type LegacyChargeSummaryProperties struct { Currency *string `json:"currency,omitempty"` } +// MarshalJSON is the custom marshaler for LegacyChargeSummaryProperties. +func (lcsp LegacyChargeSummaryProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LegacyReservationRecommendation legacy reservation recommendation. type LegacyReservationRecommendation struct { // LegacyReservationRecommendationProperties - Properties for legacy reservation recommendation @@ -1469,6 +1541,12 @@ type LegacyReservationRecommendationProperties struct { SkuProperties *[]SkuProperty `json:"skuProperties,omitempty"` } +// MarshalJSON is the custom marshaler for LegacyReservationRecommendationProperties. +func (lrrp LegacyReservationRecommendationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LegacyReservationTransaction legacy Reservation transaction resource. type LegacyReservationTransaction struct { *LegacyReservationTransactionProperties `json:"properties,omitempty"` @@ -1595,6 +1673,12 @@ type LegacyReservationTransactionProperties struct { BillingFrequency *string `json:"billingFrequency,omitempty"` } +// MarshalJSON is the custom marshaler for LegacyReservationTransactionProperties. +func (lrtp LegacyReservationTransactionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LegacyUsageDetail legacy usage detail. type LegacyUsageDetail struct { // LegacyUsageDetailProperties - Properties for legacy usage details @@ -1801,6 +1885,12 @@ type LegacyUsageDetailProperties struct { Frequency *string `json:"frequency,omitempty"` } +// MarshalJSON is the custom marshaler for LegacyUsageDetailProperties. +func (ludp LegacyUsageDetailProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LotProperties the lot properties. type LotProperties struct { // OriginalAmount - READ-ONLY; Original amount. @@ -1817,6 +1907,12 @@ type LotProperties struct { PoNumber *string `json:"poNumber,omitempty"` } +// MarshalJSON is the custom marshaler for LotProperties. +func (lp LotProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Lots result of listing lot summary. type Lots struct { autorest.Response `json:"-"` @@ -1826,6 +1922,12 @@ type Lots struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for Lots. +func (l Lots) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LotsIterator provides access to a complete listing of LotSummary values. type LotsIterator struct { i int @@ -2316,6 +2418,12 @@ type MarketplaceProperties struct { IsRecurringCharge *bool `json:"isRecurringCharge,omitempty"` } +// MarshalJSON is the custom marshaler for MarketplaceProperties. +func (mp MarketplaceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MarketplacesListResult result of listing marketplaces. It contains a list of available marketplaces in // reverse chronological order by billing period. type MarketplacesListResult struct { @@ -2326,6 +2434,12 @@ type MarketplacesListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for MarketplacesListResult. +func (mlr MarketplacesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MarketplacesListResultIterator provides access to a complete listing of Marketplace values. type MarketplacesListResultIterator struct { i int @@ -2498,6 +2612,12 @@ type MeterDetails struct { ServiceTier *string `json:"serviceTier,omitempty"` } +// MarshalJSON is the custom marshaler for MeterDetails. +func (md MeterDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MeterDetailsResponse the properties of the meter detail. type MeterDetailsResponse struct { // MeterName - READ-ONLY; The name of the meter, within the given meter category @@ -2512,6 +2632,12 @@ type MeterDetailsResponse struct { ServiceFamily *string `json:"serviceFamily,omitempty"` } +// MarshalJSON is the custom marshaler for MeterDetailsResponse. +func (mdr MeterDetailsResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ModernChargeSummary modern charge summary. type ModernChargeSummary struct { // ModernChargeSummaryProperties - Properties for modern charge summary @@ -2656,6 +2782,12 @@ type ModernChargeSummaryProperties struct { IsInvoiced *bool `json:"isInvoiced,omitempty"` } +// MarshalJSON is the custom marshaler for ModernChargeSummaryProperties. +func (mcsp ModernChargeSummaryProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ModernReservationRecommendation modern reservation recommendation. type ModernReservationRecommendation struct { // ModernReservationRecommendationProperties - Properties for modern reservation recommendation @@ -2828,6 +2960,12 @@ type ModernReservationRecommendationProperties struct { SkuProperties *[]SkuProperty `json:"skuProperties,omitempty"` } +// MarshalJSON is the custom marshaler for ModernReservationRecommendationProperties. +func (mrrp ModernReservationRecommendationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ModernReservationTransaction modern Reservation transaction resource. type ModernReservationTransaction struct { *ModernReservationTransactionProperties `json:"properties,omitempty"` @@ -2954,6 +3092,12 @@ type ModernReservationTransactionProperties struct { Term *string `json:"term,omitempty"` } +// MarshalJSON is the custom marshaler for ModernReservationTransactionProperties. +func (mrtp ModernReservationTransactionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ModernReservationTransactionsListResult result of listing reservation recommendations. type ModernReservationTransactionsListResult struct { autorest.Response `json:"-"` @@ -2963,6 +3107,12 @@ type ModernReservationTransactionsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ModernReservationTransactionsListResult. +func (mrtlr ModernReservationTransactionsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ModernReservationTransactionsListResultIterator provides access to a complete listing of // ModernReservationTransaction values. type ModernReservationTransactionsListResultIterator struct { @@ -3366,6 +3516,12 @@ type ModernUsageDetailProperties struct { PartnerEarnedCreditApplied *string `json:"partnerEarnedCreditApplied,omitempty"` } +// MarshalJSON is the custom marshaler for ModernUsageDetailProperties. +func (mudp ModernUsageDetailProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Notification the notification associated with a budget. type Notification struct { // Enabled - The notification is enabled or not. @@ -3411,6 +3567,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of listing consumption operations. It contains a list of operations and a URL // link to get the next set of results. type OperationListResult struct { @@ -3421,6 +3583,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -3579,6 +3747,12 @@ type PriceSheetModel struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PriceSheetModel. +func (psm PriceSheetModel) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PriceSheetProperties the properties of the price sheet. type PriceSheetProperties struct { // BillingPeriodID - READ-ONLY; The id of the billing period resource that the usage belongs to. @@ -3601,6 +3775,12 @@ type PriceSheetProperties struct { OfferID *string `json:"offerId,omitempty"` } +// MarshalJSON is the custom marshaler for PriceSheetProperties. +func (psp PriceSheetProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PriceSheetResult an pricesheet resource. type PriceSheetResult struct { autorest.Response `json:"-"` @@ -3813,6 +3993,12 @@ type ReservationDetailProperties struct { Kind *string `json:"kind,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationDetailProperties. +func (rdp ReservationDetailProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationDetailsListResult result of listing reservation details. type ReservationDetailsListResult struct { autorest.Response `json:"-"` @@ -3822,6 +4008,12 @@ type ReservationDetailsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationDetailsListResult. +func (rdlr ReservationDetailsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationDetailsListResultIterator provides access to a complete listing of ReservationDetail values. type ReservationDetailsListResultIterator struct { i int @@ -4222,6 +4414,12 @@ type ReservationRecommendationDetailsProperties struct { Usage *ReservationRecommendationDetailsUsageProperties `json:"usage,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationRecommendationDetailsProperties. +func (rrdp ReservationRecommendationDetailsProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationRecommendationDetailsResourceProperties details of the resource. type ReservationRecommendationDetailsResourceProperties struct { // AppliedScopes - READ-ONLY; List of subscriptions for which the reservation is applied. @@ -4238,6 +4436,12 @@ type ReservationRecommendationDetailsResourceProperties struct { ResourceType *string `json:"resourceType,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationRecommendationDetailsResourceProperties. +func (rrdrp ReservationRecommendationDetailsResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationRecommendationDetailsSavingsProperties details of the estimated savings. type ReservationRecommendationDetailsSavingsProperties struct { // CalculatedSavings - List of calculated savings. @@ -4278,6 +4482,12 @@ type ReservationRecommendationDetailsUsageProperties struct { UsageGrain *string `json:"usageGrain,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationRecommendationDetailsUsageProperties. +func (rrdup ReservationRecommendationDetailsUsageProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationRecommendationsListResult result of listing reservation recommendations. type ReservationRecommendationsListResult struct { autorest.Response `json:"-"` @@ -4287,6 +4497,12 @@ type ReservationRecommendationsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationRecommendationsListResult. +func (rrlr ReservationRecommendationsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UnmarshalJSON is the custom unmarshaler for ReservationRecommendationsListResult struct. func (rrlr *ReservationRecommendationsListResult) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -4479,6 +4695,12 @@ type ReservationSummariesListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationSummariesListResult. +func (rslr ReservationSummariesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationSummariesListResultIterator provides access to a complete listing of ReservationSummary // values. type ReservationSummariesListResultIterator struct { @@ -4746,6 +4968,12 @@ type ReservationSummaryProperties struct { UtilizedPercentage *decimal.Decimal `json:"utilizedPercentage,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationSummaryProperties. +func (rsp ReservationSummaryProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationTransaction reservation transaction resource. type ReservationTransaction struct { *LegacyReservationTransactionProperties `json:"properties,omitempty"` @@ -4840,6 +5068,12 @@ type ReservationTransactionResource struct { Tags *[]string `json:"tags,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationTransactionResource. +func (rtr ReservationTransactionResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationTransactionsListResult result of listing reservation recommendations. type ReservationTransactionsListResult struct { autorest.Response `json:"-"` @@ -4849,6 +5083,12 @@ type ReservationTransactionsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ReservationTransactionsListResult. +func (rtlr ReservationTransactionsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReservationTransactionsListResultIterator provides access to a complete listing of // ReservationTransaction values. type ReservationTransactionsListResultIterator struct { @@ -5026,6 +5266,12 @@ type ResourceAttributes struct { Sku *string `json:"sku,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceAttributes. +func (ra ResourceAttributes) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuProperty the Sku property type SkuProperty struct { // Name - READ-ONLY; The name of sku property. @@ -5034,6 +5280,12 @@ type SkuProperty struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SkuProperty. +func (sp SkuProperty) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Tag the tag resource. type Tag struct { // Key - Tag key. @@ -5234,6 +5486,12 @@ type UsageDetailsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for UsageDetailsListResult. +func (udlr UsageDetailsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UnmarshalJSON is the custom unmarshaler for UsageDetailsListResult struct. func (udlr *UsageDetailsListResult) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage diff --git a/services/containerinstance/mgmt/2018-04-01/containerinstance/CHANGELOG.md b/services/containerinstance/mgmt/2018-04-01/containerinstance/CHANGELOG.md index 52911e4cc5e4..628be2d0ab96 100644 --- a/services/containerinstance/mgmt/2018-04-01/containerinstance/CHANGELOG.md +++ b/services/containerinstance/mgmt/2018-04-01/containerinstance/CHANGELOG.md @@ -1,2 +1,16 @@ # Change History +## Additive Changes + +### New Funcs + +1. ContainerExecResponse.MarshalJSON() ([]byte, error) +1. ContainerGroupPropertiesInstanceView.MarshalJSON() ([]byte, error) +1. ContainerPropertiesInstanceView.MarshalJSON() ([]byte, error) +1. ContainerState.MarshalJSON() ([]byte, error) +1. Event.MarshalJSON() ([]byte, error) +1. Logs.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. Usage.MarshalJSON() ([]byte, error) +1. UsageListResult.MarshalJSON() ([]byte, error) +1. UsageName.MarshalJSON() ([]byte, error) diff --git a/services/containerinstance/mgmt/2018-04-01/containerinstance/_meta.json b/services/containerinstance/mgmt/2018-04-01/containerinstance/_meta.json index 4c46ee38a43b..7016c9152967 100644 --- a/services/containerinstance/mgmt/2018-04-01/containerinstance/_meta.json +++ b/services/containerinstance/mgmt/2018-04-01/containerinstance/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerinstance/resource-manager/readme.md", "tag": "package-2018-04", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerinstance/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerinstance/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/containerinstance/mgmt/2018-04-01/containerinstance/models.go b/services/containerinstance/mgmt/2018-04-01/containerinstance/models.go index dcc37aaade59..432df02d174e 100644 --- a/services/containerinstance/mgmt/2018-04-01/containerinstance/models.go +++ b/services/containerinstance/mgmt/2018-04-01/containerinstance/models.go @@ -110,6 +110,12 @@ type ContainerExecResponse struct { Password *string `json:"password,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerExecResponse. +func (cer ContainerExecResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerGroup a container group. type ContainerGroup struct { autorest.Response `json:"-"` @@ -425,6 +431,12 @@ type ContainerGroupPropertiesInstanceView struct { State *string `json:"state,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerGroupPropertiesInstanceView. +func (cgV ContainerGroupPropertiesInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type ContainerGroupsCreateOrUpdateFuture struct { @@ -530,6 +542,12 @@ type ContainerPropertiesInstanceView struct { Events *[]Event `json:"events,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerPropertiesInstanceView. +func (cpV ContainerPropertiesInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerState the container instance state. type ContainerState struct { // State - READ-ONLY; The state of the container instance. @@ -544,6 +562,12 @@ type ContainerState struct { DetailStatus *string `json:"detailStatus,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerState. +func (cs ContainerState) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EnvironmentVariable the environment variable to set within the container instance. type EnvironmentVariable struct { // Name - The name of the environment variable. @@ -568,6 +592,12 @@ type Event struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Event. +func (e Event) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GitRepoVolume represents a volume that is populated with the contents of a git repository type GitRepoVolume struct { // Directory - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. @@ -627,6 +657,12 @@ type Logs struct { Content *string `json:"content,omitempty"` } +// MarshalJSON is the custom marshaler for Logs. +func (l Logs) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation an operation for Azure Container Instance service. type Operation struct { // Name - READ-ONLY; The name of the operation. @@ -658,6 +694,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult the operation list response that contains all operations for Azure Container // Instance service. type OperationListResult struct { @@ -738,6 +780,12 @@ type Usage struct { Name *UsageName `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for Usage. +func (u Usage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageListResult the response containing the usage data type UsageListResult struct { autorest.Response `json:"-"` @@ -745,6 +793,12 @@ type UsageListResult struct { Value *[]Usage `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for UsageListResult. +func (ulr UsageListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageName the name object of the resource type UsageName struct { // Value - READ-ONLY; The name of the resource @@ -753,6 +807,12 @@ type UsageName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for UsageName. +func (u UsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Volume the properties of the volume. type Volume struct { // Name - The name of the volume. diff --git a/services/containerinstance/mgmt/2018-06-01/containerinstance/CHANGELOG.md b/services/containerinstance/mgmt/2018-06-01/containerinstance/CHANGELOG.md index 52911e4cc5e4..561c5545ab95 100644 --- a/services/containerinstance/mgmt/2018-06-01/containerinstance/CHANGELOG.md +++ b/services/containerinstance/mgmt/2018-06-01/containerinstance/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. ContainerGroupPropertiesInstanceView.MarshalJSON() ([]byte, error) +1. ContainerPropertiesInstanceView.MarshalJSON() ([]byte, error) +1. Usage.MarshalJSON() ([]byte, error) +1. UsageListResult.MarshalJSON() ([]byte, error) +1. UsageName.MarshalJSON() ([]byte, error) diff --git a/services/containerinstance/mgmt/2018-06-01/containerinstance/_meta.json b/services/containerinstance/mgmt/2018-06-01/containerinstance/_meta.json index 889585d43217..f395b516b294 100644 --- a/services/containerinstance/mgmt/2018-06-01/containerinstance/_meta.json +++ b/services/containerinstance/mgmt/2018-06-01/containerinstance/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerinstance/resource-manager/readme.md", "tag": "package-2018-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerinstance/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerinstance/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/containerinstance/mgmt/2018-06-01/containerinstance/models.go b/services/containerinstance/mgmt/2018-06-01/containerinstance/models.go index b1e752e3f23b..6413ec5b1f44 100644 --- a/services/containerinstance/mgmt/2018-06-01/containerinstance/models.go +++ b/services/containerinstance/mgmt/2018-06-01/containerinstance/models.go @@ -442,6 +442,12 @@ type ContainerGroupPropertiesInstanceView struct { State *string `json:"state,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerGroupPropertiesInstanceView. +func (cgV ContainerGroupPropertiesInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type ContainerGroupsCreateOrUpdateFuture struct { @@ -622,6 +628,12 @@ type ContainerPropertiesInstanceView struct { Events *[]Event `json:"events,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerPropertiesInstanceView. +func (cpV ContainerPropertiesInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerState the container instance state. type ContainerState struct { // State - The state of the container instance. @@ -831,6 +843,12 @@ type Usage struct { Name *UsageName `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for Usage. +func (u Usage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageListResult the response containing the usage data type UsageListResult struct { autorest.Response `json:"-"` @@ -838,6 +856,12 @@ type UsageListResult struct { Value *[]Usage `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for UsageListResult. +func (ulr UsageListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageName the name object of the resource type UsageName struct { // Value - READ-ONLY; The name of the resource @@ -846,6 +870,12 @@ type UsageName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for UsageName. +func (u UsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Volume the properties of the volume. type Volume struct { // Name - The name of the volume. diff --git a/services/containerinstance/mgmt/2018-09-01/containerinstance/CHANGELOG.md b/services/containerinstance/mgmt/2018-09-01/containerinstance/CHANGELOG.md index 52911e4cc5e4..561c5545ab95 100644 --- a/services/containerinstance/mgmt/2018-09-01/containerinstance/CHANGELOG.md +++ b/services/containerinstance/mgmt/2018-09-01/containerinstance/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. ContainerGroupPropertiesInstanceView.MarshalJSON() ([]byte, error) +1. ContainerPropertiesInstanceView.MarshalJSON() ([]byte, error) +1. Usage.MarshalJSON() ([]byte, error) +1. UsageListResult.MarshalJSON() ([]byte, error) +1. UsageName.MarshalJSON() ([]byte, error) diff --git a/services/containerinstance/mgmt/2018-09-01/containerinstance/_meta.json b/services/containerinstance/mgmt/2018-09-01/containerinstance/_meta.json index 3dadcd340040..5b9855a8b854 100644 --- a/services/containerinstance/mgmt/2018-09-01/containerinstance/_meta.json +++ b/services/containerinstance/mgmt/2018-09-01/containerinstance/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerinstance/resource-manager/readme.md", "tag": "package-2018-09", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerinstance/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerinstance/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/containerinstance/mgmt/2018-09-01/containerinstance/models.go b/services/containerinstance/mgmt/2018-09-01/containerinstance/models.go index aed223b857fe..0054cc97631d 100644 --- a/services/containerinstance/mgmt/2018-09-01/containerinstance/models.go +++ b/services/containerinstance/mgmt/2018-09-01/containerinstance/models.go @@ -453,6 +453,12 @@ type ContainerGroupPropertiesInstanceView struct { State *string `json:"state,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerGroupPropertiesInstanceView. +func (cgV ContainerGroupPropertiesInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type ContainerGroupsCreateOrUpdateFuture struct { @@ -633,6 +639,12 @@ type ContainerPropertiesInstanceView struct { Events *[]Event `json:"events,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerPropertiesInstanceView. +func (cpV ContainerPropertiesInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerState the container instance state. type ContainerState struct { // State - The state of the container instance. @@ -864,6 +876,12 @@ type Usage struct { Name *UsageName `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for Usage. +func (u Usage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageListResult the response containing the usage data type UsageListResult struct { autorest.Response `json:"-"` @@ -871,6 +889,12 @@ type UsageListResult struct { Value *[]Usage `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for UsageListResult. +func (ulr UsageListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageName the name object of the resource type UsageName struct { // Value - READ-ONLY; The name of the resource @@ -879,6 +903,12 @@ type UsageName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for UsageName. +func (u UsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Volume the properties of the volume. type Volume struct { // Name - The name of the volume. diff --git a/services/containerinstance/mgmt/2018-10-01/containerinstance/CHANGELOG.md b/services/containerinstance/mgmt/2018-10-01/containerinstance/CHANGELOG.md index 52911e4cc5e4..e47e07f3ad75 100644 --- a/services/containerinstance/mgmt/2018-10-01/containerinstance/CHANGELOG.md +++ b/services/containerinstance/mgmt/2018-10-01/containerinstance/CHANGELOG.md @@ -1,2 +1,14 @@ # Change History +## Additive Changes + +### New Funcs + +1. Capabilities.MarshalJSON() ([]byte, error) +1. CapabilitiesCapabilities.MarshalJSON() ([]byte, error) +1. ContainerGroupIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. ContainerGroupPropertiesInstanceView.MarshalJSON() ([]byte, error) +1. ContainerPropertiesInstanceView.MarshalJSON() ([]byte, error) +1. Usage.MarshalJSON() ([]byte, error) +1. UsageListResult.MarshalJSON() ([]byte, error) +1. UsageName.MarshalJSON() ([]byte, error) diff --git a/services/containerinstance/mgmt/2018-10-01/containerinstance/_meta.json b/services/containerinstance/mgmt/2018-10-01/containerinstance/_meta.json index 8ed2e42b23f0..2cf1e829be2e 100644 --- a/services/containerinstance/mgmt/2018-10-01/containerinstance/_meta.json +++ b/services/containerinstance/mgmt/2018-10-01/containerinstance/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerinstance/resource-manager/readme.md", "tag": "package-2018-10", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerinstance/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerinstance/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/containerinstance/mgmt/2018-10-01/containerinstance/models.go b/services/containerinstance/mgmt/2018-10-01/containerinstance/models.go index 80336ae9f935..65cf85155328 100644 --- a/services/containerinstance/mgmt/2018-10-01/containerinstance/models.go +++ b/services/containerinstance/mgmt/2018-10-01/containerinstance/models.go @@ -67,6 +67,12 @@ type Capabilities struct { Capabilities *CapabilitiesCapabilities `json:"capabilities,omitempty"` } +// MarshalJSON is the custom marshaler for Capabilities. +func (c Capabilities) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CapabilitiesCapabilities the supported capabilities. type CapabilitiesCapabilities struct { // MaxMemoryInGB - READ-ONLY; The maximum allowed memory request in GB. @@ -77,6 +83,12 @@ type CapabilitiesCapabilities struct { MaxGpuCount *float64 `json:"maxGpuCount,omitempty"` } +// MarshalJSON is the custom marshaler for CapabilitiesCapabilities. +func (c CapabilitiesCapabilities) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CapabilitiesListResult the response containing list of capabilities. type CapabilitiesListResult struct { autorest.Response `json:"-"` @@ -339,6 +351,12 @@ type ContainerGroupIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerGroupIdentityUserAssignedIdentitiesValue. +func (cgiAiv ContainerGroupIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerGroupListResult the container group list response that contains the container group properties. type ContainerGroupListResult struct { autorest.Response `json:"-"` @@ -575,6 +593,12 @@ type ContainerGroupPropertiesInstanceView struct { State *string `json:"state,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerGroupPropertiesInstanceView. +func (cgV ContainerGroupPropertiesInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type ContainerGroupsCreateOrUpdateFuture struct { @@ -792,6 +816,12 @@ type ContainerPropertiesInstanceView struct { Events *[]Event `json:"events,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerPropertiesInstanceView. +func (cpV ContainerPropertiesInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerState the container instance state. type ContainerState struct { // State - The state of the container instance. @@ -1047,6 +1077,12 @@ type Usage struct { Name *UsageName `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for Usage. +func (u Usage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageListResult the response containing the usage data type UsageListResult struct { autorest.Response `json:"-"` @@ -1054,6 +1090,12 @@ type UsageListResult struct { Value *[]Usage `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for UsageListResult. +func (ulr UsageListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageName the name object of the resource type UsageName struct { // Value - READ-ONLY; The name of the resource @@ -1062,6 +1104,12 @@ type UsageName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for UsageName. +func (u UsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Volume the properties of the volume. type Volume struct { // Name - The name of the volume. diff --git a/services/containerinstance/mgmt/2019-12-01/containerinstance/CHANGELOG.md b/services/containerinstance/mgmt/2019-12-01/containerinstance/CHANGELOG.md index 52911e4cc5e4..34c479bd4d34 100644 --- a/services/containerinstance/mgmt/2019-12-01/containerinstance/CHANGELOG.md +++ b/services/containerinstance/mgmt/2019-12-01/containerinstance/CHANGELOG.md @@ -1,2 +1,17 @@ # Change History +## Additive Changes + +### New Funcs + +1. Capabilities.MarshalJSON() ([]byte, error) +1. CapabilitiesCapabilities.MarshalJSON() ([]byte, error) +1. ContainerGroupIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. ContainerGroupPropertiesInstanceView.MarshalJSON() ([]byte, error) +1. ContainerPropertiesInstanceView.MarshalJSON() ([]byte, error) +1. ContainerState.MarshalJSON() ([]byte, error) +1. Event.MarshalJSON() ([]byte, error) +1. InitContainerPropertiesDefinitionInstanceView.MarshalJSON() ([]byte, error) +1. Usage.MarshalJSON() ([]byte, error) +1. UsageListResult.MarshalJSON() ([]byte, error) +1. UsageName.MarshalJSON() ([]byte, error) diff --git a/services/containerinstance/mgmt/2019-12-01/containerinstance/_meta.json b/services/containerinstance/mgmt/2019-12-01/containerinstance/_meta.json index 0597379c5c1c..a8f2c9cfbfcd 100644 --- a/services/containerinstance/mgmt/2019-12-01/containerinstance/_meta.json +++ b/services/containerinstance/mgmt/2019-12-01/containerinstance/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerinstance/resource-manager/readme.md", "tag": "package-2019-12", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerinstance/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerinstance/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/containerinstance/mgmt/2019-12-01/containerinstance/models.go b/services/containerinstance/mgmt/2019-12-01/containerinstance/models.go index d7b3fbd68cc0..d26950133864 100644 --- a/services/containerinstance/mgmt/2019-12-01/containerinstance/models.go +++ b/services/containerinstance/mgmt/2019-12-01/containerinstance/models.go @@ -215,6 +215,12 @@ type Capabilities struct { Capabilities *CapabilitiesCapabilities `json:"capabilities,omitempty"` } +// MarshalJSON is the custom marshaler for Capabilities. +func (c Capabilities) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CapabilitiesCapabilities the supported capabilities. type CapabilitiesCapabilities struct { // MaxMemoryInGB - READ-ONLY; The maximum allowed memory request in GB. @@ -225,6 +231,12 @@ type CapabilitiesCapabilities struct { MaxGpuCount *float64 `json:"maxGpuCount,omitempty"` } +// MarshalJSON is the custom marshaler for CapabilitiesCapabilities. +func (c CapabilitiesCapabilities) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CapabilitiesListResult the response containing list of capabilities. type CapabilitiesListResult struct { autorest.Response `json:"-"` @@ -638,6 +650,12 @@ type ContainerGroupIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerGroupIdentityUserAssignedIdentitiesValue. +func (cgiAiv ContainerGroupIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerGroupListResult the container group list response that contains the container group properties. type ContainerGroupListResult struct { autorest.Response `json:"-"` @@ -889,6 +907,12 @@ type ContainerGroupPropertiesInstanceView struct { State *string `json:"state,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerGroupPropertiesInstanceView. +func (cgV ContainerGroupPropertiesInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type ContainerGroupsCreateOrUpdateFuture struct { @@ -1149,6 +1173,12 @@ type ContainerPropertiesInstanceView struct { Events *[]Event `json:"events,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerPropertiesInstanceView. +func (cpV ContainerPropertiesInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerState the container instance state. type ContainerState struct { // State - READ-ONLY; The state of the container instance. @@ -1163,6 +1193,12 @@ type ContainerState struct { DetailStatus *string `json:"detailStatus,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerState. +func (cs ContainerState) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DNSConfiguration DNS configuration for the container group. type DNSConfiguration struct { // NameServers - The DNS servers for the container group. @@ -1209,6 +1245,12 @@ type Event struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Event. +func (e Event) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GitRepoVolume represents a volume that is populated with the contents of a git repository type GitRepoVolume struct { // Directory - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. @@ -1335,6 +1377,12 @@ type InitContainerPropertiesDefinitionInstanceView struct { Events *[]Event `json:"events,omitempty"` } +// MarshalJSON is the custom marshaler for InitContainerPropertiesDefinitionInstanceView. +func (icpdV InitContainerPropertiesDefinitionInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IPAddress IP address for the container group. type IPAddress struct { // Ports - The list of ports exposed on the container group. @@ -1662,6 +1710,12 @@ type Usage struct { Name *UsageName `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for Usage. +func (u Usage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageListResult the response containing the usage data type UsageListResult struct { autorest.Response `json:"-"` @@ -1669,6 +1723,12 @@ type UsageListResult struct { Value *[]Usage `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for UsageListResult. +func (ulr UsageListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageName the name object of the resource type UsageName struct { // Value - READ-ONLY; The name of the resource @@ -1677,6 +1737,12 @@ type UsageName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for UsageName. +func (u UsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Volume the properties of the volume. type Volume struct { // Name - The name of the volume. diff --git a/services/containerinstance/mgmt/2020-11-01/containerinstance/CHANGELOG.md b/services/containerinstance/mgmt/2020-11-01/containerinstance/CHANGELOG.md index 52911e4cc5e4..34c479bd4d34 100644 --- a/services/containerinstance/mgmt/2020-11-01/containerinstance/CHANGELOG.md +++ b/services/containerinstance/mgmt/2020-11-01/containerinstance/CHANGELOG.md @@ -1,2 +1,17 @@ # Change History +## Additive Changes + +### New Funcs + +1. Capabilities.MarshalJSON() ([]byte, error) +1. CapabilitiesCapabilities.MarshalJSON() ([]byte, error) +1. ContainerGroupIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. ContainerGroupPropertiesInstanceView.MarshalJSON() ([]byte, error) +1. ContainerPropertiesInstanceView.MarshalJSON() ([]byte, error) +1. ContainerState.MarshalJSON() ([]byte, error) +1. Event.MarshalJSON() ([]byte, error) +1. InitContainerPropertiesDefinitionInstanceView.MarshalJSON() ([]byte, error) +1. Usage.MarshalJSON() ([]byte, error) +1. UsageListResult.MarshalJSON() ([]byte, error) +1. UsageName.MarshalJSON() ([]byte, error) diff --git a/services/containerinstance/mgmt/2020-11-01/containerinstance/_meta.json b/services/containerinstance/mgmt/2020-11-01/containerinstance/_meta.json index 2ebaf8f2a192..8756f8326ed0 100644 --- a/services/containerinstance/mgmt/2020-11-01/containerinstance/_meta.json +++ b/services/containerinstance/mgmt/2020-11-01/containerinstance/_meta.json @@ -2,9 +2,9 @@ "commit": "92ab22b49bd085116af0c61fada2c6c360702e9e", "readme": "/_/azure-rest-api-specs/specification/containerinstance/resource-manager/readme.md", "tag": "package-2020-11", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerinstance/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerinstance/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/containerinstance/mgmt/2020-11-01/containerinstance/models.go b/services/containerinstance/mgmt/2020-11-01/containerinstance/models.go index 194f2bca5f8e..8e518f171193 100644 --- a/services/containerinstance/mgmt/2020-11-01/containerinstance/models.go +++ b/services/containerinstance/mgmt/2020-11-01/containerinstance/models.go @@ -215,6 +215,12 @@ type Capabilities struct { Capabilities *CapabilitiesCapabilities `json:"capabilities,omitempty"` } +// MarshalJSON is the custom marshaler for Capabilities. +func (c Capabilities) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CapabilitiesCapabilities the supported capabilities. type CapabilitiesCapabilities struct { // MaxMemoryInGB - READ-ONLY; The maximum allowed memory request in GB. @@ -225,6 +231,12 @@ type CapabilitiesCapabilities struct { MaxGpuCount *float64 `json:"maxGpuCount,omitempty"` } +// MarshalJSON is the custom marshaler for CapabilitiesCapabilities. +func (c CapabilitiesCapabilities) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CapabilitiesListResult the response containing list of capabilities. type CapabilitiesListResult struct { autorest.Response `json:"-"` @@ -647,6 +659,12 @@ type ContainerGroupIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerGroupIdentityUserAssignedIdentitiesValue. +func (cgiAiv ContainerGroupIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerGroupListResult the container group list response that contains the container group properties. type ContainerGroupListResult struct { autorest.Response `json:"-"` @@ -898,6 +916,12 @@ type ContainerGroupPropertiesInstanceView struct { State *string `json:"state,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerGroupPropertiesInstanceView. +func (cgV ContainerGroupPropertiesInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type ContainerGroupsCreateOrUpdateFuture struct { @@ -1160,6 +1184,12 @@ type ContainerPropertiesInstanceView struct { Events *[]Event `json:"events,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerPropertiesInstanceView. +func (cpV ContainerPropertiesInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerState the container instance state. type ContainerState struct { // State - READ-ONLY; The state of the container instance. @@ -1174,6 +1204,12 @@ type ContainerState struct { DetailStatus *string `json:"detailStatus,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerState. +func (cs ContainerState) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DNSConfiguration DNS configuration for the container group. type DNSConfiguration struct { // NameServers - The DNS servers for the container group. @@ -1220,6 +1256,12 @@ type Event struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Event. +func (e Event) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GitRepoVolume represents a volume that is populated with the contents of a git repository type GitRepoVolume struct { // Directory - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. @@ -1354,6 +1396,12 @@ type InitContainerPropertiesDefinitionInstanceView struct { Events *[]Event `json:"events,omitempty"` } +// MarshalJSON is the custom marshaler for InitContainerPropertiesDefinitionInstanceView. +func (icpdV InitContainerPropertiesDefinitionInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IPAddress IP address for the container group. type IPAddress struct { // Ports - The list of ports exposed on the container group. @@ -1686,6 +1734,12 @@ type Usage struct { Name *UsageName `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for Usage. +func (u Usage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageListResult the response containing the usage data type UsageListResult struct { autorest.Response `json:"-"` @@ -1693,6 +1747,12 @@ type UsageListResult struct { Value *[]Usage `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for UsageListResult. +func (ulr UsageListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageName the name object of the resource type UsageName struct { // Value - READ-ONLY; The name of the resource @@ -1701,6 +1761,12 @@ type UsageName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for UsageName. +func (u UsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Volume the properties of the volume. type Volume struct { // Name - The name of the volume. diff --git a/services/containerregistry/mgmt/2017-03-01/containerregistry/_meta.json b/services/containerregistry/mgmt/2017-03-01/containerregistry/_meta.json index e31034edf80f..40157fe63b01 100644 --- a/services/containerregistry/mgmt/2017-03-01/containerregistry/_meta.json +++ b/services/containerregistry/mgmt/2017-03-01/containerregistry/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerregistry/resource-manager/readme.md", "tag": "package-2017-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerregistry/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerregistry/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/containerregistry/mgmt/2017-10-01/containerregistry/CHANGELOG.md b/services/containerregistry/mgmt/2017-10-01/containerregistry/CHANGELOG.md index 52911e4cc5e4..44f48f68ff1d 100644 --- a/services/containerregistry/mgmt/2017-10-01/containerregistry/CHANGELOG.md +++ b/services/containerregistry/mgmt/2017-10-01/containerregistry/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. ReplicationProperties.MarshalJSON() ([]byte, error) +1. Status.MarshalJSON() ([]byte, error) diff --git a/services/containerregistry/mgmt/2017-10-01/containerregistry/_meta.json b/services/containerregistry/mgmt/2017-10-01/containerregistry/_meta.json index 6d2a0003d5b6..7c16da363d04 100644 --- a/services/containerregistry/mgmt/2017-10-01/containerregistry/_meta.json +++ b/services/containerregistry/mgmt/2017-10-01/containerregistry/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerregistry/resource-manager/readme.md", "tag": "package-2017-10", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerregistry/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerregistry/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/containerregistry/mgmt/2017-10-01/containerregistry/models.go b/services/containerregistry/mgmt/2017-10-01/containerregistry/models.go index ac9222aa4292..7b77f6297fd5 100644 --- a/services/containerregistry/mgmt/2017-10-01/containerregistry/models.go +++ b/services/containerregistry/mgmt/2017-10-01/containerregistry/models.go @@ -1576,6 +1576,12 @@ type ReplicationProperties struct { Status *Status `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for ReplicationProperties. +func (rp ReplicationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReplicationsCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ReplicationsCreateFuture struct { @@ -1790,6 +1796,12 @@ type Status struct { Timestamp *date.Time `json:"timestamp,omitempty"` } +// MarshalJSON is the custom marshaler for Status. +func (s Status) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageAccountProperties the properties of a storage account for a container registry. Only applicable // to Classic SKU. type StorageAccountProperties struct { diff --git a/services/containerregistry/mgmt/2018-09-01/containerregistry/CHANGELOG.md b/services/containerregistry/mgmt/2018-09-01/containerregistry/CHANGELOG.md index 52911e4cc5e4..2ca630d29da8 100644 --- a/services/containerregistry/mgmt/2018-09-01/containerregistry/CHANGELOG.md +++ b/services/containerregistry/mgmt/2018-09-01/containerregistry/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. ProxyResource.MarshalJSON() ([]byte, error) +1. ReplicationProperties.MarshalJSON() ([]byte, error) +1. Status.MarshalJSON() ([]byte, error) diff --git a/services/containerregistry/mgmt/2018-09-01/containerregistry/_meta.json b/services/containerregistry/mgmt/2018-09-01/containerregistry/_meta.json index 12be14d882ef..1955e537e891 100644 --- a/services/containerregistry/mgmt/2018-09-01/containerregistry/_meta.json +++ b/services/containerregistry/mgmt/2018-09-01/containerregistry/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerregistry/resource-manager/readme.md", "tag": "package-2018-09", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerregistry/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerregistry/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/containerregistry/mgmt/2018-09-01/containerregistry/models.go b/services/containerregistry/mgmt/2018-09-01/containerregistry/models.go index e52caa2dd95d..9cbe21e65b55 100644 --- a/services/containerregistry/mgmt/2018-09-01/containerregistry/models.go +++ b/services/containerregistry/mgmt/2018-09-01/containerregistry/models.go @@ -1531,6 +1531,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QuarantinePolicy an object that represents quarantine policy for a container registry. type QuarantinePolicy struct { // Status - The value that indicates whether the policy is enabled or not. Possible values include: 'Enabled', 'Disabled' @@ -2505,6 +2511,12 @@ type ReplicationProperties struct { Status *Status `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for ReplicationProperties. +func (rp ReplicationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReplicationsCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ReplicationsCreateFuture struct { @@ -3375,6 +3387,12 @@ type Status struct { Timestamp *date.Time `json:"timestamp,omitempty"` } +// MarshalJSON is the custom marshaler for Status. +func (s Status) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageAccountProperties the properties of a storage account for a container registry. Only applicable // to Classic SKU. type StorageAccountProperties struct { diff --git a/services/containerregistry/mgmt/2019-04-01/containerregistry/CHANGELOG.md b/services/containerregistry/mgmt/2019-04-01/containerregistry/CHANGELOG.md index 52911e4cc5e4..2ca630d29da8 100644 --- a/services/containerregistry/mgmt/2019-04-01/containerregistry/CHANGELOG.md +++ b/services/containerregistry/mgmt/2019-04-01/containerregistry/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. ProxyResource.MarshalJSON() ([]byte, error) +1. ReplicationProperties.MarshalJSON() ([]byte, error) +1. Status.MarshalJSON() ([]byte, error) diff --git a/services/containerregistry/mgmt/2019-04-01/containerregistry/_meta.json b/services/containerregistry/mgmt/2019-04-01/containerregistry/_meta.json index 9092c4081bf5..d780b9629c62 100644 --- a/services/containerregistry/mgmt/2019-04-01/containerregistry/_meta.json +++ b/services/containerregistry/mgmt/2019-04-01/containerregistry/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerregistry/resource-manager/readme.md", "tag": "package-2019-04", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerregistry/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerregistry/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/containerregistry/mgmt/2019-04-01/containerregistry/models.go b/services/containerregistry/mgmt/2019-04-01/containerregistry/models.go index 76834048c995..cfe4e53a1342 100644 --- a/services/containerregistry/mgmt/2019-04-01/containerregistry/models.go +++ b/services/containerregistry/mgmt/2019-04-01/containerregistry/models.go @@ -1570,6 +1570,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QuarantinePolicy an object that represents quarantine policy for a container registry. type QuarantinePolicy struct { // Status - The value that indicates whether the policy is enabled or not. Possible values include: 'Enabled', 'Disabled' @@ -2544,6 +2550,12 @@ type ReplicationProperties struct { Status *Status `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for ReplicationProperties. +func (rp ReplicationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReplicationsCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ReplicationsCreateFuture struct { @@ -3419,6 +3431,12 @@ type Status struct { Timestamp *date.Time `json:"timestamp,omitempty"` } +// MarshalJSON is the custom marshaler for Status. +func (s Status) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageAccountProperties the properties of a storage account for a container registry. Only applicable // to Classic SKU. type StorageAccountProperties struct { diff --git a/services/containerregistry/mgmt/2019-05-01/containerregistry/CHANGELOG.md b/services/containerregistry/mgmt/2019-05-01/containerregistry/CHANGELOG.md index 52911e4cc5e4..2ca630d29da8 100644 --- a/services/containerregistry/mgmt/2019-05-01/containerregistry/CHANGELOG.md +++ b/services/containerregistry/mgmt/2019-05-01/containerregistry/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. ProxyResource.MarshalJSON() ([]byte, error) +1. ReplicationProperties.MarshalJSON() ([]byte, error) +1. Status.MarshalJSON() ([]byte, error) diff --git a/services/containerregistry/mgmt/2019-05-01/containerregistry/_meta.json b/services/containerregistry/mgmt/2019-05-01/containerregistry/_meta.json index dfb4897d51b3..857266b7c56e 100644 --- a/services/containerregistry/mgmt/2019-05-01/containerregistry/_meta.json +++ b/services/containerregistry/mgmt/2019-05-01/containerregistry/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerregistry/resource-manager/readme.md", "tag": "package-2019-05", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerregistry/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerregistry/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/containerregistry/mgmt/2019-05-01/containerregistry/models.go b/services/containerregistry/mgmt/2019-05-01/containerregistry/models.go index 7861190f98cd..d43ac2746328 100644 --- a/services/containerregistry/mgmt/2019-05-01/containerregistry/models.go +++ b/services/containerregistry/mgmt/2019-05-01/containerregistry/models.go @@ -1580,6 +1580,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QuarantinePolicy the quarantine policy for a container registry. type QuarantinePolicy struct { // Status - The value that indicates whether the policy is enabled or not. Possible values include: 'Enabled', 'Disabled' @@ -2507,6 +2513,12 @@ type ReplicationProperties struct { Status *Status `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for ReplicationProperties. +func (rp ReplicationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReplicationsCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ReplicationsCreateFuture struct { @@ -3404,6 +3416,12 @@ type Status struct { Timestamp *date.Time `json:"timestamp,omitempty"` } +// MarshalJSON is the custom marshaler for Status. +func (s Status) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageAccountProperties the properties of a storage account for a container registry. Only applicable // to Classic SKU. type StorageAccountProperties struct { diff --git a/services/containerservice/mgmt/2016-03-30/containerservice/_meta.json b/services/containerservice/mgmt/2016-03-30/containerservice/_meta.json index 927b7a7a8ca2..972b2f1da3ea 100644 --- a/services/containerservice/mgmt/2016-03-30/containerservice/_meta.json +++ b/services/containerservice/mgmt/2016-03-30/containerservice/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-container-service-2016-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-container-service-2016-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-container-service-2016-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/containerservice/mgmt/2016-09-30/containerservice/_meta.json b/services/containerservice/mgmt/2016-09-30/containerservice/_meta.json index 79fdd9308e81..be6885f82c95 100644 --- a/services/containerservice/mgmt/2016-09-30/containerservice/_meta.json +++ b/services/containerservice/mgmt/2016-09-30/containerservice/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-container-service-2016-09", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-container-service-2016-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-container-service-2016-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/containerservice/mgmt/2017-01-31/containerservice/_meta.json b/services/containerservice/mgmt/2017-01-31/containerservice/_meta.json index 9de77e851898..c7a3a564d382 100644 --- a/services/containerservice/mgmt/2017-01-31/containerservice/_meta.json +++ b/services/containerservice/mgmt/2017-01-31/containerservice/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-container-service-2017-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-container-service-2017-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-container-service-2017-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/containerservice/mgmt/2017-07-01/containerservice/_meta.json b/services/containerservice/mgmt/2017-07-01/containerservice/_meta.json index 21ddccc1a340..aca5f4ad5ae9 100644 --- a/services/containerservice/mgmt/2017-07-01/containerservice/_meta.json +++ b/services/containerservice/mgmt/2017-07-01/containerservice/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "tag": "package-2017-07", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/containerservice/mgmt/2017-08-31/containerservice/_meta.json b/services/containerservice/mgmt/2017-08-31/containerservice/_meta.json index 20bdf39b58cd..5ad5461d8c62 100644 --- a/services/containerservice/mgmt/2017-08-31/containerservice/_meta.json +++ b/services/containerservice/mgmt/2017-08-31/containerservice/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "tag": "package-2017-08", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/containerservice/mgmt/2017-09-30/containerservice/_meta.json b/services/containerservice/mgmt/2017-09-30/containerservice/_meta.json index 8e87b9e8236d..ec422145a0e9 100644 --- a/services/containerservice/mgmt/2017-09-30/containerservice/_meta.json +++ b/services/containerservice/mgmt/2017-09-30/containerservice/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "tag": "package-2017-09", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/containerservice/mgmt/2018-03-31/containerservice/CHANGELOG.md b/services/containerservice/mgmt/2018-03-31/containerservice/CHANGELOG.md index 52911e4cc5e4..64928cff9f6a 100644 --- a/services/containerservice/mgmt/2018-03-31/containerservice/CHANGELOG.md +++ b/services/containerservice/mgmt/2018-03-31/containerservice/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. CredentialResult.MarshalJSON() ([]byte, error) +1. CredentialResults.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OperationValueDisplay.MarshalJSON() ([]byte, error) diff --git a/services/containerservice/mgmt/2018-03-31/containerservice/_meta.json b/services/containerservice/mgmt/2018-03-31/containerservice/_meta.json index 1ba0344fcffb..c0c3ade9f7b9 100644 --- a/services/containerservice/mgmt/2018-03-31/containerservice/_meta.json +++ b/services/containerservice/mgmt/2018-03-31/containerservice/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "tag": "package-2018-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/containerservice/mgmt/2018-03-31/containerservice/models.go b/services/containerservice/mgmt/2018-03-31/containerservice/models.go index e55887c6b1f8..cd78425be120 100644 --- a/services/containerservice/mgmt/2018-03-31/containerservice/models.go +++ b/services/containerservice/mgmt/2018-03-31/containerservice/models.go @@ -271,6 +271,12 @@ type CredentialResult struct { Value *[]byte `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResult. +func (cr CredentialResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CredentialResults the list of credential result response. type CredentialResults struct { autorest.Response `json:"-"` @@ -278,6 +284,12 @@ type CredentialResults struct { Kubeconfigs *[]CredentialResult `json:"kubeconfigs,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResults. +func (cr CredentialResults) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CustomProfile properties to configure a custom container service cluster. type CustomProfile struct { // Orchestrator - The name of the custom orchestrator to use. @@ -1355,6 +1367,12 @@ type OperationListResult struct { Value *[]OperationValue `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationValue describes the properties of a Compute Operation value. type OperationValue struct { // Origin - READ-ONLY; The origin of the compute operation. @@ -1428,6 +1446,12 @@ type OperationValueDisplay struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationValueDisplay. +func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OrchestratorProfile contains information about orchestrator. type OrchestratorProfile struct { // OrchestratorType - Orchestrator type. diff --git a/services/containerservice/mgmt/2019-04-30/containerservice/CHANGELOG.md b/services/containerservice/mgmt/2019-04-30/containerservice/CHANGELOG.md index 52911e4cc5e4..5e6d22160d6d 100644 --- a/services/containerservice/mgmt/2019-04-30/containerservice/CHANGELOG.md +++ b/services/containerservice/mgmt/2019-04-30/containerservice/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. CredentialResult.MarshalJSON() ([]byte, error) +1. CredentialResults.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OperationValueDisplay.MarshalJSON() ([]byte, error) +1. SubResource.MarshalJSON() ([]byte, error) diff --git a/services/containerservice/mgmt/2019-04-30/containerservice/_meta.json b/services/containerservice/mgmt/2019-04-30/containerservice/_meta.json index 04bd1d2d7036..81212d16eb8d 100644 --- a/services/containerservice/mgmt/2019-04-30/containerservice/_meta.json +++ b/services/containerservice/mgmt/2019-04-30/containerservice/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "tag": "package-2019-04", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/containerservice/mgmt/2019-04-30/containerservice/models.go b/services/containerservice/mgmt/2019-04-30/containerservice/models.go index 743ea9f72443..d09907bc252c 100644 --- a/services/containerservice/mgmt/2019-04-30/containerservice/models.go +++ b/services/containerservice/mgmt/2019-04-30/containerservice/models.go @@ -610,6 +610,12 @@ type CredentialResult struct { Value *[]byte `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResult. +func (cr CredentialResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CredentialResults the list of credential result response. type CredentialResults struct { autorest.Response `json:"-"` @@ -617,6 +623,12 @@ type CredentialResults struct { Kubeconfigs *[]CredentialResult `json:"kubeconfigs,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResults. +func (cr CredentialResults) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CustomProfile properties to configure a custom container service cluster. type CustomProfile struct { // Orchestrator - The name of the custom orchestrator to use. @@ -2555,6 +2567,12 @@ type OperationListResult struct { Value *[]OperationValue `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationValue describes the properties of a Compute Operation value. type OperationValue struct { // Origin - READ-ONLY; The origin of the compute operation. @@ -2628,6 +2646,12 @@ type OperationValueDisplay struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationValueDisplay. +func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OrchestratorProfile contains information about orchestrator. type OrchestratorProfile struct { // OrchestratorType - Orchestrator type. @@ -2862,6 +2886,12 @@ type SubResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for SubResource. +func (sr SubResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TagsObject tags object for patch operations. type TagsObject struct { // Tags - Resource tags. diff --git a/services/containerservice/mgmt/2019-06-01/containerservice/CHANGELOG.md b/services/containerservice/mgmt/2019-06-01/containerservice/CHANGELOG.md index 52911e4cc5e4..5e6d22160d6d 100644 --- a/services/containerservice/mgmt/2019-06-01/containerservice/CHANGELOG.md +++ b/services/containerservice/mgmt/2019-06-01/containerservice/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. CredentialResult.MarshalJSON() ([]byte, error) +1. CredentialResults.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OperationValueDisplay.MarshalJSON() ([]byte, error) +1. SubResource.MarshalJSON() ([]byte, error) diff --git a/services/containerservice/mgmt/2019-06-01/containerservice/_meta.json b/services/containerservice/mgmt/2019-06-01/containerservice/_meta.json index 615efa9decb5..d79bd84e0763 100644 --- a/services/containerservice/mgmt/2019-06-01/containerservice/_meta.json +++ b/services/containerservice/mgmt/2019-06-01/containerservice/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "tag": "package-2019-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/containerservice/mgmt/2019-06-01/containerservice/models.go b/services/containerservice/mgmt/2019-06-01/containerservice/models.go index bcbdaf4a4ae3..eb3a5c586ab3 100644 --- a/services/containerservice/mgmt/2019-06-01/containerservice/models.go +++ b/services/containerservice/mgmt/2019-06-01/containerservice/models.go @@ -790,6 +790,12 @@ type CredentialResult struct { Value *[]byte `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResult. +func (cr CredentialResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CredentialResults the list of credential result response. type CredentialResults struct { autorest.Response `json:"-"` @@ -797,6 +803,12 @@ type CredentialResults struct { Kubeconfigs *[]CredentialResult `json:"kubeconfigs,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResults. +func (cr CredentialResults) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CustomProfile properties to configure a custom container service cluster. type CustomProfile struct { // Orchestrator - The name of the custom orchestrator to use. @@ -2775,6 +2787,12 @@ type OperationListResult struct { Value *[]OperationValue `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationValue describes the properties of a Compute Operation value. type OperationValue struct { // Origin - READ-ONLY; The origin of the compute operation. @@ -2848,6 +2866,12 @@ type OperationValueDisplay struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationValueDisplay. +func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OrchestratorProfile contains information about orchestrator. type OrchestratorProfile struct { // OrchestratorType - Orchestrator type. @@ -3082,6 +3106,12 @@ type SubResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for SubResource. +func (sr SubResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TagsObject tags object for patch operations. type TagsObject struct { // Tags - Resource tags. diff --git a/services/containerservice/mgmt/2019-08-01/containerservice/CHANGELOG.md b/services/containerservice/mgmt/2019-08-01/containerservice/CHANGELOG.md index 52911e4cc5e4..5e6d22160d6d 100644 --- a/services/containerservice/mgmt/2019-08-01/containerservice/CHANGELOG.md +++ b/services/containerservice/mgmt/2019-08-01/containerservice/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. CredentialResult.MarshalJSON() ([]byte, error) +1. CredentialResults.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OperationValueDisplay.MarshalJSON() ([]byte, error) +1. SubResource.MarshalJSON() ([]byte, error) diff --git a/services/containerservice/mgmt/2019-08-01/containerservice/_meta.json b/services/containerservice/mgmt/2019-08-01/containerservice/_meta.json index 5085b81af0c0..b94977e72938 100644 --- a/services/containerservice/mgmt/2019-08-01/containerservice/_meta.json +++ b/services/containerservice/mgmt/2019-08-01/containerservice/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "tag": "package-2019-08", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/containerservice/mgmt/2019-08-01/containerservice/models.go b/services/containerservice/mgmt/2019-08-01/containerservice/models.go index 7bb9581a41da..5d3f58260f2c 100644 --- a/services/containerservice/mgmt/2019-08-01/containerservice/models.go +++ b/services/containerservice/mgmt/2019-08-01/containerservice/models.go @@ -790,6 +790,12 @@ type CredentialResult struct { Value *[]byte `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResult. +func (cr CredentialResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CredentialResults the list of credential result response. type CredentialResults struct { autorest.Response `json:"-"` @@ -797,6 +803,12 @@ type CredentialResults struct { Kubeconfigs *[]CredentialResult `json:"kubeconfigs,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResults. +func (cr CredentialResults) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CustomProfile properties to configure a custom container service cluster. type CustomProfile struct { // Orchestrator - The name of the custom orchestrator to use. @@ -2855,6 +2867,12 @@ type OperationListResult struct { Value *[]OperationValue `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationValue describes the properties of a Compute Operation value. type OperationValue struct { // Origin - READ-ONLY; The origin of the compute operation. @@ -2928,6 +2946,12 @@ type OperationValueDisplay struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationValueDisplay. +func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OrchestratorProfile contains information about orchestrator. type OrchestratorProfile struct { // OrchestratorType - Orchestrator type. @@ -3168,6 +3192,12 @@ type SubResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for SubResource. +func (sr SubResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TagsObject tags object for patch operations. type TagsObject struct { // Tags - Resource tags. diff --git a/services/containerservice/mgmt/2019-10-01/containerservice/CHANGELOG.md b/services/containerservice/mgmt/2019-10-01/containerservice/CHANGELOG.md index 52911e4cc5e4..5e6d22160d6d 100644 --- a/services/containerservice/mgmt/2019-10-01/containerservice/CHANGELOG.md +++ b/services/containerservice/mgmt/2019-10-01/containerservice/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. CredentialResult.MarshalJSON() ([]byte, error) +1. CredentialResults.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OperationValueDisplay.MarshalJSON() ([]byte, error) +1. SubResource.MarshalJSON() ([]byte, error) diff --git a/services/containerservice/mgmt/2019-10-01/containerservice/_meta.json b/services/containerservice/mgmt/2019-10-01/containerservice/_meta.json index 6c080a74a80f..200979714041 100644 --- a/services/containerservice/mgmt/2019-10-01/containerservice/_meta.json +++ b/services/containerservice/mgmt/2019-10-01/containerservice/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "tag": "package-2019-10", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/containerservice/mgmt/2019-10-01/containerservice/models.go b/services/containerservice/mgmt/2019-10-01/containerservice/models.go index c4ed19bb3e7c..d92732ff8dab 100644 --- a/services/containerservice/mgmt/2019-10-01/containerservice/models.go +++ b/services/containerservice/mgmt/2019-10-01/containerservice/models.go @@ -790,6 +790,12 @@ type CredentialResult struct { Value *[]byte `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResult. +func (cr CredentialResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CredentialResults the list of credential result response. type CredentialResults struct { autorest.Response `json:"-"` @@ -797,6 +803,12 @@ type CredentialResults struct { Kubeconfigs *[]CredentialResult `json:"kubeconfigs,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResults. +func (cr CredentialResults) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CustomProfile properties to configure a custom container service cluster. type CustomProfile struct { // Orchestrator - The name of the custom orchestrator to use. @@ -2857,6 +2869,12 @@ type OperationListResult struct { Value *[]OperationValue `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationValue describes the properties of a Compute Operation value. type OperationValue struct { // Origin - READ-ONLY; The origin of the compute operation. @@ -2930,6 +2948,12 @@ type OperationValueDisplay struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationValueDisplay. +func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OrchestratorProfile contains information about orchestrator. type OrchestratorProfile struct { // OrchestratorType - Orchestrator type. @@ -3170,6 +3194,12 @@ type SubResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for SubResource. +func (sr SubResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TagsObject tags object for patch operations. type TagsObject struct { // Tags - Resource tags. diff --git a/services/containerservice/mgmt/2019-11-01/containerservice/CHANGELOG.md b/services/containerservice/mgmt/2019-11-01/containerservice/CHANGELOG.md index 52911e4cc5e4..5e6d22160d6d 100644 --- a/services/containerservice/mgmt/2019-11-01/containerservice/CHANGELOG.md +++ b/services/containerservice/mgmt/2019-11-01/containerservice/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. CredentialResult.MarshalJSON() ([]byte, error) +1. CredentialResults.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OperationValueDisplay.MarshalJSON() ([]byte, error) +1. SubResource.MarshalJSON() ([]byte, error) diff --git a/services/containerservice/mgmt/2019-11-01/containerservice/_meta.json b/services/containerservice/mgmt/2019-11-01/containerservice/_meta.json index 189462e49523..46d63e3ae763 100644 --- a/services/containerservice/mgmt/2019-11-01/containerservice/_meta.json +++ b/services/containerservice/mgmt/2019-11-01/containerservice/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "tag": "package-2019-11", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/containerservice/mgmt/2019-11-01/containerservice/models.go b/services/containerservice/mgmt/2019-11-01/containerservice/models.go index 9cbf96ecb0ff..304771f9d2ea 100644 --- a/services/containerservice/mgmt/2019-11-01/containerservice/models.go +++ b/services/containerservice/mgmt/2019-11-01/containerservice/models.go @@ -790,6 +790,12 @@ type CredentialResult struct { Value *[]byte `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResult. +func (cr CredentialResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CredentialResults the list of credential result response. type CredentialResults struct { autorest.Response `json:"-"` @@ -797,6 +803,12 @@ type CredentialResults struct { Kubeconfigs *[]CredentialResult `json:"kubeconfigs,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResults. +func (cr CredentialResults) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CustomProfile properties to configure a custom container service cluster. type CustomProfile struct { // Orchestrator - The name of the custom orchestrator to use. @@ -2910,6 +2922,12 @@ type OperationListResult struct { Value *[]OperationValue `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationValue describes the properties of a Compute Operation value. type OperationValue struct { // Origin - READ-ONLY; The origin of the compute operation. @@ -2983,6 +3001,12 @@ type OperationValueDisplay struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationValueDisplay. +func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OrchestratorProfile contains information about orchestrator. type OrchestratorProfile struct { // OrchestratorType - Orchestrator type. @@ -3223,6 +3247,12 @@ type SubResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for SubResource. +func (sr SubResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TagsObject tags object for patch operations. type TagsObject struct { // Tags - Resource tags. diff --git a/services/containerservice/mgmt/2020-01-01/containerservice/CHANGELOG.md b/services/containerservice/mgmt/2020-01-01/containerservice/CHANGELOG.md index 52911e4cc5e4..5e6d22160d6d 100644 --- a/services/containerservice/mgmt/2020-01-01/containerservice/CHANGELOG.md +++ b/services/containerservice/mgmt/2020-01-01/containerservice/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. CredentialResult.MarshalJSON() ([]byte, error) +1. CredentialResults.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OperationValueDisplay.MarshalJSON() ([]byte, error) +1. SubResource.MarshalJSON() ([]byte, error) diff --git a/services/containerservice/mgmt/2020-01-01/containerservice/_meta.json b/services/containerservice/mgmt/2020-01-01/containerservice/_meta.json index 01f1550260b4..c98449c3aea5 100644 --- a/services/containerservice/mgmt/2020-01-01/containerservice/_meta.json +++ b/services/containerservice/mgmt/2020-01-01/containerservice/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "tag": "package-2020-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/containerservice/mgmt/2020-01-01/containerservice/models.go b/services/containerservice/mgmt/2020-01-01/containerservice/models.go index abd3ff16b25a..d13ac9710b34 100644 --- a/services/containerservice/mgmt/2020-01-01/containerservice/models.go +++ b/services/containerservice/mgmt/2020-01-01/containerservice/models.go @@ -790,6 +790,12 @@ type CredentialResult struct { Value *[]byte `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResult. +func (cr CredentialResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CredentialResults the list of credential result response. type CredentialResults struct { autorest.Response `json:"-"` @@ -797,6 +803,12 @@ type CredentialResults struct { Kubeconfigs *[]CredentialResult `json:"kubeconfigs,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResults. +func (cr CredentialResults) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CustomProfile properties to configure a custom container service cluster. type CustomProfile struct { // Orchestrator - The name of the custom orchestrator to use. @@ -2915,6 +2927,12 @@ type OperationListResult struct { Value *[]OperationValue `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationValue describes the properties of a Compute Operation value. type OperationValue struct { // Origin - READ-ONLY; The origin of the compute operation. @@ -2988,6 +3006,12 @@ type OperationValueDisplay struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationValueDisplay. +func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OrchestratorProfile contains information about orchestrator. type OrchestratorProfile struct { // OrchestratorType - Orchestrator type. @@ -3228,6 +3252,12 @@ type SubResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for SubResource. +func (sr SubResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TagsObject tags object for patch operations. type TagsObject struct { // Tags - Resource tags. diff --git a/services/containerservice/mgmt/2020-02-01/containerservice/CHANGELOG.md b/services/containerservice/mgmt/2020-02-01/containerservice/CHANGELOG.md index 52911e4cc5e4..5e6d22160d6d 100644 --- a/services/containerservice/mgmt/2020-02-01/containerservice/CHANGELOG.md +++ b/services/containerservice/mgmt/2020-02-01/containerservice/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. CredentialResult.MarshalJSON() ([]byte, error) +1. CredentialResults.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OperationValueDisplay.MarshalJSON() ([]byte, error) +1. SubResource.MarshalJSON() ([]byte, error) diff --git a/services/containerservice/mgmt/2020-02-01/containerservice/_meta.json b/services/containerservice/mgmt/2020-02-01/containerservice/_meta.json index df76ef497744..dc896a25d68d 100644 --- a/services/containerservice/mgmt/2020-02-01/containerservice/_meta.json +++ b/services/containerservice/mgmt/2020-02-01/containerservice/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "tag": "package-2020-02", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/containerservice/mgmt/2020-02-01/containerservice/models.go b/services/containerservice/mgmt/2020-02-01/containerservice/models.go index 0bdff50b8e7f..5942690a2a75 100644 --- a/services/containerservice/mgmt/2020-02-01/containerservice/models.go +++ b/services/containerservice/mgmt/2020-02-01/containerservice/models.go @@ -790,6 +790,12 @@ type CredentialResult struct { Value *[]byte `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResult. +func (cr CredentialResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CredentialResults the list of credential result response. type CredentialResults struct { autorest.Response `json:"-"` @@ -797,6 +803,12 @@ type CredentialResults struct { Kubeconfigs *[]CredentialResult `json:"kubeconfigs,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResults. +func (cr CredentialResults) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CustomProfile properties to configure a custom container service cluster. type CustomProfile struct { // Orchestrator - The name of the custom orchestrator to use. @@ -2945,6 +2957,12 @@ type OperationListResult struct { Value *[]OperationValue `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationValue describes the properties of a Compute Operation value. type OperationValue struct { // Origin - READ-ONLY; The origin of the compute operation. @@ -3018,6 +3036,12 @@ type OperationValueDisplay struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationValueDisplay. +func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OrchestratorProfile contains information about orchestrator. type OrchestratorProfile struct { // OrchestratorType - Orchestrator type. @@ -3258,6 +3282,12 @@ type SubResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for SubResource. +func (sr SubResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TagsObject tags object for patch operations. type TagsObject struct { // Tags - Resource tags. diff --git a/services/containerservice/mgmt/2020-03-01/containerservice/CHANGELOG.md b/services/containerservice/mgmt/2020-03-01/containerservice/CHANGELOG.md index 52911e4cc5e4..5e6d22160d6d 100644 --- a/services/containerservice/mgmt/2020-03-01/containerservice/CHANGELOG.md +++ b/services/containerservice/mgmt/2020-03-01/containerservice/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. CredentialResult.MarshalJSON() ([]byte, error) +1. CredentialResults.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OperationValueDisplay.MarshalJSON() ([]byte, error) +1. SubResource.MarshalJSON() ([]byte, error) diff --git a/services/containerservice/mgmt/2020-03-01/containerservice/_meta.json b/services/containerservice/mgmt/2020-03-01/containerservice/_meta.json index aa0563b09e36..ceb10766f25a 100644 --- a/services/containerservice/mgmt/2020-03-01/containerservice/_meta.json +++ b/services/containerservice/mgmt/2020-03-01/containerservice/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "tag": "package-2020-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/containerservice/mgmt/2020-03-01/containerservice/models.go b/services/containerservice/mgmt/2020-03-01/containerservice/models.go index 6e768be85055..9ebbcdea6857 100644 --- a/services/containerservice/mgmt/2020-03-01/containerservice/models.go +++ b/services/containerservice/mgmt/2020-03-01/containerservice/models.go @@ -790,6 +790,12 @@ type CredentialResult struct { Value *[]byte `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResult. +func (cr CredentialResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CredentialResults the list of credential result response. type CredentialResults struct { autorest.Response `json:"-"` @@ -797,6 +803,12 @@ type CredentialResults struct { Kubeconfigs *[]CredentialResult `json:"kubeconfigs,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResults. +func (cr CredentialResults) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CustomProfile properties to configure a custom container service cluster. type CustomProfile struct { // Orchestrator - The name of the custom orchestrator to use. @@ -2982,6 +2994,12 @@ type OperationListResult struct { Value *[]OperationValue `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationValue describes the properties of a Compute Operation value. type OperationValue struct { // Origin - READ-ONLY; The origin of the compute operation. @@ -3055,6 +3073,12 @@ type OperationValueDisplay struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationValueDisplay. +func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OrchestratorProfile contains information about orchestrator. type OrchestratorProfile struct { // OrchestratorType - Orchestrator type. @@ -3295,6 +3319,12 @@ type SubResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for SubResource. +func (sr SubResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TagsObject tags object for patch operations. type TagsObject struct { // Tags - Resource tags. diff --git a/services/containerservice/mgmt/2020-04-01/containerservice/CHANGELOG.md b/services/containerservice/mgmt/2020-04-01/containerservice/CHANGELOG.md index 52911e4cc5e4..5e6d22160d6d 100644 --- a/services/containerservice/mgmt/2020-04-01/containerservice/CHANGELOG.md +++ b/services/containerservice/mgmt/2020-04-01/containerservice/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. CredentialResult.MarshalJSON() ([]byte, error) +1. CredentialResults.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OperationValueDisplay.MarshalJSON() ([]byte, error) +1. SubResource.MarshalJSON() ([]byte, error) diff --git a/services/containerservice/mgmt/2020-04-01/containerservice/_meta.json b/services/containerservice/mgmt/2020-04-01/containerservice/_meta.json index 95d6e3a8d08f..091a36e92f59 100644 --- a/services/containerservice/mgmt/2020-04-01/containerservice/_meta.json +++ b/services/containerservice/mgmt/2020-04-01/containerservice/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "tag": "package-2020-04", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/containerservice/mgmt/2020-04-01/containerservice/models.go b/services/containerservice/mgmt/2020-04-01/containerservice/models.go index 2dd59d897d8c..d530b962f7bb 100644 --- a/services/containerservice/mgmt/2020-04-01/containerservice/models.go +++ b/services/containerservice/mgmt/2020-04-01/containerservice/models.go @@ -798,6 +798,12 @@ type CredentialResult struct { Value *[]byte `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResult. +func (cr CredentialResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CredentialResults the list of credential result response. type CredentialResults struct { autorest.Response `json:"-"` @@ -805,6 +811,12 @@ type CredentialResults struct { Kubeconfigs *[]CredentialResult `json:"kubeconfigs,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResults. +func (cr CredentialResults) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CustomProfile properties to configure a custom container service cluster. type CustomProfile struct { // Orchestrator - The name of the custom orchestrator to use. @@ -3010,6 +3022,12 @@ type OperationListResult struct { Value *[]OperationValue `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationValue describes the properties of a Compute Operation value. type OperationValue struct { // Origin - READ-ONLY; The origin of the compute operation. @@ -3083,6 +3101,12 @@ type OperationValueDisplay struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationValueDisplay. +func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OrchestratorProfile contains information about orchestrator. type OrchestratorProfile struct { // OrchestratorType - Orchestrator type. @@ -3323,6 +3347,12 @@ type SubResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for SubResource. +func (sr SubResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TagsObject tags object for patch operations. type TagsObject struct { // Tags - Resource tags. diff --git a/services/containerservice/mgmt/2020-06-01/containerservice/CHANGELOG.md b/services/containerservice/mgmt/2020-06-01/containerservice/CHANGELOG.md index 52911e4cc5e4..549d91569dc6 100644 --- a/services/containerservice/mgmt/2020-06-01/containerservice/CHANGELOG.md +++ b/services/containerservice/mgmt/2020-06-01/containerservice/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. CredentialResult.MarshalJSON() ([]byte, error) +1. CredentialResults.MarshalJSON() ([]byte, error) +1. ManagedClusterIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OperationValueDisplay.MarshalJSON() ([]byte, error) +1. SubResource.MarshalJSON() ([]byte, error) diff --git a/services/containerservice/mgmt/2020-06-01/containerservice/_meta.json b/services/containerservice/mgmt/2020-06-01/containerservice/_meta.json index f2056d6d82e0..3226e8eed0df 100644 --- a/services/containerservice/mgmt/2020-06-01/containerservice/_meta.json +++ b/services/containerservice/mgmt/2020-06-01/containerservice/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "tag": "package-2020-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/containerservice/mgmt/2020-06-01/containerservice/models.go b/services/containerservice/mgmt/2020-06-01/containerservice/models.go index 35a20c5e0323..44a9a8777cc2 100644 --- a/services/containerservice/mgmt/2020-06-01/containerservice/models.go +++ b/services/containerservice/mgmt/2020-06-01/containerservice/models.go @@ -798,6 +798,12 @@ type CredentialResult struct { Value *[]byte `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResult. +func (cr CredentialResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CredentialResults the list of credential result response. type CredentialResults struct { autorest.Response `json:"-"` @@ -805,6 +811,12 @@ type CredentialResults struct { Kubeconfigs *[]CredentialResult `json:"kubeconfigs,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResults. +func (cr CredentialResults) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CustomProfile properties to configure a custom container service cluster. type CustomProfile struct { // Orchestrator - The name of the custom orchestrator to use. @@ -1582,6 +1594,12 @@ type ManagedClusterIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedClusterIdentityUserAssignedIdentitiesValue. +func (mciAiv ManagedClusterIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedClusterListResult the response from the List Managed Clusters operation. type ManagedClusterListResult struct { autorest.Response `json:"-"` @@ -3035,6 +3053,12 @@ type OperationListResult struct { Value *[]OperationValue `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationValue describes the properties of a Compute Operation value. type OperationValue struct { // Origin - READ-ONLY; The origin of the compute operation. @@ -3108,6 +3132,12 @@ type OperationValueDisplay struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationValueDisplay. +func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OrchestratorProfile contains information about orchestrator. type OrchestratorProfile struct { // OrchestratorType - Orchestrator type. @@ -3501,6 +3531,12 @@ type SubResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for SubResource. +func (sr SubResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TagsObject tags object for patch operations. type TagsObject struct { // Tags - Resource tags. diff --git a/services/containerservice/mgmt/2020-07-01/containerservice/CHANGELOG.md b/services/containerservice/mgmt/2020-07-01/containerservice/CHANGELOG.md index 52911e4cc5e4..549d91569dc6 100644 --- a/services/containerservice/mgmt/2020-07-01/containerservice/CHANGELOG.md +++ b/services/containerservice/mgmt/2020-07-01/containerservice/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. CredentialResult.MarshalJSON() ([]byte, error) +1. CredentialResults.MarshalJSON() ([]byte, error) +1. ManagedClusterIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OperationValueDisplay.MarshalJSON() ([]byte, error) +1. SubResource.MarshalJSON() ([]byte, error) diff --git a/services/containerservice/mgmt/2020-07-01/containerservice/_meta.json b/services/containerservice/mgmt/2020-07-01/containerservice/_meta.json index 14e55f5a8771..fc7bfcb121a9 100644 --- a/services/containerservice/mgmt/2020-07-01/containerservice/_meta.json +++ b/services/containerservice/mgmt/2020-07-01/containerservice/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "tag": "package-2020-07", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/containerservice/mgmt/2020-07-01/containerservice/models.go b/services/containerservice/mgmt/2020-07-01/containerservice/models.go index 8d5ae5652d0b..ea4293f6a3a5 100644 --- a/services/containerservice/mgmt/2020-07-01/containerservice/models.go +++ b/services/containerservice/mgmt/2020-07-01/containerservice/models.go @@ -841,6 +841,12 @@ type CredentialResult struct { Value *[]byte `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResult. +func (cr CredentialResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CredentialResults the list of credential result response. type CredentialResults struct { autorest.Response `json:"-"` @@ -848,6 +854,12 @@ type CredentialResults struct { Kubeconfigs *[]CredentialResult `json:"kubeconfigs,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResults. +func (cr CredentialResults) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CustomProfile properties to configure a custom container service cluster. type CustomProfile struct { // Orchestrator - The name of the custom orchestrator to use. @@ -1619,6 +1631,12 @@ type ManagedClusterIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedClusterIdentityUserAssignedIdentitiesValue. +func (mciAiv ManagedClusterIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedClusterListResult the response from the List Managed Clusters operation. type ManagedClusterListResult struct { autorest.Response `json:"-"` @@ -3074,6 +3092,12 @@ type OperationListResult struct { Value *[]OperationValue `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationValue describes the properties of a Compute Operation value. type OperationValue struct { // Origin - READ-ONLY; The origin of the compute operation. @@ -3147,6 +3171,12 @@ type OperationValueDisplay struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationValueDisplay. +func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OrchestratorProfile contains information about orchestrator. type OrchestratorProfile struct { // OrchestratorType - Orchestrator type. @@ -3540,6 +3570,12 @@ type SubResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for SubResource. +func (sr SubResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TagsObject tags object for patch operations. type TagsObject struct { // Tags - Resource tags. diff --git a/services/containerservice/mgmt/2020-09-01/containerservice/CHANGELOG.md b/services/containerservice/mgmt/2020-09-01/containerservice/CHANGELOG.md index 52911e4cc5e4..549d91569dc6 100644 --- a/services/containerservice/mgmt/2020-09-01/containerservice/CHANGELOG.md +++ b/services/containerservice/mgmt/2020-09-01/containerservice/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. CredentialResult.MarshalJSON() ([]byte, error) +1. CredentialResults.MarshalJSON() ([]byte, error) +1. ManagedClusterIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OperationValueDisplay.MarshalJSON() ([]byte, error) +1. SubResource.MarshalJSON() ([]byte, error) diff --git a/services/containerservice/mgmt/2020-09-01/containerservice/_meta.json b/services/containerservice/mgmt/2020-09-01/containerservice/_meta.json index 554f3af96583..54751320e14b 100644 --- a/services/containerservice/mgmt/2020-09-01/containerservice/_meta.json +++ b/services/containerservice/mgmt/2020-09-01/containerservice/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "tag": "package-2020-09", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/containerservice/mgmt/2020-09-01/containerservice/models.go b/services/containerservice/mgmt/2020-09-01/containerservice/models.go index 21e3fb419300..91bcf1f51be0 100644 --- a/services/containerservice/mgmt/2020-09-01/containerservice/models.go +++ b/services/containerservice/mgmt/2020-09-01/containerservice/models.go @@ -841,6 +841,12 @@ type CredentialResult struct { Value *[]byte `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResult. +func (cr CredentialResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CredentialResults the list of credential result response. type CredentialResults struct { autorest.Response `json:"-"` @@ -848,6 +854,12 @@ type CredentialResults struct { Kubeconfigs *[]CredentialResult `json:"kubeconfigs,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResults. +func (cr CredentialResults) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CustomProfile properties to configure a custom container service cluster. type CustomProfile struct { // Orchestrator - The name of the custom orchestrator to use. @@ -1633,6 +1645,12 @@ type ManagedClusterIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedClusterIdentityUserAssignedIdentitiesValue. +func (mciAiv ManagedClusterIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedClusterListResult the response from the List Managed Clusters operation. type ManagedClusterListResult struct { autorest.Response `json:"-"` @@ -3172,6 +3190,12 @@ type OperationListResult struct { Value *[]OperationValue `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationValue describes the properties of a Compute Operation value. type OperationValue struct { // Origin - READ-ONLY; The origin of the compute operation. @@ -3245,6 +3269,12 @@ type OperationValueDisplay struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationValueDisplay. +func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OrchestratorProfile contains information about orchestrator. type OrchestratorProfile struct { // OrchestratorType - Orchestrator type. @@ -3689,6 +3719,12 @@ type SubResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for SubResource. +func (sr SubResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TagsObject tags object for patch operations. type TagsObject struct { // Tags - Resource tags. diff --git a/services/containerservice/mgmt/2020-11-01/containerservice/CHANGELOG.md b/services/containerservice/mgmt/2020-11-01/containerservice/CHANGELOG.md index 52911e4cc5e4..549d91569dc6 100644 --- a/services/containerservice/mgmt/2020-11-01/containerservice/CHANGELOG.md +++ b/services/containerservice/mgmt/2020-11-01/containerservice/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. CredentialResult.MarshalJSON() ([]byte, error) +1. CredentialResults.MarshalJSON() ([]byte, error) +1. ManagedClusterIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OperationValueDisplay.MarshalJSON() ([]byte, error) +1. SubResource.MarshalJSON() ([]byte, error) diff --git a/services/containerservice/mgmt/2020-11-01/containerservice/_meta.json b/services/containerservice/mgmt/2020-11-01/containerservice/_meta.json index 2fdf618648d0..d987558948fc 100644 --- a/services/containerservice/mgmt/2020-11-01/containerservice/_meta.json +++ b/services/containerservice/mgmt/2020-11-01/containerservice/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "tag": "package-2020-11", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/containerservice/mgmt/2020-11-01/containerservice/models.go b/services/containerservice/mgmt/2020-11-01/containerservice/models.go index 1d2105a6943c..e75ef89e440a 100644 --- a/services/containerservice/mgmt/2020-11-01/containerservice/models.go +++ b/services/containerservice/mgmt/2020-11-01/containerservice/models.go @@ -603,6 +603,12 @@ type CredentialResult struct { Value *[]byte `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResult. +func (cr CredentialResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CredentialResults the list of credential result response. type CredentialResults struct { autorest.Response `json:"-"` @@ -610,6 +616,12 @@ type CredentialResults struct { Kubeconfigs *[]CredentialResult `json:"kubeconfigs,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResults. +func (cr CredentialResults) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DiagnosticsProfile profile for diagnostics on the container service cluster. type DiagnosticsProfile struct { // VMDiagnostics - Profile for diagnostics on the container service VMs. @@ -1281,6 +1293,12 @@ type ManagedClusterIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedClusterIdentityUserAssignedIdentitiesValue. +func (mciAiv ManagedClusterIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedClusterListResult the response from the List Managed Clusters operation. type ManagedClusterListResult struct { autorest.Response `json:"-"` @@ -2212,6 +2230,12 @@ type OperationListResult struct { Value *[]OperationValue `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationValue describes the properties of a Compute Operation value. type OperationValue struct { // Origin - READ-ONLY; The origin of the compute operation. @@ -2285,6 +2309,12 @@ type OperationValueDisplay struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationValueDisplay. +func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PowerState describes the Power State of the cluster type PowerState struct { // Code - Tells whether the cluster is Running or Stopped. Possible values include: 'Running', 'Stopped' @@ -2543,6 +2573,12 @@ type SubResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for SubResource. +func (sr SubResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SysctlConfig sysctl settings for Linux agent nodes. type SysctlConfig struct { // NetCoreSomaxconn - Sysctl setting net.core.somaxconn. diff --git a/services/containerservice/mgmt/2020-12-01/containerservice/CHANGELOG.md b/services/containerservice/mgmt/2020-12-01/containerservice/CHANGELOG.md index 52911e4cc5e4..549d91569dc6 100644 --- a/services/containerservice/mgmt/2020-12-01/containerservice/CHANGELOG.md +++ b/services/containerservice/mgmt/2020-12-01/containerservice/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. CredentialResult.MarshalJSON() ([]byte, error) +1. CredentialResults.MarshalJSON() ([]byte, error) +1. ManagedClusterIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OperationValueDisplay.MarshalJSON() ([]byte, error) +1. SubResource.MarshalJSON() ([]byte, error) diff --git a/services/containerservice/mgmt/2020-12-01/containerservice/_meta.json b/services/containerservice/mgmt/2020-12-01/containerservice/_meta.json index dee1e428e4f6..f66fef9d31d7 100644 --- a/services/containerservice/mgmt/2020-12-01/containerservice/_meta.json +++ b/services/containerservice/mgmt/2020-12-01/containerservice/_meta.json @@ -2,9 +2,9 @@ "commit": "b08824e05817297a4b2874d8db5e6fc8c29349c9", "readme": "/_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "tag": "package-2020-12", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/containerservice/mgmt/2020-12-01/containerservice/models.go b/services/containerservice/mgmt/2020-12-01/containerservice/models.go index 8db8882a43c6..8b992b9c336e 100644 --- a/services/containerservice/mgmt/2020-12-01/containerservice/models.go +++ b/services/containerservice/mgmt/2020-12-01/containerservice/models.go @@ -604,6 +604,12 @@ type CredentialResult struct { Value *[]byte `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResult. +func (cr CredentialResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CredentialResults the list of credential result response. type CredentialResults struct { autorest.Response `json:"-"` @@ -611,6 +617,12 @@ type CredentialResults struct { Kubeconfigs *[]CredentialResult `json:"kubeconfigs,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResults. +func (cr CredentialResults) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DiagnosticsProfile profile for diagnostics on the container service cluster. type DiagnosticsProfile struct { // VMDiagnostics - Profile for diagnostics on the container service VMs. @@ -1569,6 +1581,12 @@ type ManagedClusterIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedClusterIdentityUserAssignedIdentitiesValue. +func (mciAiv ManagedClusterIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedClusterListResult the response from the List Managed Clusters operation. type ManagedClusterListResult struct { autorest.Response `json:"-"` @@ -2501,6 +2519,12 @@ type OperationListResult struct { Value *[]OperationValue `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationValue describes the properties of a Compute Operation value. type OperationValue struct { // Origin - READ-ONLY; The origin of the compute operation. @@ -2574,6 +2598,12 @@ type OperationValueDisplay struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationValueDisplay. +func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PowerState describes the Power State of the cluster type PowerState struct { // Code - Tells whether the cluster is Running or Stopped. Possible values include: 'Running', 'Stopped' @@ -2832,6 +2862,12 @@ type SubResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for SubResource. +func (sr SubResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SysctlConfig sysctl settings for Linux agent nodes. type SysctlConfig struct { // NetCoreSomaxconn - Sysctl setting net.core.somaxconn. diff --git a/services/containerservice/mgmt/2021-02-01/containerservice/CHANGELOG.md b/services/containerservice/mgmt/2021-02-01/containerservice/CHANGELOG.md index 52911e4cc5e4..549d91569dc6 100644 --- a/services/containerservice/mgmt/2021-02-01/containerservice/CHANGELOG.md +++ b/services/containerservice/mgmt/2021-02-01/containerservice/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. CredentialResult.MarshalJSON() ([]byte, error) +1. CredentialResults.MarshalJSON() ([]byte, error) +1. ManagedClusterIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OperationValueDisplay.MarshalJSON() ([]byte, error) +1. SubResource.MarshalJSON() ([]byte, error) diff --git a/services/containerservice/mgmt/2021-02-01/containerservice/_meta.json b/services/containerservice/mgmt/2021-02-01/containerservice/_meta.json index 5e8297aa606e..aed03c97cdc5 100644 --- a/services/containerservice/mgmt/2021-02-01/containerservice/_meta.json +++ b/services/containerservice/mgmt/2021-02-01/containerservice/_meta.json @@ -2,9 +2,9 @@ "commit": "80e4e1b77162711ca1123042f50db03ffbf1bb40", "readme": "/_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "tag": "package-2021-02", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2021-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2021-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/containerservice/mgmt/2021-02-01/containerservice/models.go b/services/containerservice/mgmt/2021-02-01/containerservice/models.go index 006fbc21b7b4..c37a5c954321 100644 --- a/services/containerservice/mgmt/2021-02-01/containerservice/models.go +++ b/services/containerservice/mgmt/2021-02-01/containerservice/models.go @@ -604,6 +604,12 @@ type CredentialResult struct { Value *[]byte `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResult. +func (cr CredentialResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CredentialResults the list of credential result response. type CredentialResults struct { autorest.Response `json:"-"` @@ -611,6 +617,12 @@ type CredentialResults struct { Kubeconfigs *[]CredentialResult `json:"kubeconfigs,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResults. +func (cr CredentialResults) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DiagnosticsProfile profile for diagnostics on the container service cluster. type DiagnosticsProfile struct { // VMDiagnostics - Profile for diagnostics on the container service VMs. @@ -1579,6 +1591,12 @@ type ManagedClusterIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedClusterIdentityUserAssignedIdentitiesValue. +func (mciAiv ManagedClusterIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedClusterListResult the response from the List Managed Clusters operation. type ManagedClusterListResult struct { autorest.Response `json:"-"` @@ -2520,6 +2538,12 @@ type OperationListResult struct { Value *[]OperationValue `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationValue describes the properties of a Compute Operation value. type OperationValue struct { // Origin - READ-ONLY; The origin of the compute operation. @@ -2593,6 +2617,12 @@ type OperationValueDisplay struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationValueDisplay. +func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PowerState describes the Power State of the cluster type PowerState struct { // Code - Tells whether the cluster is Running or Stopped. Possible values include: 'Running', 'Stopped' @@ -2851,6 +2881,12 @@ type SubResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for SubResource. +func (sr SubResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SysctlConfig sysctl settings for Linux agent nodes. type SysctlConfig struct { // NetCoreSomaxconn - Sysctl setting net.core.somaxconn. diff --git a/services/containerservice/mgmt/2021-03-01/containerservice/CHANGELOG.md b/services/containerservice/mgmt/2021-03-01/containerservice/CHANGELOG.md index 11a98d4b7b27..011fe26f4f31 100644 --- a/services/containerservice/mgmt/2021-03-01/containerservice/CHANGELOG.md +++ b/services/containerservice/mgmt/2021-03-01/containerservice/CHANGELOG.md @@ -1,473 +1,13 @@ # Change History -## Breaking Changes - -### Removed Constants - -1. AgentPoolMode.System -1. AgentPoolMode.User -1. AgentPoolType.AvailabilitySet -1. AgentPoolType.VirtualMachineScaleSets -1. Code.Running -1. Code.Stopped -1. ConnectionStatus.Approved -1. ConnectionStatus.Disconnected -1. ConnectionStatus.Pending -1. ConnectionStatus.Rejected -1. Expander.LeastWaste -1. Expander.MostPods -1. Expander.Priority -1. Expander.Random -1. ExtendedLocationTypes.EdgeZone -1. GPUInstanceProfile.MIG1g -1. GPUInstanceProfile.MIG2g -1. GPUInstanceProfile.MIG3g -1. GPUInstanceProfile.MIG4g -1. GPUInstanceProfile.MIG7g -1. KubeletDiskType.OS -1. KubeletDiskType.Temporary -1. LicenseType.None -1. LicenseType.WindowsServer -1. LoadBalancerSku.Basic -1. LoadBalancerSku.Standard -1. ManagedClusterPodIdentityProvisioningState.Assigned -1. ManagedClusterPodIdentityProvisioningState.Deleting -1. ManagedClusterPodIdentityProvisioningState.Failed -1. ManagedClusterPodIdentityProvisioningState.Updating -1. ManagedClusterSKUTier.Free -1. ManagedClusterSKUTier.Paid -1. NetworkMode.Bridge -1. NetworkMode.Transparent -1. NetworkPlugin.Azure -1. NetworkPlugin.Kubenet -1. OSDiskType.Ephemeral -1. OSDiskType.Managed -1. OSSKU.CBLMariner -1. OSSKU.Ubuntu -1. OSType.Linux -1. OSType.Windows -1. OutboundType.LoadBalancer -1. OutboundType.UserDefinedRouting -1. ScaleSetEvictionPolicy.Deallocate -1. ScaleSetEvictionPolicy.Delete -1. ScaleSetPriority.Regular -1. ScaleSetPriority.Spot -1. StorageProfileTypes.ManagedDisks -1. StorageProfileTypes.StorageAccount -1. VMSizeTypes.StandardA1 -1. VMSizeTypes.StandardA10 -1. VMSizeTypes.StandardA11 -1. VMSizeTypes.StandardA1V2 -1. VMSizeTypes.StandardA2 -1. VMSizeTypes.StandardA2V2 -1. VMSizeTypes.StandardA2mV2 -1. VMSizeTypes.StandardA3 -1. VMSizeTypes.StandardA4 -1. VMSizeTypes.StandardA4V2 -1. VMSizeTypes.StandardA4mV2 -1. VMSizeTypes.StandardA5 -1. VMSizeTypes.StandardA6 -1. VMSizeTypes.StandardA7 -1. VMSizeTypes.StandardA8 -1. VMSizeTypes.StandardA8V2 -1. VMSizeTypes.StandardA8mV2 -1. VMSizeTypes.StandardA9 -1. VMSizeTypes.StandardB2ms -1. VMSizeTypes.StandardB2s -1. VMSizeTypes.StandardB4ms -1. VMSizeTypes.StandardB8ms -1. VMSizeTypes.StandardD1 -1. VMSizeTypes.StandardD11 -1. VMSizeTypes.StandardD11V2 -1. VMSizeTypes.StandardD11V2Promo -1. VMSizeTypes.StandardD12 -1. VMSizeTypes.StandardD12V2 -1. VMSizeTypes.StandardD12V2Promo -1. VMSizeTypes.StandardD13 -1. VMSizeTypes.StandardD13V2 -1. VMSizeTypes.StandardD13V2Promo -1. VMSizeTypes.StandardD14 -1. VMSizeTypes.StandardD14V2 -1. VMSizeTypes.StandardD14V2Promo -1. VMSizeTypes.StandardD15V2 -1. VMSizeTypes.StandardD16V3 -1. VMSizeTypes.StandardD16sV3 -1. VMSizeTypes.StandardD1V2 -1. VMSizeTypes.StandardD2 -1. VMSizeTypes.StandardD2V2 -1. VMSizeTypes.StandardD2V2Promo -1. VMSizeTypes.StandardD2V3 -1. VMSizeTypes.StandardD2sV3 -1. VMSizeTypes.StandardD3 -1. VMSizeTypes.StandardD32V3 -1. VMSizeTypes.StandardD32sV3 -1. VMSizeTypes.StandardD3V2 -1. VMSizeTypes.StandardD3V2Promo -1. VMSizeTypes.StandardD4 -1. VMSizeTypes.StandardD4V2 -1. VMSizeTypes.StandardD4V2Promo -1. VMSizeTypes.StandardD4V3 -1. VMSizeTypes.StandardD4sV3 -1. VMSizeTypes.StandardD5V2 -1. VMSizeTypes.StandardD5V2Promo -1. VMSizeTypes.StandardD64V3 -1. VMSizeTypes.StandardD64sV3 -1. VMSizeTypes.StandardD8V3 -1. VMSizeTypes.StandardD8sV3 -1. VMSizeTypes.StandardDS1 -1. VMSizeTypes.StandardDS11 -1. VMSizeTypes.StandardDS11V2 -1. VMSizeTypes.StandardDS11V2Promo -1. VMSizeTypes.StandardDS12 -1. VMSizeTypes.StandardDS12V2 -1. VMSizeTypes.StandardDS12V2Promo -1. VMSizeTypes.StandardDS13 -1. VMSizeTypes.StandardDS132V2 -1. VMSizeTypes.StandardDS134V2 -1. VMSizeTypes.StandardDS13V2 -1. VMSizeTypes.StandardDS13V2Promo -1. VMSizeTypes.StandardDS14 -1. VMSizeTypes.StandardDS144V2 -1. VMSizeTypes.StandardDS148V2 -1. VMSizeTypes.StandardDS14V2 -1. VMSizeTypes.StandardDS14V2Promo -1. VMSizeTypes.StandardDS15V2 -1. VMSizeTypes.StandardDS1V2 -1. VMSizeTypes.StandardDS2 -1. VMSizeTypes.StandardDS2V2 -1. VMSizeTypes.StandardDS2V2Promo -1. VMSizeTypes.StandardDS3 -1. VMSizeTypes.StandardDS3V2 -1. VMSizeTypes.StandardDS3V2Promo -1. VMSizeTypes.StandardDS4 -1. VMSizeTypes.StandardDS4V2 -1. VMSizeTypes.StandardDS4V2Promo -1. VMSizeTypes.StandardDS5V2 -1. VMSizeTypes.StandardDS5V2Promo -1. VMSizeTypes.StandardE16V3 -1. VMSizeTypes.StandardE16sV3 -1. VMSizeTypes.StandardE2V3 -1. VMSizeTypes.StandardE2sV3 -1. VMSizeTypes.StandardE3216sV3 -1. VMSizeTypes.StandardE328sV3 -1. VMSizeTypes.StandardE32V3 -1. VMSizeTypes.StandardE32sV3 -1. VMSizeTypes.StandardE4V3 -1. VMSizeTypes.StandardE4sV3 -1. VMSizeTypes.StandardE6416sV3 -1. VMSizeTypes.StandardE6432sV3 -1. VMSizeTypes.StandardE64V3 -1. VMSizeTypes.StandardE64sV3 -1. VMSizeTypes.StandardE8V3 -1. VMSizeTypes.StandardE8sV3 -1. VMSizeTypes.StandardF1 -1. VMSizeTypes.StandardF16 -1. VMSizeTypes.StandardF16s -1. VMSizeTypes.StandardF16sV2 -1. VMSizeTypes.StandardF1s -1. VMSizeTypes.StandardF2 -1. VMSizeTypes.StandardF2s -1. VMSizeTypes.StandardF2sV2 -1. VMSizeTypes.StandardF32sV2 -1. VMSizeTypes.StandardF4 -1. VMSizeTypes.StandardF4s -1. VMSizeTypes.StandardF4sV2 -1. VMSizeTypes.StandardF64sV2 -1. VMSizeTypes.StandardF72sV2 -1. VMSizeTypes.StandardF8 -1. VMSizeTypes.StandardF8s -1. VMSizeTypes.StandardF8sV2 -1. VMSizeTypes.StandardG1 -1. VMSizeTypes.StandardG2 -1. VMSizeTypes.StandardG3 -1. VMSizeTypes.StandardG4 -1. VMSizeTypes.StandardG5 -1. VMSizeTypes.StandardGS1 -1. VMSizeTypes.StandardGS2 -1. VMSizeTypes.StandardGS3 -1. VMSizeTypes.StandardGS4 -1. VMSizeTypes.StandardGS44 -1. VMSizeTypes.StandardGS48 -1. VMSizeTypes.StandardGS5 -1. VMSizeTypes.StandardGS516 -1. VMSizeTypes.StandardGS58 -1. VMSizeTypes.StandardH16 -1. VMSizeTypes.StandardH16m -1. VMSizeTypes.StandardH16mr -1. VMSizeTypes.StandardH16r -1. VMSizeTypes.StandardH8 -1. VMSizeTypes.StandardH8m -1. VMSizeTypes.StandardL16s -1. VMSizeTypes.StandardL32s -1. VMSizeTypes.StandardL4s -1. VMSizeTypes.StandardL8s -1. VMSizeTypes.StandardM12832ms -1. VMSizeTypes.StandardM12864ms -1. VMSizeTypes.StandardM128ms -1. VMSizeTypes.StandardM128s -1. VMSizeTypes.StandardM6416ms -1. VMSizeTypes.StandardM6432ms -1. VMSizeTypes.StandardM64ms -1. VMSizeTypes.StandardM64s -1. VMSizeTypes.StandardNC12 -1. VMSizeTypes.StandardNC12sV2 -1. VMSizeTypes.StandardNC12sV3 -1. VMSizeTypes.StandardNC24 -1. VMSizeTypes.StandardNC24r -1. VMSizeTypes.StandardNC24rsV2 -1. VMSizeTypes.StandardNC24rsV3 -1. VMSizeTypes.StandardNC24sV2 -1. VMSizeTypes.StandardNC24sV3 -1. VMSizeTypes.StandardNC6 -1. VMSizeTypes.StandardNC6sV2 -1. VMSizeTypes.StandardNC6sV3 -1. VMSizeTypes.StandardND12s -1. VMSizeTypes.StandardND24rs -1. VMSizeTypes.StandardND24s -1. VMSizeTypes.StandardND6s -1. VMSizeTypes.StandardNV12 -1. VMSizeTypes.StandardNV24 -1. VMSizeTypes.StandardNV6 -1. WeekDay.Friday -1. WeekDay.Monday -1. WeekDay.Saturday -1. WeekDay.Sunday -1. WeekDay.Thursday -1. WeekDay.Tuesday -1. WeekDay.Wednesday - ## Additive Changes -### New Constants +### New Funcs -1. AgentPoolMode.AgentPoolModeSystem -1. AgentPoolMode.AgentPoolModeUser -1. AgentPoolType.AgentPoolTypeAvailabilitySet -1. AgentPoolType.AgentPoolTypeVirtualMachineScaleSets -1. Code.CodeRunning -1. Code.CodeStopped -1. ConnectionStatus.ConnectionStatusApproved -1. ConnectionStatus.ConnectionStatusDisconnected -1. ConnectionStatus.ConnectionStatusPending -1. ConnectionStatus.ConnectionStatusRejected -1. Expander.ExpanderLeastWaste -1. Expander.ExpanderMostPods -1. Expander.ExpanderPriority -1. Expander.ExpanderRandom -1. ExtendedLocationTypes.ExtendedLocationTypesEdgeZone -1. GPUInstanceProfile.GPUInstanceProfileMIG1g -1. GPUInstanceProfile.GPUInstanceProfileMIG2g -1. GPUInstanceProfile.GPUInstanceProfileMIG3g -1. GPUInstanceProfile.GPUInstanceProfileMIG4g -1. GPUInstanceProfile.GPUInstanceProfileMIG7g -1. KubeletDiskType.KubeletDiskTypeOS -1. KubeletDiskType.KubeletDiskTypeTemporary -1. LicenseType.LicenseTypeNone -1. LicenseType.LicenseTypeWindowsServer -1. LoadBalancerSku.LoadBalancerSkuBasic -1. LoadBalancerSku.LoadBalancerSkuStandard -1. ManagedClusterPodIdentityProvisioningState.ManagedClusterPodIdentityProvisioningStateAssigned -1. ManagedClusterPodIdentityProvisioningState.ManagedClusterPodIdentityProvisioningStateDeleting -1. ManagedClusterPodIdentityProvisioningState.ManagedClusterPodIdentityProvisioningStateFailed -1. ManagedClusterPodIdentityProvisioningState.ManagedClusterPodIdentityProvisioningStateUpdating -1. ManagedClusterSKUTier.ManagedClusterSKUTierFree -1. ManagedClusterSKUTier.ManagedClusterSKUTierPaid -1. NetworkMode.NetworkModeBridge -1. NetworkMode.NetworkModeTransparent -1. NetworkPlugin.NetworkPluginAzure -1. NetworkPlugin.NetworkPluginKubenet -1. OSDiskType.OSDiskTypeEphemeral -1. OSDiskType.OSDiskTypeManaged -1. OSSKU.OSSKUCBLMariner -1. OSSKU.OSSKUUbuntu -1. OSType.OSTypeLinux -1. OSType.OSTypeWindows -1. OutboundType.OutboundTypeLoadBalancer -1. OutboundType.OutboundTypeUserDefinedRouting -1. ScaleSetEvictionPolicy.ScaleSetEvictionPolicyDeallocate -1. ScaleSetEvictionPolicy.ScaleSetEvictionPolicyDelete -1. ScaleSetPriority.ScaleSetPriorityRegular -1. ScaleSetPriority.ScaleSetPrioritySpot -1. StorageProfileTypes.StorageProfileTypesManagedDisks -1. StorageProfileTypes.StorageProfileTypesStorageAccount -1. VMSizeTypes.VMSizeTypesStandardA1 -1. VMSizeTypes.VMSizeTypesStandardA10 -1. VMSizeTypes.VMSizeTypesStandardA11 -1. VMSizeTypes.VMSizeTypesStandardA1V2 -1. VMSizeTypes.VMSizeTypesStandardA2 -1. VMSizeTypes.VMSizeTypesStandardA2V2 -1. VMSizeTypes.VMSizeTypesStandardA2mV2 -1. VMSizeTypes.VMSizeTypesStandardA3 -1. VMSizeTypes.VMSizeTypesStandardA4 -1. VMSizeTypes.VMSizeTypesStandardA4V2 -1. VMSizeTypes.VMSizeTypesStandardA4mV2 -1. VMSizeTypes.VMSizeTypesStandardA5 -1. VMSizeTypes.VMSizeTypesStandardA6 -1. VMSizeTypes.VMSizeTypesStandardA7 -1. VMSizeTypes.VMSizeTypesStandardA8 -1. VMSizeTypes.VMSizeTypesStandardA8V2 -1. VMSizeTypes.VMSizeTypesStandardA8mV2 -1. VMSizeTypes.VMSizeTypesStandardA9 -1. VMSizeTypes.VMSizeTypesStandardB2ms -1. VMSizeTypes.VMSizeTypesStandardB2s -1. VMSizeTypes.VMSizeTypesStandardB4ms -1. VMSizeTypes.VMSizeTypesStandardB8ms -1. VMSizeTypes.VMSizeTypesStandardD1 -1. VMSizeTypes.VMSizeTypesStandardD11 -1. VMSizeTypes.VMSizeTypesStandardD11V2 -1. VMSizeTypes.VMSizeTypesStandardD11V2Promo -1. VMSizeTypes.VMSizeTypesStandardD12 -1. VMSizeTypes.VMSizeTypesStandardD12V2 -1. VMSizeTypes.VMSizeTypesStandardD12V2Promo -1. VMSizeTypes.VMSizeTypesStandardD13 -1. VMSizeTypes.VMSizeTypesStandardD13V2 -1. VMSizeTypes.VMSizeTypesStandardD13V2Promo -1. VMSizeTypes.VMSizeTypesStandardD14 -1. VMSizeTypes.VMSizeTypesStandardD14V2 -1. VMSizeTypes.VMSizeTypesStandardD14V2Promo -1. VMSizeTypes.VMSizeTypesStandardD15V2 -1. VMSizeTypes.VMSizeTypesStandardD16V3 -1. VMSizeTypes.VMSizeTypesStandardD16sV3 -1. VMSizeTypes.VMSizeTypesStandardD1V2 -1. VMSizeTypes.VMSizeTypesStandardD2 -1. VMSizeTypes.VMSizeTypesStandardD2V2 -1. VMSizeTypes.VMSizeTypesStandardD2V2Promo -1. VMSizeTypes.VMSizeTypesStandardD2V3 -1. VMSizeTypes.VMSizeTypesStandardD2sV3 -1. VMSizeTypes.VMSizeTypesStandardD3 -1. VMSizeTypes.VMSizeTypesStandardD32V3 -1. VMSizeTypes.VMSizeTypesStandardD32sV3 -1. VMSizeTypes.VMSizeTypesStandardD3V2 -1. VMSizeTypes.VMSizeTypesStandardD3V2Promo -1. VMSizeTypes.VMSizeTypesStandardD4 -1. VMSizeTypes.VMSizeTypesStandardD4V2 -1. VMSizeTypes.VMSizeTypesStandardD4V2Promo -1. VMSizeTypes.VMSizeTypesStandardD4V3 -1. VMSizeTypes.VMSizeTypesStandardD4sV3 -1. VMSizeTypes.VMSizeTypesStandardD5V2 -1. VMSizeTypes.VMSizeTypesStandardD5V2Promo -1. VMSizeTypes.VMSizeTypesStandardD64V3 -1. VMSizeTypes.VMSizeTypesStandardD64sV3 -1. VMSizeTypes.VMSizeTypesStandardD8V3 -1. VMSizeTypes.VMSizeTypesStandardD8sV3 -1. VMSizeTypes.VMSizeTypesStandardDS1 -1. VMSizeTypes.VMSizeTypesStandardDS11 -1. VMSizeTypes.VMSizeTypesStandardDS11V2 -1. VMSizeTypes.VMSizeTypesStandardDS11V2Promo -1. VMSizeTypes.VMSizeTypesStandardDS12 -1. VMSizeTypes.VMSizeTypesStandardDS12V2 -1. VMSizeTypes.VMSizeTypesStandardDS12V2Promo -1. VMSizeTypes.VMSizeTypesStandardDS13 -1. VMSizeTypes.VMSizeTypesStandardDS132V2 -1. VMSizeTypes.VMSizeTypesStandardDS134V2 -1. VMSizeTypes.VMSizeTypesStandardDS13V2 -1. VMSizeTypes.VMSizeTypesStandardDS13V2Promo -1. VMSizeTypes.VMSizeTypesStandardDS14 -1. VMSizeTypes.VMSizeTypesStandardDS144V2 -1. VMSizeTypes.VMSizeTypesStandardDS148V2 -1. VMSizeTypes.VMSizeTypesStandardDS14V2 -1. VMSizeTypes.VMSizeTypesStandardDS14V2Promo -1. VMSizeTypes.VMSizeTypesStandardDS15V2 -1. VMSizeTypes.VMSizeTypesStandardDS1V2 -1. VMSizeTypes.VMSizeTypesStandardDS2 -1. VMSizeTypes.VMSizeTypesStandardDS2V2 -1. VMSizeTypes.VMSizeTypesStandardDS2V2Promo -1. VMSizeTypes.VMSizeTypesStandardDS3 -1. VMSizeTypes.VMSizeTypesStandardDS3V2 -1. VMSizeTypes.VMSizeTypesStandardDS3V2Promo -1. VMSizeTypes.VMSizeTypesStandardDS4 -1. VMSizeTypes.VMSizeTypesStandardDS4V2 -1. VMSizeTypes.VMSizeTypesStandardDS4V2Promo -1. VMSizeTypes.VMSizeTypesStandardDS5V2 -1. VMSizeTypes.VMSizeTypesStandardDS5V2Promo -1. VMSizeTypes.VMSizeTypesStandardE16V3 -1. VMSizeTypes.VMSizeTypesStandardE16sV3 -1. VMSizeTypes.VMSizeTypesStandardE2V3 -1. VMSizeTypes.VMSizeTypesStandardE2sV3 -1. VMSizeTypes.VMSizeTypesStandardE3216sV3 -1. VMSizeTypes.VMSizeTypesStandardE328sV3 -1. VMSizeTypes.VMSizeTypesStandardE32V3 -1. VMSizeTypes.VMSizeTypesStandardE32sV3 -1. VMSizeTypes.VMSizeTypesStandardE4V3 -1. VMSizeTypes.VMSizeTypesStandardE4sV3 -1. VMSizeTypes.VMSizeTypesStandardE6416sV3 -1. VMSizeTypes.VMSizeTypesStandardE6432sV3 -1. VMSizeTypes.VMSizeTypesStandardE64V3 -1. VMSizeTypes.VMSizeTypesStandardE64sV3 -1. VMSizeTypes.VMSizeTypesStandardE8V3 -1. VMSizeTypes.VMSizeTypesStandardE8sV3 -1. VMSizeTypes.VMSizeTypesStandardF1 -1. VMSizeTypes.VMSizeTypesStandardF16 -1. VMSizeTypes.VMSizeTypesStandardF16s -1. VMSizeTypes.VMSizeTypesStandardF16sV2 -1. VMSizeTypes.VMSizeTypesStandardF1s -1. VMSizeTypes.VMSizeTypesStandardF2 -1. VMSizeTypes.VMSizeTypesStandardF2s -1. VMSizeTypes.VMSizeTypesStandardF2sV2 -1. VMSizeTypes.VMSizeTypesStandardF32sV2 -1. VMSizeTypes.VMSizeTypesStandardF4 -1. VMSizeTypes.VMSizeTypesStandardF4s -1. VMSizeTypes.VMSizeTypesStandardF4sV2 -1. VMSizeTypes.VMSizeTypesStandardF64sV2 -1. VMSizeTypes.VMSizeTypesStandardF72sV2 -1. VMSizeTypes.VMSizeTypesStandardF8 -1. VMSizeTypes.VMSizeTypesStandardF8s -1. VMSizeTypes.VMSizeTypesStandardF8sV2 -1. VMSizeTypes.VMSizeTypesStandardG1 -1. VMSizeTypes.VMSizeTypesStandardG2 -1. VMSizeTypes.VMSizeTypesStandardG3 -1. VMSizeTypes.VMSizeTypesStandardG4 -1. VMSizeTypes.VMSizeTypesStandardG5 -1. VMSizeTypes.VMSizeTypesStandardGS1 -1. VMSizeTypes.VMSizeTypesStandardGS2 -1. VMSizeTypes.VMSizeTypesStandardGS3 -1. VMSizeTypes.VMSizeTypesStandardGS4 -1. VMSizeTypes.VMSizeTypesStandardGS44 -1. VMSizeTypes.VMSizeTypesStandardGS48 -1. VMSizeTypes.VMSizeTypesStandardGS5 -1. VMSizeTypes.VMSizeTypesStandardGS516 -1. VMSizeTypes.VMSizeTypesStandardGS58 -1. VMSizeTypes.VMSizeTypesStandardH16 -1. VMSizeTypes.VMSizeTypesStandardH16m -1. VMSizeTypes.VMSizeTypesStandardH16mr -1. VMSizeTypes.VMSizeTypesStandardH16r -1. VMSizeTypes.VMSizeTypesStandardH8 -1. VMSizeTypes.VMSizeTypesStandardH8m -1. VMSizeTypes.VMSizeTypesStandardL16s -1. VMSizeTypes.VMSizeTypesStandardL32s -1. VMSizeTypes.VMSizeTypesStandardL4s -1. VMSizeTypes.VMSizeTypesStandardL8s -1. VMSizeTypes.VMSizeTypesStandardM12832ms -1. VMSizeTypes.VMSizeTypesStandardM12864ms -1. VMSizeTypes.VMSizeTypesStandardM128ms -1. VMSizeTypes.VMSizeTypesStandardM128s -1. VMSizeTypes.VMSizeTypesStandardM6416ms -1. VMSizeTypes.VMSizeTypesStandardM6432ms -1. VMSizeTypes.VMSizeTypesStandardM64ms -1. VMSizeTypes.VMSizeTypesStandardM64s -1. VMSizeTypes.VMSizeTypesStandardNC12 -1. VMSizeTypes.VMSizeTypesStandardNC12sV2 -1. VMSizeTypes.VMSizeTypesStandardNC12sV3 -1. VMSizeTypes.VMSizeTypesStandardNC24 -1. VMSizeTypes.VMSizeTypesStandardNC24r -1. VMSizeTypes.VMSizeTypesStandardNC24rsV2 -1. VMSizeTypes.VMSizeTypesStandardNC24rsV3 -1. VMSizeTypes.VMSizeTypesStandardNC24sV2 -1. VMSizeTypes.VMSizeTypesStandardNC24sV3 -1. VMSizeTypes.VMSizeTypesStandardNC6 -1. VMSizeTypes.VMSizeTypesStandardNC6sV2 -1. VMSizeTypes.VMSizeTypesStandardNC6sV3 -1. VMSizeTypes.VMSizeTypesStandardND12s -1. VMSizeTypes.VMSizeTypesStandardND24rs -1. VMSizeTypes.VMSizeTypesStandardND24s -1. VMSizeTypes.VMSizeTypesStandardND6s -1. VMSizeTypes.VMSizeTypesStandardNV12 -1. VMSizeTypes.VMSizeTypesStandardNV24 -1. VMSizeTypes.VMSizeTypesStandardNV6 -1. WeekDay.WeekDayFriday -1. WeekDay.WeekDayMonday -1. WeekDay.WeekDaySaturday -1. WeekDay.WeekDaySunday -1. WeekDay.WeekDayThursday -1. WeekDay.WeekDayTuesday -1. WeekDay.WeekDayWednesday +1. CommandResultProperties.MarshalJSON() ([]byte, error) +1. CredentialResult.MarshalJSON() ([]byte, error) +1. CredentialResults.MarshalJSON() ([]byte, error) +1. ManagedClusterIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OperationValueDisplay.MarshalJSON() ([]byte, error) +1. SubResource.MarshalJSON() ([]byte, error) diff --git a/services/containerservice/mgmt/2021-03-01/containerservice/_meta.json b/services/containerservice/mgmt/2021-03-01/containerservice/_meta.json index f875f9e4c010..f4b5ed42e601 100644 --- a/services/containerservice/mgmt/2021-03-01/containerservice/_meta.json +++ b/services/containerservice/mgmt/2021-03-01/containerservice/_meta.json @@ -2,9 +2,9 @@ "commit": "5d89c9807d3e84a5890b381a68a308198f9ef141", "readme": "/_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "tag": "package-2021-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2021-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2021-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix" } diff --git a/services/containerservice/mgmt/2021-03-01/containerservice/models.go b/services/containerservice/mgmt/2021-03-01/containerservice/models.go index 54b148856131..0006a07a7b38 100644 --- a/services/containerservice/mgmt/2021-03-01/containerservice/models.go +++ b/services/containerservice/mgmt/2021-03-01/containerservice/models.go @@ -612,6 +612,12 @@ type CommandResultProperties struct { Reason *string `json:"reason,omitempty"` } +// MarshalJSON is the custom marshaler for CommandResultProperties. +func (crp CommandResultProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CredentialResult the credential result response. type CredentialResult struct { // Name - READ-ONLY; The name of the credential. @@ -620,6 +626,12 @@ type CredentialResult struct { Value *[]byte `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResult. +func (cr CredentialResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CredentialResults the list of credential result response. type CredentialResults struct { autorest.Response `json:"-"` @@ -627,6 +639,12 @@ type CredentialResults struct { Kubeconfigs *[]CredentialResult `json:"kubeconfigs,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResults. +func (cr CredentialResults) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DiagnosticsProfile profile for diagnostics on the container service cluster. type DiagnosticsProfile struct { // VMDiagnostics - Profile for diagnostics on the container service VMs. @@ -1659,6 +1677,12 @@ type ManagedClusterIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedClusterIdentityUserAssignedIdentitiesValue. +func (mciAiv ManagedClusterIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedClusterListResult the response from the List Managed Clusters operation. type ManagedClusterListResult struct { autorest.Response `json:"-"` @@ -2665,6 +2689,12 @@ type OperationListResult struct { Value *[]OperationValue `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationValue describes the properties of a Compute Operation value. type OperationValue struct { // Origin - READ-ONLY; The origin of the compute operation. @@ -2738,6 +2768,12 @@ type OperationValueDisplay struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationValueDisplay. +func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OSOptionProfile the OS option profile. type OSOptionProfile struct { autorest.Response `json:"-"` @@ -3144,6 +3180,12 @@ type SubResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for SubResource. +func (sr SubResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SysctlConfig sysctl settings for Linux agent nodes. type SysctlConfig struct { // NetCoreSomaxconn - Sysctl setting net.core.somaxconn. diff --git a/services/cosmos-db/mgmt/2015-04-08/documentdb/CHANGELOG.md b/services/cosmos-db/mgmt/2015-04-08/documentdb/CHANGELOG.md index 52911e4cc5e4..b28483434571 100644 --- a/services/cosmos-db/mgmt/2015-04-08/documentdb/CHANGELOG.md +++ b/services/cosmos-db/mgmt/2015-04-08/documentdb/CHANGELOG.md @@ -1,2 +1,29 @@ # Change History +## Additive Changes + +### New Funcs + +1. CassandraKeyspaceListResult.MarshalJSON() ([]byte, error) +1. CassandraTableListResult.MarshalJSON() ([]byte, error) +1. DatabaseAccountConnectionString.MarshalJSON() ([]byte, error) +1. DatabaseAccountListKeysResult.MarshalJSON() ([]byte, error) +1. DatabaseAccountListReadOnlyKeysResult.MarshalJSON() ([]byte, error) +1. DatabaseAccountsListResult.MarshalJSON() ([]byte, error) +1. GremlinDatabaseListResult.MarshalJSON() ([]byte, error) +1. GremlinGraphListResult.MarshalJSON() ([]byte, error) +1. MetricAvailability.MarshalJSON() ([]byte, error) +1. MetricDefinitionsListResult.MarshalJSON() ([]byte, error) +1. MetricListResult.MarshalJSON() ([]byte, error) +1. MetricName.MarshalJSON() ([]byte, error) +1. MetricValue.MarshalJSON() ([]byte, error) +1. MongoDBCollectionListResult.MarshalJSON() ([]byte, error) +1. MongoDBDatabaseListResult.MarshalJSON() ([]byte, error) +1. PartitionMetricListResult.MarshalJSON() ([]byte, error) +1. PartitionUsagesResult.MarshalJSON() ([]byte, error) +1. PercentileMetricListResult.MarshalJSON() ([]byte, error) +1. PercentileMetricValue.MarshalJSON() ([]byte, error) +1. SQLContainerListResult.MarshalJSON() ([]byte, error) +1. SQLDatabaseListResult.MarshalJSON() ([]byte, error) +1. TableListResult.MarshalJSON() ([]byte, error) +1. UsagesResult.MarshalJSON() ([]byte, error) diff --git a/services/cosmos-db/mgmt/2015-04-08/documentdb/_meta.json b/services/cosmos-db/mgmt/2015-04-08/documentdb/_meta.json index 22619301ebbf..7ddd14669350 100644 --- a/services/cosmos-db/mgmt/2015-04-08/documentdb/_meta.json +++ b/services/cosmos-db/mgmt/2015-04-08/documentdb/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md", "tag": "package-2015-04", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2015-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2015-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cosmos-db/mgmt/2015-04-08/documentdb/models.go b/services/cosmos-db/mgmt/2015-04-08/documentdb/models.go index 3a84b005733d..c7c98dd814d0 100644 --- a/services/cosmos-db/mgmt/2015-04-08/documentdb/models.go +++ b/services/cosmos-db/mgmt/2015-04-08/documentdb/models.go @@ -194,6 +194,12 @@ type CassandraKeyspaceListResult struct { Value *[]CassandraKeyspace `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CassandraKeyspaceListResult. +func (cklr CassandraKeyspaceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CassandraKeyspaceProperties the properties of an Azure Cosmos DB Cassandra keyspace type CassandraKeyspaceProperties struct { // ID - Name of the Cosmos DB Cassandra keyspace @@ -389,6 +395,12 @@ type CassandraTableListResult struct { Value *[]CassandraTable `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CassandraTableListResult. +func (ctlr CassandraTableListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CassandraTableProperties the properties of an Azure Cosmos DB Cassandra table type CassandraTableProperties struct { // ID - Name of the Cosmos DB Cassandra table @@ -575,6 +587,12 @@ type DatabaseAccountConnectionString struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountConnectionString. +func (dacs DatabaseAccountConnectionString) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountCreateUpdateParameters parameters to create and update Cosmos DB database accounts. type DatabaseAccountCreateUpdateParameters struct { // Kind - Indicates the type of database account. This can only be set at database account creation. Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse' @@ -733,6 +751,12 @@ type DatabaseAccountListKeysResult struct { SecondaryReadonlyMasterKey *string `json:"secondaryReadonlyMasterKey,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountListKeysResult. +func (dalkr DatabaseAccountListKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountListReadOnlyKeysResult the read-only access keys for the given database account. type DatabaseAccountListReadOnlyKeysResult struct { autorest.Response `json:"-"` @@ -742,6 +766,12 @@ type DatabaseAccountListReadOnlyKeysResult struct { SecondaryReadonlyMasterKey *string `json:"secondaryReadonlyMasterKey,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountListReadOnlyKeysResult. +func (dalrokr DatabaseAccountListReadOnlyKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountPatchParameters parameters for patching Azure Cosmos DB database account properties. type DatabaseAccountPatchParameters struct { Tags map[string]*string `json:"tags"` @@ -1719,6 +1749,12 @@ type DatabaseAccountsListResult struct { Value *[]DatabaseAccount `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountsListResult. +func (dalr DatabaseAccountsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountsOfflineRegionFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type DatabaseAccountsOfflineRegionFuture struct { @@ -2480,6 +2516,12 @@ type GremlinDatabaseListResult struct { Value *[]GremlinDatabase `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for GremlinDatabaseListResult. +func (gdlr GremlinDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GremlinDatabaseProperties the properties of an Azure Cosmos DB SQL database type GremlinDatabaseProperties struct { // Rid - A system generated property. A unique identifier. @@ -2664,6 +2706,12 @@ type GremlinGraphListResult struct { Value *[]GremlinGraph `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for GremlinGraphListResult. +func (gglr GremlinGraphListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GremlinGraphProperties the properties of an Azure Cosmos DB Gremlin graph type GremlinGraphProperties struct { // ID - Name of the Cosmos DB Gremlin graph @@ -2798,6 +2846,12 @@ type MetricAvailability struct { Retention *string `json:"retention,omitempty"` } +// MarshalJSON is the custom marshaler for MetricAvailability. +func (ma MetricAvailability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricDefinition the definition of a metric. type MetricDefinition struct { // MetricAvailabilities - READ-ONLY; The list of metric availabilities for the account. @@ -2828,6 +2882,12 @@ type MetricDefinitionsListResult struct { Value *[]MetricDefinition `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MetricDefinitionsListResult. +func (mdlr MetricDefinitionsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricListResult the response to a list metrics request. type MetricListResult struct { autorest.Response `json:"-"` @@ -2835,6 +2895,12 @@ type MetricListResult struct { Value *[]Metric `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MetricListResult. +func (mlr MetricListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricName a metric name. type MetricName struct { // Value - READ-ONLY; The name of the metric. @@ -2843,6 +2909,12 @@ type MetricName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for MetricName. +func (mn MetricName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricValue represents metrics values. type MetricValue struct { // Count - READ-ONLY; The number of values for the metric. @@ -2859,6 +2931,12 @@ type MetricValue struct { Total *float64 `json:"total,omitempty"` } +// MarshalJSON is the custom marshaler for MetricValue. +func (mv MetricValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MongoDBCollection an Azure Cosmos DB MongoDB collection. type MongoDBCollection struct { autorest.Response `json:"-"` @@ -3027,6 +3105,12 @@ type MongoDBCollectionListResult struct { Value *[]MongoDBCollection `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MongoDBCollectionListResult. +func (mdclr MongoDBCollectionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MongoDBCollectionProperties the properties of an Azure Cosmos DB MongoDB collection type MongoDBCollectionProperties struct { // ID - Name of the Cosmos DB MongoDB collection @@ -3244,6 +3328,12 @@ type MongoDBDatabaseListResult struct { Value *[]MongoDBDatabase `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MongoDBDatabaseListResult. +func (mddlr MongoDBDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MongoDBDatabaseProperties the properties of an Azure Cosmos DB MongoDB database type MongoDBDatabaseProperties struct { // ID - Name of the Cosmos DB MongoDB database @@ -3494,6 +3584,12 @@ type PartitionMetricListResult struct { Value *[]PartitionMetric `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PartitionMetricListResult. +func (pmlr PartitionMetricListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PartitionUsage the partition level usage data for a usage request. type PartitionUsage struct { // PartitionID - READ-ONLY; The partition id (GUID identifier) of the usages. @@ -3528,6 +3624,12 @@ type PartitionUsagesResult struct { Value *[]PartitionUsage `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PartitionUsagesResult. +func (pur PartitionUsagesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PercentileMetric percentile Metric data type PercentileMetric struct { // StartTime - READ-ONLY; The start time for the metric (ISO-8601 format). @@ -3560,6 +3662,12 @@ type PercentileMetricListResult struct { Value *[]PercentileMetric `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PercentileMetricListResult. +func (pmlr PercentileMetricListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PercentileMetricValue represents percentile metrics values. type PercentileMetricValue struct { // P10 - READ-ONLY; The 10th percentile value for the metric. @@ -3590,6 +3698,12 @@ type PercentileMetricValue struct { Total *float64 `json:"total,omitempty"` } +// MarshalJSON is the custom marshaler for PercentileMetricValue. +func (pmv PercentileMetricValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegionForOnlineOffline cosmos DB region to online or offline. type RegionForOnlineOffline struct { // Region - Cosmos DB region, with spaces between words and each word capitalized. @@ -3787,6 +3901,12 @@ type SQLContainerListResult struct { Value *[]SQLContainer `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLContainerListResult. +func (sclr SQLContainerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLContainerProperties the properties of an Azure Cosmos DB container type SQLContainerProperties struct { // ID - Name of the Cosmos DB SQL container @@ -3991,6 +4111,12 @@ type SQLDatabaseListResult struct { Value *[]SQLDatabase `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLDatabaseListResult. +func (sdlr SQLDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLDatabaseProperties the properties of an Azure Cosmos DB SQL database type SQLDatabaseProperties struct { // ID - Name of the Cosmos DB SQL database @@ -4179,6 +4305,12 @@ type TableListResult struct { Value *[]Table `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for TableListResult. +func (tlr TableListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TableProperties the properties of an Azure Cosmos Table type TableProperties struct { // ID - Name of the Cosmos DB table @@ -4392,6 +4524,12 @@ type UsagesResult struct { Value *[]Usage `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for UsagesResult. +func (ur UsagesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkRule virtual Network ACL Rule object type VirtualNetworkRule struct { // ID - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/CHANGELOG.md b/services/cosmos-db/mgmt/2019-08-01/documentdb/CHANGELOG.md index 52911e4cc5e4..42c109e68345 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/CHANGELOG.md +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/CHANGELOG.md @@ -1,2 +1,37 @@ # Change History +## Additive Changes + +### New Funcs + +1. ARMProxyResource.MarshalJSON() ([]byte, error) +1. CassandraKeyspaceListResult.MarshalJSON() ([]byte, error) +1. CassandraTableListResult.MarshalJSON() ([]byte, error) +1. DatabaseAccountConnectionString.MarshalJSON() ([]byte, error) +1. DatabaseAccountListKeysResult.MarshalJSON() ([]byte, error) +1. DatabaseAccountListReadOnlyKeysResult.MarshalJSON() ([]byte, error) +1. DatabaseAccountsListResult.MarshalJSON() ([]byte, error) +1. ExtendedResourceProperties.MarshalJSON() ([]byte, error) +1. GremlinDatabaseListResult.MarshalJSON() ([]byte, error) +1. GremlinGraphListResult.MarshalJSON() ([]byte, error) +1. MetricAvailability.MarshalJSON() ([]byte, error) +1. MetricDefinitionsListResult.MarshalJSON() ([]byte, error) +1. MetricListResult.MarshalJSON() ([]byte, error) +1. MetricName.MarshalJSON() ([]byte, error) +1. MetricValue.MarshalJSON() ([]byte, error) +1. MongoDBCollectionListResult.MarshalJSON() ([]byte, error) +1. MongoDBDatabaseListResult.MarshalJSON() ([]byte, error) +1. NotebookWorkspaceConnectionInfoResult.MarshalJSON() ([]byte, error) +1. NotebookWorkspaceCreateUpdateParameters.MarshalJSON() ([]byte, error) +1. NotebookWorkspaceProperties.MarshalJSON() ([]byte, error) +1. PartitionMetricListResult.MarshalJSON() ([]byte, error) +1. PartitionUsagesResult.MarshalJSON() ([]byte, error) +1. PercentileMetricListResult.MarshalJSON() ([]byte, error) +1. PercentileMetricValue.MarshalJSON() ([]byte, error) +1. SQLContainerListResult.MarshalJSON() ([]byte, error) +1. SQLDatabaseListResult.MarshalJSON() ([]byte, error) +1. SQLStoredProcedureListResult.MarshalJSON() ([]byte, error) +1. SQLTriggerListResult.MarshalJSON() ([]byte, error) +1. SQLUserDefinedFunctionListResult.MarshalJSON() ([]byte, error) +1. TableListResult.MarshalJSON() ([]byte, error) +1. UsagesResult.MarshalJSON() ([]byte, error) diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/_meta.json b/services/cosmos-db/mgmt/2019-08-01/documentdb/_meta.json index 44bd3b99a481..cee1151c6bca 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/_meta.json +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md", "tag": "package-2019-08", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/models.go b/services/cosmos-db/mgmt/2019-08-01/documentdb/models.go index 24b3c3e757b9..0449e3580769 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/models.go +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/models.go @@ -31,6 +31,12 @@ type ARMProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ARMProxyResource. +func (apr ARMProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ARMResourceProperties the core properties of ARM resources. type ARMResourceProperties struct { // ID - READ-ONLY; The unique resource identifier of the ARM resource. @@ -316,6 +322,12 @@ type CassandraKeyspaceListResult struct { Value *[]CassandraKeyspaceGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CassandraKeyspaceListResult. +func (cklr CassandraKeyspaceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CassandraKeyspaceResource cosmos DB Cassandra keyspace resource object type CassandraKeyspaceResource struct { // ID - Name of the Cosmos DB Cassandra keyspace @@ -847,6 +859,12 @@ type CassandraTableListResult struct { Value *[]CassandraTableGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CassandraTableListResult. +func (ctlr CassandraTableListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CassandraTableResource cosmos DB Cassandra table resource object type CassandraTableResource struct { // ID - Name of the Cosmos DB Cassandra table @@ -920,6 +938,12 @@ type DatabaseAccountConnectionString struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountConnectionString. +func (dacs DatabaseAccountConnectionString) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountCreateUpdateParameters parameters to create and update Cosmos DB database accounts. type DatabaseAccountCreateUpdateParameters struct { // Kind - Indicates the type of database account. This can only be set at database account creation. Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse' @@ -1269,6 +1293,12 @@ type DatabaseAccountListKeysResult struct { SecondaryReadonlyMasterKey *string `json:"secondaryReadonlyMasterKey,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountListKeysResult. +func (dalkr DatabaseAccountListKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountListReadOnlyKeysResult the read-only access keys for the given database account. type DatabaseAccountListReadOnlyKeysResult struct { autorest.Response `json:"-"` @@ -1278,6 +1308,12 @@ type DatabaseAccountListReadOnlyKeysResult struct { SecondaryReadonlyMasterKey *string `json:"secondaryReadonlyMasterKey,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountListReadOnlyKeysResult. +func (dalrokr DatabaseAccountListReadOnlyKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountRegenerateKeyParameters parameters to regenerate the keys within the database account. type DatabaseAccountRegenerateKeyParameters struct { // KeyKind - The access key to regenerate. Possible values include: 'Primary', 'Secondary', 'PrimaryReadonly', 'SecondaryReadonly' @@ -1409,6 +1445,12 @@ type DatabaseAccountsListResult struct { Value *[]DatabaseAccountGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountsListResult. +func (dalr DatabaseAccountsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountsOfflineRegionFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type DatabaseAccountsOfflineRegionFuture struct { @@ -1679,6 +1721,12 @@ type ExtendedResourceProperties struct { Etag *string `json:"_etag,omitempty"` } +// MarshalJSON is the custom marshaler for ExtendedResourceProperties. +func (erp ExtendedResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FailoverPolicies the list of new failover policies for the failover priority change. type FailoverPolicies struct { // FailoverPolicies - List of failover policies. @@ -1960,6 +2008,12 @@ type GremlinDatabaseListResult struct { Value *[]GremlinDatabaseGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for GremlinDatabaseListResult. +func (gdlr GremlinDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GremlinDatabaseResource cosmos DB Gremlin database resource object type GremlinDatabaseResource struct { // ID - Name of the Cosmos DB Gremlin database @@ -2243,6 +2297,12 @@ type GremlinGraphListResult struct { Value *[]GremlinGraphGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for GremlinGraphListResult. +func (gglr GremlinGraphListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GremlinGraphResource cosmos DB Gremlin graph resource object type GremlinGraphResource struct { // ID - Name of the Cosmos DB Gremlin graph @@ -2605,6 +2665,12 @@ type MetricAvailability struct { Retention *string `json:"retention,omitempty"` } +// MarshalJSON is the custom marshaler for MetricAvailability. +func (ma MetricAvailability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricDefinition the definition of a metric. type MetricDefinition struct { // MetricAvailabilities - READ-ONLY; The list of metric availabilities for the account. @@ -2635,6 +2701,12 @@ type MetricDefinitionsListResult struct { Value *[]MetricDefinition `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MetricDefinitionsListResult. +func (mdlr MetricDefinitionsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricListResult the response to a list metrics request. type MetricListResult struct { autorest.Response `json:"-"` @@ -2642,6 +2714,12 @@ type MetricListResult struct { Value *[]Metric `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MetricListResult. +func (mlr MetricListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricName a metric name. type MetricName struct { // Value - READ-ONLY; The name of the metric. @@ -2650,6 +2728,12 @@ type MetricName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for MetricName. +func (mn MetricName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricValue represents metrics values. type MetricValue struct { // Count - READ-ONLY; The number of values for the metric. @@ -2666,6 +2750,12 @@ type MetricValue struct { Total *float64 `json:"total,omitempty"` } +// MarshalJSON is the custom marshaler for MetricValue. +func (mv MetricValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MongoDBCollectionCreateUpdateParameters parameters to create and update Cosmos DB MongoDB collection. type MongoDBCollectionCreateUpdateParameters struct { // MongoDBCollectionCreateUpdateProperties - Properties to create and update Azure Cosmos DB MongoDB collection. @@ -2930,6 +3020,12 @@ type MongoDBCollectionListResult struct { Value *[]MongoDBCollectionGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MongoDBCollectionListResult. +func (mdclr MongoDBCollectionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MongoDBCollectionResource cosmos DB MongoDB collection resource object type MongoDBCollectionResource struct { // ID - Name of the Cosmos DB MongoDB collection @@ -3208,6 +3304,12 @@ type MongoDBDatabaseListResult struct { Value *[]MongoDBDatabaseGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MongoDBDatabaseListResult. +func (mddlr MongoDBDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MongoDBDatabaseResource cosmos DB MongoDB database resource object type MongoDBDatabaseResource struct { // ID - Name of the Cosmos DB MongoDB database @@ -3564,6 +3666,12 @@ type NotebookWorkspaceConnectionInfoResult struct { NotebookServerEndpoint *string `json:"notebookServerEndpoint,omitempty"` } +// MarshalJSON is the custom marshaler for NotebookWorkspaceConnectionInfoResult. +func (nwcir NotebookWorkspaceConnectionInfoResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NotebookWorkspaceCreateUpdateParameters parameters to create a notebook workspace resource type NotebookWorkspaceCreateUpdateParameters struct { // ID - READ-ONLY; The unique resource identifier of the database account. @@ -3574,6 +3682,12 @@ type NotebookWorkspaceCreateUpdateParameters struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for NotebookWorkspaceCreateUpdateParameters. +func (nwcup NotebookWorkspaceCreateUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NotebookWorkspaceListResult a list of notebook workspace resources type NotebookWorkspaceListResult struct { autorest.Response `json:"-"` @@ -3589,6 +3703,12 @@ type NotebookWorkspaceProperties struct { Status *string `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for NotebookWorkspaceProperties. +func (nwp NotebookWorkspaceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NotebookWorkspacesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type NotebookWorkspacesCreateOrUpdateFuture struct { @@ -3959,6 +4079,12 @@ type PartitionMetricListResult struct { Value *[]PartitionMetric `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PartitionMetricListResult. +func (pmlr PartitionMetricListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PartitionUsage the partition level usage data for a usage request. type PartitionUsage struct { // PartitionID - READ-ONLY; The partition id (GUID identifier) of the usages. @@ -3993,6 +4119,12 @@ type PartitionUsagesResult struct { Value *[]PartitionUsage `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PartitionUsagesResult. +func (pur PartitionUsagesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PercentileMetric percentile Metric data type PercentileMetric struct { // StartTime - READ-ONLY; The start time for the metric (ISO-8601 format). @@ -4025,6 +4157,12 @@ type PercentileMetricListResult struct { Value *[]PercentileMetric `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PercentileMetricListResult. +func (pmlr PercentileMetricListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PercentileMetricValue represents percentile metrics values. type PercentileMetricValue struct { // P10 - READ-ONLY; The 10th percentile value for the metric. @@ -4055,6 +4193,12 @@ type PercentileMetricValue struct { Total *float64 `json:"total,omitempty"` } +// MarshalJSON is the custom marshaler for PercentileMetricValue. +func (pmv PercentileMetricValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegionForOnlineOffline cosmos DB region to online or offline. type RegionForOnlineOffline struct { // Region - Cosmos DB region, with spaces between words and each word capitalized. @@ -4346,6 +4490,12 @@ type SQLContainerListResult struct { Value *[]SQLContainerGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLContainerListResult. +func (sclr SQLContainerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLContainerResource cosmos DB SQL container resource object type SQLContainerResource struct { // ID - Name of the Cosmos DB SQL container @@ -4624,6 +4774,12 @@ type SQLDatabaseListResult struct { Value *[]SQLDatabaseGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLDatabaseListResult. +func (sdlr SQLDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLDatabaseResource cosmos DB SQL database resource object type SQLDatabaseResource struct { // ID - Name of the Cosmos DB SQL database @@ -5375,6 +5531,12 @@ type SQLStoredProcedureListResult struct { Value *[]SQLStoredProcedureGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLStoredProcedureListResult. +func (ssplr SQLStoredProcedureListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLStoredProcedureResource cosmos DB SQL storedProcedure resource object type SQLStoredProcedureResource struct { // ID - Name of the Cosmos DB SQL storedProcedure @@ -5650,6 +5812,12 @@ type SQLTriggerListResult struct { Value *[]SQLTriggerGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLTriggerListResult. +func (stlr SQLTriggerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLTriggerResource cosmos DB SQL trigger resource object type SQLTriggerResource struct { // ID - Name of the Cosmos DB SQL trigger @@ -5922,6 +6090,12 @@ type SQLUserDefinedFunctionListResult struct { Value *[]SQLUserDefinedFunctionGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLUserDefinedFunctionListResult. +func (sudflr SQLUserDefinedFunctionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLUserDefinedFunctionResource cosmos DB SQL userDefinedFunction resource object type SQLUserDefinedFunctionResource struct { // ID - Name of the Cosmos DB SQL userDefinedFunction @@ -6182,6 +6356,12 @@ type TableListResult struct { Value *[]TableGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for TableListResult. +func (tlr TableListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TableResource cosmos DB table resource object type TableResource struct { // ID - Name of the Cosmos DB table @@ -6609,6 +6789,12 @@ type UsagesResult struct { Value *[]Usage `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for UsagesResult. +func (ur UsagesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkRule virtual Network ACL Rule object type VirtualNetworkRule struct { // ID - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. diff --git a/services/cosmos-db/mgmt/2021-01-15/documentdb/CHANGELOG.md b/services/cosmos-db/mgmt/2021-01-15/documentdb/CHANGELOG.md index 52911e4cc5e4..e13a59030150 100644 --- a/services/cosmos-db/mgmt/2021-01-15/documentdb/CHANGELOG.md +++ b/services/cosmos-db/mgmt/2021-01-15/documentdb/CHANGELOG.md @@ -1,2 +1,42 @@ # Change History +## Additive Changes + +### New Funcs + +1. ARMProxyResource.MarshalJSON() ([]byte, error) +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. CassandraKeyspaceListResult.MarshalJSON() ([]byte, error) +1. CassandraTableListResult.MarshalJSON() ([]byte, error) +1. DatabaseAccountConnectionString.MarshalJSON() ([]byte, error) +1. DatabaseAccountListKeysResult.MarshalJSON() ([]byte, error) +1. DatabaseAccountListReadOnlyKeysResult.MarshalJSON() ([]byte, error) +1. DatabaseAccountsListResult.MarshalJSON() ([]byte, error) +1. ExtendedResourceProperties.MarshalJSON() ([]byte, error) +1. GremlinDatabaseListResult.MarshalJSON() ([]byte, error) +1. GremlinGraphListResult.MarshalJSON() ([]byte, error) +1. ManagedServiceIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. MetricAvailability.MarshalJSON() ([]byte, error) +1. MetricDefinitionsListResult.MarshalJSON() ([]byte, error) +1. MetricListResult.MarshalJSON() ([]byte, error) +1. MetricName.MarshalJSON() ([]byte, error) +1. MetricValue.MarshalJSON() ([]byte, error) +1. MongoDBCollectionListResult.MarshalJSON() ([]byte, error) +1. MongoDBDatabaseListResult.MarshalJSON() ([]byte, error) +1. NotebookWorkspaceConnectionInfoResult.MarshalJSON() ([]byte, error) +1. NotebookWorkspaceCreateUpdateParameters.MarshalJSON() ([]byte, error) +1. NotebookWorkspaceProperties.MarshalJSON() ([]byte, error) +1. PartitionMetricListResult.MarshalJSON() ([]byte, error) +1. PartitionUsagesResult.MarshalJSON() ([]byte, error) +1. PercentileMetricListResult.MarshalJSON() ([]byte, error) +1. PercentileMetricValue.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. SQLContainerListResult.MarshalJSON() ([]byte, error) +1. SQLDatabaseListResult.MarshalJSON() ([]byte, error) +1. SQLStoredProcedureListResult.MarshalJSON() ([]byte, error) +1. SQLTriggerListResult.MarshalJSON() ([]byte, error) +1. SQLUserDefinedFunctionListResult.MarshalJSON() ([]byte, error) +1. TableListResult.MarshalJSON() ([]byte, error) +1. UsagesResult.MarshalJSON() ([]byte, error) diff --git a/services/cosmos-db/mgmt/2021-01-15/documentdb/_meta.json b/services/cosmos-db/mgmt/2021-01-15/documentdb/_meta.json index 8441d2c2c701..3f55da2b95d0 100644 --- a/services/cosmos-db/mgmt/2021-01-15/documentdb/_meta.json +++ b/services/cosmos-db/mgmt/2021-01-15/documentdb/_meta.json @@ -2,9 +2,9 @@ "commit": "8240593bde5350e6762015523ccd57cb61e32da5", "readme": "/_/azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md", "tag": "package-2021-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2021-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2021-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cosmos-db/mgmt/2021-01-15/documentdb/models.go b/services/cosmos-db/mgmt/2021-01-15/documentdb/models.go index 87a5ed918fc6..d13b2509a53b 100644 --- a/services/cosmos-db/mgmt/2021-01-15/documentdb/models.go +++ b/services/cosmos-db/mgmt/2021-01-15/documentdb/models.go @@ -37,6 +37,12 @@ type ARMProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ARMProxyResource. +func (apr ARMProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ARMResourceProperties the core properties of ARM resources. type ARMResourceProperties struct { // ID - READ-ONLY; The unique resource identifier of the ARM resource. @@ -108,6 +114,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicBackupPolicy the object representing the policy for taking backups on an account. type BasicBackupPolicy interface { AsPeriodicModeBackupPolicy() (*PeriodicModeBackupPolicy, bool) @@ -449,6 +461,12 @@ type CassandraKeyspaceListResult struct { Value *[]CassandraKeyspaceGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CassandraKeyspaceListResult. +func (cklr CassandraKeyspaceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CassandraKeyspaceResource cosmos DB Cassandra keyspace resource object type CassandraKeyspaceResource struct { // ID - Name of the Cosmos DB Cassandra keyspace @@ -1154,6 +1172,12 @@ type CassandraTableListResult struct { Value *[]CassandraTableGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CassandraTableListResult. +func (ctlr CassandraTableListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CassandraTableResource cosmos DB Cassandra table resource object type CassandraTableResource struct { // ID - Name of the Cosmos DB Cassandra table @@ -1305,6 +1329,12 @@ type DatabaseAccountConnectionString struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountConnectionString. +func (dacs DatabaseAccountConnectionString) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountCreateUpdateParameters parameters to create and update Cosmos DB database accounts. type DatabaseAccountCreateUpdateParameters struct { // Kind - Indicates the type of database account. This can only be set at database account creation. Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse' @@ -2203,6 +2233,12 @@ type DatabaseAccountListKeysResult struct { SecondaryReadonlyMasterKey *string `json:"secondaryReadonlyMasterKey,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountListKeysResult. +func (dalkr DatabaseAccountListKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountListReadOnlyKeysResult the read-only access keys for the given database account. type DatabaseAccountListReadOnlyKeysResult struct { autorest.Response `json:"-"` @@ -2212,6 +2248,12 @@ type DatabaseAccountListReadOnlyKeysResult struct { SecondaryReadonlyMasterKey *string `json:"secondaryReadonlyMasterKey,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountListReadOnlyKeysResult. +func (dalrokr DatabaseAccountListReadOnlyKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountRegenerateKeyParameters parameters to regenerate the keys within the database account. type DatabaseAccountRegenerateKeyParameters struct { // KeyKind - The access key to regenerate. Possible values include: 'Primary', 'Secondary', 'PrimaryReadonly', 'SecondaryReadonly' @@ -2343,6 +2385,12 @@ type DatabaseAccountsListResult struct { Value *[]DatabaseAccountGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountsListResult. +func (dalr DatabaseAccountsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountsOfflineRegionFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type DatabaseAccountsOfflineRegionFuture struct { @@ -2843,6 +2891,12 @@ type ExtendedResourceProperties struct { Etag *string `json:"_etag,omitempty"` } +// MarshalJSON is the custom marshaler for ExtendedResourceProperties. +func (erp ExtendedResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FailoverPolicies the list of new failover policies for the failover priority change. type FailoverPolicies struct { // FailoverPolicies - List of failover policies. @@ -3121,6 +3175,12 @@ type GremlinDatabaseListResult struct { Value *[]GremlinDatabaseGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for GremlinDatabaseListResult. +func (gdlr GremlinDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GremlinDatabaseResource cosmos DB Gremlin database resource object type GremlinDatabaseResource struct { // ID - Name of the Cosmos DB Gremlin database @@ -3401,6 +3461,12 @@ type GremlinGraphListResult struct { Value *[]GremlinGraphGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for GremlinGraphListResult. +func (gglr GremlinGraphListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GremlinGraphResource cosmos DB Gremlin graph resource object type GremlinGraphResource struct { // ID - Name of the Cosmos DB Gremlin graph @@ -3940,6 +4006,12 @@ type ManagedServiceIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedServiceIdentityUserAssignedIdentitiesValue. +func (msiAiv ManagedServiceIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Metric metric data type Metric struct { // StartTime - READ-ONLY; The start time for the metric (ISO-8601 format). @@ -3973,6 +4045,12 @@ type MetricAvailability struct { Retention *string `json:"retention,omitempty"` } +// MarshalJSON is the custom marshaler for MetricAvailability. +func (ma MetricAvailability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricDefinition the definition of a metric. type MetricDefinition struct { // MetricAvailabilities - READ-ONLY; The list of metric availabilities for the account. @@ -4003,6 +4081,12 @@ type MetricDefinitionsListResult struct { Value *[]MetricDefinition `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MetricDefinitionsListResult. +func (mdlr MetricDefinitionsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricListResult the response to a list metrics request. type MetricListResult struct { autorest.Response `json:"-"` @@ -4010,6 +4094,12 @@ type MetricListResult struct { Value *[]Metric `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MetricListResult. +func (mlr MetricListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricName a metric name. type MetricName struct { // Value - READ-ONLY; The name of the metric. @@ -4018,6 +4108,12 @@ type MetricName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for MetricName. +func (mn MetricName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricValue represents metrics values. type MetricValue struct { // Count - READ-ONLY; The number of values for the metric. @@ -4034,6 +4130,12 @@ type MetricValue struct { Total *float64 `json:"total,omitempty"` } +// MarshalJSON is the custom marshaler for MetricValue. +func (mv MetricValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MongoDBCollectionCreateUpdateParameters parameters to create and update Cosmos DB MongoDB collection. type MongoDBCollectionCreateUpdateParameters struct { // MongoDBCollectionCreateUpdateProperties - Properties to create and update Azure Cosmos DB MongoDB collection. @@ -4300,6 +4402,12 @@ type MongoDBCollectionListResult struct { Value *[]MongoDBCollectionGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MongoDBCollectionListResult. +func (mdclr MongoDBCollectionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MongoDBCollectionResource cosmos DB MongoDB collection resource object type MongoDBCollectionResource struct { // ID - Name of the Cosmos DB MongoDB collection @@ -4580,6 +4688,12 @@ type MongoDBDatabaseListResult struct { Value *[]MongoDBDatabaseGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MongoDBDatabaseListResult. +func (mddlr MongoDBDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MongoDBDatabaseResource cosmos DB MongoDB database resource object type MongoDBDatabaseResource struct { // ID - Name of the Cosmos DB MongoDB database @@ -5108,6 +5222,12 @@ type NotebookWorkspaceConnectionInfoResult struct { NotebookServerEndpoint *string `json:"notebookServerEndpoint,omitempty"` } +// MarshalJSON is the custom marshaler for NotebookWorkspaceConnectionInfoResult. +func (nwcir NotebookWorkspaceConnectionInfoResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NotebookWorkspaceCreateUpdateParameters parameters to create a notebook workspace resource type NotebookWorkspaceCreateUpdateParameters struct { // ID - READ-ONLY; The unique resource identifier of the database account. @@ -5118,6 +5238,12 @@ type NotebookWorkspaceCreateUpdateParameters struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for NotebookWorkspaceCreateUpdateParameters. +func (nwcup NotebookWorkspaceCreateUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NotebookWorkspaceListResult a list of notebook workspace resources type NotebookWorkspaceListResult struct { autorest.Response `json:"-"` @@ -5133,6 +5259,12 @@ type NotebookWorkspaceProperties struct { Status *string `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for NotebookWorkspaceProperties. +func (nwp NotebookWorkspaceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NotebookWorkspacesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type NotebookWorkspacesCreateOrUpdateFuture struct { @@ -5511,6 +5643,12 @@ type PartitionMetricListResult struct { Value *[]PartitionMetric `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PartitionMetricListResult. +func (pmlr PartitionMetricListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PartitionUsage the partition level usage data for a usage request. type PartitionUsage struct { // PartitionID - READ-ONLY; The partition id (GUID identifier) of the usages. @@ -5545,6 +5683,12 @@ type PartitionUsagesResult struct { Value *[]PartitionUsage `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PartitionUsagesResult. +func (pur PartitionUsagesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PercentileMetric percentile Metric data type PercentileMetric struct { // StartTime - READ-ONLY; The start time for the metric (ISO-8601 format). @@ -5577,6 +5721,12 @@ type PercentileMetricListResult struct { Value *[]PercentileMetric `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PercentileMetricListResult. +func (pmlr PercentileMetricListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PercentileMetricValue represents percentile metrics values. type PercentileMetricValue struct { // P10 - READ-ONLY; The 10th percentile value for the metric. @@ -5607,6 +5757,12 @@ type PercentileMetricValue struct { Total *float64 `json:"total,omitempty"` } +// MarshalJSON is the custom marshaler for PercentileMetricValue. +func (pmv PercentileMetricValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PeriodicModeBackupPolicy the object representing periodic mode backup policy. type PeriodicModeBackupPolicy struct { // PeriodicModeProperties - Configuration values for periodic mode backup @@ -5924,6 +6080,12 @@ type PrivateLinkResourceProperties struct { RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. +func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkServiceConnectionStateProperty connection State of the Private Endpoint Connection. type PrivateLinkServiceConnectionStateProperty struct { // Status - The private link service connection status. @@ -5957,6 +6119,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegionForOnlineOffline cosmos DB region to online or offline. type RegionForOnlineOffline struct { // Region - Cosmos DB region, with spaces between words and each word capitalized. @@ -5973,6 +6141,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SpatialSpec ... type SpatialSpec struct { // Path - The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*) @@ -6260,6 +6434,12 @@ type SQLContainerListResult struct { Value *[]SQLContainerGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLContainerListResult. +func (sclr SQLContainerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLContainerResource cosmos DB SQL container resource object type SQLContainerResource struct { // ID - Name of the Cosmos DB SQL container @@ -6537,6 +6717,12 @@ type SQLDatabaseListResult struct { Value *[]SQLDatabaseGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLDatabaseListResult. +func (sdlr SQLDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLDatabaseResource cosmos DB SQL database resource object type SQLDatabaseResource struct { // ID - Name of the Cosmos DB SQL database @@ -7448,6 +7634,12 @@ type SQLStoredProcedureListResult struct { Value *[]SQLStoredProcedureGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLStoredProcedureListResult. +func (ssplr SQLStoredProcedureListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLStoredProcedureResource cosmos DB SQL storedProcedure resource object type SQLStoredProcedureResource struct { // ID - Name of the Cosmos DB SQL storedProcedure @@ -7711,6 +7903,12 @@ type SQLTriggerListResult struct { Value *[]SQLTriggerGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLTriggerListResult. +func (stlr SQLTriggerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLTriggerResource cosmos DB SQL trigger resource object type SQLTriggerResource struct { // ID - Name of the Cosmos DB SQL trigger @@ -7971,6 +8169,12 @@ type SQLUserDefinedFunctionListResult struct { Value *[]SQLUserDefinedFunctionGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLUserDefinedFunctionListResult. +func (sudflr SQLUserDefinedFunctionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLUserDefinedFunctionResource cosmos DB SQL userDefinedFunction resource object type SQLUserDefinedFunctionResource struct { // ID - Name of the Cosmos DB SQL userDefinedFunction @@ -8228,6 +8432,12 @@ type TableListResult struct { Value *[]TableGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for TableListResult. +func (tlr TableListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TableResource cosmos DB table resource object type TableResource struct { // ID - Name of the Cosmos DB table @@ -8787,6 +8997,12 @@ type UsagesResult struct { Value *[]Usage `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for UsagesResult. +func (ur UsagesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkRule virtual Network ACL Rule object type VirtualNetworkRule struct { // ID - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. diff --git a/services/cosmos-db/mgmt/2021-03-15/documentdb/CHANGELOG.md b/services/cosmos-db/mgmt/2021-03-15/documentdb/CHANGELOG.md index 52911e4cc5e4..e13a59030150 100644 --- a/services/cosmos-db/mgmt/2021-03-15/documentdb/CHANGELOG.md +++ b/services/cosmos-db/mgmt/2021-03-15/documentdb/CHANGELOG.md @@ -1,2 +1,42 @@ # Change History +## Additive Changes + +### New Funcs + +1. ARMProxyResource.MarshalJSON() ([]byte, error) +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. CassandraKeyspaceListResult.MarshalJSON() ([]byte, error) +1. CassandraTableListResult.MarshalJSON() ([]byte, error) +1. DatabaseAccountConnectionString.MarshalJSON() ([]byte, error) +1. DatabaseAccountListKeysResult.MarshalJSON() ([]byte, error) +1. DatabaseAccountListReadOnlyKeysResult.MarshalJSON() ([]byte, error) +1. DatabaseAccountsListResult.MarshalJSON() ([]byte, error) +1. ExtendedResourceProperties.MarshalJSON() ([]byte, error) +1. GremlinDatabaseListResult.MarshalJSON() ([]byte, error) +1. GremlinGraphListResult.MarshalJSON() ([]byte, error) +1. ManagedServiceIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. MetricAvailability.MarshalJSON() ([]byte, error) +1. MetricDefinitionsListResult.MarshalJSON() ([]byte, error) +1. MetricListResult.MarshalJSON() ([]byte, error) +1. MetricName.MarshalJSON() ([]byte, error) +1. MetricValue.MarshalJSON() ([]byte, error) +1. MongoDBCollectionListResult.MarshalJSON() ([]byte, error) +1. MongoDBDatabaseListResult.MarshalJSON() ([]byte, error) +1. NotebookWorkspaceConnectionInfoResult.MarshalJSON() ([]byte, error) +1. NotebookWorkspaceCreateUpdateParameters.MarshalJSON() ([]byte, error) +1. NotebookWorkspaceProperties.MarshalJSON() ([]byte, error) +1. PartitionMetricListResult.MarshalJSON() ([]byte, error) +1. PartitionUsagesResult.MarshalJSON() ([]byte, error) +1. PercentileMetricListResult.MarshalJSON() ([]byte, error) +1. PercentileMetricValue.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. SQLContainerListResult.MarshalJSON() ([]byte, error) +1. SQLDatabaseListResult.MarshalJSON() ([]byte, error) +1. SQLStoredProcedureListResult.MarshalJSON() ([]byte, error) +1. SQLTriggerListResult.MarshalJSON() ([]byte, error) +1. SQLUserDefinedFunctionListResult.MarshalJSON() ([]byte, error) +1. TableListResult.MarshalJSON() ([]byte, error) +1. UsagesResult.MarshalJSON() ([]byte, error) diff --git a/services/cosmos-db/mgmt/2021-03-15/documentdb/_meta.json b/services/cosmos-db/mgmt/2021-03-15/documentdb/_meta.json index 3de8c35193e4..d60829b4dacc 100644 --- a/services/cosmos-db/mgmt/2021-03-15/documentdb/_meta.json +++ b/services/cosmos-db/mgmt/2021-03-15/documentdb/_meta.json @@ -2,9 +2,9 @@ "commit": "e0f8b9ab0f5fe5e71b7429ebfea8a33c19ec9d8d", "readme": "/_/azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md", "tag": "package-2021-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2021-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2021-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/cosmos-db/mgmt/2021-03-15/documentdb/models.go b/services/cosmos-db/mgmt/2021-03-15/documentdb/models.go index ae0a32148fdd..bb96d3cea932 100644 --- a/services/cosmos-db/mgmt/2021-03-15/documentdb/models.go +++ b/services/cosmos-db/mgmt/2021-03-15/documentdb/models.go @@ -37,6 +37,12 @@ type ARMProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ARMProxyResource. +func (apr ARMProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ARMResourceProperties the core properties of ARM resources. type ARMResourceProperties struct { // ID - READ-ONLY; The unique resource identifier of the ARM resource. @@ -108,6 +114,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicBackupPolicy the object representing the policy for taking backups on an account. type BasicBackupPolicy interface { AsPeriodicModeBackupPolicy() (*PeriodicModeBackupPolicy, bool) @@ -449,6 +461,12 @@ type CassandraKeyspaceListResult struct { Value *[]CassandraKeyspaceGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CassandraKeyspaceListResult. +func (cklr CassandraKeyspaceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CassandraKeyspaceResource cosmos DB Cassandra keyspace resource object type CassandraKeyspaceResource struct { // ID - Name of the Cosmos DB Cassandra keyspace @@ -1154,6 +1172,12 @@ type CassandraTableListResult struct { Value *[]CassandraTableGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CassandraTableListResult. +func (ctlr CassandraTableListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CassandraTableResource cosmos DB Cassandra table resource object type CassandraTableResource struct { // ID - Name of the Cosmos DB Cassandra table @@ -1305,6 +1329,12 @@ type DatabaseAccountConnectionString struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountConnectionString. +func (dacs DatabaseAccountConnectionString) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountCreateUpdateParameters parameters to create and update Cosmos DB database accounts. type DatabaseAccountCreateUpdateParameters struct { // Kind - Indicates the type of database account. This can only be set at database account creation. Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse' @@ -2228,6 +2258,12 @@ type DatabaseAccountListKeysResult struct { SecondaryReadonlyMasterKey *string `json:"secondaryReadonlyMasterKey,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountListKeysResult. +func (dalkr DatabaseAccountListKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountListReadOnlyKeysResult the read-only access keys for the given database account. type DatabaseAccountListReadOnlyKeysResult struct { autorest.Response `json:"-"` @@ -2237,6 +2273,12 @@ type DatabaseAccountListReadOnlyKeysResult struct { SecondaryReadonlyMasterKey *string `json:"secondaryReadonlyMasterKey,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountListReadOnlyKeysResult. +func (dalrokr DatabaseAccountListReadOnlyKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountRegenerateKeyParameters parameters to regenerate the keys within the database account. type DatabaseAccountRegenerateKeyParameters struct { // KeyKind - The access key to regenerate. Possible values include: 'Primary', 'Secondary', 'PrimaryReadonly', 'SecondaryReadonly' @@ -2368,6 +2410,12 @@ type DatabaseAccountsListResult struct { Value *[]DatabaseAccountGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountsListResult. +func (dalr DatabaseAccountsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountsOfflineRegionFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type DatabaseAccountsOfflineRegionFuture struct { @@ -2879,6 +2927,12 @@ type ExtendedResourceProperties struct { Etag *string `json:"_etag,omitempty"` } +// MarshalJSON is the custom marshaler for ExtendedResourceProperties. +func (erp ExtendedResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FailoverPolicies the list of new failover policies for the failover priority change. type FailoverPolicies struct { // FailoverPolicies - List of failover policies. @@ -3157,6 +3211,12 @@ type GremlinDatabaseListResult struct { Value *[]GremlinDatabaseGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for GremlinDatabaseListResult. +func (gdlr GremlinDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GremlinDatabaseResource cosmos DB Gremlin database resource object type GremlinDatabaseResource struct { // ID - Name of the Cosmos DB Gremlin database @@ -3437,6 +3497,12 @@ type GremlinGraphListResult struct { Value *[]GremlinGraphGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for GremlinGraphListResult. +func (gglr GremlinGraphListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GremlinGraphResource cosmos DB Gremlin graph resource object type GremlinGraphResource struct { // ID - Name of the Cosmos DB Gremlin graph @@ -3976,6 +4042,12 @@ type ManagedServiceIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedServiceIdentityUserAssignedIdentitiesValue. +func (msiAiv ManagedServiceIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Metric metric data type Metric struct { // StartTime - READ-ONLY; The start time for the metric (ISO-8601 format). @@ -4009,6 +4081,12 @@ type MetricAvailability struct { Retention *string `json:"retention,omitempty"` } +// MarshalJSON is the custom marshaler for MetricAvailability. +func (ma MetricAvailability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricDefinition the definition of a metric. type MetricDefinition struct { // MetricAvailabilities - READ-ONLY; The list of metric availabilities for the account. @@ -4039,6 +4117,12 @@ type MetricDefinitionsListResult struct { Value *[]MetricDefinition `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MetricDefinitionsListResult. +func (mdlr MetricDefinitionsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricListResult the response to a list metrics request. type MetricListResult struct { autorest.Response `json:"-"` @@ -4046,6 +4130,12 @@ type MetricListResult struct { Value *[]Metric `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MetricListResult. +func (mlr MetricListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricName a metric name. type MetricName struct { // Value - READ-ONLY; The name of the metric. @@ -4054,6 +4144,12 @@ type MetricName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for MetricName. +func (mn MetricName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricValue represents metrics values. type MetricValue struct { // Count - READ-ONLY; The number of values for the metric. @@ -4070,6 +4166,12 @@ type MetricValue struct { Total *float64 `json:"total,omitempty"` } +// MarshalJSON is the custom marshaler for MetricValue. +func (mv MetricValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MongoDBCollectionCreateUpdateParameters parameters to create and update Cosmos DB MongoDB collection. type MongoDBCollectionCreateUpdateParameters struct { // MongoDBCollectionCreateUpdateProperties - Properties to create and update Azure Cosmos DB MongoDB collection. @@ -4336,6 +4438,12 @@ type MongoDBCollectionListResult struct { Value *[]MongoDBCollectionGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MongoDBCollectionListResult. +func (mdclr MongoDBCollectionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MongoDBCollectionResource cosmos DB MongoDB collection resource object type MongoDBCollectionResource struct { // ID - Name of the Cosmos DB MongoDB collection @@ -4616,6 +4724,12 @@ type MongoDBDatabaseListResult struct { Value *[]MongoDBDatabaseGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MongoDBDatabaseListResult. +func (mddlr MongoDBDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MongoDBDatabaseResource cosmos DB MongoDB database resource object type MongoDBDatabaseResource struct { // ID - Name of the Cosmos DB MongoDB database @@ -5144,6 +5258,12 @@ type NotebookWorkspaceConnectionInfoResult struct { NotebookServerEndpoint *string `json:"notebookServerEndpoint,omitempty"` } +// MarshalJSON is the custom marshaler for NotebookWorkspaceConnectionInfoResult. +func (nwcir NotebookWorkspaceConnectionInfoResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NotebookWorkspaceCreateUpdateParameters parameters to create a notebook workspace resource type NotebookWorkspaceCreateUpdateParameters struct { // ID - READ-ONLY; The unique resource identifier of the database account. @@ -5154,6 +5274,12 @@ type NotebookWorkspaceCreateUpdateParameters struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for NotebookWorkspaceCreateUpdateParameters. +func (nwcup NotebookWorkspaceCreateUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NotebookWorkspaceListResult a list of notebook workspace resources type NotebookWorkspaceListResult struct { autorest.Response `json:"-"` @@ -5169,6 +5295,12 @@ type NotebookWorkspaceProperties struct { Status *string `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for NotebookWorkspaceProperties. +func (nwp NotebookWorkspaceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NotebookWorkspacesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type NotebookWorkspacesCreateOrUpdateFuture struct { @@ -5547,6 +5679,12 @@ type PartitionMetricListResult struct { Value *[]PartitionMetric `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PartitionMetricListResult. +func (pmlr PartitionMetricListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PartitionUsage the partition level usage data for a usage request. type PartitionUsage struct { // PartitionID - READ-ONLY; The partition id (GUID identifier) of the usages. @@ -5581,6 +5719,12 @@ type PartitionUsagesResult struct { Value *[]PartitionUsage `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PartitionUsagesResult. +func (pur PartitionUsagesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PercentileMetric percentile Metric data type PercentileMetric struct { // StartTime - READ-ONLY; The start time for the metric (ISO-8601 format). @@ -5613,6 +5757,12 @@ type PercentileMetricListResult struct { Value *[]PercentileMetric `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PercentileMetricListResult. +func (pmlr PercentileMetricListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PercentileMetricValue represents percentile metrics values. type PercentileMetricValue struct { // P10 - READ-ONLY; The 10th percentile value for the metric. @@ -5643,6 +5793,12 @@ type PercentileMetricValue struct { Total *float64 `json:"total,omitempty"` } +// MarshalJSON is the custom marshaler for PercentileMetricValue. +func (pmv PercentileMetricValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PeriodicModeBackupPolicy the object representing periodic mode backup policy. type PeriodicModeBackupPolicy struct { // PeriodicModeProperties - Configuration values for periodic mode backup @@ -5960,6 +6116,12 @@ type PrivateLinkResourceProperties struct { RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. +func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkServiceConnectionStateProperty connection State of the Private Endpoint Connection. type PrivateLinkServiceConnectionStateProperty struct { // Status - The private link service connection status. @@ -5993,6 +6155,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegionForOnlineOffline cosmos DB region to online or offline. type RegionForOnlineOffline struct { // Region - Cosmos DB region, with spaces between words and each word capitalized. @@ -6009,6 +6177,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SpatialSpec ... type SpatialSpec struct { // Path - The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*) @@ -6296,6 +6470,12 @@ type SQLContainerListResult struct { Value *[]SQLContainerGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLContainerListResult. +func (sclr SQLContainerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLContainerResource cosmos DB SQL container resource object type SQLContainerResource struct { // ID - Name of the Cosmos DB SQL container @@ -6573,6 +6753,12 @@ type SQLDatabaseListResult struct { Value *[]SQLDatabaseGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLDatabaseListResult. +func (sdlr SQLDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLDatabaseResource cosmos DB SQL database resource object type SQLDatabaseResource struct { // ID - Name of the Cosmos DB SQL database @@ -7484,6 +7670,12 @@ type SQLStoredProcedureListResult struct { Value *[]SQLStoredProcedureGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLStoredProcedureListResult. +func (ssplr SQLStoredProcedureListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLStoredProcedureResource cosmos DB SQL storedProcedure resource object type SQLStoredProcedureResource struct { // ID - Name of the Cosmos DB SQL storedProcedure @@ -7747,6 +7939,12 @@ type SQLTriggerListResult struct { Value *[]SQLTriggerGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLTriggerListResult. +func (stlr SQLTriggerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLTriggerResource cosmos DB SQL trigger resource object type SQLTriggerResource struct { // ID - Name of the Cosmos DB SQL trigger @@ -8007,6 +8205,12 @@ type SQLUserDefinedFunctionListResult struct { Value *[]SQLUserDefinedFunctionGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLUserDefinedFunctionListResult. +func (sudflr SQLUserDefinedFunctionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLUserDefinedFunctionResource cosmos DB SQL userDefinedFunction resource object type SQLUserDefinedFunctionResource struct { // ID - Name of the Cosmos DB SQL userDefinedFunction @@ -8264,6 +8468,12 @@ type TableListResult struct { Value *[]TableGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for TableListResult. +func (tlr TableListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TableResource cosmos DB table resource object type TableResource struct { // ID - Name of the Cosmos DB table @@ -8823,6 +9033,12 @@ type UsagesResult struct { Value *[]Usage `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for UsagesResult. +func (ur UsagesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkRule virtual Network ACL Rule object type VirtualNetworkRule struct { // ID - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. diff --git a/services/costmanagement/mgmt/2018-05-31/costmanagement/CHANGELOG.md b/services/costmanagement/mgmt/2018-05-31/costmanagement/CHANGELOG.md index 52911e4cc5e4..c24e381c726a 100644 --- a/services/costmanagement/mgmt/2018-05-31/costmanagement/CHANGELOG.md +++ b/services/costmanagement/mgmt/2018-05-31/costmanagement/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. DimensionsListResult.MarshalJSON() ([]byte, error) +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. QueryResult.MarshalJSON() ([]byte, error) +1. ReportConfigListResult.MarshalJSON() ([]byte, error) diff --git a/services/costmanagement/mgmt/2018-05-31/costmanagement/_meta.json b/services/costmanagement/mgmt/2018-05-31/costmanagement/_meta.json index 4076efe46ba7..f7797b2ba86a 100644 --- a/services/costmanagement/mgmt/2018-05-31/costmanagement/_meta.json +++ b/services/costmanagement/mgmt/2018-05-31/costmanagement/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cost-management/resource-manager/readme.md", "tag": "package-2018-05", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cost-management/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cost-management/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/costmanagement/mgmt/2018-05-31/costmanagement/models.go b/services/costmanagement/mgmt/2018-05-31/costmanagement/models.go index 93019b6fbe7f..1cb5f158f881 100644 --- a/services/costmanagement/mgmt/2018-05-31/costmanagement/models.go +++ b/services/costmanagement/mgmt/2018-05-31/costmanagement/models.go @@ -118,6 +118,12 @@ type DimensionsListResult struct { Value *[]Dimension `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for DimensionsListResult. +func (dlr DimensionsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetails the details of the error. type ErrorDetails struct { // Code - READ-ONLY; Error code. @@ -126,6 +132,12 @@ type ErrorDetails struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse error response indicates that the service is not able to process the incoming request. The // reason is provided in the error message. type ErrorResponse struct { @@ -160,6 +172,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of listing cost management operations. It contains a list of operations and a // URL link to get the next set of results. type OperationListResult struct { @@ -170,6 +188,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -423,6 +447,12 @@ type QueryResult struct { Value *[]Query `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for QueryResult. +func (qr QueryResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReportConfig a report config resource. type ReportConfig struct { autorest.Response `json:"-"` @@ -623,6 +653,12 @@ type ReportConfigListResult struct { Value *[]ReportConfig `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ReportConfigListResult. +func (rclr ReportConfigListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReportConfigProperties the properties of the report config. type ReportConfigProperties struct { // Schedule - Has schedule information for the report config. diff --git a/services/costmanagement/mgmt/2019-01-01/costmanagement/CHANGELOG.md b/services/costmanagement/mgmt/2019-01-01/costmanagement/CHANGELOG.md index 52911e4cc5e4..23f2f015386c 100644 --- a/services/costmanagement/mgmt/2019-01-01/costmanagement/CHANGELOG.md +++ b/services/costmanagement/mgmt/2019-01-01/costmanagement/CHANGELOG.md @@ -1,2 +1,13 @@ # Change History +## Additive Changes + +### New Funcs + +1. DimensionsListResult.MarshalJSON() ([]byte, error) +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. ExportExecutionListResult.MarshalJSON() ([]byte, error) +1. ExportListResult.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. QueryResult.MarshalJSON() ([]byte, error) diff --git a/services/costmanagement/mgmt/2019-01-01/costmanagement/_meta.json b/services/costmanagement/mgmt/2019-01-01/costmanagement/_meta.json index 4c899b9c68e1..02c0eb0a3ba6 100644 --- a/services/costmanagement/mgmt/2019-01-01/costmanagement/_meta.json +++ b/services/costmanagement/mgmt/2019-01-01/costmanagement/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cost-management/resource-manager/readme.md", "tag": "package-2019-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cost-management/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cost-management/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/costmanagement/mgmt/2019-01-01/costmanagement/models.go b/services/costmanagement/mgmt/2019-01-01/costmanagement/models.go index 37480971b98d..e3c746f3dc8e 100644 --- a/services/costmanagement/mgmt/2019-01-01/costmanagement/models.go +++ b/services/costmanagement/mgmt/2019-01-01/costmanagement/models.go @@ -131,6 +131,12 @@ type DimensionsListResult struct { Value *[]Dimension `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for DimensionsListResult. +func (dlr DimensionsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetails the details of the error. type ErrorDetails struct { // Code - READ-ONLY; Error code. @@ -139,6 +145,12 @@ type ErrorDetails struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse error response indicates that the service is not able to process the incoming request. The // reason is provided in the error message. type ErrorResponse struct { @@ -338,6 +350,12 @@ type ExportExecutionListResult struct { Value *[]ExportExecution `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ExportExecutionListResult. +func (eelr ExportExecutionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExportExecutionProperties the properties of the export execution. type ExportExecutionProperties struct { // ExecutionType - The type of the export execution. Possible values include: 'OnDemand', 'Scheduled' @@ -365,6 +383,12 @@ type ExportListResult struct { Value *[]Export `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ExportListResult. +func (elr ExportListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExportProperties the properties of the export. type ExportProperties struct { // Schedule - Has schedule information for the export. @@ -422,6 +446,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of listing cost management operations. It contains a list of operations and a // URL link to get the next set of results. type OperationListResult struct { @@ -432,6 +462,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -783,6 +819,12 @@ type QueryResult struct { Value *[]Query `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for QueryResult. +func (qr QueryResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QuerySortingConfiguration the configuration for sorting in the query. type QuerySortingConfiguration struct { // QuerySortingDirection - The sorting direction. Possible values include: 'Ascending', 'Descending' diff --git a/services/costmanagement/mgmt/2019-10-01/costmanagement/CHANGELOG.md b/services/costmanagement/mgmt/2019-10-01/costmanagement/CHANGELOG.md index 52911e4cc5e4..bd7102148a04 100644 --- a/services/costmanagement/mgmt/2019-10-01/costmanagement/CHANGELOG.md +++ b/services/costmanagement/mgmt/2019-10-01/costmanagement/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. DimensionsListResult.MarshalJSON() ([]byte, error) +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. ExportExecutionListResult.MarshalJSON() ([]byte, error) +1. ExportListResult.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) diff --git a/services/costmanagement/mgmt/2019-10-01/costmanagement/_meta.json b/services/costmanagement/mgmt/2019-10-01/costmanagement/_meta.json index 4233b860a475..0e0ac19d1ad4 100644 --- a/services/costmanagement/mgmt/2019-10-01/costmanagement/_meta.json +++ b/services/costmanagement/mgmt/2019-10-01/costmanagement/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cost-management/resource-manager/readme.md", "tag": "package-2019-10", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cost-management/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cost-management/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/costmanagement/mgmt/2019-10-01/costmanagement/models.go b/services/costmanagement/mgmt/2019-10-01/costmanagement/models.go index fec690c117f6..2ae859c2eaf5 100644 --- a/services/costmanagement/mgmt/2019-10-01/costmanagement/models.go +++ b/services/costmanagement/mgmt/2019-10-01/costmanagement/models.go @@ -148,6 +148,12 @@ type DimensionsListResult struct { Value *[]Dimension `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for DimensionsListResult. +func (dlr DimensionsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetails the details of the error. type ErrorDetails struct { // Code - READ-ONLY; Error code. @@ -156,6 +162,12 @@ type ErrorDetails struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse error response indicates that the service is not able to process the incoming request. The // reason is provided in the error message. type ErrorResponse struct { @@ -351,6 +363,12 @@ type ExportExecutionListResult struct { Value *[]ExportExecution `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ExportExecutionListResult. +func (eelr ExportExecutionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExportExecutionProperties the properties of the export execution. type ExportExecutionProperties struct { // ExecutionType - The type of the export execution. Possible values include: 'OnDemand', 'Scheduled' @@ -378,6 +396,12 @@ type ExportListResult struct { Value *[]Export `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ExportListResult. +func (elr ExportListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExportProperties the properties of the export. type ExportProperties struct { // Schedule - Has schedule information for the export. @@ -435,6 +459,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of listing cost management operations. It contains a list of operations and a // URL link to get the next set of results. type OperationListResult struct { @@ -445,6 +475,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int diff --git a/services/costmanagement/mgmt/2020-06-01/costmanagement/CHANGELOG.md b/services/costmanagement/mgmt/2020-06-01/costmanagement/CHANGELOG.md index 52911e4cc5e4..222460fe4c6e 100644 --- a/services/costmanagement/mgmt/2020-06-01/costmanagement/CHANGELOG.md +++ b/services/costmanagement/mgmt/2020-06-01/costmanagement/CHANGELOG.md @@ -1,2 +1,14 @@ # Change History +## Additive Changes + +### New Funcs + +1. AlertsResult.MarshalJSON() ([]byte, error) +1. DimensionsListResult.MarshalJSON() ([]byte, error) +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. ExportExecutionListResult.MarshalJSON() ([]byte, error) +1. ExportListResult.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. ViewListResult.MarshalJSON() ([]byte, error) diff --git a/services/costmanagement/mgmt/2020-06-01/costmanagement/_meta.json b/services/costmanagement/mgmt/2020-06-01/costmanagement/_meta.json index ca46dde22137..bd618493ea60 100644 --- a/services/costmanagement/mgmt/2020-06-01/costmanagement/_meta.json +++ b/services/costmanagement/mgmt/2020-06-01/costmanagement/_meta.json @@ -2,9 +2,9 @@ "commit": "e0f8b9ab0f5fe5e71b7429ebfea8a33c19ec9d8d", "readme": "/_/azure-rest-api-specs/specification/cost-management/resource-manager/readme.md", "tag": "package-2020-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cost-management/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cost-management/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/costmanagement/mgmt/2020-06-01/costmanagement/models.go b/services/costmanagement/mgmt/2020-06-01/costmanagement/models.go index 8529714bd594..c7d565ccb065 100644 --- a/services/costmanagement/mgmt/2020-06-01/costmanagement/models.go +++ b/services/costmanagement/mgmt/2020-06-01/costmanagement/models.go @@ -183,6 +183,12 @@ type AlertsResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for AlertsResult. +func (ar AlertsResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CommonExportProperties the common properties of the export. type CommonExportProperties struct { // Format - The format of the export being delivered. Currently only 'Csv' is supported. Possible values include: 'Csv' @@ -334,6 +340,12 @@ type DimensionsListResult struct { Value *[]Dimension `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for DimensionsListResult. +func (dlr DimensionsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DismissAlertPayload the request payload to update an alert type DismissAlertPayload struct { *AlertProperties `json:"properties,omitempty"` @@ -380,6 +392,12 @@ type ErrorDetails struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse error response indicates that the service is not able to process the incoming request. The // reason is provided in the error message. // @@ -620,6 +638,12 @@ type ExportExecutionListResult struct { Value *[]ExportExecution `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ExportExecutionListResult. +func (eelr ExportExecutionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExportExecutionProperties the properties of the export execution. type ExportExecutionProperties struct { // ExecutionType - The type of the export execution. Possible values include: 'OnDemand', 'Scheduled' @@ -650,6 +674,12 @@ type ExportListResult struct { Value *[]Export `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ExportListResult. +func (elr ExportListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExportProperties the properties of the export. type ExportProperties struct { // Schedule - Has schedule information for the export. @@ -797,6 +827,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of listing cost management operations. It contains a list of operations and a // URL link to get the next set of results. type OperationListResult struct { @@ -807,6 +843,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -1415,6 +1457,12 @@ type ViewListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ViewListResult. +func (vlr ViewListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ViewListResultIterator provides access to a complete listing of View values. type ViewListResultIterator struct { i int diff --git a/services/customerinsights/mgmt/2017-01-01/customerinsights/CHANGELOG.md b/services/customerinsights/mgmt/2017-01-01/customerinsights/CHANGELOG.md index 52911e4cc5e4..ddcc7028763a 100644 --- a/services/customerinsights/mgmt/2017-01-01/customerinsights/CHANGELOG.md +++ b/services/customerinsights/mgmt/2017-01-01/customerinsights/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. DataSource.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. RelationshipsLookup.MarshalJSON() ([]byte, error) +1. SuggestRelationshipLinksResponse.MarshalJSON() ([]byte, error) diff --git a/services/customerinsights/mgmt/2017-01-01/customerinsights/_meta.json b/services/customerinsights/mgmt/2017-01-01/customerinsights/_meta.json index 1ed41af0323e..f2f094fb3cd1 100644 --- a/services/customerinsights/mgmt/2017-01-01/customerinsights/_meta.json +++ b/services/customerinsights/mgmt/2017-01-01/customerinsights/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/customer-insights/resource-manager/readme.md", "tag": "package-2017-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/customer-insights/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/customer-insights/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/customerinsights/mgmt/2017-01-01/customerinsights/models.go b/services/customerinsights/mgmt/2017-01-01/customerinsights/models.go index 1f9ad9ffafa6..653a1ee77e99 100644 --- a/services/customerinsights/mgmt/2017-01-01/customerinsights/models.go +++ b/services/customerinsights/mgmt/2017-01-01/customerinsights/models.go @@ -1074,6 +1074,12 @@ type DataSource struct { DataSourceReferenceID *string `json:"dataSourceReferenceId,omitempty"` } +// MarshalJSON is the custom marshaler for DataSource. +func (ds DataSource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DataSourcePrecedence the data source precedence is a way to know the precedence of each data source. type DataSourcePrecedence struct { *DataSource `json:"dataSource,omitempty"` @@ -3128,6 +3134,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of the request to list Customer Insights operations. It contains a list of // operations and a URL link to get the next set of results. type OperationListResult struct { @@ -3138,6 +3150,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -3855,6 +3873,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RelationshipDefinition the definition of Relationship. type RelationshipDefinition struct { // Cardinality - The Relationship Cardinality. Possible values include: 'OneToOne', 'OneToMany', 'ManyToMany' @@ -4614,6 +4638,12 @@ type RelationshipsLookup struct { ExistingRelationshipName *string `json:"existingRelationshipName,omitempty"` } +// MarshalJSON is the custom marshaler for RelationshipsLookup. +func (rl RelationshipsLookup) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RelationshipTypeFieldMapping map a field of profile to its corresponding StrongId in Related Profile. type RelationshipTypeFieldMapping struct { // ProfileFieldName - Specifies the fieldName in profile. @@ -5343,6 +5373,12 @@ type SuggestRelationshipLinksResponse struct { SuggestedRelationships *[]RelationshipsLookup `json:"suggestedRelationships,omitempty"` } +// MarshalJSON is the custom marshaler for SuggestRelationshipLinksResponse. +func (srlr SuggestRelationshipLinksResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TypePropertiesMapping metadata for a Link's property mapping. type TypePropertiesMapping struct { // InteractionTypePropertyName - Property name on the source Interaction Type. diff --git a/services/customerinsights/mgmt/2017-04-26/customerinsights/CHANGELOG.md b/services/customerinsights/mgmt/2017-04-26/customerinsights/CHANGELOG.md index 52911e4cc5e4..794b0a1e0b2a 100644 --- a/services/customerinsights/mgmt/2017-04-26/customerinsights/CHANGELOG.md +++ b/services/customerinsights/mgmt/2017-04-26/customerinsights/CHANGELOG.md @@ -1,2 +1,13 @@ # Change History +## Additive Changes + +### New Funcs + +1. DataSource.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. PredictionTrainingResults.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. RelationshipsLookup.MarshalJSON() ([]byte, error) +1. SuggestRelationshipLinksResponse.MarshalJSON() ([]byte, error) diff --git a/services/customerinsights/mgmt/2017-04-26/customerinsights/_meta.json b/services/customerinsights/mgmt/2017-04-26/customerinsights/_meta.json index dd05230825fd..1d58dbac705c 100644 --- a/services/customerinsights/mgmt/2017-04-26/customerinsights/_meta.json +++ b/services/customerinsights/mgmt/2017-04-26/customerinsights/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/customer-insights/resource-manager/readme.md", "tag": "package-2017-04", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/customer-insights/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/customer-insights/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/customerinsights/mgmt/2017-04-26/customerinsights/models.go b/services/customerinsights/mgmt/2017-04-26/customerinsights/models.go index 6edf1dba5f81..5f82014f0664 100644 --- a/services/customerinsights/mgmt/2017-04-26/customerinsights/models.go +++ b/services/customerinsights/mgmt/2017-04-26/customerinsights/models.go @@ -1096,6 +1096,12 @@ type DataSource struct { DataSourceReferenceID *string `json:"dataSourceReferenceId,omitempty"` } +// MarshalJSON is the custom marshaler for DataSource. +func (ds DataSource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DataSourcePrecedence the data source precedence is a way to know the precedence of each data source. type DataSourcePrecedence struct { *DataSource `json:"dataSource,omitempty"` @@ -3160,6 +3166,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of the request to list Customer Insights operations. It contains a list of // operations and a URL link to get the next set of results. type OperationListResult struct { @@ -3170,6 +3182,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -3893,6 +3911,12 @@ type PredictionTrainingResults struct { PrimaryProfileInstanceCount *int64 `json:"primaryProfileInstanceCount,omitempty"` } +// MarshalJSON is the custom marshaler for PredictionTrainingResults. +func (ptr PredictionTrainingResults) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProfileEnumValidValuesFormat valid enum values in case of an enum property. type ProfileEnumValidValuesFormat struct { // Value - The integer value of the enum member. @@ -4412,6 +4436,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RelationshipDefinition the definition of Relationship. type RelationshipDefinition struct { // Cardinality - The Relationship Cardinality. Possible values include: 'OneToOne', 'OneToMany', 'ManyToMany' @@ -5171,6 +5201,12 @@ type RelationshipsLookup struct { ExistingRelationshipName *string `json:"existingRelationshipName,omitempty"` } +// MarshalJSON is the custom marshaler for RelationshipsLookup. +func (rl RelationshipsLookup) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RelationshipTypeFieldMapping map a field of profile to its corresponding StrongId in Related Profile. type RelationshipTypeFieldMapping struct { // ProfileFieldName - Specifies the fieldName in profile. @@ -5900,6 +5936,12 @@ type SuggestRelationshipLinksResponse struct { SuggestedRelationships *[]RelationshipsLookup `json:"suggestedRelationships,omitempty"` } +// MarshalJSON is the custom marshaler for SuggestRelationshipLinksResponse. +func (srlr SuggestRelationshipLinksResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TypePropertiesMapping metadata for a Link's property mapping. type TypePropertiesMapping struct { // SourcePropertyName - Property name on the source Entity Type. diff --git a/services/databox/mgmt/2018-01-01/databox/CHANGELOG.md b/services/databox/mgmt/2018-01-01/databox/CHANGELOG.md index 52911e4cc5e4..a2706d898611 100644 --- a/services/databox/mgmt/2018-01-01/databox/CHANGELOG.md +++ b/services/databox/mgmt/2018-01-01/databox/CHANGELOG.md @@ -1,2 +1,27 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountCredentialDetails.MarshalJSON() ([]byte, error) +1. AddressValidationProperties.MarshalJSON() ([]byte, error) +1. ApplianceNetworkConfiguration.MarshalJSON() ([]byte, error) +1. ArmBaseObject.MarshalJSON() ([]byte, error) +1. CopyProgress.MarshalJSON() ([]byte, error) +1. DestinationToServiceLocationMap.MarshalJSON() ([]byte, error) +1. DiskCopyProgress.MarshalJSON() ([]byte, error) +1. DiskSecret.MarshalJSON() ([]byte, error) +1. Error.MarshalJSON() ([]byte, error) +1. HeavySecret.MarshalJSON() ([]byte, error) +1. JobErrorDetails.MarshalJSON() ([]byte, error) +1. JobStages.MarshalJSON() ([]byte, error) +1. Operation.MarshalJSON() ([]byte, error) +1. PackageShippingDetails.MarshalJSON() ([]byte, error) +1. Secret.MarshalJSON() ([]byte, error) +1. ShareCredentialDetails.MarshalJSON() ([]byte, error) +1. ShipmentPickUpResponse.MarshalJSON() ([]byte, error) +1. SkuCapacity.MarshalJSON() ([]byte, error) +1. SkuCost.MarshalJSON() ([]byte, error) +1. SkuProperties.MarshalJSON() ([]byte, error) +1. UnencryptedCredentials.MarshalJSON() ([]byte, error) diff --git a/services/databox/mgmt/2018-01-01/databox/_meta.json b/services/databox/mgmt/2018-01-01/databox/_meta.json index 9e56a5ee121c..3f5a92e91fef 100644 --- a/services/databox/mgmt/2018-01-01/databox/_meta.json +++ b/services/databox/mgmt/2018-01-01/databox/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/databox/resource-manager/readme.md", "tag": "package-2018-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/databox/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/databox/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/databox/mgmt/2018-01-01/databox/models.go b/services/databox/mgmt/2018-01-01/databox/models.go index 318f30ea7aa1..ec7ba93ace8a 100644 --- a/services/databox/mgmt/2018-01-01/databox/models.go +++ b/services/databox/mgmt/2018-01-01/databox/models.go @@ -75,6 +75,12 @@ type AccountCredentialDetails struct { ShareCredentialDetails *[]ShareCredentialDetails `json:"shareCredentialDetails,omitempty"` } +// MarshalJSON is the custom marshaler for AccountCredentialDetails. +func (acd AccountCredentialDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AddressValidationOutput output of the address validation api. type AddressValidationOutput struct { autorest.Response `json:"-"` @@ -120,6 +126,12 @@ type AddressValidationProperties struct { AlternateAddresses *[]ShippingAddress `json:"alternateAddresses,omitempty"` } +// MarshalJSON is the custom marshaler for AddressValidationProperties. +func (avp AddressValidationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplianceNetworkConfiguration the Network Adapter configuration of a DataBox. type ApplianceNetworkConfiguration struct { // Name - READ-ONLY; Name of the network. @@ -128,6 +140,12 @@ type ApplianceNetworkConfiguration struct { MacAddress *string `json:"macAddress,omitempty"` } +// MarshalJSON is the custom marshaler for ApplianceNetworkConfiguration. +func (anc ApplianceNetworkConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ArmBaseObject base class for all objects under resource. type ArmBaseObject struct { // Name - READ-ONLY; Name of the object. @@ -138,6 +156,12 @@ type ArmBaseObject struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ArmBaseObject. +func (abo ArmBaseObject) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AvailableSkuRequest the filters for showing the available skus. type AvailableSkuRequest struct { // TransferType - Type of the transfer. @@ -450,6 +474,12 @@ type CopyProgress struct { TotalFilesToProcess *int64 `json:"totalFilesToProcess,omitempty"` } +// MarshalJSON is the custom marshaler for CopyProgress. +func (cp CopyProgress) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicDestinationAccountDetails details of the destination of the data type BasicDestinationAccountDetails interface { AsDestinationManagedDiskDetails() (*DestinationManagedDiskDetails, bool) @@ -644,6 +674,12 @@ type DestinationToServiceLocationMap struct { ServiceLocation *string `json:"serviceLocation,omitempty"` } +// MarshalJSON is the custom marshaler for DestinationToServiceLocationMap. +func (dtslm DestinationToServiceLocationMap) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DiskCopyLogDetails copy Log Details for a disk type DiskCopyLogDetails struct { // DiskSerialNumber - READ-ONLY; Disk Serial Number. @@ -703,6 +739,12 @@ type DiskCopyProgress struct { Status CopyStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for DiskCopyProgress. +func (dcp DiskCopyProgress) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DiskJobDetails dataBox Disk Job Details. type DiskJobDetails struct { // PreferredDisks - User preference on what size disks are needed for the job. The map is from the disk size in TB to the count. Eg. {2,5} means 5 disks of 2 TB size. Key is string but will be checked against an int. @@ -1018,6 +1060,12 @@ type DiskSecret struct { BitLockerKey *string `json:"bitLockerKey,omitempty"` } +// MarshalJSON is the custom marshaler for DiskSecret. +func (ds DiskSecret) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Error top level error for the job. type Error struct { // Code - READ-ONLY; Error code that can be used to programmatically identify the error. @@ -1026,6 +1074,12 @@ type Error struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for Error. +func (e Error) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HeavyAccountCopyLogDetails copy log details for a storage account for DataBoxHeavy type HeavyAccountCopyLogDetails struct { // AccountName - READ-ONLY; Destination account name. @@ -1349,6 +1403,12 @@ type HeavySecret struct { AccountCredentialDetails *[]AccountCredentialDetails `json:"accountCredentialDetails,omitempty"` } +// MarshalJSON is the custom marshaler for HeavySecret. +func (hs HeavySecret) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicJobDetails job details. type BasicJobDetails interface { AsDiskJobDetails() (*DiskJobDetails, bool) @@ -1845,6 +1905,12 @@ type JobErrorDetails struct { ExceptionMessage *string `json:"exceptionMessage,omitempty"` } +// MarshalJSON is the custom marshaler for JobErrorDetails. +func (jed JobErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobProperties job Properties type JobProperties struct { // IsCancellable - READ-ONLY; Describes whether the job is cancellable or not. @@ -2519,6 +2585,12 @@ type JobStages struct { ErrorDetails *[]JobErrorDetails `json:"errorDetails,omitempty"` } +// MarshalJSON is the custom marshaler for JobStages. +func (js JobStages) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation. type JobsUpdateFuture struct { azure.FutureAPI @@ -2581,6 +2653,12 @@ type Operation struct { Origin *string `json:"origin,omitempty"` } +// MarshalJSON is the custom marshaler for Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationDisplay operation display type OperationDisplay struct { // Provider - Provider name. @@ -2771,6 +2849,12 @@ type PackageShippingDetails struct { TrackingURL *string `json:"trackingUrl,omitempty"` } +// MarshalJSON is the custom marshaler for PackageShippingDetails. +func (psd PackageShippingDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Preferences preferences related to the order type Preferences struct { PreferredDataCenterRegion *[]string `json:"preferredDataCenterRegion,omitempty"` @@ -2815,6 +2899,12 @@ type Secret struct { AccountCredentialDetails *[]AccountCredentialDetails `json:"accountCredentialDetails,omitempty"` } +// MarshalJSON is the custom marshaler for Secret. +func (s Secret) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ShareCredentialDetails credential details of the shares in account. type ShareCredentialDetails struct { // ShareName - READ-ONLY; Name of the share. @@ -2829,6 +2919,12 @@ type ShareCredentialDetails struct { SupportedAccessProtocols *[]AccessProtocol `json:"supportedAccessProtocols,omitempty"` } +// MarshalJSON is the custom marshaler for ShareCredentialDetails. +func (scd ShareCredentialDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ShipmentPickUpRequest shipment pick up request details. type ShipmentPickUpRequest struct { // StartTime - Minimum date after which the pick up should commence, this must be in local time of pick up area. @@ -2848,6 +2944,12 @@ type ShipmentPickUpResponse struct { ReadyByTime *date.Time `json:"readyByTime,omitempty"` } +// MarshalJSON is the custom marshaler for ShipmentPickUpResponse. +func (spur ShipmentPickUpResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ShippingAddress shipping address where customer wishes to receive the device. type ShippingAddress struct { // StreetAddress1 - Street Address line 1. @@ -2890,6 +2992,12 @@ type SkuCapacity struct { Maximum *string `json:"maximum,omitempty"` } +// MarshalJSON is the custom marshaler for SkuCapacity. +func (sc SkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuCost describes metadata for retrieving price info. type SkuCost struct { // MeterID - READ-ONLY; Meter id of the Sku. @@ -2898,6 +3006,12 @@ type SkuCost struct { MeterType *string `json:"meterType,omitempty"` } +// MarshalJSON is the custom marshaler for SkuCost. +func (sc SkuCost) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuInformation information of the sku. type SkuInformation struct { // Sku - READ-ONLY; The Sku. @@ -2974,6 +3088,12 @@ type SkuProperties struct { RequiredFeature *string `json:"requiredFeature,omitempty"` } +// MarshalJSON is the custom marshaler for SkuProperties. +func (sp SkuProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UnencryptedCredentials unencrypted credentials for accessing device. type UnencryptedCredentials struct { // JobName - READ-ONLY; Name of the job. @@ -2982,6 +3102,12 @@ type UnencryptedCredentials struct { JobSecrets BasicJobSecrets `json:"jobSecrets,omitempty"` } +// MarshalJSON is the custom marshaler for UnencryptedCredentials. +func (uc UnencryptedCredentials) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UnmarshalJSON is the custom unmarshaler for UnencryptedCredentials struct. func (uc *UnencryptedCredentials) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage diff --git a/services/databox/mgmt/2019-09-01/databox/CHANGELOG.md b/services/databox/mgmt/2019-09-01/databox/CHANGELOG.md index 52911e4cc5e4..28a60e278561 100644 --- a/services/databox/mgmt/2019-09-01/databox/CHANGELOG.md +++ b/services/databox/mgmt/2019-09-01/databox/CHANGELOG.md @@ -1,2 +1,31 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountCredentialDetails.MarshalJSON() ([]byte, error) +1. ApplianceNetworkConfiguration.MarshalJSON() ([]byte, error) +1. ArmBaseObject.MarshalJSON() ([]byte, error) +1. CopyProgress.MarshalJSON() ([]byte, error) +1. DestinationToServiceLocationMap.MarshalJSON() ([]byte, error) +1. DiskCopyProgress.MarshalJSON() ([]byte, error) +1. DiskSecret.MarshalJSON() ([]byte, error) +1. Error.MarshalJSON() ([]byte, error) +1. HeavySecret.MarshalJSON() ([]byte, error) +1. JobErrorDetails.MarshalJSON() ([]byte, error) +1. JobStages.MarshalJSON() ([]byte, error) +1. Operation.MarshalJSON() ([]byte, error) +1. PackageShippingDetails.MarshalJSON() ([]byte, error) +1. RegionConfigurationResponse.MarshalJSON() ([]byte, error) +1. ScheduleAvailabilityResponse.MarshalJSON() ([]byte, error) +1. Secret.MarshalJSON() ([]byte, error) +1. ShareCredentialDetails.MarshalJSON() ([]byte, error) +1. ShipmentPickUpResponse.MarshalJSON() ([]byte, error) +1. SkuCapacity.MarshalJSON() ([]byte, error) +1. SkuCost.MarshalJSON() ([]byte, error) +1. SkuProperties.MarshalJSON() ([]byte, error) +1. TransportAvailabilityDetails.MarshalJSON() ([]byte, error) +1. TransportAvailabilityResponse.MarshalJSON() ([]byte, error) +1. UnencryptedCredentials.MarshalJSON() ([]byte, error) +1. ValidationResponseProperties.MarshalJSON() ([]byte, error) diff --git a/services/databox/mgmt/2019-09-01/databox/_meta.json b/services/databox/mgmt/2019-09-01/databox/_meta.json index f06a9d697ccb..b9b742d77b50 100644 --- a/services/databox/mgmt/2019-09-01/databox/_meta.json +++ b/services/databox/mgmt/2019-09-01/databox/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/databox/resource-manager/readme.md", "tag": "package-2019-09", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/databox/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/databox/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/databox/mgmt/2019-09-01/databox/models.go b/services/databox/mgmt/2019-09-01/databox/models.go index 6a83dfe7f7df..0499d14a4ee6 100644 --- a/services/databox/mgmt/2019-09-01/databox/models.go +++ b/services/databox/mgmt/2019-09-01/databox/models.go @@ -77,6 +77,12 @@ type AccountCredentialDetails struct { ShareCredentialDetails *[]ShareCredentialDetails `json:"shareCredentialDetails,omitempty"` } +// MarshalJSON is the custom marshaler for AccountCredentialDetails. +func (acd AccountCredentialDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AddressValidationOutput output of the address validation api. type AddressValidationOutput struct { autorest.Response `json:"-"` @@ -184,6 +190,12 @@ type ApplianceNetworkConfiguration struct { MacAddress *string `json:"macAddress,omitempty"` } +// MarshalJSON is the custom marshaler for ApplianceNetworkConfiguration. +func (anc ApplianceNetworkConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ArmBaseObject base class for all objects under resource. type ArmBaseObject struct { // Name - READ-ONLY; Name of the object. @@ -194,6 +206,12 @@ type ArmBaseObject struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ArmBaseObject. +func (abo ArmBaseObject) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AvailableSkuRequest the filters for showing the available skus. type AvailableSkuRequest struct { // TransferType - Type of the transfer. @@ -540,6 +558,12 @@ type CopyProgress struct { FilesErroredOut *int64 `json:"filesErroredOut,omitempty"` } +// MarshalJSON is the custom marshaler for CopyProgress. +func (cp CopyProgress) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CreateJobValidations it does all pre-job creation validations. type CreateJobValidations struct { // IndividualRequestDetails - List of request details contain validationType and its request as key and value respectively. @@ -1116,6 +1140,12 @@ type DestinationToServiceLocationMap struct { ServiceLocation *string `json:"serviceLocation,omitempty"` } +// MarshalJSON is the custom marshaler for DestinationToServiceLocationMap. +func (dtslm DestinationToServiceLocationMap) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DiskCopyLogDetails copy Log Details for a disk type DiskCopyLogDetails struct { // DiskSerialNumber - READ-ONLY; Disk Serial Number. @@ -1175,6 +1205,12 @@ type DiskCopyProgress struct { Status CopyStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for DiskCopyProgress. +func (dcp DiskCopyProgress) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DiskJobDetails dataBox Disk Job Details. type DiskJobDetails struct { // PreferredDisks - User preference on what size disks are needed for the job. The map is from the disk size in TB to the count. Eg. {2,5} means 5 disks of 2 TB size. Key is string but will be checked against an int. @@ -1547,6 +1583,12 @@ type DiskSecret struct { BitLockerKey *string `json:"bitLockerKey,omitempty"` } +// MarshalJSON is the custom marshaler for DiskSecret. +func (ds DiskSecret) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Error top level error for the job. type Error struct { // Code - READ-ONLY; Error code that can be used to programmatically identify the error. @@ -1555,6 +1597,12 @@ type Error struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for Error. +func (e Error) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HeavyAccountCopyLogDetails copy log details for a storage account for Databox heavy type HeavyAccountCopyLogDetails struct { // AccountName - READ-ONLY; Destination account name. @@ -1944,6 +1992,12 @@ type HeavySecret struct { AccountCredentialDetails *[]AccountCredentialDetails `json:"accountCredentialDetails,omitempty"` } +// MarshalJSON is the custom marshaler for HeavySecret. +func (hs HeavySecret) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobDeliveryInfo additional delivery info. type JobDeliveryInfo struct { // ScheduledDateTime - Scheduled date time. @@ -2460,6 +2514,12 @@ type JobErrorDetails struct { ExceptionMessage *string `json:"exceptionMessage,omitempty"` } +// MarshalJSON is the custom marshaler for JobErrorDetails. +func (jed JobErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobProperties job Properties type JobProperties struct { // IsCancellable - READ-ONLY; Describes whether the job is cancellable or not. @@ -3183,6 +3243,12 @@ type JobStages struct { ErrorDetails *[]JobErrorDetails `json:"errorDetails,omitempty"` } +// MarshalJSON is the custom marshaler for JobStages. +func (js JobStages) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation. type JobsUpdateFuture struct { azure.FutureAPI @@ -3245,6 +3311,12 @@ type Operation struct { Origin *string `json:"origin,omitempty"` } +// MarshalJSON is the custom marshaler for Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationDisplay operation display type OperationDisplay struct { // Provider - Provider name. @@ -3435,6 +3507,12 @@ type PackageShippingDetails struct { TrackingURL *string `json:"trackingUrl,omitempty"` } +// MarshalJSON is the custom marshaler for PackageShippingDetails. +func (psd PackageShippingDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Preferences preferences related to the order type Preferences struct { // PreferredDataCenterRegion - Preferred Data Center Region. @@ -3619,6 +3697,12 @@ type RegionConfigurationResponse struct { TransportAvailabilityResponse *TransportAvailabilityResponse `json:"transportAvailabilityResponse,omitempty"` } +// MarshalJSON is the custom marshaler for RegionConfigurationResponse. +func (rcr RegionConfigurationResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource model of the Resource. type Resource struct { // Location - The location of the resource. This will be one of the supported and registered Azure Regions (e.g. West US, East US, Southeast Asia, etc.). The region of a resource cannot be changed once it is created, but if an identical region is specified on update the request will succeed. @@ -3798,6 +3882,12 @@ type ScheduleAvailabilityResponse struct { AvailableDates *[]date.Time `json:"availableDates,omitempty"` } +// MarshalJSON is the custom marshaler for ScheduleAvailabilityResponse. +func (sar ScheduleAvailabilityResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Secret the secrets related to a DataBox. type Secret struct { // DeviceSerialNumber - READ-ONLY; Serial number of the assigned device. @@ -3812,6 +3902,12 @@ type Secret struct { AccountCredentialDetails *[]AccountCredentialDetails `json:"accountCredentialDetails,omitempty"` } +// MarshalJSON is the custom marshaler for Secret. +func (s Secret) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ShareCredentialDetails credential details of the shares in account. type ShareCredentialDetails struct { // ShareName - READ-ONLY; Name of the share. @@ -3826,6 +3922,12 @@ type ShareCredentialDetails struct { SupportedAccessProtocols *[]AccessProtocol `json:"supportedAccessProtocols,omitempty"` } +// MarshalJSON is the custom marshaler for ShareCredentialDetails. +func (scd ShareCredentialDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ShipmentPickUpRequest shipment pick up request details. type ShipmentPickUpRequest struct { // StartTime - Minimum date after which the pick up should commence, this must be in local time of pick up area. @@ -3845,6 +3947,12 @@ type ShipmentPickUpResponse struct { ReadyByTime *date.Time `json:"readyByTime,omitempty"` } +// MarshalJSON is the custom marshaler for ShipmentPickUpResponse. +func (spur ShipmentPickUpResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ShippingAddress shipping address where customer wishes to receive the device. type ShippingAddress struct { // StreetAddress1 - Street Address line 1. @@ -4023,6 +4131,12 @@ type SkuCapacity struct { Maximum *string `json:"maximum,omitempty"` } +// MarshalJSON is the custom marshaler for SkuCapacity. +func (sc SkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuCost describes metadata for retrieving price info. type SkuCost struct { // MeterID - READ-ONLY; Meter id of the Sku. @@ -4031,6 +4145,12 @@ type SkuCost struct { MeterType *string `json:"meterType,omitempty"` } +// MarshalJSON is the custom marshaler for SkuCost. +func (sc SkuCost) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuInformation information of the sku. type SkuInformation struct { // Sku - READ-ONLY; The Sku. @@ -4107,6 +4227,12 @@ type SkuProperties struct { RequiredFeature *string `json:"requiredFeature,omitempty"` } +// MarshalJSON is the custom marshaler for SkuProperties. +func (sp SkuProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SubscriptionIsAllowedToCreateJobValidationRequest request to validate subscription permission to create // jobs. type SubscriptionIsAllowedToCreateJobValidationRequest struct { @@ -4231,6 +4357,12 @@ type TransportAvailabilityDetails struct { ShipmentType TransportShipmentTypes `json:"shipmentType,omitempty"` } +// MarshalJSON is the custom marshaler for TransportAvailabilityDetails. +func (tad TransportAvailabilityDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TransportAvailabilityRequest request body to get the transport availability for given sku. type TransportAvailabilityRequest struct { // SkuName - Type of the device. Possible values include: 'DataBox', 'DataBoxDisk', 'DataBoxHeavy' @@ -4243,6 +4375,12 @@ type TransportAvailabilityResponse struct { TransportAvailabilityDetails *[]TransportAvailabilityDetails `json:"transportAvailabilityDetails,omitempty"` } +// MarshalJSON is the custom marshaler for TransportAvailabilityResponse. +func (tarVar TransportAvailabilityResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TransportPreferences preferences related to the shipment logistics of the sku type TransportPreferences struct { // PreferredShipmentType - Indicates Shipment Logistics type that the customer preferred. Possible values include: 'CustomerManaged', 'MicrosoftManaged' @@ -4257,6 +4395,12 @@ type UnencryptedCredentials struct { JobSecrets BasicJobSecrets `json:"jobSecrets,omitempty"` } +// MarshalJSON is the custom marshaler for UnencryptedCredentials. +func (uc UnencryptedCredentials) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UnmarshalJSON is the custom unmarshaler for UnencryptedCredentials struct. func (uc *UnencryptedCredentials) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -4823,6 +4967,12 @@ type ValidationResponseProperties struct { IndividualResponseDetails *[]BasicValidationInputResponse `json:"individualResponseDetails,omitempty"` } +// MarshalJSON is the custom marshaler for ValidationResponseProperties. +func (vrp ValidationResponseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UnmarshalJSON is the custom unmarshaler for ValidationResponseProperties struct. func (vrp *ValidationResponseProperties) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage diff --git a/services/databox/mgmt/2020-04-01/databox/CHANGELOG.md b/services/databox/mgmt/2020-04-01/databox/CHANGELOG.md index 52911e4cc5e4..cb9fabb938a0 100644 --- a/services/databox/mgmt/2020-04-01/databox/CHANGELOG.md +++ b/services/databox/mgmt/2020-04-01/databox/CHANGELOG.md @@ -1,2 +1,28 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountCredentialDetails.MarshalJSON() ([]byte, error) +1. ApplianceNetworkConfiguration.MarshalJSON() ([]byte, error) +1. ArmBaseObject.MarshalJSON() ([]byte, error) +1. CopyProgress.MarshalJSON() ([]byte, error) +1. DataLocationToServiceLocationMap.MarshalJSON() ([]byte, error) +1. DiskCopyProgress.MarshalJSON() ([]byte, error) +1. DiskSecret.MarshalJSON() ([]byte, error) +1. HeavySecret.MarshalJSON() ([]byte, error) +1. JobStages.MarshalJSON() ([]byte, error) +1. PackageShippingDetails.MarshalJSON() ([]byte, error) +1. RegionConfigurationResponse.MarshalJSON() ([]byte, error) +1. ScheduleAvailabilityResponse.MarshalJSON() ([]byte, error) +1. Secret.MarshalJSON() ([]byte, error) +1. ShareCredentialDetails.MarshalJSON() ([]byte, error) +1. ShipmentPickUpResponse.MarshalJSON() ([]byte, error) +1. SkuCapacity.MarshalJSON() ([]byte, error) +1. SkuCost.MarshalJSON() ([]byte, error) +1. SkuProperties.MarshalJSON() ([]byte, error) +1. TransportAvailabilityDetails.MarshalJSON() ([]byte, error) +1. TransportAvailabilityResponse.MarshalJSON() ([]byte, error) +1. UnencryptedCredentials.MarshalJSON() ([]byte, error) +1. ValidationResponseProperties.MarshalJSON() ([]byte, error) diff --git a/services/databox/mgmt/2020-04-01/databox/_meta.json b/services/databox/mgmt/2020-04-01/databox/_meta.json index 2a49630d0373..ea590926efda 100644 --- a/services/databox/mgmt/2020-04-01/databox/_meta.json +++ b/services/databox/mgmt/2020-04-01/databox/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/databox/resource-manager/readme.md", "tag": "package-2020-04", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/databox/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/databox/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/databox/mgmt/2020-04-01/databox/models.go b/services/databox/mgmt/2020-04-01/databox/models.go index 60bebd496a59..e3c2732436a8 100644 --- a/services/databox/mgmt/2020-04-01/databox/models.go +++ b/services/databox/mgmt/2020-04-01/databox/models.go @@ -79,6 +79,12 @@ type AccountCredentialDetails struct { ShareCredentialDetails *[]ShareCredentialDetails `json:"shareCredentialDetails,omitempty"` } +// MarshalJSON is the custom marshaler for AccountCredentialDetails. +func (acd AccountCredentialDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AdditionalErrorInfo additional error info. type AdditionalErrorInfo struct { // Type - Additional error type. @@ -199,6 +205,12 @@ type ApplianceNetworkConfiguration struct { MacAddress *string `json:"macAddress,omitempty"` } +// MarshalJSON is the custom marshaler for ApplianceNetworkConfiguration. +func (anc ApplianceNetworkConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ArmBaseObject base class for all objects under resource. type ArmBaseObject struct { // Name - READ-ONLY; Name of the object. @@ -209,6 +221,12 @@ type ArmBaseObject struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ArmBaseObject. +func (abo ArmBaseObject) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AvailableSkuRequest the filters for showing the available skus. type AvailableSkuRequest struct { // TransferType - Type of the transfer. Possible values include: 'ImportToAzure', 'ExportFromAzure' @@ -589,6 +607,12 @@ type CopyProgress struct { IsEnumerationInProgress *bool `json:"isEnumerationInProgress,omitempty"` } +// MarshalJSON is the custom marshaler for CopyProgress. +func (cp CopyProgress) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CreateJobValidations it does all pre-job creation validations. type CreateJobValidations struct { // IndividualRequestDetails - List of request details contain validationType and its request as key and value respectively. @@ -957,6 +981,12 @@ type DataLocationToServiceLocationMap struct { ServiceLocation *string `json:"serviceLocation,omitempty"` } +// MarshalJSON is the custom marshaler for DataLocationToServiceLocationMap. +func (dltslm DataLocationToServiceLocationMap) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DataTransferDetailsValidationRequest request to validate export and import data details. type DataTransferDetailsValidationRequest struct { // DataExportDetails - List of DataTransfer details to be used to export data from azure. @@ -1166,6 +1196,12 @@ type DiskCopyProgress struct { Status CopyStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for DiskCopyProgress. +func (dcp DiskCopyProgress) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DiskJobDetails dataBox Disk Job Details. type DiskJobDetails struct { // PreferredDisks - User preference on what size disks are needed for the job. The map is from the disk size in TB to the count. Eg. {2,5} means 5 disks of 2 TB size. Key is string but will be checked against an int. @@ -1556,6 +1592,12 @@ type DiskSecret struct { BitLockerKey *string `json:"bitLockerKey,omitempty"` } +// MarshalJSON is the custom marshaler for DiskSecret. +func (ds DiskSecret) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetail ... type ErrorDetail struct { Code *string `json:"code,omitempty"` @@ -1981,6 +2023,12 @@ type HeavySecret struct { AccountCredentialDetails *[]AccountCredentialDetails `json:"accountCredentialDetails,omitempty"` } +// MarshalJSON is the custom marshaler for HeavySecret. +func (hs HeavySecret) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobDeliveryInfo additional delivery info. type JobDeliveryInfo struct { // ScheduledDateTime - Scheduled date time. @@ -3287,6 +3335,12 @@ type JobStages struct { JobStageDetails interface{} `json:"jobStageDetails,omitempty"` } +// MarshalJSON is the custom marshaler for JobStages. +func (js JobStages) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation. type JobsUpdateFuture struct { azure.FutureAPI @@ -3611,6 +3665,12 @@ type PackageShippingDetails struct { TrackingURL *string `json:"trackingUrl,omitempty"` } +// MarshalJSON is the custom marshaler for PackageShippingDetails. +func (psd PackageShippingDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Preferences preferences related to the order type Preferences struct { // PreferredDataCenterRegion - Preferred data center region. @@ -3795,6 +3855,12 @@ type RegionConfigurationResponse struct { TransportAvailabilityResponse *TransportAvailabilityResponse `json:"transportAvailabilityResponse,omitempty"` } +// MarshalJSON is the custom marshaler for RegionConfigurationResponse. +func (rcr RegionConfigurationResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource model of the Resource. type Resource struct { // Location - The location of the resource. This will be one of the supported and registered Azure Regions (e.g. West US, East US, Southeast Asia, etc.). The region of a resource cannot be changed once it is created, but if an identical region is specified on update the request will succeed. @@ -4006,6 +4072,12 @@ type ScheduleAvailabilityResponse struct { AvailableDates *[]date.Time `json:"availableDates,omitempty"` } +// MarshalJSON is the custom marshaler for ScheduleAvailabilityResponse. +func (sar ScheduleAvailabilityResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Secret the secrets related to a DataBox. type Secret struct { // DeviceSerialNumber - READ-ONLY; Serial number of the assigned device. @@ -4020,6 +4092,12 @@ type Secret struct { AccountCredentialDetails *[]AccountCredentialDetails `json:"accountCredentialDetails,omitempty"` } +// MarshalJSON is the custom marshaler for Secret. +func (s Secret) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ShareCredentialDetails credential details of the shares in account. type ShareCredentialDetails struct { // ShareName - READ-ONLY; Name of the share. @@ -4034,6 +4112,12 @@ type ShareCredentialDetails struct { SupportedAccessProtocols *[]AccessProtocol `json:"supportedAccessProtocols,omitempty"` } +// MarshalJSON is the custom marshaler for ShareCredentialDetails. +func (scd ShareCredentialDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ShipmentPickUpRequest shipment pick up request details. type ShipmentPickUpRequest struct { // StartTime - Minimum date after which the pick up should commence, this must be in local time of pick up area. @@ -4053,6 +4137,12 @@ type ShipmentPickUpResponse struct { ReadyByTime *date.Time `json:"readyByTime,omitempty"` } +// MarshalJSON is the custom marshaler for ShipmentPickUpResponse. +func (spur ShipmentPickUpResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ShippingAddress shipping address where customer wishes to receive the device. type ShippingAddress struct { // StreetAddress1 - Street Address line 1. @@ -4231,6 +4321,12 @@ type SkuCapacity struct { Maximum *string `json:"maximum,omitempty"` } +// MarshalJSON is the custom marshaler for SkuCapacity. +func (sc SkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuCost describes metadata for retrieving price info. type SkuCost struct { // MeterID - READ-ONLY; Meter id of the Sku. @@ -4241,6 +4337,12 @@ type SkuCost struct { Multiplier *float64 `json:"multiplier,omitempty"` } +// MarshalJSON is the custom marshaler for SkuCost. +func (sc SkuCost) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuInformation information of the sku. type SkuInformation struct { // Sku - READ-ONLY; The Sku. @@ -4317,6 +4419,12 @@ type SkuProperties struct { RequiredFeature *string `json:"requiredFeature,omitempty"` } +// MarshalJSON is the custom marshaler for SkuProperties. +func (sp SkuProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageAccountDetails details for the storage account. type StorageAccountDetails struct { // StorageAccountID - Storage Account Resource Id. @@ -4533,6 +4641,12 @@ type TransportAvailabilityDetails struct { ShipmentType TransportShipmentTypes `json:"shipmentType,omitempty"` } +// MarshalJSON is the custom marshaler for TransportAvailabilityDetails. +func (tad TransportAvailabilityDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TransportAvailabilityRequest request body to get the transport availability for given sku. type TransportAvailabilityRequest struct { // SkuName - Type of the device. Possible values include: 'DataBox', 'DataBoxDisk', 'DataBoxHeavy' @@ -4545,6 +4659,12 @@ type TransportAvailabilityResponse struct { TransportAvailabilityDetails *[]TransportAvailabilityDetails `json:"transportAvailabilityDetails,omitempty"` } +// MarshalJSON is the custom marshaler for TransportAvailabilityResponse. +func (tarVar TransportAvailabilityResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TransportPreferences preferences related to the shipment logistics of the sku type TransportPreferences struct { // PreferredShipmentType - Indicates Shipment Logistics type that the customer preferred. Possible values include: 'TransportShipmentTypesCustomerManaged', 'TransportShipmentTypesMicrosoftManaged' @@ -4559,6 +4679,12 @@ type UnencryptedCredentials struct { JobSecrets BasicJobSecrets `json:"jobSecrets,omitempty"` } +// MarshalJSON is the custom marshaler for UnencryptedCredentials. +func (uc UnencryptedCredentials) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UnmarshalJSON is the custom unmarshaler for UnencryptedCredentials struct. func (uc *UnencryptedCredentials) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -5093,6 +5219,12 @@ type ValidationResponseProperties struct { IndividualResponseDetails *[]BasicValidationInputResponse `json:"individualResponseDetails,omitempty"` } +// MarshalJSON is the custom marshaler for ValidationResponseProperties. +func (vrp ValidationResponseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UnmarshalJSON is the custom unmarshaler for ValidationResponseProperties struct. func (vrp *ValidationResponseProperties) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage diff --git a/services/databox/mgmt/2020-11-01/databox/CHANGELOG.md b/services/databox/mgmt/2020-11-01/databox/CHANGELOG.md index 52911e4cc5e4..8b0155feabb3 100644 --- a/services/databox/mgmt/2020-11-01/databox/CHANGELOG.md +++ b/services/databox/mgmt/2020-11-01/databox/CHANGELOG.md @@ -1,2 +1,29 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountCredentialDetails.MarshalJSON() ([]byte, error) +1. ApplianceNetworkConfiguration.MarshalJSON() ([]byte, error) +1. ArmBaseObject.MarshalJSON() ([]byte, error) +1. CopyProgress.MarshalJSON() ([]byte, error) +1. DataLocationToServiceLocationMap.MarshalJSON() ([]byte, error) +1. DiskCopyProgress.MarshalJSON() ([]byte, error) +1. DiskSecret.MarshalJSON() ([]byte, error) +1. HeavySecret.MarshalJSON() ([]byte, error) +1. JobStages.MarshalJSON() ([]byte, error) +1. PackageShippingDetails.MarshalJSON() ([]byte, error) +1. RegionConfigurationResponse.MarshalJSON() ([]byte, error) +1. ScheduleAvailabilityResponse.MarshalJSON() ([]byte, error) +1. Secret.MarshalJSON() ([]byte, error) +1. ShareCredentialDetails.MarshalJSON() ([]byte, error) +1. ShipmentPickUpResponse.MarshalJSON() ([]byte, error) +1. SkuCapacity.MarshalJSON() ([]byte, error) +1. SkuCost.MarshalJSON() ([]byte, error) +1. SkuProperties.MarshalJSON() ([]byte, error) +1. TransportAvailabilityDetails.MarshalJSON() ([]byte, error) +1. TransportAvailabilityResponse.MarshalJSON() ([]byte, error) +1. UnencryptedCredentials.MarshalJSON() ([]byte, error) +1. UserAssignedIdentity.MarshalJSON() ([]byte, error) +1. ValidationResponseProperties.MarshalJSON() ([]byte, error) diff --git a/services/databox/mgmt/2020-11-01/databox/_meta.json b/services/databox/mgmt/2020-11-01/databox/_meta.json index 20b2a790d5c8..0f080fb6b608 100644 --- a/services/databox/mgmt/2020-11-01/databox/_meta.json +++ b/services/databox/mgmt/2020-11-01/databox/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/databox/resource-manager/readme.md", "tag": "package-2020-11", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/databox/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/databox/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/databox/mgmt/2020-11-01/databox/models.go b/services/databox/mgmt/2020-11-01/databox/models.go index ecc15a970471..d7dabc52362c 100644 --- a/services/databox/mgmt/2020-11-01/databox/models.go +++ b/services/databox/mgmt/2020-11-01/databox/models.go @@ -79,6 +79,12 @@ type AccountCredentialDetails struct { ShareCredentialDetails *[]ShareCredentialDetails `json:"shareCredentialDetails,omitempty"` } +// MarshalJSON is the custom marshaler for AccountCredentialDetails. +func (acd AccountCredentialDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AdditionalErrorInfo additional error info. type AdditionalErrorInfo struct { // Type - Additional error type. @@ -199,6 +205,12 @@ type ApplianceNetworkConfiguration struct { MacAddress *string `json:"macAddress,omitempty"` } +// MarshalJSON is the custom marshaler for ApplianceNetworkConfiguration. +func (anc ApplianceNetworkConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ArmBaseObject base class for all objects under resource. type ArmBaseObject struct { // Name - READ-ONLY; Name of the object. @@ -209,6 +221,12 @@ type ArmBaseObject struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ArmBaseObject. +func (abo ArmBaseObject) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AvailableSkuRequest the filters for showing the available skus. type AvailableSkuRequest struct { // TransferType - Type of the transfer. Possible values include: 'ImportToAzure', 'ExportFromAzure' @@ -589,6 +607,12 @@ type CopyProgress struct { IsEnumerationInProgress *bool `json:"isEnumerationInProgress,omitempty"` } +// MarshalJSON is the custom marshaler for CopyProgress. +func (cp CopyProgress) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CreateJobValidations it does all pre-job creation validations. type CreateJobValidations struct { // IndividualRequestDetails - List of request details contain validationType and its request as key and value respectively. @@ -957,6 +981,12 @@ type DataLocationToServiceLocationMap struct { ServiceLocation *string `json:"serviceLocation,omitempty"` } +// MarshalJSON is the custom marshaler for DataLocationToServiceLocationMap. +func (dltslm DataLocationToServiceLocationMap) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DataTransferDetailsValidationRequest request to validate export and import data details. type DataTransferDetailsValidationRequest struct { // DataExportDetails - List of DataTransfer details to be used to export data from azure. @@ -1166,6 +1196,12 @@ type DiskCopyProgress struct { Status CopyStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for DiskCopyProgress. +func (dcp DiskCopyProgress) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DiskJobDetails dataBox Disk Job Details. type DiskJobDetails struct { // PreferredDisks - User preference on what size disks are needed for the job. The map is from the disk size in TB to the count. Eg. {2,5} means 5 disks of 2 TB size. Key is string but will be checked against an int. @@ -1556,6 +1592,12 @@ type DiskSecret struct { BitLockerKey *string `json:"bitLockerKey,omitempty"` } +// MarshalJSON is the custom marshaler for DiskSecret. +func (ds DiskSecret) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EncryptionPreferences preferences related to the Encryption. type EncryptionPreferences struct { // DoubleEncryption - Defines secondary layer of software-based encryption enablement. Possible values include: 'Enabled', 'Disabled' @@ -1987,6 +2029,12 @@ type HeavySecret struct { AccountCredentialDetails *[]AccountCredentialDetails `json:"accountCredentialDetails,omitempty"` } +// MarshalJSON is the custom marshaler for HeavySecret. +func (hs HeavySecret) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IdentityProperties managed identity properties. type IdentityProperties struct { // Type - Managed service identity type. @@ -3301,6 +3349,12 @@ type JobStages struct { JobStageDetails interface{} `json:"jobStageDetails,omitempty"` } +// MarshalJSON is the custom marshaler for JobStages. +func (js JobStages) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation. type JobsUpdateFuture struct { azure.FutureAPI @@ -3627,6 +3681,12 @@ type PackageShippingDetails struct { TrackingURL *string `json:"trackingUrl,omitempty"` } +// MarshalJSON is the custom marshaler for PackageShippingDetails. +func (psd PackageShippingDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Preferences preferences related to the order type Preferences struct { // PreferredDataCenterRegion - Preferred data center region. @@ -3813,6 +3873,12 @@ type RegionConfigurationResponse struct { TransportAvailabilityResponse *TransportAvailabilityResponse `json:"transportAvailabilityResponse,omitempty"` } +// MarshalJSON is the custom marshaler for RegionConfigurationResponse. +func (rcr RegionConfigurationResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource model of the Resource. type Resource struct { // Location - The location of the resource. This will be one of the supported and registered Azure Regions (e.g. West US, East US, Southeast Asia, etc.). The region of a resource cannot be changed once it is created, but if an identical region is specified on update the request will succeed. @@ -4029,6 +4095,12 @@ type ScheduleAvailabilityResponse struct { AvailableDates *[]date.Time `json:"availableDates,omitempty"` } +// MarshalJSON is the custom marshaler for ScheduleAvailabilityResponse. +func (sar ScheduleAvailabilityResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Secret the secrets related to a DataBox. type Secret struct { // DeviceSerialNumber - READ-ONLY; Serial number of the assigned device. @@ -4043,6 +4115,12 @@ type Secret struct { AccountCredentialDetails *[]AccountCredentialDetails `json:"accountCredentialDetails,omitempty"` } +// MarshalJSON is the custom marshaler for Secret. +func (s Secret) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ShareCredentialDetails credential details of the shares in account. type ShareCredentialDetails struct { // ShareName - READ-ONLY; Name of the share. @@ -4057,6 +4135,12 @@ type ShareCredentialDetails struct { SupportedAccessProtocols *[]AccessProtocol `json:"supportedAccessProtocols,omitempty"` } +// MarshalJSON is the custom marshaler for ShareCredentialDetails. +func (scd ShareCredentialDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ShipmentPickUpRequest shipment pick up request details. type ShipmentPickUpRequest struct { // StartTime - Minimum date after which the pick up should commence, this must be in local time of pick up area. @@ -4076,6 +4160,12 @@ type ShipmentPickUpResponse struct { ReadyByTime *date.Time `json:"readyByTime,omitempty"` } +// MarshalJSON is the custom marshaler for ShipmentPickUpResponse. +func (spur ShipmentPickUpResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ShippingAddress shipping address where customer wishes to receive the device. type ShippingAddress struct { // StreetAddress1 - Street Address line 1. @@ -4254,6 +4344,12 @@ type SkuCapacity struct { Maximum *string `json:"maximum,omitempty"` } +// MarshalJSON is the custom marshaler for SkuCapacity. +func (sc SkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuCost describes metadata for retrieving price info. type SkuCost struct { // MeterID - READ-ONLY; Meter id of the Sku. @@ -4264,6 +4360,12 @@ type SkuCost struct { Multiplier *float64 `json:"multiplier,omitempty"` } +// MarshalJSON is the custom marshaler for SkuCost. +func (sc SkuCost) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuInformation information of the sku. type SkuInformation struct { // Sku - READ-ONLY; The Sku. @@ -4340,6 +4442,12 @@ type SkuProperties struct { RequiredFeature *string `json:"requiredFeature,omitempty"` } +// MarshalJSON is the custom marshaler for SkuProperties. +func (sp SkuProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageAccountDetails details for the storage account. type StorageAccountDetails struct { // StorageAccountID - Storage Account Resource Id. @@ -4556,6 +4664,12 @@ type TransportAvailabilityDetails struct { ShipmentType TransportShipmentTypes `json:"shipmentType,omitempty"` } +// MarshalJSON is the custom marshaler for TransportAvailabilityDetails. +func (tad TransportAvailabilityDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TransportAvailabilityRequest request body to get the transport availability for given sku. type TransportAvailabilityRequest struct { // SkuName - Type of the device. Possible values include: 'DataBox', 'DataBoxDisk', 'DataBoxHeavy' @@ -4568,6 +4682,12 @@ type TransportAvailabilityResponse struct { TransportAvailabilityDetails *[]TransportAvailabilityDetails `json:"transportAvailabilityDetails,omitempty"` } +// MarshalJSON is the custom marshaler for TransportAvailabilityResponse. +func (tarVar TransportAvailabilityResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TransportPreferences preferences related to the shipment logistics of the sku type TransportPreferences struct { // PreferredShipmentType - Indicates Shipment Logistics type that the customer preferred. Possible values include: 'TransportShipmentTypesCustomerManaged', 'TransportShipmentTypesMicrosoftManaged' @@ -4582,6 +4702,12 @@ type UnencryptedCredentials struct { JobSecrets BasicJobSecrets `json:"jobSecrets,omitempty"` } +// MarshalJSON is the custom marshaler for UnencryptedCredentials. +func (uc UnencryptedCredentials) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UnmarshalJSON is the custom unmarshaler for UnencryptedCredentials struct. func (uc *UnencryptedCredentials) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -4647,6 +4773,12 @@ type UserAssignedIdentity struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for UserAssignedIdentity. +func (uai UserAssignedIdentity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UserAssignedProperties user assigned identity properties. type UserAssignedProperties struct { // ResourceID - Arm resource id for user assigned identity to be used to fetch MSI token. @@ -5130,6 +5262,12 @@ type ValidationResponseProperties struct { IndividualResponseDetails *[]BasicValidationInputResponse `json:"individualResponseDetails,omitempty"` } +// MarshalJSON is the custom marshaler for ValidationResponseProperties. +func (vrp ValidationResponseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UnmarshalJSON is the custom unmarshaler for ValidationResponseProperties struct. func (vrp *ValidationResponseProperties) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage diff --git a/services/databoxedge/mgmt/2019-03-01/databoxedge/CHANGELOG.md b/services/databoxedge/mgmt/2019-03-01/databoxedge/CHANGELOG.md index 52911e4cc5e4..17032748fdea 100644 --- a/services/databoxedge/mgmt/2019-03-01/databoxedge/CHANGELOG.md +++ b/services/databoxedge/mgmt/2019-03-01/databoxedge/CHANGELOG.md @@ -1,2 +1,25 @@ # Change History +## Additive Changes + +### New Funcs + +1. ARMBaseModel.MarshalJSON() ([]byte, error) +1. AlertErrorDetails.MarshalJSON() ([]byte, error) +1. AlertList.MarshalJSON() ([]byte, error) +1. BandwidthSchedulesList.MarshalJSON() ([]byte, error) +1. DeviceList.MarshalJSON() ([]byte, error) +1. Ipv4Config.MarshalJSON() ([]byte, error) +1. Ipv6Config.MarshalJSON() ([]byte, error) +1. JobErrorDetails.MarshalJSON() ([]byte, error) +1. JobErrorItem.MarshalJSON() ([]byte, error) +1. NetworkAdapterPosition.MarshalJSON() ([]byte, error) +1. NetworkSettingsProperties.MarshalJSON() ([]byte, error) +1. OrderList.MarshalJSON() ([]byte, error) +1. RoleList.MarshalJSON() ([]byte, error) +1. ShareList.MarshalJSON() ([]byte, error) +1. StorageAccountCredentialList.MarshalJSON() ([]byte, error) +1. TriggerList.MarshalJSON() ([]byte, error) +1. UpdateDownloadProgress.MarshalJSON() ([]byte, error) +1. UpdateInstallProgress.MarshalJSON() ([]byte, error) +1. UserList.MarshalJSON() ([]byte, error) diff --git a/services/databoxedge/mgmt/2019-03-01/databoxedge/_meta.json b/services/databoxedge/mgmt/2019-03-01/databoxedge/_meta.json index b0db590b992c..8704d703217a 100644 --- a/services/databoxedge/mgmt/2019-03-01/databoxedge/_meta.json +++ b/services/databoxedge/mgmt/2019-03-01/databoxedge/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/databoxedge/resource-manager/readme.md", "tag": "package-2019-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/databoxedge/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/databoxedge/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/databoxedge/mgmt/2019-03-01/databoxedge/models.go b/services/databoxedge/mgmt/2019-03-01/databoxedge/models.go index 4d661fd0d89a..6df8a2d04abf 100644 --- a/services/databoxedge/mgmt/2019-03-01/databoxedge/models.go +++ b/services/databoxedge/mgmt/2019-03-01/databoxedge/models.go @@ -118,6 +118,12 @@ type AlertErrorDetails struct { Occurrences *int32 `json:"occurrences,omitempty"` } +// MarshalJSON is the custom marshaler for AlertErrorDetails. +func (aed AlertErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AlertList collection of alerts. type AlertList struct { autorest.Response `json:"-"` @@ -127,6 +133,12 @@ type AlertList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for AlertList. +func (al AlertList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AlertListIterator provides access to a complete listing of Alert values. type AlertListIterator struct { i int @@ -311,6 +323,12 @@ type ARMBaseModel struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ARMBaseModel. +func (abm ARMBaseModel) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AsymmetricEncryptedSecret represent the secrets intended for encryption with asymmetric key pair. type AsymmetricEncryptedSecret struct { // Value - The value of the secret. @@ -511,6 +529,12 @@ type BandwidthSchedulesList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for BandwidthSchedulesList. +func (bsl BandwidthSchedulesList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BandwidthSchedulesListIterator provides access to a complete listing of BandwidthSchedule values. type BandwidthSchedulesListIterator struct { i int @@ -931,6 +955,12 @@ type DeviceList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DeviceList. +func (dl DeviceList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeviceListIterator provides access to a complete listing of Device values. type DeviceListIterator struct { i int @@ -1631,6 +1661,12 @@ type Ipv4Config struct { Gateway *string `json:"gateway,omitempty"` } +// MarshalJSON is the custom marshaler for Ipv4Config. +func (i4c Ipv4Config) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Ipv6Config details related to the IPv6 address configuration. type Ipv6Config struct { // IPAddress - READ-ONLY; The IPv6 address of the network adapter. @@ -1641,6 +1677,12 @@ type Ipv6Config struct { Gateway *string `json:"gateway,omitempty"` } +// MarshalJSON is the custom marshaler for Ipv6Config. +func (i6c Ipv6Config) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Job a device job. type Job struct { autorest.Response `json:"-"` @@ -1776,6 +1818,12 @@ type JobErrorDetails struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for JobErrorDetails. +func (jed JobErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobErrorItem the job error items. type JobErrorItem struct { // Recommendations - READ-ONLY; The recommended actions. @@ -1786,6 +1834,12 @@ type JobErrorItem struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for JobErrorItem. +func (jei JobErrorItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobProperties the properties for the job. type JobProperties struct { // JobType - READ-ONLY; The type of the job. Possible values include: 'JobTypeInvalid', 'JobTypeScanForUpdates', 'JobTypeDownloadUpdates', 'JobTypeInstallUpdates', 'JobTypeRefreshShare' @@ -1926,6 +1980,12 @@ type NetworkAdapterPosition struct { Port *int32 `json:"port,omitempty"` } +// MarshalJSON is the custom marshaler for NetworkAdapterPosition. +func (nap NetworkAdapterPosition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NetworkSettings the network settings of a device. type NetworkSettings struct { autorest.Response `json:"-"` @@ -2002,6 +2062,12 @@ type NetworkSettingsProperties struct { NetworkAdapters *[]NetworkAdapter `json:"networkAdapters,omitempty"` } +// MarshalJSON is the custom marshaler for NetworkSettingsProperties. +func (nsp NetworkSettingsProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation operations. type Operation struct { // Name - Name of the operation. @@ -2342,6 +2408,12 @@ type OrderList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OrderList. +func (ol OrderList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OrderListIterator provides access to a complete listing of Order values. type OrderListIterator struct { i int @@ -2863,6 +2935,12 @@ type RoleList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RoleList. +func (rl RoleList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UnmarshalJSON is the custom unmarshaler for RoleList struct. func (rl *RoleList) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -3322,6 +3400,12 @@ type ShareList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ShareList. +func (sl ShareList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ShareListIterator provides access to a complete listing of Share values. type ShareListIterator struct { i int @@ -3735,6 +3819,12 @@ type StorageAccountCredentialList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for StorageAccountCredentialList. +func (sacl StorageAccountCredentialList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageAccountCredentialListIterator provides access to a complete listing of StorageAccountCredential // values. type StorageAccountCredentialListIterator struct { @@ -4102,6 +4192,12 @@ type TriggerList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for TriggerList. +func (tl TriggerList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UnmarshalJSON is the custom unmarshaler for TriggerList struct. func (tl *TriggerList) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -4397,6 +4493,12 @@ type UpdateDownloadProgress struct { NumberOfUpdatesDownloaded *int32 `json:"numberOfUpdatesDownloaded,omitempty"` } +// MarshalJSON is the custom marshaler for UpdateDownloadProgress. +func (UDP UpdateDownloadProgress) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpdateInstallProgress progress details during installation of updates. type UpdateInstallProgress struct { // PercentComplete - READ-ONLY; Percentage completed. @@ -4407,6 +4509,12 @@ type UpdateInstallProgress struct { NumberOfUpdatesInstalled *int32 `json:"numberOfUpdatesInstalled,omitempty"` } +// MarshalJSON is the custom marshaler for UpdateInstallProgress. +func (uip UpdateInstallProgress) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpdateSummary details about ongoing updates and availability of updates on the device. type UpdateSummary struct { autorest.Response `json:"-"` @@ -4684,6 +4792,12 @@ type UserList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for UserList. +func (ul UserList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UserListIterator provides access to a complete listing of User values. type UserListIterator struct { i int diff --git a/services/databoxedge/mgmt/2019-07-01/databoxedge/CHANGELOG.md b/services/databoxedge/mgmt/2019-07-01/databoxedge/CHANGELOG.md index 52911e4cc5e4..efbe26a55582 100644 --- a/services/databoxedge/mgmt/2019-07-01/databoxedge/CHANGELOG.md +++ b/services/databoxedge/mgmt/2019-07-01/databoxedge/CHANGELOG.md @@ -1,2 +1,27 @@ # Change History +## Additive Changes + +### New Funcs + +1. ARMBaseModel.MarshalJSON() ([]byte, error) +1. AlertErrorDetails.MarshalJSON() ([]byte, error) +1. AlertList.MarshalJSON() ([]byte, error) +1. BandwidthSchedulesList.MarshalJSON() ([]byte, error) +1. DeviceList.MarshalJSON() ([]byte, error) +1. Ipv4Config.MarshalJSON() ([]byte, error) +1. Ipv6Config.MarshalJSON() ([]byte, error) +1. JobErrorDetails.MarshalJSON() ([]byte, error) +1. JobErrorItem.MarshalJSON() ([]byte, error) +1. NetworkAdapterPosition.MarshalJSON() ([]byte, error) +1. NetworkSettingsProperties.MarshalJSON() ([]byte, error) +1. NodeList.MarshalJSON() ([]byte, error) +1. NodeProperties.MarshalJSON() ([]byte, error) +1. OrderList.MarshalJSON() ([]byte, error) +1. RoleList.MarshalJSON() ([]byte, error) +1. ShareList.MarshalJSON() ([]byte, error) +1. StorageAccountCredentialList.MarshalJSON() ([]byte, error) +1. TriggerList.MarshalJSON() ([]byte, error) +1. UpdateDownloadProgress.MarshalJSON() ([]byte, error) +1. UpdateInstallProgress.MarshalJSON() ([]byte, error) +1. UserList.MarshalJSON() ([]byte, error) diff --git a/services/databoxedge/mgmt/2019-07-01/databoxedge/_meta.json b/services/databoxedge/mgmt/2019-07-01/databoxedge/_meta.json index 5ad1788f3458..7eff5e0b35fa 100644 --- a/services/databoxedge/mgmt/2019-07-01/databoxedge/_meta.json +++ b/services/databoxedge/mgmt/2019-07-01/databoxedge/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/databoxedge/resource-manager/readme.md", "tag": "package-2019-07", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/databoxedge/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/databoxedge/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/databoxedge/mgmt/2019-07-01/databoxedge/models.go b/services/databoxedge/mgmt/2019-07-01/databoxedge/models.go index bb23b0f210cd..57a837e2cc84 100644 --- a/services/databoxedge/mgmt/2019-07-01/databoxedge/models.go +++ b/services/databoxedge/mgmt/2019-07-01/databoxedge/models.go @@ -118,6 +118,12 @@ type AlertErrorDetails struct { Occurrences *int32 `json:"occurrences,omitempty"` } +// MarshalJSON is the custom marshaler for AlertErrorDetails. +func (aed AlertErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AlertList collection of alerts. type AlertList struct { autorest.Response `json:"-"` @@ -127,6 +133,12 @@ type AlertList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for AlertList. +func (al AlertList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AlertListIterator provides access to a complete listing of Alert values. type AlertListIterator struct { i int @@ -311,6 +323,12 @@ type ARMBaseModel struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ARMBaseModel. +func (abm ARMBaseModel) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AsymmetricEncryptedSecret represent the secrets intended for encryption with asymmetric key pair. type AsymmetricEncryptedSecret struct { // Value - The value of the secret. @@ -511,6 +529,12 @@ type BandwidthSchedulesList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for BandwidthSchedulesList. +func (bsl BandwidthSchedulesList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BandwidthSchedulesListIterator provides access to a complete listing of BandwidthSchedule values. type BandwidthSchedulesListIterator struct { i int @@ -931,6 +955,12 @@ type DeviceList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DeviceList. +func (dl DeviceList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeviceListIterator provides access to a complete listing of Device values. type DeviceListIterator struct { i int @@ -1635,6 +1665,12 @@ type Ipv4Config struct { Gateway *string `json:"gateway,omitempty"` } +// MarshalJSON is the custom marshaler for Ipv4Config. +func (i4c Ipv4Config) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Ipv6Config details related to the IPv6 address configuration. type Ipv6Config struct { // IPAddress - READ-ONLY; The IPv6 address of the network adapter. @@ -1645,6 +1681,12 @@ type Ipv6Config struct { Gateway *string `json:"gateway,omitempty"` } +// MarshalJSON is the custom marshaler for Ipv6Config. +func (i6c Ipv6Config) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Job a device job. type Job struct { autorest.Response `json:"-"` @@ -1780,6 +1822,12 @@ type JobErrorDetails struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for JobErrorDetails. +func (jed JobErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobErrorItem the job error items. type JobErrorItem struct { // Recommendations - READ-ONLY; The recommended actions. @@ -1790,6 +1838,12 @@ type JobErrorItem struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for JobErrorItem. +func (jei JobErrorItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobProperties the properties for the job. type JobProperties struct { // JobType - READ-ONLY; The type of the job. Possible values include: 'JobTypeInvalid', 'JobTypeScanForUpdates', 'JobTypeDownloadUpdates', 'JobTypeInstallUpdates', 'JobTypeRefreshShare' @@ -1930,6 +1984,12 @@ type NetworkAdapterPosition struct { Port *int32 `json:"port,omitempty"` } +// MarshalJSON is the custom marshaler for NetworkAdapterPosition. +func (nap NetworkAdapterPosition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NetworkSettings the network settings of a device. type NetworkSettings struct { autorest.Response `json:"-"` @@ -2006,6 +2066,12 @@ type NetworkSettingsProperties struct { NetworkAdapters *[]NetworkAdapter `json:"networkAdapters,omitempty"` } +// MarshalJSON is the custom marshaler for NetworkSettingsProperties. +func (nsp NetworkSettingsProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Node represents a single node in a Data box Edge/Gateway device // Gateway devices, standalone Edge devices and a single node cluster Edge device will all have 1 node // Multi-node Edge devices will have more than 1 nodes @@ -2084,6 +2150,12 @@ type NodeList struct { Value *[]Node `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for NodeList. +func (nl NodeList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NodeProperties this class represents the nodes in a highly available cluster type NodeProperties struct { // NodeStatus - READ-ONLY; The current status of the individual node. Possible values include: 'NodeStatusUnknown', 'NodeStatusUp', 'NodeStatusDown', 'NodeStatusRebooting', 'NodeStatusShuttingDown' @@ -2102,6 +2174,12 @@ type NodeProperties struct { NodeInstanceID *string `json:"nodeInstanceId,omitempty"` } +// MarshalJSON is the custom marshaler for NodeProperties. +func (np NodeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation operations. type Operation struct { // Name - Name of the operation. @@ -2442,6 +2520,12 @@ type OrderList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OrderList. +func (ol OrderList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OrderListIterator provides access to a complete listing of Order values. type OrderListIterator struct { i int @@ -2963,6 +3047,12 @@ type RoleList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RoleList. +func (rl RoleList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UnmarshalJSON is the custom unmarshaler for RoleList struct. func (rl *RoleList) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -3422,6 +3512,12 @@ type ShareList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ShareList. +func (sl ShareList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ShareListIterator provides access to a complete listing of Share values. type ShareListIterator struct { i int @@ -3835,6 +3931,12 @@ type StorageAccountCredentialList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for StorageAccountCredentialList. +func (sacl StorageAccountCredentialList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageAccountCredentialListIterator provides access to a complete listing of StorageAccountCredential // values. type StorageAccountCredentialListIterator struct { @@ -4204,6 +4306,12 @@ type TriggerList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for TriggerList. +func (tl TriggerList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UnmarshalJSON is the custom unmarshaler for TriggerList struct. func (tl *TriggerList) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -4499,6 +4607,12 @@ type UpdateDownloadProgress struct { NumberOfUpdatesDownloaded *int32 `json:"numberOfUpdatesDownloaded,omitempty"` } +// MarshalJSON is the custom marshaler for UpdateDownloadProgress. +func (UDP UpdateDownloadProgress) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpdateInstallProgress progress details during installation of updates. type UpdateInstallProgress struct { // PercentComplete - READ-ONLY; Percentage completed. @@ -4509,6 +4623,12 @@ type UpdateInstallProgress struct { NumberOfUpdatesInstalled *int32 `json:"numberOfUpdatesInstalled,omitempty"` } +// MarshalJSON is the custom marshaler for UpdateInstallProgress. +func (uip UpdateInstallProgress) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpdateSummary details about ongoing updates and availability of updates on the device. type UpdateSummary struct { autorest.Response `json:"-"` @@ -4786,6 +4906,12 @@ type UserList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for UserList. +func (ul UserList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UserListIterator provides access to a complete listing of User values. type UserListIterator struct { i int diff --git a/services/databoxedge/mgmt/2019-08-01/databoxedge/CHANGELOG.md b/services/databoxedge/mgmt/2019-08-01/databoxedge/CHANGELOG.md index 52911e4cc5e4..06adfb5d30be 100644 --- a/services/databoxedge/mgmt/2019-08-01/databoxedge/CHANGELOG.md +++ b/services/databoxedge/mgmt/2019-08-01/databoxedge/CHANGELOG.md @@ -1,2 +1,35 @@ # Change History +## Additive Changes + +### New Funcs + +1. ARMBaseModel.MarshalJSON() ([]byte, error) +1. AlertErrorDetails.MarshalJSON() ([]byte, error) +1. AlertList.MarshalJSON() ([]byte, error) +1. BandwidthSchedulesList.MarshalJSON() ([]byte, error) +1. ContainerList.MarshalJSON() ([]byte, error) +1. DeviceList.MarshalJSON() ([]byte, error) +1. Ipv4Config.MarshalJSON() ([]byte, error) +1. Ipv6Config.MarshalJSON() ([]byte, error) +1. JobErrorDetails.MarshalJSON() ([]byte, error) +1. JobErrorItem.MarshalJSON() ([]byte, error) +1. NetworkAdapterPosition.MarshalJSON() ([]byte, error) +1. NetworkSettingsProperties.MarshalJSON() ([]byte, error) +1. NodeList.MarshalJSON() ([]byte, error) +1. NodeProperties.MarshalJSON() ([]byte, error) +1. OrderList.MarshalJSON() ([]byte, error) +1. ResourceTypeSku.MarshalJSON() ([]byte, error) +1. RoleList.MarshalJSON() ([]byte, error) +1. ShareList.MarshalJSON() ([]byte, error) +1. SkuCost.MarshalJSON() ([]byte, error) +1. SkuInformationList.MarshalJSON() ([]byte, error) +1. SkuLocationInfo.MarshalJSON() ([]byte, error) +1. SkuRestriction.MarshalJSON() ([]byte, error) +1. SkuRestrictionInfo.MarshalJSON() ([]byte, error) +1. StorageAccountCredentialList.MarshalJSON() ([]byte, error) +1. StorageAccountList.MarshalJSON() ([]byte, error) +1. TriggerList.MarshalJSON() ([]byte, error) +1. UpdateDownloadProgress.MarshalJSON() ([]byte, error) +1. UpdateInstallProgress.MarshalJSON() ([]byte, error) +1. UserList.MarshalJSON() ([]byte, error) diff --git a/services/databoxedge/mgmt/2019-08-01/databoxedge/_meta.json b/services/databoxedge/mgmt/2019-08-01/databoxedge/_meta.json index 6deb8fd90b50..258015b977b7 100644 --- a/services/databoxedge/mgmt/2019-08-01/databoxedge/_meta.json +++ b/services/databoxedge/mgmt/2019-08-01/databoxedge/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/databoxedge/resource-manager/readme.md", "tag": "package-2019-08", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/databoxedge/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/databoxedge/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/databoxedge/mgmt/2019-08-01/databoxedge/models.go b/services/databoxedge/mgmt/2019-08-01/databoxedge/models.go index f61c14de6fc1..53b8eb4c17d5 100644 --- a/services/databoxedge/mgmt/2019-08-01/databoxedge/models.go +++ b/services/databoxedge/mgmt/2019-08-01/databoxedge/models.go @@ -118,6 +118,12 @@ type AlertErrorDetails struct { Occurrences *int32 `json:"occurrences,omitempty"` } +// MarshalJSON is the custom marshaler for AlertErrorDetails. +func (aed AlertErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AlertList collection of alerts. type AlertList struct { autorest.Response `json:"-"` @@ -127,6 +133,12 @@ type AlertList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for AlertList. +func (al AlertList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AlertListIterator provides access to a complete listing of Alert values. type AlertListIterator struct { i int @@ -311,6 +323,12 @@ type ARMBaseModel struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ARMBaseModel. +func (abm ARMBaseModel) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AsymmetricEncryptedSecret represent the secrets intended for encryption with asymmetric key pair. type AsymmetricEncryptedSecret struct { // Value - The value of the secret. @@ -511,6 +529,12 @@ type BandwidthSchedulesList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for BandwidthSchedulesList. +func (bsl BandwidthSchedulesList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BandwidthSchedulesListIterator provides access to a complete listing of BandwidthSchedule values. type BandwidthSchedulesListIterator struct { i int @@ -780,6 +804,12 @@ type ContainerList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerList. +func (cl ContainerList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerListIterator provides access to a complete listing of Container values. type ContainerListIterator struct { i int @@ -1301,6 +1331,12 @@ type DeviceList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DeviceList. +func (dl DeviceList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeviceListIterator provides access to a complete listing of Device values. type DeviceListIterator struct { i int @@ -2005,6 +2041,12 @@ type Ipv4Config struct { Gateway *string `json:"gateway,omitempty"` } +// MarshalJSON is the custom marshaler for Ipv4Config. +func (i4c Ipv4Config) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Ipv6Config details related to the IPv6 address configuration. type Ipv6Config struct { // IPAddress - READ-ONLY; The IPv6 address of the network adapter. @@ -2015,6 +2057,12 @@ type Ipv6Config struct { Gateway *string `json:"gateway,omitempty"` } +// MarshalJSON is the custom marshaler for Ipv6Config. +func (i6c Ipv6Config) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Job a device job. type Job struct { autorest.Response `json:"-"` @@ -2150,6 +2198,12 @@ type JobErrorDetails struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for JobErrorDetails. +func (jed JobErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobErrorItem the job error items. type JobErrorItem struct { // Recommendations - READ-ONLY; The recommended actions. @@ -2160,6 +2214,12 @@ type JobErrorItem struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for JobErrorItem. +func (jei JobErrorItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobProperties the properties for the job. type JobProperties struct { // JobType - READ-ONLY; The type of the job. Possible values include: 'JobTypeInvalid', 'JobTypeScanForUpdates', 'JobTypeDownloadUpdates', 'JobTypeInstallUpdates', 'JobTypeRefreshShare', 'JobTypeRefreshContainer' @@ -2300,6 +2360,12 @@ type NetworkAdapterPosition struct { Port *int32 `json:"port,omitempty"` } +// MarshalJSON is the custom marshaler for NetworkAdapterPosition. +func (nap NetworkAdapterPosition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NetworkSettings the network settings of a device. type NetworkSettings struct { autorest.Response `json:"-"` @@ -2376,6 +2442,12 @@ type NetworkSettingsProperties struct { NetworkAdapters *[]NetworkAdapter `json:"networkAdapters,omitempty"` } +// MarshalJSON is the custom marshaler for NetworkSettingsProperties. +func (nsp NetworkSettingsProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Node represents a single node in a Data box Edge/Gateway device // Gateway devices, standalone Edge devices and a single node cluster Edge device will all have 1 node // Multi-node Edge devices will have more than 1 nodes @@ -2454,6 +2526,12 @@ type NodeList struct { Value *[]Node `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for NodeList. +func (nl NodeList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NodeProperties this class represents the nodes in a highly available cluster type NodeProperties struct { // NodeStatus - READ-ONLY; The current status of the individual node. Possible values include: 'NodeStatusUnknown', 'NodeStatusUp', 'NodeStatusDown', 'NodeStatusRebooting', 'NodeStatusShuttingDown' @@ -2472,6 +2550,12 @@ type NodeProperties struct { NodeInstanceID *string `json:"nodeInstanceId,omitempty"` } +// MarshalJSON is the custom marshaler for NodeProperties. +func (np NodeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation operations. type Operation struct { // Name - Name of the operation. @@ -2812,6 +2896,12 @@ type OrderList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OrderList. +func (ol OrderList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OrderListIterator provides access to a complete listing of Order values. type OrderListIterator struct { i int @@ -3270,6 +3360,12 @@ type ResourceTypeSku struct { Restrictions *[]SkuRestriction `json:"restrictions,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceTypeSku. +func (rts ResourceTypeSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicRole compute role. type BasicRole interface { AsIoTRole() (*IoTRole, bool) @@ -3360,6 +3456,12 @@ type RoleList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RoleList. +func (rl RoleList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UnmarshalJSON is the custom unmarshaler for RoleList struct. func (rl *RoleList) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -3819,6 +3921,12 @@ type ShareList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ShareList. +func (sl ShareList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ShareListIterator provides access to a complete listing of Share values. type ShareListIterator struct { i int @@ -4160,6 +4268,12 @@ type SkuCost struct { ExtendedUnit *string `json:"extendedUnit,omitempty"` } +// MarshalJSON is the custom marshaler for SkuCost. +func (sc SkuCost) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuInformationList list of SKU Information objects type SkuInformationList struct { autorest.Response `json:"-"` @@ -4169,6 +4283,12 @@ type SkuInformationList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SkuInformationList. +func (sil SkuInformationList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuLocationInfo the location info. type SkuLocationInfo struct { // Location - READ-ONLY; The location. @@ -4179,6 +4299,12 @@ type SkuLocationInfo struct { Sites *[]string `json:"sites,omitempty"` } +// MarshalJSON is the custom marshaler for SkuLocationInfo. +func (sli SkuLocationInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuRestriction the restrictions because of which SKU cannot be used. type SkuRestriction struct { // Type - READ-ONLY; The type of the restriction. @@ -4191,6 +4317,12 @@ type SkuRestriction struct { RestrictionInfo *SkuRestrictionInfo `json:"restrictionInfo,omitempty"` } +// MarshalJSON is the custom marshaler for SkuRestriction. +func (sr SkuRestriction) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuRestrictionInfo the restriction info with locations and zones. type SkuRestrictionInfo struct { // Locations - READ-ONLY; The locations. @@ -4199,6 +4331,12 @@ type SkuRestrictionInfo struct { Zones *[]string `json:"zones,omitempty"` } +// MarshalJSON is the custom marshaler for SkuRestrictionInfo. +func (sri SkuRestrictionInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageAccount represents a Storage Account on the Data Box Edge/Gateway device. type StorageAccount struct { autorest.Response `json:"-"` @@ -4354,6 +4492,12 @@ type StorageAccountCredentialList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for StorageAccountCredentialList. +func (sacl StorageAccountCredentialList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageAccountCredentialListIterator provides access to a complete listing of StorageAccountCredential // values. type StorageAccountCredentialListIterator struct { @@ -4614,6 +4758,12 @@ type StorageAccountList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for StorageAccountList. +func (sal StorageAccountList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageAccountListIterator provides access to a complete listing of StorageAccount values. type StorageAccountListIterator struct { i int @@ -4996,6 +5146,12 @@ type TriggerList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for TriggerList. +func (tl TriggerList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UnmarshalJSON is the custom unmarshaler for TriggerList struct. func (tl *TriggerList) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -5291,6 +5447,12 @@ type UpdateDownloadProgress struct { NumberOfUpdatesDownloaded *int32 `json:"numberOfUpdatesDownloaded,omitempty"` } +// MarshalJSON is the custom marshaler for UpdateDownloadProgress. +func (UDP UpdateDownloadProgress) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpdateInstallProgress progress details during installation of updates. type UpdateInstallProgress struct { // PercentComplete - READ-ONLY; Percentage completed. @@ -5301,6 +5463,12 @@ type UpdateInstallProgress struct { NumberOfUpdatesInstalled *int32 `json:"numberOfUpdatesInstalled,omitempty"` } +// MarshalJSON is the custom marshaler for UpdateInstallProgress. +func (uip UpdateInstallProgress) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpdateSummary details about ongoing updates and availability of updates on the device. type UpdateSummary struct { autorest.Response `json:"-"` @@ -5589,6 +5757,12 @@ type UserList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for UserList. +func (ul UserList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UserListIterator provides access to a complete listing of User values. type UserListIterator struct { i int diff --git a/services/databoxedge/mgmt/2020-12-01/databoxedge/CHANGELOG.md b/services/databoxedge/mgmt/2020-12-01/databoxedge/CHANGELOG.md index 52911e4cc5e4..f597ae654e15 100644 --- a/services/databoxedge/mgmt/2020-12-01/databoxedge/CHANGELOG.md +++ b/services/databoxedge/mgmt/2020-12-01/databoxedge/CHANGELOG.md @@ -1,2 +1,43 @@ # Change History +## Additive Changes + +### New Funcs + +1. ARMBaseModel.MarshalJSON() ([]byte, error) +1. AddonList.MarshalJSON() ([]byte, error) +1. AlertErrorDetails.MarshalJSON() ([]byte, error) +1. AlertList.MarshalJSON() ([]byte, error) +1. BandwidthSchedulesList.MarshalJSON() ([]byte, error) +1. CniConfig.MarshalJSON() ([]byte, error) +1. ContainerList.MarshalJSON() ([]byte, error) +1. DeviceList.MarshalJSON() ([]byte, error) +1. EtcdInfo.MarshalJSON() ([]byte, error) +1. Ipv4Config.MarshalJSON() ([]byte, error) +1. Ipv6Config.MarshalJSON() ([]byte, error) +1. JobErrorDetails.MarshalJSON() ([]byte, error) +1. JobErrorItem.MarshalJSON() ([]byte, error) +1. KubernetesRoleNetwork.MarshalJSON() ([]byte, error) +1. KubernetesRoleStorageClassInfo.MarshalJSON() ([]byte, error) +1. LoadBalancerConfig.MarshalJSON() ([]byte, error) +1. MonitoringMetricConfigurationList.MarshalJSON() ([]byte, error) +1. NetworkAdapterPosition.MarshalJSON() ([]byte, error) +1. NetworkSettingsProperties.MarshalJSON() ([]byte, error) +1. NodeProperties.MarshalJSON() ([]byte, error) +1. OrderList.MarshalJSON() ([]byte, error) +1. ResourceTypeSku.MarshalJSON() ([]byte, error) +1. RoleList.MarshalJSON() ([]byte, error) +1. ShareList.MarshalJSON() ([]byte, error) +1. SkuCapability.MarshalJSON() ([]byte, error) +1. SkuCost.MarshalJSON() ([]byte, error) +1. SkuInformation.MarshalJSON() ([]byte, error) +1. SkuInformationList.MarshalJSON() ([]byte, error) +1. SkuList.MarshalJSON() ([]byte, error) +1. SkuLocationInfo.MarshalJSON() ([]byte, error) +1. SkuType.MarshalJSON() ([]byte, error) +1. StorageAccountCredentialList.MarshalJSON() ([]byte, error) +1. StorageAccountList.MarshalJSON() ([]byte, error) +1. TriggerList.MarshalJSON() ([]byte, error) +1. UpdateDownloadProgress.MarshalJSON() ([]byte, error) +1. UpdateInstallProgress.MarshalJSON() ([]byte, error) +1. UserList.MarshalJSON() ([]byte, error) diff --git a/services/databoxedge/mgmt/2020-12-01/databoxedge/_meta.json b/services/databoxedge/mgmt/2020-12-01/databoxedge/_meta.json index adda656b1dcb..5739f84393b0 100644 --- a/services/databoxedge/mgmt/2020-12-01/databoxedge/_meta.json +++ b/services/databoxedge/mgmt/2020-12-01/databoxedge/_meta.json @@ -2,9 +2,9 @@ "commit": "0f0e41fa4e3679510fcf03ecd60084f1cdbd5805", "readme": "/_/azure-rest-api-specs/specification/databoxedge/resource-manager/readme.md", "tag": "package-2020-12-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-12-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/databoxedge/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-12-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/databoxedge/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/databoxedge/mgmt/2020-12-01/databoxedge/models.go b/services/databoxedge/mgmt/2020-12-01/databoxedge/models.go index 3f0ddf361faf..3a584841fed8 100644 --- a/services/databoxedge/mgmt/2020-12-01/databoxedge/models.go +++ b/services/databoxedge/mgmt/2020-12-01/databoxedge/models.go @@ -125,6 +125,12 @@ type AddonList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for AddonList. +func (al AddonList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UnmarshalJSON is the custom unmarshaler for AddonList struct. func (al *AddonList) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -515,6 +521,12 @@ type AlertErrorDetails struct { Occurrences *int32 `json:"occurrences,omitempty"` } +// MarshalJSON is the custom marshaler for AlertErrorDetails. +func (aed AlertErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AlertList collection of alerts. type AlertList struct { autorest.Response `json:"-"` @@ -524,6 +536,12 @@ type AlertList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for AlertList. +func (al AlertList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AlertListIterator provides access to a complete listing of Alert values. type AlertListIterator struct { i int @@ -867,6 +885,12 @@ type ARMBaseModel struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ARMBaseModel. +func (abm ARMBaseModel) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AsymmetricEncryptedSecret represent the secrets intended for encryption with asymmetric key pair. type AsymmetricEncryptedSecret struct { // Value - The value of the secret. @@ -1081,6 +1105,12 @@ type BandwidthSchedulesList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for BandwidthSchedulesList. +func (bsl BandwidthSchedulesList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BandwidthSchedulesListIterator provides access to a complete listing of BandwidthSchedule values. type BandwidthSchedulesListIterator struct { i int @@ -1418,6 +1448,12 @@ type CniConfig struct { ServiceSubnet *string `json:"serviceSubnet,omitempty"` } +// MarshalJSON is the custom marshaler for CniConfig. +func (cc CniConfig) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ComputeResource compute infrastructure Resource type ComputeResource struct { // ProcessorCount - Processor count @@ -1534,6 +1570,12 @@ type ContainerList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerList. +func (cl ContainerList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerListIterator provides access to a complete listing of Container values. type ContainerListIterator struct { i int @@ -2178,6 +2220,12 @@ type DeviceList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DeviceList. +func (dl DeviceList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeviceListIterator provides access to a complete listing of Device values. type DeviceListIterator struct { i int @@ -2826,6 +2874,12 @@ type EtcdInfo struct { Version *string `json:"version,omitempty"` } +// MarshalJSON is the custom marshaler for EtcdInfo. +func (ei EtcdInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FileEventTrigger trigger details. type FileEventTrigger struct { // FileTriggerProperties - File trigger properties. @@ -3346,6 +3400,12 @@ type Ipv4Config struct { Gateway *string `json:"gateway,omitempty"` } +// MarshalJSON is the custom marshaler for Ipv4Config. +func (i4c Ipv4Config) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Ipv6Config details related to the IPv6 address configuration. type Ipv6Config struct { // IPAddress - READ-ONLY; The IPv6 address of the network adapter. @@ -3356,6 +3416,12 @@ type Ipv6Config struct { Gateway *string `json:"gateway,omitempty"` } +// MarshalJSON is the custom marshaler for Ipv6Config. +func (i6c Ipv6Config) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Job a device job. type Job struct { autorest.Response `json:"-"` @@ -3491,6 +3557,12 @@ type JobErrorDetails struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for JobErrorDetails. +func (jed JobErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobErrorItem the job error items. type JobErrorItem struct { // Recommendations - READ-ONLY; The recommended actions. @@ -3501,6 +3573,12 @@ type JobErrorItem struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for JobErrorItem. +func (jei JobErrorItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobProperties the properties for the job. type JobProperties struct { // JobType - READ-ONLY; The type of the job. Possible values include: 'JobTypeInvalid', 'JobTypeScanForUpdates', 'JobTypeDownloadUpdates', 'JobTypeInstallUpdates', 'JobTypeRefreshShare', 'JobTypeRefreshContainer', 'JobTypeBackup', 'JobTypeRestore', 'JobTypeTriggerSupportPackage' @@ -3724,6 +3802,12 @@ type KubernetesRoleNetwork struct { LoadBalancerConfig *LoadBalancerConfig `json:"loadBalancerConfig,omitempty"` } +// MarshalJSON is the custom marshaler for KubernetesRoleNetwork. +func (krn KubernetesRoleNetwork) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // KubernetesRoleProperties kubernetes role properties. type KubernetesRoleProperties struct { // HostPlatform - Host OS supported by the Kubernetes role. Possible values include: 'Windows', 'Linux' @@ -3807,6 +3891,12 @@ type KubernetesRoleStorageClassInfo struct { PosixCompliant PosixComplianceStatus `json:"posixCompliant,omitempty"` } +// MarshalJSON is the custom marshaler for KubernetesRoleStorageClassInfo. +func (krsci KubernetesRoleStorageClassInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LoadBalancerConfig load balancer configuration type LoadBalancerConfig struct { // Type - READ-ONLY; Load balancer type @@ -3815,6 +3905,12 @@ type LoadBalancerConfig struct { Version *string `json:"version,omitempty"` } +// MarshalJSON is the custom marshaler for LoadBalancerConfig. +func (lbc LoadBalancerConfig) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MECRole MEC role. type MECRole struct { // MECRoleProperties - Properties specific to MEC role. @@ -4190,6 +4286,12 @@ type MonitoringMetricConfigurationList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for MonitoringMetricConfigurationList. +func (mmcl MonitoringMetricConfigurationList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MonitoringMetricConfigurationListIterator provides access to a complete listing of // MonitoringMetricConfiguration values. type MonitoringMetricConfigurationListIterator struct { @@ -4432,6 +4534,12 @@ type NetworkAdapterPosition struct { Port *int32 `json:"port,omitempty"` } +// MarshalJSON is the custom marshaler for NetworkAdapterPosition. +func (nap NetworkAdapterPosition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NetworkSettings the network settings of a device. type NetworkSettings struct { autorest.Response `json:"-"` @@ -4508,6 +4616,12 @@ type NetworkSettingsProperties struct { NetworkAdapters *[]NetworkAdapter `json:"networkAdapters,omitempty"` } +// MarshalJSON is the custom marshaler for NetworkSettingsProperties. +func (nsp NetworkSettingsProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Node represents a single node in a Data box Edge/Gateway device // Gateway devices, standalone Edge devices and a single node cluster Edge device will all have 1 node // Multi-node Edge devices will have more than 1 nodes @@ -4784,6 +4898,12 @@ type NodeProperties struct { NodeInstanceID *string `json:"nodeInstanceId,omitempty"` } +// MarshalJSON is the custom marshaler for NodeProperties. +func (np NodeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation operations. type Operation struct { // Name - Name of the operation. @@ -5138,6 +5258,12 @@ type OrderList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OrderList. +func (ol OrderList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OrderListIterator provides access to a complete listing of Order values. type OrderListIterator struct { i int @@ -5625,6 +5751,12 @@ type ResourceTypeSku struct { Skus *[]SkuInformation `json:"skus,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceTypeSku. +func (rts ResourceTypeSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicRole compute role. type BasicRole interface { AsCloudEdgeManagementRole() (*CloudEdgeManagementRole, bool) @@ -5750,6 +5882,12 @@ type RoleList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RoleList. +func (rl RoleList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UnmarshalJSON is the custom unmarshaler for RoleList struct. func (rl *RoleList) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -6231,6 +6369,12 @@ type ShareList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ShareList. +func (sl ShareList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ShareListIterator provides access to a complete listing of Share values. type ShareListIterator struct { i int @@ -6570,6 +6714,12 @@ type SkuCapability struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SkuCapability. +func (sc SkuCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuCost the metadata for retrieving price info. type SkuCost struct { // MeterID - READ-ONLY; Used for querying price from commerce. @@ -6580,6 +6730,12 @@ type SkuCost struct { ExtendedUnit *string `json:"extendedUnit,omitempty"` } +// MarshalJSON is the custom marshaler for SkuCost. +func (sc SkuCost) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuInformation sku information type SkuInformation struct { // Name - READ-ONLY; The sku name. @@ -6602,6 +6758,12 @@ type SkuInformation struct { RequiredFeatures *[]string `json:"requiredFeatures,omitempty"` } +// MarshalJSON is the custom marshaler for SkuInformation. +func (si SkuInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuInformationList list of SKU Information objects type SkuInformationList struct { // Value - READ-ONLY; List of ResourceTypeSku objects @@ -6610,6 +6772,12 @@ type SkuInformationList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SkuInformationList. +func (sil SkuInformationList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuList list of SKU Information objects. type SkuList struct { autorest.Response `json:"-"` @@ -6619,6 +6787,12 @@ type SkuList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SkuList. +func (sl SkuList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuListIterator provides access to a complete listing of SkuType values. type SkuListIterator struct { i int @@ -6779,6 +6953,12 @@ type SkuLocationInfo struct { Sites *[]string `json:"sites,omitempty"` } +// MarshalJSON is the custom marshaler for SkuLocationInfo. +func (sli SkuLocationInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuType the Sku information. type SkuType struct { // ResourceType - READ-ONLY; The type of the resource. @@ -6813,6 +6993,12 @@ type SkuType struct { Capabilities *[]SkuCapability `json:"capabilities,omitempty"` } +// MarshalJSON is the custom marshaler for SkuType. +func (st SkuType) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageAccount represents a Storage Account on the Data Box Edge/Gateway device. type StorageAccount struct { autorest.Response `json:"-"` @@ -6996,6 +7182,12 @@ type StorageAccountCredentialList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for StorageAccountCredentialList. +func (sacl StorageAccountCredentialList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageAccountCredentialListIterator provides access to a complete listing of StorageAccountCredential // values. type StorageAccountCredentialListIterator struct { @@ -7256,6 +7448,12 @@ type StorageAccountList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for StorageAccountList. +func (sal StorageAccountList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageAccountListIterator provides access to a complete listing of StorageAccount values. type StorageAccountListIterator struct { i int @@ -7674,6 +7872,12 @@ type TriggerList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for TriggerList. +func (tl TriggerList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UnmarshalJSON is the custom unmarshaler for TriggerList struct. func (tl *TriggerList) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -7969,6 +8173,12 @@ type UpdateDownloadProgress struct { NumberOfUpdatesDownloaded *int32 `json:"numberOfUpdatesDownloaded,omitempty"` } +// MarshalJSON is the custom marshaler for UpdateDownloadProgress. +func (UDP UpdateDownloadProgress) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpdateInstallProgress progress details during installation of updates. type UpdateInstallProgress struct { // PercentComplete - READ-ONLY; Percentage completed. @@ -7979,6 +8189,12 @@ type UpdateInstallProgress struct { NumberOfUpdatesInstalled *int32 `json:"numberOfUpdatesInstalled,omitempty"` } +// MarshalJSON is the custom marshaler for UpdateInstallProgress. +func (uip UpdateInstallProgress) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpdateSummary details about ongoing updates and availability of updates on the device. type UpdateSummary struct { autorest.Response `json:"-"` @@ -8281,6 +8497,12 @@ type UserList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for UserList. +func (ul UserList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UserListIterator provides access to a complete listing of User values. type UserListIterator struct { i int diff --git a/services/databricks/mgmt/2018-04-01/databricks/CHANGELOG.md b/services/databricks/mgmt/2018-04-01/databricks/CHANGELOG.md index 52911e4cc5e4..64dc000ae228 100644 --- a/services/databricks/mgmt/2018-04-01/databricks/CHANGELOG.md +++ b/services/databricks/mgmt/2018-04-01/databricks/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. CreatedBy.MarshalJSON() ([]byte, error) +1. ManagedIdentityConfiguration.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/databricks/mgmt/2018-04-01/databricks/_meta.json b/services/databricks/mgmt/2018-04-01/databricks/_meta.json index eee1f5f6726e..19b01f3e0927 100644 --- a/services/databricks/mgmt/2018-04-01/databricks/_meta.json +++ b/services/databricks/mgmt/2018-04-01/databricks/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/databricks/resource-manager/readme.md", "tag": "package-2018-04-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-04-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/databricks/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-04-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/databricks/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/databricks/mgmt/2018-04-01/databricks/models.go b/services/databricks/mgmt/2018-04-01/databricks/models.go index 5f0128188269..58d1f4a4d9e8 100644 --- a/services/databricks/mgmt/2018-04-01/databricks/models.go +++ b/services/databricks/mgmt/2018-04-01/databricks/models.go @@ -38,6 +38,12 @@ type CreatedBy struct { ApplicationID *uuid.UUID `json:"applicationId,omitempty"` } +// MarshalJSON is the custom marshaler for CreatedBy. +func (cb CreatedBy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Encryption the object that contains details of encryption used on the workspace. type Encryption struct { // KeySource - The encryption keySource (provider). Possible values (case-insensitive): Default, Microsoft.Keyvault. Possible values include: 'Default', 'MicrosoftKeyvault' @@ -88,6 +94,12 @@ type ManagedIdentityConfiguration struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedIdentityConfiguration. +func (mic ManagedIdentityConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation REST API operation type Operation struct { // Name - Operation name: {provider}/{resource}/{operation} @@ -276,6 +288,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Sku SKU for the resource. type Sku struct { // Name - The SKU name. diff --git a/services/datacatalog/mgmt/2016-03-30/datacatalog/_meta.json b/services/datacatalog/mgmt/2016-03-30/datacatalog/_meta.json index a4a711cf95dc..6b427f56cdd8 100644 --- a/services/datacatalog/mgmt/2016-03-30/datacatalog/_meta.json +++ b/services/datacatalog/mgmt/2016-03-30/datacatalog/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/datacatalog/resource-manager/readme.md", "tag": "package-2016-03-30", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-03-30 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datacatalog/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-03-30 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datacatalog/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/datadog/mgmt/2021-03-01/datadog/CHANGELOG.md b/services/datadog/mgmt/2021-03-01/datadog/CHANGELOG.md index 52911e4cc5e4..6f6b053fed7c 100644 --- a/services/datadog/mgmt/2021-03-01/datadog/CHANGELOG.md +++ b/services/datadog/mgmt/2021-03-01/datadog/CHANGELOG.md @@ -1,2 +1,98 @@ # Change History +## Breaking Changes + +### Removed Constants + +1. CreatedByType.Application +1. CreatedByType.Key +1. CreatedByType.ManagedIdentity +1. CreatedByType.User +1. LiftrResourceCategories.MonitorLogs +1. LiftrResourceCategories.Unknown +1. ManagedIdentityTypes.SystemAssigned +1. ManagedIdentityTypes.UserAssigned +1. MarketplaceSubscriptionStatus.Active +1. MarketplaceSubscriptionStatus.Provisioning +1. MarketplaceSubscriptionStatus.Suspended +1. MarketplaceSubscriptionStatus.Unsubscribed +1. MonitoringStatus.Disabled +1. MonitoringStatus.Enabled +1. ProvisioningState.Accepted +1. ProvisioningState.Canceled +1. ProvisioningState.Creating +1. ProvisioningState.Deleted +1. ProvisioningState.Deleting +1. ProvisioningState.Failed +1. ProvisioningState.NotSpecified +1. ProvisioningState.Succeeded +1. ProvisioningState.Updating +1. SingleSignOnStates.Disable +1. SingleSignOnStates.Enable +1. SingleSignOnStates.Existing +1. SingleSignOnStates.Initial +1. TagAction.Exclude +1. TagAction.Include + +### Signature Changes + +#### Funcs + +1. MonitorsClient.Update + - Returns + - From: MonitorResource, error + - To: MonitorsUpdateFuture, error +1. MonitorsClient.UpdateSender + - Returns + - From: *http.Response, error + - To: MonitorsUpdateFuture, error + +## Additive Changes + +### New Constants + +1. CreatedByType.CreatedByTypeApplication +1. CreatedByType.CreatedByTypeKey +1. CreatedByType.CreatedByTypeManagedIdentity +1. CreatedByType.CreatedByTypeUser +1. LiftrResourceCategories.LiftrResourceCategoriesMonitorLogs +1. LiftrResourceCategories.LiftrResourceCategoriesUnknown +1. ManagedIdentityTypes.ManagedIdentityTypesSystemAssigned +1. ManagedIdentityTypes.ManagedIdentityTypesUserAssigned +1. MarketplaceSubscriptionStatus.MarketplaceSubscriptionStatusActive +1. MarketplaceSubscriptionStatus.MarketplaceSubscriptionStatusProvisioning +1. MarketplaceSubscriptionStatus.MarketplaceSubscriptionStatusSuspended +1. MarketplaceSubscriptionStatus.MarketplaceSubscriptionStatusUnsubscribed +1. MonitoringStatus.MonitoringStatusDisabled +1. MonitoringStatus.MonitoringStatusEnabled +1. ProvisioningState.ProvisioningStateAccepted +1. ProvisioningState.ProvisioningStateCanceled +1. ProvisioningState.ProvisioningStateCreating +1. ProvisioningState.ProvisioningStateDeleted +1. ProvisioningState.ProvisioningStateDeleting +1. ProvisioningState.ProvisioningStateFailed +1. ProvisioningState.ProvisioningStateNotSpecified +1. ProvisioningState.ProvisioningStateSucceeded +1. ProvisioningState.ProvisioningStateUpdating +1. SingleSignOnStates.SingleSignOnStatesDisable +1. SingleSignOnStates.SingleSignOnStatesEnable +1. SingleSignOnStates.SingleSignOnStatesExisting +1. SingleSignOnStates.SingleSignOnStatesInitial +1. TagAction.TagActionExclude +1. TagAction.TagActionInclude + +### New Funcs + +1. *MonitorsUpdateFuture.UnmarshalJSON([]byte) error +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorDetail.MarshalJSON() ([]byte, error) + +### Struct Changes + +#### New Structs + +1. MonitorsUpdateFuture + +#### New Struct Fields + +1. MonitorResourceUpdateParameters.Sku diff --git a/services/datadog/mgmt/2021-03-01/datadog/_meta.json b/services/datadog/mgmt/2021-03-01/datadog/_meta.json index 33043da283f1..b13f1b549b91 100644 --- a/services/datadog/mgmt/2021-03-01/datadog/_meta.json +++ b/services/datadog/mgmt/2021-03-01/datadog/_meta.json @@ -1,11 +1,11 @@ { - "commit": "8d3b22458da4bb9309c0207c2ebc1903de741249", + "commit": "394395ed0bdc1c5c05cb37a031379ca03bfebbb5", "readme": "/_/azure-rest-api-specs/specification/datadog/resource-manager/readme.md", "tag": "package-2021-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2021-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datadog/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2021-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/datadog/resource-manager/readme.md", "additional_properties": { - "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" + "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix" } } \ No newline at end of file diff --git a/services/datadog/mgmt/2021-03-01/datadog/datadogapi/interfaces.go b/services/datadog/mgmt/2021-03-01/datadog/datadogapi/interfaces.go index e8bb1d40f8d5..9e85fc075d1b 100644 --- a/services/datadog/mgmt/2021-03-01/datadog/datadogapi/interfaces.go +++ b/services/datadog/mgmt/2021-03-01/datadog/datadogapi/interfaces.go @@ -41,7 +41,7 @@ type MonitorsClientAPI interface { ListMonitoredResourcesComplete(ctx context.Context, resourceGroupName string, monitorName string) (result datadog.MonitoredResourceListResponseIterator, err error) RefreshSetPasswordLink(ctx context.Context, resourceGroupName string, monitorName string) (result datadog.SetPasswordLink, err error) SetDefaultKey(ctx context.Context, resourceGroupName string, monitorName string, body *datadog.APIKey) (result autorest.Response, err error) - Update(ctx context.Context, resourceGroupName string, monitorName string, body *datadog.MonitorResourceUpdateParameters) (result datadog.MonitorResource, err error) + Update(ctx context.Context, resourceGroupName string, monitorName string, body *datadog.MonitorResourceUpdateParameters) (result datadog.MonitorsUpdateFuture, err error) } var _ MonitorsClientAPI = (*datadog.MonitorsClient)(nil) diff --git a/services/datadog/mgmt/2021-03-01/datadog/enums.go b/services/datadog/mgmt/2021-03-01/datadog/enums.go index b097da0fc26d..5b11464d49bb 100644 --- a/services/datadog/mgmt/2021-03-01/datadog/enums.go +++ b/services/datadog/mgmt/2021-03-01/datadog/enums.go @@ -10,144 +10,144 @@ package datadog type CreatedByType string const ( - // Application ... - Application CreatedByType = "Application" - // Key ... - Key CreatedByType = "Key" - // ManagedIdentity ... - ManagedIdentity CreatedByType = "ManagedIdentity" - // User ... - User CreatedByType = "User" + // CreatedByTypeApplication ... + CreatedByTypeApplication CreatedByType = "Application" + // CreatedByTypeKey ... + CreatedByTypeKey CreatedByType = "Key" + // CreatedByTypeManagedIdentity ... + CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" + // CreatedByTypeUser ... + CreatedByTypeUser CreatedByType = "User" ) // PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type. func PossibleCreatedByTypeValues() []CreatedByType { - return []CreatedByType{Application, Key, ManagedIdentity, User} + return []CreatedByType{CreatedByTypeApplication, CreatedByTypeKey, CreatedByTypeManagedIdentity, CreatedByTypeUser} } // LiftrResourceCategories enumerates the values for liftr resource categories. type LiftrResourceCategories string const ( - // MonitorLogs ... - MonitorLogs LiftrResourceCategories = "MonitorLogs" - // Unknown ... - Unknown LiftrResourceCategories = "Unknown" + // LiftrResourceCategoriesMonitorLogs ... + LiftrResourceCategoriesMonitorLogs LiftrResourceCategories = "MonitorLogs" + // LiftrResourceCategoriesUnknown ... + LiftrResourceCategoriesUnknown LiftrResourceCategories = "Unknown" ) // PossibleLiftrResourceCategoriesValues returns an array of possible values for the LiftrResourceCategories const type. func PossibleLiftrResourceCategoriesValues() []LiftrResourceCategories { - return []LiftrResourceCategories{MonitorLogs, Unknown} + return []LiftrResourceCategories{LiftrResourceCategoriesMonitorLogs, LiftrResourceCategoriesUnknown} } // ManagedIdentityTypes enumerates the values for managed identity types. type ManagedIdentityTypes string const ( - // SystemAssigned ... - SystemAssigned ManagedIdentityTypes = "SystemAssigned" - // UserAssigned ... - UserAssigned ManagedIdentityTypes = "UserAssigned" + // ManagedIdentityTypesSystemAssigned ... + ManagedIdentityTypesSystemAssigned ManagedIdentityTypes = "SystemAssigned" + // ManagedIdentityTypesUserAssigned ... + ManagedIdentityTypesUserAssigned ManagedIdentityTypes = "UserAssigned" ) // PossibleManagedIdentityTypesValues returns an array of possible values for the ManagedIdentityTypes const type. func PossibleManagedIdentityTypesValues() []ManagedIdentityTypes { - return []ManagedIdentityTypes{SystemAssigned, UserAssigned} + return []ManagedIdentityTypes{ManagedIdentityTypesSystemAssigned, ManagedIdentityTypesUserAssigned} } // MarketplaceSubscriptionStatus enumerates the values for marketplace subscription status. type MarketplaceSubscriptionStatus string const ( - // Active ... - Active MarketplaceSubscriptionStatus = "Active" - // Provisioning ... - Provisioning MarketplaceSubscriptionStatus = "Provisioning" - // Suspended ... - Suspended MarketplaceSubscriptionStatus = "Suspended" - // Unsubscribed ... - Unsubscribed MarketplaceSubscriptionStatus = "Unsubscribed" + // MarketplaceSubscriptionStatusActive ... + MarketplaceSubscriptionStatusActive MarketplaceSubscriptionStatus = "Active" + // MarketplaceSubscriptionStatusProvisioning ... + MarketplaceSubscriptionStatusProvisioning MarketplaceSubscriptionStatus = "Provisioning" + // MarketplaceSubscriptionStatusSuspended ... + MarketplaceSubscriptionStatusSuspended MarketplaceSubscriptionStatus = "Suspended" + // MarketplaceSubscriptionStatusUnsubscribed ... + MarketplaceSubscriptionStatusUnsubscribed MarketplaceSubscriptionStatus = "Unsubscribed" ) // PossibleMarketplaceSubscriptionStatusValues returns an array of possible values for the MarketplaceSubscriptionStatus const type. func PossibleMarketplaceSubscriptionStatusValues() []MarketplaceSubscriptionStatus { - return []MarketplaceSubscriptionStatus{Active, Provisioning, Suspended, Unsubscribed} + return []MarketplaceSubscriptionStatus{MarketplaceSubscriptionStatusActive, MarketplaceSubscriptionStatusProvisioning, MarketplaceSubscriptionStatusSuspended, MarketplaceSubscriptionStatusUnsubscribed} } // MonitoringStatus enumerates the values for monitoring status. type MonitoringStatus string const ( - // Disabled ... - Disabled MonitoringStatus = "Disabled" - // Enabled ... - Enabled MonitoringStatus = "Enabled" + // MonitoringStatusDisabled ... + MonitoringStatusDisabled MonitoringStatus = "Disabled" + // MonitoringStatusEnabled ... + MonitoringStatusEnabled MonitoringStatus = "Enabled" ) // PossibleMonitoringStatusValues returns an array of possible values for the MonitoringStatus const type. func PossibleMonitoringStatusValues() []MonitoringStatus { - return []MonitoringStatus{Disabled, Enabled} + return []MonitoringStatus{MonitoringStatusDisabled, MonitoringStatusEnabled} } // ProvisioningState enumerates the values for provisioning state. type ProvisioningState string const ( - // Accepted ... - Accepted ProvisioningState = "Accepted" - // Canceled ... - Canceled ProvisioningState = "Canceled" - // Creating ... - Creating ProvisioningState = "Creating" - // Deleted ... - Deleted ProvisioningState = "Deleted" - // Deleting ... - Deleting ProvisioningState = "Deleting" - // Failed ... - Failed ProvisioningState = "Failed" - // NotSpecified ... - NotSpecified ProvisioningState = "NotSpecified" - // Succeeded ... - Succeeded ProvisioningState = "Succeeded" - // Updating ... - Updating ProvisioningState = "Updating" + // ProvisioningStateAccepted ... + ProvisioningStateAccepted ProvisioningState = "Accepted" + // ProvisioningStateCanceled ... + ProvisioningStateCanceled ProvisioningState = "Canceled" + // ProvisioningStateCreating ... + ProvisioningStateCreating ProvisioningState = "Creating" + // ProvisioningStateDeleted ... + ProvisioningStateDeleted ProvisioningState = "Deleted" + // ProvisioningStateDeleting ... + ProvisioningStateDeleting ProvisioningState = "Deleting" + // ProvisioningStateFailed ... + ProvisioningStateFailed ProvisioningState = "Failed" + // ProvisioningStateNotSpecified ... + ProvisioningStateNotSpecified ProvisioningState = "NotSpecified" + // ProvisioningStateSucceeded ... + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + // ProvisioningStateUpdating ... + ProvisioningStateUpdating ProvisioningState = "Updating" ) // PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type. func PossibleProvisioningStateValues() []ProvisioningState { - return []ProvisioningState{Accepted, Canceled, Creating, Deleted, Deleting, Failed, NotSpecified, Succeeded, Updating} + return []ProvisioningState{ProvisioningStateAccepted, ProvisioningStateCanceled, ProvisioningStateCreating, ProvisioningStateDeleted, ProvisioningStateDeleting, ProvisioningStateFailed, ProvisioningStateNotSpecified, ProvisioningStateSucceeded, ProvisioningStateUpdating} } // SingleSignOnStates enumerates the values for single sign on states. type SingleSignOnStates string const ( - // Disable ... - Disable SingleSignOnStates = "Disable" - // Enable ... - Enable SingleSignOnStates = "Enable" - // Existing ... - Existing SingleSignOnStates = "Existing" - // Initial ... - Initial SingleSignOnStates = "Initial" + // SingleSignOnStatesDisable ... + SingleSignOnStatesDisable SingleSignOnStates = "Disable" + // SingleSignOnStatesEnable ... + SingleSignOnStatesEnable SingleSignOnStates = "Enable" + // SingleSignOnStatesExisting ... + SingleSignOnStatesExisting SingleSignOnStates = "Existing" + // SingleSignOnStatesInitial ... + SingleSignOnStatesInitial SingleSignOnStates = "Initial" ) // PossibleSingleSignOnStatesValues returns an array of possible values for the SingleSignOnStates const type. func PossibleSingleSignOnStatesValues() []SingleSignOnStates { - return []SingleSignOnStates{Disable, Enable, Existing, Initial} + return []SingleSignOnStates{SingleSignOnStatesDisable, SingleSignOnStatesEnable, SingleSignOnStatesExisting, SingleSignOnStatesInitial} } // TagAction enumerates the values for tag action. type TagAction string const ( - // Exclude ... - Exclude TagAction = "Exclude" - // Include ... - Include TagAction = "Include" + // TagActionExclude ... + TagActionExclude TagAction = "Exclude" + // TagActionInclude ... + TagActionInclude TagAction = "Include" ) // PossibleTagActionValues returns an array of possible values for the TagAction const type. func PossibleTagActionValues() []TagAction { - return []TagAction{Exclude, Include} + return []TagAction{TagActionExclude, TagActionInclude} } diff --git a/services/datadog/mgmt/2021-03-01/datadog/models.go b/services/datadog/mgmt/2021-03-01/datadog/models.go index c5a4ea08f22c..3f10e0dfcad1 100644 --- a/services/datadog/mgmt/2021-03-01/datadog/models.go +++ b/services/datadog/mgmt/2021-03-01/datadog/models.go @@ -403,6 +403,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetail the error detail. type ErrorDetail struct { // Code - READ-ONLY; The error code. @@ -417,6 +423,12 @@ type ErrorDetail struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetail. +func (ed ErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.). type ErrorResponse struct { @@ -431,7 +443,7 @@ type FilteringTag struct { Name *string `json:"name,omitempty"` // Value - The value of the tag. Value *string `json:"value,omitempty"` - // Action - Possible values include: 'Include', 'Exclude' + // Action - Possible values include: 'TagActionInclude', 'TagActionExclude' Action TagAction `json:"action,omitempty"` } @@ -619,7 +631,7 @@ type IdentityProperties struct { PrincipalID *string `json:"principalId,omitempty"` // TenantID - READ-ONLY; The tenant ID of resource. TenantID *string `json:"tenantId,omitempty"` - // Type - Possible values include: 'SystemAssigned', 'UserAssigned' + // Type - Possible values include: 'ManagedIdentityTypesSystemAssigned', 'ManagedIdentityTypesUserAssigned' Type ManagedIdentityTypes `json:"type,omitempty"` } @@ -1190,7 +1202,7 @@ func NewMonitoringTagRulesListResponsePage(cur MonitoringTagRulesListResponse, g // MonitoringTagRulesProperties definition of the properties for a TagRules resource. type MonitoringTagRulesProperties struct { - // ProvisioningState - Possible values include: 'Accepted', 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled', 'Deleted', 'NotSpecified' + // ProvisioningState - Possible values include: 'ProvisioningStateAccepted', 'ProvisioningStateCreating', 'ProvisioningStateUpdating', 'ProvisioningStateDeleting', 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled', 'ProvisioningStateDeleted', 'ProvisioningStateNotSpecified' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` LogRules *LogRules `json:"logRules,omitempty"` MetricRules *MetricRules `json:"metricRules,omitempty"` @@ -1198,15 +1210,15 @@ type MonitoringTagRulesProperties struct { // MonitorProperties properties specific to the monitor resource. type MonitorProperties struct { - // ProvisioningState - Possible values include: 'Accepted', 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled', 'Deleted', 'NotSpecified' + // ProvisioningState - Possible values include: 'ProvisioningStateAccepted', 'ProvisioningStateCreating', 'ProvisioningStateUpdating', 'ProvisioningStateDeleting', 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled', 'ProvisioningStateDeleted', 'ProvisioningStateNotSpecified' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` - // MonitoringStatus - Possible values include: 'Enabled', 'Disabled' + // MonitoringStatus - Possible values include: 'MonitoringStatusEnabled', 'MonitoringStatusDisabled' MonitoringStatus MonitoringStatus `json:"monitoringStatus,omitempty"` - // MarketplaceSubscriptionStatus - Possible values include: 'Provisioning', 'Active', 'Suspended', 'Unsubscribed' + // MarketplaceSubscriptionStatus - Possible values include: 'MarketplaceSubscriptionStatusProvisioning', 'MarketplaceSubscriptionStatusActive', 'MarketplaceSubscriptionStatusSuspended', 'MarketplaceSubscriptionStatusUnsubscribed' MarketplaceSubscriptionStatus MarketplaceSubscriptionStatus `json:"marketplaceSubscriptionStatus,omitempty"` DatadogOrganizationProperties *OrganizationProperties `json:"datadogOrganizationProperties,omitempty"` UserInfo *UserInfo `json:"userInfo,omitempty"` - // LiftrResourceCategory - Possible values include: 'Unknown', 'MonitorLogs' + // LiftrResourceCategory - Possible values include: 'LiftrResourceCategoriesUnknown', 'LiftrResourceCategoriesMonitorLogs' LiftrResourceCategory LiftrResourceCategories `json:"liftrResourceCategory,omitempty"` // LiftrResourcePreference - READ-ONLY; The priority of the resource. LiftrResourcePreference *int32 `json:"liftrResourcePreference,omitempty"` @@ -1439,6 +1451,7 @@ type MonitorResourceUpdateParameters struct { Properties *MonitorUpdateProperties `json:"properties,omitempty"` // Tags - The new tags of the monitor resource. Tags map[string]*string `json:"tags"` + Sku *ResourceSku `json:"sku,omitempty"` } // MarshalJSON is the custom marshaler for MonitorResourceUpdateParameters. @@ -1450,6 +1463,9 @@ func (mrup MonitorResourceUpdateParameters) MarshalJSON() ([]byte, error) { if mrup.Tags != nil { objectMap["tags"] = mrup.Tags } + if mrup.Sku != nil { + objectMap["sku"] = mrup.Sku + } return json.Marshal(objectMap) } @@ -1533,10 +1549,53 @@ func (future *MonitorsDeleteFuture) result(client MonitorsClient) (ar autorest.R return } +// MonitorsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type MonitorsUpdateFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(MonitorsClient) (MonitorResource, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *MonitorsUpdateFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for MonitorsUpdateFuture.Result. +func (future *MonitorsUpdateFuture) result(client MonitorsClient) (mr MonitorResource, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "datadog.MonitorsUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + mr.Response.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("datadog.MonitorsUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if mr.Response.Response, err = future.GetResult(sender); err == nil && mr.Response.Response.StatusCode != http.StatusNoContent { + mr, err = client.UpdateResponder(mr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "datadog.MonitorsUpdateFuture", "Result", mr.Response.Response, "Failure responding to request") + } + } + return +} + // MonitorUpdateProperties the set of properties that can be update in a PATCH request to a monitor // resource. type MonitorUpdateProperties struct { - // MonitoringStatus - Possible values include: 'Enabled', 'Disabled' + // MonitoringStatus - Possible values include: 'MonitoringStatusEnabled', 'MonitoringStatusDisabled' MonitoringStatus MonitoringStatus `json:"monitoringStatus,omitempty"` } @@ -1821,9 +1880,9 @@ func (future *SingleSignOnConfigurationsCreateOrUpdateFuture) result(client Sing // SingleSignOnProperties ... type SingleSignOnProperties struct { - // ProvisioningState - Possible values include: 'Accepted', 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled', 'Deleted', 'NotSpecified' + // ProvisioningState - Possible values include: 'ProvisioningStateAccepted', 'ProvisioningStateCreating', 'ProvisioningStateUpdating', 'ProvisioningStateDeleting', 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled', 'ProvisioningStateDeleted', 'ProvisioningStateNotSpecified' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` - // SingleSignOnState - Possible values include: 'Initial', 'Enable', 'Disable', 'Existing' + // SingleSignOnState - Possible values include: 'SingleSignOnStatesInitial', 'SingleSignOnStatesEnable', 'SingleSignOnStatesDisable', 'SingleSignOnStatesExisting' SingleSignOnState SingleSignOnStates `json:"singleSignOnState,omitempty"` // EnterpriseAppID - The Id of the Enterprise App used for Single sign-on. EnterpriseAppID *string `json:"enterpriseAppId,omitempty"` @@ -2033,13 +2092,13 @@ func NewSingleSignOnResourceListResponsePage(cur SingleSignOnResourceListRespons type SystemData struct { // CreatedBy - The identity that created the resource. CreatedBy *string `json:"createdBy,omitempty"` - // CreatedByType - The type of identity that created the resource. Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + // CreatedByType - The type of identity that created the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey' CreatedByType CreatedByType `json:"createdByType,omitempty"` // CreatedAt - The timestamp of resource creation (UTC). CreatedAt *date.Time `json:"createdAt,omitempty"` // LastModifiedBy - The identity that last modified the resource. LastModifiedBy *string `json:"lastModifiedBy,omitempty"` - // LastModifiedByType - The type of identity that last modified the resource. Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + // LastModifiedByType - The type of identity that last modified the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey' LastModifiedByType CreatedByType `json:"lastModifiedByType,omitempty"` // LastModifiedAt - The timestamp of resource last modification (UTC) LastModifiedAt *date.Time `json:"lastModifiedAt,omitempty"` diff --git a/services/datadog/mgmt/2021-03-01/datadog/monitors.go b/services/datadog/mgmt/2021-03-01/datadog/monitors.go index fedf8a611b75..ccab1584bd1b 100644 --- a/services/datadog/mgmt/2021-03-01/datadog/monitors.go +++ b/services/datadog/mgmt/2021-03-01/datadog/monitors.go @@ -1343,13 +1343,13 @@ func (client MonitorsClient) SetDefaultKeyResponder(resp *http.Response) (result // Parameters: // resourceGroupName - the name of the resource group. The name is case insensitive. // monitorName - monitor resource name -func (client MonitorsClient) Update(ctx context.Context, resourceGroupName string, monitorName string, body *MonitorResourceUpdateParameters) (result MonitorResource, err error) { +func (client MonitorsClient) Update(ctx context.Context, resourceGroupName string, monitorName string, body *MonitorResourceUpdateParameters) (result MonitorsUpdateFuture, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/MonitorsClient.Update") defer func() { sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode } tracing.EndSpan(ctx, sc, err) }() @@ -1370,16 +1370,9 @@ func (client MonitorsClient) Update(ctx context.Context, resourceGroupName strin return } - resp, err := client.UpdateSender(req) + result, err = client.UpdateSender(req) if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "datadog.MonitorsClient", "Update", resp, "Failure sending request") - return - } - - result, err = client.UpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datadog.MonitorsClient", "Update", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "datadog.MonitorsClient", "Update", nil, "Failure sending request") return } @@ -1414,8 +1407,17 @@ func (client MonitorsClient) UpdatePreparer(ctx context.Context, resourceGroupNa // UpdateSender sends the Update request. The method will close the // http.Response Body if it receives an error. -func (client MonitorsClient) UpdateSender(req *http.Request) (*http.Response, error) { - return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +func (client MonitorsClient) UpdateSender(req *http.Request) (future MonitorsUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return } // UpdateResponder handles the response to the Update request. The method always @@ -1423,7 +1425,7 @@ func (client MonitorsClient) UpdateSender(req *http.Request) (*http.Response, er func (client MonitorsClient) UpdateResponder(resp *http.Response) (result MonitorResource, err error) { err = autorest.Respond( resp, - azure.WithErrorUnlessStatusCode(http.StatusOK), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) result.Response = autorest.Response{Response: resp} diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/CHANGELOG.md b/services/datafactory/mgmt/2018-06-01/datafactory/CHANGELOG.md index a6cb90317ee1..3d4b067d2494 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/CHANGELOG.md +++ b/services/datafactory/mgmt/2018-06-01/datafactory/CHANGELOG.md @@ -4,6 +4,31 @@ ### Removed Constants +1. AuthenticationType.AuthenticationTypeAuthenticationTypeAnonymous +1. AuthenticationType.AuthenticationTypeAuthenticationTypeBasic +1. AuthenticationType.AuthenticationTypeAuthenticationTypeClientCertificate +1. AuthenticationType.AuthenticationTypeAuthenticationTypeWebLinkedServiceTypeProperties +1. AuthorizationType.AuthorizationTypeAuthorizationTypeKey +1. AuthorizationType.AuthorizationTypeAuthorizationTypeLinkedIntegrationRuntimeType +1. AuthorizationType.AuthorizationTypeAuthorizationTypeRBAC +1. Type.TypeTypeAzureKeyVaultSecret +1. Type.TypeTypeSecretBase +1. Type.TypeTypeSecureString + +### Signature Changes + +#### Struct Fields + +1. CommonDataServiceForAppsLinkedServiceTypeProperties.AuthenticationType changed type from DynamicsAuthenticationType to interface{} +1. CommonDataServiceForAppsLinkedServiceTypeProperties.DeploymentType changed type from DynamicsDeploymentType to interface{} +1. DynamicsCrmLinkedServiceTypeProperties.AuthenticationType changed type from DynamicsAuthenticationType to interface{} +1. DynamicsCrmLinkedServiceTypeProperties.DeploymentType changed type from DynamicsDeploymentType to interface{} +1. JSONWriteSettings.FilePattern changed type from JSONWriteFilePattern to interface{} + +## Additive Changes + +### New Constants + 1. AuthenticationType.AuthenticationTypeAnonymous 1. AuthenticationType.AuthenticationTypeBasic 1. AuthenticationType.AuthenticationTypeClientCertificate @@ -11,1241 +36,214 @@ 1. AuthorizationType.AuthorizationTypeKey 1. AuthorizationType.AuthorizationTypeLinkedIntegrationRuntimeType 1. AuthorizationType.AuthorizationTypeRBAC -1. AvroCompressionCodec.Bzip2 -1. AvroCompressionCodec.Deflate -1. AvroCompressionCodec.None -1. AvroCompressionCodec.Snappy -1. AvroCompressionCodec.Xz -1. AzureFunctionActivityMethod.DELETE -1. AzureFunctionActivityMethod.GET -1. AzureFunctionActivityMethod.HEAD -1. AzureFunctionActivityMethod.OPTIONS -1. AzureFunctionActivityMethod.POST -1. AzureFunctionActivityMethod.PUT -1. AzureFunctionActivityMethod.TRACE -1. AzureSearchIndexWriteBehaviorType.Merge -1. AzureSearchIndexWriteBehaviorType.Upload -1. BlobEventTypes.MicrosoftStorageBlobCreated -1. BlobEventTypes.MicrosoftStorageBlobDeleted -1. CassandraSourceReadConsistencyLevels.ALL -1. CassandraSourceReadConsistencyLevels.EACHQUORUM -1. CassandraSourceReadConsistencyLevels.LOCALONE -1. CassandraSourceReadConsistencyLevels.LOCALQUORUM -1. CassandraSourceReadConsistencyLevels.LOCALSERIAL -1. CassandraSourceReadConsistencyLevels.ONE -1. CassandraSourceReadConsistencyLevels.QUORUM -1. CassandraSourceReadConsistencyLevels.SERIAL -1. CassandraSourceReadConsistencyLevels.THREE -1. CassandraSourceReadConsistencyLevels.TWO -1. CopyBehaviorType.FlattenHierarchy -1. CopyBehaviorType.MergeFiles -1. CopyBehaviorType.PreserveHierarchy -1. CosmosDbConnectionMode.Direct -1. CosmosDbConnectionMode.Gateway -1. CosmosDbServicePrincipalCredentialType.ServicePrincipalCert -1. CosmosDbServicePrincipalCredentialType.ServicePrincipalKey -1. DataFlowComputeType.ComputeOptimized -1. DataFlowComputeType.General -1. DataFlowComputeType.MemoryOptimized -1. DataFlowDebugCommandType.ExecuteExpressionQuery -1. DataFlowDebugCommandType.ExecutePreviewQuery -1. DataFlowDebugCommandType.ExecuteStatisticsQuery -1. DayOfWeek.Friday -1. DayOfWeek.Monday -1. DayOfWeek.Saturday -1. DayOfWeek.Sunday -1. DayOfWeek.Thursday -1. DayOfWeek.Tuesday -1. DayOfWeek.Wednesday -1. Db2AuthenticationType.Basic -1. DependencyCondition.Completed -1. DependencyCondition.Failed -1. DependencyCondition.Skipped -1. DependencyCondition.Succeeded -1. DynamicsAuthenticationType.AADServicePrincipal -1. DynamicsAuthenticationType.Ifd -1. DynamicsAuthenticationType.Office365 -1. DynamicsDeploymentType.OnPremisesWithIfd -1. DynamicsDeploymentType.Online -1. DynamicsSinkWriteBehavior.Upsert -1. EventSubscriptionStatus.Deprovisioning -1. EventSubscriptionStatus.Disabled -1. EventSubscriptionStatus.Enabled -1. EventSubscriptionStatus.Provisioning -1. EventSubscriptionStatus.Unknown -1. FactoryIdentityType.SystemAssigned -1. FactoryIdentityType.SystemAssignedUserAssigned -1. FactoryIdentityType.UserAssigned -1. GlobalParameterType.Array -1. GlobalParameterType.Bool -1. GlobalParameterType.Float -1. GlobalParameterType.Int -1. GlobalParameterType.Object -1. GlobalParameterType.String -1. GoogleAdWordsAuthenticationType.ServiceAuthentication -1. GoogleAdWordsAuthenticationType.UserAuthentication -1. HiveAuthenticationType.Anonymous -1. HiveAuthenticationType.Username -1. HiveAuthenticationType.UsernameAndPassword -1. HiveAuthenticationType.WindowsAzureHDInsightService -1. HiveServerType.HiveServer1 -1. HiveServerType.HiveServer2 -1. HiveServerType.HiveThriftServer -1. HiveThriftTransportProtocol.Binary -1. HiveThriftTransportProtocol.HTTP -1. HiveThriftTransportProtocol.SASL -1. IntegrationRuntimeAuthKeyName.AuthKey1 -1. IntegrationRuntimeAuthKeyName.AuthKey2 -1. IntegrationRuntimeAutoUpdate.Off -1. IntegrationRuntimeAutoUpdate.On -1. IntegrationRuntimeEdition.Enterprise -1. IntegrationRuntimeEdition.Standard -1. IntegrationRuntimeInternalChannelEncryptionMode.NotEncrypted -1. IntegrationRuntimeInternalChannelEncryptionMode.NotSet -1. IntegrationRuntimeInternalChannelEncryptionMode.SslEncrypted -1. IntegrationRuntimeLicenseType.BasePrice -1. IntegrationRuntimeLicenseType.LicenseIncluded -1. IntegrationRuntimeType.Managed -1. IntegrationRuntimeType.SelfHosted -1. JSONWriteFilePattern.ArrayOfObjects -1. JSONWriteFilePattern.SetOfObjects -1. ManagedIntegrationRuntimeNodeStatus.Available -1. ManagedIntegrationRuntimeNodeStatus.Recycling -1. ManagedIntegrationRuntimeNodeStatus.Starting -1. ManagedIntegrationRuntimeNodeStatus.Unavailable -1. PolybaseSettingsRejectType.Percentage -1. PolybaseSettingsRejectType.Value -1. RecurrenceFrequency.Day -1. RecurrenceFrequency.Hour -1. RecurrenceFrequency.Minute -1. RecurrenceFrequency.Month -1. RecurrenceFrequency.NotSpecified -1. RecurrenceFrequency.Week -1. RecurrenceFrequency.Year -1. RunQueryFilterOperand.ActivityName -1. RunQueryFilterOperand.ActivityRunEnd -1. RunQueryFilterOperand.ActivityRunStart -1. RunQueryFilterOperand.ActivityType -1. RunQueryFilterOperand.LatestOnly -1. RunQueryFilterOperand.PipelineName -1. RunQueryFilterOperand.RunEnd -1. RunQueryFilterOperand.RunGroupID -1. RunQueryFilterOperand.RunStart -1. RunQueryFilterOperand.Status -1. RunQueryFilterOperand.TriggerName -1. RunQueryFilterOperand.TriggerRunTimestamp -1. RunQueryFilterOperator.Equals -1. RunQueryFilterOperator.In -1. RunQueryFilterOperator.NotEquals -1. RunQueryFilterOperator.NotIn -1. RunQueryOrder.ASC -1. RunQueryOrder.DESC -1. SQLAlwaysEncryptedAkvAuthType.ManagedIdentity -1. SQLAlwaysEncryptedAkvAuthType.ServicePrincipal -1. SalesforceSourceReadBehavior.Query -1. SalesforceSourceReadBehavior.QueryAll -1. SapCloudForCustomerSinkWriteBehavior.Insert -1. SapCloudForCustomerSinkWriteBehavior.Update -1. SparkServerType.SharkServer -1. SparkServerType.SharkServer2 -1. SparkServerType.SparkThriftServer -1. SsisObjectMetadataType.Environment -1. SsisObjectMetadataType.Folder -1. SsisObjectMetadataType.Package -1. SsisObjectMetadataType.Project +1. CompressionCodec.CompressionCodecBzip2 +1. CompressionCodec.CompressionCodecDeflate +1. CompressionCodec.CompressionCodecGzip +1. CompressionCodec.CompressionCodecLz4 +1. CompressionCodec.CompressionCodecLzo +1. CompressionCodec.CompressionCodecNone +1. CompressionCodec.CompressionCodecSnappy +1. CompressionCodec.CompressionCodecTar +1. CompressionCodec.CompressionCodecTarGZip +1. CompressionCodec.CompressionCodecZipDeflate +1. DatasetCompressionLevel.DatasetCompressionLevelFastest +1. DatasetCompressionLevel.DatasetCompressionLevelOptimal +1. HdiNodeTypes.HdiNodeTypesHeadnode +1. HdiNodeTypes.HdiNodeTypesWorkernode +1. HdiNodeTypes.HdiNodeTypesZookeeper +1. IntegrationRuntimeEntityReferenceType.IntegrationRuntimeEntityReferenceTypeCredentialReference +1. JSONFormatFilePattern.JSONFormatFilePatternArrayOfObjects +1. JSONFormatFilePattern.JSONFormatFilePatternSetOfObjects +1. ServicePrincipalCredentialType.ServicePrincipalCredentialTypeServicePrincipalCert +1. ServicePrincipalCredentialType.ServicePrincipalCredentialTypeServicePrincipalKey 1. Type.TypeAzureKeyVaultSecret 1. Type.TypeSecretBase 1. Type.TypeSecureString -1. TypeBasicActivity.TypeActivity -1. TypeBasicActivity.TypeAppendVariable -1. TypeBasicActivity.TypeAzureDataExplorerCommand -1. TypeBasicActivity.TypeAzureFunctionActivity -1. TypeBasicActivity.TypeAzureMLBatchExecution -1. TypeBasicActivity.TypeAzureMLExecutePipeline -1. TypeBasicActivity.TypeAzureMLUpdateResource -1. TypeBasicActivity.TypeContainer -1. TypeBasicActivity.TypeCopy -1. TypeBasicActivity.TypeCustom -1. TypeBasicActivity.TypeDataLakeAnalyticsUSQL -1. TypeBasicActivity.TypeDatabricksNotebook -1. TypeBasicActivity.TypeDatabricksSparkJar -1. TypeBasicActivity.TypeDatabricksSparkPython -1. TypeBasicActivity.TypeDelete -1. TypeBasicActivity.TypeExecuteDataFlow -1. TypeBasicActivity.TypeExecutePipeline -1. TypeBasicActivity.TypeExecuteSSISPackage -1. TypeBasicActivity.TypeExecution -1. TypeBasicActivity.TypeFilter -1. TypeBasicActivity.TypeForEach -1. TypeBasicActivity.TypeGetMetadata -1. TypeBasicActivity.TypeHDInsightHive -1. TypeBasicActivity.TypeHDInsightMapReduce -1. TypeBasicActivity.TypeHDInsightPig -1. TypeBasicActivity.TypeHDInsightSpark -1. TypeBasicActivity.TypeHDInsightStreaming -1. TypeBasicActivity.TypeIfCondition -1. TypeBasicActivity.TypeLookup -1. TypeBasicActivity.TypeSQLServerStoredProcedure -1. TypeBasicActivity.TypeSetVariable -1. TypeBasicActivity.TypeSwitch -1. TypeBasicActivity.TypeUntil -1. TypeBasicActivity.TypeValidation -1. TypeBasicActivity.TypeWait -1. TypeBasicActivity.TypeWebActivity -1. TypeBasicActivity.TypeWebHook -1. TypeBasicCompressionReadSettings.TypeCompressionReadSettings -1. TypeBasicCompressionReadSettings.TypeTarGZipReadSettings -1. TypeBasicCompressionReadSettings.TypeTarReadSettings -1. TypeBasicCompressionReadSettings.TypeZipDeflateReadSettings -1. TypeBasicCopySink.TypeAvroSink -1. TypeBasicCopySink.TypeAzureBlobFSSink -1. TypeBasicCopySink.TypeAzureDataExplorerSink -1. TypeBasicCopySink.TypeAzureDataLakeStoreSink -1. TypeBasicCopySink.TypeAzureDatabricksDeltaLakeSink -1. TypeBasicCopySink.TypeAzureMySQLSink -1. TypeBasicCopySink.TypeAzurePostgreSQLSink -1. TypeBasicCopySink.TypeAzureQueueSink -1. TypeBasicCopySink.TypeAzureSQLSink -1. TypeBasicCopySink.TypeAzureSearchIndexSink -1. TypeBasicCopySink.TypeAzureTableSink -1. TypeBasicCopySink.TypeBinarySink -1. TypeBasicCopySink.TypeBlobSink -1. TypeBasicCopySink.TypeCommonDataServiceForAppsSink -1. TypeBasicCopySink.TypeCopySink -1. TypeBasicCopySink.TypeCosmosDbMongoDbAPISink -1. TypeBasicCopySink.TypeCosmosDbSQLAPISink -1. TypeBasicCopySink.TypeDelimitedTextSink -1. TypeBasicCopySink.TypeDocumentDbCollectionSink -1. TypeBasicCopySink.TypeDynamicsCrmSink -1. TypeBasicCopySink.TypeDynamicsSink -1. TypeBasicCopySink.TypeFileSystemSink -1. TypeBasicCopySink.TypeInformixSink -1. TypeBasicCopySink.TypeJSONSink -1. TypeBasicCopySink.TypeMicrosoftAccessSink -1. TypeBasicCopySink.TypeMongoDbAtlasSink -1. TypeBasicCopySink.TypeMongoDbV2Sink -1. TypeBasicCopySink.TypeOdbcSink -1. TypeBasicCopySink.TypeOracleSink -1. TypeBasicCopySink.TypeOrcSink -1. TypeBasicCopySink.TypeParquetSink -1. TypeBasicCopySink.TypeRestSink -1. TypeBasicCopySink.TypeSQLDWSink -1. TypeBasicCopySink.TypeSQLMISink -1. TypeBasicCopySink.TypeSQLServerSink -1. TypeBasicCopySink.TypeSQLSink -1. TypeBasicCopySink.TypeSalesforceServiceCloudSink -1. TypeBasicCopySink.TypeSalesforceSink -1. TypeBasicCopySink.TypeSapCloudForCustomerSink -1. TypeBasicCopySink.TypeSnowflakeSink -1. TypeBasicCopySource.TypeAmazonMWSSource -1. TypeBasicCopySource.TypeAmazonRedshiftSource -1. TypeBasicCopySource.TypeAvroSource -1. TypeBasicCopySource.TypeAzureBlobFSSource -1. TypeBasicCopySource.TypeAzureDataExplorerSource -1. TypeBasicCopySource.TypeAzureDataLakeStoreSource -1. TypeBasicCopySource.TypeAzureDatabricksDeltaLakeSource -1. TypeBasicCopySource.TypeAzureMariaDBSource -1. TypeBasicCopySource.TypeAzureMySQLSource -1. TypeBasicCopySource.TypeAzurePostgreSQLSource -1. TypeBasicCopySource.TypeAzureSQLSource -1. TypeBasicCopySource.TypeAzureTableSource -1. TypeBasicCopySource.TypeBinarySource -1. TypeBasicCopySource.TypeBlobSource -1. TypeBasicCopySource.TypeCassandraSource -1. TypeBasicCopySource.TypeCommonDataServiceForAppsSource -1. TypeBasicCopySource.TypeConcurSource -1. TypeBasicCopySource.TypeCopySource -1. TypeBasicCopySource.TypeCosmosDbMongoDbAPISource -1. TypeBasicCopySource.TypeCosmosDbSQLAPISource -1. TypeBasicCopySource.TypeCouchbaseSource -1. TypeBasicCopySource.TypeDb2Source -1. TypeBasicCopySource.TypeDelimitedTextSource -1. TypeBasicCopySource.TypeDocumentDbCollectionSource -1. TypeBasicCopySource.TypeDrillSource -1. TypeBasicCopySource.TypeDynamicsAXSource -1. TypeBasicCopySource.TypeDynamicsCrmSource -1. TypeBasicCopySource.TypeDynamicsSource -1. TypeBasicCopySource.TypeEloquaSource -1. TypeBasicCopySource.TypeExcelSource -1. TypeBasicCopySource.TypeFileSystemSource -1. TypeBasicCopySource.TypeGoogleAdWordsSource -1. TypeBasicCopySource.TypeGoogleBigQuerySource -1. TypeBasicCopySource.TypeGreenplumSource -1. TypeBasicCopySource.TypeHBaseSource -1. TypeBasicCopySource.TypeHTTPSource -1. TypeBasicCopySource.TypeHdfsSource -1. TypeBasicCopySource.TypeHiveSource -1. TypeBasicCopySource.TypeHubspotSource -1. TypeBasicCopySource.TypeImpalaSource -1. TypeBasicCopySource.TypeInformixSource -1. TypeBasicCopySource.TypeJSONSource -1. TypeBasicCopySource.TypeJiraSource -1. TypeBasicCopySource.TypeMagentoSource -1. TypeBasicCopySource.TypeMariaDBSource -1. TypeBasicCopySource.TypeMarketoSource -1. TypeBasicCopySource.TypeMicrosoftAccessSource -1. TypeBasicCopySource.TypeMongoDbAtlasSource -1. TypeBasicCopySource.TypeMongoDbSource -1. TypeBasicCopySource.TypeMongoDbV2Source -1. TypeBasicCopySource.TypeMySQLSource -1. TypeBasicCopySource.TypeNetezzaSource -1. TypeBasicCopySource.TypeODataSource -1. TypeBasicCopySource.TypeOdbcSource -1. TypeBasicCopySource.TypeOffice365Source -1. TypeBasicCopySource.TypeOracleServiceCloudSource -1. TypeBasicCopySource.TypeOracleSource -1. TypeBasicCopySource.TypeOrcSource -1. TypeBasicCopySource.TypeParquetSource -1. TypeBasicCopySource.TypePaypalSource -1. TypeBasicCopySource.TypePhoenixSource -1. TypeBasicCopySource.TypePostgreSQLSource -1. TypeBasicCopySource.TypePrestoSource -1. TypeBasicCopySource.TypeQuickBooksSource -1. TypeBasicCopySource.TypeRelationalSource -1. TypeBasicCopySource.TypeResponsysSource -1. TypeBasicCopySource.TypeRestSource -1. TypeBasicCopySource.TypeSQLDWSource -1. TypeBasicCopySource.TypeSQLMISource -1. TypeBasicCopySource.TypeSQLServerSource -1. TypeBasicCopySource.TypeSQLSource -1. TypeBasicCopySource.TypeSalesforceMarketingCloudSource -1. TypeBasicCopySource.TypeSalesforceServiceCloudSource -1. TypeBasicCopySource.TypeSalesforceSource -1. TypeBasicCopySource.TypeSapBwSource -1. TypeBasicCopySource.TypeSapCloudForCustomerSource -1. TypeBasicCopySource.TypeSapEccSource -1. TypeBasicCopySource.TypeSapHanaSource -1. TypeBasicCopySource.TypeSapOpenHubSource -1. TypeBasicCopySource.TypeSapTableSource -1. TypeBasicCopySource.TypeServiceNowSource -1. TypeBasicCopySource.TypeSharePointOnlineListSource -1. TypeBasicCopySource.TypeShopifySource -1. TypeBasicCopySource.TypeSnowflakeSource -1. TypeBasicCopySource.TypeSparkSource -1. TypeBasicCopySource.TypeSquareSource -1. TypeBasicCopySource.TypeSybaseSource -1. TypeBasicCopySource.TypeTabularSource -1. TypeBasicCopySource.TypeTeradataSource -1. TypeBasicCopySource.TypeVerticaSource -1. TypeBasicCopySource.TypeWebSource -1. TypeBasicCopySource.TypeXMLSource -1. TypeBasicCopySource.TypeXeroSource -1. TypeBasicCopySource.TypeZohoSource -1. TypeBasicCopyTranslator.TypeCopyTranslator -1. TypeBasicCopyTranslator.TypeTabularTranslator -1. TypeBasicCustomSetupBase.TypeAzPowerShellSetup -1. TypeBasicCustomSetupBase.TypeCmdkeySetup -1. TypeBasicCustomSetupBase.TypeComponentSetup -1. TypeBasicCustomSetupBase.TypeCustomSetupBase -1. TypeBasicCustomSetupBase.TypeEnvironmentVariableSetup -1. TypeBasicDataFlow.TypeDataFlow -1. TypeBasicDataFlow.TypeMappingDataFlow -1. TypeBasicDataset.TypeAmazonMWSObject -1. TypeBasicDataset.TypeAmazonRedshiftTable -1. TypeBasicDataset.TypeAmazonS3Object -1. TypeBasicDataset.TypeAvro -1. TypeBasicDataset.TypeAzureBlob -1. TypeBasicDataset.TypeAzureBlobFSFile -1. TypeBasicDataset.TypeAzureDataExplorerTable -1. TypeBasicDataset.TypeAzureDataLakeStoreFile -1. TypeBasicDataset.TypeAzureDatabricksDeltaLakeDataset -1. TypeBasicDataset.TypeAzureMariaDBTable -1. TypeBasicDataset.TypeAzureMySQLTable -1. TypeBasicDataset.TypeAzurePostgreSQLTable -1. TypeBasicDataset.TypeAzureSQLDWTable -1. TypeBasicDataset.TypeAzureSQLMITable -1. TypeBasicDataset.TypeAzureSQLTable -1. TypeBasicDataset.TypeAzureSearchIndex -1. TypeBasicDataset.TypeAzureTable -1. TypeBasicDataset.TypeBinary -1. TypeBasicDataset.TypeCassandraTable -1. TypeBasicDataset.TypeCommonDataServiceForAppsEntity -1. TypeBasicDataset.TypeConcurObject -1. TypeBasicDataset.TypeCosmosDbMongoDbAPICollection -1. TypeBasicDataset.TypeCosmosDbSQLAPICollection -1. TypeBasicDataset.TypeCouchbaseTable -1. TypeBasicDataset.TypeCustomDataset -1. TypeBasicDataset.TypeDataset -1. TypeBasicDataset.TypeDb2Table -1. TypeBasicDataset.TypeDelimitedText -1. TypeBasicDataset.TypeDocumentDbCollection -1. TypeBasicDataset.TypeDrillTable -1. TypeBasicDataset.TypeDynamicsAXResource -1. TypeBasicDataset.TypeDynamicsCrmEntity -1. TypeBasicDataset.TypeDynamicsEntity -1. TypeBasicDataset.TypeEloquaObject -1. TypeBasicDataset.TypeExcel -1. TypeBasicDataset.TypeFileShare -1. TypeBasicDataset.TypeGoogleAdWordsObject -1. TypeBasicDataset.TypeGoogleBigQueryObject -1. TypeBasicDataset.TypeGreenplumTable -1. TypeBasicDataset.TypeHBaseObject -1. TypeBasicDataset.TypeHTTPFile -1. TypeBasicDataset.TypeHiveObject -1. TypeBasicDataset.TypeHubspotObject -1. TypeBasicDataset.TypeImpalaObject -1. TypeBasicDataset.TypeInformixTable -1. TypeBasicDataset.TypeJSON -1. TypeBasicDataset.TypeJiraObject -1. TypeBasicDataset.TypeMagentoObject -1. TypeBasicDataset.TypeMariaDBTable -1. TypeBasicDataset.TypeMarketoObject -1. TypeBasicDataset.TypeMicrosoftAccessTable -1. TypeBasicDataset.TypeMongoDbAtlasCollection -1. TypeBasicDataset.TypeMongoDbCollection -1. TypeBasicDataset.TypeMongoDbV2Collection -1. TypeBasicDataset.TypeMySQLTable -1. TypeBasicDataset.TypeNetezzaTable -1. TypeBasicDataset.TypeODataResource -1. TypeBasicDataset.TypeOdbcTable -1. TypeBasicDataset.TypeOffice365Table -1. TypeBasicDataset.TypeOracleServiceCloudObject -1. TypeBasicDataset.TypeOracleTable -1. TypeBasicDataset.TypeOrc -1. TypeBasicDataset.TypeParquet -1. TypeBasicDataset.TypePaypalObject -1. TypeBasicDataset.TypePhoenixObject -1. TypeBasicDataset.TypePostgreSQLTable -1. TypeBasicDataset.TypePrestoObject -1. TypeBasicDataset.TypeQuickBooksObject -1. TypeBasicDataset.TypeRelationalTable -1. TypeBasicDataset.TypeResponsysObject -1. TypeBasicDataset.TypeRestResource -1. TypeBasicDataset.TypeSQLServerTable -1. TypeBasicDataset.TypeSalesforceMarketingCloudObject -1. TypeBasicDataset.TypeSalesforceObject -1. TypeBasicDataset.TypeSalesforceServiceCloudObject -1. TypeBasicDataset.TypeSapBwCube -1. TypeBasicDataset.TypeSapCloudForCustomerResource -1. TypeBasicDataset.TypeSapEccResource -1. TypeBasicDataset.TypeSapHanaTable -1. TypeBasicDataset.TypeSapOpenHubTable -1. TypeBasicDataset.TypeSapTableResource -1. TypeBasicDataset.TypeServiceNowObject -1. TypeBasicDataset.TypeSharePointOnlineListResource -1. TypeBasicDataset.TypeShopifyObject -1. TypeBasicDataset.TypeSnowflakeTable -1. TypeBasicDataset.TypeSparkObject -1. TypeBasicDataset.TypeSquareObject -1. TypeBasicDataset.TypeSybaseTable -1. TypeBasicDataset.TypeTeradataTable -1. TypeBasicDataset.TypeVerticaTable -1. TypeBasicDataset.TypeWebTable -1. TypeBasicDataset.TypeXML -1. TypeBasicDataset.TypeXeroObject -1. TypeBasicDataset.TypeZohoObject -1. TypeBasicDatasetCompression.TypeBZip2 -1. TypeBasicDatasetCompression.TypeDatasetCompression -1. TypeBasicDatasetCompression.TypeDeflate -1. TypeBasicDatasetCompression.TypeGZip -1. TypeBasicDatasetCompression.TypeTar -1. TypeBasicDatasetCompression.TypeTarGZip -1. TypeBasicDatasetCompression.TypeZipDeflate -1. TypeBasicDatasetLocation.TypeAmazonS3CompatibleLocation -1. TypeBasicDatasetLocation.TypeAmazonS3Location -1. TypeBasicDatasetLocation.TypeAzureBlobFSLocation -1. TypeBasicDatasetLocation.TypeAzureBlobStorageLocation -1. TypeBasicDatasetLocation.TypeAzureDataLakeStoreLocation -1. TypeBasicDatasetLocation.TypeAzureFileStorageLocation -1. TypeBasicDatasetLocation.TypeDatasetLocation -1. TypeBasicDatasetLocation.TypeFileServerLocation -1. TypeBasicDatasetLocation.TypeFtpServerLocation -1. TypeBasicDatasetLocation.TypeGoogleCloudStorageLocation -1. TypeBasicDatasetLocation.TypeHTTPServerLocation -1. TypeBasicDatasetLocation.TypeHdfsLocation -1. TypeBasicDatasetLocation.TypeOracleCloudStorageLocation -1. TypeBasicDatasetLocation.TypeSftpLocation -1. TypeBasicDatasetStorageFormat.TypeAvroFormat -1. TypeBasicDatasetStorageFormat.TypeDatasetStorageFormat -1. TypeBasicDatasetStorageFormat.TypeJSONFormat -1. TypeBasicDatasetStorageFormat.TypeOrcFormat -1. TypeBasicDatasetStorageFormat.TypeParquetFormat -1. TypeBasicDatasetStorageFormat.TypeTextFormat -1. TypeBasicDependencyReference.TypeDependencyReference -1. TypeBasicDependencyReference.TypeSelfDependencyTumblingWindowTriggerReference -1. TypeBasicDependencyReference.TypeTriggerDependencyReference -1. TypeBasicDependencyReference.TypeTumblingWindowTriggerDependencyReference -1. TypeBasicExportSettings.TypeAzureDatabricksDeltaLakeExportCommand -1. TypeBasicExportSettings.TypeExportSettings -1. TypeBasicExportSettings.TypeSnowflakeExportCopyCommand -1. TypeBasicFactoryRepoConfiguration.TypeFactoryGitHubConfiguration -1. TypeBasicFactoryRepoConfiguration.TypeFactoryRepoConfiguration -1. TypeBasicFactoryRepoConfiguration.TypeFactoryVSTSConfiguration -1. TypeBasicFormatReadSettings.TypeBinaryReadSettings -1. TypeBasicFormatReadSettings.TypeDelimitedTextReadSettings -1. TypeBasicFormatReadSettings.TypeFormatReadSettings -1. TypeBasicFormatReadSettings.TypeJSONReadSettings -1. TypeBasicFormatReadSettings.TypeXMLReadSettings -1. TypeBasicFormatWriteSettings.TypeAvroWriteSettings -1. TypeBasicFormatWriteSettings.TypeDelimitedTextWriteSettings -1. TypeBasicFormatWriteSettings.TypeFormatWriteSettings -1. TypeBasicFormatWriteSettings.TypeJSONWriteSettings -1. TypeBasicFormatWriteSettings.TypeOrcWriteSettings -1. TypeBasicFormatWriteSettings.TypeParquetWriteSettings -1. TypeBasicImportSettings.TypeAzureDatabricksDeltaLakeImportCommand -1. TypeBasicImportSettings.TypeImportSettings -1. TypeBasicImportSettings.TypeSnowflakeImportCopyCommand -1. TypeBasicIntegrationRuntime.TypeIntegrationRuntime -1. TypeBasicIntegrationRuntime.TypeManaged -1. TypeBasicIntegrationRuntime.TypeSelfHosted -1. TypeBasicLinkedService.TypeAmazonMWS -1. TypeBasicLinkedService.TypeAmazonRedshift -1. TypeBasicLinkedService.TypeAmazonS3 -1. TypeBasicLinkedService.TypeAmazonS3Compatible -1. TypeBasicLinkedService.TypeAzureBatch -1. TypeBasicLinkedService.TypeAzureBlobFS -1. TypeBasicLinkedService.TypeAzureBlobStorage -1. TypeBasicLinkedService.TypeAzureDataExplorer -1. TypeBasicLinkedService.TypeAzureDataLakeAnalytics -1. TypeBasicLinkedService.TypeAzureDataLakeStore -1. TypeBasicLinkedService.TypeAzureDatabricks -1. TypeBasicLinkedService.TypeAzureDatabricksDeltaLake -1. TypeBasicLinkedService.TypeAzureFileStorage -1. TypeBasicLinkedService.TypeAzureFunction -1. TypeBasicLinkedService.TypeAzureKeyVault -1. TypeBasicLinkedService.TypeAzureML -1. TypeBasicLinkedService.TypeAzureMLService -1. TypeBasicLinkedService.TypeAzureMariaDB -1. TypeBasicLinkedService.TypeAzureMySQL -1. TypeBasicLinkedService.TypeAzurePostgreSQL -1. TypeBasicLinkedService.TypeAzureSQLDW -1. TypeBasicLinkedService.TypeAzureSQLDatabase -1. TypeBasicLinkedService.TypeAzureSQLMI -1. TypeBasicLinkedService.TypeAzureSearch -1. TypeBasicLinkedService.TypeAzureStorage -1. TypeBasicLinkedService.TypeAzureTableStorage -1. TypeBasicLinkedService.TypeCassandra -1. TypeBasicLinkedService.TypeCommonDataServiceForApps -1. TypeBasicLinkedService.TypeConcur -1. TypeBasicLinkedService.TypeCosmosDb -1. TypeBasicLinkedService.TypeCosmosDbMongoDbAPI -1. TypeBasicLinkedService.TypeCouchbase -1. TypeBasicLinkedService.TypeCustomDataSource -1. TypeBasicLinkedService.TypeDb2 -1. TypeBasicLinkedService.TypeDrill -1. TypeBasicLinkedService.TypeDynamics -1. TypeBasicLinkedService.TypeDynamicsAX -1. TypeBasicLinkedService.TypeDynamicsCrm -1. TypeBasicLinkedService.TypeEloqua -1. TypeBasicLinkedService.TypeFileServer -1. TypeBasicLinkedService.TypeFtpServer -1. TypeBasicLinkedService.TypeGoogleAdWords -1. TypeBasicLinkedService.TypeGoogleBigQuery -1. TypeBasicLinkedService.TypeGoogleCloudStorage -1. TypeBasicLinkedService.TypeGreenplum -1. TypeBasicLinkedService.TypeHBase -1. TypeBasicLinkedService.TypeHDInsight -1. TypeBasicLinkedService.TypeHDInsightOnDemand -1. TypeBasicLinkedService.TypeHTTPServer -1. TypeBasicLinkedService.TypeHdfs -1. TypeBasicLinkedService.TypeHive -1. TypeBasicLinkedService.TypeHubspot -1. TypeBasicLinkedService.TypeImpala -1. TypeBasicLinkedService.TypeInformix -1. TypeBasicLinkedService.TypeJira -1. TypeBasicLinkedService.TypeLinkedService -1. TypeBasicLinkedService.TypeMagento -1. TypeBasicLinkedService.TypeMariaDB -1. TypeBasicLinkedService.TypeMarketo -1. TypeBasicLinkedService.TypeMicrosoftAccess -1. TypeBasicLinkedService.TypeMongoDb -1. TypeBasicLinkedService.TypeMongoDbAtlas -1. TypeBasicLinkedService.TypeMongoDbV2 -1. TypeBasicLinkedService.TypeMySQL -1. TypeBasicLinkedService.TypeNetezza -1. TypeBasicLinkedService.TypeOData -1. TypeBasicLinkedService.TypeOdbc -1. TypeBasicLinkedService.TypeOffice365 -1. TypeBasicLinkedService.TypeOracle -1. TypeBasicLinkedService.TypeOracleCloudStorage -1. TypeBasicLinkedService.TypeOracleServiceCloud -1. TypeBasicLinkedService.TypePaypal -1. TypeBasicLinkedService.TypePhoenix -1. TypeBasicLinkedService.TypePostgreSQL -1. TypeBasicLinkedService.TypePresto -1. TypeBasicLinkedService.TypeQuickBooks -1. TypeBasicLinkedService.TypeResponsys -1. TypeBasicLinkedService.TypeRestService -1. TypeBasicLinkedService.TypeSQLServer -1. TypeBasicLinkedService.TypeSalesforce -1. TypeBasicLinkedService.TypeSalesforceMarketingCloud -1. TypeBasicLinkedService.TypeSalesforceServiceCloud -1. TypeBasicLinkedService.TypeSapBW -1. TypeBasicLinkedService.TypeSapCloudForCustomer -1. TypeBasicLinkedService.TypeSapEcc -1. TypeBasicLinkedService.TypeSapHana -1. TypeBasicLinkedService.TypeSapOpenHub -1. TypeBasicLinkedService.TypeSapTable -1. TypeBasicLinkedService.TypeServiceNow -1. TypeBasicLinkedService.TypeSftp -1. TypeBasicLinkedService.TypeSharePointOnlineList -1. TypeBasicLinkedService.TypeShopify -1. TypeBasicLinkedService.TypeSnowflake -1. TypeBasicLinkedService.TypeSpark -1. TypeBasicLinkedService.TypeSquare -1. TypeBasicLinkedService.TypeSybase -1. TypeBasicLinkedService.TypeTeradata -1. TypeBasicLinkedService.TypeVertica -1. TypeBasicLinkedService.TypeWeb -1. TypeBasicLinkedService.TypeXero -1. TypeBasicLinkedService.TypeZoho -1. TypeBasicSsisObjectMetadata.TypeEnvironment -1. TypeBasicSsisObjectMetadata.TypeFolder -1. TypeBasicSsisObjectMetadata.TypePackage -1. TypeBasicSsisObjectMetadata.TypeProject -1. TypeBasicSsisObjectMetadata.TypeSsisObjectMetadata -1. TypeBasicStoreReadSettings.TypeAmazonS3CompatibleReadSettings -1. TypeBasicStoreReadSettings.TypeAmazonS3ReadSettings -1. TypeBasicStoreReadSettings.TypeAzureBlobFSReadSettings -1. TypeBasicStoreReadSettings.TypeAzureBlobStorageReadSettings -1. TypeBasicStoreReadSettings.TypeAzureDataLakeStoreReadSettings -1. TypeBasicStoreReadSettings.TypeAzureFileStorageReadSettings -1. TypeBasicStoreReadSettings.TypeFileServerReadSettings -1. TypeBasicStoreReadSettings.TypeFtpReadSettings -1. TypeBasicStoreReadSettings.TypeGoogleCloudStorageReadSettings -1. TypeBasicStoreReadSettings.TypeHTTPReadSettings -1. TypeBasicStoreReadSettings.TypeHdfsReadSettings -1. TypeBasicStoreReadSettings.TypeOracleCloudStorageReadSettings -1. TypeBasicStoreReadSettings.TypeSftpReadSettings -1. TypeBasicStoreReadSettings.TypeStoreReadSettings -1. TypeBasicStoreWriteSettings.TypeAzureBlobFSWriteSettings -1. TypeBasicStoreWriteSettings.TypeAzureBlobStorageWriteSettings -1. TypeBasicStoreWriteSettings.TypeAzureDataLakeStoreWriteSettings -1. TypeBasicStoreWriteSettings.TypeAzureFileStorageWriteSettings -1. TypeBasicStoreWriteSettings.TypeFileServerWriteSettings -1. TypeBasicStoreWriteSettings.TypeSftpWriteSettings -1. TypeBasicStoreWriteSettings.TypeStoreWriteSettings -1. TypeBasicTrigger.TypeBlobEventsTrigger -1. TypeBasicTrigger.TypeBlobTrigger -1. TypeBasicTrigger.TypeChainingTrigger -1. TypeBasicTrigger.TypeCustomEventsTrigger -1. TypeBasicTrigger.TypeMultiplePipelineTrigger -1. TypeBasicTrigger.TypeRerunTumblingWindowTrigger -1. TypeBasicTrigger.TypeScheduleTrigger -1. TypeBasicTrigger.TypeTrigger -1. TypeBasicTrigger.TypeTumblingWindowTrigger -## Additive Changes +### New Funcs -### New Constants +1. ArmIDWrapper.MarshalJSON() ([]byte, error) +1. ConnectionStateProperties.MarshalJSON() ([]byte, error) +1. ExposureControlResponse.MarshalJSON() ([]byte, error) +1. IntegrationRuntimeNodeIPAddress.MarshalJSON() ([]byte, error) +1. LinkedIntegrationRuntime.MarshalJSON() ([]byte, error) +1. ManagedIntegrationRuntimeError.MarshalJSON() ([]byte, error) +1. ManagedIntegrationRuntimeOperationResult.MarshalJSON() ([]byte, error) +1. ManagedIntegrationRuntimeStatusTypeProperties.MarshalJSON() ([]byte, error) +1. PipelineRunInvokedBy.MarshalJSON() ([]byte, error) +1. PossibleCompressionCodecValues() []CompressionCodec +1. PossibleDatasetCompressionLevelValues() []DatasetCompressionLevel +1. PossibleHdiNodeTypesValues() []HdiNodeTypes +1. PossibleJSONFormatFilePatternValues() []JSONFormatFilePattern +1. PossibleServicePrincipalCredentialTypeValues() []ServicePrincipalCredentialType +1. PrivateLinkResourceProperties.MarshalJSON() ([]byte, error) +1. SubResource.MarshalJSON() ([]byte, error) +1. TriggerSubscriptionOperationStatus.MarshalJSON() ([]byte, error) -1. AuthenticationType.AuthenticationTypeAuthenticationTypeAnonymous -1. AuthenticationType.AuthenticationTypeAuthenticationTypeBasic -1. AuthenticationType.AuthenticationTypeAuthenticationTypeClientCertificate -1. AuthenticationType.AuthenticationTypeAuthenticationTypeWebLinkedServiceTypeProperties -1. AuthorizationType.AuthorizationTypeAuthorizationTypeKey -1. AuthorizationType.AuthorizationTypeAuthorizationTypeLinkedIntegrationRuntimeType -1. AuthorizationType.AuthorizationTypeAuthorizationTypeRBAC -1. AvroCompressionCodec.AvroCompressionCodecBzip2 -1. AvroCompressionCodec.AvroCompressionCodecDeflate -1. AvroCompressionCodec.AvroCompressionCodecNone -1. AvroCompressionCodec.AvroCompressionCodecSnappy -1. AvroCompressionCodec.AvroCompressionCodecXz -1. AzureFunctionActivityMethod.AzureFunctionActivityMethodDELETE -1. AzureFunctionActivityMethod.AzureFunctionActivityMethodGET -1. AzureFunctionActivityMethod.AzureFunctionActivityMethodHEAD -1. AzureFunctionActivityMethod.AzureFunctionActivityMethodOPTIONS -1. AzureFunctionActivityMethod.AzureFunctionActivityMethodPOST -1. AzureFunctionActivityMethod.AzureFunctionActivityMethodPUT -1. AzureFunctionActivityMethod.AzureFunctionActivityMethodTRACE -1. AzureSearchIndexWriteBehaviorType.AzureSearchIndexWriteBehaviorTypeMerge -1. AzureSearchIndexWriteBehaviorType.AzureSearchIndexWriteBehaviorTypeUpload -1. BlobEventTypes.BlobEventTypesMicrosoftStorageBlobCreated -1. BlobEventTypes.BlobEventTypesMicrosoftStorageBlobDeleted -1. CassandraSourceReadConsistencyLevels.CassandraSourceReadConsistencyLevelsALL -1. CassandraSourceReadConsistencyLevels.CassandraSourceReadConsistencyLevelsEACHQUORUM -1. CassandraSourceReadConsistencyLevels.CassandraSourceReadConsistencyLevelsLOCALONE -1. CassandraSourceReadConsistencyLevels.CassandraSourceReadConsistencyLevelsLOCALQUORUM -1. CassandraSourceReadConsistencyLevels.CassandraSourceReadConsistencyLevelsLOCALSERIAL -1. CassandraSourceReadConsistencyLevels.CassandraSourceReadConsistencyLevelsONE -1. CassandraSourceReadConsistencyLevels.CassandraSourceReadConsistencyLevelsQUORUM -1. CassandraSourceReadConsistencyLevels.CassandraSourceReadConsistencyLevelsSERIAL -1. CassandraSourceReadConsistencyLevels.CassandraSourceReadConsistencyLevelsTHREE -1. CassandraSourceReadConsistencyLevels.CassandraSourceReadConsistencyLevelsTWO -1. CopyBehaviorType.CopyBehaviorTypeFlattenHierarchy -1. CopyBehaviorType.CopyBehaviorTypeMergeFiles -1. CopyBehaviorType.CopyBehaviorTypePreserveHierarchy -1. CosmosDbConnectionMode.CosmosDbConnectionModeDirect -1. CosmosDbConnectionMode.CosmosDbConnectionModeGateway -1. CosmosDbServicePrincipalCredentialType.CosmosDbServicePrincipalCredentialTypeServicePrincipalCert -1. CosmosDbServicePrincipalCredentialType.CosmosDbServicePrincipalCredentialTypeServicePrincipalKey -1. DataFlowComputeType.DataFlowComputeTypeComputeOptimized -1. DataFlowComputeType.DataFlowComputeTypeGeneral -1. DataFlowComputeType.DataFlowComputeTypeMemoryOptimized -1. DataFlowDebugCommandType.DataFlowDebugCommandTypeExecuteExpressionQuery -1. DataFlowDebugCommandType.DataFlowDebugCommandTypeExecutePreviewQuery -1. DataFlowDebugCommandType.DataFlowDebugCommandTypeExecuteStatisticsQuery -1. DayOfWeek.DayOfWeekFriday -1. DayOfWeek.DayOfWeekMonday -1. DayOfWeek.DayOfWeekSaturday -1. DayOfWeek.DayOfWeekSunday -1. DayOfWeek.DayOfWeekThursday -1. DayOfWeek.DayOfWeekTuesday -1. DayOfWeek.DayOfWeekWednesday -1. Db2AuthenticationType.Db2AuthenticationTypeBasic -1. DependencyCondition.DependencyConditionCompleted -1. DependencyCondition.DependencyConditionFailed -1. DependencyCondition.DependencyConditionSkipped -1. DependencyCondition.DependencyConditionSucceeded -1. DynamicsAuthenticationType.DynamicsAuthenticationTypeAADServicePrincipal -1. DynamicsAuthenticationType.DynamicsAuthenticationTypeIfd -1. DynamicsAuthenticationType.DynamicsAuthenticationTypeOffice365 -1. DynamicsDeploymentType.DynamicsDeploymentTypeOnPremisesWithIfd -1. DynamicsDeploymentType.DynamicsDeploymentTypeOnline -1. DynamicsSinkWriteBehavior.DynamicsSinkWriteBehaviorUpsert -1. EventSubscriptionStatus.EventSubscriptionStatusDeprovisioning -1. EventSubscriptionStatus.EventSubscriptionStatusDisabled -1. EventSubscriptionStatus.EventSubscriptionStatusEnabled -1. EventSubscriptionStatus.EventSubscriptionStatusProvisioning -1. EventSubscriptionStatus.EventSubscriptionStatusUnknown -1. FactoryIdentityType.FactoryIdentityTypeSystemAssigned -1. FactoryIdentityType.FactoryIdentityTypeSystemAssignedUserAssigned -1. FactoryIdentityType.FactoryIdentityTypeUserAssigned -1. GlobalParameterType.GlobalParameterTypeArray -1. GlobalParameterType.GlobalParameterTypeBool -1. GlobalParameterType.GlobalParameterTypeFloat -1. GlobalParameterType.GlobalParameterTypeInt -1. GlobalParameterType.GlobalParameterTypeObject -1. GlobalParameterType.GlobalParameterTypeString -1. GoogleAdWordsAuthenticationType.GoogleAdWordsAuthenticationTypeServiceAuthentication -1. GoogleAdWordsAuthenticationType.GoogleAdWordsAuthenticationTypeUserAuthentication -1. HiveAuthenticationType.HiveAuthenticationTypeAnonymous -1. HiveAuthenticationType.HiveAuthenticationTypeUsername -1. HiveAuthenticationType.HiveAuthenticationTypeUsernameAndPassword -1. HiveAuthenticationType.HiveAuthenticationTypeWindowsAzureHDInsightService -1. HiveServerType.HiveServerTypeHiveServer1 -1. HiveServerType.HiveServerTypeHiveServer2 -1. HiveServerType.HiveServerTypeHiveThriftServer -1. HiveThriftTransportProtocol.HiveThriftTransportProtocolBinary -1. HiveThriftTransportProtocol.HiveThriftTransportProtocolHTTP -1. HiveThriftTransportProtocol.HiveThriftTransportProtocolSASL -1. IntegrationRuntimeAuthKeyName.IntegrationRuntimeAuthKeyNameAuthKey1 -1. IntegrationRuntimeAuthKeyName.IntegrationRuntimeAuthKeyNameAuthKey2 -1. IntegrationRuntimeAutoUpdate.IntegrationRuntimeAutoUpdateOff -1. IntegrationRuntimeAutoUpdate.IntegrationRuntimeAutoUpdateOn -1. IntegrationRuntimeEdition.IntegrationRuntimeEditionEnterprise -1. IntegrationRuntimeEdition.IntegrationRuntimeEditionStandard -1. IntegrationRuntimeInternalChannelEncryptionMode.IntegrationRuntimeInternalChannelEncryptionModeNotEncrypted -1. IntegrationRuntimeInternalChannelEncryptionMode.IntegrationRuntimeInternalChannelEncryptionModeNotSet -1. IntegrationRuntimeInternalChannelEncryptionMode.IntegrationRuntimeInternalChannelEncryptionModeSslEncrypted -1. IntegrationRuntimeLicenseType.IntegrationRuntimeLicenseTypeBasePrice -1. IntegrationRuntimeLicenseType.IntegrationRuntimeLicenseTypeLicenseIncluded -1. IntegrationRuntimeType.IntegrationRuntimeTypeManaged -1. IntegrationRuntimeType.IntegrationRuntimeTypeSelfHosted -1. JSONWriteFilePattern.JSONWriteFilePatternArrayOfObjects -1. JSONWriteFilePattern.JSONWriteFilePatternSetOfObjects -1. ManagedIntegrationRuntimeNodeStatus.ManagedIntegrationRuntimeNodeStatusAvailable -1. ManagedIntegrationRuntimeNodeStatus.ManagedIntegrationRuntimeNodeStatusRecycling -1. ManagedIntegrationRuntimeNodeStatus.ManagedIntegrationRuntimeNodeStatusStarting -1. ManagedIntegrationRuntimeNodeStatus.ManagedIntegrationRuntimeNodeStatusUnavailable -1. PolybaseSettingsRejectType.PolybaseSettingsRejectTypePercentage -1. PolybaseSettingsRejectType.PolybaseSettingsRejectTypeValue -1. RecurrenceFrequency.RecurrenceFrequencyDay -1. RecurrenceFrequency.RecurrenceFrequencyHour -1. RecurrenceFrequency.RecurrenceFrequencyMinute -1. RecurrenceFrequency.RecurrenceFrequencyMonth -1. RecurrenceFrequency.RecurrenceFrequencyNotSpecified -1. RecurrenceFrequency.RecurrenceFrequencyWeek -1. RecurrenceFrequency.RecurrenceFrequencyYear -1. RunQueryFilterOperand.RunQueryFilterOperandActivityName -1. RunQueryFilterOperand.RunQueryFilterOperandActivityRunEnd -1. RunQueryFilterOperand.RunQueryFilterOperandActivityRunStart -1. RunQueryFilterOperand.RunQueryFilterOperandActivityType -1. RunQueryFilterOperand.RunQueryFilterOperandLatestOnly -1. RunQueryFilterOperand.RunQueryFilterOperandPipelineName -1. RunQueryFilterOperand.RunQueryFilterOperandRunEnd -1. RunQueryFilterOperand.RunQueryFilterOperandRunGroupID -1. RunQueryFilterOperand.RunQueryFilterOperandRunStart -1. RunQueryFilterOperand.RunQueryFilterOperandStatus -1. RunQueryFilterOperand.RunQueryFilterOperandTriggerName -1. RunQueryFilterOperand.RunQueryFilterOperandTriggerRunTimestamp -1. RunQueryFilterOperator.RunQueryFilterOperatorEquals -1. RunQueryFilterOperator.RunQueryFilterOperatorIn -1. RunQueryFilterOperator.RunQueryFilterOperatorNotEquals -1. RunQueryFilterOperator.RunQueryFilterOperatorNotIn -1. RunQueryOrder.RunQueryOrderASC -1. RunQueryOrder.RunQueryOrderDESC -1. SQLAlwaysEncryptedAkvAuthType.SQLAlwaysEncryptedAkvAuthTypeManagedIdentity -1. SQLAlwaysEncryptedAkvAuthType.SQLAlwaysEncryptedAkvAuthTypeServicePrincipal -1. SalesforceSourceReadBehavior.SalesforceSourceReadBehaviorQuery -1. SalesforceSourceReadBehavior.SalesforceSourceReadBehaviorQueryAll -1. SapCloudForCustomerSinkWriteBehavior.SapCloudForCustomerSinkWriteBehaviorInsert -1. SapCloudForCustomerSinkWriteBehavior.SapCloudForCustomerSinkWriteBehaviorUpdate -1. SparkServerType.SparkServerTypeSharkServer -1. SparkServerType.SparkServerTypeSharkServer2 -1. SparkServerType.SparkServerTypeSparkThriftServer -1. SsisObjectMetadataType.SsisObjectMetadataTypeEnvironment -1. SsisObjectMetadataType.SsisObjectMetadataTypeFolder -1. SsisObjectMetadataType.SsisObjectMetadataTypePackage -1. SsisObjectMetadataType.SsisObjectMetadataTypeProject -1. Type.TypeTypeAzureKeyVaultSecret -1. Type.TypeTypeSecretBase -1. Type.TypeTypeSecureString -1. TypeBasicActivity.TypeBasicActivityTypeActivity -1. TypeBasicActivity.TypeBasicActivityTypeAppendVariable -1. TypeBasicActivity.TypeBasicActivityTypeAzureDataExplorerCommand -1. TypeBasicActivity.TypeBasicActivityTypeAzureFunctionActivity -1. TypeBasicActivity.TypeBasicActivityTypeAzureMLBatchExecution -1. TypeBasicActivity.TypeBasicActivityTypeAzureMLExecutePipeline -1. TypeBasicActivity.TypeBasicActivityTypeAzureMLUpdateResource -1. TypeBasicActivity.TypeBasicActivityTypeContainer -1. TypeBasicActivity.TypeBasicActivityTypeCopy -1. TypeBasicActivity.TypeBasicActivityTypeCustom -1. TypeBasicActivity.TypeBasicActivityTypeDataLakeAnalyticsUSQL -1. TypeBasicActivity.TypeBasicActivityTypeDatabricksNotebook -1. TypeBasicActivity.TypeBasicActivityTypeDatabricksSparkJar -1. TypeBasicActivity.TypeBasicActivityTypeDatabricksSparkPython -1. TypeBasicActivity.TypeBasicActivityTypeDelete -1. TypeBasicActivity.TypeBasicActivityTypeExecuteDataFlow -1. TypeBasicActivity.TypeBasicActivityTypeExecutePipeline -1. TypeBasicActivity.TypeBasicActivityTypeExecuteSSISPackage -1. TypeBasicActivity.TypeBasicActivityTypeExecution -1. TypeBasicActivity.TypeBasicActivityTypeFilter -1. TypeBasicActivity.TypeBasicActivityTypeForEach -1. TypeBasicActivity.TypeBasicActivityTypeGetMetadata -1. TypeBasicActivity.TypeBasicActivityTypeHDInsightHive -1. TypeBasicActivity.TypeBasicActivityTypeHDInsightMapReduce -1. TypeBasicActivity.TypeBasicActivityTypeHDInsightPig -1. TypeBasicActivity.TypeBasicActivityTypeHDInsightSpark -1. TypeBasicActivity.TypeBasicActivityTypeHDInsightStreaming -1. TypeBasicActivity.TypeBasicActivityTypeIfCondition -1. TypeBasicActivity.TypeBasicActivityTypeLookup -1. TypeBasicActivity.TypeBasicActivityTypeSQLServerStoredProcedure -1. TypeBasicActivity.TypeBasicActivityTypeSetVariable -1. TypeBasicActivity.TypeBasicActivityTypeSwitch -1. TypeBasicActivity.TypeBasicActivityTypeUntil -1. TypeBasicActivity.TypeBasicActivityTypeValidation -1. TypeBasicActivity.TypeBasicActivityTypeWait -1. TypeBasicActivity.TypeBasicActivityTypeWebActivity -1. TypeBasicActivity.TypeBasicActivityTypeWebHook -1. TypeBasicCompressionReadSettings.TypeBasicCompressionReadSettingsTypeCompressionReadSettings -1. TypeBasicCompressionReadSettings.TypeBasicCompressionReadSettingsTypeTarGZipReadSettings -1. TypeBasicCompressionReadSettings.TypeBasicCompressionReadSettingsTypeTarReadSettings -1. TypeBasicCompressionReadSettings.TypeBasicCompressionReadSettingsTypeZipDeflateReadSettings -1. TypeBasicCopySink.TypeBasicCopySinkTypeAvroSink -1. TypeBasicCopySink.TypeBasicCopySinkTypeAzureBlobFSSink -1. TypeBasicCopySink.TypeBasicCopySinkTypeAzureDataExplorerSink -1. TypeBasicCopySink.TypeBasicCopySinkTypeAzureDataLakeStoreSink -1. TypeBasicCopySink.TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink -1. TypeBasicCopySink.TypeBasicCopySinkTypeAzureMySQLSink -1. TypeBasicCopySink.TypeBasicCopySinkTypeAzurePostgreSQLSink -1. TypeBasicCopySink.TypeBasicCopySinkTypeAzureQueueSink -1. TypeBasicCopySink.TypeBasicCopySinkTypeAzureSQLSink -1. TypeBasicCopySink.TypeBasicCopySinkTypeAzureSearchIndexSink -1. TypeBasicCopySink.TypeBasicCopySinkTypeAzureTableSink -1. TypeBasicCopySink.TypeBasicCopySinkTypeBinarySink -1. TypeBasicCopySink.TypeBasicCopySinkTypeBlobSink -1. TypeBasicCopySink.TypeBasicCopySinkTypeCommonDataServiceForAppsSink -1. TypeBasicCopySink.TypeBasicCopySinkTypeCopySink -1. TypeBasicCopySink.TypeBasicCopySinkTypeCosmosDbMongoDbAPISink -1. TypeBasicCopySink.TypeBasicCopySinkTypeCosmosDbSQLAPISink -1. TypeBasicCopySink.TypeBasicCopySinkTypeDelimitedTextSink -1. TypeBasicCopySink.TypeBasicCopySinkTypeDocumentDbCollectionSink -1. TypeBasicCopySink.TypeBasicCopySinkTypeDynamicsCrmSink -1. TypeBasicCopySink.TypeBasicCopySinkTypeDynamicsSink -1. TypeBasicCopySink.TypeBasicCopySinkTypeFileSystemSink -1. TypeBasicCopySink.TypeBasicCopySinkTypeInformixSink -1. TypeBasicCopySink.TypeBasicCopySinkTypeJSONSink -1. TypeBasicCopySink.TypeBasicCopySinkTypeMicrosoftAccessSink -1. TypeBasicCopySink.TypeBasicCopySinkTypeMongoDbAtlasSink -1. TypeBasicCopySink.TypeBasicCopySinkTypeMongoDbV2Sink -1. TypeBasicCopySink.TypeBasicCopySinkTypeOdbcSink -1. TypeBasicCopySink.TypeBasicCopySinkTypeOracleSink -1. TypeBasicCopySink.TypeBasicCopySinkTypeOrcSink -1. TypeBasicCopySink.TypeBasicCopySinkTypeParquetSink -1. TypeBasicCopySink.TypeBasicCopySinkTypeRestSink -1. TypeBasicCopySink.TypeBasicCopySinkTypeSQLDWSink -1. TypeBasicCopySink.TypeBasicCopySinkTypeSQLMISink -1. TypeBasicCopySink.TypeBasicCopySinkTypeSQLServerSink -1. TypeBasicCopySink.TypeBasicCopySinkTypeSQLSink -1. TypeBasicCopySink.TypeBasicCopySinkTypeSalesforceServiceCloudSink -1. TypeBasicCopySink.TypeBasicCopySinkTypeSalesforceSink -1. TypeBasicCopySink.TypeBasicCopySinkTypeSapCloudForCustomerSink -1. TypeBasicCopySink.TypeBasicCopySinkTypeSnowflakeSink -1. TypeBasicCopySource.TypeBasicCopySourceTypeAmazonMWSSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeAmazonRedshiftSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeAvroSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeAzureBlobFSSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeAzureDataExplorerSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeAzureDataLakeStoreSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeAzureMariaDBSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeAzureMySQLSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeAzurePostgreSQLSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeAzureSQLSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeAzureTableSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeBinarySource -1. TypeBasicCopySource.TypeBasicCopySourceTypeBlobSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeCassandraSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeCommonDataServiceForAppsSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeConcurSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeCopySource -1. TypeBasicCopySource.TypeBasicCopySourceTypeCosmosDbMongoDbAPISource -1. TypeBasicCopySource.TypeBasicCopySourceTypeCosmosDbSQLAPISource -1. TypeBasicCopySource.TypeBasicCopySourceTypeCouchbaseSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeDb2Source -1. TypeBasicCopySource.TypeBasicCopySourceTypeDelimitedTextSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeDocumentDbCollectionSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeDrillSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeDynamicsAXSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeDynamicsCrmSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeDynamicsSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeEloquaSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeExcelSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeFileSystemSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeGoogleAdWordsSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeGoogleBigQuerySource -1. TypeBasicCopySource.TypeBasicCopySourceTypeGreenplumSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeHBaseSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeHTTPSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeHdfsSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeHiveSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeHubspotSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeImpalaSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeInformixSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeJSONSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeJiraSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeMagentoSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeMariaDBSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeMarketoSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeMicrosoftAccessSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeMongoDbAtlasSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeMongoDbSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeMongoDbV2Source -1. TypeBasicCopySource.TypeBasicCopySourceTypeMySQLSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeNetezzaSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeODataSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeOdbcSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeOffice365Source -1. TypeBasicCopySource.TypeBasicCopySourceTypeOracleServiceCloudSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeOracleSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeOrcSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeParquetSource -1. TypeBasicCopySource.TypeBasicCopySourceTypePaypalSource -1. TypeBasicCopySource.TypeBasicCopySourceTypePhoenixSource -1. TypeBasicCopySource.TypeBasicCopySourceTypePostgreSQLSource -1. TypeBasicCopySource.TypeBasicCopySourceTypePrestoSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeQuickBooksSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeRelationalSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeResponsysSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeRestSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeSQLDWSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeSQLMISource -1. TypeBasicCopySource.TypeBasicCopySourceTypeSQLServerSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeSQLSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeSalesforceMarketingCloudSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeSalesforceServiceCloudSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeSalesforceSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeSapBwSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeSapCloudForCustomerSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeSapEccSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeSapHanaSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeSapOpenHubSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeSapTableSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeServiceNowSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeSharePointOnlineListSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeShopifySource -1. TypeBasicCopySource.TypeBasicCopySourceTypeSnowflakeSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeSparkSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeSquareSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeSybaseSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeTabularSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeTeradataSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeVerticaSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeWebSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeXMLSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeXeroSource -1. TypeBasicCopySource.TypeBasicCopySourceTypeZohoSource -1. TypeBasicCopyTranslator.TypeBasicCopyTranslatorTypeCopyTranslator -1. TypeBasicCopyTranslator.TypeBasicCopyTranslatorTypeTabularTranslator -1. TypeBasicCustomSetupBase.TypeBasicCustomSetupBaseTypeAzPowerShellSetup -1. TypeBasicCustomSetupBase.TypeBasicCustomSetupBaseTypeCmdkeySetup -1. TypeBasicCustomSetupBase.TypeBasicCustomSetupBaseTypeComponentSetup -1. TypeBasicCustomSetupBase.TypeBasicCustomSetupBaseTypeCustomSetupBase -1. TypeBasicCustomSetupBase.TypeBasicCustomSetupBaseTypeEnvironmentVariableSetup -1. TypeBasicDataFlow.TypeBasicDataFlowTypeDataFlow -1. TypeBasicDataFlow.TypeBasicDataFlowTypeMappingDataFlow -1. TypeBasicDataset.TypeBasicDatasetTypeAmazonMWSObject -1. TypeBasicDataset.TypeBasicDatasetTypeAmazonRedshiftTable -1. TypeBasicDataset.TypeBasicDatasetTypeAmazonS3Object -1. TypeBasicDataset.TypeBasicDatasetTypeAvro -1. TypeBasicDataset.TypeBasicDatasetTypeAzureBlob -1. TypeBasicDataset.TypeBasicDatasetTypeAzureBlobFSFile -1. TypeBasicDataset.TypeBasicDatasetTypeAzureDataExplorerTable -1. TypeBasicDataset.TypeBasicDatasetTypeAzureDataLakeStoreFile -1. TypeBasicDataset.TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset -1. TypeBasicDataset.TypeBasicDatasetTypeAzureMariaDBTable -1. TypeBasicDataset.TypeBasicDatasetTypeAzureMySQLTable -1. TypeBasicDataset.TypeBasicDatasetTypeAzurePostgreSQLTable -1. TypeBasicDataset.TypeBasicDatasetTypeAzureSQLDWTable -1. TypeBasicDataset.TypeBasicDatasetTypeAzureSQLMITable -1. TypeBasicDataset.TypeBasicDatasetTypeAzureSQLTable -1. TypeBasicDataset.TypeBasicDatasetTypeAzureSearchIndex -1. TypeBasicDataset.TypeBasicDatasetTypeAzureTable -1. TypeBasicDataset.TypeBasicDatasetTypeBinary -1. TypeBasicDataset.TypeBasicDatasetTypeCassandraTable -1. TypeBasicDataset.TypeBasicDatasetTypeCommonDataServiceForAppsEntity -1. TypeBasicDataset.TypeBasicDatasetTypeConcurObject -1. TypeBasicDataset.TypeBasicDatasetTypeCosmosDbMongoDbAPICollection -1. TypeBasicDataset.TypeBasicDatasetTypeCosmosDbSQLAPICollection -1. TypeBasicDataset.TypeBasicDatasetTypeCouchbaseTable -1. TypeBasicDataset.TypeBasicDatasetTypeCustomDataset -1. TypeBasicDataset.TypeBasicDatasetTypeDataset -1. TypeBasicDataset.TypeBasicDatasetTypeDb2Table -1. TypeBasicDataset.TypeBasicDatasetTypeDelimitedText -1. TypeBasicDataset.TypeBasicDatasetTypeDocumentDbCollection -1. TypeBasicDataset.TypeBasicDatasetTypeDrillTable -1. TypeBasicDataset.TypeBasicDatasetTypeDynamicsAXResource -1. TypeBasicDataset.TypeBasicDatasetTypeDynamicsCrmEntity -1. TypeBasicDataset.TypeBasicDatasetTypeDynamicsEntity -1. TypeBasicDataset.TypeBasicDatasetTypeEloquaObject -1. TypeBasicDataset.TypeBasicDatasetTypeExcel -1. TypeBasicDataset.TypeBasicDatasetTypeFileShare -1. TypeBasicDataset.TypeBasicDatasetTypeGoogleAdWordsObject -1. TypeBasicDataset.TypeBasicDatasetTypeGoogleBigQueryObject -1. TypeBasicDataset.TypeBasicDatasetTypeGreenplumTable -1. TypeBasicDataset.TypeBasicDatasetTypeHBaseObject -1. TypeBasicDataset.TypeBasicDatasetTypeHTTPFile -1. TypeBasicDataset.TypeBasicDatasetTypeHiveObject -1. TypeBasicDataset.TypeBasicDatasetTypeHubspotObject -1. TypeBasicDataset.TypeBasicDatasetTypeImpalaObject -1. TypeBasicDataset.TypeBasicDatasetTypeInformixTable -1. TypeBasicDataset.TypeBasicDatasetTypeJSON -1. TypeBasicDataset.TypeBasicDatasetTypeJiraObject -1. TypeBasicDataset.TypeBasicDatasetTypeMagentoObject -1. TypeBasicDataset.TypeBasicDatasetTypeMariaDBTable -1. TypeBasicDataset.TypeBasicDatasetTypeMarketoObject -1. TypeBasicDataset.TypeBasicDatasetTypeMicrosoftAccessTable -1. TypeBasicDataset.TypeBasicDatasetTypeMongoDbAtlasCollection -1. TypeBasicDataset.TypeBasicDatasetTypeMongoDbCollection -1. TypeBasicDataset.TypeBasicDatasetTypeMongoDbV2Collection -1. TypeBasicDataset.TypeBasicDatasetTypeMySQLTable -1. TypeBasicDataset.TypeBasicDatasetTypeNetezzaTable -1. TypeBasicDataset.TypeBasicDatasetTypeODataResource -1. TypeBasicDataset.TypeBasicDatasetTypeOdbcTable -1. TypeBasicDataset.TypeBasicDatasetTypeOffice365Table -1. TypeBasicDataset.TypeBasicDatasetTypeOracleServiceCloudObject -1. TypeBasicDataset.TypeBasicDatasetTypeOracleTable -1. TypeBasicDataset.TypeBasicDatasetTypeOrc -1. TypeBasicDataset.TypeBasicDatasetTypeParquet -1. TypeBasicDataset.TypeBasicDatasetTypePaypalObject -1. TypeBasicDataset.TypeBasicDatasetTypePhoenixObject -1. TypeBasicDataset.TypeBasicDatasetTypePostgreSQLTable -1. TypeBasicDataset.TypeBasicDatasetTypePrestoObject -1. TypeBasicDataset.TypeBasicDatasetTypeQuickBooksObject -1. TypeBasicDataset.TypeBasicDatasetTypeRelationalTable -1. TypeBasicDataset.TypeBasicDatasetTypeResponsysObject -1. TypeBasicDataset.TypeBasicDatasetTypeRestResource -1. TypeBasicDataset.TypeBasicDatasetTypeSQLServerTable -1. TypeBasicDataset.TypeBasicDatasetTypeSalesforceMarketingCloudObject -1. TypeBasicDataset.TypeBasicDatasetTypeSalesforceObject -1. TypeBasicDataset.TypeBasicDatasetTypeSalesforceServiceCloudObject -1. TypeBasicDataset.TypeBasicDatasetTypeSapBwCube -1. TypeBasicDataset.TypeBasicDatasetTypeSapCloudForCustomerResource -1. TypeBasicDataset.TypeBasicDatasetTypeSapEccResource -1. TypeBasicDataset.TypeBasicDatasetTypeSapHanaTable -1. TypeBasicDataset.TypeBasicDatasetTypeSapOpenHubTable -1. TypeBasicDataset.TypeBasicDatasetTypeSapTableResource -1. TypeBasicDataset.TypeBasicDatasetTypeServiceNowObject -1. TypeBasicDataset.TypeBasicDatasetTypeSharePointOnlineListResource -1. TypeBasicDataset.TypeBasicDatasetTypeShopifyObject -1. TypeBasicDataset.TypeBasicDatasetTypeSnowflakeTable -1. TypeBasicDataset.TypeBasicDatasetTypeSparkObject -1. TypeBasicDataset.TypeBasicDatasetTypeSquareObject -1. TypeBasicDataset.TypeBasicDatasetTypeSybaseTable -1. TypeBasicDataset.TypeBasicDatasetTypeTeradataTable -1. TypeBasicDataset.TypeBasicDatasetTypeVerticaTable -1. TypeBasicDataset.TypeBasicDatasetTypeWebTable -1. TypeBasicDataset.TypeBasicDatasetTypeXML -1. TypeBasicDataset.TypeBasicDatasetTypeXeroObject -1. TypeBasicDataset.TypeBasicDatasetTypeZohoObject -1. TypeBasicDatasetCompression.TypeBasicDatasetCompressionTypeBZip2 -1. TypeBasicDatasetCompression.TypeBasicDatasetCompressionTypeDatasetCompression -1. TypeBasicDatasetCompression.TypeBasicDatasetCompressionTypeDeflate -1. TypeBasicDatasetCompression.TypeBasicDatasetCompressionTypeGZip -1. TypeBasicDatasetCompression.TypeBasicDatasetCompressionTypeTar -1. TypeBasicDatasetCompression.TypeBasicDatasetCompressionTypeTarGZip -1. TypeBasicDatasetCompression.TypeBasicDatasetCompressionTypeZipDeflate -1. TypeBasicDatasetLocation.TypeBasicDatasetLocationTypeAmazonS3CompatibleLocation -1. TypeBasicDatasetLocation.TypeBasicDatasetLocationTypeAmazonS3Location -1. TypeBasicDatasetLocation.TypeBasicDatasetLocationTypeAzureBlobFSLocation -1. TypeBasicDatasetLocation.TypeBasicDatasetLocationTypeAzureBlobStorageLocation -1. TypeBasicDatasetLocation.TypeBasicDatasetLocationTypeAzureDataLakeStoreLocation -1. TypeBasicDatasetLocation.TypeBasicDatasetLocationTypeAzureFileStorageLocation -1. TypeBasicDatasetLocation.TypeBasicDatasetLocationTypeDatasetLocation -1. TypeBasicDatasetLocation.TypeBasicDatasetLocationTypeFileServerLocation -1. TypeBasicDatasetLocation.TypeBasicDatasetLocationTypeFtpServerLocation -1. TypeBasicDatasetLocation.TypeBasicDatasetLocationTypeGoogleCloudStorageLocation -1. TypeBasicDatasetLocation.TypeBasicDatasetLocationTypeHTTPServerLocation -1. TypeBasicDatasetLocation.TypeBasicDatasetLocationTypeHdfsLocation -1. TypeBasicDatasetLocation.TypeBasicDatasetLocationTypeOracleCloudStorageLocation -1. TypeBasicDatasetLocation.TypeBasicDatasetLocationTypeSftpLocation -1. TypeBasicDatasetStorageFormat.TypeBasicDatasetStorageFormatTypeAvroFormat -1. TypeBasicDatasetStorageFormat.TypeBasicDatasetStorageFormatTypeDatasetStorageFormat -1. TypeBasicDatasetStorageFormat.TypeBasicDatasetStorageFormatTypeJSONFormat -1. TypeBasicDatasetStorageFormat.TypeBasicDatasetStorageFormatTypeOrcFormat -1. TypeBasicDatasetStorageFormat.TypeBasicDatasetStorageFormatTypeParquetFormat -1. TypeBasicDatasetStorageFormat.TypeBasicDatasetStorageFormatTypeTextFormat -1. TypeBasicDependencyReference.TypeBasicDependencyReferenceTypeDependencyReference -1. TypeBasicDependencyReference.TypeBasicDependencyReferenceTypeSelfDependencyTumblingWindowTriggerReference -1. TypeBasicDependencyReference.TypeBasicDependencyReferenceTypeTriggerDependencyReference -1. TypeBasicDependencyReference.TypeBasicDependencyReferenceTypeTumblingWindowTriggerDependencyReference -1. TypeBasicExportSettings.TypeBasicExportSettingsTypeAzureDatabricksDeltaLakeExportCommand -1. TypeBasicExportSettings.TypeBasicExportSettingsTypeExportSettings -1. TypeBasicExportSettings.TypeBasicExportSettingsTypeSnowflakeExportCopyCommand -1. TypeBasicFactoryRepoConfiguration.TypeBasicFactoryRepoConfigurationTypeFactoryGitHubConfiguration -1. TypeBasicFactoryRepoConfiguration.TypeBasicFactoryRepoConfigurationTypeFactoryRepoConfiguration -1. TypeBasicFactoryRepoConfiguration.TypeBasicFactoryRepoConfigurationTypeFactoryVSTSConfiguration -1. TypeBasicFormatReadSettings.TypeBasicFormatReadSettingsTypeBinaryReadSettings -1. TypeBasicFormatReadSettings.TypeBasicFormatReadSettingsTypeDelimitedTextReadSettings -1. TypeBasicFormatReadSettings.TypeBasicFormatReadSettingsTypeFormatReadSettings -1. TypeBasicFormatReadSettings.TypeBasicFormatReadSettingsTypeJSONReadSettings -1. TypeBasicFormatReadSettings.TypeBasicFormatReadSettingsTypeXMLReadSettings -1. TypeBasicFormatWriteSettings.TypeBasicFormatWriteSettingsTypeAvroWriteSettings -1. TypeBasicFormatWriteSettings.TypeBasicFormatWriteSettingsTypeDelimitedTextWriteSettings -1. TypeBasicFormatWriteSettings.TypeBasicFormatWriteSettingsTypeFormatWriteSettings -1. TypeBasicFormatWriteSettings.TypeBasicFormatWriteSettingsTypeJSONWriteSettings -1. TypeBasicFormatWriteSettings.TypeBasicFormatWriteSettingsTypeOrcWriteSettings -1. TypeBasicFormatWriteSettings.TypeBasicFormatWriteSettingsTypeParquetWriteSettings -1. TypeBasicImportSettings.TypeBasicImportSettingsTypeAzureDatabricksDeltaLakeImportCommand -1. TypeBasicImportSettings.TypeBasicImportSettingsTypeImportSettings -1. TypeBasicImportSettings.TypeBasicImportSettingsTypeSnowflakeImportCopyCommand -1. TypeBasicIntegrationRuntime.TypeBasicIntegrationRuntimeTypeIntegrationRuntime -1. TypeBasicIntegrationRuntime.TypeBasicIntegrationRuntimeTypeManaged -1. TypeBasicIntegrationRuntime.TypeBasicIntegrationRuntimeTypeSelfHosted -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeAmazonMWS -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeAmazonRedshift -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeAmazonS3 -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeAmazonS3Compatible -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeAzureBatch -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeAzureBlobFS -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeAzureBlobStorage -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeAzureDataExplorer -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeAzureDataLakeAnalytics -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeAzureDataLakeStore -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeAzureDatabricks -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeAzureFileStorage -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeAzureFunction -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeAzureKeyVault -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeAzureML -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeAzureMLService -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeAzureMariaDB -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeAzureMySQL -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeAzurePostgreSQL -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeAzureSQLDW -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeAzureSQLDatabase -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeAzureSQLMI -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeAzureSearch -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeAzureStorage -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeAzureTableStorage -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeCassandra -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeCommonDataServiceForApps -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeConcur -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeCosmosDb -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeCouchbase -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeCustomDataSource -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeDb2 -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeDrill -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeDynamics -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeDynamicsAX -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeDynamicsCrm -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeEloqua -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeFileServer -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeFtpServer -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeGoogleAdWords -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeGoogleBigQuery -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeGoogleCloudStorage -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeGreenplum -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeHBase -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeHDInsight -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeHDInsightOnDemand -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeHTTPServer -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeHdfs -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeHive -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeHubspot -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeImpala -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeInformix -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeJira -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeLinkedService -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeMagento -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeMariaDB -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeMarketo -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeMicrosoftAccess -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeMongoDb -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeMongoDbAtlas -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeMongoDbV2 -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeMySQL -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeNetezza -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeOData -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeOdbc -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeOffice365 -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeOracle -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeOracleCloudStorage -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeOracleServiceCloud -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypePaypal -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypePhoenix -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypePostgreSQL -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypePresto -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeQuickBooks -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeResponsys -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeRestService -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeSQLServer -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeSalesforce -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeSalesforceMarketingCloud -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeSalesforceServiceCloud -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeSapBW -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeSapCloudForCustomer -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeSapEcc -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeSapHana -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeSapOpenHub -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeSapTable -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeServiceNow -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeSftp -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeSharePointOnlineList -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeShopify -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeSnowflake -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeSpark -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeSquare -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeSybase -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeTeradata -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeVertica -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeWeb -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeXero -1. TypeBasicLinkedService.TypeBasicLinkedServiceTypeZoho -1. TypeBasicSsisObjectMetadata.TypeBasicSsisObjectMetadataTypeEnvironment -1. TypeBasicSsisObjectMetadata.TypeBasicSsisObjectMetadataTypeFolder -1. TypeBasicSsisObjectMetadata.TypeBasicSsisObjectMetadataTypePackage -1. TypeBasicSsisObjectMetadata.TypeBasicSsisObjectMetadataTypeProject -1. TypeBasicSsisObjectMetadata.TypeBasicSsisObjectMetadataTypeSsisObjectMetadata -1. TypeBasicStoreReadSettings.TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings -1. TypeBasicStoreReadSettings.TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings -1. TypeBasicStoreReadSettings.TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings -1. TypeBasicStoreReadSettings.TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings -1. TypeBasicStoreReadSettings.TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings -1. TypeBasicStoreReadSettings.TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings -1. TypeBasicStoreReadSettings.TypeBasicStoreReadSettingsTypeFileServerReadSettings -1. TypeBasicStoreReadSettings.TypeBasicStoreReadSettingsTypeFtpReadSettings -1. TypeBasicStoreReadSettings.TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings -1. TypeBasicStoreReadSettings.TypeBasicStoreReadSettingsTypeHTTPReadSettings -1. TypeBasicStoreReadSettings.TypeBasicStoreReadSettingsTypeHdfsReadSettings -1. TypeBasicStoreReadSettings.TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings -1. TypeBasicStoreReadSettings.TypeBasicStoreReadSettingsTypeSftpReadSettings -1. TypeBasicStoreReadSettings.TypeBasicStoreReadSettingsTypeStoreReadSettings -1. TypeBasicStoreWriteSettings.TypeBasicStoreWriteSettingsTypeAzureBlobFSWriteSettings -1. TypeBasicStoreWriteSettings.TypeBasicStoreWriteSettingsTypeAzureBlobStorageWriteSettings -1. TypeBasicStoreWriteSettings.TypeBasicStoreWriteSettingsTypeAzureDataLakeStoreWriteSettings -1. TypeBasicStoreWriteSettings.TypeBasicStoreWriteSettingsTypeAzureFileStorageWriteSettings -1. TypeBasicStoreWriteSettings.TypeBasicStoreWriteSettingsTypeFileServerWriteSettings -1. TypeBasicStoreWriteSettings.TypeBasicStoreWriteSettingsTypeSftpWriteSettings -1. TypeBasicStoreWriteSettings.TypeBasicStoreWriteSettingsTypeStoreWriteSettings -1. TypeBasicTrigger.TypeBasicTriggerTypeBlobEventsTrigger -1. TypeBasicTrigger.TypeBasicTriggerTypeBlobTrigger -1. TypeBasicTrigger.TypeBasicTriggerTypeChainingTrigger -1. TypeBasicTrigger.TypeBasicTriggerTypeCustomEventsTrigger -1. TypeBasicTrigger.TypeBasicTriggerTypeMultiplePipelineTrigger -1. TypeBasicTrigger.TypeBasicTriggerTypeRerunTumblingWindowTrigger -1. TypeBasicTrigger.TypeBasicTriggerTypeScheduleTrigger -1. TypeBasicTrigger.TypeBasicTriggerTypeTrigger -1. TypeBasicTrigger.TypeBasicTriggerTypeTumblingWindowTrigger +### Struct Changes + +#### New Structs + +1. MetadataItem + +#### New Struct Fields + +1. AmazonMWSSource.DisableMetricsCollection +1. AmazonRedshiftSource.DisableMetricsCollection +1. AmazonS3CompatibleReadSettings.DisableMetricsCollection +1. AmazonS3ReadSettings.DisableMetricsCollection +1. AvroSink.DisableMetricsCollection +1. AvroSource.DisableMetricsCollection +1. AzureBlobFSReadSettings.DisableMetricsCollection +1. AzureBlobFSSink.DisableMetricsCollection +1. AzureBlobFSSink.Metadata +1. AzureBlobFSSource.DisableMetricsCollection +1. AzureBlobFSWriteSettings.DisableMetricsCollection +1. AzureBlobStorageReadSettings.DisableMetricsCollection +1. AzureBlobStorageWriteSettings.DisableMetricsCollection +1. AzureDataExplorerSink.DisableMetricsCollection +1. AzureDataExplorerSource.DisableMetricsCollection +1. AzureDataLakeStoreReadSettings.DisableMetricsCollection +1. AzureDataLakeStoreSink.DisableMetricsCollection +1. AzureDataLakeStoreSource.DisableMetricsCollection +1. AzureDataLakeStoreWriteSettings.DisableMetricsCollection +1. AzureDatabricksDeltaLakeSink.DisableMetricsCollection +1. AzureDatabricksDeltaLakeSource.DisableMetricsCollection +1. AzureFileStorageReadSettings.DisableMetricsCollection +1. AzureFileStorageWriteSettings.DisableMetricsCollection +1. AzureMariaDBSource.DisableMetricsCollection +1. AzureMySQLSink.DisableMetricsCollection +1. AzureMySQLSource.DisableMetricsCollection +1. AzurePostgreSQLSink.DisableMetricsCollection +1. AzurePostgreSQLSource.DisableMetricsCollection +1. AzureQueueSink.DisableMetricsCollection +1. AzureSQLSink.DisableMetricsCollection +1. AzureSQLSource.DisableMetricsCollection +1. AzureSearchIndexSink.DisableMetricsCollection +1. AzureTableSink.DisableMetricsCollection +1. AzureTableSource.DisableMetricsCollection +1. BinarySink.DisableMetricsCollection +1. BinarySource.DisableMetricsCollection +1. BlobSink.DisableMetricsCollection +1. BlobSink.Metadata +1. BlobSource.DisableMetricsCollection +1. CassandraSource.DisableMetricsCollection +1. CommonDataServiceForAppsSink.DisableMetricsCollection +1. CommonDataServiceForAppsSource.DisableMetricsCollection +1. ConcurSource.DisableMetricsCollection +1. CopySink.DisableMetricsCollection +1. CopySource.DisableMetricsCollection +1. CosmosDbMongoDbAPISink.DisableMetricsCollection +1. CosmosDbMongoDbAPISource.DisableMetricsCollection +1. CosmosDbSQLAPISink.DisableMetricsCollection +1. CosmosDbSQLAPISource.DisableMetricsCollection +1. CouchbaseSource.DisableMetricsCollection +1. Db2Source.DisableMetricsCollection +1. DelimitedTextSink.DisableMetricsCollection +1. DelimitedTextSource.DisableMetricsCollection +1. DocumentDbCollectionSink.DisableMetricsCollection +1. DocumentDbCollectionSource.DisableMetricsCollection +1. DrillSource.DisableMetricsCollection +1. DynamicsAXSource.DisableMetricsCollection +1. DynamicsCrmSink.DisableMetricsCollection +1. DynamicsCrmSource.DisableMetricsCollection +1. DynamicsSink.DisableMetricsCollection +1. DynamicsSource.DisableMetricsCollection +1. EloquaSource.DisableMetricsCollection +1. ExcelDatasetTypeProperties.SheetIndex +1. ExcelSource.DisableMetricsCollection +1. FileServerReadSettings.DisableMetricsCollection +1. FileServerWriteSettings.DisableMetricsCollection +1. FileSystemSink.DisableMetricsCollection +1. FileSystemSource.DisableMetricsCollection +1. FtpReadSettings.DisableMetricsCollection +1. GoogleAdWordsSource.DisableMetricsCollection +1. GoogleBigQuerySource.DisableMetricsCollection +1. GoogleCloudStorageReadSettings.DisableMetricsCollection +1. GreenplumSource.DisableMetricsCollection +1. HBaseSource.DisableMetricsCollection +1. HTTPReadSettings.DisableMetricsCollection +1. HTTPSource.DisableMetricsCollection +1. HdfsReadSettings.DisableMetricsCollection +1. HdfsSource.DisableMetricsCollection +1. HiveSource.DisableMetricsCollection +1. HubspotSource.DisableMetricsCollection +1. ImpalaSource.DisableMetricsCollection +1. InformixSink.DisableMetricsCollection +1. InformixSource.DisableMetricsCollection +1. IntegrationRuntimeSsisProperties.ManagedCredential +1. JSONSink.DisableMetricsCollection +1. JSONSource.DisableMetricsCollection +1. JiraSource.DisableMetricsCollection +1. MagentoSource.DisableMetricsCollection +1. MariaDBSource.DisableMetricsCollection +1. MarketoSource.DisableMetricsCollection +1. MicrosoftAccessSink.DisableMetricsCollection +1. MicrosoftAccessSource.DisableMetricsCollection +1. MongoDbAtlasSink.DisableMetricsCollection +1. MongoDbAtlasSource.DisableMetricsCollection +1. MongoDbSource.DisableMetricsCollection +1. MongoDbV2Sink.DisableMetricsCollection +1. MongoDbV2Source.DisableMetricsCollection +1. MySQLSource.DisableMetricsCollection +1. NetezzaSource.DisableMetricsCollection +1. ODataSource.DisableMetricsCollection +1. OdbcSink.DisableMetricsCollection +1. OdbcSource.DisableMetricsCollection +1. Office365Source.DisableMetricsCollection +1. OracleCloudStorageReadSettings.DisableMetricsCollection +1. OracleServiceCloudSource.DisableMetricsCollection +1. OracleSink.DisableMetricsCollection +1. OracleSource.DisableMetricsCollection +1. OrcSink.DisableMetricsCollection +1. OrcSource.DisableMetricsCollection +1. ParquetSink.DisableMetricsCollection +1. ParquetSource.DisableMetricsCollection +1. PaypalSource.DisableMetricsCollection +1. PhoenixSource.DisableMetricsCollection +1. PostgreSQLSource.DisableMetricsCollection +1. PrestoSource.DisableMetricsCollection +1. QuickBooksSource.DisableMetricsCollection +1. RelationalSource.DisableMetricsCollection +1. ResponsysSource.DisableMetricsCollection +1. RestSink.DisableMetricsCollection +1. RestSource.DisableMetricsCollection +1. SQLDWSink.DisableMetricsCollection +1. SQLDWSource.DisableMetricsCollection +1. SQLMISink.DisableMetricsCollection +1. SQLMISource.DisableMetricsCollection +1. SQLServerSink.DisableMetricsCollection +1. SQLServerSource.DisableMetricsCollection +1. SQLSink.DisableMetricsCollection +1. SQLSource.DisableMetricsCollection +1. SalesforceMarketingCloudSource.DisableMetricsCollection +1. SalesforceServiceCloudSink.DisableMetricsCollection +1. SalesforceServiceCloudSource.DisableMetricsCollection +1. SalesforceSink.DisableMetricsCollection +1. SalesforceSource.DisableMetricsCollection +1. SapBwSource.DisableMetricsCollection +1. SapCloudForCustomerSink.DisableMetricsCollection +1. SapCloudForCustomerSource.DisableMetricsCollection +1. SapEccSource.DisableMetricsCollection +1. SapHanaSource.DisableMetricsCollection +1. SapOpenHubSource.DisableMetricsCollection +1. SapTableSource.DisableMetricsCollection +1. ServiceNowSource.DisableMetricsCollection +1. SftpReadSettings.DisableMetricsCollection +1. SftpWriteSettings.DisableMetricsCollection +1. SharePointOnlineListSource.DisableMetricsCollection +1. ShopifySource.DisableMetricsCollection +1. SnowflakeSink.DisableMetricsCollection +1. SnowflakeSource.DisableMetricsCollection +1. SparkSource.DisableMetricsCollection +1. SquareSource.DisableMetricsCollection +1. StoreReadSettings.DisableMetricsCollection +1. StoreWriteSettings.DisableMetricsCollection +1. SybaseSource.DisableMetricsCollection +1. TabularSource.DisableMetricsCollection +1. TeradataSource.DisableMetricsCollection +1. VerticaSource.DisableMetricsCollection +1. WebSource.DisableMetricsCollection +1. XMLSource.DisableMetricsCollection +1. XeroSource.DisableMetricsCollection +1. ZohoSource.DisableMetricsCollection diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/_meta.json b/services/datafactory/mgmt/2018-06-01/datafactory/_meta.json index 612a1ef076c6..b0ad88fa8bf7 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/_meta.json +++ b/services/datafactory/mgmt/2018-06-01/datafactory/_meta.json @@ -1,10 +1,10 @@ { - "commit": "ea5bc27ee9cadeb67767d774c82095be2420bcad", + "commit": "394395ed0bdc1c5c05cb37a031379ca03bfebbb5", "readme": "/_/azure-rest-api-specs/specification/datafactory/resource-manager/readme.md", "tag": "package-2018-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/datafactory/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/datafactory/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix" } diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/enums.go b/services/datafactory/mgmt/2018-06-01/datafactory/enums.go index 4027b310aa43..1b165d84eea0 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/enums.go +++ b/services/datafactory/mgmt/2018-06-01/datafactory/enums.go @@ -10,36 +10,36 @@ package datafactory type AuthenticationType string const ( - // AuthenticationTypeAuthenticationTypeAnonymous ... - AuthenticationTypeAuthenticationTypeAnonymous AuthenticationType = "Anonymous" - // AuthenticationTypeAuthenticationTypeBasic ... - AuthenticationTypeAuthenticationTypeBasic AuthenticationType = "Basic" - // AuthenticationTypeAuthenticationTypeClientCertificate ... - AuthenticationTypeAuthenticationTypeClientCertificate AuthenticationType = "ClientCertificate" - // AuthenticationTypeAuthenticationTypeWebLinkedServiceTypeProperties ... - AuthenticationTypeAuthenticationTypeWebLinkedServiceTypeProperties AuthenticationType = "WebLinkedServiceTypeProperties" + // AuthenticationTypeAnonymous ... + AuthenticationTypeAnonymous AuthenticationType = "Anonymous" + // AuthenticationTypeBasic ... + AuthenticationTypeBasic AuthenticationType = "Basic" + // AuthenticationTypeClientCertificate ... + AuthenticationTypeClientCertificate AuthenticationType = "ClientCertificate" + // AuthenticationTypeWebLinkedServiceTypeProperties ... + AuthenticationTypeWebLinkedServiceTypeProperties AuthenticationType = "WebLinkedServiceTypeProperties" ) // PossibleAuthenticationTypeValues returns an array of possible values for the AuthenticationType const type. func PossibleAuthenticationTypeValues() []AuthenticationType { - return []AuthenticationType{AuthenticationTypeAuthenticationTypeAnonymous, AuthenticationTypeAuthenticationTypeBasic, AuthenticationTypeAuthenticationTypeClientCertificate, AuthenticationTypeAuthenticationTypeWebLinkedServiceTypeProperties} + return []AuthenticationType{AuthenticationTypeAnonymous, AuthenticationTypeBasic, AuthenticationTypeClientCertificate, AuthenticationTypeWebLinkedServiceTypeProperties} } // AuthorizationType enumerates the values for authorization type. type AuthorizationType string const ( - // AuthorizationTypeAuthorizationTypeKey ... - AuthorizationTypeAuthorizationTypeKey AuthorizationType = "Key" - // AuthorizationTypeAuthorizationTypeLinkedIntegrationRuntimeType ... - AuthorizationTypeAuthorizationTypeLinkedIntegrationRuntimeType AuthorizationType = "LinkedIntegrationRuntimeType" - // AuthorizationTypeAuthorizationTypeRBAC ... - AuthorizationTypeAuthorizationTypeRBAC AuthorizationType = "RBAC" + // AuthorizationTypeKey ... + AuthorizationTypeKey AuthorizationType = "Key" + // AuthorizationTypeLinkedIntegrationRuntimeType ... + AuthorizationTypeLinkedIntegrationRuntimeType AuthorizationType = "LinkedIntegrationRuntimeType" + // AuthorizationTypeRBAC ... + AuthorizationTypeRBAC AuthorizationType = "RBAC" ) // PossibleAuthorizationTypeValues returns an array of possible values for the AuthorizationType const type. func PossibleAuthorizationTypeValues() []AuthorizationType { - return []AuthorizationType{AuthorizationTypeAuthorizationTypeKey, AuthorizationTypeAuthorizationTypeLinkedIntegrationRuntimeType, AuthorizationTypeAuthorizationTypeRBAC} + return []AuthorizationType{AuthorizationTypeKey, AuthorizationTypeLinkedIntegrationRuntimeType, AuthorizationTypeRBAC} } // AvroCompressionCodec enumerates the values for avro compression codec. @@ -149,6 +149,37 @@ func PossibleCassandraSourceReadConsistencyLevelsValues() []CassandraSourceReadC return []CassandraSourceReadConsistencyLevels{CassandraSourceReadConsistencyLevelsALL, CassandraSourceReadConsistencyLevelsEACHQUORUM, CassandraSourceReadConsistencyLevelsLOCALONE, CassandraSourceReadConsistencyLevelsLOCALQUORUM, CassandraSourceReadConsistencyLevelsLOCALSERIAL, CassandraSourceReadConsistencyLevelsONE, CassandraSourceReadConsistencyLevelsQUORUM, CassandraSourceReadConsistencyLevelsSERIAL, CassandraSourceReadConsistencyLevelsTHREE, CassandraSourceReadConsistencyLevelsTWO} } +// CompressionCodec enumerates the values for compression codec. +type CompressionCodec string + +const ( + // CompressionCodecBzip2 ... + CompressionCodecBzip2 CompressionCodec = "bzip2" + // CompressionCodecDeflate ... + CompressionCodecDeflate CompressionCodec = "deflate" + // CompressionCodecGzip ... + CompressionCodecGzip CompressionCodec = "gzip" + // CompressionCodecLz4 ... + CompressionCodecLz4 CompressionCodec = "lz4" + // CompressionCodecLzo ... + CompressionCodecLzo CompressionCodec = "lzo" + // CompressionCodecNone ... + CompressionCodecNone CompressionCodec = "none" + // CompressionCodecSnappy ... + CompressionCodecSnappy CompressionCodec = "snappy" + // CompressionCodecTar ... + CompressionCodecTar CompressionCodec = "tar" + // CompressionCodecTarGZip ... + CompressionCodecTarGZip CompressionCodec = "tarGZip" + // CompressionCodecZipDeflate ... + CompressionCodecZipDeflate CompressionCodec = "zipDeflate" +) + +// PossibleCompressionCodecValues returns an array of possible values for the CompressionCodec const type. +func PossibleCompressionCodecValues() []CompressionCodec { + return []CompressionCodec{CompressionCodecBzip2, CompressionCodecDeflate, CompressionCodecGzip, CompressionCodecLz4, CompressionCodecLzo, CompressionCodecNone, CompressionCodecSnappy, CompressionCodecTar, CompressionCodecTarGZip, CompressionCodecZipDeflate} +} + // CopyBehaviorType enumerates the values for copy behavior type. type CopyBehaviorType string @@ -231,6 +262,21 @@ func PossibleDataFlowDebugCommandTypeValues() []DataFlowDebugCommandType { return []DataFlowDebugCommandType{DataFlowDebugCommandTypeExecuteExpressionQuery, DataFlowDebugCommandTypeExecutePreviewQuery, DataFlowDebugCommandTypeExecuteStatisticsQuery} } +// DatasetCompressionLevel enumerates the values for dataset compression level. +type DatasetCompressionLevel string + +const ( + // DatasetCompressionLevelFastest ... + DatasetCompressionLevelFastest DatasetCompressionLevel = "Fastest" + // DatasetCompressionLevelOptimal ... + DatasetCompressionLevelOptimal DatasetCompressionLevel = "Optimal" +) + +// PossibleDatasetCompressionLevelValues returns an array of possible values for the DatasetCompressionLevel const type. +func PossibleDatasetCompressionLevelValues() []DatasetCompressionLevel { + return []DatasetCompressionLevel{DatasetCompressionLevelFastest, DatasetCompressionLevelOptimal} +} + // DayOfWeek enumerates the values for day of week. type DayOfWeek string @@ -479,6 +525,23 @@ func PossibleHBaseAuthenticationTypeValues() []HBaseAuthenticationType { return []HBaseAuthenticationType{HBaseAuthenticationTypeAnonymous, HBaseAuthenticationTypeBasic} } +// HdiNodeTypes enumerates the values for hdi node types. +type HdiNodeTypes string + +const ( + // HdiNodeTypesHeadnode ... + HdiNodeTypesHeadnode HdiNodeTypes = "Headnode" + // HdiNodeTypesWorkernode ... + HdiNodeTypesWorkernode HdiNodeTypes = "Workernode" + // HdiNodeTypesZookeeper ... + HdiNodeTypesZookeeper HdiNodeTypes = "Zookeeper" +) + +// PossibleHdiNodeTypesValues returns an array of possible values for the HdiNodeTypes const type. +func PossibleHdiNodeTypesValues() []HdiNodeTypes { + return []HdiNodeTypes{HdiNodeTypesHeadnode, HdiNodeTypesWorkernode, HdiNodeTypesZookeeper} +} + // HDInsightActivityDebugInfoOption enumerates the values for hd insight activity debug info option. type HDInsightActivityDebugInfoOption string @@ -636,6 +699,8 @@ func PossibleIntegrationRuntimeEditionValues() []IntegrationRuntimeEdition { type IntegrationRuntimeEntityReferenceType string const ( + // IntegrationRuntimeEntityReferenceTypeCredentialReference ... + IntegrationRuntimeEntityReferenceTypeCredentialReference IntegrationRuntimeEntityReferenceType = "CredentialReference" // IntegrationRuntimeEntityReferenceTypeIntegrationRuntimeReference ... IntegrationRuntimeEntityReferenceTypeIntegrationRuntimeReference IntegrationRuntimeEntityReferenceType = "IntegrationRuntimeReference" // IntegrationRuntimeEntityReferenceTypeLinkedServiceReference ... @@ -644,7 +709,7 @@ const ( // PossibleIntegrationRuntimeEntityReferenceTypeValues returns an array of possible values for the IntegrationRuntimeEntityReferenceType const type. func PossibleIntegrationRuntimeEntityReferenceTypeValues() []IntegrationRuntimeEntityReferenceType { - return []IntegrationRuntimeEntityReferenceType{IntegrationRuntimeEntityReferenceTypeIntegrationRuntimeReference, IntegrationRuntimeEntityReferenceTypeLinkedServiceReference} + return []IntegrationRuntimeEntityReferenceType{IntegrationRuntimeEntityReferenceTypeCredentialReference, IntegrationRuntimeEntityReferenceTypeIntegrationRuntimeReference, IntegrationRuntimeEntityReferenceTypeLinkedServiceReference} } // IntegrationRuntimeInternalChannelEncryptionMode enumerates the values for integration runtime internal @@ -763,6 +828,21 @@ func PossibleIntegrationRuntimeUpdateResultValues() []IntegrationRuntimeUpdateRe return []IntegrationRuntimeUpdateResult{IntegrationRuntimeUpdateResultFail, IntegrationRuntimeUpdateResultNone, IntegrationRuntimeUpdateResultSucceed} } +// JSONFormatFilePattern enumerates the values for json format file pattern. +type JSONFormatFilePattern string + +const ( + // JSONFormatFilePatternArrayOfObjects ... + JSONFormatFilePatternArrayOfObjects JSONFormatFilePattern = "arrayOfObjects" + // JSONFormatFilePatternSetOfObjects ... + JSONFormatFilePatternSetOfObjects JSONFormatFilePattern = "setOfObjects" +) + +// PossibleJSONFormatFilePatternValues returns an array of possible values for the JSONFormatFilePattern const type. +func PossibleJSONFormatFilePatternValues() []JSONFormatFilePattern { + return []JSONFormatFilePattern{JSONFormatFilePatternArrayOfObjects, JSONFormatFilePatternSetOfObjects} +} + // JSONWriteFilePattern enumerates the values for json write file pattern. type JSONWriteFilePattern string @@ -1272,6 +1352,21 @@ func PossibleServiceNowAuthenticationTypeValues() []ServiceNowAuthenticationType return []ServiceNowAuthenticationType{ServiceNowAuthenticationTypeBasic, ServiceNowAuthenticationTypeOAuth2} } +// ServicePrincipalCredentialType enumerates the values for service principal credential type. +type ServicePrincipalCredentialType string + +const ( + // ServicePrincipalCredentialTypeServicePrincipalCert ... + ServicePrincipalCredentialTypeServicePrincipalCert ServicePrincipalCredentialType = "ServicePrincipalCert" + // ServicePrincipalCredentialTypeServicePrincipalKey ... + ServicePrincipalCredentialTypeServicePrincipalKey ServicePrincipalCredentialType = "ServicePrincipalKey" +) + +// PossibleServicePrincipalCredentialTypeValues returns an array of possible values for the ServicePrincipalCredentialType const type. +func PossibleServicePrincipalCredentialTypeValues() []ServicePrincipalCredentialType { + return []ServicePrincipalCredentialType{ServicePrincipalCredentialTypeServicePrincipalCert, ServicePrincipalCredentialTypeServicePrincipalKey} +} + // SftpAuthenticationType enumerates the values for sftp authentication type. type SftpAuthenticationType string @@ -1539,17 +1634,17 @@ func PossibleTumblingWindowFrequencyValues() []TumblingWindowFrequency { type Type string const ( - // TypeTypeAzureKeyVaultSecret ... - TypeTypeAzureKeyVaultSecret Type = "AzureKeyVaultSecret" - // TypeTypeSecretBase ... - TypeTypeSecretBase Type = "SecretBase" - // TypeTypeSecureString ... - TypeTypeSecureString Type = "SecureString" + // TypeAzureKeyVaultSecret ... + TypeAzureKeyVaultSecret Type = "AzureKeyVaultSecret" + // TypeSecretBase ... + TypeSecretBase Type = "SecretBase" + // TypeSecureString ... + TypeSecureString Type = "SecureString" ) // PossibleTypeValues returns an array of possible values for the Type const type. func PossibleTypeValues() []Type { - return []Type{TypeTypeAzureKeyVaultSecret, TypeTypeSecretBase, TypeTypeSecureString} + return []Type{TypeAzureKeyVaultSecret, TypeSecretBase, TypeSecureString} } // TypeBasicActivity enumerates the values for type basic activity. diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/models.go b/services/datafactory/mgmt/2018-06-01/datafactory/models.go index 89dcc8f53eec..1a2c5974dfcc 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/models.go +++ b/services/datafactory/mgmt/2018-06-01/datafactory/models.go @@ -2380,6 +2380,8 @@ type AmazonMWSSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -2406,6 +2408,9 @@ func (ams AmazonMWSSource) MarshalJSON() ([]byte, error) { if ams.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ams.MaxConcurrentConnections } + if ams.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ams.DisableMetricsCollection + } if ams.Type != "" { objectMap["type"] = ams.Type } @@ -2970,6 +2975,15 @@ func (ams *AmazonMWSSource) UnmarshalJSON(body []byte) error { } ams.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ams.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -3724,6 +3738,8 @@ type AmazonRedshiftSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -3753,6 +3769,9 @@ func (ars AmazonRedshiftSource) MarshalJSON() ([]byte, error) { if ars.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ars.MaxConcurrentConnections } + if ars.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ars.DisableMetricsCollection + } if ars.Type != "" { objectMap["type"] = ars.Type } @@ -4326,6 +4345,15 @@ func (ars *AmazonRedshiftSource) UnmarshalJSON(body []byte) error { } ars.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ars.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -5919,6 +5947,8 @@ type AmazonS3CompatibleReadSettings struct { AdditionalProperties map[string]interface{} `json:""` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' Type TypeBasicStoreReadSettings `json:"type,omitempty"` } @@ -5960,6 +5990,9 @@ func (ascrs AmazonS3CompatibleReadSettings) MarshalJSON() ([]byte, error) { if ascrs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ascrs.MaxConcurrentConnections } + if ascrs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ascrs.DisableMetricsCollection + } if ascrs.Type != "" { objectMap["type"] = ascrs.Type } @@ -6164,6 +6197,15 @@ func (ascrs *AmazonS3CompatibleReadSettings) UnmarshalJSON(body []byte) error { } ascrs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ascrs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicStoreReadSettings @@ -7862,6 +7904,8 @@ type AmazonS3ReadSettings struct { AdditionalProperties map[string]interface{} `json:""` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' Type TypeBasicStoreReadSettings `json:"type,omitempty"` } @@ -7903,6 +7947,9 @@ func (asrs AmazonS3ReadSettings) MarshalJSON() ([]byte, error) { if asrs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = asrs.MaxConcurrentConnections } + if asrs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = asrs.DisableMetricsCollection + } if asrs.Type != "" { objectMap["type"] = asrs.Type } @@ -8107,6 +8154,15 @@ func (asrs *AmazonS3ReadSettings) UnmarshalJSON(body []byte) error { } asrs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + asrs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicStoreReadSettings @@ -8463,6 +8519,12 @@ type ArmIDWrapper struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for ArmIDWrapper. +func (aiw ArmIDWrapper) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AvroDataset avro dataset. type AvroDataset struct { // AvroDatasetTypeProperties - Avro dataset properties. @@ -9295,6 +9357,8 @@ type AvroSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -9322,6 +9386,9 @@ func (as AvroSink) MarshalJSON() ([]byte, error) { if as.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = as.MaxConcurrentConnections } + if as.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = as.DisableMetricsCollection + } if as.Type != "" { objectMap["type"] = as.Type } @@ -9619,6 +9686,15 @@ func (as *AvroSink) UnmarshalJSON(body []byte) error { } as.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + as.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -9648,6 +9724,8 @@ type AvroSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -9669,6 +9747,9 @@ func (as AvroSource) MarshalJSON() ([]byte, error) { if as.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = as.MaxConcurrentConnections } + if as.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = as.DisableMetricsCollection + } if as.Type != "" { objectMap["type"] = as.Type } @@ -10223,6 +10304,15 @@ func (as *AvroSource) UnmarshalJSON(body []byte) error { } as.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + as.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -13570,6 +13660,8 @@ type AzureBlobFSReadSettings struct { AdditionalProperties map[string]interface{} `json:""` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' Type TypeBasicStoreReadSettings `json:"type,omitempty"` } @@ -13608,6 +13700,9 @@ func (abfrs AzureBlobFSReadSettings) MarshalJSON() ([]byte, error) { if abfrs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = abfrs.MaxConcurrentConnections } + if abfrs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = abfrs.DisableMetricsCollection + } if abfrs.Type != "" { objectMap["type"] = abfrs.Type } @@ -13803,6 +13898,15 @@ func (abfrs *AzureBlobFSReadSettings) UnmarshalJSON(body []byte) error { } abfrs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + abfrs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicStoreReadSettings @@ -13822,6 +13926,8 @@ func (abfrs *AzureBlobFSReadSettings) UnmarshalJSON(body []byte) error { type AzureBlobFSSink struct { // CopyBehavior - The type of copy behavior for copy sink. CopyBehavior interface{} `json:"copyBehavior,omitempty"` + // Metadata - Specify the custom metadata to be added to sink data. Type: array of objects (or Expression with resultType array of objects). + Metadata *[]MetadataItem `json:"metadata,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. @@ -13834,6 +13940,8 @@ type AzureBlobFSSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -13845,6 +13953,9 @@ func (abfs AzureBlobFSSink) MarshalJSON() ([]byte, error) { if abfs.CopyBehavior != nil { objectMap["copyBehavior"] = abfs.CopyBehavior } + if abfs.Metadata != nil { + objectMap["metadata"] = abfs.Metadata + } if abfs.WriteBatchSize != nil { objectMap["writeBatchSize"] = abfs.WriteBatchSize } @@ -13860,6 +13971,9 @@ func (abfs AzureBlobFSSink) MarshalJSON() ([]byte, error) { if abfs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = abfs.MaxConcurrentConnections } + if abfs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = abfs.DisableMetricsCollection + } if abfs.Type != "" { objectMap["type"] = abfs.Type } @@ -14092,6 +14206,15 @@ func (abfs *AzureBlobFSSink) UnmarshalJSON(body []byte) error { } abfs.CopyBehavior = copyBehavior } + case "metadata": + if v != nil { + var metadata []MetadataItem + err = json.Unmarshal(*v, &metadata) + if err != nil { + return err + } + abfs.Metadata = &metadata + } default: if v != nil { var additionalProperties interface{} @@ -14149,6 +14272,15 @@ func (abfs *AzureBlobFSSink) UnmarshalJSON(body []byte) error { } abfs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + abfs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -14180,6 +14312,8 @@ type AzureBlobFSSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -14206,6 +14340,9 @@ func (abfs AzureBlobFSSource) MarshalJSON() ([]byte, error) { if abfs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = abfs.MaxConcurrentConnections } + if abfs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = abfs.DisableMetricsCollection + } if abfs.Type != "" { objectMap["type"] = abfs.Type } @@ -14770,6 +14907,15 @@ func (abfs *AzureBlobFSSource) UnmarshalJSON(body []byte) error { } abfs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + abfs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -14793,6 +14939,8 @@ type AzureBlobFSWriteSettings struct { AdditionalProperties map[string]interface{} `json:""` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // CopyBehavior - The type of copy behavior for copy sink. CopyBehavior interface{} `json:"copyBehavior,omitempty"` // Type - Possible values include: 'TypeBasicStoreWriteSettingsTypeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureFileStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeFileServerWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureDataLakeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobFSWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeSftpWriteSettings' @@ -14809,6 +14957,9 @@ func (abfws AzureBlobFSWriteSettings) MarshalJSON() ([]byte, error) { if abfws.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = abfws.MaxConcurrentConnections } + if abfws.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = abfws.DisableMetricsCollection + } if abfws.CopyBehavior != nil { objectMap["copyBehavior"] = abfws.CopyBehavior } @@ -14900,6 +15051,15 @@ func (abfws *AzureBlobFSWriteSettings) UnmarshalJSON(body []byte) error { } abfws.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + abfws.DisableMetricsCollection = disableMetricsCollection + } case "copyBehavior": if v != nil { var copyBehavior interface{} @@ -15900,6 +16060,8 @@ type AzureBlobStorageReadSettings struct { AdditionalProperties map[string]interface{} `json:""` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' Type TypeBasicStoreReadSettings `json:"type,omitempty"` } @@ -15941,6 +16103,9 @@ func (absrs AzureBlobStorageReadSettings) MarshalJSON() ([]byte, error) { if absrs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = absrs.MaxConcurrentConnections } + if absrs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = absrs.DisableMetricsCollection + } if absrs.Type != "" { objectMap["type"] = absrs.Type } @@ -16145,6 +16310,15 @@ func (absrs *AzureBlobStorageReadSettings) UnmarshalJSON(body []byte) error { } absrs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + absrs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicStoreReadSettings @@ -16168,6 +16342,8 @@ type AzureBlobStorageWriteSettings struct { AdditionalProperties map[string]interface{} `json:""` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // CopyBehavior - The type of copy behavior for copy sink. CopyBehavior interface{} `json:"copyBehavior,omitempty"` // Type - Possible values include: 'TypeBasicStoreWriteSettingsTypeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureFileStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeFileServerWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureDataLakeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobFSWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeSftpWriteSettings' @@ -16184,6 +16360,9 @@ func (absws AzureBlobStorageWriteSettings) MarshalJSON() ([]byte, error) { if absws.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = absws.MaxConcurrentConnections } + if absws.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = absws.DisableMetricsCollection + } if absws.CopyBehavior != nil { objectMap["copyBehavior"] = absws.CopyBehavior } @@ -16275,6 +16454,15 @@ func (absws *AzureBlobStorageWriteSettings) UnmarshalJSON(body []byte) error { } absws.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + absws.DisableMetricsCollection = disableMetricsCollection + } case "copyBehavior": if v != nil { var copyBehavior interface{} @@ -17816,6 +18004,8 @@ type AzureDatabricksDeltaLakeSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -17845,6 +18035,9 @@ func (addls AzureDatabricksDeltaLakeSink) MarshalJSON() ([]byte, error) { if addls.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = addls.MaxConcurrentConnections } + if addls.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = addls.DisableMetricsCollection + } if addls.Type != "" { objectMap["type"] = addls.Type } @@ -18143,6 +18336,15 @@ func (addls *AzureDatabricksDeltaLakeSink) UnmarshalJSON(body []byte) error { } addls.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + addls.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -18172,6 +18374,8 @@ type AzureDatabricksDeltaLakeSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -18195,6 +18399,9 @@ func (addls AzureDatabricksDeltaLakeSource) MarshalJSON() ([]byte, error) { if addls.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = addls.MaxConcurrentConnections } + if addls.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = addls.DisableMetricsCollection + } if addls.Type != "" { objectMap["type"] = addls.Type } @@ -18750,6 +18957,15 @@ func (addls *AzureDatabricksDeltaLakeSource) UnmarshalJSON(body []byte) error { } addls.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + addls.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -20838,6 +21054,8 @@ type AzureDataExplorerSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -20870,6 +21088,9 @@ func (ades AzureDataExplorerSink) MarshalJSON() ([]byte, error) { if ades.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ades.MaxConcurrentConnections } + if ades.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ades.DisableMetricsCollection + } if ades.Type != "" { objectMap["type"] = ades.Type } @@ -21177,6 +21398,15 @@ func (ades *AzureDataExplorerSink) UnmarshalJSON(body []byte) error { } ades.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ades.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -21210,6 +21440,8 @@ type AzureDataExplorerSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -21239,6 +21471,9 @@ func (ades AzureDataExplorerSource) MarshalJSON() ([]byte, error) { if ades.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ades.MaxConcurrentConnections } + if ades.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ades.DisableMetricsCollection + } if ades.Type != "" { objectMap["type"] = ades.Type } @@ -21812,6 +22047,15 @@ func (ades *AzureDataExplorerSource) UnmarshalJSON(body []byte) error { } ades.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ades.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -24861,6 +25105,8 @@ type AzureDataLakeStoreReadSettings struct { AdditionalProperties map[string]interface{} `json:""` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' Type TypeBasicStoreReadSettings `json:"type,omitempty"` } @@ -24905,6 +25151,9 @@ func (adlsrs AzureDataLakeStoreReadSettings) MarshalJSON() ([]byte, error) { if adlsrs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = adlsrs.MaxConcurrentConnections } + if adlsrs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = adlsrs.DisableMetricsCollection + } if adlsrs.Type != "" { objectMap["type"] = adlsrs.Type } @@ -25118,6 +25367,15 @@ func (adlsrs *AzureDataLakeStoreReadSettings) UnmarshalJSON(body []byte) error { } adlsrs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + adlsrs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicStoreReadSettings @@ -25151,6 +25409,8 @@ type AzureDataLakeStoreSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -25180,6 +25440,9 @@ func (adlss AzureDataLakeStoreSink) MarshalJSON() ([]byte, error) { if adlss.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = adlss.MaxConcurrentConnections } + if adlss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = adlss.DisableMetricsCollection + } if adlss.Type != "" { objectMap["type"] = adlss.Type } @@ -25478,6 +25741,15 @@ func (adlss *AzureDataLakeStoreSink) UnmarshalJSON(body []byte) error { } adlss.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + adlss.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -25505,6 +25777,8 @@ type AzureDataLakeStoreSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -25525,6 +25799,9 @@ func (adlss AzureDataLakeStoreSource) MarshalJSON() ([]byte, error) { if adlss.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = adlss.MaxConcurrentConnections } + if adlss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = adlss.DisableMetricsCollection + } if adlss.Type != "" { objectMap["type"] = adlss.Type } @@ -26071,6 +26348,15 @@ func (adlss *AzureDataLakeStoreSource) UnmarshalJSON(body []byte) error { } adlss.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + adlss.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -26094,6 +26380,8 @@ type AzureDataLakeStoreWriteSettings struct { AdditionalProperties map[string]interface{} `json:""` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // CopyBehavior - The type of copy behavior for copy sink. CopyBehavior interface{} `json:"copyBehavior,omitempty"` // Type - Possible values include: 'TypeBasicStoreWriteSettingsTypeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureFileStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeFileServerWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureDataLakeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobFSWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeSftpWriteSettings' @@ -26110,6 +26398,9 @@ func (adlsws AzureDataLakeStoreWriteSettings) MarshalJSON() ([]byte, error) { if adlsws.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = adlsws.MaxConcurrentConnections } + if adlsws.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = adlsws.DisableMetricsCollection + } if adlsws.CopyBehavior != nil { objectMap["copyBehavior"] = adlsws.CopyBehavior } @@ -26201,6 +26492,15 @@ func (adlsws *AzureDataLakeStoreWriteSettings) UnmarshalJSON(body []byte) error } adlsws.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + adlsws.DisableMetricsCollection = disableMetricsCollection + } case "copyBehavior": if v != nil { var copyBehavior interface{} @@ -27176,6 +27476,8 @@ type AzureFileStorageReadSettings struct { AdditionalProperties map[string]interface{} `json:""` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' Type TypeBasicStoreReadSettings `json:"type,omitempty"` } @@ -27217,6 +27519,9 @@ func (afsrs AzureFileStorageReadSettings) MarshalJSON() ([]byte, error) { if afsrs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = afsrs.MaxConcurrentConnections } + if afsrs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = afsrs.DisableMetricsCollection + } if afsrs.Type != "" { objectMap["type"] = afsrs.Type } @@ -27421,6 +27726,15 @@ func (afsrs *AzureFileStorageReadSettings) UnmarshalJSON(body []byte) error { } afsrs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + afsrs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicStoreReadSettings @@ -27442,6 +27756,8 @@ type AzureFileStorageWriteSettings struct { AdditionalProperties map[string]interface{} `json:""` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // CopyBehavior - The type of copy behavior for copy sink. CopyBehavior interface{} `json:"copyBehavior,omitempty"` // Type - Possible values include: 'TypeBasicStoreWriteSettingsTypeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureFileStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeFileServerWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureDataLakeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobFSWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeSftpWriteSettings' @@ -27455,6 +27771,9 @@ func (afsws AzureFileStorageWriteSettings) MarshalJSON() ([]byte, error) { if afsws.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = afsws.MaxConcurrentConnections } + if afsws.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = afsws.DisableMetricsCollection + } if afsws.CopyBehavior != nil { objectMap["copyBehavior"] = afsws.CopyBehavior } @@ -27537,6 +27856,15 @@ func (afsws *AzureFileStorageWriteSettings) UnmarshalJSON(body []byte) error { } afsws.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + afsws.DisableMetricsCollection = disableMetricsCollection + } case "copyBehavior": if v != nil { var copyBehavior interface{} @@ -29267,13 +29595,13 @@ type AzureKeyVaultSecretReference struct { SecretName interface{} `json:"secretName,omitempty"` // SecretVersion - The version of the secret in Azure Key Vault. The default value is the latest version of the secret. Type: string (or Expression with resultType string). SecretVersion interface{} `json:"secretVersion,omitempty"` - // Type - Possible values include: 'TypeTypeSecretBase', 'TypeTypeSecureString', 'TypeTypeAzureKeyVaultSecret' + // Type - Possible values include: 'TypeSecretBase', 'TypeSecureString', 'TypeAzureKeyVaultSecret' Type Type `json:"type,omitempty"` } // MarshalJSON is the custom marshaler for AzureKeyVaultSecretReference. func (akvsr AzureKeyVaultSecretReference) MarshalJSON() ([]byte, error) { - akvsr.Type = TypeTypeAzureKeyVaultSecret + akvsr.Type = TypeAzureKeyVaultSecret objectMap := make(map[string]interface{}) if akvsr.Store != nil { objectMap["store"] = akvsr.Store @@ -29973,6 +30301,8 @@ type AzureMariaDBSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -29999,6 +30329,9 @@ func (amds AzureMariaDBSource) MarshalJSON() ([]byte, error) { if amds.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = amds.MaxConcurrentConnections } + if amds.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = amds.DisableMetricsCollection + } if amds.Type != "" { objectMap["type"] = amds.Type } @@ -30563,6 +30896,15 @@ func (amds *AzureMariaDBSource) UnmarshalJSON(body []byte) error { } amds.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + amds.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -34476,6 +34818,8 @@ type AzureMySQLSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -34502,6 +34846,9 @@ func (amss AzureMySQLSink) MarshalJSON() ([]byte, error) { if amss.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = amss.MaxConcurrentConnections } + if amss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = amss.DisableMetricsCollection + } if amss.Type != "" { objectMap["type"] = amss.Type } @@ -34791,6 +35138,15 @@ func (amss *AzureMySQLSink) UnmarshalJSON(body []byte) error { } amss.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + amss.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -34822,6 +35178,8 @@ type AzureMySQLSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -34848,6 +35206,9 @@ func (amss AzureMySQLSource) MarshalJSON() ([]byte, error) { if amss.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = amss.MaxConcurrentConnections } + if amss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = amss.DisableMetricsCollection + } if amss.Type != "" { objectMap["type"] = amss.Type } @@ -35412,6 +35773,15 @@ func (amss *AzureMySQLSource) UnmarshalJSON(body []byte) error { } amss.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + amss.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -36742,6 +37112,8 @@ type AzurePostgreSQLSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -36768,6 +37140,9 @@ func (apss AzurePostgreSQLSink) MarshalJSON() ([]byte, error) { if apss.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = apss.MaxConcurrentConnections } + if apss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = apss.DisableMetricsCollection + } if apss.Type != "" { objectMap["type"] = apss.Type } @@ -37057,6 +37432,15 @@ func (apss *AzurePostgreSQLSink) UnmarshalJSON(body []byte) error { } apss.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + apss.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -37088,6 +37472,8 @@ type AzurePostgreSQLSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -37114,6 +37500,9 @@ func (apss AzurePostgreSQLSource) MarshalJSON() ([]byte, error) { if apss.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = apss.MaxConcurrentConnections } + if apss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = apss.DisableMetricsCollection + } if apss.Type != "" { objectMap["type"] = apss.Type } @@ -37678,6 +38067,15 @@ func (apss *AzurePostgreSQLSource) UnmarshalJSON(body []byte) error { } apss.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + apss.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -38361,6 +38759,8 @@ type AzureQueueSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -38384,6 +38784,9 @@ func (aqs AzureQueueSink) MarshalJSON() ([]byte, error) { if aqs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = aqs.MaxConcurrentConnections } + if aqs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = aqs.DisableMetricsCollection + } if aqs.Type != "" { objectMap["type"] = aqs.Type } @@ -38664,6 +39067,15 @@ func (aqs *AzureQueueSink) UnmarshalJSON(body []byte) error { } aqs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + aqs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -39345,6 +39757,8 @@ type AzureSearchIndexSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -39371,6 +39785,9 @@ func (asis AzureSearchIndexSink) MarshalJSON() ([]byte, error) { if asis.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = asis.MaxConcurrentConnections } + if asis.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = asis.DisableMetricsCollection + } if asis.Type != "" { objectMap["type"] = asis.Type } @@ -39660,6 +40077,15 @@ func (asis *AzureSearchIndexSink) UnmarshalJSON(body []byte) error { } asis.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + asis.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -43915,6 +44341,8 @@ type AzureSQLSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -43956,6 +44384,9 @@ func (ass AzureSQLSink) MarshalJSON() ([]byte, error) { if ass.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ass.MaxConcurrentConnections } + if ass.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ass.DisableMetricsCollection + } if ass.Type != "" { objectMap["type"] = ass.Type } @@ -44290,6 +44721,15 @@ func (ass *AzureSQLSink) UnmarshalJSON(body []byte) error { } ass.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ass.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -44331,6 +44771,8 @@ type AzureSQLSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -44372,6 +44814,9 @@ func (ass AzureSQLSource) MarshalJSON() ([]byte, error) { if ass.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ass.MaxConcurrentConnections } + if ass.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ass.DisableMetricsCollection + } if ass.Type != "" { objectMap["type"] = ass.Type } @@ -44981,6 +45426,15 @@ func (ass *AzureSQLSource) UnmarshalJSON(body []byte) error { } ass.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ass.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -46973,6 +47427,8 @@ type AzureTableSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -47008,6 +47464,9 @@ func (ats AzureTableSink) MarshalJSON() ([]byte, error) { if ats.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ats.MaxConcurrentConnections } + if ats.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ats.DisableMetricsCollection + } if ats.Type != "" { objectMap["type"] = ats.Type } @@ -47324,6 +47783,15 @@ func (ats *AzureTableSink) UnmarshalJSON(body []byte) error { } ats.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ats.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -47357,6 +47825,8 @@ type AzureTableSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -47386,6 +47856,9 @@ func (ats AzureTableSource) MarshalJSON() ([]byte, error) { if ats.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ats.MaxConcurrentConnections } + if ats.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ats.DisableMetricsCollection + } if ats.Type != "" { objectMap["type"] = ats.Type } @@ -47959,6 +48432,15 @@ func (ats *AzureTableSource) UnmarshalJSON(body []byte) error { } ats.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ats.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -49408,6 +49890,8 @@ type BinarySink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -49432,6 +49916,9 @@ func (bs BinarySink) MarshalJSON() ([]byte, error) { if bs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = bs.MaxConcurrentConnections } + if bs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = bs.DisableMetricsCollection + } if bs.Type != "" { objectMap["type"] = bs.Type } @@ -49720,6 +50207,15 @@ func (bs *BinarySink) UnmarshalJSON(body []byte) error { } bs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + bs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -49749,6 +50245,8 @@ type BinarySource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -49770,6 +50268,9 @@ func (bs BinarySource) MarshalJSON() ([]byte, error) { if bs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = bs.MaxConcurrentConnections } + if bs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = bs.DisableMetricsCollection + } if bs.Type != "" { objectMap["type"] = bs.Type } @@ -50324,6 +50825,15 @@ func (bs *BinarySource) UnmarshalJSON(body []byte) error { } bs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + bs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -50542,6 +51052,8 @@ type BlobSink struct { BlobWriterAddHeader interface{} `json:"blobWriterAddHeader,omitempty"` // CopyBehavior - The type of copy behavior for copy sink. CopyBehavior interface{} `json:"copyBehavior,omitempty"` + // Metadata - Specify the custom metadata to be added to sink data. Type: array of objects (or Expression with resultType array of objects). + Metadata *[]MetadataItem `json:"metadata,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. @@ -50554,6 +51066,8 @@ type BlobSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -50574,6 +51088,9 @@ func (bs BlobSink) MarshalJSON() ([]byte, error) { if bs.CopyBehavior != nil { objectMap["copyBehavior"] = bs.CopyBehavior } + if bs.Metadata != nil { + objectMap["metadata"] = bs.Metadata + } if bs.WriteBatchSize != nil { objectMap["writeBatchSize"] = bs.WriteBatchSize } @@ -50589,6 +51106,9 @@ func (bs BlobSink) MarshalJSON() ([]byte, error) { if bs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = bs.MaxConcurrentConnections } + if bs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = bs.DisableMetricsCollection + } if bs.Type != "" { objectMap["type"] = bs.Type } @@ -50848,6 +51368,15 @@ func (bs *BlobSink) UnmarshalJSON(body []byte) error { } bs.CopyBehavior = copyBehavior } + case "metadata": + if v != nil { + var metadata []MetadataItem + err = json.Unmarshal(*v, &metadata) + if err != nil { + return err + } + bs.Metadata = &metadata + } default: if v != nil { var additionalProperties interface{} @@ -50905,6 +51434,15 @@ func (bs *BlobSink) UnmarshalJSON(body []byte) error { } bs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + bs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -50936,6 +51474,8 @@ type BlobSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -50962,6 +51502,9 @@ func (bs BlobSource) MarshalJSON() ([]byte, error) { if bs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = bs.MaxConcurrentConnections } + if bs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = bs.DisableMetricsCollection + } if bs.Type != "" { objectMap["type"] = bs.Type } @@ -51526,6 +52069,15 @@ func (bs *BlobSource) UnmarshalJSON(body []byte) error { } bs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + bs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -52469,6 +53021,8 @@ type CassandraSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -52498,6 +53052,9 @@ func (cs CassandraSource) MarshalJSON() ([]byte, error) { if cs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = cs.MaxConcurrentConnections } + if cs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = cs.DisableMetricsCollection + } if cs.Type != "" { objectMap["type"] = cs.Type } @@ -53071,6 +53628,15 @@ func (cs *CassandraSource) UnmarshalJSON(body []byte) error { } cs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + cs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -55411,8 +55977,8 @@ func (cdsfals *CommonDataServiceForAppsLinkedService) UnmarshalJSON(body []byte) // CommonDataServiceForAppsLinkedServiceTypeProperties common Data Service for Apps linked service // properties. type CommonDataServiceForAppsLinkedServiceTypeProperties struct { - // DeploymentType - The deployment type of the Common Data Service for Apps instance. 'Online' for Common Data Service for Apps Online and 'OnPremisesWithIfd' for Common Data Service for Apps on-premises with Ifd. Type: string (or Expression with resultType string). Possible values include: 'DynamicsDeploymentTypeOnline', 'DynamicsDeploymentTypeOnPremisesWithIfd' - DeploymentType DynamicsDeploymentType `json:"deploymentType,omitempty"` + // DeploymentType - The deployment type of the Common Data Service for Apps instance. 'Online' for Common Data Service for Apps Online and 'OnPremisesWithIfd' for Common Data Service for Apps on-premises with Ifd. Type: string (or Expression with resultType string). + DeploymentType interface{} `json:"deploymentType,omitempty"` // HostName - The host name of the on-premises Common Data Service for Apps server. The property is required for on-prem and not allowed for online. Type: string (or Expression with resultType string). HostName interface{} `json:"hostName,omitempty"` // Port - The port of on-premises Common Data Service for Apps server. The property is required for on-prem and not allowed for online. Default is 443. Type: integer (or Expression with resultType integer), minimum: 0. @@ -55421,8 +55987,8 @@ type CommonDataServiceForAppsLinkedServiceTypeProperties struct { ServiceURI interface{} `json:"serviceUri,omitempty"` // OrganizationName - The organization name of the Common Data Service for Apps instance. The property is required for on-prem and required for online when there are more than one Common Data Service for Apps instances associated with the user. Type: string (or Expression with resultType string). OrganizationName interface{} `json:"organizationName,omitempty"` - // AuthenticationType - The authentication type to connect to Common Data Service for Apps server. 'Office365' for online scenario, 'Ifd' for on-premises with Ifd scenario. 'AADServicePrincipal' for Server-To-Server authentication in online scenario. Type: string (or Expression with resultType string). Possible values include: 'DynamicsAuthenticationTypeOffice365', 'DynamicsAuthenticationTypeIfd', 'DynamicsAuthenticationTypeAADServicePrincipal' - AuthenticationType DynamicsAuthenticationType `json:"authenticationType,omitempty"` + // AuthenticationType - The authentication type to connect to Common Data Service for Apps server. 'Office365' for online scenario, 'Ifd' for on-premises with Ifd scenario. 'AADServicePrincipal' for Server-To-Server authentication in online scenario. Type: string (or Expression with resultType string). + AuthenticationType interface{} `json:"authenticationType,omitempty"` // Username - User name to access the Common Data Service for Apps instance. Type: string (or Expression with resultType string). Username interface{} `json:"username,omitempty"` // Password - Password to access the Common Data Service for Apps instance. @@ -55448,7 +56014,7 @@ func (cdsfalstp *CommonDataServiceForAppsLinkedServiceTypeProperties) UnmarshalJ switch k { case "deploymentType": if v != nil { - var deploymentType DynamicsDeploymentType + var deploymentType interface{} err = json.Unmarshal(*v, &deploymentType) if err != nil { return err @@ -55493,7 +56059,7 @@ func (cdsfalstp *CommonDataServiceForAppsLinkedServiceTypeProperties) UnmarshalJ } case "authenticationType": if v != nil { - var authenticationType DynamicsAuthenticationType + var authenticationType interface{} err = json.Unmarshal(*v, &authenticationType) if err != nil { return err @@ -55578,6 +56144,8 @@ type CommonDataServiceForAppsSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -55610,6 +56178,9 @@ func (cdsfas CommonDataServiceForAppsSink) MarshalJSON() ([]byte, error) { if cdsfas.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = cdsfas.MaxConcurrentConnections } + if cdsfas.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = cdsfas.DisableMetricsCollection + } if cdsfas.Type != "" { objectMap["type"] = cdsfas.Type } @@ -55917,6 +56488,15 @@ func (cdsfas *CommonDataServiceForAppsSink) UnmarshalJSON(body []byte) error { } cdsfas.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + cdsfas.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -55946,6 +56526,8 @@ type CommonDataServiceForAppsSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -55969,6 +56551,9 @@ func (cdsfas CommonDataServiceForAppsSource) MarshalJSON() ([]byte, error) { if cdsfas.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = cdsfas.MaxConcurrentConnections } + if cdsfas.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = cdsfas.DisableMetricsCollection + } if cdsfas.Type != "" { objectMap["type"] = cdsfas.Type } @@ -56524,6 +57109,15 @@ func (cdsfas *CommonDataServiceForAppsSource) UnmarshalJSON(body []byte) error { } cdsfas.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + cdsfas.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -58161,6 +58755,8 @@ type ConcurSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -58187,6 +58783,9 @@ func (cs ConcurSource) MarshalJSON() ([]byte, error) { if cs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = cs.MaxConcurrentConnections } + if cs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = cs.DisableMetricsCollection + } if cs.Type != "" { objectMap["type"] = cs.Type } @@ -58751,6 +59350,15 @@ func (cs *ConcurSource) UnmarshalJSON(body []byte) error { } cs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + cs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -58776,6 +59384,12 @@ type ConnectionStateProperties struct { Status *string `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectionStateProperties. +func (csp ConnectionStateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicControlActivity base class for all control activities like IfCondition, ForEach , Until. type BasicControlActivity interface { AsWebHookActivity() (*WebHookActivity, bool) @@ -59813,6 +60427,8 @@ type CopySink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -60025,6 +60641,9 @@ func (cs CopySink) MarshalJSON() ([]byte, error) { if cs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = cs.MaxConcurrentConnections } + if cs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = cs.DisableMetricsCollection + } if cs.Type != "" { objectMap["type"] = cs.Type } @@ -60305,6 +60924,15 @@ func (cs *CopySink) UnmarshalJSON(body []byte) error { } cs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + cs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -60429,6 +61057,8 @@ type CopySource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -60851,6 +61481,9 @@ func (cs CopySource) MarshalJSON() ([]byte, error) { if cs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = cs.MaxConcurrentConnections } + if cs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = cs.DisableMetricsCollection + } if cs.Type != "" { objectMap["type"] = cs.Type } @@ -61388,6 +62021,15 @@ func (cs *CopySource) UnmarshalJSON(body []byte) error { } cs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + cs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -63604,6 +64246,8 @@ type CosmosDbMongoDbAPISink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -63630,6 +64274,9 @@ func (cdmdas CosmosDbMongoDbAPISink) MarshalJSON() ([]byte, error) { if cdmdas.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = cdmdas.MaxConcurrentConnections } + if cdmdas.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = cdmdas.DisableMetricsCollection + } if cdmdas.Type != "" { objectMap["type"] = cdmdas.Type } @@ -63919,6 +64566,15 @@ func (cdmdas *CosmosDbMongoDbAPISink) UnmarshalJSON(body []byte) error { } cdmdas.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + cdmdas.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -63954,6 +64610,8 @@ type CosmosDbMongoDbAPISource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -63986,6 +64644,9 @@ func (cdmdas CosmosDbMongoDbAPISource) MarshalJSON() ([]byte, error) { if cdmdas.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = cdmdas.MaxConcurrentConnections } + if cdmdas.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = cdmdas.DisableMetricsCollection + } if cdmdas.Type != "" { objectMap["type"] = cdmdas.Type } @@ -64568,6 +65229,15 @@ func (cdmdas *CosmosDbMongoDbAPISource) UnmarshalJSON(body []byte) error { } cdmdas.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + cdmdas.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -65249,6 +65919,8 @@ type CosmosDbSQLAPISink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -65275,6 +65947,9 @@ func (cdsas CosmosDbSQLAPISink) MarshalJSON() ([]byte, error) { if cdsas.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = cdsas.MaxConcurrentConnections } + if cdsas.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = cdsas.DisableMetricsCollection + } if cdsas.Type != "" { objectMap["type"] = cdsas.Type } @@ -65564,6 +66239,15 @@ func (cdsas *CosmosDbSQLAPISink) UnmarshalJSON(body []byte) error { } cdsas.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + cdsas.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -65599,6 +66283,8 @@ type CosmosDbSQLAPISource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -65631,6 +66317,9 @@ func (cdsas CosmosDbSQLAPISource) MarshalJSON() ([]byte, error) { if cdsas.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = cdsas.MaxConcurrentConnections } + if cdsas.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = cdsas.DisableMetricsCollection + } if cdsas.Type != "" { objectMap["type"] = cdsas.Type } @@ -66213,6 +66902,15 @@ func (cdsas *CosmosDbSQLAPISource) UnmarshalJSON(body []byte) error { } cdsas.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + cdsas.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -66891,6 +67589,8 @@ type CouchbaseSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -66917,6 +67617,9 @@ func (cs CouchbaseSource) MarshalJSON() ([]byte, error) { if cs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = cs.MaxConcurrentConnections } + if cs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = cs.DisableMetricsCollection + } if cs.Type != "" { objectMap["type"] = cs.Type } @@ -67481,6 +68184,15 @@ func (cs *CouchbaseSource) UnmarshalJSON(body []byte) error { } cs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + cs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -76147,6 +76859,8 @@ type Db2Source struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -76173,6 +76887,9 @@ func (d2s Db2Source) MarshalJSON() ([]byte, error) { if d2s.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = d2s.MaxConcurrentConnections } + if d2s.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = d2s.DisableMetricsCollection + } if d2s.Type != "" { objectMap["type"] = d2s.Type } @@ -76737,6 +77454,15 @@ func (d2s *Db2Source) UnmarshalJSON(body []byte) error { } d2s.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + d2s.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -78504,7 +79230,8 @@ type DelimitedTextDatasetTypeProperties struct { // RowDelimiter - The row delimiter. Type: string (or Expression with resultType string). RowDelimiter interface{} `json:"rowDelimiter,omitempty"` // EncodingName - The code page name of the preferred encoding. If miss, the default value is UTF-8, unless BOM denotes another Unicode encoding. Refer to the name column of the table in the following link to set supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or Expression with resultType string). - EncodingName interface{} `json:"encodingName,omitempty"` + EncodingName interface{} `json:"encodingName,omitempty"` + // CompressionCodec - The data compressionCodec. Type: string (or Expression with resultType string). CompressionCodec interface{} `json:"compressionCodec,omitempty"` // CompressionLevel - The data compression method used for DelimitedText. CompressionLevel interface{} `json:"compressionLevel,omitempty"` @@ -78752,6 +79479,8 @@ type DelimitedTextSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -78779,6 +79508,9 @@ func (dts DelimitedTextSink) MarshalJSON() ([]byte, error) { if dts.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = dts.MaxConcurrentConnections } + if dts.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = dts.DisableMetricsCollection + } if dts.Type != "" { objectMap["type"] = dts.Type } @@ -79076,6 +79808,15 @@ func (dts *DelimitedTextSink) UnmarshalJSON(body []byte) error { } dts.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + dts.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -79107,6 +79848,8 @@ type DelimitedTextSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -79131,6 +79874,9 @@ func (dts DelimitedTextSource) MarshalJSON() ([]byte, error) { if dts.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = dts.MaxConcurrentConnections } + if dts.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = dts.DisableMetricsCollection + } if dts.Type != "" { objectMap["type"] = dts.Type } @@ -79694,6 +80440,15 @@ func (dts *DelimitedTextSource) UnmarshalJSON(body []byte) error { } dts.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + dts.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -80635,6 +81390,8 @@ type DocumentDbCollectionSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -80664,6 +81421,9 @@ func (ddcs DocumentDbCollectionSink) MarshalJSON() ([]byte, error) { if ddcs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ddcs.MaxConcurrentConnections } + if ddcs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ddcs.DisableMetricsCollection + } if ddcs.Type != "" { objectMap["type"] = ddcs.Type } @@ -80962,6 +81722,15 @@ func (ddcs *DocumentDbCollectionSink) UnmarshalJSON(body []byte) error { } ddcs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ddcs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -80995,6 +81764,8 @@ type DocumentDbCollectionSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -81024,6 +81795,9 @@ func (ddcs DocumentDbCollectionSource) MarshalJSON() ([]byte, error) { if ddcs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ddcs.MaxConcurrentConnections } + if ddcs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ddcs.DisableMetricsCollection + } if ddcs.Type != "" { objectMap["type"] = ddcs.Type } @@ -81597,6 +82371,15 @@ func (ddcs *DocumentDbCollectionSource) UnmarshalJSON(body []byte) error { } ddcs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ddcs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -82285,6 +83068,8 @@ type DrillSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -82311,6 +83096,9 @@ func (ds DrillSource) MarshalJSON() ([]byte, error) { if ds.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ds.MaxConcurrentConnections } + if ds.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ds.DisableMetricsCollection + } if ds.Type != "" { objectMap["type"] = ds.Type } @@ -82875,6 +83663,15 @@ func (ds *DrillSource) UnmarshalJSON(body []byte) error { } ds.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ds.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -84951,6 +85748,8 @@ type DynamicsAXSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -84980,6 +85779,9 @@ func (das DynamicsAXSource) MarshalJSON() ([]byte, error) { if das.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = das.MaxConcurrentConnections } + if das.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = das.DisableMetricsCollection + } if das.Type != "" { objectMap["type"] = das.Type } @@ -85553,6 +86355,15 @@ func (das *DynamicsAXSource) UnmarshalJSON(body []byte) error { } das.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + das.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -86857,8 +87668,8 @@ func (dcls *DynamicsCrmLinkedService) UnmarshalJSON(body []byte) error { // DynamicsCrmLinkedServiceTypeProperties dynamics CRM linked service properties. type DynamicsCrmLinkedServiceTypeProperties struct { - // DeploymentType - The deployment type of the Dynamics CRM instance. 'Online' for Dynamics CRM Online and 'OnPremisesWithIfd' for Dynamics CRM on-premises with Ifd. Type: string (or Expression with resultType string). Possible values include: 'DynamicsDeploymentTypeOnline', 'DynamicsDeploymentTypeOnPremisesWithIfd' - DeploymentType DynamicsDeploymentType `json:"deploymentType,omitempty"` + // DeploymentType - The deployment type of the Dynamics CRM instance. 'Online' for Dynamics CRM Online and 'OnPremisesWithIfd' for Dynamics CRM on-premises with Ifd. Type: string (or Expression with resultType string). + DeploymentType interface{} `json:"deploymentType,omitempty"` // HostName - The host name of the on-premises Dynamics CRM server. The property is required for on-prem and not allowed for online. Type: string (or Expression with resultType string). HostName interface{} `json:"hostName,omitempty"` // Port - The port of on-premises Dynamics CRM server. The property is required for on-prem and not allowed for online. Default is 443. Type: integer (or Expression with resultType integer), minimum: 0. @@ -86867,8 +87678,8 @@ type DynamicsCrmLinkedServiceTypeProperties struct { ServiceURI interface{} `json:"serviceUri,omitempty"` // OrganizationName - The organization name of the Dynamics CRM instance. The property is required for on-prem and required for online when there are more than one Dynamics CRM instances associated with the user. Type: string (or Expression with resultType string). OrganizationName interface{} `json:"organizationName,omitempty"` - // AuthenticationType - The authentication type to connect to Dynamics CRM server. 'Office365' for online scenario, 'Ifd' for on-premises with Ifd scenario, 'AADServicePrincipal' for Server-To-Server authentication in online scenario. Type: string (or Expression with resultType string). Possible values include: 'DynamicsAuthenticationTypeOffice365', 'DynamicsAuthenticationTypeIfd', 'DynamicsAuthenticationTypeAADServicePrincipal' - AuthenticationType DynamicsAuthenticationType `json:"authenticationType,omitempty"` + // AuthenticationType - The authentication type to connect to Dynamics CRM server. 'Office365' for online scenario, 'Ifd' for on-premises with Ifd scenario, 'AADServicePrincipal' for Server-To-Server authentication in online scenario. Type: string (or Expression with resultType string). + AuthenticationType interface{} `json:"authenticationType,omitempty"` // Username - User name to access the Dynamics CRM instance. Type: string (or Expression with resultType string). Username interface{} `json:"username,omitempty"` // Password - Password to access the Dynamics CRM instance. @@ -86894,7 +87705,7 @@ func (dclstp *DynamicsCrmLinkedServiceTypeProperties) UnmarshalJSON(body []byte) switch k { case "deploymentType": if v != nil { - var deploymentType DynamicsDeploymentType + var deploymentType interface{} err = json.Unmarshal(*v, &deploymentType) if err != nil { return err @@ -86939,7 +87750,7 @@ func (dclstp *DynamicsCrmLinkedServiceTypeProperties) UnmarshalJSON(body []byte) } case "authenticationType": if v != nil { - var authenticationType DynamicsAuthenticationType + var authenticationType interface{} err = json.Unmarshal(*v, &authenticationType) if err != nil { return err @@ -87024,6 +87835,8 @@ type DynamicsCrmSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -87056,6 +87869,9 @@ func (dcs DynamicsCrmSink) MarshalJSON() ([]byte, error) { if dcs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = dcs.MaxConcurrentConnections } + if dcs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = dcs.DisableMetricsCollection + } if dcs.Type != "" { objectMap["type"] = dcs.Type } @@ -87363,6 +88179,15 @@ func (dcs *DynamicsCrmSink) UnmarshalJSON(body []byte) error { } dcs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + dcs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -87392,6 +88217,8 @@ type DynamicsCrmSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -87415,6 +88242,9 @@ func (dcs DynamicsCrmSource) MarshalJSON() ([]byte, error) { if dcs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = dcs.MaxConcurrentConnections } + if dcs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = dcs.DisableMetricsCollection + } if dcs.Type != "" { objectMap["type"] = dcs.Type } @@ -87970,6 +88800,15 @@ func (dcs *DynamicsCrmSource) UnmarshalJSON(body []byte) error { } dcs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + dcs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -89441,6 +90280,8 @@ type DynamicsSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -89473,6 +90314,9 @@ func (ds DynamicsSink) MarshalJSON() ([]byte, error) { if ds.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ds.MaxConcurrentConnections } + if ds.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ds.DisableMetricsCollection + } if ds.Type != "" { objectMap["type"] = ds.Type } @@ -89780,6 +90624,15 @@ func (ds *DynamicsSink) UnmarshalJSON(body []byte) error { } ds.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ds.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -89809,6 +90662,8 @@ type DynamicsSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -89832,6 +90687,9 @@ func (ds DynamicsSource) MarshalJSON() ([]byte, error) { if ds.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ds.MaxConcurrentConnections } + if ds.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ds.DisableMetricsCollection + } if ds.Type != "" { objectMap["type"] = ds.Type } @@ -90387,6 +91245,15 @@ func (ds *DynamicsSource) UnmarshalJSON(body []byte) error { } ds.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ds.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -91794,6 +92661,8 @@ type EloquaSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -91820,6 +92689,9 @@ func (es EloquaSource) MarshalJSON() ([]byte, error) { if es.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = es.MaxConcurrentConnections } + if es.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = es.DisableMetricsCollection + } if es.Type != "" { objectMap["type"] = es.Type } @@ -92384,6 +93256,15 @@ func (es *EloquaSource) UnmarshalJSON(body []byte) error { } es.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + es.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -92413,7 +93294,7 @@ type EncryptionConfiguration struct { // EntityReference the entity reference. type EntityReference struct { - // Type - The type of this referenced entity. Possible values include: 'IntegrationRuntimeEntityReferenceTypeIntegrationRuntimeReference', 'IntegrationRuntimeEntityReferenceTypeLinkedServiceReference' + // Type - The type of this referenced entity. Possible values include: 'IntegrationRuntimeEntityReferenceTypeIntegrationRuntimeReference', 'IntegrationRuntimeEntityReferenceTypeLinkedServiceReference', 'IntegrationRuntimeEntityReferenceTypeCredentialReference' Type IntegrationRuntimeEntityReferenceType `json:"type,omitempty"` // ReferenceName - The name of this referenced entity. ReferenceName *string `json:"referenceName,omitempty"` @@ -93159,8 +94040,10 @@ func (ed *ExcelDataset) UnmarshalJSON(body []byte) error { type ExcelDatasetTypeProperties struct { // Location - The location of the excel storage. Location BasicDatasetLocation `json:"location,omitempty"` - // SheetName - The sheet of excel file. Type: string (or Expression with resultType string). + // SheetName - The sheet name of excel file. Type: string (or Expression with resultType string). SheetName interface{} `json:"sheetName,omitempty"` + // SheetIndex - The sheet index of excel file and default value is 0. Type: integer (or Expression with resultType integer) + SheetIndex interface{} `json:"sheetIndex,omitempty"` // Range - The partial data of one sheet. Type: string (or Expression with resultType string). Range interface{} `json:"range,omitempty"` // FirstRowAsHeader - When used as input, treat the first row of data as headers. When used as output,write the headers into the output as the first row of data. The default value is false. Type: boolean (or Expression with resultType boolean). @@ -93197,6 +94080,15 @@ func (edtp *ExcelDatasetTypeProperties) UnmarshalJSON(body []byte) error { } edtp.SheetName = sheetName } + case "sheetIndex": + if v != nil { + var sheetIndex interface{} + err = json.Unmarshal(*v, &sheetIndex) + if err != nil { + return err + } + edtp.SheetIndex = sheetIndex + } case "range": if v != nil { var rangeVar interface{} @@ -93252,6 +94144,8 @@ type ExcelSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -93273,6 +94167,9 @@ func (es ExcelSource) MarshalJSON() ([]byte, error) { if es.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = es.MaxConcurrentConnections } + if es.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = es.DisableMetricsCollection + } if es.Type != "" { objectMap["type"] = es.Type } @@ -93827,6 +94724,15 @@ func (es *ExcelSource) UnmarshalJSON(body []byte) error { } es.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + es.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -95649,6 +96555,12 @@ type ExposureControlResponse struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ExposureControlResponse. +func (ecr ExposureControlResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Expression azure Data Factory expression definition. type Expression struct { // Type - Expression type. @@ -97285,6 +98197,8 @@ type FileServerReadSettings struct { AdditionalProperties map[string]interface{} `json:""` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' Type TypeBasicStoreReadSettings `json:"type,omitempty"` } @@ -97326,6 +98240,9 @@ func (fsrs FileServerReadSettings) MarshalJSON() ([]byte, error) { if fsrs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = fsrs.MaxConcurrentConnections } + if fsrs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = fsrs.DisableMetricsCollection + } if fsrs.Type != "" { objectMap["type"] = fsrs.Type } @@ -97530,6 +98447,15 @@ func (fsrs *FileServerReadSettings) UnmarshalJSON(body []byte) error { } fsrs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + fsrs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicStoreReadSettings @@ -97551,6 +98477,8 @@ type FileServerWriteSettings struct { AdditionalProperties map[string]interface{} `json:""` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // CopyBehavior - The type of copy behavior for copy sink. CopyBehavior interface{} `json:"copyBehavior,omitempty"` // Type - Possible values include: 'TypeBasicStoreWriteSettingsTypeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureFileStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeFileServerWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureDataLakeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobFSWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeSftpWriteSettings' @@ -97564,6 +98492,9 @@ func (fsws FileServerWriteSettings) MarshalJSON() ([]byte, error) { if fsws.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = fsws.MaxConcurrentConnections } + if fsws.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = fsws.DisableMetricsCollection + } if fsws.CopyBehavior != nil { objectMap["copyBehavior"] = fsws.CopyBehavior } @@ -97646,6 +98577,15 @@ func (fsws *FileServerWriteSettings) UnmarshalJSON(body []byte) error { } fsws.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + fsws.DisableMetricsCollection = disableMetricsCollection + } case "copyBehavior": if v != nil { var copyBehavior interface{} @@ -98424,6 +99364,8 @@ type FileSystemSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -98450,6 +99392,9 @@ func (fss FileSystemSink) MarshalJSON() ([]byte, error) { if fss.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = fss.MaxConcurrentConnections } + if fss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = fss.DisableMetricsCollection + } if fss.Type != "" { objectMap["type"] = fss.Type } @@ -98739,6 +99684,15 @@ func (fss *FileSystemSink) UnmarshalJSON(body []byte) error { } fss.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + fss.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -98768,6 +99722,8 @@ type FileSystemSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -98791,6 +99747,9 @@ func (fss FileSystemSource) MarshalJSON() ([]byte, error) { if fss.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = fss.MaxConcurrentConnections } + if fss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = fss.DisableMetricsCollection + } if fss.Type != "" { objectMap["type"] = fss.Type } @@ -99346,6 +100305,15 @@ func (fss *FileSystemSource) UnmarshalJSON(body []byte) error { } fss.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + fss.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -100407,6 +101375,8 @@ type FtpReadSettings struct { AdditionalProperties map[string]interface{} `json:""` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' Type TypeBasicStoreReadSettings `json:"type,omitempty"` } @@ -100442,6 +101412,9 @@ func (frs FtpReadSettings) MarshalJSON() ([]byte, error) { if frs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = frs.MaxConcurrentConnections } + if frs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = frs.DisableMetricsCollection + } if frs.Type != "" { objectMap["type"] = frs.Type } @@ -100628,6 +101601,15 @@ func (frs *FtpReadSettings) UnmarshalJSON(body []byte) error { } frs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + frs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicStoreReadSettings @@ -103489,6 +104471,8 @@ type GoogleAdWordsSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -103515,6 +104499,9 @@ func (gaws GoogleAdWordsSource) MarshalJSON() ([]byte, error) { if gaws.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = gaws.MaxConcurrentConnections } + if gaws.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = gaws.DisableMetricsCollection + } if gaws.Type != "" { objectMap["type"] = gaws.Type } @@ -104079,6 +105066,15 @@ func (gaws *GoogleAdWordsSource) UnmarshalJSON(body []byte) error { } gaws.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + gaws.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -105550,6 +106546,8 @@ type GoogleBigQuerySource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -105576,6 +106574,9 @@ func (gbqs GoogleBigQuerySource) MarshalJSON() ([]byte, error) { if gbqs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = gbqs.MaxConcurrentConnections } + if gbqs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = gbqs.DisableMetricsCollection + } if gbqs.Type != "" { objectMap["type"] = gbqs.Type } @@ -106140,6 +107141,15 @@ func (gbqs *GoogleBigQuerySource) UnmarshalJSON(body []byte) error { } gbqs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + gbqs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -107068,6 +108078,8 @@ type GoogleCloudStorageReadSettings struct { AdditionalProperties map[string]interface{} `json:""` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' Type TypeBasicStoreReadSettings `json:"type,omitempty"` } @@ -107109,6 +108121,9 @@ func (gcsrs GoogleCloudStorageReadSettings) MarshalJSON() ([]byte, error) { if gcsrs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = gcsrs.MaxConcurrentConnections } + if gcsrs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = gcsrs.DisableMetricsCollection + } if gcsrs.Type != "" { objectMap["type"] = gcsrs.Type } @@ -107313,6 +108328,15 @@ func (gcsrs *GoogleCloudStorageReadSettings) UnmarshalJSON(body []byte) error { } gcsrs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + gcsrs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicStoreReadSettings @@ -108001,6 +109025,8 @@ type GreenplumSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -108027,6 +109053,9 @@ func (gs GreenplumSource) MarshalJSON() ([]byte, error) { if gs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = gs.MaxConcurrentConnections } + if gs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = gs.DisableMetricsCollection + } if gs.Type != "" { objectMap["type"] = gs.Type } @@ -108591,6 +109620,15 @@ func (gs *GreenplumSource) UnmarshalJSON(body []byte) error { } gs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + gs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -110686,6 +111724,8 @@ type HBaseSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -110712,6 +111752,9 @@ func (hbs HBaseSource) MarshalJSON() ([]byte, error) { if hbs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = hbs.MaxConcurrentConnections } + if hbs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = hbs.DisableMetricsCollection + } if hbs.Type != "" { objectMap["type"] = hbs.Type } @@ -111276,6 +112319,15 @@ func (hbs *HBaseSource) UnmarshalJSON(body []byte) error { } hbs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + hbs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -112187,6 +113239,8 @@ type HdfsReadSettings struct { AdditionalProperties map[string]interface{} `json:""` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' Type TypeBasicStoreReadSettings `json:"type,omitempty"` } @@ -112228,6 +113282,9 @@ func (hrs HdfsReadSettings) MarshalJSON() ([]byte, error) { if hrs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = hrs.MaxConcurrentConnections } + if hrs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = hrs.DisableMetricsCollection + } if hrs.Type != "" { objectMap["type"] = hrs.Type } @@ -112432,6 +113489,15 @@ func (hrs *HdfsReadSettings) UnmarshalJSON(body []byte) error { } hrs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + hrs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicStoreReadSettings @@ -112461,6 +113527,8 @@ type HdfsSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -112484,6 +113552,9 @@ func (hs HdfsSource) MarshalJSON() ([]byte, error) { if hs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = hs.MaxConcurrentConnections } + if hs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = hs.DisableMetricsCollection + } if hs.Type != "" { objectMap["type"] = hs.Type } @@ -113039,6 +114110,15 @@ func (hs *HdfsSource) UnmarshalJSON(body []byte) error { } hs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + hs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -118360,6 +119440,8 @@ type HiveSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -118386,6 +119468,9 @@ func (hs HiveSource) MarshalJSON() ([]byte, error) { if hs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = hs.MaxConcurrentConnections } + if hs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = hs.DisableMetricsCollection + } if hs.Type != "" { objectMap["type"] = hs.Type } @@ -118950,6 +120035,15 @@ func (hs *HiveSource) UnmarshalJSON(body []byte) error { } hs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + hs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -120466,6 +121560,8 @@ type HTTPReadSettings struct { AdditionalProperties map[string]interface{} `json:""` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' Type TypeBasicStoreReadSettings `json:"type,omitempty"` } @@ -120495,6 +121591,9 @@ func (hrs HTTPReadSettings) MarshalJSON() ([]byte, error) { if hrs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = hrs.MaxConcurrentConnections } + if hrs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = hrs.DisableMetricsCollection + } if hrs.Type != "" { objectMap["type"] = hrs.Type } @@ -120663,6 +121762,15 @@ func (hrs *HTTPReadSettings) UnmarshalJSON(body []byte) error { } hrs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + hrs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicStoreReadSettings @@ -120864,6 +121972,8 @@ type HTTPSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -120884,6 +121994,9 @@ func (hs HTTPSource) MarshalJSON() ([]byte, error) { if hs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = hs.MaxConcurrentConnections } + if hs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = hs.DisableMetricsCollection + } if hs.Type != "" { objectMap["type"] = hs.Type } @@ -121430,6 +122543,15 @@ func (hs *HTTPSource) UnmarshalJSON(body []byte) error { } hs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + hs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -122846,6 +123968,8 @@ type HubspotSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -122872,6 +123996,9 @@ func (hs HubspotSource) MarshalJSON() ([]byte, error) { if hs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = hs.MaxConcurrentConnections } + if hs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = hs.DisableMetricsCollection + } if hs.Type != "" { objectMap["type"] = hs.Type } @@ -123436,6 +124563,15 @@ func (hs *HubspotSource) UnmarshalJSON(body []byte) error { } hs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + hs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -125276,6 +126412,8 @@ type ImpalaSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -125302,6 +126440,9 @@ func (is ImpalaSource) MarshalJSON() ([]byte, error) { if is.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = is.MaxConcurrentConnections } + if is.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = is.DisableMetricsCollection + } if is.Type != "" { objectMap["type"] = is.Type } @@ -125866,6 +127007,15 @@ func (is *ImpalaSource) UnmarshalJSON(body []byte) error { } is.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + is.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -126742,6 +127892,8 @@ type InformixSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -126768,6 +127920,9 @@ func (is InformixSink) MarshalJSON() ([]byte, error) { if is.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = is.MaxConcurrentConnections } + if is.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = is.DisableMetricsCollection + } if is.Type != "" { objectMap["type"] = is.Type } @@ -127057,6 +128212,15 @@ func (is *InformixSink) UnmarshalJSON(body []byte) error { } is.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + is.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -127088,6 +128252,8 @@ type InformixSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -127114,6 +128280,9 @@ func (is InformixSource) MarshalJSON() ([]byte, error) { if is.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = is.MaxConcurrentConnections } + if is.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = is.DisableMetricsCollection + } if is.Type != "" { objectMap["type"] = is.Type } @@ -127678,6 +128847,15 @@ func (is *InformixSource) UnmarshalJSON(body []byte) error { } is.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + is.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -129046,6 +130224,12 @@ type IntegrationRuntimeNodeIPAddress struct { IPAddress *string `json:"ipAddress,omitempty"` } +// MarshalJSON is the custom marshaler for IntegrationRuntimeNodeIPAddress. +func (irnia IntegrationRuntimeNodeIPAddress) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IntegrationRuntimeNodeMonitoringData monitoring data for integration runtime node. type IntegrationRuntimeNodeMonitoringData struct { // AdditionalProperties - Unmatched properties from the message are deserialized this collection @@ -129461,6 +130645,8 @@ type IntegrationRuntimeSsisProperties struct { ExpressCustomSetupProperties *[]BasicCustomSetupBase `json:"expressCustomSetupProperties,omitempty"` // PackageStores - Package stores for the SSIS Integration Runtime. PackageStores *[]PackageStore `json:"packageStores,omitempty"` + // ManagedCredential - The user-assigned managed identity reference. + ManagedCredential *EntityReference `json:"managedCredential,omitempty"` } // MarshalJSON is the custom marshaler for IntegrationRuntimeSsisProperties. @@ -129487,6 +130673,9 @@ func (irsp IntegrationRuntimeSsisProperties) MarshalJSON() ([]byte, error) { if irsp.PackageStores != nil { objectMap["packageStores"] = irsp.PackageStores } + if irsp.ManagedCredential != nil { + objectMap["managedCredential"] = irsp.ManagedCredential + } for k, v := range irsp.AdditionalProperties { objectMap[k] = v } @@ -129576,6 +130765,15 @@ func (irsp *IntegrationRuntimeSsisProperties) UnmarshalJSON(body []byte) error { } irsp.PackageStores = &packageStores } + case "managedCredential": + if v != nil { + var managedCredential EntityReference + err = json.Unmarshal(*v, &managedCredential) + if err != nil { + return err + } + irsp.ManagedCredential = &managedCredential + } } } @@ -131352,6 +132550,8 @@ type JiraSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -131378,6 +132578,9 @@ func (js JiraSource) MarshalJSON() ([]byte, error) { if js.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = js.MaxConcurrentConnections } + if js.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = js.DisableMetricsCollection + } if js.Type != "" { objectMap["type"] = js.Type } @@ -131942,6 +133145,15 @@ func (js *JiraSource) UnmarshalJSON(body []byte) error { } js.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + js.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -132957,6 +134169,8 @@ type JSONSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -132984,6 +134198,9 @@ func (js JSONSink) MarshalJSON() ([]byte, error) { if js.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = js.MaxConcurrentConnections } + if js.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = js.DisableMetricsCollection + } if js.Type != "" { objectMap["type"] = js.Type } @@ -133281,6 +134498,15 @@ func (js *JSONSink) UnmarshalJSON(body []byte) error { } js.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + js.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -133312,6 +134538,8 @@ type JSONSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -133336,6 +134564,9 @@ func (js JSONSource) MarshalJSON() ([]byte, error) { if js.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = js.MaxConcurrentConnections } + if js.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = js.DisableMetricsCollection + } if js.Type != "" { objectMap["type"] = js.Type } @@ -133899,6 +135130,15 @@ func (js *JSONSource) UnmarshalJSON(body []byte) error { } js.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + js.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -133916,8 +135156,8 @@ func (js *JSONSource) UnmarshalJSON(body []byte) error { // JSONWriteSettings json write settings. type JSONWriteSettings struct { - // FilePattern - File pattern of JSON. This setting controls the way a collection of JSON objects will be treated. The default value is 'setOfObjects'. It is case-sensitive. Possible values include: 'JSONWriteFilePatternSetOfObjects', 'JSONWriteFilePatternArrayOfObjects' - FilePattern JSONWriteFilePattern `json:"filePattern,omitempty"` + // FilePattern - File pattern of JSON. This setting controls the way a collection of JSON objects will be treated. The default value is 'setOfObjects'. It is case-sensitive. + FilePattern interface{} `json:"filePattern,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // Type - Possible values include: 'TypeBasicFormatWriteSettingsTypeFormatWriteSettings', 'TypeBasicFormatWriteSettingsTypeJSONWriteSettings', 'TypeBasicFormatWriteSettingsTypeDelimitedTextWriteSettings', 'TypeBasicFormatWriteSettingsTypeOrcWriteSettings', 'TypeBasicFormatWriteSettingsTypeAvroWriteSettings', 'TypeBasicFormatWriteSettingsTypeParquetWriteSettings' @@ -133928,7 +135168,7 @@ type JSONWriteSettings struct { func (jws JSONWriteSettings) MarshalJSON() ([]byte, error) { jws.Type = TypeBasicFormatWriteSettingsTypeJSONWriteSettings objectMap := make(map[string]interface{}) - if jws.FilePattern != "" { + if jws.FilePattern != nil { objectMap["filePattern"] = jws.FilePattern } if jws.Type != "" { @@ -133986,7 +135226,7 @@ func (jws *JSONWriteSettings) UnmarshalJSON(body []byte) error { switch k { case "filePattern": if v != nil { - var filePattern JSONWriteFilePattern + var filePattern interface{} err = json.Unmarshal(*v, &filePattern) if err != nil { return err @@ -134074,17 +135314,23 @@ type LinkedIntegrationRuntime struct { CreateTime *date.Time `json:"createTime,omitempty"` } +// MarshalJSON is the custom marshaler for LinkedIntegrationRuntime. +func (lir LinkedIntegrationRuntime) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LinkedIntegrationRuntimeKeyAuthorization the key authorization type integration runtime. type LinkedIntegrationRuntimeKeyAuthorization struct { // Key - The key used for authorization. Key *SecureString `json:"key,omitempty"` - // AuthorizationType - Possible values include: 'AuthorizationTypeAuthorizationTypeLinkedIntegrationRuntimeType', 'AuthorizationTypeAuthorizationTypeRBAC', 'AuthorizationTypeAuthorizationTypeKey' + // AuthorizationType - Possible values include: 'AuthorizationTypeLinkedIntegrationRuntimeType', 'AuthorizationTypeRBAC', 'AuthorizationTypeKey' AuthorizationType AuthorizationType `json:"authorizationType,omitempty"` } // MarshalJSON is the custom marshaler for LinkedIntegrationRuntimeKeyAuthorization. func (lirka LinkedIntegrationRuntimeKeyAuthorization) MarshalJSON() ([]byte, error) { - lirka.AuthorizationType = AuthorizationTypeAuthorizationTypeKey + lirka.AuthorizationType = AuthorizationTypeKey objectMap := make(map[string]interface{}) if lirka.Key != nil { objectMap["key"] = lirka.Key @@ -134120,13 +135366,13 @@ func (lirka LinkedIntegrationRuntimeKeyAuthorization) AsBasicLinkedIntegrationRu type LinkedIntegrationRuntimeRbacAuthorization struct { // ResourceID - The resource identifier of the integration runtime to be shared. ResourceID *string `json:"resourceId,omitempty"` - // AuthorizationType - Possible values include: 'AuthorizationTypeAuthorizationTypeLinkedIntegrationRuntimeType', 'AuthorizationTypeAuthorizationTypeRBAC', 'AuthorizationTypeAuthorizationTypeKey' + // AuthorizationType - Possible values include: 'AuthorizationTypeLinkedIntegrationRuntimeType', 'AuthorizationTypeRBAC', 'AuthorizationTypeKey' AuthorizationType AuthorizationType `json:"authorizationType,omitempty"` } // MarshalJSON is the custom marshaler for LinkedIntegrationRuntimeRbacAuthorization. func (lirra LinkedIntegrationRuntimeRbacAuthorization) MarshalJSON() ([]byte, error) { - lirra.AuthorizationType = AuthorizationTypeAuthorizationTypeRBAC + lirra.AuthorizationType = AuthorizationTypeRBAC objectMap := make(map[string]interface{}) if lirra.ResourceID != nil { objectMap["resourceId"] = lirra.ResourceID @@ -134172,7 +135418,7 @@ type BasicLinkedIntegrationRuntimeType interface { // LinkedIntegrationRuntimeType the base definition of a linked integration runtime. type LinkedIntegrationRuntimeType struct { - // AuthorizationType - Possible values include: 'AuthorizationTypeAuthorizationTypeLinkedIntegrationRuntimeType', 'AuthorizationTypeAuthorizationTypeRBAC', 'AuthorizationTypeAuthorizationTypeKey' + // AuthorizationType - Possible values include: 'AuthorizationTypeLinkedIntegrationRuntimeType', 'AuthorizationTypeRBAC', 'AuthorizationTypeKey' AuthorizationType AuthorizationType `json:"authorizationType,omitempty"` } @@ -134184,11 +135430,11 @@ func unmarshalBasicLinkedIntegrationRuntimeType(body []byte) (BasicLinkedIntegra } switch m["authorizationType"] { - case string(AuthorizationTypeAuthorizationTypeRBAC): + case string(AuthorizationTypeRBAC): var lirra LinkedIntegrationRuntimeRbacAuthorization err := json.Unmarshal(body, &lirra) return lirra, err - case string(AuthorizationTypeAuthorizationTypeKey): + case string(AuthorizationTypeKey): var lirka LinkedIntegrationRuntimeKeyAuthorization err := json.Unmarshal(body, &lirka) return lirka, err @@ -134219,7 +135465,7 @@ func unmarshalBasicLinkedIntegrationRuntimeTypeArray(body []byte) ([]BasicLinked // MarshalJSON is the custom marshaler for LinkedIntegrationRuntimeType. func (lirt LinkedIntegrationRuntimeType) MarshalJSON() ([]byte, error) { - lirt.AuthorizationType = AuthorizationTypeAuthorizationTypeLinkedIntegrationRuntimeType + lirt.AuthorizationType = AuthorizationTypeLinkedIntegrationRuntimeType objectMap := make(map[string]interface{}) if lirt.AuthorizationType != "" { objectMap["authorizationType"] = lirt.AuthorizationType @@ -137618,6 +138864,8 @@ type MagentoSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -137644,6 +138892,9 @@ func (ms MagentoSource) MarshalJSON() ([]byte, error) { if ms.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ms.MaxConcurrentConnections } + if ms.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ms.DisableMetricsCollection + } if ms.Type != "" { objectMap["type"] = ms.Type } @@ -138208,6 +139459,15 @@ func (ms *MagentoSource) UnmarshalJSON(body []byte) error { } ms.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ms.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -138366,6 +139626,12 @@ type ManagedIntegrationRuntimeError struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedIntegrationRuntimeError. +func (mire ManagedIntegrationRuntimeError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedIntegrationRuntimeNode properties of integration runtime node. type ManagedIntegrationRuntimeNode struct { // NodeID - READ-ONLY; The managed integration runtime node id. @@ -138401,6 +139667,12 @@ type ManagedIntegrationRuntimeOperationResult struct { ActivityID *string `json:"activityId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedIntegrationRuntimeOperationResult. +func (miror ManagedIntegrationRuntimeOperationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedIntegrationRuntimeStatus managed integration runtime status. type ManagedIntegrationRuntimeStatus struct { // ManagedIntegrationRuntimeStatusTypeProperties - Managed integration runtime status type properties. @@ -138526,6 +139798,12 @@ type ManagedIntegrationRuntimeStatusTypeProperties struct { LastOperation *ManagedIntegrationRuntimeOperationResult `json:"lastOperation,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedIntegrationRuntimeStatusTypeProperties. +func (mirstp ManagedIntegrationRuntimeStatusTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedIntegrationRuntimeTypeProperties managed integration runtime type properties. type ManagedIntegrationRuntimeTypeProperties struct { // ComputeProperties - The compute resource for managed integration runtime. @@ -139880,6 +141158,8 @@ type MariaDBSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -139906,6 +141186,9 @@ func (mds MariaDBSource) MarshalJSON() ([]byte, error) { if mds.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = mds.MaxConcurrentConnections } + if mds.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = mds.DisableMetricsCollection + } if mds.Type != "" { objectMap["type"] = mds.Type } @@ -140470,6 +141753,15 @@ func (mds *MariaDBSource) UnmarshalJSON(body []byte) error { } mds.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + mds.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -142521,6 +143813,8 @@ type MarketoSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -142547,6 +143841,9 @@ func (ms MarketoSource) MarshalJSON() ([]byte, error) { if ms.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ms.MaxConcurrentConnections } + if ms.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ms.DisableMetricsCollection + } if ms.Type != "" { objectMap["type"] = ms.Type } @@ -143111,6 +144408,15 @@ func (ms *MarketoSource) UnmarshalJSON(body []byte) error { } ms.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ms.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -143126,6 +144432,14 @@ func (ms *MarketoSource) UnmarshalJSON(body []byte) error { return nil } +// MetadataItem specify the name and value of custom metadata item. +type MetadataItem struct { + // Name - Metadata item key name. Type: string (or Expression with resultType string). + Name interface{} `json:"name,omitempty"` + // Value - Metadata item value. Type: string (or Expression with resultType string). + Value interface{} `json:"value,omitempty"` +} + // MicrosoftAccessLinkedService microsoft Access linked service. type MicrosoftAccessLinkedService struct { // MicrosoftAccessLinkedServiceTypeProperties - Microsoft Access linked service properties. @@ -143862,6 +145176,8 @@ type MicrosoftAccessSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -143888,6 +145204,9 @@ func (mas MicrosoftAccessSink) MarshalJSON() ([]byte, error) { if mas.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = mas.MaxConcurrentConnections } + if mas.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = mas.DisableMetricsCollection + } if mas.Type != "" { objectMap["type"] = mas.Type } @@ -144177,6 +145496,15 @@ func (mas *MicrosoftAccessSink) UnmarshalJSON(body []byte) error { } mas.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + mas.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -144206,6 +145534,8 @@ type MicrosoftAccessSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -144229,6 +145559,9 @@ func (mas MicrosoftAccessSource) MarshalJSON() ([]byte, error) { if mas.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = mas.MaxConcurrentConnections } + if mas.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = mas.DisableMetricsCollection + } if mas.Type != "" { objectMap["type"] = mas.Type } @@ -144784,6 +146117,15 @@ func (mas *MicrosoftAccessSource) UnmarshalJSON(body []byte) error { } mas.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + mas.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -146760,6 +148102,8 @@ type MongoDbAtlasSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -146786,6 +148130,9 @@ func (mdas MongoDbAtlasSink) MarshalJSON() ([]byte, error) { if mdas.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = mdas.MaxConcurrentConnections } + if mdas.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = mdas.DisableMetricsCollection + } if mdas.Type != "" { objectMap["type"] = mdas.Type } @@ -147075,6 +148422,15 @@ func (mdas *MongoDbAtlasSink) UnmarshalJSON(body []byte) error { } mdas.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + mdas.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -147110,6 +148466,8 @@ type MongoDbAtlasSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -147142,6 +148500,9 @@ func (mdas MongoDbAtlasSource) MarshalJSON() ([]byte, error) { if mdas.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = mdas.MaxConcurrentConnections } + if mdas.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = mdas.DisableMetricsCollection + } if mdas.Type != "" { objectMap["type"] = mdas.Type } @@ -147724,6 +149085,15 @@ func (mdas *MongoDbAtlasSource) UnmarshalJSON(body []byte) error { } mdas.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + mdas.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -149266,6 +150636,8 @@ type MongoDbSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -149289,6 +150661,9 @@ func (mds MongoDbSource) MarshalJSON() ([]byte, error) { if mds.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = mds.MaxConcurrentConnections } + if mds.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = mds.DisableMetricsCollection + } if mds.Type != "" { objectMap["type"] = mds.Type } @@ -149844,6 +151219,15 @@ func (mds *MongoDbSource) UnmarshalJSON(body []byte) error { } mds.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + mds.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -151170,6 +152554,8 @@ type MongoDbV2Sink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -151196,6 +152582,9 @@ func (mdvs MongoDbV2Sink) MarshalJSON() ([]byte, error) { if mdvs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = mdvs.MaxConcurrentConnections } + if mdvs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = mdvs.DisableMetricsCollection + } if mdvs.Type != "" { objectMap["type"] = mdvs.Type } @@ -151485,6 +152874,15 @@ func (mdvs *MongoDbV2Sink) UnmarshalJSON(body []byte) error { } mdvs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + mdvs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -151520,6 +152918,8 @@ type MongoDbV2Source struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -151552,6 +152952,9 @@ func (mdvs MongoDbV2Source) MarshalJSON() ([]byte, error) { if mdvs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = mdvs.MaxConcurrentConnections } + if mdvs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = mdvs.DisableMetricsCollection + } if mdvs.Type != "" { objectMap["type"] = mdvs.Type } @@ -152134,6 +153537,15 @@ func (mdvs *MongoDbV2Source) UnmarshalJSON(body []byte) error { } mdvs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + mdvs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -153035,6 +154447,8 @@ type MySQLSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -153061,6 +154475,9 @@ func (mss MySQLSource) MarshalJSON() ([]byte, error) { if mss.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = mss.MaxConcurrentConnections } + if mss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = mss.DisableMetricsCollection + } if mss.Type != "" { objectMap["type"] = mss.Type } @@ -153625,6 +155042,15 @@ func (mss *MySQLSource) UnmarshalJSON(body []byte) error { } mss.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + mss.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -154967,6 +156393,8 @@ type NetezzaSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -154999,6 +156427,9 @@ func (ns NetezzaSource) MarshalJSON() ([]byte, error) { if ns.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ns.MaxConcurrentConnections } + if ns.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ns.DisableMetricsCollection + } if ns.Type != "" { objectMap["type"] = ns.Type } @@ -155581,6 +157012,15 @@ func (ns *NetezzaSource) UnmarshalJSON(body []byte) error { } ns.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ns.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -157722,6 +159162,8 @@ type ODataSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -157748,6 +159190,9 @@ func (ods ODataSource) MarshalJSON() ([]byte, error) { if ods.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ods.MaxConcurrentConnections } + if ods.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ods.DisableMetricsCollection + } if ods.Type != "" { objectMap["type"] = ods.Type } @@ -158312,6 +159757,15 @@ func (ods *ODataSource) UnmarshalJSON(body []byte) error { } ods.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ods.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -159063,6 +160517,8 @@ type OdbcSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -159089,6 +160545,9 @@ func (osVar OdbcSink) MarshalJSON() ([]byte, error) { if osVar.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = osVar.MaxConcurrentConnections } + if osVar.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = osVar.DisableMetricsCollection + } if osVar.Type != "" { objectMap["type"] = osVar.Type } @@ -159378,6 +160837,15 @@ func (osVar *OdbcSink) UnmarshalJSON(body []byte) error { } osVar.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + osVar.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -159409,6 +160877,8 @@ type OdbcSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -159435,6 +160905,9 @@ func (osVar OdbcSource) MarshalJSON() ([]byte, error) { if osVar.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = osVar.MaxConcurrentConnections } + if osVar.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = osVar.DisableMetricsCollection + } if osVar.Type != "" { objectMap["type"] = osVar.Type } @@ -159999,6 +161472,15 @@ func (osVar *OdbcSource) UnmarshalJSON(body []byte) error { } osVar.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + osVar.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -162048,6 +163530,8 @@ type Office365Source struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -162083,6 +163567,9 @@ func (o3s Office365Source) MarshalJSON() ([]byte, error) { if o3s.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = o3s.MaxConcurrentConnections } + if o3s.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = o3s.DisableMetricsCollection + } if o3s.Type != "" { objectMap["type"] = o3s.Type } @@ -162674,6 +164161,15 @@ func (o3s *Office365Source) UnmarshalJSON(body []byte) error { } o3s.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + o3s.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -163920,6 +165416,8 @@ type OracleCloudStorageReadSettings struct { AdditionalProperties map[string]interface{} `json:""` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' Type TypeBasicStoreReadSettings `json:"type,omitempty"` } @@ -163961,6 +165459,9 @@ func (ocsrs OracleCloudStorageReadSettings) MarshalJSON() ([]byte, error) { if ocsrs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ocsrs.MaxConcurrentConnections } + if ocsrs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ocsrs.DisableMetricsCollection + } if ocsrs.Type != "" { objectMap["type"] = ocsrs.Type } @@ -164165,6 +165666,15 @@ func (ocsrs *OracleCloudStorageReadSettings) UnmarshalJSON(body []byte) error { } ocsrs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ocsrs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicStoreReadSettings @@ -166231,6 +167741,8 @@ type OracleServiceCloudSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -166257,6 +167769,9 @@ func (oscs OracleServiceCloudSource) MarshalJSON() ([]byte, error) { if oscs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = oscs.MaxConcurrentConnections } + if oscs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = oscs.DisableMetricsCollection + } if oscs.Type != "" { objectMap["type"] = oscs.Type } @@ -166821,6 +168336,15 @@ func (oscs *OracleServiceCloudSource) UnmarshalJSON(body []byte) error { } oscs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + oscs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -166852,6 +168376,8 @@ type OracleSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -166878,6 +168404,9 @@ func (osVar OracleSink) MarshalJSON() ([]byte, error) { if osVar.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = osVar.MaxConcurrentConnections } + if osVar.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = osVar.DisableMetricsCollection + } if osVar.Type != "" { objectMap["type"] = osVar.Type } @@ -167167,6 +168696,15 @@ func (osVar *OracleSink) UnmarshalJSON(body []byte) error { } osVar.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + osVar.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -167202,6 +168740,8 @@ type OracleSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -167234,6 +168774,9 @@ func (osVar OracleSource) MarshalJSON() ([]byte, error) { if osVar.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = osVar.MaxConcurrentConnections } + if osVar.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = osVar.DisableMetricsCollection + } if osVar.Type != "" { objectMap["type"] = osVar.Type } @@ -167816,6 +169359,15 @@ func (osVar *OracleSource) UnmarshalJSON(body []byte) error { } osVar.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + osVar.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -169307,6 +170859,8 @@ type OrcSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -169334,6 +170888,9 @@ func (osVar OrcSink) MarshalJSON() ([]byte, error) { if osVar.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = osVar.MaxConcurrentConnections } + if osVar.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = osVar.DisableMetricsCollection + } if osVar.Type != "" { objectMap["type"] = osVar.Type } @@ -169631,6 +171188,15 @@ func (osVar *OrcSink) UnmarshalJSON(body []byte) error { } osVar.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + osVar.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -169660,6 +171226,8 @@ type OrcSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -169681,6 +171249,9 @@ func (osVar OrcSource) MarshalJSON() ([]byte, error) { if osVar.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = osVar.MaxConcurrentConnections } + if osVar.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = osVar.DisableMetricsCollection + } if osVar.Type != "" { objectMap["type"] = osVar.Type } @@ -170235,6 +171806,15 @@ func (osVar *OrcSource) UnmarshalJSON(body []byte) error { } osVar.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + osVar.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -171033,8 +172613,9 @@ func (pd *ParquetDataset) UnmarshalJSON(body []byte) error { // ParquetDatasetTypeProperties parquet dataset properties. type ParquetDatasetTypeProperties struct { // Location - The location of the parquet storage. - Location BasicDatasetLocation `json:"location,omitempty"` - CompressionCodec interface{} `json:"compressionCodec,omitempty"` + Location BasicDatasetLocation `json:"location,omitempty"` + // CompressionCodec - The data compressionCodec. Type: string (or Expression with resultType string). + CompressionCodec interface{} `json:"compressionCodec,omitempty"` } // UnmarshalJSON is the custom unmarshaler for ParquetDatasetTypeProperties struct. @@ -171207,6 +172788,8 @@ type ParquetSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -171234,6 +172817,9 @@ func (ps ParquetSink) MarshalJSON() ([]byte, error) { if ps.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ps.MaxConcurrentConnections } + if ps.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ps.DisableMetricsCollection + } if ps.Type != "" { objectMap["type"] = ps.Type } @@ -171531,6 +173117,15 @@ func (ps *ParquetSink) UnmarshalJSON(body []byte) error { } ps.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ps.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -171560,6 +173155,8 @@ type ParquetSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -171581,6 +173178,9 @@ func (ps ParquetSource) MarshalJSON() ([]byte, error) { if ps.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ps.MaxConcurrentConnections } + if ps.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ps.DisableMetricsCollection + } if ps.Type != "" { objectMap["type"] = ps.Type } @@ -172135,6 +173735,15 @@ func (ps *ParquetSource) UnmarshalJSON(body []byte) error { } ps.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ps.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -173662,6 +175271,8 @@ type PaypalSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -173688,6 +175299,9 @@ func (ps PaypalSource) MarshalJSON() ([]byte, error) { if ps.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ps.MaxConcurrentConnections } + if ps.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ps.DisableMetricsCollection + } if ps.Type != "" { objectMap["type"] = ps.Type } @@ -174252,6 +175866,15 @@ func (ps *PaypalSource) UnmarshalJSON(body []byte) error { } ps.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ps.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -175724,6 +177347,8 @@ type PhoenixSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -175750,6 +177375,9 @@ func (ps PhoenixSource) MarshalJSON() ([]byte, error) { if ps.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ps.MaxConcurrentConnections } + if ps.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ps.DisableMetricsCollection + } if ps.Type != "" { objectMap["type"] = ps.Type } @@ -176314,6 +177942,15 @@ func (ps *PhoenixSource) UnmarshalJSON(body []byte) error { } ps.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ps.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -176962,6 +178599,12 @@ type PipelineRunInvokedBy struct { InvokedByType *string `json:"invokedByType,omitempty"` } +// MarshalJSON is the custom marshaler for PipelineRunInvokedBy. +func (prib PipelineRunInvokedBy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PipelineRunsQueryResponse a list pipeline runs. type PipelineRunsQueryResponse struct { autorest.Response `json:"-"` @@ -177732,6 +179375,8 @@ type PostgreSQLSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -177758,6 +179403,9 @@ func (pss PostgreSQLSource) MarshalJSON() ([]byte, error) { if pss.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = pss.MaxConcurrentConnections } + if pss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = pss.DisableMetricsCollection + } if pss.Type != "" { objectMap["type"] = pss.Type } @@ -178322,6 +179970,15 @@ func (pss *PostgreSQLSource) UnmarshalJSON(body []byte) error { } pss.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + pss.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -180470,6 +182127,8 @@ type PrestoSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -180496,6 +182155,9 @@ func (ps PrestoSource) MarshalJSON() ([]byte, error) { if ps.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ps.MaxConcurrentConnections } + if ps.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ps.DisableMetricsCollection + } if ps.Type != "" { objectMap["type"] = ps.Type } @@ -181060,6 +182722,15 @@ func (ps *PrestoSource) UnmarshalJSON(body []byte) error { } ps.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ps.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -181330,6 +183001,12 @@ type PrivateLinkResourceProperties struct { RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. +func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkResourcesWrapper wrapper for a collection of private link resources type PrivateLinkResourcesWrapper struct { autorest.Response `json:"-"` @@ -182908,6 +184585,8 @@ type QuickBooksSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -182934,6 +184613,9 @@ func (qbs QuickBooksSource) MarshalJSON() ([]byte, error) { if qbs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = qbs.MaxConcurrentConnections } + if qbs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = qbs.DisableMetricsCollection + } if qbs.Type != "" { objectMap["type"] = qbs.Type } @@ -183498,6 +185180,15 @@ func (qbs *QuickBooksSource) UnmarshalJSON(body []byte) error { } qbs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + qbs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -183789,6 +185480,8 @@ type RelationalSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -183812,6 +185505,9 @@ func (rs RelationalSource) MarshalJSON() ([]byte, error) { if rs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = rs.MaxConcurrentConnections } + if rs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = rs.DisableMetricsCollection + } if rs.Type != "" { objectMap["type"] = rs.Type } @@ -184367,6 +186063,15 @@ func (rs *RelationalSource) UnmarshalJSON(body []byte) error { } rs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + rs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -186651,6 +188356,8 @@ type ResponsysSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -186677,6 +188384,9 @@ func (rs ResponsysSource) MarshalJSON() ([]byte, error) { if rs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = rs.MaxConcurrentConnections } + if rs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = rs.DisableMetricsCollection + } if rs.Type != "" { objectMap["type"] = rs.Type } @@ -187241,6 +188951,15 @@ func (rs *ResponsysSource) UnmarshalJSON(body []byte) error { } rs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + rs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -188724,6 +190443,8 @@ type RestSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -188762,6 +190483,9 @@ func (rs RestSink) MarshalJSON() ([]byte, error) { if rs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = rs.MaxConcurrentConnections } + if rs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = rs.DisableMetricsCollection + } if rs.Type != "" { objectMap["type"] = rs.Type } @@ -189087,6 +190811,15 @@ func (rs *RestSink) UnmarshalJSON(body []byte) error { } rs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + rs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -189126,6 +190859,8 @@ type RestSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -189164,6 +190899,9 @@ func (rs RestSource) MarshalJSON() ([]byte, error) { if rs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = rs.MaxConcurrentConnections } + if rs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = rs.DisableMetricsCollection + } if rs.Type != "" { objectMap["type"] = rs.Type } @@ -189764,6 +191502,15 @@ func (rs *RestSource) UnmarshalJSON(body []byte) error { } rs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + rs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -191932,6 +193679,8 @@ type SalesforceMarketingCloudSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -191958,6 +193707,9 @@ func (smcs SalesforceMarketingCloudSource) MarshalJSON() ([]byte, error) { if smcs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = smcs.MaxConcurrentConnections } + if smcs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = smcs.DisableMetricsCollection + } if smcs.Type != "" { objectMap["type"] = smcs.Type } @@ -192522,6 +194274,15 @@ func (smcs *SalesforceMarketingCloudSource) UnmarshalJSON(body []byte) error { } smcs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + smcs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -194588,6 +196349,8 @@ type SalesforceServiceCloudSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -194620,6 +196383,9 @@ func (sscs SalesforceServiceCloudSink) MarshalJSON() ([]byte, error) { if sscs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = sscs.MaxConcurrentConnections } + if sscs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = sscs.DisableMetricsCollection + } if sscs.Type != "" { objectMap["type"] = sscs.Type } @@ -194927,6 +196693,15 @@ func (sscs *SalesforceServiceCloudSink) UnmarshalJSON(body []byte) error { } sscs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + sscs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -194958,6 +196733,8 @@ type SalesforceServiceCloudSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -194984,6 +196761,9 @@ func (sscs SalesforceServiceCloudSource) MarshalJSON() ([]byte, error) { if sscs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = sscs.MaxConcurrentConnections } + if sscs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = sscs.DisableMetricsCollection + } if sscs.Type != "" { objectMap["type"] = sscs.Type } @@ -195548,6 +197328,15 @@ func (sscs *SalesforceServiceCloudSource) UnmarshalJSON(body []byte) error { } sscs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + sscs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -195583,6 +197372,8 @@ type SalesforceSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -195615,6 +197406,9 @@ func (ss SalesforceSink) MarshalJSON() ([]byte, error) { if ss.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections } + if ss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ss.DisableMetricsCollection + } if ss.Type != "" { objectMap["type"] = ss.Type } @@ -195922,6 +197716,15 @@ func (ss *SalesforceSink) UnmarshalJSON(body []byte) error { } ss.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ss.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -195955,6 +197758,8 @@ type SalesforceSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -195984,6 +197789,9 @@ func (ss SalesforceSource) MarshalJSON() ([]byte, error) { if ss.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections } + if ss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ss.DisableMetricsCollection + } if ss.Type != "" { objectMap["type"] = ss.Type } @@ -196557,6 +198365,15 @@ func (ss *SalesforceSource) UnmarshalJSON(body []byte) error { } ss.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ss.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -197939,6 +199756,8 @@ type SapBwSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -197965,6 +199784,9 @@ func (sbs SapBwSource) MarshalJSON() ([]byte, error) { if sbs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = sbs.MaxConcurrentConnections } + if sbs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = sbs.DisableMetricsCollection + } if sbs.Type != "" { objectMap["type"] = sbs.Type } @@ -198529,6 +200351,15 @@ func (sbs *SapBwSource) UnmarshalJSON(body []byte) error { } sbs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + sbs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -199912,6 +201743,8 @@ type SapCloudForCustomerSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -199941,6 +201774,9 @@ func (scfcs SapCloudForCustomerSink) MarshalJSON() ([]byte, error) { if scfcs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = scfcs.MaxConcurrentConnections } + if scfcs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = scfcs.DisableMetricsCollection + } if scfcs.Type != "" { objectMap["type"] = scfcs.Type } @@ -200239,6 +202075,15 @@ func (scfcs *SapCloudForCustomerSink) UnmarshalJSON(body []byte) error { } scfcs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + scfcs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -200272,6 +202117,8 @@ type SapCloudForCustomerSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -200301,6 +202148,9 @@ func (scfcs SapCloudForCustomerSource) MarshalJSON() ([]byte, error) { if scfcs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = scfcs.MaxConcurrentConnections } + if scfcs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = scfcs.DisableMetricsCollection + } if scfcs.Type != "" { objectMap["type"] = scfcs.Type } @@ -200874,6 +202724,15 @@ func (scfcs *SapCloudForCustomerSource) UnmarshalJSON(body []byte) error { } scfcs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + scfcs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -202256,6 +204115,8 @@ type SapEccSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -202285,6 +204146,9 @@ func (ses SapEccSource) MarshalJSON() ([]byte, error) { if ses.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ses.MaxConcurrentConnections } + if ses.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ses.DisableMetricsCollection + } if ses.Type != "" { objectMap["type"] = ses.Type } @@ -202858,6 +204722,15 @@ func (ses *SapEccSource) UnmarshalJSON(body []byte) error { } ses.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ses.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -203622,6 +205495,8 @@ type SapHanaSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -203657,6 +205532,9 @@ func (shs SapHanaSource) MarshalJSON() ([]byte, error) { if shs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = shs.MaxConcurrentConnections } + if shs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = shs.DisableMetricsCollection + } if shs.Type != "" { objectMap["type"] = shs.Type } @@ -204248,6 +206126,15 @@ func (shs *SapHanaSource) UnmarshalJSON(body []byte) error { } shs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + shs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -205714,6 +207601,8 @@ type SapOpenHubSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -205749,6 +207638,9 @@ func (sohs SapOpenHubSource) MarshalJSON() ([]byte, error) { if sohs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = sohs.MaxConcurrentConnections } + if sohs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = sohs.DisableMetricsCollection + } if sohs.Type != "" { objectMap["type"] = sohs.Type } @@ -206340,6 +208232,15 @@ func (sohs *SapOpenHubSource) UnmarshalJSON(body []byte) error { } sohs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + sohs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -208534,6 +210435,8 @@ type SapTableSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -208584,6 +210487,9 @@ func (sts SapTableSource) MarshalJSON() ([]byte, error) { if sts.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = sts.MaxConcurrentConnections } + if sts.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = sts.DisableMetricsCollection + } if sts.Type != "" { objectMap["type"] = sts.Type } @@ -209220,6 +211126,15 @@ func (sts *SapTableSource) UnmarshalJSON(body []byte) error { } sts.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + sts.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -209567,7 +211482,7 @@ type BasicSecretBase interface { // SecretBase the base definition of a secret type. type SecretBase struct { - // Type - Possible values include: 'TypeTypeSecretBase', 'TypeTypeSecureString', 'TypeTypeAzureKeyVaultSecret' + // Type - Possible values include: 'TypeSecretBase', 'TypeSecureString', 'TypeAzureKeyVaultSecret' Type Type `json:"type,omitempty"` } @@ -209579,11 +211494,11 @@ func unmarshalBasicSecretBase(body []byte) (BasicSecretBase, error) { } switch m["type"] { - case string(TypeTypeSecureString): + case string(TypeSecureString): var ss SecureString err := json.Unmarshal(body, &ss) return ss, err - case string(TypeTypeAzureKeyVaultSecret): + case string(TypeAzureKeyVaultSecret): var akvsr AzureKeyVaultSecretReference err := json.Unmarshal(body, &akvsr) return akvsr, err @@ -209614,7 +211529,7 @@ func unmarshalBasicSecretBaseArray(body []byte) ([]BasicSecretBase, error) { // MarshalJSON is the custom marshaler for SecretBase. func (sb SecretBase) MarshalJSON() ([]byte, error) { - sb.Type = TypeTypeSecretBase + sb.Type = TypeSecretBase objectMap := make(map[string]interface{}) if sb.Type != "" { objectMap["type"] = sb.Type @@ -209647,13 +211562,13 @@ func (sb SecretBase) AsBasicSecretBase() (BasicSecretBase, bool) { type SecureString struct { // Value - Value of secure string. Value *string `json:"value,omitempty"` - // Type - Possible values include: 'TypeTypeSecretBase', 'TypeTypeSecureString', 'TypeTypeAzureKeyVaultSecret' + // Type - Possible values include: 'TypeSecretBase', 'TypeSecureString', 'TypeAzureKeyVaultSecret' Type Type `json:"type,omitempty"` } // MarshalJSON is the custom marshaler for SecureString. func (ss SecureString) MarshalJSON() ([]byte, error) { - ss.Type = TypeTypeSecureString + ss.Type = TypeSecureString objectMap := make(map[string]interface{}) if ss.Value != nil { objectMap["value"] = ss.Value @@ -211505,6 +213420,8 @@ type ServiceNowSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -211531,6 +213448,9 @@ func (sns ServiceNowSource) MarshalJSON() ([]byte, error) { if sns.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = sns.MaxConcurrentConnections } + if sns.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = sns.DisableMetricsCollection + } if sns.Type != "" { objectMap["type"] = sns.Type } @@ -212095,6 +214015,15 @@ func (sns *ServiceNowSource) UnmarshalJSON(body []byte) error { } sns.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + sns.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -212629,6 +214558,8 @@ type SftpReadSettings struct { AdditionalProperties map[string]interface{} `json:""` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' Type TypeBasicStoreReadSettings `json:"type,omitempty"` } @@ -212667,6 +214598,9 @@ func (srs SftpReadSettings) MarshalJSON() ([]byte, error) { if srs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = srs.MaxConcurrentConnections } + if srs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = srs.DisableMetricsCollection + } if srs.Type != "" { objectMap["type"] = srs.Type } @@ -212862,6 +214796,15 @@ func (srs *SftpReadSettings) UnmarshalJSON(body []byte) error { } srs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + srs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicStoreReadSettings @@ -213661,6 +215604,8 @@ type SftpWriteSettings struct { AdditionalProperties map[string]interface{} `json:""` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // CopyBehavior - The type of copy behavior for copy sink. CopyBehavior interface{} `json:"copyBehavior,omitempty"` // Type - Possible values include: 'TypeBasicStoreWriteSettingsTypeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureFileStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeFileServerWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureDataLakeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobFSWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeSftpWriteSettings' @@ -213680,6 +215625,9 @@ func (sws SftpWriteSettings) MarshalJSON() ([]byte, error) { if sws.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = sws.MaxConcurrentConnections } + if sws.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = sws.DisableMetricsCollection + } if sws.CopyBehavior != nil { objectMap["copyBehavior"] = sws.CopyBehavior } @@ -213780,6 +215728,15 @@ func (sws *SftpWriteSettings) UnmarshalJSON(body []byte) error { } sws.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + sws.DisableMetricsCollection = disableMetricsCollection + } case "copyBehavior": if v != nil { var copyBehavior interface{} @@ -215178,6 +217135,8 @@ type SharePointOnlineListSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -215201,6 +217160,9 @@ func (spols SharePointOnlineListSource) MarshalJSON() ([]byte, error) { if spols.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = spols.MaxConcurrentConnections } + if spols.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = spols.DisableMetricsCollection + } if spols.Type != "" { objectMap["type"] = spols.Type } @@ -215756,6 +217718,15 @@ func (spols *SharePointOnlineListSource) UnmarshalJSON(body []byte) error { } spols.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + spols.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -217152,6 +219123,8 @@ type ShopifySource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -217178,6 +219151,9 @@ func (ss ShopifySource) MarshalJSON() ([]byte, error) { if ss.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections } + if ss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ss.DisableMetricsCollection + } if ss.Type != "" { objectMap["type"] = ss.Type } @@ -217742,6 +219718,15 @@ func (ss *ShopifySource) UnmarshalJSON(body []byte) error { } ss.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ss.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -219292,6 +221277,8 @@ type SnowflakeSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -219321,6 +221308,9 @@ func (ss SnowflakeSink) MarshalJSON() ([]byte, error) { if ss.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections } + if ss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ss.DisableMetricsCollection + } if ss.Type != "" { objectMap["type"] = ss.Type } @@ -219619,6 +221609,15 @@ func (ss *SnowflakeSink) UnmarshalJSON(body []byte) error { } ss.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ss.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -219648,6 +221647,8 @@ type SnowflakeSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -219671,6 +221672,9 @@ func (ss SnowflakeSource) MarshalJSON() ([]byte, error) { if ss.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections } + if ss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ss.DisableMetricsCollection + } if ss.Type != "" { objectMap["type"] = ss.Type } @@ -220226,6 +222230,15 @@ func (ss *SnowflakeSource) UnmarshalJSON(body []byte) error { } ss.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ss.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -221720,6 +223733,8 @@ type SparkSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -221746,6 +223761,9 @@ func (ss SparkSource) MarshalJSON() ([]byte, error) { if ss.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections } + if ss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ss.DisableMetricsCollection + } if ss.Type != "" { objectMap["type"] = ss.Type } @@ -222310,6 +224328,15 @@ func (ss *SparkSource) UnmarshalJSON(body []byte) error { } ss.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ss.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -222402,6 +224429,8 @@ type SQLDWSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -222443,6 +224472,9 @@ func (sds SQLDWSink) MarshalJSON() ([]byte, error) { if sds.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = sds.MaxConcurrentConnections } + if sds.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = sds.DisableMetricsCollection + } if sds.Type != "" { objectMap["type"] = sds.Type } @@ -222777,6 +224809,15 @@ func (sds *SQLDWSink) UnmarshalJSON(body []byte) error { } sds.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + sds.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -222816,6 +224857,8 @@ type SQLDWSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -222854,6 +224897,9 @@ func (sds SQLDWSource) MarshalJSON() ([]byte, error) { if sds.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = sds.MaxConcurrentConnections } + if sds.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = sds.DisableMetricsCollection + } if sds.Type != "" { objectMap["type"] = sds.Type } @@ -223454,6 +225500,15 @@ func (sds *SQLDWSource) UnmarshalJSON(body []byte) error { } sds.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + sds.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -223495,6 +225550,8 @@ type SQLMISink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -223536,6 +225593,9 @@ func (sms SQLMISink) MarshalJSON() ([]byte, error) { if sms.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = sms.MaxConcurrentConnections } + if sms.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = sms.DisableMetricsCollection + } if sms.Type != "" { objectMap["type"] = sms.Type } @@ -223870,6 +225930,15 @@ func (sms *SQLMISink) UnmarshalJSON(body []byte) error { } sms.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + sms.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -223911,6 +225980,8 @@ type SQLMISource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -223952,6 +226023,9 @@ func (sms SQLMISource) MarshalJSON() ([]byte, error) { if sms.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = sms.MaxConcurrentConnections } + if sms.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = sms.DisableMetricsCollection + } if sms.Type != "" { objectMap["type"] = sms.Type } @@ -224561,6 +226635,15 @@ func (sms *SQLMISource) UnmarshalJSON(body []byte) error { } sms.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + sms.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -225322,6 +227405,8 @@ type SQLServerSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -225363,6 +227448,9 @@ func (sss SQLServerSink) MarshalJSON() ([]byte, error) { if sss.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = sss.MaxConcurrentConnections } + if sss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = sss.DisableMetricsCollection + } if sss.Type != "" { objectMap["type"] = sss.Type } @@ -225697,6 +227785,15 @@ func (sss *SQLServerSink) UnmarshalJSON(body []byte) error { } sss.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + sss.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -225738,6 +227835,8 @@ type SQLServerSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -225779,6 +227878,9 @@ func (sss SQLServerSource) MarshalJSON() ([]byte, error) { if sss.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = sss.MaxConcurrentConnections } + if sss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = sss.DisableMetricsCollection + } if sss.Type != "" { objectMap["type"] = sss.Type } @@ -226388,6 +228490,15 @@ func (sss *SQLServerSource) UnmarshalJSON(body []byte) error { } sss.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + sss.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -227458,6 +229569,8 @@ type SQLSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -227499,6 +229612,9 @@ func (ss SQLSink) MarshalJSON() ([]byte, error) { if ss.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections } + if ss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ss.DisableMetricsCollection + } if ss.Type != "" { objectMap["type"] = ss.Type } @@ -227833,6 +229949,15 @@ func (ss *SQLSink) UnmarshalJSON(body []byte) error { } ss.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ss.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -227874,6 +229999,8 @@ type SQLSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -227915,6 +230042,9 @@ func (ss SQLSource) MarshalJSON() ([]byte, error) { if ss.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections } + if ss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ss.DisableMetricsCollection + } if ss.Type != "" { objectMap["type"] = ss.Type } @@ -228524,6 +230654,15 @@ func (ss *SQLSource) UnmarshalJSON(body []byte) error { } ss.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ss.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -229953,6 +232092,8 @@ type SquareSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -229979,6 +232120,9 @@ func (ss SquareSource) MarshalJSON() ([]byte, error) { if ss.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections } + if ss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ss.DisableMetricsCollection + } if ss.Type != "" { objectMap["type"] = ss.Type } @@ -230543,6 +232687,15 @@ func (ss *SquareSource) UnmarshalJSON(body []byte) error { } ss.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ss.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -231534,6 +233687,8 @@ type StoreReadSettings struct { AdditionalProperties map[string]interface{} `json:""` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' Type TypeBasicStoreReadSettings `json:"type,omitempty"` } @@ -231630,6 +233785,9 @@ func (srs StoreReadSettings) MarshalJSON() ([]byte, error) { if srs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = srs.MaxConcurrentConnections } + if srs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = srs.DisableMetricsCollection + } if srs.Type != "" { objectMap["type"] = srs.Type } @@ -231744,6 +233902,15 @@ func (srs *StoreReadSettings) UnmarshalJSON(body []byte) error { } srs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + srs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicStoreReadSettings @@ -231776,6 +233943,8 @@ type StoreWriteSettings struct { AdditionalProperties map[string]interface{} `json:""` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // CopyBehavior - The type of copy behavior for copy sink. CopyBehavior interface{} `json:"copyBehavior,omitempty"` // Type - Possible values include: 'TypeBasicStoreWriteSettingsTypeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureFileStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeFileServerWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureDataLakeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobFSWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeSftpWriteSettings' @@ -231846,6 +234015,9 @@ func (sws StoreWriteSettings) MarshalJSON() ([]byte, error) { if sws.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = sws.MaxConcurrentConnections } + if sws.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = sws.DisableMetricsCollection + } if sws.CopyBehavior != nil { objectMap["copyBehavior"] = sws.CopyBehavior } @@ -231928,6 +234100,15 @@ func (sws *StoreWriteSettings) UnmarshalJSON(body []byte) error { } sws.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + sws.DisableMetricsCollection = disableMetricsCollection + } case "copyBehavior": if v != nil { var copyBehavior interface{} @@ -231964,6 +234145,12 @@ type SubResource struct { Etag *string `json:"etag,omitempty"` } +// MarshalJSON is the custom marshaler for SubResource. +func (sr SubResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SubResourceDebugResource azure Data Factory nested debug resource. type SubResourceDebugResource struct { // Name - The resource name. @@ -233137,6 +235324,8 @@ type SybaseSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -233163,6 +235352,9 @@ func (ss SybaseSource) MarshalJSON() ([]byte, error) { if ss.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections } + if ss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ss.DisableMetricsCollection + } if ss.Type != "" { objectMap["type"] = ss.Type } @@ -233727,6 +235919,15 @@ func (ss *SybaseSource) UnmarshalJSON(body []byte) error { } ss.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ss.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -234468,6 +236669,8 @@ type TabularSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -234752,6 +236955,9 @@ func (ts TabularSource) MarshalJSON() ([]byte, error) { if ts.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ts.MaxConcurrentConnections } + if ts.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ts.DisableMetricsCollection + } if ts.Type != "" { objectMap["type"] = ts.Type } @@ -235307,6 +237513,15 @@ func (ts *TabularSource) UnmarshalJSON(body []byte) error { } ts.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ts.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -236435,6 +238650,8 @@ type TeradataSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -236467,6 +238684,9 @@ func (ts TeradataSource) MarshalJSON() ([]byte, error) { if ts.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ts.MaxConcurrentConnections } + if ts.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ts.DisableMetricsCollection + } if ts.Type != "" { objectMap["type"] = ts.Type } @@ -237049,6 +239269,15 @@ func (ts *TeradataSource) UnmarshalJSON(body []byte) error { } ts.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ts.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -238865,6 +241094,12 @@ type TriggerSubscriptionOperationStatus struct { Status EventSubscriptionStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for TriggerSubscriptionOperationStatus. +func (tsos TriggerSubscriptionOperationStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TriggersUnsubscribeFromEventsFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type TriggersUnsubscribeFromEventsFuture struct { @@ -240708,6 +242943,8 @@ type VerticaSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -240734,6 +242971,9 @@ func (vs VerticaSource) MarshalJSON() ([]byte, error) { if vs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = vs.MaxConcurrentConnections } + if vs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = vs.DisableMetricsCollection + } if vs.Type != "" { objectMap["type"] = vs.Type } @@ -241298,6 +243538,15 @@ func (vs *VerticaSource) UnmarshalJSON(body []byte) error { } vs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + vs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -242753,13 +245002,13 @@ type WebActivityTypeProperties struct { type WebAnonymousAuthentication struct { // URL - The URL of the web service endpoint, e.g. http://www.microsoft.com . Type: string (or Expression with resultType string). URL interface{} `json:"url,omitempty"` - // AuthenticationType - Possible values include: 'AuthenticationTypeAuthenticationTypeWebLinkedServiceTypeProperties', 'AuthenticationTypeAuthenticationTypeClientCertificate', 'AuthenticationTypeAuthenticationTypeBasic', 'AuthenticationTypeAuthenticationTypeAnonymous' + // AuthenticationType - Possible values include: 'AuthenticationTypeWebLinkedServiceTypeProperties', 'AuthenticationTypeClientCertificate', 'AuthenticationTypeBasic', 'AuthenticationTypeAnonymous' AuthenticationType AuthenticationType `json:"authenticationType,omitempty"` } // MarshalJSON is the custom marshaler for WebAnonymousAuthentication. func (waa WebAnonymousAuthentication) MarshalJSON() ([]byte, error) { - waa.AuthenticationType = AuthenticationTypeAuthenticationTypeAnonymous + waa.AuthenticationType = AuthenticationTypeAnonymous objectMap := make(map[string]interface{}) if waa.URL != nil { objectMap["url"] = waa.URL @@ -242804,13 +245053,13 @@ type WebBasicAuthentication struct { Password BasicSecretBase `json:"password,omitempty"` // URL - The URL of the web service endpoint, e.g. http://www.microsoft.com . Type: string (or Expression with resultType string). URL interface{} `json:"url,omitempty"` - // AuthenticationType - Possible values include: 'AuthenticationTypeAuthenticationTypeWebLinkedServiceTypeProperties', 'AuthenticationTypeAuthenticationTypeClientCertificate', 'AuthenticationTypeAuthenticationTypeBasic', 'AuthenticationTypeAuthenticationTypeAnonymous' + // AuthenticationType - Possible values include: 'AuthenticationTypeWebLinkedServiceTypeProperties', 'AuthenticationTypeClientCertificate', 'AuthenticationTypeBasic', 'AuthenticationTypeAnonymous' AuthenticationType AuthenticationType `json:"authenticationType,omitempty"` } // MarshalJSON is the custom marshaler for WebBasicAuthentication. func (wba WebBasicAuthentication) MarshalJSON() ([]byte, error) { - wba.AuthenticationType = AuthenticationTypeAuthenticationTypeBasic + wba.AuthenticationType = AuthenticationTypeBasic objectMap := make(map[string]interface{}) if wba.Username != nil { objectMap["username"] = wba.Username @@ -242910,13 +245159,13 @@ type WebClientCertificateAuthentication struct { Password BasicSecretBase `json:"password,omitempty"` // URL - The URL of the web service endpoint, e.g. http://www.microsoft.com . Type: string (or Expression with resultType string). URL interface{} `json:"url,omitempty"` - // AuthenticationType - Possible values include: 'AuthenticationTypeAuthenticationTypeWebLinkedServiceTypeProperties', 'AuthenticationTypeAuthenticationTypeClientCertificate', 'AuthenticationTypeAuthenticationTypeBasic', 'AuthenticationTypeAuthenticationTypeAnonymous' + // AuthenticationType - Possible values include: 'AuthenticationTypeWebLinkedServiceTypeProperties', 'AuthenticationTypeClientCertificate', 'AuthenticationTypeBasic', 'AuthenticationTypeAnonymous' AuthenticationType AuthenticationType `json:"authenticationType,omitempty"` } // MarshalJSON is the custom marshaler for WebClientCertificateAuthentication. func (wcca WebClientCertificateAuthentication) MarshalJSON() ([]byte, error) { - wcca.AuthenticationType = AuthenticationTypeAuthenticationTypeClientCertificate + wcca.AuthenticationType = AuthenticationTypeClientCertificate objectMap := make(map[string]interface{}) objectMap["pfx"] = wcca.Pfx objectMap["password"] = wcca.Password @@ -243996,7 +246245,7 @@ type BasicWebLinkedServiceTypeProperties interface { type WebLinkedServiceTypeProperties struct { // URL - The URL of the web service endpoint, e.g. http://www.microsoft.com . Type: string (or Expression with resultType string). URL interface{} `json:"url,omitempty"` - // AuthenticationType - Possible values include: 'AuthenticationTypeAuthenticationTypeWebLinkedServiceTypeProperties', 'AuthenticationTypeAuthenticationTypeClientCertificate', 'AuthenticationTypeAuthenticationTypeBasic', 'AuthenticationTypeAuthenticationTypeAnonymous' + // AuthenticationType - Possible values include: 'AuthenticationTypeWebLinkedServiceTypeProperties', 'AuthenticationTypeClientCertificate', 'AuthenticationTypeBasic', 'AuthenticationTypeAnonymous' AuthenticationType AuthenticationType `json:"authenticationType,omitempty"` } @@ -244008,15 +246257,15 @@ func unmarshalBasicWebLinkedServiceTypeProperties(body []byte) (BasicWebLinkedSe } switch m["authenticationType"] { - case string(AuthenticationTypeAuthenticationTypeClientCertificate): + case string(AuthenticationTypeClientCertificate): var wcca WebClientCertificateAuthentication err := json.Unmarshal(body, &wcca) return wcca, err - case string(AuthenticationTypeAuthenticationTypeBasic): + case string(AuthenticationTypeBasic): var wba WebBasicAuthentication err := json.Unmarshal(body, &wba) return wba, err - case string(AuthenticationTypeAuthenticationTypeAnonymous): + case string(AuthenticationTypeAnonymous): var waa WebAnonymousAuthentication err := json.Unmarshal(body, &waa) return waa, err @@ -244047,7 +246296,7 @@ func unmarshalBasicWebLinkedServiceTypePropertiesArray(body []byte) ([]BasicWebL // MarshalJSON is the custom marshaler for WebLinkedServiceTypeProperties. func (wlstp WebLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - wlstp.AuthenticationType = AuthenticationTypeAuthenticationTypeWebLinkedServiceTypeProperties + wlstp.AuthenticationType = AuthenticationTypeWebLinkedServiceTypeProperties objectMap := make(map[string]interface{}) if wlstp.URL != nil { objectMap["url"] = wlstp.URL @@ -244095,6 +246344,8 @@ type WebSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -244115,6 +246366,9 @@ func (ws WebSource) MarshalJSON() ([]byte, error) { if ws.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ws.MaxConcurrentConnections } + if ws.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ws.DisableMetricsCollection + } if ws.Type != "" { objectMap["type"] = ws.Type } @@ -244661,6 +246915,15 @@ func (ws *WebSource) UnmarshalJSON(body []byte) error { } ws.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ws.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -246731,6 +248994,8 @@ type XeroSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -246757,6 +249022,9 @@ func (xs XeroSource) MarshalJSON() ([]byte, error) { if xs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = xs.MaxConcurrentConnections } + if xs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = xs.DisableMetricsCollection + } if xs.Type != "" { objectMap["type"] = xs.Type } @@ -247321,6 +249589,15 @@ func (xs *XeroSource) UnmarshalJSON(body []byte) error { } xs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + xs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -248211,6 +250488,8 @@ type XMLSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -248235,6 +250514,9 @@ func (xs XMLSource) MarshalJSON() ([]byte, error) { if xs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = xs.MaxConcurrentConnections } + if xs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = xs.DisableMetricsCollection + } if xs.Type != "" { objectMap["type"] = xs.Type } @@ -248798,6 +251080,15 @@ func (xs *XMLSource) UnmarshalJSON(body []byte) error { } xs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + xs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -250301,6 +252592,8 @@ type ZohoSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' Type TypeBasicCopySource `json:"type,omitempty"` } @@ -250327,6 +252620,9 @@ func (zs ZohoSource) MarshalJSON() ([]byte, error) { if zs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = zs.MaxConcurrentConnections } + if zs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = zs.DisableMetricsCollection + } if zs.Type != "" { objectMap["type"] = zs.Type } @@ -250891,6 +253187,15 @@ func (zs *ZohoSource) UnmarshalJSON(body []byte) error { } zs.MaxConcurrentConnections = maxConcurrentConnections } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + zs.DisableMetricsCollection = disableMetricsCollection + } case "type": if v != nil { var typeVar TypeBasicCopySource diff --git a/services/datalake/analytics/2016-11-01-preview/catalog/CHANGELOG.md b/services/datalake/analytics/2016-11-01-preview/catalog/CHANGELOG.md index 52911e4cc5e4..b2df2817da79 100644 --- a/services/datalake/analytics/2016-11-01-preview/catalog/CHANGELOG.md +++ b/services/datalake/analytics/2016-11-01-preview/catalog/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. ACL.MarshalJSON() ([]byte, error) diff --git a/services/datalake/analytics/2016-11-01-preview/catalog/_meta.json b/services/datalake/analytics/2016-11-01-preview/catalog/_meta.json index 88abbb4582a4..eb0bb4b4133a 100644 --- a/services/datalake/analytics/2016-11-01-preview/catalog/_meta.json +++ b/services/datalake/analytics/2016-11-01-preview/catalog/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/datalake-analytics/data-plane/readme.md", "tag": "package-catalog-2016-11", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-catalog-2016-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datalake-analytics/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-catalog-2016-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datalake-analytics/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/datalake/analytics/2016-11-01-preview/catalog/models.go b/services/datalake/analytics/2016-11-01-preview/catalog/models.go index a4707e2cacd7..e0366d6c620b 100644 --- a/services/datalake/analytics/2016-11-01-preview/catalog/models.go +++ b/services/datalake/analytics/2016-11-01-preview/catalog/models.go @@ -30,6 +30,12 @@ type ACL struct { Permission PermissionType `json:"permission,omitempty"` } +// MarshalJSON is the custom marshaler for ACL. +func (a ACL) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ACLCreateOrUpdateParameters the parameters used to create or update an access control list (ACL) entry. type ACLCreateOrUpdateParameters struct { // AceType - the access control list (ACL) entry type. UserObj and GroupObj denote the owning user and group, respectively. Possible values include: 'UserObj', 'GroupObj', 'Other', 'User', 'Group' diff --git a/services/datalake/analytics/2016-11-01/job/CHANGELOG.md b/services/datalake/analytics/2016-11-01/job/CHANGELOG.md index 52911e4cc5e4..31bbe0388ec4 100644 --- a/services/datalake/analytics/2016-11-01/job/CHANGELOG.md +++ b/services/datalake/analytics/2016-11-01/job/CHANGELOG.md @@ -1,2 +1,19 @@ # Change History +## Additive Changes + +### New Funcs + +1. DataPath.MarshalJSON() ([]byte, error) +1. Diagnostics.MarshalJSON() ([]byte, error) +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. InfoListResult.MarshalJSON() ([]byte, error) +1. InnerError.MarshalJSON() ([]byte, error) +1. PipelineInformation.MarshalJSON() ([]byte, error) +1. PipelineInformationListResult.MarshalJSON() ([]byte, error) +1. PipelineRunInformation.MarshalJSON() ([]byte, error) +1. RecurrenceInformation.MarshalJSON() ([]byte, error) +1. RecurrenceInformationListResult.MarshalJSON() ([]byte, error) +1. StateAuditRecord.MarshalJSON() ([]byte, error) +1. Statistics.MarshalJSON() ([]byte, error) +1. StatisticsVertexStage.MarshalJSON() ([]byte, error) diff --git a/services/datalake/analytics/2016-11-01/job/_meta.json b/services/datalake/analytics/2016-11-01/job/_meta.json index 584456178b6a..2359159e0db5 100644 --- a/services/datalake/analytics/2016-11-01/job/_meta.json +++ b/services/datalake/analytics/2016-11-01/job/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/datalake-analytics/data-plane/readme.md", "tag": "package-job-2016-11", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-job-2016-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datalake-analytics/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-job-2016-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datalake-analytics/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/datalake/analytics/2016-11-01/job/models.go b/services/datalake/analytics/2016-11-01/job/models.go index f23f8d1c6ecf..162baff51451 100644 --- a/services/datalake/analytics/2016-11-01/job/models.go +++ b/services/datalake/analytics/2016-11-01/job/models.go @@ -358,6 +358,12 @@ type DataPath struct { Paths *[]string `json:"paths,omitempty"` } +// MarshalJSON is the custom marshaler for DataPath. +func (dp DataPath) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Diagnostics error diagnostic information for failed jobs. type Diagnostics struct { // ColumnNumber - READ-ONLY; the column where the error occurred. @@ -374,6 +380,12 @@ type Diagnostics struct { Start *int32 `json:"start,omitempty"` } +// MarshalJSON is the custom marshaler for Diagnostics. +func (d Diagnostics) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetails the Data Lake Analytics job error details. type ErrorDetails struct { // Description - READ-ONLY; the error message description @@ -406,6 +418,12 @@ type ErrorDetails struct { StartOffset *int32 `json:"startOffset,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HiveJobProperties hive job properties used when retrieving Hive jobs. type HiveJobProperties struct { // LogsLocation - READ-ONLY; the Hive logs location @@ -466,6 +484,12 @@ type InfoListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for InfoListResult. +func (ilr InfoListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InfoListResultIterator provides access to a complete listing of InformationBasic values. type InfoListResultIterator struct { i int @@ -940,6 +964,12 @@ type InnerError struct { InnerError *InnerError `json:"innerError,omitempty"` } +// MarshalJSON is the custom marshaler for InnerError. +func (ie InnerError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PipelineInformation job Pipeline Information, showing the relationship of jobs and recurrences of those // jobs in a pipeline. type PipelineInformation struct { @@ -970,6 +1000,12 @@ type PipelineInformation struct { Recurrences *[]uuid.UUID `json:"recurrences,omitempty"` } +// MarshalJSON is the custom marshaler for PipelineInformation. +func (pi PipelineInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PipelineInformationListResult list of job pipeline information items. type PipelineInformationListResult struct { autorest.Response `json:"-"` @@ -979,6 +1015,12 @@ type PipelineInformationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PipelineInformationListResult. +func (pilr PipelineInformationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PipelineInformationListResultIterator provides access to a complete listing of PipelineInformation // values. type PipelineInformationListResultIterator struct { @@ -1138,6 +1180,12 @@ type PipelineRunInformation struct { LastSubmitTime *date.Time `json:"lastSubmitTime,omitempty"` } +// MarshalJSON is the custom marshaler for PipelineRunInformation. +func (pri PipelineRunInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicProperties the common Data Lake Analytics job properties. type BasicProperties interface { AsUSQLJobProperties() (*USQLJobProperties, bool) @@ -1252,6 +1300,12 @@ type RecurrenceInformation struct { LastSubmitTime *date.Time `json:"lastSubmitTime,omitempty"` } +// MarshalJSON is the custom marshaler for RecurrenceInformation. +func (ri RecurrenceInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RecurrenceInformationListResult list of job recurrence information items. type RecurrenceInformationListResult struct { autorest.Response `json:"-"` @@ -1261,6 +1315,12 @@ type RecurrenceInformationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RecurrenceInformationListResult. +func (rilr RecurrenceInformationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RecurrenceInformationListResultIterator provides access to a complete listing of RecurrenceInformation // values. type RecurrenceInformationListResultIterator struct { @@ -1451,6 +1511,12 @@ type StateAuditRecord struct { Details *string `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for StateAuditRecord. +func (sar StateAuditRecord) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Statistics the Data Lake Analytics job execution statistics. type Statistics struct { autorest.Response `json:"-"` @@ -1462,6 +1528,12 @@ type Statistics struct { Stages *[]StatisticsVertexStage `json:"stages,omitempty"` } +// MarshalJSON is the custom marshaler for Statistics. +func (s Statistics) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StatisticsVertexStage the Data Lake Analytics job statistics vertex stage information. type StatisticsVertexStage struct { // DataRead - READ-ONLY; the amount of data read, in bytes. @@ -1506,6 +1578,12 @@ type StatisticsVertexStage struct { TotalSucceededTime *string `json:"totalSucceededTime,omitempty"` } +// MarshalJSON is the custom marshaler for StatisticsVertexStage. +func (svs StatisticsVertexStage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // USQLJobProperties u-SQL job properties used when retrieving U-SQL jobs. type USQLJobProperties struct { // Resources - READ-ONLY; the list of resources that are required by the job diff --git a/services/datalake/analytics/mgmt/2016-11-01/account/CHANGELOG.md b/services/datalake/analytics/mgmt/2016-11-01/account/CHANGELOG.md index 52911e4cc5e4..e72d9ec3a1ff 100644 --- a/services/datalake/analytics/mgmt/2016-11-01/account/CHANGELOG.md +++ b/services/datalake/analytics/mgmt/2016-11-01/account/CHANGELOG.md @@ -1,2 +1,27 @@ # Change History +## Additive Changes + +### New Funcs + +1. CapabilityInformation.MarshalJSON() ([]byte, error) +1. ComputePolicyListResult.MarshalJSON() ([]byte, error) +1. ComputePolicyProperties.MarshalJSON() ([]byte, error) +1. DataLakeAnalyticsAccountListResult.MarshalJSON() ([]byte, error) +1. DataLakeAnalyticsAccountProperties.MarshalJSON() ([]byte, error) +1. DataLakeAnalyticsAccountPropertiesBasic.MarshalJSON() ([]byte, error) +1. DataLakeStoreAccountInformationListResult.MarshalJSON() ([]byte, error) +1. DataLakeStoreAccountInformationProperties.MarshalJSON() ([]byte, error) +1. FirewallRuleListResult.MarshalJSON() ([]byte, error) +1. FirewallRuleProperties.MarshalJSON() ([]byte, error) +1. NameAvailabilityInformation.MarshalJSON() ([]byte, error) +1. Operation.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. SasTokenInformation.MarshalJSON() ([]byte, error) +1. SasTokenInformationListResult.MarshalJSON() ([]byte, error) +1. StorageAccountInformationListResult.MarshalJSON() ([]byte, error) +1. StorageAccountInformationProperties.MarshalJSON() ([]byte, error) +1. StorageContainerListResult.MarshalJSON() ([]byte, error) +1. StorageContainerProperties.MarshalJSON() ([]byte, error) +1. SubResource.MarshalJSON() ([]byte, error) diff --git a/services/datalake/analytics/mgmt/2016-11-01/account/_meta.json b/services/datalake/analytics/mgmt/2016-11-01/account/_meta.json index 3aee1fe61109..212fe40a2b95 100644 --- a/services/datalake/analytics/mgmt/2016-11-01/account/_meta.json +++ b/services/datalake/analytics/mgmt/2016-11-01/account/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/datalake-analytics/resource-manager/readme.md", "tag": "package-2016-11", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datalake-analytics/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datalake-analytics/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/datalake/analytics/mgmt/2016-11-01/account/models.go b/services/datalake/analytics/mgmt/2016-11-01/account/models.go index 3464472ba282..c29533732b91 100644 --- a/services/datalake/analytics/mgmt/2016-11-01/account/models.go +++ b/services/datalake/analytics/mgmt/2016-11-01/account/models.go @@ -361,6 +361,12 @@ type CapabilityInformation struct { MigrationState *bool `json:"migrationState,omitempty"` } +// MarshalJSON is the custom marshaler for CapabilityInformation. +func (ci CapabilityInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CheckNameAvailabilityParameters data Lake Analytics account name availability check parameters. type CheckNameAvailabilityParameters struct { // Name - The Data Lake Analytics name to check availability for. @@ -448,6 +454,12 @@ type ComputePolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ComputePolicyListResult. +func (cplr ComputePolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ComputePolicyListResultIterator provides access to a complete listing of ComputePolicy values. type ComputePolicyListResultIterator struct { i int @@ -610,6 +622,12 @@ type ComputePolicyProperties struct { MinPriorityPerJob *int32 `json:"minPriorityPerJob,omitempty"` } +// MarshalJSON is the custom marshaler for ComputePolicyProperties. +func (cpp ComputePolicyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CreateComputePolicyWithAccountParameters the parameters used to create a new compute policy while // creating a new Data Lake Analytics account. type CreateComputePolicyWithAccountParameters struct { @@ -1110,6 +1128,12 @@ type DataLakeAnalyticsAccountListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DataLakeAnalyticsAccountListResult. +func (dlaalr DataLakeAnalyticsAccountListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DataLakeAnalyticsAccountListResultIterator provides access to a complete listing of // DataLakeAnalyticsAccountBasic values. type DataLakeAnalyticsAccountListResultIterator struct { @@ -1310,6 +1334,12 @@ type DataLakeAnalyticsAccountProperties struct { Endpoint *string `json:"endpoint,omitempty"` } +// MarshalJSON is the custom marshaler for DataLakeAnalyticsAccountProperties. +func (dlaap DataLakeAnalyticsAccountProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DataLakeAnalyticsAccountPropertiesBasic the basic account specific properties that are associated with // an underlying Data Lake Analytics account. type DataLakeAnalyticsAccountPropertiesBasic struct { @@ -1327,6 +1357,12 @@ type DataLakeAnalyticsAccountPropertiesBasic struct { Endpoint *string `json:"endpoint,omitempty"` } +// MarshalJSON is the custom marshaler for DataLakeAnalyticsAccountPropertiesBasic. +func (dlaapb DataLakeAnalyticsAccountPropertiesBasic) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DataLakeStoreAccountInformation data Lake Store account information. type DataLakeStoreAccountInformation struct { autorest.Response `json:"-"` @@ -1406,6 +1442,12 @@ type DataLakeStoreAccountInformationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DataLakeStoreAccountInformationListResult. +func (dlsailr DataLakeStoreAccountInformationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DataLakeStoreAccountInformationListResultIterator provides access to a complete listing of // DataLakeStoreAccountInformation values. type DataLakeStoreAccountInformationListResultIterator struct { @@ -1563,6 +1605,12 @@ type DataLakeStoreAccountInformationProperties struct { Suffix *string `json:"suffix,omitempty"` } +// MarshalJSON is the custom marshaler for DataLakeStoreAccountInformationProperties. +func (dlsaip DataLakeStoreAccountInformationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FirewallRule data Lake Analytics firewall rule information. type FirewallRule struct { autorest.Response `json:"-"` @@ -1642,6 +1690,12 @@ type FirewallRuleListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for FirewallRuleListResult. +func (frlr FirewallRuleListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FirewallRuleListResultIterator provides access to a complete listing of FirewallRule values. type FirewallRuleListResultIterator struct { i int @@ -1800,6 +1854,12 @@ type FirewallRuleProperties struct { EndIPAddress *string `json:"endIpAddress,omitempty"` } +// MarshalJSON is the custom marshaler for FirewallRuleProperties. +func (frp FirewallRuleProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NameAvailabilityInformation data Lake Analytics account name availability result information. type NameAvailabilityInformation struct { autorest.Response `json:"-"` @@ -1811,6 +1871,12 @@ type NameAvailabilityInformation struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for NameAvailabilityInformation. +func (nai NameAvailabilityInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation an available operation for Data Lake Analytics. type Operation struct { // Name - READ-ONLY; The name of the operation. @@ -1821,6 +1887,12 @@ type Operation struct { Origin OperationOrigin `json:"origin,omitempty"` } +// MarshalJSON is the custom marshaler for Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationDisplay the display information for a particular operation. type OperationDisplay struct { // Provider - READ-ONLY; The resource provider of the operation. @@ -1833,6 +1905,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (od OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult the list of available operations for Data Lake Analytics. type OperationListResult struct { autorest.Response `json:"-"` @@ -1842,6 +1920,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource the resource model definition. type Resource struct { // ID - READ-ONLY; The resource identifer. @@ -1868,6 +1952,12 @@ type SasTokenInformation struct { AccessToken *string `json:"accessToken,omitempty"` } +// MarshalJSON is the custom marshaler for SasTokenInformation. +func (sti SasTokenInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SasTokenInformationListResult the SAS response that contains the storage account, container and // associated SAS token for connection use. type SasTokenInformationListResult struct { @@ -1878,6 +1968,12 @@ type SasTokenInformationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SasTokenInformationListResult. +func (stilr SasTokenInformationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SasTokenInformationListResultIterator provides access to a complete listing of SasTokenInformation // values. type SasTokenInformationListResultIterator struct { @@ -2108,6 +2204,12 @@ type StorageAccountInformationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for StorageAccountInformationListResult. +func (sailr StorageAccountInformationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageAccountInformationListResultIterator provides access to a complete listing of // StorageAccountInformation values. type StorageAccountInformationListResultIterator struct { @@ -2265,6 +2367,12 @@ type StorageAccountInformationProperties struct { Suffix *string `json:"suffix,omitempty"` } +// MarshalJSON is the custom marshaler for StorageAccountInformationProperties. +func (saip StorageAccountInformationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageContainer azure Storage blob container information. type StorageContainer struct { autorest.Response `json:"-"` @@ -2345,6 +2453,12 @@ type StorageContainerListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for StorageContainerListResult. +func (sclr StorageContainerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageContainerListResultIterator provides access to a complete listing of StorageContainer values. type StorageContainerListResultIterator struct { i int @@ -2501,6 +2615,12 @@ type StorageContainerProperties struct { LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"` } +// MarshalJSON is the custom marshaler for StorageContainerProperties. +func (scp StorageContainerProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SubResource the resource model definition for a nested resource. type SubResource struct { // ID - READ-ONLY; The resource identifier. @@ -2511,6 +2631,12 @@ type SubResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for SubResource. +func (sr SubResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpdateComputePolicyParameters the parameters used to update a compute policy. type UpdateComputePolicyParameters struct { // UpdateComputePolicyProperties - The compute policy properties to use when updating a compute policy. diff --git a/services/datalake/store/2016-11-01/filesystem/CHANGELOG.md b/services/datalake/store/2016-11-01/filesystem/CHANGELOG.md index 52911e4cc5e4..fef0b261e5ed 100644 --- a/services/datalake/store/2016-11-01/filesystem/CHANGELOG.md +++ b/services/datalake/store/2016-11-01/filesystem/CHANGELOG.md @@ -1,2 +1,14 @@ # Change History +## Additive Changes + +### New Funcs + +1. AdlsError.MarshalJSON() ([]byte, error) +1. ContentSummary.MarshalJSON() ([]byte, error) +1. ContentSummaryResult.MarshalJSON() ([]byte, error) +1. FileOperationResult.MarshalJSON() ([]byte, error) +1. FileStatusProperties.MarshalJSON() ([]byte, error) +1. FileStatusResult.MarshalJSON() ([]byte, error) +1. FileStatuses.MarshalJSON() ([]byte, error) +1. FileStatusesResult.MarshalJSON() ([]byte, error) diff --git a/services/datalake/store/2016-11-01/filesystem/_meta.json b/services/datalake/store/2016-11-01/filesystem/_meta.json index 4bc04e475adb..e00e5949b104 100644 --- a/services/datalake/store/2016-11-01/filesystem/_meta.json +++ b/services/datalake/store/2016-11-01/filesystem/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/datalake-store/data-plane/readme.md", "tag": "package-2016-11", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datalake-store/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datalake-store/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/datalake/store/2016-11-01/filesystem/models.go b/services/datalake/store/2016-11-01/filesystem/models.go index 34853b7b4471..ec5a53d23802 100644 --- a/services/datalake/store/2016-11-01/filesystem/models.go +++ b/services/datalake/store/2016-11-01/filesystem/models.go @@ -222,6 +222,12 @@ type AdlsError struct { RemoteException BasicAdlsRemoteException `json:"remoteException,omitempty"` } +// MarshalJSON is the custom marshaler for AdlsError. +func (ae AdlsError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UnmarshalJSON is the custom unmarshaler for AdlsError struct. func (ae *AdlsError) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -1075,6 +1081,12 @@ type ContentSummary struct { SpaceConsumed *int64 `json:"spaceConsumed,omitempty"` } +// MarshalJSON is the custom marshaler for ContentSummary. +func (cs ContentSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContentSummaryResult data Lake Store filesystem content summary information response. type ContentSummaryResult struct { autorest.Response `json:"-"` @@ -1082,6 +1094,12 @@ type ContentSummaryResult struct { ContentSummary *ContentSummary `json:"contentSummary,omitempty"` } +// MarshalJSON is the custom marshaler for ContentSummaryResult. +func (csr ContentSummaryResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FileOperationResult the result of the request or operation. type FileOperationResult struct { autorest.Response `json:"-"` @@ -1089,12 +1107,24 @@ type FileOperationResult struct { OperationResult *bool `json:"boolean,omitempty"` } +// MarshalJSON is the custom marshaler for FileOperationResult. +func (forVar FileOperationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FileStatuses data Lake Store file status list information. type FileStatuses struct { // FileStatus - READ-ONLY; the object containing the list of properties of the files. FileStatus *[]FileStatusProperties `json:"fileStatus,omitempty"` } +// MarshalJSON is the custom marshaler for FileStatuses. +func (fs FileStatuses) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FileStatusesResult data Lake Store filesystem file status list information response. type FileStatusesResult struct { autorest.Response `json:"-"` @@ -1102,6 +1132,12 @@ type FileStatusesResult struct { FileStatuses *FileStatuses `json:"fileStatuses,omitempty"` } +// MarshalJSON is the custom marshaler for FileStatusesResult. +func (fsr FileStatusesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FileStatusProperties data Lake Store file or directory information. type FileStatusProperties struct { // AccessTime - READ-ONLY; the last access time as ticks since the epoch. @@ -1128,6 +1164,12 @@ type FileStatusProperties struct { ACLBit *bool `json:"aclBit,omitempty"` } +// MarshalJSON is the custom marshaler for FileStatusProperties. +func (fsp FileStatusProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FileStatusResult data Lake Store filesystem file status information response. type FileStatusResult struct { autorest.Response `json:"-"` @@ -1135,6 +1177,12 @@ type FileStatusResult struct { FileStatus *FileStatusProperties `json:"fileStatus,omitempty"` } +// MarshalJSON is the custom marshaler for FileStatusResult. +func (fsr FileStatusResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReadCloser ... type ReadCloser struct { autorest.Response `json:"-"` diff --git a/services/datalake/store/mgmt/2016-11-01/account/CHANGELOG.md b/services/datalake/store/mgmt/2016-11-01/account/CHANGELOG.md index 52911e4cc5e4..c92f8f1b7531 100644 --- a/services/datalake/store/mgmt/2016-11-01/account/CHANGELOG.md +++ b/services/datalake/store/mgmt/2016-11-01/account/CHANGELOG.md @@ -1,2 +1,22 @@ # Change History +## Additive Changes + +### New Funcs + +1. CapabilityInformation.MarshalJSON() ([]byte, error) +1. DataLakeStoreAccountListResult.MarshalJSON() ([]byte, error) +1. DataLakeStoreAccountProperties.MarshalJSON() ([]byte, error) +1. DataLakeStoreAccountPropertiesBasic.MarshalJSON() ([]byte, error) +1. FirewallRuleListResult.MarshalJSON() ([]byte, error) +1. FirewallRuleProperties.MarshalJSON() ([]byte, error) +1. NameAvailabilityInformation.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. SubResource.MarshalJSON() ([]byte, error) +1. TrustedIDProviderListResult.MarshalJSON() ([]byte, error) +1. TrustedIDProviderProperties.MarshalJSON() ([]byte, error) +1. Usage.MarshalJSON() ([]byte, error) +1. UsageName.MarshalJSON() ([]byte, error) +1. VirtualNetworkRuleListResult.MarshalJSON() ([]byte, error) +1. VirtualNetworkRuleProperties.MarshalJSON() ([]byte, error) diff --git a/services/datalake/store/mgmt/2016-11-01/account/_meta.json b/services/datalake/store/mgmt/2016-11-01/account/_meta.json index 46a41fddd6b2..ed5d21116ea3 100644 --- a/services/datalake/store/mgmt/2016-11-01/account/_meta.json +++ b/services/datalake/store/mgmt/2016-11-01/account/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/datalake-store/resource-manager/readme.md", "tag": "package-2016-11", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datalake-store/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datalake-store/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/datalake/store/mgmt/2016-11-01/account/models.go b/services/datalake/store/mgmt/2016-11-01/account/models.go index c9bf7a763328..f069e6a13fbf 100644 --- a/services/datalake/store/mgmt/2016-11-01/account/models.go +++ b/services/datalake/store/mgmt/2016-11-01/account/models.go @@ -159,6 +159,12 @@ type CapabilityInformation struct { MigrationState *bool `json:"migrationState,omitempty"` } +// MarshalJSON is the custom marshaler for CapabilityInformation. +func (ci CapabilityInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CheckNameAvailabilityParameters data Lake Store account name availability check parameters. type CheckNameAvailabilityParameters struct { // Name - The Data Lake Store name to check availability for. @@ -777,6 +783,12 @@ type DataLakeStoreAccountListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DataLakeStoreAccountListResult. +func (dlsalr DataLakeStoreAccountListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DataLakeStoreAccountListResultIterator provides access to a complete listing of // DataLakeStoreAccountBasic values. type DataLakeStoreAccountListResultIterator struct { @@ -968,6 +980,12 @@ type DataLakeStoreAccountProperties struct { Endpoint *string `json:"endpoint,omitempty"` } +// MarshalJSON is the custom marshaler for DataLakeStoreAccountProperties. +func (dlsap DataLakeStoreAccountProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DataLakeStoreAccountPropertiesBasic the basic account specific properties that are associated with an // underlying Data Lake Store account. type DataLakeStoreAccountPropertiesBasic struct { @@ -985,6 +1003,12 @@ type DataLakeStoreAccountPropertiesBasic struct { Endpoint *string `json:"endpoint,omitempty"` } +// MarshalJSON is the custom marshaler for DataLakeStoreAccountPropertiesBasic. +func (dlsapb DataLakeStoreAccountPropertiesBasic) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EncryptionConfig the encryption configuration for the account. type EncryptionConfig struct { // Type - The type of encryption configuration being used. Currently the only supported types are 'UserManaged' and 'ServiceManaged'. Possible values include: 'UserManaged', 'ServiceManaged' @@ -1091,6 +1115,12 @@ type FirewallRuleListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for FirewallRuleListResult. +func (frlr FirewallRuleListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FirewallRuleListResultIterator provides access to a complete listing of FirewallRule values. type FirewallRuleListResultIterator struct { i int @@ -1249,6 +1279,12 @@ type FirewallRuleProperties struct { EndIPAddress *string `json:"endIpAddress,omitempty"` } +// MarshalJSON is the custom marshaler for FirewallRuleProperties. +func (frp FirewallRuleProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // KeyVaultMetaInfo metadata information used by account encryption. type KeyVaultMetaInfo struct { // KeyVaultResourceID - The resource identifier for the user managed Key Vault being used to encrypt. @@ -1270,6 +1306,12 @@ type NameAvailabilityInformation struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for NameAvailabilityInformation. +func (nai NameAvailabilityInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation an available operation for Data Lake Store. type Operation struct { // Name - READ-ONLY; The name of the operation. @@ -1301,6 +1343,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (od OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult the list of available operations for Data Lake Store. type OperationListResult struct { autorest.Response `json:"-"` @@ -1310,6 +1358,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource the resource model definition. type Resource struct { // ID - READ-ONLY; The resource identifier. @@ -1340,6 +1394,12 @@ type SubResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for SubResource. +func (sr SubResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrustedIDProvider data Lake Store trusted identity provider information. type TrustedIDProvider struct { autorest.Response `json:"-"` @@ -1419,6 +1479,12 @@ type TrustedIDProviderListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for TrustedIDProviderListResult. +func (tiplr TrustedIDProviderListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrustedIDProviderListResultIterator provides access to a complete listing of TrustedIDProvider values. type TrustedIDProviderListResultIterator struct { i int @@ -1575,6 +1641,12 @@ type TrustedIDProviderProperties struct { IDProvider *string `json:"idProvider,omitempty"` } +// MarshalJSON is the custom marshaler for TrustedIDProviderProperties. +func (tipp TrustedIDProviderProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpdateDataLakeStoreAccountParameters data Lake Store account information to update. type UpdateDataLakeStoreAccountParameters struct { // Tags - Resource tags @@ -1977,6 +2049,12 @@ type Usage struct { Name *UsageName `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for Usage. +func (u Usage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageListResult the response from the List Usages operation. type UsageListResult struct { autorest.Response `json:"-"` @@ -1992,6 +2070,12 @@ type UsageName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for UsageName. +func (un UsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkRule data Lake Store virtual network rule information. type VirtualNetworkRule struct { autorest.Response `json:"-"` @@ -2071,6 +2155,12 @@ type VirtualNetworkRuleListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkRuleListResult. +func (vnrlr VirtualNetworkRuleListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkRuleListResultIterator provides access to a complete listing of VirtualNetworkRule values. type VirtualNetworkRuleListResultIterator struct { i int @@ -2226,3 +2316,9 @@ type VirtualNetworkRuleProperties struct { // SubnetID - READ-ONLY; The resource identifier for the subnet. SubnetID *string `json:"subnetId,omitempty"` } + +// MarshalJSON is the custom marshaler for VirtualNetworkRuleProperties. +func (vnrp VirtualNetworkRuleProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/datamigration/mgmt/2018-04-19/datamigration/CHANGELOG.md b/services/datamigration/mgmt/2018-04-19/datamigration/CHANGELOG.md index 52911e4cc5e4..1f317f0ee178 100644 --- a/services/datamigration/mgmt/2018-04-19/datamigration/CHANGELOG.md +++ b/services/datamigration/mgmt/2018-04-19/datamigration/CHANGELOG.md @@ -1,2 +1,42 @@ # Change History +## Additive Changes + +### New Funcs + +1. ConnectToSourceNonSQLTaskOutput.MarshalJSON() ([]byte, error) +1. ConnectToSourcePostgreSQLSyncTaskOutput.MarshalJSON() ([]byte, error) +1. ConnectToTargetAzureDbForMySQLTaskOutput.MarshalJSON() ([]byte, error) +1. ConnectToTargetAzureDbForPostgreSQLSyncTaskOutput.MarshalJSON() ([]byte, error) +1. ConnectToTargetSQLMISyncTaskOutput.MarshalJSON() ([]byte, error) +1. ConnectToTargetSQLMITaskOutput.MarshalJSON() ([]byte, error) +1. DataItemMigrationSummaryResult.MarshalJSON() ([]byte, error) +1. Database.MarshalJSON() ([]byte, error) +1. DatabaseBackupInfo.MarshalJSON() ([]byte, error) +1. DatabaseSummaryResult.MarshalJSON() ([]byte, error) +1. DatabaseTable.MarshalJSON() ([]byte, error) +1. MigrateSyncCompleteCommandOutput.MarshalJSON() ([]byte, error) +1. MigrationEligibilityInfo.MarshalJSON() ([]byte, error) +1. MigrationReportResult.MarshalJSON() ([]byte, error) +1. MigrationTableMetadata.MarshalJSON() ([]byte, error) +1. MigrationValidationDatabaseSummaryResult.MarshalJSON() ([]byte, error) +1. NameAvailabilityResponse.MarshalJSON() ([]byte, error) +1. NonSQLDataMigrationTableResult.MarshalJSON() ([]byte, error) +1. ODataError.MarshalJSON() ([]byte, error) +1. ProjectMetadata.MarshalJSON() ([]byte, error) +1. QueryAnalysisValidationResult.MarshalJSON() ([]byte, error) +1. QueryExecutionResult.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ResourceSku.MarshalJSON() ([]byte, error) +1. ResourceSkuCapabilities.MarshalJSON() ([]byte, error) +1. ResourceSkuCapacity.MarshalJSON() ([]byte, error) +1. ResourceSkuCosts.MarshalJSON() ([]byte, error) +1. ResourceSkuRestrictions.MarshalJSON() ([]byte, error) +1. SchemaComparisonValidationResultType.MarshalJSON() ([]byte, error) +1. ServerProperties.MarshalJSON() ([]byte, error) +1. StartMigrationScenarioServerRoleResult.MarshalJSON() ([]byte, error) +1. SyncMigrationDatabaseErrorEvent.MarshalJSON() ([]byte, error) +1. ValidateMigrationInputSQLServerSQLMISyncTaskOutput.MarshalJSON() ([]byte, error) +1. ValidateSyncMigrationInputSQLServerTaskOutput.MarshalJSON() ([]byte, error) +1. ValidationError.MarshalJSON() ([]byte, error) +1. WaitStatistics.MarshalJSON() ([]byte, error) diff --git a/services/datamigration/mgmt/2018-04-19/datamigration/_meta.json b/services/datamigration/mgmt/2018-04-19/datamigration/_meta.json index d99552165a32..6cb679cec5ad 100644 --- a/services/datamigration/mgmt/2018-04-19/datamigration/_meta.json +++ b/services/datamigration/mgmt/2018-04-19/datamigration/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/datamigration/resource-manager/readme.md", "tag": "package-2018-04-19", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-04-19 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datamigration/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-04-19 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datamigration/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/datamigration/mgmt/2018-04-19/datamigration/models.go b/services/datamigration/mgmt/2018-04-19/datamigration/models.go index cf6ab1c9e1cd..72737099d01b 100644 --- a/services/datamigration/mgmt/2018-04-19/datamigration/models.go +++ b/services/datamigration/mgmt/2018-04-19/datamigration/models.go @@ -555,6 +555,12 @@ type ConnectToSourceNonSQLTaskOutput struct { ValidationErrors *[]ReportableException `json:"validationErrors,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectToSourceNonSQLTaskOutput. +func (ctsnsto ConnectToSourceNonSQLTaskOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectToSourcePostgreSQLSyncTaskInput input for the task that validates connection to PostgreSQL and // source server requirements type ConnectToSourcePostgreSQLSyncTaskInput struct { @@ -577,6 +583,12 @@ type ConnectToSourcePostgreSQLSyncTaskOutput struct { ValidationErrors *[]ReportableException `json:"validationErrors,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectToSourcePostgreSQLSyncTaskOutput. +func (ctspssto ConnectToSourcePostgreSQLSyncTaskOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectToSourcePostgreSQLSyncTaskProperties properties for the task that validates connection to // PostgreSQL server and source server requirements for online migration type ConnectToSourcePostgreSQLSyncTaskProperties struct { @@ -1614,6 +1626,12 @@ type ConnectToTargetAzureDbForMySQLTaskOutput struct { ValidationErrors *[]ReportableException `json:"validationErrors,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectToTargetAzureDbForMySQLTaskOutput. +func (cttadfmsto ConnectToTargetAzureDbForMySQLTaskOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectToTargetAzureDbForMySQLTaskProperties properties for the task that validates connection to Azure // Database for MySQL and target server requirements type ConnectToTargetAzureDbForMySQLTaskProperties struct { @@ -1856,6 +1874,12 @@ type ConnectToTargetAzureDbForPostgreSQLSyncTaskOutput struct { ValidationErrors *[]ReportableException `json:"validationErrors,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectToTargetAzureDbForPostgreSQLSyncTaskOutput. +func (cttadfpssto ConnectToTargetAzureDbForPostgreSQLSyncTaskOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectToTargetAzureDbForPostgreSQLSyncTaskProperties properties for the task that validates connection // to Azure Database For PostgreSQL server and target server requirements for online migration type ConnectToTargetAzureDbForPostgreSQLSyncTaskProperties struct { @@ -2338,6 +2362,12 @@ type ConnectToTargetSQLMISyncTaskOutput struct { ValidationErrors *[]ReportableException `json:"validationErrors,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectToTargetSQLMISyncTaskOutput. +func (cttsmsto ConnectToTargetSQLMISyncTaskOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectToTargetSQLMISyncTaskProperties properties for the task that validates connection to Azure SQL // Database Managed Instance type ConnectToTargetSQLMISyncTaskProperties struct { @@ -2580,6 +2610,12 @@ type ConnectToTargetSQLMITaskOutput struct { ValidationErrors *[]ReportableException `json:"validationErrors,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectToTargetSQLMITaskOutput. +func (cttsmto ConnectToTargetSQLMITaskOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectToTargetSQLMITaskProperties properties for the task that validates connection to Azure SQL // Database Managed Instance type ConnectToTargetSQLMITaskProperties struct { @@ -3063,6 +3099,12 @@ type Database struct { ServerID *string `json:"serverId,omitempty"` } +// MarshalJSON is the custom marshaler for Database. +func (d Database) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseBackupInfo information about backup files when existing backup mode is used. type DatabaseBackupInfo struct { // DatabaseName - READ-ONLY; Database name. @@ -3083,6 +3125,12 @@ type DatabaseBackupInfo struct { BackupFinishDate *date.Time `json:"backupFinishDate,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseBackupInfo. +func (dbi DatabaseBackupInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseFileInfo database file specific information type DatabaseFileInfo struct { // DatabaseName - Name of the database @@ -3166,6 +3214,12 @@ type DatabaseSummaryResult struct { ResultPrefix *string `json:"resultPrefix,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseSummaryResult. +func (dsr DatabaseSummaryResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseTable table properties type DatabaseTable struct { // HasRows - READ-ONLY; Indicates whether table is empty or not @@ -3174,6 +3228,12 @@ type DatabaseTable struct { Name *string `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseTable. +func (dt DatabaseTable) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DataIntegrityValidationResult results for checksum based Data Integrity validation results type DataIntegrityValidationResult struct { // FailedObjects - READ-ONLY; List of failed table names of source and target pair @@ -3210,6 +3270,12 @@ type DataItemMigrationSummaryResult struct { ResultPrefix *string `json:"resultPrefix,omitempty"` } +// MarshalJSON is the custom marshaler for DataItemMigrationSummaryResult. +func (dimsr DataItemMigrationSummaryResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Error migration Task errors type Error struct { // Message - READ-ONLY; Error description @@ -8358,6 +8424,12 @@ type MigrateSyncCompleteCommandOutput struct { Errors *[]ReportableException `json:"errors,omitempty"` } +// MarshalJSON is the custom marshaler for MigrateSyncCompleteCommandOutput. +func (mscco MigrateSyncCompleteCommandOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MigrateSyncCompleteCommandProperties properties for the command that completes sync migration for a // database. type MigrateSyncCompleteCommandProperties struct { @@ -8414,6 +8486,12 @@ type MigrationEligibilityInfo struct { ValidationMessages *[]string `json:"validationMessages,omitempty"` } +// MarshalJSON is the custom marshaler for MigrationEligibilityInfo. +func (mei MigrationEligibilityInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MigrationReportResult migration validation report result, contains the url for downloading the generated // report. type MigrationReportResult struct { @@ -8423,6 +8501,12 @@ type MigrationReportResult struct { ReportURL *string `json:"reportUrl,omitempty"` } +// MarshalJSON is the custom marshaler for MigrationReportResult. +func (mrr MigrationReportResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MigrationTableMetadata metadata for tables selected in migration project type MigrationTableMetadata struct { // SourceTableName - READ-ONLY; Source table name @@ -8431,6 +8515,12 @@ type MigrationTableMetadata struct { TargetTableName *string `json:"targetTableName,omitempty"` } +// MarshalJSON is the custom marshaler for MigrationTableMetadata. +func (mtm MigrationTableMetadata) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MigrationValidationDatabaseSummaryResult migration Validation Database level summary result type MigrationValidationDatabaseSummaryResult struct { // ID - READ-ONLY; Result identifier @@ -8449,6 +8539,12 @@ type MigrationValidationDatabaseSummaryResult struct { Status ValidationStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for MigrationValidationDatabaseSummaryResult. +func (mvdsr MigrationValidationDatabaseSummaryResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MigrationValidationOptions types of validations to run after the migration type MigrationValidationOptions struct { // EnableSchemaValidation - Allows to compare the schema information between source and target. @@ -8605,6 +8701,12 @@ type NameAvailabilityResponse struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for NameAvailabilityResponse. +func (nar NameAvailabilityResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NonSQLDataMigrationTable defines metadata for table to be migrated type NonSQLDataMigrationTable struct { // SourceName - Source table name @@ -8629,6 +8731,12 @@ type NonSQLDataMigrationTableResult struct { Errors *[]Error `json:"errors,omitempty"` } +// MarshalJSON is the custom marshaler for NonSQLDataMigrationTableResult. +func (nsdmtr NonSQLDataMigrationTableResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NonSQLMigrationTaskInput base class for non sql migration task input type NonSQLMigrationTaskInput struct { // TargetConnectionInfo - Information for connecting to target @@ -8679,6 +8787,12 @@ type ODataError struct { Details *[]ODataError `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ODataError. +func (ode ODataError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OrphanedUserInfo information of orphaned users on the SQL server database. type OrphanedUserInfo struct { // Name - Name of the orphaned user @@ -9038,6 +9152,12 @@ type ProjectMetadata struct { SelectedMigrationTables *[]MigrationTableMetadata `json:"selectedMigrationTables,omitempty"` } +// MarshalJSON is the custom marshaler for ProjectMetadata. +func (pm ProjectMetadata) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProjectProperties project-specific properties type ProjectProperties struct { // SourcePlatform - Source platform for the project. Possible values include: 'ProjectSourcePlatformSQL', 'ProjectSourcePlatformUnknown' @@ -9583,6 +9703,12 @@ type QueryAnalysisValidationResult struct { ValidationErrors *ValidationError `json:"validationErrors,omitempty"` } +// MarshalJSON is the custom marshaler for QueryAnalysisValidationResult. +func (qavr QueryAnalysisValidationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QueryExecutionResult describes query analysis results for execution in source and target type QueryExecutionResult struct { // QueryText - READ-ONLY; Query text retrieved from the source server @@ -9595,6 +9721,12 @@ type QueryExecutionResult struct { TargetResult *ExecutionStatistics `json:"targetResult,omitempty"` } +// MarshalJSON is the custom marshaler for QueryExecutionResult. +func (qer QueryExecutionResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Quota describes a quota for or usage details about a resource type Quota struct { // CurrentValue - The current value of the quota. If null or missing, the current value cannot be determined in the context of the request. @@ -9811,6 +9943,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSku describes an available DMS SKU. type ResourceSku struct { // ResourceType - READ-ONLY; The type of resource the SKU applies to. @@ -9839,6 +9977,12 @@ type ResourceSku struct { Restrictions *[]ResourceSkuRestrictions `json:"restrictions,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSku. +func (rs ResourceSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCapabilities describes The SKU capabilities object. type ResourceSkuCapabilities struct { // Name - READ-ONLY; An invariant to describe the feature. @@ -9847,6 +9991,12 @@ type ResourceSkuCapabilities struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapabilities. +func (rsc ResourceSkuCapabilities) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCapacity describes scaling information of a SKU. type ResourceSkuCapacity struct { // Minimum - READ-ONLY; The minimum capacity. @@ -9859,6 +10009,12 @@ type ResourceSkuCapacity struct { ScaleType ResourceSkuCapacityScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapacity. +func (rsc ResourceSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCosts describes metadata for retrieving price info. type ResourceSkuCosts struct { // MeterID - READ-ONLY; Used for querying price from commerce. @@ -9869,6 +10025,12 @@ type ResourceSkuCosts struct { ExtendedUnit *string `json:"extendedUnit,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCosts. +func (rsc ResourceSkuCosts) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuRestrictions describes scaling information of a SKU. type ResourceSkuRestrictions struct { // Type - READ-ONLY; The type of restrictions. Possible values include: 'Location' @@ -9879,6 +10041,12 @@ type ResourceSkuRestrictions struct { ReasonCode ResourceSkuRestrictionsReasonCode `json:"reasonCode,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuRestrictions. +func (rsr ResourceSkuRestrictions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkusResult the DMS List SKUs operation response. type ResourceSkusResult struct { autorest.Response `json:"-"` @@ -10073,6 +10241,12 @@ type SchemaComparisonValidationResultType struct { UpdateAction UpdateActionType `json:"updateAction,omitempty"` } +// MarshalJSON is the custom marshaler for SchemaComparisonValidationResultType. +func (scvrt SchemaComparisonValidationResultType) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SelectedCertificateInput info for certificate to be exported for TDE enabled databases. type SelectedCertificateInput struct { // CertificateName - Name of certificate to be exported. @@ -10097,6 +10271,12 @@ type ServerProperties struct { ServerDatabaseCount *int32 `json:"serverDatabaseCount,omitempty"` } +// MarshalJSON is the custom marshaler for ServerProperties. +func (sp ServerProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Service a Database Migration Service resource type Service struct { autorest.Response `json:"-"` @@ -11103,6 +11283,12 @@ type StartMigrationScenarioServerRoleResult struct { ExceptionsAndWarnings *[]ReportableException `json:"exceptionsAndWarnings,omitempty"` } +// MarshalJSON is the custom marshaler for StartMigrationScenarioServerRoleResult. +func (smssrr StartMigrationScenarioServerRoleResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncMigrationDatabaseErrorEvent database migration errors for online migration type SyncMigrationDatabaseErrorEvent struct { // TimestampString - READ-ONLY; String value of timestamp. @@ -11113,6 +11299,12 @@ type SyncMigrationDatabaseErrorEvent struct { EventText *string `json:"eventText,omitempty"` } +// MarshalJSON is the custom marshaler for SyncMigrationDatabaseErrorEvent. +func (smdee SyncMigrationDatabaseErrorEvent) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TaskList oData page of tasks type TaskList struct { autorest.Response `json:"-"` @@ -11544,6 +11736,12 @@ type ValidateMigrationInputSQLServerSQLMISyncTaskOutput struct { ValidationErrors *[]ReportableException `json:"validationErrors,omitempty"` } +// MarshalJSON is the custom marshaler for ValidateMigrationInputSQLServerSQLMISyncTaskOutput. +func (vmisssmsto ValidateMigrationInputSQLServerSQLMISyncTaskOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ValidateMigrationInputSQLServerSQLMISyncTaskProperties properties for task that validates migration // input for SQL to Azure SQL Database Managed Instance sync scenario type ValidateMigrationInputSQLServerSQLMISyncTaskProperties struct { @@ -12051,6 +12249,12 @@ type ValidateSyncMigrationInputSQLServerTaskOutput struct { ValidationErrors *[]ReportableException `json:"validationErrors,omitempty"` } +// MarshalJSON is the custom marshaler for ValidateSyncMigrationInputSQLServerTaskOutput. +func (vsmissto ValidateSyncMigrationInputSQLServerTaskOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ValidationError description about the errors happen while performing migration validation type ValidationError struct { // Text - READ-ONLY; Error Text @@ -12059,6 +12263,12 @@ type ValidationError struct { Severity Severity `json:"severity,omitempty"` } +// MarshalJSON is the custom marshaler for ValidationError. +func (ve ValidationError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WaitStatistics wait statistics gathered during query batch execution type WaitStatistics struct { // WaitType - READ-ONLY; Type of the Wait @@ -12068,3 +12278,9 @@ type WaitStatistics struct { // WaitCount - READ-ONLY; Total no. of waits WaitCount *int64 `json:"waitCount,omitempty"` } + +// MarshalJSON is the custom marshaler for WaitStatistics. +func (ws WaitStatistics) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/dataprotection/mgmt/2021-01-01/dataprotection/CHANGELOG.md b/services/dataprotection/mgmt/2021-01-01/dataprotection/CHANGELOG.md index 52911e4cc5e4..1c3c7799f74b 100644 --- a/services/dataprotection/mgmt/2021-01-01/dataprotection/CHANGELOG.md +++ b/services/dataprotection/mgmt/2021-01-01/dataprotection/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. Error.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ExportJobsResult.MarshalJSON() ([]byte, error) diff --git a/services/dataprotection/mgmt/2021-01-01/dataprotection/_meta.json b/services/dataprotection/mgmt/2021-01-01/dataprotection/_meta.json index cb95720aedbc..1dd92932f89d 100644 --- a/services/dataprotection/mgmt/2021-01-01/dataprotection/_meta.json +++ b/services/dataprotection/mgmt/2021-01-01/dataprotection/_meta.json @@ -2,9 +2,9 @@ "commit": "225e4a77704766b9b6529c40c2677b22b58da9b9", "readme": "/_/azure-rest-api-specs/specification/dataprotection/resource-manager/readme.md", "tag": "package-2021-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2021-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/dataprotection/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2021-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/dataprotection/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/dataprotection/mgmt/2021-01-01/dataprotection/models.go b/services/dataprotection/mgmt/2021-01-01/dataprotection/models.go index f61ba6a6053a..d032eb381780 100644 --- a/services/dataprotection/mgmt/2021-01-01/dataprotection/models.go +++ b/services/dataprotection/mgmt/2021-01-01/dataprotection/models.go @@ -3928,6 +3928,12 @@ type Error struct { Target *string `json:"target,omitempty"` } +// MarshalJSON is the custom marshaler for Error. +func (e Error) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorAdditionalInfo the resource management error additional info. type ErrorAdditionalInfo struct { // Info - READ-ONLY; The additional info. @@ -3936,6 +3942,12 @@ type ErrorAdditionalInfo struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExportJobsResult the result for export jobs containing blob details. type ExportJobsResult struct { autorest.Response `json:"-"` @@ -3949,6 +3961,12 @@ type ExportJobsResult struct { ExcelFileBlobSasKey *string `json:"excelFileBlobSasKey,omitempty"` } +// MarshalJSON is the custom marshaler for ExportJobsResult. +func (ejr ExportJobsResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExportJobsTriggerFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ExportJobsTriggerFuture struct { diff --git a/services/datashare/mgmt/2019-11-01/datashare/CHANGELOG.md b/services/datashare/mgmt/2019-11-01/datashare/CHANGELOG.md index 52911e4cc5e4..00993a7a48d6 100644 --- a/services/datashare/mgmt/2019-11-01/datashare/CHANGELOG.md +++ b/services/datashare/mgmt/2019-11-01/datashare/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountProperties.MarshalJSON() ([]byte, error) +1. ConsumerSourceDataSetProperties.MarshalJSON() ([]byte, error) +1. ProviderShareSubscriptionProperties.MarshalJSON() ([]byte, error) +1. ProxyDto.MarshalJSON() ([]byte, error) +1. SynchronizationDetails.MarshalJSON() ([]byte, error) diff --git a/services/datashare/mgmt/2019-11-01/datashare/_meta.json b/services/datashare/mgmt/2019-11-01/datashare/_meta.json index 466757d14f2c..e6426e660fac 100644 --- a/services/datashare/mgmt/2019-11-01/datashare/_meta.json +++ b/services/datashare/mgmt/2019-11-01/datashare/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/datashare/resource-manager/readme.md", "tag": "package-2019-11-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-11-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datashare/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-11-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datashare/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/datashare/mgmt/2019-11-01/datashare/models.go b/services/datashare/mgmt/2019-11-01/datashare/models.go index e456abe3c3bf..75e2d6924043 100644 --- a/services/datashare/mgmt/2019-11-01/datashare/models.go +++ b/services/datashare/mgmt/2019-11-01/datashare/models.go @@ -306,6 +306,12 @@ type AccountProperties struct { UserName *string `json:"userName,omitempty"` } +// MarshalJSON is the custom marshaler for AccountProperties. +func (ap AccountProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountsCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type AccountsCreateFuture struct { @@ -3608,6 +3614,12 @@ type ConsumerSourceDataSetProperties struct { DataSetType DataSetType `json:"dataSetType,omitempty"` } +// MarshalJSON is the custom marshaler for ConsumerSourceDataSetProperties. +func (csdsp ConsumerSourceDataSetProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicDataSet a DataSet data transfer object. type BasicDataSet interface { AsADLSGen1FileDataSet() (*ADLSGen1FileDataSet, bool) @@ -6037,6 +6049,12 @@ type ProviderShareSubscriptionProperties struct { ShareSubscriptionStatus ShareSubscriptionStatus `json:"shareSubscriptionStatus,omitempty"` } +// MarshalJSON is the custom marshaler for ProviderShareSubscriptionProperties. +func (pssp ProviderShareSubscriptionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProviderShareSubscriptionsRevokeFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type ProviderShareSubscriptionsRevokeFuture struct { @@ -6090,6 +6108,12 @@ type ProxyDto struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyDto. +func (pd ProxyDto) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ScheduledSourceShareSynchronizationSettingProperties a Scheduled source synchronization setting data // transfer object. type ScheduledSourceShareSynchronizationSettingProperties struct { @@ -8598,6 +8622,12 @@ type SynchronizationDetails struct { VCore *int64 `json:"vCore,omitempty"` } +// MarshalJSON is the custom marshaler for SynchronizationDetails. +func (sd SynchronizationDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SynchronizationDetailsList details of synchronization type SynchronizationDetailsList struct { autorest.Response `json:"-"` diff --git a/services/delegatednetwork/mgmt/2021-03-15/delegatednetwork/CHANGELOG.md b/services/delegatednetwork/mgmt/2021-03-15/delegatednetwork/CHANGELOG.md index 52911e4cc5e4..df0093654204 100644 --- a/services/delegatednetwork/mgmt/2021-03-15/delegatednetwork/CHANGELOG.md +++ b/services/delegatednetwork/mgmt/2021-03-15/delegatednetwork/CHANGELOG.md @@ -1,2 +1,61 @@ # Change History +## Breaking Changes + +### Removed Constants + +1. ActionType.Internal +1. ControllerState.Deleting +1. ControllerState.Failed +1. ControllerState.Provisioning +1. ControllerState.Succeeded +1. Origin.System +1. Origin.User +1. Origin.Usersystem +1. ResourceIdentityType.None +1. ResourceIdentityType.SystemAssigned + +### Removed Funcs + +1. *DelegatedController.UnmarshalJSON([]byte) error +1. *DelegatedSubnet.UnmarshalJSON([]byte) error +1. *Orchestrator.UnmarshalJSON([]byte) error + +### Struct Changes + +#### Removed Struct Fields + +1. DelegatedController.*DelegatedControllerProperties +1. DelegatedSubnet.*DelegatedSubnetProperties +1. Orchestrator.*OrchestratorResourceProperties + +## Additive Changes + +### New Constants + +1. ActionType.ActionTypeInternal +1. ControllerState.ControllerStateDeleting +1. ControllerState.ControllerStateFailed +1. ControllerState.ControllerStateProvisioning +1. ControllerState.ControllerStateSucceeded +1. Origin.OriginSystem +1. Origin.OriginUser +1. Origin.OriginUsersystem +1. ResourceIdentityType.ResourceIdentityTypeNone +1. ResourceIdentityType.ResourceIdentityTypeSystemAssigned + +### New Funcs + +1. DelegatedControllerProperties.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorDetail.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) + +### Struct Changes + +#### New Struct Fields + +1. DelegatedController.Properties +1. DelegatedSubnet.Properties +1. Orchestrator.Properties diff --git a/services/delegatednetwork/mgmt/2021-03-15/delegatednetwork/_meta.json b/services/delegatednetwork/mgmt/2021-03-15/delegatednetwork/_meta.json index 839a2edc4247..b3d1ee294226 100644 --- a/services/delegatednetwork/mgmt/2021-03-15/delegatednetwork/_meta.json +++ b/services/delegatednetwork/mgmt/2021-03-15/delegatednetwork/_meta.json @@ -1,11 +1,11 @@ { - "commit": "0f0e41fa4e3679510fcf03ecd60084f1cdbd5805", + "commit": "394395ed0bdc1c5c05cb37a031379ca03bfebbb5", "readme": "/_/azure-rest-api-specs/specification/dnc/resource-manager/readme.md", "tag": "package-2021-03-15", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2021-03-15 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/dnc/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2021-03-15 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/dnc/resource-manager/readme.md", "additional_properties": { - "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" + "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix" } } \ No newline at end of file diff --git a/services/delegatednetwork/mgmt/2021-03-15/delegatednetwork/controller.go b/services/delegatednetwork/mgmt/2021-03-15/delegatednetwork/controller.go index e83dc0c91206..64ec99f56df5 100644 --- a/services/delegatednetwork/mgmt/2021-03-15/delegatednetwork/controller.go +++ b/services/delegatednetwork/mgmt/2021-03-15/delegatednetwork/controller.go @@ -89,7 +89,7 @@ func (client ControllerClient) CreatePreparer(ctx context.Context, resourceGroup "api-version": APIVersion, } - parameters.DelegatedControllerProperties = nil + parameters.Properties = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/services/delegatednetwork/mgmt/2021-03-15/delegatednetwork/delegatedsubnetservice.go b/services/delegatednetwork/mgmt/2021-03-15/delegatednetwork/delegatedsubnetservice.go index 0dff12fc468a..9fb5baca3309 100644 --- a/services/delegatednetwork/mgmt/2021-03-15/delegatednetwork/delegatedsubnetservice.go +++ b/services/delegatednetwork/mgmt/2021-03-15/delegatednetwork/delegatedsubnetservice.go @@ -615,7 +615,6 @@ func (client DelegatedSubnetServiceClient) PutDetailsPreparer(ctx context.Contex "api-version": APIVersion, } - parameters.DelegatedSubnetProperties = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/services/delegatednetwork/mgmt/2021-03-15/delegatednetwork/enums.go b/services/delegatednetwork/mgmt/2021-03-15/delegatednetwork/enums.go index 9c6e35a4c96f..0c6837909388 100644 --- a/services/delegatednetwork/mgmt/2021-03-15/delegatednetwork/enums.go +++ b/services/delegatednetwork/mgmt/2021-03-15/delegatednetwork/enums.go @@ -10,32 +10,32 @@ package delegatednetwork type ActionType string const ( - // Internal ... - Internal ActionType = "Internal" + // ActionTypeInternal ... + ActionTypeInternal ActionType = "Internal" ) // PossibleActionTypeValues returns an array of possible values for the ActionType const type. func PossibleActionTypeValues() []ActionType { - return []ActionType{Internal} + return []ActionType{ActionTypeInternal} } // ControllerState enumerates the values for controller state. type ControllerState string const ( - // Deleting ... - Deleting ControllerState = "Deleting" - // Failed ... - Failed ControllerState = "Failed" - // Provisioning ... - Provisioning ControllerState = "Provisioning" - // Succeeded ... - Succeeded ControllerState = "Succeeded" + // ControllerStateDeleting ... + ControllerStateDeleting ControllerState = "Deleting" + // ControllerStateFailed ... + ControllerStateFailed ControllerState = "Failed" + // ControllerStateProvisioning ... + ControllerStateProvisioning ControllerState = "Provisioning" + // ControllerStateSucceeded ... + ControllerStateSucceeded ControllerState = "Succeeded" ) // PossibleControllerStateValues returns an array of possible values for the ControllerState const type. func PossibleControllerStateValues() []ControllerState { - return []ControllerState{Deleting, Failed, Provisioning, Succeeded} + return []ControllerState{ControllerStateDeleting, ControllerStateFailed, ControllerStateProvisioning, ControllerStateSucceeded} } // DelegatedSubnetState enumerates the values for delegated subnet state. @@ -80,30 +80,30 @@ func PossibleOrchestratorInstanceStateValues() []OrchestratorInstanceState { type Origin string const ( - // System ... - System Origin = "system" - // User ... - User Origin = "user" - // Usersystem ... - Usersystem Origin = "user,system" + // OriginSystem ... + OriginSystem Origin = "system" + // OriginUser ... + OriginUser Origin = "user" + // OriginUsersystem ... + OriginUsersystem Origin = "user,system" ) // PossibleOriginValues returns an array of possible values for the Origin const type. func PossibleOriginValues() []Origin { - return []Origin{System, User, Usersystem} + return []Origin{OriginSystem, OriginUser, OriginUsersystem} } // ResourceIdentityType enumerates the values for resource identity type. type ResourceIdentityType string const ( - // None ... - None ResourceIdentityType = "None" - // SystemAssigned ... - SystemAssigned ResourceIdentityType = "SystemAssigned" + // ResourceIdentityTypeNone ... + ResourceIdentityTypeNone ResourceIdentityType = "None" + // ResourceIdentityTypeSystemAssigned ... + ResourceIdentityTypeSystemAssigned ResourceIdentityType = "SystemAssigned" ) // PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type. func PossibleResourceIdentityTypeValues() []ResourceIdentityType { - return []ResourceIdentityType{None, SystemAssigned} + return []ResourceIdentityType{ResourceIdentityTypeNone, ResourceIdentityTypeSystemAssigned} } diff --git a/services/delegatednetwork/mgmt/2021-03-15/delegatednetwork/models.go b/services/delegatednetwork/mgmt/2021-03-15/delegatednetwork/models.go index 1d39f9cdc5e0..73345eb45088 100644 --- a/services/delegatednetwork/mgmt/2021-03-15/delegatednetwork/models.go +++ b/services/delegatednetwork/mgmt/2021-03-15/delegatednetwork/models.go @@ -149,8 +149,8 @@ func (crup ControllerResourceUpdateParameters) MarshalJSON() ([]byte, error) { // DelegatedController represents an instance of a DNC controller. type DelegatedController struct { autorest.Response `json:"-"` - // DelegatedControllerProperties - READ-ONLY; Properties of the provision operation request. - *DelegatedControllerProperties `json:"properties,omitempty"` + // Properties - READ-ONLY; Properties of the provision operation request. + Properties *DelegatedControllerProperties `json:"properties,omitempty"` // ID - READ-ONLY; An identifier that represents the resource. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource. @@ -175,80 +175,11 @@ func (dc DelegatedController) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// UnmarshalJSON is the custom unmarshaler for DelegatedController struct. -func (dc *DelegatedController) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var delegatedControllerProperties DelegatedControllerProperties - err = json.Unmarshal(*v, &delegatedControllerProperties) - if err != nil { - return err - } - dc.DelegatedControllerProperties = &delegatedControllerProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - dc.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - dc.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dc.Type = &typeVar - } - case "location": - if v != nil { - var location string - err = json.Unmarshal(*v, &location) - if err != nil { - return err - } - dc.Location = &location - } - case "tags": - if v != nil { - var tags map[string]*string - err = json.Unmarshal(*v, &tags) - if err != nil { - return err - } - dc.Tags = tags - } - } - } - - return nil -} - // DelegatedControllerProperties properties of Delegated controller resource. type DelegatedControllerProperties struct { // ResourceGUID - READ-ONLY; Resource guid. ResourceGUID *string `json:"resourceGuid,omitempty"` - // ProvisioningState - READ-ONLY; The current state of dnc controller resource. Possible values include: 'Deleting', 'Succeeded', 'Failed', 'Provisioning' + // ProvisioningState - READ-ONLY; The current state of dnc controller resource. Possible values include: 'ControllerStateDeleting', 'ControllerStateSucceeded', 'ControllerStateFailed', 'ControllerStateProvisioning' ProvisioningState ControllerState `json:"provisioningState,omitempty"` // DncAppID - READ-ONLY; dnc application id should be used by customer to authenticate with dnc gateway. DncAppID *string `json:"dncAppId,omitempty"` @@ -258,6 +189,12 @@ type DelegatedControllerProperties struct { DncEndpoint *string `json:"dncEndpoint,omitempty"` } +// MarshalJSON is the custom marshaler for DelegatedControllerProperties. +func (dcp DelegatedControllerProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DelegatedControllers an array of Delegated controller resources. type DelegatedControllers struct { autorest.Response `json:"-"` @@ -429,8 +366,8 @@ func NewDelegatedControllersPage(cur DelegatedControllers, getNextPage func(cont // DelegatedSubnet represents an instance of a orchestrator. type DelegatedSubnet struct { autorest.Response `json:"-"` - // DelegatedSubnetProperties - READ-ONLY; Properties of the provision operation request. - *DelegatedSubnetProperties `json:"properties,omitempty"` + // Properties - Properties of the provision operation request. + Properties *DelegatedSubnetProperties `json:"properties,omitempty"` // ID - READ-ONLY; An identifier that represents the resource. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource. @@ -446,6 +383,9 @@ type DelegatedSubnet struct { // MarshalJSON is the custom marshaler for DelegatedSubnet. func (ds DelegatedSubnet) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) + if ds.Properties != nil { + objectMap["properties"] = ds.Properties + } if ds.Location != nil { objectMap["location"] = ds.Location } @@ -455,75 +395,6 @@ func (ds DelegatedSubnet) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// UnmarshalJSON is the custom unmarshaler for DelegatedSubnet struct. -func (ds *DelegatedSubnet) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var delegatedSubnetProperties DelegatedSubnetProperties - err = json.Unmarshal(*v, &delegatedSubnetProperties) - if err != nil { - return err - } - ds.DelegatedSubnetProperties = &delegatedSubnetProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - ds.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - ds.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ds.Type = &typeVar - } - case "location": - if v != nil { - var location string - err = json.Unmarshal(*v, &location) - if err != nil { - return err - } - ds.Location = &location - } - case "tags": - if v != nil { - var tags map[string]*string - err = json.Unmarshal(*v, &tags) - if err != nil { - return err - } - ds.Tags = tags - } - } - } - - return nil -} - // DelegatedSubnetProperties properties of delegated subnet type DelegatedSubnetProperties struct { // ResourceGUID - READ-ONLY; Resource guid. @@ -873,6 +744,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetail the error detail. type ErrorDetail struct { // Code - READ-ONLY; The error code. @@ -887,6 +764,12 @@ type ErrorDetail struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetail. +func (ed ErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.). type ErrorResponse struct { @@ -902,9 +785,9 @@ type Operation struct { IsDataAction *bool `json:"isDataAction,omitempty"` // Display - Localized display information for this particular operation. Display *OperationDisplay `json:"display,omitempty"` - // Origin - READ-ONLY; The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system". Possible values include: 'User', 'System', 'Usersystem' + // Origin - READ-ONLY; The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system". Possible values include: 'OriginUser', 'OriginSystem', 'OriginUsersystem' Origin Origin `json:"origin,omitempty"` - // ActionType - READ-ONLY; Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. Possible values include: 'Internal' + // ActionType - READ-ONLY; Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. Possible values include: 'ActionTypeInternal' ActionType ActionType `json:"actionType,omitempty"` } @@ -929,6 +812,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult a list of REST API operations supported by an Azure Resource Provider. It contains // an URL link to get the next set of results. type OperationListResult struct { @@ -939,6 +828,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -1092,8 +987,8 @@ func NewOperationListResultPage(cur OperationListResult, getNextPage func(contex // Orchestrator represents an instance of a orchestrator. type Orchestrator struct { autorest.Response `json:"-"` - // OrchestratorResourceProperties - Properties of the provision operation request. - *OrchestratorResourceProperties `json:"properties,omitempty"` + // Properties - Properties of the provision operation request. + Properties *OrchestratorResourceProperties `json:"properties,omitempty"` // ID - READ-ONLY; An identifier that represents the resource. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource. @@ -1113,8 +1008,8 @@ type Orchestrator struct { // MarshalJSON is the custom marshaler for Orchestrator. func (o Orchestrator) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if o.OrchestratorResourceProperties != nil { - objectMap["properties"] = o.OrchestratorResourceProperties + if o.Properties != nil { + objectMap["properties"] = o.Properties } if o.Location != nil { objectMap["location"] = o.Location @@ -1131,100 +1026,13 @@ func (o Orchestrator) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// UnmarshalJSON is the custom unmarshaler for Orchestrator struct. -func (o *Orchestrator) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var orchestratorResourceProperties OrchestratorResourceProperties - err = json.Unmarshal(*v, &orchestratorResourceProperties) - if err != nil { - return err - } - o.OrchestratorResourceProperties = &orchestratorResourceProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - o.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - o.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - o.Type = &typeVar - } - case "location": - if v != nil { - var location string - err = json.Unmarshal(*v, &location) - if err != nil { - return err - } - o.Location = &location - } - case "kind": - if v != nil { - var kind string - err = json.Unmarshal(*v, &kind) - if err != nil { - return err - } - o.Kind = &kind - } - case "identity": - if v != nil { - var identity OrchestratorIdentity - err = json.Unmarshal(*v, &identity) - if err != nil { - return err - } - o.Identity = &identity - } - case "tags": - if v != nil { - var tags map[string]*string - err = json.Unmarshal(*v, &tags) - if err != nil { - return err - } - o.Tags = tags - } - } - } - - return nil -} - // OrchestratorIdentity ... type OrchestratorIdentity struct { // PrincipalID - READ-ONLY; The principal id of the system assigned identity which is used by orchestrator. PrincipalID *string `json:"principalId,omitempty"` // TenantID - READ-ONLY; The tenant id of the system assigned identity which is used by orchestrator. TenantID *string `json:"tenantId,omitempty"` - // Type - The type of identity used for orchestrator cluster. Type 'SystemAssigned' will use an implicitly created identity orchestrator clusters. Possible values include: 'SystemAssigned', 'None' + // Type - The type of identity used for orchestrator cluster. Type 'SystemAssigned' will use an implicitly created identity orchestrator clusters. Possible values include: 'ResourceIdentityTypeSystemAssigned', 'ResourceIdentityTypeNone' Type ResourceIdentityType `json:"type,omitempty"` } diff --git a/services/delegatednetwork/mgmt/2021-03-15/delegatednetwork/orchestratorinstanceservice.go b/services/delegatednetwork/mgmt/2021-03-15/delegatednetwork/orchestratorinstanceservice.go index 09baa3b56a95..f47fcd9d695c 100644 --- a/services/delegatednetwork/mgmt/2021-03-15/delegatednetwork/orchestratorinstanceservice.go +++ b/services/delegatednetwork/mgmt/2021-03-15/delegatednetwork/orchestratorinstanceservice.go @@ -60,8 +60,8 @@ func (client OrchestratorInstanceServiceClient) Create(ctx context.Context, reso {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.OrchestratorResourceProperties", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.OrchestratorResourceProperties.ControllerDetails", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { + Constraints: []validation.Constraint{{Target: "parameters.Properties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.ControllerDetails", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { return result, validation.NewError("delegatednetwork.OrchestratorInstanceServiceClient", "Create", err.Error()) } diff --git a/services/devspaces/mgmt/2019-04-01/devspaces/CHANGELOG.md b/services/devspaces/mgmt/2019-04-01/devspaces/CHANGELOG.md index 52911e4cc5e4..b40c7a3255b1 100644 --- a/services/devspaces/mgmt/2019-04-01/devspaces/CHANGELOG.md +++ b/services/devspaces/mgmt/2019-04-01/devspaces/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/devspaces/mgmt/2019-04-01/devspaces/_meta.json b/services/devspaces/mgmt/2019-04-01/devspaces/_meta.json index d9c397da8b9e..b89989ff6839 100644 --- a/services/devspaces/mgmt/2019-04-01/devspaces/_meta.json +++ b/services/devspaces/mgmt/2019-04-01/devspaces/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/devspaces/resource-manager/readme.md", "tag": "package-2019-04-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-04-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/devspaces/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-04-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/devspaces/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/devspaces/mgmt/2019-04-01/devspaces/models.go b/services/devspaces/mgmt/2019-04-01/devspaces/models.go index 39aee57ca84d..ef79543ba86e 100644 --- a/services/devspaces/mgmt/2019-04-01/devspaces/models.go +++ b/services/devspaces/mgmt/2019-04-01/devspaces/models.go @@ -530,6 +530,12 @@ type ErrorDetails struct { Target *string `json:"target,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse error response indicates that the service is not able to process the incoming request. The // reason is provided in the error message. type ErrorResponse struct { @@ -666,6 +672,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceProviderOperationDefinition ... type ResourceProviderOperationDefinition struct { // Name - Resource provider operation name. diff --git a/services/devtestlabs/mgmt/2016-05-15/dtl/CHANGELOG.md b/services/devtestlabs/mgmt/2016-05-15/dtl/CHANGELOG.md index 52911e4cc5e4..7cb5fae3bc53 100644 --- a/services/devtestlabs/mgmt/2016-05-15/dtl/CHANGELOG.md +++ b/services/devtestlabs/mgmt/2016-05-15/dtl/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. ArmTemplateProperties.MarshalJSON() ([]byte, error) +1. ArtifactProperties.MarshalJSON() ([]byte, error) diff --git a/services/devtestlabs/mgmt/2016-05-15/dtl/_meta.json b/services/devtestlabs/mgmt/2016-05-15/dtl/_meta.json index 3b82eafdbfe4..0c1dcc9280c8 100644 --- a/services/devtestlabs/mgmt/2016-05-15/dtl/_meta.json +++ b/services/devtestlabs/mgmt/2016-05-15/dtl/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/devtestlabs/resource-manager/readme.md", "tag": "package-2016-05", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/devtestlabs/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/devtestlabs/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/devtestlabs/mgmt/2016-05-15/dtl/models.go b/services/devtestlabs/mgmt/2016-05-15/dtl/models.go index ba1702cd8e4f..460a0d5175f3 100644 --- a/services/devtestlabs/mgmt/2016-05-15/dtl/models.go +++ b/services/devtestlabs/mgmt/2016-05-15/dtl/models.go @@ -381,6 +381,12 @@ type ArmTemplateProperties struct { ParametersValueFilesInfo *[]ParametersValueFileInfo `json:"parametersValueFilesInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ArmTemplateProperties. +func (atp ArmTemplateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Artifact an artifact. type Artifact struct { autorest.Response `json:"-"` @@ -570,6 +576,12 @@ type ArtifactProperties struct { CreatedDate *date.Time `json:"createdDate,omitempty"` } +// MarshalJSON is the custom marshaler for ArtifactProperties. +func (ap ArtifactProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ArtifactSource properties of an artifact source. type ArtifactSource struct { autorest.Response `json:"-"` diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/CHANGELOG.md b/services/devtestlabs/mgmt/2018-09-15/dtl/CHANGELOG.md index 52911e4cc5e4..7cb5fae3bc53 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/CHANGELOG.md +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. ArmTemplateProperties.MarshalJSON() ([]byte, error) +1. ArtifactProperties.MarshalJSON() ([]byte, error) diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/_meta.json b/services/devtestlabs/mgmt/2018-09-15/dtl/_meta.json index 131efb2acb26..0496731125e9 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/_meta.json +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/devtestlabs/resource-manager/readme.md", "tag": "package-2018-09", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/devtestlabs/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/devtestlabs/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/models.go b/services/devtestlabs/mgmt/2018-09-15/dtl/models.go index ab585d487ac1..bd4b57d78cf3 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/models.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/models.go @@ -503,6 +503,12 @@ type ArmTemplateProperties struct { Enabled *bool `json:"enabled,omitempty"` } +// MarshalJSON is the custom marshaler for ArmTemplateProperties. +func (atp ArmTemplateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Artifact an artifact. type Artifact struct { autorest.Response `json:"-"` @@ -855,6 +861,12 @@ type ArtifactProperties struct { CreatedDate *date.Time `json:"createdDate,omitempty"` } +// MarshalJSON is the custom marshaler for ArtifactProperties. +func (ap ArtifactProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ArtifactSource properties of an artifact source. type ArtifactSource struct { autorest.Response `json:"-"` diff --git a/services/digitaltwins/mgmt/2020-10-31/digitaltwins/CHANGELOG.md b/services/digitaltwins/mgmt/2020-10-31/digitaltwins/CHANGELOG.md index 52911e4cc5e4..936e5f61ec88 100644 --- a/services/digitaltwins/mgmt/2020-10-31/digitaltwins/CHANGELOG.md +++ b/services/digitaltwins/mgmt/2020-10-31/digitaltwins/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. ErrorDefinition.MarshalJSON() ([]byte, error) +1. ExternalResource.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. Properties.MarshalJSON() ([]byte, error) diff --git a/services/digitaltwins/mgmt/2020-10-31/digitaltwins/_meta.json b/services/digitaltwins/mgmt/2020-10-31/digitaltwins/_meta.json index 316fde696366..8cd857ae78aa 100644 --- a/services/digitaltwins/mgmt/2020-10-31/digitaltwins/_meta.json +++ b/services/digitaltwins/mgmt/2020-10-31/digitaltwins/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/digitaltwins/resource-manager/readme.md", "tag": "package-2020-10", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/digitaltwins/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/digitaltwins/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/digitaltwins/mgmt/2020-10-31/digitaltwins/models.go b/services/digitaltwins/mgmt/2020-10-31/digitaltwins/models.go index 4a3f8f571ea0..e2fd912badec 100644 --- a/services/digitaltwins/mgmt/2020-10-31/digitaltwins/models.go +++ b/services/digitaltwins/mgmt/2020-10-31/digitaltwins/models.go @@ -812,6 +812,12 @@ type ErrorDefinition struct { Details *[]ErrorDefinition `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDefinition. +func (ed ErrorDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse error response. type ErrorResponse struct { // Error - Error description @@ -953,6 +959,12 @@ type ExternalResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ExternalResource. +func (er ExternalResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation digitalTwins service REST API operation type Operation struct { // Name - READ-ONLY; Operation name: {provider}/{resource}/{read | write | action | delete} @@ -986,6 +998,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (od OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult a list of DigitalTwins service operations. It contains a list of operations and a // URL link to get the next set of results. type OperationListResult struct { @@ -1182,6 +1200,12 @@ type Properties struct { HostName *string `json:"hostName,omitempty"` } +// MarshalJSON is the custom marshaler for Properties. +func (p Properties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource the common properties of a DigitalTwinsInstance. type Resource struct { // ID - READ-ONLY; The resource identifier. diff --git a/services/digitaltwins/mgmt/2020-12-01/digitaltwins/CHANGELOG.md b/services/digitaltwins/mgmt/2020-12-01/digitaltwins/CHANGELOG.md index 52911e4cc5e4..a87c350c2494 100644 --- a/services/digitaltwins/mgmt/2020-12-01/digitaltwins/CHANGELOG.md +++ b/services/digitaltwins/mgmt/2020-12-01/digitaltwins/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. ConnectionPropertiesPrivateEndpoint.MarshalJSON() ([]byte, error) +1. ErrorDefinition.MarshalJSON() ([]byte, error) +1. ExternalResource.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. PrivateEndpoint.MarshalJSON() ([]byte, error) diff --git a/services/digitaltwins/mgmt/2020-12-01/digitaltwins/_meta.json b/services/digitaltwins/mgmt/2020-12-01/digitaltwins/_meta.json index 4b64283f68da..bb7cfaa9e2e1 100644 --- a/services/digitaltwins/mgmt/2020-12-01/digitaltwins/_meta.json +++ b/services/digitaltwins/mgmt/2020-12-01/digitaltwins/_meta.json @@ -2,9 +2,9 @@ "commit": "d9506558e6389e62926ae385f1d625a1376a0f9d", "readme": "/_/azure-rest-api-specs/specification/digitaltwins/resource-manager/readme.md", "tag": "package-2020-12", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/digitaltwins/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/digitaltwins/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/digitaltwins/mgmt/2020-12-01/digitaltwins/models.go b/services/digitaltwins/mgmt/2020-12-01/digitaltwins/models.go index cda2c9ce7db5..7a9d2d0a62f1 100644 --- a/services/digitaltwins/mgmt/2020-12-01/digitaltwins/models.go +++ b/services/digitaltwins/mgmt/2020-12-01/digitaltwins/models.go @@ -70,6 +70,12 @@ type ConnectionPropertiesPrivateEndpoint struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectionPropertiesPrivateEndpoint. +func (cpE ConnectionPropertiesPrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectionPropertiesPrivateLinkServiceConnectionState ... type ConnectionPropertiesPrivateLinkServiceConnectionState struct { // Status - The status of a private endpoint connection. Possible values include: 'PrivateLinkServiceConnectionStatusPending', 'PrivateLinkServiceConnectionStatusApproved', 'PrivateLinkServiceConnectionStatusRejected', 'PrivateLinkServiceConnectionStatusDisconnected' @@ -887,6 +893,12 @@ type ErrorDefinition struct { Details *[]ErrorDefinition `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDefinition. +func (ed ErrorDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse error response. type ErrorResponse struct { // Error - Error description @@ -1058,6 +1070,12 @@ type ExternalResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ExternalResource. +func (er ExternalResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GroupIDInformation the group information for creating a private endpoint on Digital Twin. type GroupIDInformation struct { autorest.Response `json:"-"` @@ -1161,6 +1179,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (od OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult a list of DigitalTwins service operations. It contains a list of operations and a // URL link to get the next set of results. type OperationListResult struct { @@ -1367,6 +1391,12 @@ type PrivateEndpoint struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpoint. +func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection the private endpoint connection of a Digital Twin. type PrivateEndpointConnection struct { autorest.Response `json:"-"` diff --git a/services/dns/mgmt/2016-04-01/dns/CHANGELOG.md b/services/dns/mgmt/2016-04-01/dns/CHANGELOG.md index 52911e4cc5e4..4a0e9bec8e2f 100644 --- a/services/dns/mgmt/2016-04-01/dns/CHANGELOG.md +++ b/services/dns/mgmt/2016-04-01/dns/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/dns/mgmt/2016-04-01/dns/_meta.json b/services/dns/mgmt/2016-04-01/dns/_meta.json index 4ba93fd0bd74..7702bc9b46aa 100644 --- a/services/dns/mgmt/2016-04-01/dns/_meta.json +++ b/services/dns/mgmt/2016-04-01/dns/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/dns/resource-manager/readme.md", "tag": "package-2016-04", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/dns/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/dns/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/dns/mgmt/2016-04-01/dns/models.go b/services/dns/mgmt/2016-04-01/dns/models.go index 2aa6376747af..92e820a4af41 100644 --- a/services/dns/mgmt/2016-04-01/dns/models.go +++ b/services/dns/mgmt/2016-04-01/dns/models.go @@ -43,6 +43,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from the service. type CloudError struct { // Error - Cloud error body. @@ -92,6 +98,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PtrRecord a PTR record. type PtrRecord struct { // Ptrdname - The PTR target domain name for this PTR record. @@ -436,6 +448,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SoaRecord an SOA record. type SoaRecord struct { // Host - The domain name of the authoritative name server for this SOA record. diff --git a/services/dns/mgmt/2017-09-01/dns/CHANGELOG.md b/services/dns/mgmt/2017-09-01/dns/CHANGELOG.md index 52911e4cc5e4..4dc6831676f3 100644 --- a/services/dns/mgmt/2017-09-01/dns/CHANGELOG.md +++ b/services/dns/mgmt/2017-09-01/dns/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ZoneProperties.MarshalJSON() ([]byte, error) diff --git a/services/dns/mgmt/2017-09-01/dns/_meta.json b/services/dns/mgmt/2017-09-01/dns/_meta.json index 75f9bcd7685a..14080411cfe4 100644 --- a/services/dns/mgmt/2017-09-01/dns/_meta.json +++ b/services/dns/mgmt/2017-09-01/dns/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/dns/resource-manager/readme.md", "tag": "package-2017-09", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/dns/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/dns/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/dns/mgmt/2017-09-01/dns/models.go b/services/dns/mgmt/2017-09-01/dns/models.go index 80fa6fd20d14..a97fcc972195 100644 --- a/services/dns/mgmt/2017-09-01/dns/models.go +++ b/services/dns/mgmt/2017-09-01/dns/models.go @@ -43,6 +43,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CaaRecord a CAA record. type CaaRecord struct { // Flags - The flags for this CAA record as an integer between 0 and 255. @@ -102,6 +108,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PtrRecord a PTR record. type PtrRecord struct { // Ptrdname - The PTR target domain name for this PTR record. @@ -451,6 +463,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SoaRecord an SOA record. type SoaRecord struct { // Host - The domain name of the authoritative name server for this SOA record. @@ -815,6 +833,12 @@ type ZoneProperties struct { NameServers *[]string `json:"nameServers,omitempty"` } +// MarshalJSON is the custom marshaler for ZoneProperties. +func (zp ZoneProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ZonesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation. type ZonesDeleteFuture struct { azure.FutureAPI diff --git a/services/dns/mgmt/2017-10-01/dns/CHANGELOG.md b/services/dns/mgmt/2017-10-01/dns/CHANGELOG.md index 52911e4cc5e4..4dc6831676f3 100644 --- a/services/dns/mgmt/2017-10-01/dns/CHANGELOG.md +++ b/services/dns/mgmt/2017-10-01/dns/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ZoneProperties.MarshalJSON() ([]byte, error) diff --git a/services/dns/mgmt/2017-10-01/dns/_meta.json b/services/dns/mgmt/2017-10-01/dns/_meta.json index 03343619a65f..35fda5082f66 100644 --- a/services/dns/mgmt/2017-10-01/dns/_meta.json +++ b/services/dns/mgmt/2017-10-01/dns/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/dns/resource-manager/readme.md", "tag": "package-2017-10", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/dns/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/dns/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/dns/mgmt/2017-10-01/dns/models.go b/services/dns/mgmt/2017-10-01/dns/models.go index 90364a25f538..e376def331ba 100644 --- a/services/dns/mgmt/2017-10-01/dns/models.go +++ b/services/dns/mgmt/2017-10-01/dns/models.go @@ -43,6 +43,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CaaRecord a CAA record. type CaaRecord struct { // Flags - The flags for this CAA record as an integer between 0 and 255. @@ -102,6 +108,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PtrRecord a PTR record. type PtrRecord struct { // Ptrdname - The PTR target domain name for this PTR record. @@ -451,6 +463,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SoaRecord an SOA record. type SoaRecord struct { // Host - The domain name of the authoritative name server for this SOA record. @@ -815,6 +833,12 @@ type ZoneProperties struct { NameServers *[]string `json:"nameServers,omitempty"` } +// MarshalJSON is the custom marshaler for ZoneProperties. +func (zp ZoneProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ZonesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation. type ZonesDeleteFuture struct { azure.FutureAPI diff --git a/services/dns/mgmt/2018-05-01/dns/_meta.json b/services/dns/mgmt/2018-05-01/dns/_meta.json index 16486ce7bce6..09b7b258c7b5 100644 --- a/services/dns/mgmt/2018-05-01/dns/_meta.json +++ b/services/dns/mgmt/2018-05-01/dns/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/dns/resource-manager/readme.md", "tag": "package-2018-05", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/dns/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/dns/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/domainservices/mgmt/2017-01-01/aad/CHANGELOG.md b/services/domainservices/mgmt/2017-01-01/aad/CHANGELOG.md index 52911e4cc5e4..b2f3714508b7 100644 --- a/services/domainservices/mgmt/2017-01-01/aad/CHANGELOG.md +++ b/services/domainservices/mgmt/2017-01-01/aad/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. HealthAlert.MarshalJSON() ([]byte, error) +1. HealthMonitor.MarshalJSON() ([]byte, error) diff --git a/services/domainservices/mgmt/2017-01-01/aad/_meta.json b/services/domainservices/mgmt/2017-01-01/aad/_meta.json index 754159f0c7c2..c5f2fc94fc2c 100644 --- a/services/domainservices/mgmt/2017-01-01/aad/_meta.json +++ b/services/domainservices/mgmt/2017-01-01/aad/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/domainservices/resource-manager/readme.md", "tag": "package-2017-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/domainservices/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/domainservices/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/domainservices/mgmt/2017-01-01/aad/models.go b/services/domainservices/mgmt/2017-01-01/aad/models.go index 08b7c7251b45..a76aa73919d7 100644 --- a/services/domainservices/mgmt/2017-01-01/aad/models.go +++ b/services/domainservices/mgmt/2017-01-01/aad/models.go @@ -512,6 +512,12 @@ type HealthAlert struct { ResolutionURI *string `json:"resolutionUri,omitempty"` } +// MarshalJSON is the custom marshaler for HealthAlert. +func (ha HealthAlert) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HealthMonitor health Monitor Description type HealthMonitor struct { // ID - READ-ONLY; Health Monitor Id @@ -522,6 +528,12 @@ type HealthMonitor struct { Details *string `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for HealthMonitor. +func (hm HealthMonitor) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LdapsSettings secure LDAP Settings type LdapsSettings struct { // Ldaps - A flag to determine whether or not Secure LDAP is enabled or disabled. Possible values include: 'LdapsEnabled', 'LdapsDisabled' diff --git a/services/domainservices/mgmt/2017-06-01/aad/CHANGELOG.md b/services/domainservices/mgmt/2017-06-01/aad/CHANGELOG.md index 52911e4cc5e4..17b948a9aeae 100644 --- a/services/domainservices/mgmt/2017-06-01/aad/CHANGELOG.md +++ b/services/domainservices/mgmt/2017-06-01/aad/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. DefaultErrorResponse.MarshalJSON() ([]byte, error) +1. DefaultErrorResponseErrorDetailsItem.MarshalJSON() ([]byte, error) +1. HealthAlert.MarshalJSON() ([]byte, error) +1. HealthMonitor.MarshalJSON() ([]byte, error) diff --git a/services/domainservices/mgmt/2017-06-01/aad/_meta.json b/services/domainservices/mgmt/2017-06-01/aad/_meta.json index b556bcb8c5c8..f3ba5a35a565 100644 --- a/services/domainservices/mgmt/2017-06-01/aad/_meta.json +++ b/services/domainservices/mgmt/2017-06-01/aad/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/domainservices/resource-manager/readme.md", "tag": "package-2017-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/domainservices/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/domainservices/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/domainservices/mgmt/2017-06-01/aad/models.go b/services/domainservices/mgmt/2017-06-01/aad/models.go index 7f6682b971fb..1350508cc83e 100644 --- a/services/domainservices/mgmt/2017-06-01/aad/models.go +++ b/services/domainservices/mgmt/2017-06-01/aad/models.go @@ -54,6 +54,12 @@ type DefaultErrorResponse struct { Error *DefaultErrorResponseError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for DefaultErrorResponse. +func (der DefaultErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DefaultErrorResponseError error model. type DefaultErrorResponseError struct { // Code - READ-ONLY; Standardized string to programmatically identify the error. @@ -87,6 +93,12 @@ type DefaultErrorResponseErrorDetailsItem struct { Target *string `json:"target,omitempty"` } +// MarshalJSON is the custom marshaler for DefaultErrorResponseErrorDetailsItem. +func (derI DefaultErrorResponseErrorDetailsItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DomainSecuritySettings domain Security Settings type DomainSecuritySettings struct { // NtlmV1 - A flag to determine whether or not NtlmV1 is enabled or disabled. Possible values include: 'NtlmV1Enabled', 'NtlmV1Disabled' @@ -614,6 +626,12 @@ type HealthAlert struct { ResolutionURI *string `json:"resolutionUri,omitempty"` } +// MarshalJSON is the custom marshaler for HealthAlert. +func (ha HealthAlert) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HealthMonitor health Monitor Description type HealthMonitor struct { // ID - READ-ONLY; Health Monitor Id @@ -624,6 +642,12 @@ type HealthMonitor struct { Details *string `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for HealthMonitor. +func (hm HealthMonitor) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LdapsSettings secure LDAP Settings type LdapsSettings struct { // Ldaps - A flag to determine whether or not Secure LDAP is enabled or disabled. Possible values include: 'LdapsEnabled', 'LdapsDisabled' diff --git a/services/domainservices/mgmt/2020-01-01/aad/CHANGELOG.md b/services/domainservices/mgmt/2020-01-01/aad/CHANGELOG.md index 52911e4cc5e4..b2f3714508b7 100644 --- a/services/domainservices/mgmt/2020-01-01/aad/CHANGELOG.md +++ b/services/domainservices/mgmt/2020-01-01/aad/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. HealthAlert.MarshalJSON() ([]byte, error) +1. HealthMonitor.MarshalJSON() ([]byte, error) diff --git a/services/domainservices/mgmt/2020-01-01/aad/_meta.json b/services/domainservices/mgmt/2020-01-01/aad/_meta.json index 320fe4f7b3fc..abf829d9cd13 100644 --- a/services/domainservices/mgmt/2020-01-01/aad/_meta.json +++ b/services/domainservices/mgmt/2020-01-01/aad/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/domainservices/resource-manager/readme.md", "tag": "package-2020-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/domainservices/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/domainservices/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/domainservices/mgmt/2020-01-01/aad/models.go b/services/domainservices/mgmt/2020-01-01/aad/models.go index b44584fe15c6..fe31df5f8136 100644 --- a/services/domainservices/mgmt/2020-01-01/aad/models.go +++ b/services/domainservices/mgmt/2020-01-01/aad/models.go @@ -565,6 +565,12 @@ type HealthAlert struct { ResolutionURI *string `json:"resolutionUri,omitempty"` } +// MarshalJSON is the custom marshaler for HealthAlert. +func (ha HealthAlert) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HealthMonitor health Monitor Description type HealthMonitor struct { // ID - READ-ONLY; Health Monitor Id @@ -575,6 +581,12 @@ type HealthMonitor struct { Details *string `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for HealthMonitor. +func (hm HealthMonitor) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LdapsSettings secure LDAP Settings type LdapsSettings struct { // Ldaps - A flag to determine whether or not Secure LDAP is enabled or disabled. Possible values include: 'LdapsEnabled', 'LdapsDisabled' diff --git a/services/eventgrid/2018-01-01/eventgrid/CHANGELOG.md b/services/eventgrid/2018-01-01/eventgrid/CHANGELOG.md index 52911e4cc5e4..aecb2cfecf73 100644 --- a/services/eventgrid/2018-01-01/eventgrid/CHANGELOG.md +++ b/services/eventgrid/2018-01-01/eventgrid/CHANGELOG.md @@ -1,2 +1,19 @@ # Change History +## Additive Changes + +### New Funcs + +1. MediaJobError.MarshalJSON() ([]byte, error) +1. MediaJobErrorDetail.MarshalJSON() ([]byte, error) +1. MediaLiveEventConnectionRejectedEventData.MarshalJSON() ([]byte, error) +1. MediaLiveEventEncoderConnectedEventData.MarshalJSON() ([]byte, error) +1. MediaLiveEventEncoderDisconnectedEventData.MarshalJSON() ([]byte, error) +1. MediaLiveEventIncomingDataChunkDroppedEventData.MarshalJSON() ([]byte, error) +1. MediaLiveEventIncomingStreamReceivedEventData.MarshalJSON() ([]byte, error) +1. MediaLiveEventIncomingStreamsOutOfSyncEventData.MarshalJSON() ([]byte, error) +1. MediaLiveEventIncomingVideoStreamsOutOfSyncEventData.MarshalJSON() ([]byte, error) +1. MediaLiveEventIngestHeartbeatEventData.MarshalJSON() ([]byte, error) +1. MediaLiveEventTrackDiscontinuityDetectedEventData.MarshalJSON() ([]byte, error) +1. SubscriptionDeletedEventData.MarshalJSON() ([]byte, error) +1. SubscriptionValidationEventData.MarshalJSON() ([]byte, error) diff --git a/services/eventgrid/2018-01-01/eventgrid/_meta.json b/services/eventgrid/2018-01-01/eventgrid/_meta.json index 074cdccd5e43..91eba536236a 100644 --- a/services/eventgrid/2018-01-01/eventgrid/_meta.json +++ b/services/eventgrid/2018-01-01/eventgrid/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/eventgrid/data-plane/readme.md", "tag": "package-2018-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/eventgrid/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/eventgrid/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/eventgrid/2018-01-01/eventgrid/models.go b/services/eventgrid/2018-01-01/eventgrid/models.go index 3b915ed5eab5..cb3b6b21f03d 100644 --- a/services/eventgrid/2018-01-01/eventgrid/models.go +++ b/services/eventgrid/2018-01-01/eventgrid/models.go @@ -1446,6 +1446,12 @@ type MediaJobError struct { Details *[]MediaJobErrorDetail `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for MediaJobError. +func (mje MediaJobError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MediaJobErrorDetail details of JobOutput errors. type MediaJobErrorDetail struct { // Code - READ-ONLY; Code describing the error detail. @@ -1454,6 +1460,12 @@ type MediaJobErrorDetail struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for MediaJobErrorDetail. +func (mjed MediaJobErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MediaJobErroredEventData job error state event data type MediaJobErroredEventData struct { // Outputs - Gets the Job outputs. @@ -2277,6 +2289,12 @@ type MediaLiveEventConnectionRejectedEventData struct { ResultCode *string `json:"resultCode,omitempty"` } +// MarshalJSON is the custom marshaler for MediaLiveEventConnectionRejectedEventData. +func (mlecred MediaLiveEventConnectionRejectedEventData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MediaLiveEventEncoderConnectedEventData encoder connect event data. type MediaLiveEventEncoderConnectedEventData struct { // IngestURL - READ-ONLY; Gets the ingest URL provided by the live event. @@ -2289,6 +2307,12 @@ type MediaLiveEventEncoderConnectedEventData struct { EncoderPort *string `json:"encoderPort,omitempty"` } +// MarshalJSON is the custom marshaler for MediaLiveEventEncoderConnectedEventData. +func (mleeced MediaLiveEventEncoderConnectedEventData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MediaLiveEventEncoderDisconnectedEventData encoder disconnected event data. type MediaLiveEventEncoderDisconnectedEventData struct { // IngestURL - READ-ONLY; Gets the ingest URL provided by the live event. @@ -2303,6 +2327,12 @@ type MediaLiveEventEncoderDisconnectedEventData struct { ResultCode *string `json:"resultCode,omitempty"` } +// MarshalJSON is the custom marshaler for MediaLiveEventEncoderDisconnectedEventData. +func (mleeded MediaLiveEventEncoderDisconnectedEventData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MediaLiveEventIncomingDataChunkDroppedEventData ingest fragment dropped event data. type MediaLiveEventIncomingDataChunkDroppedEventData struct { // Timestamp - READ-ONLY; Gets the timestamp of the data chunk dropped. @@ -2319,6 +2349,12 @@ type MediaLiveEventIncomingDataChunkDroppedEventData struct { TrackName *string `json:"trackName,omitempty"` } +// MarshalJSON is the custom marshaler for MediaLiveEventIncomingDataChunkDroppedEventData. +func (mleidcded MediaLiveEventIncomingDataChunkDroppedEventData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MediaLiveEventIncomingStreamReceivedEventData encoder connect event data. type MediaLiveEventIncomingStreamReceivedEventData struct { // IngestURL - READ-ONLY; Gets the ingest URL provided by the live event. @@ -2341,6 +2377,12 @@ type MediaLiveEventIncomingStreamReceivedEventData struct { Timescale *string `json:"timescale,omitempty"` } +// MarshalJSON is the custom marshaler for MediaLiveEventIncomingStreamReceivedEventData. +func (mleisred MediaLiveEventIncomingStreamReceivedEventData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MediaLiveEventIncomingStreamsOutOfSyncEventData incoming streams out of sync event data. type MediaLiveEventIncomingStreamsOutOfSyncEventData struct { // MinLastTimestamp - READ-ONLY; Gets the minimum last timestamp received. @@ -2357,6 +2399,12 @@ type MediaLiveEventIncomingStreamsOutOfSyncEventData struct { TimescaleOfMaxLastTimestamp *string `json:"timescaleOfMaxLastTimestamp,omitempty"` } +// MarshalJSON is the custom marshaler for MediaLiveEventIncomingStreamsOutOfSyncEventData. +func (mleisoosed MediaLiveEventIncomingStreamsOutOfSyncEventData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MediaLiveEventIncomingVideoStreamsOutOfSyncEventData incoming video stream out of synch event data. type MediaLiveEventIncomingVideoStreamsOutOfSyncEventData struct { // FirstTimestamp - READ-ONLY; Gets the first timestamp received for one of the quality levels. @@ -2371,6 +2419,12 @@ type MediaLiveEventIncomingVideoStreamsOutOfSyncEventData struct { Timescale *string `json:"timescale,omitempty"` } +// MarshalJSON is the custom marshaler for MediaLiveEventIncomingVideoStreamsOutOfSyncEventData. +func (mleivsoosed MediaLiveEventIncomingVideoStreamsOutOfSyncEventData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MediaLiveEventIngestHeartbeatEventData ingest fragment dropped event data. type MediaLiveEventIngestHeartbeatEventData struct { // TrackType - READ-ONLY; Gets the type of the track (Audio / Video). @@ -2399,6 +2453,12 @@ type MediaLiveEventIngestHeartbeatEventData struct { Healthy *bool `json:"healthy,omitempty"` } +// MarshalJSON is the custom marshaler for MediaLiveEventIngestHeartbeatEventData. +func (mleihed MediaLiveEventIngestHeartbeatEventData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MediaLiveEventTrackDiscontinuityDetectedEventData ingest track discontinuity detected event data. type MediaLiveEventTrackDiscontinuityDetectedEventData struct { // TrackType - READ-ONLY; Gets the type of the track (Audio / Video). @@ -2417,6 +2477,12 @@ type MediaLiveEventTrackDiscontinuityDetectedEventData struct { DiscontinuityGap *string `json:"discontinuityGap,omitempty"` } +// MarshalJSON is the custom marshaler for MediaLiveEventTrackDiscontinuityDetectedEventData. +func (mletdded MediaLiveEventTrackDiscontinuityDetectedEventData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RedisExportRDBCompletedEventData schema of the Data property of an EventGridEvent for an // Microsoft.Cache.ExportRDBCompleted event. type RedisExportRDBCompletedEventData struct { @@ -2937,6 +3003,12 @@ type SubscriptionDeletedEventData struct { EventSubscriptionID *string `json:"eventSubscriptionId,omitempty"` } +// MarshalJSON is the custom marshaler for SubscriptionDeletedEventData. +func (sded SubscriptionDeletedEventData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SubscriptionValidationEventData schema of the Data property of an EventGridEvent for a // Microsoft.EventGrid.SubscriptionValidationEvent. type SubscriptionValidationEventData struct { @@ -2946,6 +3018,12 @@ type SubscriptionValidationEventData struct { ValidationURL *string `json:"validationUrl,omitempty"` } +// MarshalJSON is the custom marshaler for SubscriptionValidationEventData. +func (sved SubscriptionValidationEventData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SubscriptionValidationResponse to complete an event subscription validation handshake, a subscriber can // use either the validationCode or the validationUrl received in a SubscriptionValidationEvent. When the // validationCode is used, the SubscriptionValidationResponse can be used to build the response. diff --git a/services/eventgrid/mgmt/2018-01-01/eventgrid/CHANGELOG.md b/services/eventgrid/mgmt/2018-01-01/eventgrid/CHANGELOG.md index 52911e4cc5e4..3ec88d5f1801 100644 --- a/services/eventgrid/mgmt/2018-01-01/eventgrid/CHANGELOG.md +++ b/services/eventgrid/mgmt/2018-01-01/eventgrid/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. Resource.MarshalJSON() ([]byte, error) +1. TopicProperties.MarshalJSON() ([]byte, error) diff --git a/services/eventgrid/mgmt/2018-01-01/eventgrid/_meta.json b/services/eventgrid/mgmt/2018-01-01/eventgrid/_meta.json index e9d4ec73d94d..e0cc8bc393a6 100644 --- a/services/eventgrid/mgmt/2018-01-01/eventgrid/_meta.json +++ b/services/eventgrid/mgmt/2018-01-01/eventgrid/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/eventgrid/resource-manager/readme.md", "tag": "package-2018-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/eventgrid/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/eventgrid/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/eventgrid/mgmt/2018-01-01/eventgrid/models.go b/services/eventgrid/mgmt/2018-01-01/eventgrid/models.go index a4fa0cbdce35..04fbec4ede3b 100644 --- a/services/eventgrid/mgmt/2018-01-01/eventgrid/models.go +++ b/services/eventgrid/mgmt/2018-01-01/eventgrid/models.go @@ -676,6 +676,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Topic eventGrid Topic type Topic struct { autorest.Response `json:"-"` @@ -785,6 +791,12 @@ type TopicProperties struct { Endpoint *string `json:"endpoint,omitempty"` } +// MarshalJSON is the custom marshaler for TopicProperties. +func (tp TopicProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TopicRegenerateKeyRequest topic regenerate share access key request type TopicRegenerateKeyRequest struct { // KeyName - Key name to regenerate key1 or key2 diff --git a/services/eventgrid/mgmt/2019-01-01/eventgrid/CHANGELOG.md b/services/eventgrid/mgmt/2019-01-01/eventgrid/CHANGELOG.md index 52911e4cc5e4..3ec88d5f1801 100644 --- a/services/eventgrid/mgmt/2019-01-01/eventgrid/CHANGELOG.md +++ b/services/eventgrid/mgmt/2019-01-01/eventgrid/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. Resource.MarshalJSON() ([]byte, error) +1. TopicProperties.MarshalJSON() ([]byte, error) diff --git a/services/eventgrid/mgmt/2019-01-01/eventgrid/_meta.json b/services/eventgrid/mgmt/2019-01-01/eventgrid/_meta.json index 0b65f9fc5ccd..84c3c96e9e3b 100644 --- a/services/eventgrid/mgmt/2019-01-01/eventgrid/_meta.json +++ b/services/eventgrid/mgmt/2019-01-01/eventgrid/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/eventgrid/resource-manager/readme.md", "tag": "package-2019-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/eventgrid/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/eventgrid/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/eventgrid/mgmt/2019-01-01/eventgrid/models.go b/services/eventgrid/mgmt/2019-01-01/eventgrid/models.go index 8da361a5d23d..9e6494b28465 100644 --- a/services/eventgrid/mgmt/2019-01-01/eventgrid/models.go +++ b/services/eventgrid/mgmt/2019-01-01/eventgrid/models.go @@ -923,6 +923,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RetryPolicy information about the retry policy for an event subscription type RetryPolicy struct { // MaxDeliveryAttempts - Maximum number of delivery retry attempts for events. @@ -1210,6 +1216,12 @@ type TopicProperties struct { Endpoint *string `json:"endpoint,omitempty"` } +// MarshalJSON is the custom marshaler for TopicProperties. +func (tp TopicProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TopicRegenerateKeyRequest topic regenerate share access key request type TopicRegenerateKeyRequest struct { // KeyName - Key name to regenerate key1 or key2 diff --git a/services/eventgrid/mgmt/2019-06-01/eventgrid/CHANGELOG.md b/services/eventgrid/mgmt/2019-06-01/eventgrid/CHANGELOG.md index 52911e4cc5e4..64acccc91e03 100644 --- a/services/eventgrid/mgmt/2019-06-01/eventgrid/CHANGELOG.md +++ b/services/eventgrid/mgmt/2019-06-01/eventgrid/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. DomainProperties.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. TopicProperties.MarshalJSON() ([]byte, error) diff --git a/services/eventgrid/mgmt/2019-06-01/eventgrid/_meta.json b/services/eventgrid/mgmt/2019-06-01/eventgrid/_meta.json index 891f5eb65fe7..bc92eaed2d53 100644 --- a/services/eventgrid/mgmt/2019-06-01/eventgrid/_meta.json +++ b/services/eventgrid/mgmt/2019-06-01/eventgrid/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/eventgrid/resource-manager/readme.md", "tag": "package-2019-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/eventgrid/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/eventgrid/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/eventgrid/mgmt/2019-06-01/eventgrid/models.go b/services/eventgrid/mgmt/2019-06-01/eventgrid/models.go index 39e26d29ccbc..b9e646ca3b80 100644 --- a/services/eventgrid/mgmt/2019-06-01/eventgrid/models.go +++ b/services/eventgrid/mgmt/2019-06-01/eventgrid/models.go @@ -499,6 +499,12 @@ type DomainProperties struct { Endpoint *string `json:"endpoint,omitempty"` } +// MarshalJSON is the custom marshaler for DomainProperties. +func (dp DomainProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DomainRegenerateKeyRequest domain regenerate share access key request. type DomainRegenerateKeyRequest struct { // KeyName - Key name to regenerate key1 or key2. @@ -2791,6 +2797,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RetryPolicy information about the retry policy for an event subscription. type RetryPolicy struct { // MaxDeliveryAttempts - Maximum number of delivery retry attempts for events. @@ -3660,6 +3672,12 @@ type TopicProperties struct { Endpoint *string `json:"endpoint,omitempty"` } +// MarshalJSON is the custom marshaler for TopicProperties. +func (tp TopicProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TopicRegenerateKeyRequest topic regenerate share access key request type TopicRegenerateKeyRequest struct { // KeyName - Key name to regenerate key1 or key2 diff --git a/services/eventgrid/mgmt/2020-06-01/eventgrid/CHANGELOG.md b/services/eventgrid/mgmt/2020-06-01/eventgrid/CHANGELOG.md index 52911e4cc5e4..f817772e217f 100644 --- a/services/eventgrid/mgmt/2020-06-01/eventgrid/CHANGELOG.md +++ b/services/eventgrid/mgmt/2020-06-01/eventgrid/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/eventgrid/mgmt/2020-06-01/eventgrid/_meta.json b/services/eventgrid/mgmt/2020-06-01/eventgrid/_meta.json index ce3c10bb65f9..25ba6f65502e 100644 --- a/services/eventgrid/mgmt/2020-06-01/eventgrid/_meta.json +++ b/services/eventgrid/mgmt/2020-06-01/eventgrid/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/eventgrid/resource-manager/readme.md", "tag": "package-2020-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/eventgrid/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/eventgrid/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/eventgrid/mgmt/2020-06-01/eventgrid/models.go b/services/eventgrid/mgmt/2020-06-01/eventgrid/models.go index f76cbdb22988..1ac0be3b5a58 100644 --- a/services/eventgrid/mgmt/2020-06-01/eventgrid/models.go +++ b/services/eventgrid/mgmt/2020-06-01/eventgrid/models.go @@ -3916,6 +3916,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RetryPolicy information about the retry policy for an event subscription. type RetryPolicy struct { // MaxDeliveryAttempts - Maximum number of delivery retry attempts for events. diff --git a/services/eventhub/mgmt/2015-08-01/eventhub/CHANGELOG.md b/services/eventhub/mgmt/2015-08-01/eventhub/CHANGELOG.md index 52911e4cc5e4..018e3373e23f 100644 --- a/services/eventhub/mgmt/2015-08-01/eventhub/CHANGELOG.md +++ b/services/eventhub/mgmt/2015-08-01/eventhub/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. ResourceListKeys.MarshalJSON() ([]byte, error) diff --git a/services/eventhub/mgmt/2015-08-01/eventhub/_meta.json b/services/eventhub/mgmt/2015-08-01/eventhub/_meta.json index 35265f990feb..c799d874b74f 100644 --- a/services/eventhub/mgmt/2015-08-01/eventhub/_meta.json +++ b/services/eventhub/mgmt/2015-08-01/eventhub/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/eventhub/resource-manager/readme.md", "tag": "package-2015-08", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2015-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/eventhub/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2015-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/eventhub/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/eventhub/mgmt/2015-08-01/eventhub/models.go b/services/eventhub/mgmt/2015-08-01/eventhub/models.go index e3e93bfe430a..b7c0a05cec15 100644 --- a/services/eventhub/mgmt/2015-08-01/eventhub/models.go +++ b/services/eventhub/mgmt/2015-08-01/eventhub/models.go @@ -1155,6 +1155,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of the request to list Event Hub operations. It contains a list of operations // and a URL link to get the next set of results. type OperationListResult struct { @@ -1165,6 +1171,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -1388,6 +1400,12 @@ type ResourceListKeys struct { KeyName *string `json:"keyName,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceListKeys. +func (rlk ResourceListKeys) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceType single item in List or Get Event Hub operation type ResourceType struct { autorest.Response `json:"-"` diff --git a/services/eventhub/mgmt/2017-04-01/eventhub/CHANGELOG.md b/services/eventhub/mgmt/2017-04-01/eventhub/CHANGELOG.md index 52911e4cc5e4..c3a8b954601c 100644 --- a/services/eventhub/mgmt/2017-04-01/eventhub/CHANGELOG.md +++ b/services/eventhub/mgmt/2017-04-01/eventhub/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccessKeys.MarshalJSON() ([]byte, error) +1. MessagingPlanProperties.MarshalJSON() ([]byte, error) +1. MessagingRegionsProperties.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/eventhub/mgmt/2017-04-01/eventhub/_meta.json b/services/eventhub/mgmt/2017-04-01/eventhub/_meta.json index fbc896f65491..c91a53930739 100644 --- a/services/eventhub/mgmt/2017-04-01/eventhub/_meta.json +++ b/services/eventhub/mgmt/2017-04-01/eventhub/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/eventhub/resource-manager/readme.md", "tag": "package-2017-04", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/eventhub/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/eventhub/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/eventhub/mgmt/2017-04-01/eventhub/models.go b/services/eventhub/mgmt/2017-04-01/eventhub/models.go index 3b4a7c8946f2..b8a3b0f49aa6 100644 --- a/services/eventhub/mgmt/2017-04-01/eventhub/models.go +++ b/services/eventhub/mgmt/2017-04-01/eventhub/models.go @@ -39,6 +39,12 @@ type AccessKeys struct { KeyName *string `json:"keyName,omitempty"` } +// MarshalJSON is the custom marshaler for AccessKeys. +func (ak AccessKeys) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ArmDisasterRecovery single item in List or Get Alias(Disaster Recovery configuration) operation type ArmDisasterRecovery struct { autorest.Response `json:"-"` @@ -1495,6 +1501,12 @@ type MessagingPlanProperties struct { Revision *int64 `json:"revision,omitempty"` } +// MarshalJSON is the custom marshaler for MessagingPlanProperties. +func (mp MessagingPlanProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MessagingRegions messaging Region type MessagingRegions struct { // Properties - Properties of Messaging Region @@ -1702,6 +1714,12 @@ type MessagingRegionsProperties struct { FullName *string `json:"fullName,omitempty"` } +// MarshalJSON is the custom marshaler for MessagingRegionsProperties. +func (mr MessagingRegionsProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Model single item in List or Get Event Hub operation type Model struct { autorest.Response `json:"-"` @@ -2140,6 +2158,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of the request to list Event Hub operations. It contains a list of operations // and a URL link to get the next set of results. type OperationListResult struct { @@ -2150,6 +2174,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -2355,6 +2385,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Sku SKU parameters supplied to the create namespace operation type Sku struct { // Name - Name of this SKU. Possible values include: 'Basic', 'Standard' diff --git a/services/frontdoor/mgmt/2019-04-01/frontdoor/CHANGELOG.md b/services/frontdoor/mgmt/2019-04-01/frontdoor/CHANGELOG.md index 52911e4cc5e4..97236db79e38 100644 --- a/services/frontdoor/mgmt/2019-04-01/frontdoor/CHANGELOG.md +++ b/services/frontdoor/mgmt/2019-04-01/frontdoor/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. CheckNameAvailabilityOutput.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. ManagedRuleDefinition.MarshalJSON() ([]byte, error) +1. ManagedRuleGroupDefinition.MarshalJSON() ([]byte, error) +1. ManagedRuleSetDefinitionProperties.MarshalJSON() ([]byte, error) +1. ValidateCustomDomainOutput.MarshalJSON() ([]byte, error) diff --git a/services/frontdoor/mgmt/2019-04-01/frontdoor/_meta.json b/services/frontdoor/mgmt/2019-04-01/frontdoor/_meta.json index 884fdfcea450..a5d4eb999ed3 100644 --- a/services/frontdoor/mgmt/2019-04-01/frontdoor/_meta.json +++ b/services/frontdoor/mgmt/2019-04-01/frontdoor/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/frontdoor/resource-manager/readme.md", "tag": "package-2019-04", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/frontdoor/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/frontdoor/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/frontdoor/mgmt/2019-04-01/frontdoor/models.go b/services/frontdoor/mgmt/2019-04-01/frontdoor/models.go index fb60e20059e7..4b8f5914962d 100644 --- a/services/frontdoor/mgmt/2019-04-01/frontdoor/models.go +++ b/services/frontdoor/mgmt/2019-04-01/frontdoor/models.go @@ -207,6 +207,12 @@ type CheckNameAvailabilityOutput struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityOutput. +func (cnao CheckNameAvailabilityOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CustomHTTPSConfiguration https settings for a domain type CustomHTTPSConfiguration struct { // CertificateSource - Defines the source of the SSL certificate. Possible values include: 'CertificateSourceAzureKeyVault', 'CertificateSourceFrontDoor' @@ -376,6 +382,12 @@ type ErrorResponse struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ForwardingConfiguration describes Forwarding Route. type ForwardingConfiguration struct { // CustomForwardingPath - A custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path. @@ -1438,6 +1450,12 @@ type ManagedRuleDefinition struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedRuleDefinition. +func (mrd ManagedRuleDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedRuleGroupDefinition describes a managed rule group. type ManagedRuleGroupDefinition struct { // RuleGroupName - READ-ONLY; Name of the managed rule group. @@ -1448,6 +1466,12 @@ type ManagedRuleGroupDefinition struct { Rules *[]ManagedRuleDefinition `json:"rules,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedRuleGroupDefinition. +func (mrgd ManagedRuleGroupDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedRuleGroupOverride defines a managed rule group override setting. type ManagedRuleGroupOverride struct { // RuleGroupName - Describes the managed rule group to override. @@ -1759,6 +1783,12 @@ type ManagedRuleSetDefinitionProperties struct { RuleGroups *[]ManagedRuleGroupDefinition `json:"ruleGroups,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedRuleSetDefinitionProperties. +func (mrsdp ManagedRuleSetDefinitionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedRuleSetList defines the list of managed rule sets for the policy. type ManagedRuleSetList struct { // ManagedRuleSets - List of rule sets. @@ -2428,6 +2458,12 @@ type ValidateCustomDomainOutput struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ValidateCustomDomainOutput. +func (vcdo ValidateCustomDomainOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WebApplicationFirewallPolicy defines web application firewall policy. type WebApplicationFirewallPolicy struct { autorest.Response `json:"-"` diff --git a/services/frontdoor/mgmt/2019-05-01/frontdoor/CHANGELOG.md b/services/frontdoor/mgmt/2019-05-01/frontdoor/CHANGELOG.md index 52911e4cc5e4..97236db79e38 100644 --- a/services/frontdoor/mgmt/2019-05-01/frontdoor/CHANGELOG.md +++ b/services/frontdoor/mgmt/2019-05-01/frontdoor/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. CheckNameAvailabilityOutput.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. ManagedRuleDefinition.MarshalJSON() ([]byte, error) +1. ManagedRuleGroupDefinition.MarshalJSON() ([]byte, error) +1. ManagedRuleSetDefinitionProperties.MarshalJSON() ([]byte, error) +1. ValidateCustomDomainOutput.MarshalJSON() ([]byte, error) diff --git a/services/frontdoor/mgmt/2019-05-01/frontdoor/_meta.json b/services/frontdoor/mgmt/2019-05-01/frontdoor/_meta.json index 479f4bba21b1..8d7f2f6ff146 100644 --- a/services/frontdoor/mgmt/2019-05-01/frontdoor/_meta.json +++ b/services/frontdoor/mgmt/2019-05-01/frontdoor/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/frontdoor/resource-manager/readme.md", "tag": "package-2019-05", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/frontdoor/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/frontdoor/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/frontdoor/mgmt/2019-05-01/frontdoor/models.go b/services/frontdoor/mgmt/2019-05-01/frontdoor/models.go index 23d1a017aaa0..4472ff2af3bc 100644 --- a/services/frontdoor/mgmt/2019-05-01/frontdoor/models.go +++ b/services/frontdoor/mgmt/2019-05-01/frontdoor/models.go @@ -209,6 +209,12 @@ type CheckNameAvailabilityOutput struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityOutput. +func (cnao CheckNameAvailabilityOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CustomHTTPSConfiguration https settings for a domain type CustomHTTPSConfiguration struct { // CertificateSource - Defines the source of the SSL certificate. Possible values include: 'CertificateSourceAzureKeyVault', 'CertificateSourceFrontDoor' @@ -392,6 +398,12 @@ type ErrorResponse struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ForwardingConfiguration describes Forwarding Route. type ForwardingConfiguration struct { // CustomForwardingPath - A custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path. @@ -1462,6 +1474,12 @@ type ManagedRuleDefinition struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedRuleDefinition. +func (mrd ManagedRuleDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedRuleGroupDefinition describes a managed rule group. type ManagedRuleGroupDefinition struct { // RuleGroupName - READ-ONLY; Name of the managed rule group. @@ -1472,6 +1490,12 @@ type ManagedRuleGroupDefinition struct { Rules *[]ManagedRuleDefinition `json:"rules,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedRuleGroupDefinition. +func (mrgd ManagedRuleGroupDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedRuleGroupOverride defines a managed rule group override setting. type ManagedRuleGroupOverride struct { // RuleGroupName - Describes the managed rule group to override. @@ -1783,6 +1807,12 @@ type ManagedRuleSetDefinitionProperties struct { RuleGroups *[]ManagedRuleGroupDefinition `json:"ruleGroups,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedRuleSetDefinitionProperties. +func (mrsdp ManagedRuleSetDefinitionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedRuleSetList defines the list of managed rule sets for the policy. type ManagedRuleSetList struct { // ManagedRuleSets - List of rule sets. @@ -2452,6 +2482,12 @@ type ValidateCustomDomainOutput struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ValidateCustomDomainOutput. +func (vcdo ValidateCustomDomainOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WebApplicationFirewallPolicy defines web application firewall policy. type WebApplicationFirewallPolicy struct { autorest.Response `json:"-"` diff --git a/services/frontdoor/mgmt/2019-10-01/frontdoor/CHANGELOG.md b/services/frontdoor/mgmt/2019-10-01/frontdoor/CHANGELOG.md index 52911e4cc5e4..97236db79e38 100644 --- a/services/frontdoor/mgmt/2019-10-01/frontdoor/CHANGELOG.md +++ b/services/frontdoor/mgmt/2019-10-01/frontdoor/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. CheckNameAvailabilityOutput.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. ManagedRuleDefinition.MarshalJSON() ([]byte, error) +1. ManagedRuleGroupDefinition.MarshalJSON() ([]byte, error) +1. ManagedRuleSetDefinitionProperties.MarshalJSON() ([]byte, error) +1. ValidateCustomDomainOutput.MarshalJSON() ([]byte, error) diff --git a/services/frontdoor/mgmt/2019-10-01/frontdoor/_meta.json b/services/frontdoor/mgmt/2019-10-01/frontdoor/_meta.json index 664f1ac64a0c..e50afadf9d1e 100644 --- a/services/frontdoor/mgmt/2019-10-01/frontdoor/_meta.json +++ b/services/frontdoor/mgmt/2019-10-01/frontdoor/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/frontdoor/resource-manager/readme.md", "tag": "package-2019-10", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/frontdoor/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/frontdoor/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/frontdoor/mgmt/2019-10-01/frontdoor/models.go b/services/frontdoor/mgmt/2019-10-01/frontdoor/models.go index 3f8af46523e0..251f92b5943e 100644 --- a/services/frontdoor/mgmt/2019-10-01/frontdoor/models.go +++ b/services/frontdoor/mgmt/2019-10-01/frontdoor/models.go @@ -209,6 +209,12 @@ type CheckNameAvailabilityOutput struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityOutput. +func (cnao CheckNameAvailabilityOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CustomHTTPSConfiguration https settings for a domain type CustomHTTPSConfiguration struct { // CertificateSource - Defines the source of the SSL certificate. Possible values include: 'CertificateSourceAzureKeyVault', 'CertificateSourceFrontDoor' @@ -392,6 +398,12 @@ type ErrorResponse struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ForwardingConfiguration describes Forwarding Route. type ForwardingConfiguration struct { // CustomForwardingPath - A custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path. @@ -1462,6 +1474,12 @@ type ManagedRuleDefinition struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedRuleDefinition. +func (mrd ManagedRuleDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedRuleExclusion exclude variables from managed rule evaluation. type ManagedRuleExclusion struct { // MatchVariable - The variable type to be excluded. Possible values include: 'RequestHeaderNames', 'RequestCookieNames', 'QueryStringArgNames', 'RequestBodyPostArgNames' @@ -1482,6 +1500,12 @@ type ManagedRuleGroupDefinition struct { Rules *[]ManagedRuleDefinition `json:"rules,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedRuleGroupDefinition. +func (mrgd ManagedRuleGroupDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedRuleGroupOverride defines a managed rule group override setting. type ManagedRuleGroupOverride struct { // RuleGroupName - Describes the managed rule group to override. @@ -1799,6 +1823,12 @@ type ManagedRuleSetDefinitionProperties struct { RuleGroups *[]ManagedRuleGroupDefinition `json:"ruleGroups,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedRuleSetDefinitionProperties. +func (mrsdp ManagedRuleSetDefinitionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedRuleSetList defines the list of managed rule sets for the policy. type ManagedRuleSetList struct { // ManagedRuleSets - List of rule sets. @@ -2468,6 +2498,12 @@ type ValidateCustomDomainOutput struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ValidateCustomDomainOutput. +func (vcdo ValidateCustomDomainOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WebApplicationFirewallPolicy defines web application firewall policy. type WebApplicationFirewallPolicy struct { autorest.Response `json:"-"` diff --git a/services/frontdoor/mgmt/2019-11-01/frontdoor/CHANGELOG.md b/services/frontdoor/mgmt/2019-11-01/frontdoor/CHANGELOG.md index 52911e4cc5e4..3561d222f2b7 100644 --- a/services/frontdoor/mgmt/2019-11-01/frontdoor/CHANGELOG.md +++ b/services/frontdoor/mgmt/2019-11-01/frontdoor/CHANGELOG.md @@ -1,2 +1,13 @@ # Change History +## Additive Changes + +### New Funcs + +1. CheckNameAvailabilityOutput.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. LatencyMetric.MarshalJSON() ([]byte, error) +1. ManagedRuleDefinition.MarshalJSON() ([]byte, error) +1. ManagedRuleGroupDefinition.MarshalJSON() ([]byte, error) +1. ManagedRuleSetDefinitionProperties.MarshalJSON() ([]byte, error) +1. ValidateCustomDomainOutput.MarshalJSON() ([]byte, error) diff --git a/services/frontdoor/mgmt/2019-11-01/frontdoor/_meta.json b/services/frontdoor/mgmt/2019-11-01/frontdoor/_meta.json index 07529c6673c4..ae9780d74482 100644 --- a/services/frontdoor/mgmt/2019-11-01/frontdoor/_meta.json +++ b/services/frontdoor/mgmt/2019-11-01/frontdoor/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/frontdoor/resource-manager/readme.md", "tag": "package-2019-11", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/frontdoor/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/frontdoor/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/frontdoor/mgmt/2019-11-01/frontdoor/models.go b/services/frontdoor/mgmt/2019-11-01/frontdoor/models.go index 7af6ad601e9d..9facecc3d44c 100644 --- a/services/frontdoor/mgmt/2019-11-01/frontdoor/models.go +++ b/services/frontdoor/mgmt/2019-11-01/frontdoor/models.go @@ -210,6 +210,12 @@ type CheckNameAvailabilityOutput struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityOutput. +func (cnao CheckNameAvailabilityOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CustomHTTPSConfiguration https settings for a domain type CustomHTTPSConfiguration struct { // CertificateSource - Defines the source of the SSL certificate. Possible values include: 'CertificateSourceAzureKeyVault', 'CertificateSourceFrontDoor' @@ -401,6 +407,12 @@ type ErrorResponse struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Experiment defines the properties of an Experiment type Experiment struct { autorest.Response `json:"-"` @@ -1688,6 +1700,12 @@ type LatencyMetric struct { BUpper95CI *float64 `json:"bUpper95CI,omitempty"` } +// MarshalJSON is the custom marshaler for LatencyMetric. +func (lm LatencyMetric) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LatencyScorecard defines the LatencyScorecard type LatencyScorecard struct { autorest.Response `json:"-"` @@ -2120,6 +2138,12 @@ type ManagedRuleDefinition struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedRuleDefinition. +func (mrd ManagedRuleDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedRuleExclusion exclude variables from managed rule evaluation. type ManagedRuleExclusion struct { // MatchVariable - The variable type to be excluded. Possible values include: 'RequestHeaderNames', 'RequestCookieNames', 'QueryStringArgNames', 'RequestBodyPostArgNames' @@ -2140,6 +2164,12 @@ type ManagedRuleGroupDefinition struct { Rules *[]ManagedRuleDefinition `json:"rules,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedRuleGroupDefinition. +func (mrgd ManagedRuleGroupDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedRuleGroupOverride defines a managed rule group override setting. type ManagedRuleGroupOverride struct { // RuleGroupName - Describes the managed rule group to override. @@ -2457,6 +2487,12 @@ type ManagedRuleSetDefinitionProperties struct { RuleGroups *[]ManagedRuleGroupDefinition `json:"ruleGroups,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedRuleSetDefinitionProperties. +func (mrsdp ManagedRuleSetDefinitionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedRuleSetList defines the list of managed rule sets for the policy. type ManagedRuleSetList struct { // ManagedRuleSets - List of rule sets. @@ -4007,6 +4043,12 @@ type ValidateCustomDomainOutput struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ValidateCustomDomainOutput. +func (vcdo ValidateCustomDomainOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WebApplicationFirewallPolicy defines web application firewall policy. type WebApplicationFirewallPolicy struct { autorest.Response `json:"-"` diff --git a/services/frontdoor/mgmt/2020-01-01/frontdoor/CHANGELOG.md b/services/frontdoor/mgmt/2020-01-01/frontdoor/CHANGELOG.md index 52911e4cc5e4..3561d222f2b7 100644 --- a/services/frontdoor/mgmt/2020-01-01/frontdoor/CHANGELOG.md +++ b/services/frontdoor/mgmt/2020-01-01/frontdoor/CHANGELOG.md @@ -1,2 +1,13 @@ # Change History +## Additive Changes + +### New Funcs + +1. CheckNameAvailabilityOutput.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. LatencyMetric.MarshalJSON() ([]byte, error) +1. ManagedRuleDefinition.MarshalJSON() ([]byte, error) +1. ManagedRuleGroupDefinition.MarshalJSON() ([]byte, error) +1. ManagedRuleSetDefinitionProperties.MarshalJSON() ([]byte, error) +1. ValidateCustomDomainOutput.MarshalJSON() ([]byte, error) diff --git a/services/frontdoor/mgmt/2020-01-01/frontdoor/_meta.json b/services/frontdoor/mgmt/2020-01-01/frontdoor/_meta.json index 130666d15422..89fc48077aee 100644 --- a/services/frontdoor/mgmt/2020-01-01/frontdoor/_meta.json +++ b/services/frontdoor/mgmt/2020-01-01/frontdoor/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/frontdoor/resource-manager/readme.md", "tag": "package-2020-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/frontdoor/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/frontdoor/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/frontdoor/mgmt/2020-01-01/frontdoor/models.go b/services/frontdoor/mgmt/2020-01-01/frontdoor/models.go index 615fa2a5cb90..c90c3287e696 100644 --- a/services/frontdoor/mgmt/2020-01-01/frontdoor/models.go +++ b/services/frontdoor/mgmt/2020-01-01/frontdoor/models.go @@ -253,6 +253,12 @@ type CheckNameAvailabilityOutput struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityOutput. +func (cnao CheckNameAvailabilityOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CustomHTTPSConfiguration https settings for a domain type CustomHTTPSConfiguration struct { // CertificateSource - Defines the source of the SSL certificate. Possible values include: 'CertificateSourceAzureKeyVault', 'CertificateSourceFrontDoor' @@ -444,6 +450,12 @@ type ErrorResponse struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Experiment defines the properties of an Experiment type Experiment struct { autorest.Response `json:"-"` @@ -1741,6 +1753,12 @@ type LatencyMetric struct { BUpper95CI *float64 `json:"bUpper95CI,omitempty"` } +// MarshalJSON is the custom marshaler for LatencyMetric. +func (lm LatencyMetric) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LatencyScorecard defines the LatencyScorecard type LatencyScorecard struct { autorest.Response `json:"-"` @@ -2173,6 +2191,12 @@ type ManagedRuleDefinition struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedRuleDefinition. +func (mrd ManagedRuleDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedRuleExclusion exclude variables from managed rule evaluation. type ManagedRuleExclusion struct { // MatchVariable - The variable type to be excluded. Possible values include: 'RequestHeaderNames', 'RequestCookieNames', 'QueryStringArgNames', 'RequestBodyPostArgNames' @@ -2193,6 +2217,12 @@ type ManagedRuleGroupDefinition struct { Rules *[]ManagedRuleDefinition `json:"rules,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedRuleGroupDefinition. +func (mrgd ManagedRuleGroupDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedRuleGroupOverride defines a managed rule group override setting. type ManagedRuleGroupOverride struct { // RuleGroupName - Describes the managed rule group to override. @@ -2510,6 +2540,12 @@ type ManagedRuleSetDefinitionProperties struct { RuleGroups *[]ManagedRuleGroupDefinition `json:"ruleGroups,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedRuleSetDefinitionProperties. +func (mrsdp ManagedRuleSetDefinitionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedRuleSetList defines the list of managed rule sets for the policy. type ManagedRuleSetList struct { // ManagedRuleSets - List of rule sets. @@ -4507,6 +4543,12 @@ type ValidateCustomDomainOutput struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ValidateCustomDomainOutput. +func (vcdo ValidateCustomDomainOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WebApplicationFirewallPolicy defines web application firewall policy. type WebApplicationFirewallPolicy struct { autorest.Response `json:"-"` diff --git a/services/frontdoor/mgmt/2020-04-01/frontdoor/CHANGELOG.md b/services/frontdoor/mgmt/2020-04-01/frontdoor/CHANGELOG.md index 52911e4cc5e4..3561d222f2b7 100644 --- a/services/frontdoor/mgmt/2020-04-01/frontdoor/CHANGELOG.md +++ b/services/frontdoor/mgmt/2020-04-01/frontdoor/CHANGELOG.md @@ -1,2 +1,13 @@ # Change History +## Additive Changes + +### New Funcs + +1. CheckNameAvailabilityOutput.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. LatencyMetric.MarshalJSON() ([]byte, error) +1. ManagedRuleDefinition.MarshalJSON() ([]byte, error) +1. ManagedRuleGroupDefinition.MarshalJSON() ([]byte, error) +1. ManagedRuleSetDefinitionProperties.MarshalJSON() ([]byte, error) +1. ValidateCustomDomainOutput.MarshalJSON() ([]byte, error) diff --git a/services/frontdoor/mgmt/2020-04-01/frontdoor/_meta.json b/services/frontdoor/mgmt/2020-04-01/frontdoor/_meta.json index f41a999ac9bf..b4da23bb17f3 100644 --- a/services/frontdoor/mgmt/2020-04-01/frontdoor/_meta.json +++ b/services/frontdoor/mgmt/2020-04-01/frontdoor/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/frontdoor/resource-manager/readme.md", "tag": "package-2020-04", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/frontdoor/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/frontdoor/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/frontdoor/mgmt/2020-04-01/frontdoor/models.go b/services/frontdoor/mgmt/2020-04-01/frontdoor/models.go index 51cf7ebd73dd..f9f32c094862 100644 --- a/services/frontdoor/mgmt/2020-04-01/frontdoor/models.go +++ b/services/frontdoor/mgmt/2020-04-01/frontdoor/models.go @@ -253,6 +253,12 @@ type CheckNameAvailabilityOutput struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityOutput. +func (cnao CheckNameAvailabilityOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CustomHTTPSConfiguration https settings for a domain type CustomHTTPSConfiguration struct { // CertificateSource - Defines the source of the SSL certificate. Possible values include: 'CertificateSourceAzureKeyVault', 'CertificateSourceFrontDoor' @@ -444,6 +450,12 @@ type ErrorResponse struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Experiment defines the properties of an Experiment type Experiment struct { autorest.Response `json:"-"` @@ -1741,6 +1753,12 @@ type LatencyMetric struct { BUpper95CI *float64 `json:"bUpper95CI,omitempty"` } +// MarshalJSON is the custom marshaler for LatencyMetric. +func (lm LatencyMetric) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LatencyScorecard defines the LatencyScorecard type LatencyScorecard struct { autorest.Response `json:"-"` @@ -2173,6 +2191,12 @@ type ManagedRuleDefinition struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedRuleDefinition. +func (mrd ManagedRuleDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedRuleExclusion exclude variables from managed rule evaluation. type ManagedRuleExclusion struct { // MatchVariable - The variable type to be excluded. Possible values include: 'RequestHeaderNames', 'RequestCookieNames', 'QueryStringArgNames', 'RequestBodyPostArgNames' @@ -2193,6 +2217,12 @@ type ManagedRuleGroupDefinition struct { Rules *[]ManagedRuleDefinition `json:"rules,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedRuleGroupDefinition. +func (mrgd ManagedRuleGroupDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedRuleGroupOverride defines a managed rule group override setting. type ManagedRuleGroupOverride struct { // RuleGroupName - Describes the managed rule group to override. @@ -2510,6 +2540,12 @@ type ManagedRuleSetDefinitionProperties struct { RuleGroups *[]ManagedRuleGroupDefinition `json:"ruleGroups,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedRuleSetDefinitionProperties. +func (mrsdp ManagedRuleSetDefinitionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedRuleSetList defines the list of managed rule sets for the policy. type ManagedRuleSetList struct { // ManagedRuleSets - List of rule sets. @@ -4542,6 +4578,12 @@ type ValidateCustomDomainOutput struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ValidateCustomDomainOutput. +func (vcdo ValidateCustomDomainOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WebApplicationFirewallPolicy defines web application firewall policy. type WebApplicationFirewallPolicy struct { autorest.Response `json:"-"` diff --git a/services/frontdoor/mgmt/2020-05-01/frontdoor/CHANGELOG.md b/services/frontdoor/mgmt/2020-05-01/frontdoor/CHANGELOG.md index 52911e4cc5e4..3561d222f2b7 100644 --- a/services/frontdoor/mgmt/2020-05-01/frontdoor/CHANGELOG.md +++ b/services/frontdoor/mgmt/2020-05-01/frontdoor/CHANGELOG.md @@ -1,2 +1,13 @@ # Change History +## Additive Changes + +### New Funcs + +1. CheckNameAvailabilityOutput.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. LatencyMetric.MarshalJSON() ([]byte, error) +1. ManagedRuleDefinition.MarshalJSON() ([]byte, error) +1. ManagedRuleGroupDefinition.MarshalJSON() ([]byte, error) +1. ManagedRuleSetDefinitionProperties.MarshalJSON() ([]byte, error) +1. ValidateCustomDomainOutput.MarshalJSON() ([]byte, error) diff --git a/services/frontdoor/mgmt/2020-05-01/frontdoor/_meta.json b/services/frontdoor/mgmt/2020-05-01/frontdoor/_meta.json index 6c5c262f7b58..9cd9f44048cf 100644 --- a/services/frontdoor/mgmt/2020-05-01/frontdoor/_meta.json +++ b/services/frontdoor/mgmt/2020-05-01/frontdoor/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/frontdoor/resource-manager/readme.md", "tag": "package-2020-05", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/frontdoor/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/frontdoor/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/frontdoor/mgmt/2020-05-01/frontdoor/models.go b/services/frontdoor/mgmt/2020-05-01/frontdoor/models.go index 181ea79392ee..1aed4e0c4886 100644 --- a/services/frontdoor/mgmt/2020-05-01/frontdoor/models.go +++ b/services/frontdoor/mgmt/2020-05-01/frontdoor/models.go @@ -263,6 +263,12 @@ type CheckNameAvailabilityOutput struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityOutput. +func (cnao CheckNameAvailabilityOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CustomHTTPSConfiguration https settings for a domain type CustomHTTPSConfiguration struct { // CertificateSource - Defines the source of the SSL certificate. Possible values include: 'CertificateSourceAzureKeyVault', 'CertificateSourceFrontDoor' @@ -454,6 +460,12 @@ type ErrorResponse struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Experiment defines the properties of an Experiment type Experiment struct { autorest.Response `json:"-"` @@ -1751,6 +1763,12 @@ type LatencyMetric struct { BUpper95CI *float64 `json:"bUpper95CI,omitempty"` } +// MarshalJSON is the custom marshaler for LatencyMetric. +func (lm LatencyMetric) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LatencyScorecard defines the LatencyScorecard type LatencyScorecard struct { autorest.Response `json:"-"` @@ -2183,6 +2201,12 @@ type ManagedRuleDefinition struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedRuleDefinition. +func (mrd ManagedRuleDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedRuleExclusion exclude variables from managed rule evaluation. type ManagedRuleExclusion struct { // MatchVariable - The variable type to be excluded. Possible values include: 'RequestHeaderNames', 'RequestCookieNames', 'QueryStringArgNames', 'RequestBodyPostArgNames' @@ -2203,6 +2227,12 @@ type ManagedRuleGroupDefinition struct { Rules *[]ManagedRuleDefinition `json:"rules,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedRuleGroupDefinition. +func (mrgd ManagedRuleGroupDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedRuleGroupOverride defines a managed rule group override setting. type ManagedRuleGroupOverride struct { // RuleGroupName - Describes the managed rule group to override. @@ -2520,6 +2550,12 @@ type ManagedRuleSetDefinitionProperties struct { RuleGroups *[]ManagedRuleGroupDefinition `json:"ruleGroups,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedRuleSetDefinitionProperties. +func (mrsdp ManagedRuleSetDefinitionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedRuleSetList defines the list of managed rule sets for the policy. type ManagedRuleSetList struct { // ManagedRuleSets - List of rule sets. @@ -4552,6 +4588,12 @@ type ValidateCustomDomainOutput struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ValidateCustomDomainOutput. +func (vcdo ValidateCustomDomainOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WebApplicationFirewallPolicy defines web application firewall policy. type WebApplicationFirewallPolicy struct { autorest.Response `json:"-"` diff --git a/services/graphrbac/1.6/graphrbac/_meta.json b/services/graphrbac/1.6/graphrbac/_meta.json index d220d38b55fc..7d27265f26f9 100644 --- a/services/graphrbac/1.6/graphrbac/_meta.json +++ b/services/graphrbac/1.6/graphrbac/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/graphrbac/data-plane/readme.md", "tag": "1.6", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=1.6 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/graphrbac/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=1.6 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/graphrbac/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/guestconfiguration/mgmt/2020-06-25/guestconfiguration/CHANGELOG.md b/services/guestconfiguration/mgmt/2020-06-25/guestconfiguration/CHANGELOG.md index 52911e4cc5e4..ea04f82cd9c9 100644 --- a/services/guestconfiguration/mgmt/2020-06-25/guestconfiguration/CHANGELOG.md +++ b/services/guestconfiguration/mgmt/2020-06-25/guestconfiguration/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. AssignmentReportResourceComplianceReason.MarshalJSON() ([]byte, error) +1. ConfigurationInfo.MarshalJSON() ([]byte, error) +1. VMInfo.MarshalJSON() ([]byte, error) diff --git a/services/guestconfiguration/mgmt/2020-06-25/guestconfiguration/_meta.json b/services/guestconfiguration/mgmt/2020-06-25/guestconfiguration/_meta.json index c0e63d4cbfd9..cafdb8913f82 100644 --- a/services/guestconfiguration/mgmt/2020-06-25/guestconfiguration/_meta.json +++ b/services/guestconfiguration/mgmt/2020-06-25/guestconfiguration/_meta.json @@ -2,9 +2,9 @@ "commit": "e0f8b9ab0f5fe5e71b7429ebfea8a33c19ec9d8d", "readme": "/_/azure-rest-api-specs/specification/guestconfiguration/resource-manager/readme.md", "tag": "package-2020-06-25", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-06-25 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/guestconfiguration/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-06-25 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/guestconfiguration/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/guestconfiguration/mgmt/2020-06-25/guestconfiguration/models.go b/services/guestconfiguration/mgmt/2020-06-25/guestconfiguration/models.go index c2000de9182f..d0b22097eb8f 100644 --- a/services/guestconfiguration/mgmt/2020-06-25/guestconfiguration/models.go +++ b/services/guestconfiguration/mgmt/2020-06-25/guestconfiguration/models.go @@ -239,6 +239,12 @@ type AssignmentReportResourceComplianceReason struct { Code *string `json:"code,omitempty"` } +// MarshalJSON is the custom marshaler for AssignmentReportResourceComplianceReason. +func (arrcr AssignmentReportResourceComplianceReason) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AssignmentReportType report for the guest configuration assignment. Report contains information such as // compliance status, reason, and more. type AssignmentReportType struct { @@ -268,6 +274,12 @@ type ConfigurationInfo struct { Version *string `json:"version,omitempty"` } +// MarshalJSON is the custom marshaler for ConfigurationInfo. +func (ci ConfigurationInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConfigurationParameter represents a configuration parameter. type ConfigurationParameter struct { // Name - Name of the configuration parameter. @@ -522,3 +534,9 @@ type VMInfo struct { // UUID - READ-ONLY; UUID(Universally Unique Identifier) of the VM. UUID *string `json:"uuid,omitempty"` } + +// MarshalJSON is the custom marshaler for VMInfo. +func (vi VMInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/hdinsight/mgmt/2018-06-01/hdinsight/CHANGELOG.md b/services/hdinsight/mgmt/2018-06-01/hdinsight/CHANGELOG.md index 35fe27a10394..91c4f3ef4666 100644 --- a/services/hdinsight/mgmt/2018-06-01/hdinsight/CHANGELOG.md +++ b/services/hdinsight/mgmt/2018-06-01/hdinsight/CHANGELOG.md @@ -1,175 +1,12 @@ # Change History -## Breaking Changes - -### Removed Constants - -1. AsyncOperationState.Failed -1. AsyncOperationState.InProgress -1. AsyncOperationState.Succeeded -1. DaysOfWeek.Friday -1. DaysOfWeek.Monday -1. DaysOfWeek.Saturday -1. DaysOfWeek.Sunday -1. DaysOfWeek.Thursday -1. DaysOfWeek.Tuesday -1. DaysOfWeek.Wednesday -1. DirectoryType.ActiveDirectory -1. FilterMode.Default -1. FilterMode.Exclude -1. FilterMode.Include -1. FilterMode.Recommend -1. JSONWebKeyEncryptionAlgorithm.RSA15 -1. JSONWebKeyEncryptionAlgorithm.RSAOAEP -1. JSONWebKeyEncryptionAlgorithm.RSAOAEP256 -1. OSType.Linux -1. OSType.Windows -1. PrivateLink.Disabled -1. PrivateLink.Enabled -1. ResourceIdentityType.None -1. ResourceIdentityType.SystemAssigned -1. ResourceIdentityType.SystemAssignedUserAssigned -1. ResourceIdentityType.UserAssigned -1. ResourceProviderConnection.Inbound -1. ResourceProviderConnection.Outbound -1. Tier.Premium -1. Tier.Standard - -### Struct Changes - -#### Removed Structs - -1. OperationResource - -#### Removed Struct Fields - -1. CapabilitiesResult.VMSizeFilters -1. CapabilitiesResult.VMSizes -1. Extension.autorest.Response -1. VMSizeCompatibilityFilter.Vmsizes - -### Signature Changes - -#### Funcs - -1. ExtensionsClient.Get - - Returns - - From: Extension, error - - To: ClusterMonitoringResponse, error -1. ExtensionsClient.GetResponder - - Returns - - From: Extension, error - - To: ClusterMonitoringResponse, error - -#### Struct Fields - -1. Usage.CurrentValue changed type from *int32 to *int64 -1. Usage.Limit changed type from *int32 to *int64 -1. VersionSpec.IsDefault changed type from *string to *bool - ## Additive Changes -### New Constants - -1. AsyncOperationState.AsyncOperationStateFailed -1. AsyncOperationState.AsyncOperationStateInProgress -1. AsyncOperationState.AsyncOperationStateSucceeded -1. DaysOfWeek.DaysOfWeekFriday -1. DaysOfWeek.DaysOfWeekMonday -1. DaysOfWeek.DaysOfWeekSaturday -1. DaysOfWeek.DaysOfWeekSunday -1. DaysOfWeek.DaysOfWeekThursday -1. DaysOfWeek.DaysOfWeekTuesday -1. DaysOfWeek.DaysOfWeekWednesday -1. DirectoryType.DirectoryTypeActiveDirectory -1. FilterMode.FilterModeDefault -1. FilterMode.FilterModeExclude -1. FilterMode.FilterModeInclude -1. FilterMode.FilterModeRecommend -1. JSONWebKeyEncryptionAlgorithm.JSONWebKeyEncryptionAlgorithmRSA15 -1. JSONWebKeyEncryptionAlgorithm.JSONWebKeyEncryptionAlgorithmRSAOAEP -1. JSONWebKeyEncryptionAlgorithm.JSONWebKeyEncryptionAlgorithmRSAOAEP256 -1. OSType.OSTypeLinux -1. OSType.OSTypeWindows -1. PrivateLink.PrivateLinkDisabled -1. PrivateLink.PrivateLinkEnabled -1. ResourceIdentityType.ResourceIdentityTypeNone -1. ResourceIdentityType.ResourceIdentityTypeSystemAssigned -1. ResourceIdentityType.ResourceIdentityTypeSystemAssignedUserAssigned -1. ResourceIdentityType.ResourceIdentityTypeUserAssigned -1. ResourceProviderConnection.ResourceProviderConnectionInbound -1. ResourceProviderConnection.ResourceProviderConnectionOutbound -1. Tier.TierPremium -1. Tier.TierStandard - ### New Funcs -1. *ClustersUpdateIdentityCertificateFuture.UnmarshalJSON([]byte) error -1. ApplicationGetHTTPSEndpoint.MarshalJSON() ([]byte, error) -1. ApplicationsClient.GetAzureAsyncOperationStatus(context.Context, string, string, string, string) (AsyncOperationResult, error) -1. ApplicationsClient.GetAzureAsyncOperationStatusPreparer(context.Context, string, string, string, string) (*http.Request, error) -1. ApplicationsClient.GetAzureAsyncOperationStatusResponder(*http.Response) (AsyncOperationResult, error) -1. ApplicationsClient.GetAzureAsyncOperationStatusSender(*http.Request) (*http.Response, error) -1. ClusterCreateRequestValidationParameters.MarshalJSON() ([]byte, error) -1. ClustersClient.GetAzureAsyncOperationStatus(context.Context, string, string, string) (AsyncOperationResult, error) -1. ClustersClient.GetAzureAsyncOperationStatusPreparer(context.Context, string, string, string) (*http.Request, error) -1. ClustersClient.GetAzureAsyncOperationStatusResponder(*http.Response) (AsyncOperationResult, error) -1. ClustersClient.GetAzureAsyncOperationStatusSender(*http.Request) (*http.Response, error) -1. ClustersClient.UpdateIdentityCertificate(context.Context, string, string, UpdateClusterIdentityCertificateParameters) (ClustersUpdateIdentityCertificateFuture, error) -1. ClustersClient.UpdateIdentityCertificatePreparer(context.Context, string, string, UpdateClusterIdentityCertificateParameters) (*http.Request, error) -1. ClustersClient.UpdateIdentityCertificateResponder(*http.Response) (autorest.Response, error) -1. ClustersClient.UpdateIdentityCertificateSender(*http.Request) (ClustersUpdateIdentityCertificateFuture, error) -1. ExtensionsClient.GetAzureAsyncOperationStatus(context.Context, string, string, string, string) (AsyncOperationResult, error) -1. ExtensionsClient.GetAzureAsyncOperationStatusPreparer(context.Context, string, string, string, string) (*http.Request, error) -1. ExtensionsClient.GetAzureAsyncOperationStatusResponder(*http.Response) (AsyncOperationResult, error) -1. ExtensionsClient.GetAzureAsyncOperationStatusSender(*http.Request) (*http.Response, error) -1. KafkaRestProperties.MarshalJSON() ([]byte, error) -1. LocationsClient.CheckNameAvailability(context.Context, string, NameAvailabilityCheckRequestParameters) (NameAvailabilityCheckResult, error) -1. LocationsClient.CheckNameAvailabilityPreparer(context.Context, string, NameAvailabilityCheckRequestParameters) (*http.Request, error) -1. LocationsClient.CheckNameAvailabilityResponder(*http.Response) (NameAvailabilityCheckResult, error) -1. LocationsClient.CheckNameAvailabilitySender(*http.Request) (*http.Response, error) -1. LocationsClient.GetAzureAsyncOperationStatus(context.Context, string, string) (AsyncOperationResult, error) -1. LocationsClient.GetAzureAsyncOperationStatusPreparer(context.Context, string, string) (*http.Request, error) -1. LocationsClient.GetAzureAsyncOperationStatusResponder(*http.Response) (AsyncOperationResult, error) -1. LocationsClient.GetAzureAsyncOperationStatusSender(*http.Request) (*http.Response, error) -1. LocationsClient.ValidateClusterCreateRequest(context.Context, string, ClusterCreateRequestValidationParameters) (ClusterCreateValidationResult, error) -1. LocationsClient.ValidateClusterCreateRequestPreparer(context.Context, string, ClusterCreateRequestValidationParameters) (*http.Request, error) -1. LocationsClient.ValidateClusterCreateRequestResponder(*http.Response) (ClusterCreateValidationResult, error) -1. LocationsClient.ValidateClusterCreateRequestSender(*http.Request) (*http.Response, error) -1. NameAvailabilityCheckResult.MarshalJSON() ([]byte, error) -1. ScriptActionsClient.GetExecutionAsyncOperationStatus(context.Context, string, string, string) (AsyncOperationResult, error) -1. ScriptActionsClient.GetExecutionAsyncOperationStatusPreparer(context.Context, string, string, string) (*http.Request, error) -1. ScriptActionsClient.GetExecutionAsyncOperationStatusResponder(*http.Response) (AsyncOperationResult, error) -1. ScriptActionsClient.GetExecutionAsyncOperationStatusSender(*http.Request) (*http.Response, error) -1. VirtualMachinesClient.GetAsyncOperationStatus(context.Context, string, string, string) (AsyncOperationResult, error) -1. VirtualMachinesClient.GetAsyncOperationStatusPreparer(context.Context, string, string, string) (*http.Request, error) -1. VirtualMachinesClient.GetAsyncOperationStatusResponder(*http.Response) (AsyncOperationResult, error) -1. VirtualMachinesClient.GetAsyncOperationStatusSender(*http.Request) (*http.Response, error) - -### Struct Changes - -#### New Structs - -1. AaddsResourceDetails -1. AsyncOperationResult -1. ClusterCreateRequestValidationParameters -1. ClusterCreateValidationResult -1. ClustersUpdateIdentityCertificateFuture -1. NameAvailabilityCheckRequestParameters -1. NameAvailabilityCheckResult -1. UpdateClusterIdentityCertificateParameters -1. ValidationErrorInfo - -#### New Struct Fields - -1. ApplicationGetHTTPSEndpoint.PrivateIPAddress -1. CapabilitiesResult.VmsizeFilters -1. CapabilitiesResult.Vmsizes -1. KafkaRestProperties.ConfigurationOverride -1. Role.VMGroupName -1. StorageAccount.Fileshare -1. StorageAccount.Saskey -1. VMSizeCompatibilityFilter.ComputeIsolationSupported -1. VMSizeCompatibilityFilter.ESPApplied -1. VMSizeCompatibilityFilter.OsType -1. VMSizeCompatibilityFilter.VMSizes +1. ClusterListRuntimeScriptActionDetailResult.MarshalJSON() ([]byte, error) +1. GatewaySettings.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ScriptActionExecutionHistoryList.MarshalJSON() ([]byte, error) +1. ScriptActionExecutionSummary.MarshalJSON() ([]byte, error) diff --git a/services/hdinsight/mgmt/2018-06-01/hdinsight/_meta.json b/services/hdinsight/mgmt/2018-06-01/hdinsight/_meta.json index 6e62f313af90..d23718c621a6 100644 --- a/services/hdinsight/mgmt/2018-06-01/hdinsight/_meta.json +++ b/services/hdinsight/mgmt/2018-06-01/hdinsight/_meta.json @@ -2,9 +2,9 @@ "commit": "c2ea3a3ccd14293b4bd1d17e684ef9129f0dc604", "readme": "/_/azure-rest-api-specs/specification/hdinsight/resource-manager/readme.md", "tag": "package-2018-06-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-06-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/hdinsight/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-06-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/hdinsight/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix" } diff --git a/services/hdinsight/mgmt/2018-06-01/hdinsight/models.go b/services/hdinsight/mgmt/2018-06-01/hdinsight/models.go index 28ca64d908b4..75ae3b2311bd 100644 --- a/services/hdinsight/mgmt/2018-06-01/hdinsight/models.go +++ b/services/hdinsight/mgmt/2018-06-01/hdinsight/models.go @@ -1088,6 +1088,12 @@ type ClusterListRuntimeScriptActionDetailResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ClusterListRuntimeScriptActionDetailResult. +func (clrsadr ClusterListRuntimeScriptActionDetailResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ClusterMonitoringRequest the cluster monitor parameters. type ClusterMonitoringRequest struct { // WorkspaceID - The cluster monitor workspace ID. @@ -1755,6 +1761,12 @@ type GatewaySettings struct { Password *string `json:"restAuthCredential.password,omitempty"` } +// MarshalJSON is the custom marshaler for GatewaySettings. +func (gs GatewaySettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HardwareProfile the hardware profile. type HardwareProfile struct { // VMSize - The size of the VM @@ -2094,6 +2106,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QuotaCapability the regional quota capability. type QuotaCapability struct { // CoresUsed - The number of cores used in the subscription. @@ -2136,6 +2154,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Role describes a role on the cluster. type Role struct { // Name - The name of the role. @@ -2260,6 +2284,12 @@ type ScriptActionExecutionHistoryList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ScriptActionExecutionHistoryList. +func (saehl ScriptActionExecutionHistoryList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ScriptActionExecutionHistoryListIterator provides access to a complete listing of // RuntimeScriptActionDetail values. type ScriptActionExecutionHistoryListIterator struct { @@ -2419,6 +2449,12 @@ type ScriptActionExecutionSummary struct { InstanceCount *int32 `json:"instanceCount,omitempty"` } +// MarshalJSON is the custom marshaler for ScriptActionExecutionSummary. +func (saes ScriptActionExecutionSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ScriptActionPersistedGetResponseSpec the persisted script action for cluster. type ScriptActionPersistedGetResponseSpec struct { // Name - The name of script action. diff --git a/services/healthbot/mgmt/2020-12-08/healthbot/CHANGELOG.md b/services/healthbot/mgmt/2020-12-08/healthbot/CHANGELOG.md index 52911e4cc5e4..a9bc3b11ce8f 100644 --- a/services/healthbot/mgmt/2020-12-08/healthbot/CHANGELOG.md +++ b/services/healthbot/mgmt/2020-12-08/healthbot/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. BotResponseList.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorError.MarshalJSON() ([]byte, error) +1. Properties.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/healthbot/mgmt/2020-12-08/healthbot/_meta.json b/services/healthbot/mgmt/2020-12-08/healthbot/_meta.json index 9195041a1809..3f4415123075 100644 --- a/services/healthbot/mgmt/2020-12-08/healthbot/_meta.json +++ b/services/healthbot/mgmt/2020-12-08/healthbot/_meta.json @@ -2,9 +2,9 @@ "commit": "4c93f28f89435f6d244f4db61bbf810b5d20f09f", "readme": "/_/azure-rest-api-specs/specification/healthbot/resource-manager/readme.md", "tag": "package-2020-12-08", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-12-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/healthbot/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-12-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/healthbot/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/healthbot/mgmt/2020-12-08/healthbot/models.go b/services/healthbot/mgmt/2020-12-08/healthbot/models.go index 0b6bbb240320..75457edb29ee 100644 --- a/services/healthbot/mgmt/2020-12-08/healthbot/models.go +++ b/services/healthbot/mgmt/2020-12-08/healthbot/models.go @@ -189,6 +189,12 @@ type BotResponseList struct { Value *[]HealthBot `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for BotResponseList. +func (brl BotResponseList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BotResponseListIterator provides access to a complete listing of HealthBot values. type BotResponseListIterator struct { i int @@ -431,6 +437,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorError the error object. type ErrorError struct { // Code - READ-ONLY; The error code. @@ -445,6 +457,12 @@ type ErrorError struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorError. +func (e ErrorError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HealthBot healthBot resource definition type HealthBot struct { autorest.Response `json:"-"` @@ -520,6 +538,12 @@ type Properties struct { BotManagementPortalLink *string `json:"botManagementPortalLink,omitempty"` } +// MarshalJSON is the custom marshaler for Properties. +func (p Properties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource the resource model definition for a ARM tracked top level resource type Resource struct { // ID - READ-ONLY; Fully qualified resource Id for the resource. @@ -532,6 +556,12 @@ type Resource struct { SystemData *SystemData `json:"systemData,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Sku the resource model definition representing SKU type Sku struct { // Name - The name of the HealthBot SKU. Possible values include: 'F0', 'S1', 'C0' diff --git a/services/healthcareapis/mgmt/2019-09-16/healthcareapis/CHANGELOG.md b/services/healthcareapis/mgmt/2019-09-16/healthcareapis/CHANGELOG.md index 52911e4cc5e4..9b14150093b3 100644 --- a/services/healthcareapis/mgmt/2019-09-16/healthcareapis/CHANGELOG.md +++ b/services/healthcareapis/mgmt/2019-09-16/healthcareapis/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. ErrorDetailsInternal.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) diff --git a/services/healthcareapis/mgmt/2019-09-16/healthcareapis/_meta.json b/services/healthcareapis/mgmt/2019-09-16/healthcareapis/_meta.json index 20ff3e4fe049..87214a03338e 100644 --- a/services/healthcareapis/mgmt/2019-09-16/healthcareapis/_meta.json +++ b/services/healthcareapis/mgmt/2019-09-16/healthcareapis/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/healthcareapis/resource-manager/readme.md", "tag": "package-2019-09", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/healthcareapis/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/healthcareapis/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/healthcareapis/mgmt/2019-09-16/healthcareapis/models.go b/services/healthcareapis/mgmt/2019-09-16/healthcareapis/models.go index f04c8a5399cc..e0c063a88fef 100644 --- a/services/healthcareapis/mgmt/2019-09-16/healthcareapis/models.go +++ b/services/healthcareapis/mgmt/2019-09-16/healthcareapis/models.go @@ -43,6 +43,12 @@ type ErrorDetailsInternal struct { Target *string `json:"target,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetailsInternal. +func (edi ErrorDetailsInternal) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation service REST API operation. type Operation struct { // Name - READ-ONLY; Operation name: {provider}/{resource}/{read | write | action | delete} @@ -74,6 +80,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (od OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult a list of service operations. It contains a list of operations and a URL link to get // the next set of results. type OperationListResult struct { diff --git a/services/healthcareapis/mgmt/2020-03-15/healthcareapis/CHANGELOG.md b/services/healthcareapis/mgmt/2020-03-15/healthcareapis/CHANGELOG.md index 52911e4cc5e4..9b14150093b3 100644 --- a/services/healthcareapis/mgmt/2020-03-15/healthcareapis/CHANGELOG.md +++ b/services/healthcareapis/mgmt/2020-03-15/healthcareapis/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. ErrorDetailsInternal.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) diff --git a/services/healthcareapis/mgmt/2020-03-15/healthcareapis/_meta.json b/services/healthcareapis/mgmt/2020-03-15/healthcareapis/_meta.json index f57bacf0c270..9c267e061bef 100644 --- a/services/healthcareapis/mgmt/2020-03-15/healthcareapis/_meta.json +++ b/services/healthcareapis/mgmt/2020-03-15/healthcareapis/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/healthcareapis/resource-manager/readme.md", "tag": "package-2020-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/healthcareapis/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/healthcareapis/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/healthcareapis/mgmt/2020-03-15/healthcareapis/models.go b/services/healthcareapis/mgmt/2020-03-15/healthcareapis/models.go index 0ddfb6299589..9cdbc1b46d2e 100644 --- a/services/healthcareapis/mgmt/2020-03-15/healthcareapis/models.go +++ b/services/healthcareapis/mgmt/2020-03-15/healthcareapis/models.go @@ -43,6 +43,12 @@ type ErrorDetailsInternal struct { Target *string `json:"target,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetailsInternal. +func (edi ErrorDetailsInternal) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation service REST API operation. type Operation struct { // Name - READ-ONLY; Operation name: {provider}/{resource}/{read | write | action | delete} @@ -74,6 +80,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (od OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult a list of service operations. It contains a list of operations and a URL link to get // the next set of results. type OperationListResult struct { diff --git a/services/healthcareapis/mgmt/2020-03-30/healthcareapis/CHANGELOG.md b/services/healthcareapis/mgmt/2020-03-30/healthcareapis/CHANGELOG.md index 52911e4cc5e4..fd8d251183bc 100644 --- a/services/healthcareapis/mgmt/2020-03-30/healthcareapis/CHANGELOG.md +++ b/services/healthcareapis/mgmt/2020-03-30/healthcareapis/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ErrorDetailsInternal.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. PrivateEndpoint.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/healthcareapis/mgmt/2020-03-30/healthcareapis/_meta.json b/services/healthcareapis/mgmt/2020-03-30/healthcareapis/_meta.json index 289eb564861d..382ae26afbe1 100644 --- a/services/healthcareapis/mgmt/2020-03-30/healthcareapis/_meta.json +++ b/services/healthcareapis/mgmt/2020-03-30/healthcareapis/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/healthcareapis/resource-manager/readme.md", "tag": "package-2020-03-30", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-03-30 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/healthcareapis/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-03-30 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/healthcareapis/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/healthcareapis/mgmt/2020-03-30/healthcareapis/models.go b/services/healthcareapis/mgmt/2020-03-30/healthcareapis/models.go index 334671a5edb1..0ae136e67319 100644 --- a/services/healthcareapis/mgmt/2020-03-30/healthcareapis/models.go +++ b/services/healthcareapis/mgmt/2020-03-30/healthcareapis/models.go @@ -31,6 +31,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CheckNameAvailabilityParameters input values. type CheckNameAvailabilityParameters struct { // Name - The name of the service instance to check. @@ -55,6 +61,12 @@ type ErrorDetailsInternal struct { Target *string `json:"target,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetailsInternal. +func (edi ErrorDetailsInternal) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation service REST API operation. type Operation struct { // Name - READ-ONLY; Operation name: {provider}/{resource}/{read | write | action | delete} @@ -86,6 +98,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (od OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult a list of service operations. It contains a list of operations and a URL link to get // the next set of results. type OperationListResult struct { @@ -284,6 +302,12 @@ type PrivateEndpoint struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpoint. +func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection the Private Endpoint Connection resource. type PrivateEndpointConnection struct { autorest.Response `json:"-"` @@ -576,6 +600,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -586,6 +616,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceAccessPolicyEntry an access policy entry. type ServiceAccessPolicyEntry struct { // ObjectID - An Azure AD object ID (User or Apps) that is allowed access to the FHIR service. diff --git a/services/hybridcompute/mgmt/2019-12-12/hybridcompute/CHANGELOG.md b/services/hybridcompute/mgmt/2019-12-12/hybridcompute/CHANGELOG.md index 52911e4cc5e4..ea37a8baeab4 100644 --- a/services/hybridcompute/mgmt/2019-12-12/hybridcompute/CHANGELOG.md +++ b/services/hybridcompute/mgmt/2019-12-12/hybridcompute/CHANGELOG.md @@ -1,2 +1,16 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. MachinePropertiesOsProfile.MarshalJSON() ([]byte, error) +1. OSProfile.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OperationValueDisplay.MarshalJSON() ([]byte, error) +1. OperationValueDisplayModel.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/hybridcompute/mgmt/2019-12-12/hybridcompute/_meta.json b/services/hybridcompute/mgmt/2019-12-12/hybridcompute/_meta.json index 0e2b89e6e5db..9cf45d8de020 100644 --- a/services/hybridcompute/mgmt/2019-12-12/hybridcompute/_meta.json +++ b/services/hybridcompute/mgmt/2019-12-12/hybridcompute/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/hybridcompute/resource-manager/readme.md", "tag": "package-2019-12", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/hybridcompute/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/hybridcompute/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/hybridcompute/mgmt/2019-12-12/hybridcompute/models.go b/services/hybridcompute/mgmt/2019-12-12/hybridcompute/models.go index c07faca2c715..c593f1eefb64 100644 --- a/services/hybridcompute/mgmt/2019-12-12/hybridcompute/models.go +++ b/services/hybridcompute/mgmt/2019-12-12/hybridcompute/models.go @@ -32,6 +32,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorAdditionalInfo the resource management error additional info. type ErrorAdditionalInfo struct { // Type - READ-ONLY; The additional info type. @@ -40,6 +46,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetail ... type ErrorDetail struct { // Code - The error's code. @@ -67,6 +79,12 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Identity identity for the resource. type Identity struct { // PrincipalID - READ-ONLY; The principal ID of resource identity. @@ -1114,6 +1132,12 @@ type MachinePropertiesOsProfile struct { ComputerName *string `json:"computerName,omitempty"` } +// MarshalJSON is the custom marshaler for MachinePropertiesOsProfile. +func (mpP MachinePropertiesOsProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MachineReconnect describes a hybrid machine reconnect. type MachineReconnect struct { // MachineReconnectPropertiesModel - Hybrid Compute Machine properties @@ -1272,6 +1296,12 @@ type OperationListResult struct { Value *[]OperationValue `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationValue describes the properties of a Compute Operation value. type OperationValue struct { // Origin - READ-ONLY; The origin of the compute operation. @@ -1345,6 +1375,12 @@ type OperationValueDisplay struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationValueDisplay. +func (ov OperationValueDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationValueDisplayModel describes the properties of a Hybrid Compute Operation Value Display. type OperationValueDisplayModel struct { // Operation - READ-ONLY; The display name of the compute operation. @@ -1357,12 +1393,24 @@ type OperationValueDisplayModel struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationValueDisplayModel. +func (ovdm OperationValueDisplayModel) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OSProfile specifies the operating system settings for the hybrid machine. type OSProfile struct { // ComputerName - READ-ONLY; Specifies the host OS name of the hybrid machine. ComputerName *string `json:"computerName,omitempty"` } +// MarshalJSON is the custom marshaler for OSProfile. +func (op OSProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Plan plan for the resource. type Plan struct { // Name - A user defined name of the 3rd Party Artifact that is being procured. @@ -1388,6 +1436,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -1398,6 +1452,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceModelWithAllowedPropertySet the resource model definition containing the full set of allowed // properties for a resource. Except properties bag, there cannot be a top level property outside of this // set. diff --git a/services/hybridcompute/mgmt/2020-08-02/hybridcompute/CHANGELOG.md b/services/hybridcompute/mgmt/2020-08-02/hybridcompute/CHANGELOG.md index 52911e4cc5e4..90651635750e 100644 --- a/services/hybridcompute/mgmt/2020-08-02/hybridcompute/CHANGELOG.md +++ b/services/hybridcompute/mgmt/2020-08-02/hybridcompute/CHANGELOG.md @@ -1,2 +1,15 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. MachineExtensionInstanceViewStatus.MarshalJSON() ([]byte, error) +1. MachinePropertiesOsProfile.MarshalJSON() ([]byte, error) +1. OSProfile.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OperationValueDisplay.MarshalJSON() ([]byte, error) +1. OperationValueDisplayModel.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/hybridcompute/mgmt/2020-08-02/hybridcompute/_meta.json b/services/hybridcompute/mgmt/2020-08-02/hybridcompute/_meta.json index a82c031b1035..1ecd24299c77 100644 --- a/services/hybridcompute/mgmt/2020-08-02/hybridcompute/_meta.json +++ b/services/hybridcompute/mgmt/2020-08-02/hybridcompute/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/hybridcompute/resource-manager/readme.md", "tag": "package-2020-08-02", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-08-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/hybridcompute/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-08-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/hybridcompute/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/hybridcompute/mgmt/2020-08-02/hybridcompute/models.go b/services/hybridcompute/mgmt/2020-08-02/hybridcompute/models.go index 0dc9579ad910..07070fb4d2ea 100644 --- a/services/hybridcompute/mgmt/2020-08-02/hybridcompute/models.go +++ b/services/hybridcompute/mgmt/2020-08-02/hybridcompute/models.go @@ -32,6 +32,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetail ... type ErrorDetail struct { // Code - The error's code. @@ -331,6 +337,12 @@ type MachineExtensionInstanceViewStatus struct { Time *date.Time `json:"time,omitempty"` } +// MarshalJSON is the custom marshaler for MachineExtensionInstanceViewStatus. +func (meiv MachineExtensionInstanceViewStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MachineExtensionProperties describes Machine Extension Properties. type MachineExtensionProperties struct { // ForceUpdateTag - How the extension handler should be forced to update even if the extension configuration has not changed. @@ -1129,6 +1141,12 @@ type MachinePropertiesOsProfile struct { ComputerName *string `json:"computerName,omitempty"` } +// MarshalJSON is the custom marshaler for MachinePropertiesOsProfile. +func (mpP MachinePropertiesOsProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MachineUpdate describes a hybrid machine Update. type MachineUpdate struct { // MachineUpdateIdentity - Hybrid Compute Machine Managed Identity @@ -1232,6 +1250,12 @@ type OperationListResult struct { Value *[]OperationValue `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationValue describes the properties of a Compute Operation value. type OperationValue struct { // Origin - READ-ONLY; The origin of the compute operation. @@ -1305,6 +1329,12 @@ type OperationValueDisplay struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationValueDisplay. +func (ov OperationValueDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationValueDisplayModel describes the properties of a Hybrid Compute Operation Value Display. type OperationValueDisplayModel struct { // Operation - READ-ONLY; The display name of the compute operation. @@ -1317,12 +1347,24 @@ type OperationValueDisplayModel struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationValueDisplayModel. +func (ovdm OperationValueDisplayModel) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OSProfile specifies the operating system settings for the hybrid machine. type OSProfile struct { // ComputerName - READ-ONLY; Specifies the host OS name of the hybrid machine. ComputerName *string `json:"computerName,omitempty"` } +// MarshalJSON is the custom marshaler for OSProfile. +func (op OSProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProxyResource the resource model definition for a Azure Resource Manager proxy resource. It will not // have tags and a location type ProxyResource struct { @@ -1334,6 +1376,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -1344,6 +1392,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource // which has 'tags' and a 'location' type TrackedResource struct { diff --git a/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/CHANGELOG.md b/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/CHANGELOG.md index 52911e4cc5e4..74747e3b8ce6 100644 --- a/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/CHANGELOG.md +++ b/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. DmsBaseObject.MarshalJSON() ([]byte, error) diff --git a/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/_meta.json b/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/_meta.json index f8181bce5b71..91df8eb84fda 100644 --- a/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/_meta.json +++ b/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/hybriddatamanager/resource-manager/readme.md", "tag": "package-2016-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/hybriddatamanager/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/hybriddatamanager/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/models.go b/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/models.go index 62fed698a4f0..387ab5f50c56 100644 --- a/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/models.go +++ b/services/hybriddatamanager/mgmt/2016-06-01/hybriddata/models.go @@ -1253,6 +1253,12 @@ type DmsBaseObject struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for DmsBaseObject. +func (dbo DmsBaseObject) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Error top level error for the job. type Error struct { // Code - Error code that can be used to programmatically identify the error. diff --git a/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/CHANGELOG.md b/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/CHANGELOG.md index 52911e4cc5e4..74747e3b8ce6 100644 --- a/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/CHANGELOG.md +++ b/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. DmsBaseObject.MarshalJSON() ([]byte, error) diff --git a/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/_meta.json b/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/_meta.json index 059a4472011e..9bc1b4eed667 100644 --- a/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/_meta.json +++ b/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/hybriddatamanager/resource-manager/readme.md", "tag": "package-2019-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/hybriddatamanager/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/hybriddatamanager/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/models.go b/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/models.go index c143759fd2fb..b87797fe835d 100644 --- a/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/models.go +++ b/services/hybriddatamanager/mgmt/2019-06-01/hybriddata/models.go @@ -1253,6 +1253,12 @@ type DmsBaseObject struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for DmsBaseObject. +func (dbo DmsBaseObject) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Error top level error for the job. type Error struct { // Code - Error code that can be used to programmatically identify the error. diff --git a/services/hybridkubernetes/mgmt/2021-03-01/hybridkubernetes/CHANGELOG.md b/services/hybridkubernetes/mgmt/2021-03-01/hybridkubernetes/CHANGELOG.md index 52911e4cc5e4..3583ce70a1b2 100644 --- a/services/hybridkubernetes/mgmt/2021-03-01/hybridkubernetes/CHANGELOG.md +++ b/services/hybridkubernetes/mgmt/2021-03-01/hybridkubernetes/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorDetail.MarshalJSON() ([]byte, error) +1. Operation.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/hybridkubernetes/mgmt/2021-03-01/hybridkubernetes/_meta.json b/services/hybridkubernetes/mgmt/2021-03-01/hybridkubernetes/_meta.json index d01bf3c67074..2e5750e702e2 100644 --- a/services/hybridkubernetes/mgmt/2021-03-01/hybridkubernetes/_meta.json +++ b/services/hybridkubernetes/mgmt/2021-03-01/hybridkubernetes/_meta.json @@ -2,9 +2,9 @@ "commit": "80e4e1b77162711ca1123042f50db03ffbf1bb40", "readme": "/_/azure-rest-api-specs/specification/hybridkubernetes/resource-manager/readme.md", "tag": "package-2021-03-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2021-03-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/hybridkubernetes/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2021-03-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/hybridkubernetes/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/hybridkubernetes/mgmt/2021-03-01/hybridkubernetes/models.go b/services/hybridkubernetes/mgmt/2021-03-01/hybridkubernetes/models.go index d451c9daca63..f5547e2ebd8f 100644 --- a/services/hybridkubernetes/mgmt/2021-03-01/hybridkubernetes/models.go +++ b/services/hybridkubernetes/mgmt/2021-03-01/hybridkubernetes/models.go @@ -32,6 +32,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectedCluster represents a connected cluster. type ConnectedCluster struct { autorest.Response `json:"-"` @@ -490,6 +496,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetail the error detail. type ErrorDetail struct { // Code - READ-ONLY; The error code. @@ -504,6 +516,12 @@ type ErrorDetail struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetail. +func (ed ErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.). type ErrorResponse struct { @@ -519,6 +537,12 @@ type Operation struct { Display *OperationDisplay `json:"display,omitempty"` } +// MarshalJSON is the custom marshaler for Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationDisplay the object that represents the operation. type OperationDisplay struct { // Provider - Service provider: Microsoft.connectedClusters @@ -710,6 +734,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -720,6 +750,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SystemData metadata pertaining to creation and last modification of the resource. type SystemData struct { // CreatedBy - The identity that created the resource. diff --git a/services/iotcentral/mgmt/2018-09-01/iotcentral/CHANGELOG.md b/services/iotcentral/mgmt/2018-09-01/iotcentral/CHANGELOG.md index 52911e4cc5e4..7d111aeebf89 100644 --- a/services/iotcentral/mgmt/2018-09-01/iotcentral/CHANGELOG.md +++ b/services/iotcentral/mgmt/2018-09-01/iotcentral/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. AppAvailabilityInfo.MarshalJSON() ([]byte, error) +1. AppTemplate.MarshalJSON() ([]byte, error) +1. AppTemplateLocations.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) diff --git a/services/iotcentral/mgmt/2018-09-01/iotcentral/_meta.json b/services/iotcentral/mgmt/2018-09-01/iotcentral/_meta.json index c5166f1a1ce0..21cf8ac2e218 100644 --- a/services/iotcentral/mgmt/2018-09-01/iotcentral/_meta.json +++ b/services/iotcentral/mgmt/2018-09-01/iotcentral/_meta.json @@ -2,9 +2,9 @@ "commit": "a1eee0489c374782a934ec1f093abd16fa7718ca", "readme": "/_/azure-rest-api-specs/specification/iotcentral/resource-manager/readme.md", "tag": "package-2018-09-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-09-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/iotcentral/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-09-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/iotcentral/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/iotcentral/mgmt/2018-09-01/iotcentral/models.go b/services/iotcentral/mgmt/2018-09-01/iotcentral/models.go index bfff1798270f..6f2b6db0d594 100644 --- a/services/iotcentral/mgmt/2018-09-01/iotcentral/models.go +++ b/services/iotcentral/mgmt/2018-09-01/iotcentral/models.go @@ -146,6 +146,12 @@ type AppAvailabilityInfo struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for AppAvailabilityInfo. +func (aai AppAvailabilityInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AppListResult a list of IoT Central Applications with a next link. type AppListResult struct { autorest.Response `json:"-"` @@ -546,6 +552,12 @@ type AppTemplate struct { Locations *[]AppTemplateLocations `json:"locations,omitempty"` } +// MarshalJSON is the custom marshaler for AppTemplate. +func (at AppTemplate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AppTemplateLocations ioT Central Application Template Locations. type AppTemplateLocations struct { // ID - READ-ONLY; The ID of the location. @@ -554,6 +566,12 @@ type AppTemplateLocations struct { DisplayName *string `json:"displayName,omitempty"` } +// MarshalJSON is the custom marshaler for AppTemplateLocations. +func (atl AppTemplateLocations) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AppTemplatesResult a list of IoT Central Application Templates with a next link. type AppTemplatesResult struct { autorest.Response `json:"-"` @@ -815,6 +833,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (od OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationInputs input values. type OperationInputs struct { // Name - The name of the IoT Central application instance to check. diff --git a/services/iothub/mgmt/2016-02-03/devices/CHANGELOG.md b/services/iothub/mgmt/2016-02-03/devices/CHANGELOG.md index 52911e4cc5e4..ef3e28ff55b3 100644 --- a/services/iothub/mgmt/2016-02-03/devices/CHANGELOG.md +++ b/services/iothub/mgmt/2016-02-03/devices/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. IotHubCapacity.MarshalJSON() ([]byte, error) +1. IotHubQuotaMetricInfo.MarshalJSON() ([]byte, error) +1. JobResponse.MarshalJSON() ([]byte, error) +1. RegistryStatistics.MarshalJSON() ([]byte, error) diff --git a/services/iothub/mgmt/2016-02-03/devices/_meta.json b/services/iothub/mgmt/2016-02-03/devices/_meta.json index 118bf729c3b3..d87435822221 100644 --- a/services/iothub/mgmt/2016-02-03/devices/_meta.json +++ b/services/iothub/mgmt/2016-02-03/devices/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/iothub/resource-manager/readme.md", "tag": "package-2016-02", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/iothub/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/iothub/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/iothub/mgmt/2016-02-03/devices/models.go b/services/iothub/mgmt/2016-02-03/devices/models.go index 51360cbe3f8c..03e19439cd7e 100644 --- a/services/iothub/mgmt/2016-02-03/devices/models.go +++ b/services/iothub/mgmt/2016-02-03/devices/models.go @@ -41,6 +41,12 @@ type ErrorDetails struct { Details *string `json:"Details,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EventHubConsumerGroupInfo the properties of the EventHubConsumerGroupInfo object. type EventHubConsumerGroupInfo struct { autorest.Response `json:"-"` @@ -300,6 +306,12 @@ type IotHubCapacity struct { ScaleType IotHubScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for IotHubCapacity. +func (ihc IotHubCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IotHubDescription the description of the IoT hub. type IotHubDescription struct { autorest.Response `json:"-"` @@ -610,6 +622,12 @@ type IotHubQuotaMetricInfo struct { MaxValue *int64 `json:"MaxValue,omitempty"` } +// MarshalJSON is the custom marshaler for IotHubQuotaMetricInfo. +func (ihqmi IotHubQuotaMetricInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IotHubQuotaMetricInfoListResult the JSON-serialized array of IotHubQuotaMetricInfo objects with a next // link. type IotHubQuotaMetricInfoListResult struct { @@ -1109,6 +1127,12 @@ type JobResponse struct { ParentJobID *string `json:"parentJobId,omitempty"` } +// MarshalJSON is the custom marshaler for JobResponse. +func (jr JobResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobResponseListResult the JSON-serialized array of JobResponse objects with a next link. type JobResponseListResult struct { autorest.Response `json:"-"` @@ -1320,6 +1344,12 @@ type RegistryStatistics struct { DisabledDeviceCount *int64 `json:"disabledDeviceCount,omitempty"` } +// MarshalJSON is the custom marshaler for RegistryStatistics. +func (rs RegistryStatistics) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource the common properties of an Azure resource. type Resource struct { // ID - READ-ONLY; The resource identifier. diff --git a/services/iothub/mgmt/2017-01-19/devices/CHANGELOG.md b/services/iothub/mgmt/2017-01-19/devices/CHANGELOG.md index 52911e4cc5e4..ef3e28ff55b3 100644 --- a/services/iothub/mgmt/2017-01-19/devices/CHANGELOG.md +++ b/services/iothub/mgmt/2017-01-19/devices/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. IotHubCapacity.MarshalJSON() ([]byte, error) +1. IotHubQuotaMetricInfo.MarshalJSON() ([]byte, error) +1. JobResponse.MarshalJSON() ([]byte, error) +1. RegistryStatistics.MarshalJSON() ([]byte, error) diff --git a/services/iothub/mgmt/2017-01-19/devices/_meta.json b/services/iothub/mgmt/2017-01-19/devices/_meta.json index 7f836d4caaf8..60e1ca735be3 100644 --- a/services/iothub/mgmt/2017-01-19/devices/_meta.json +++ b/services/iothub/mgmt/2017-01-19/devices/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/iothub/resource-manager/readme.md", "tag": "package-2017-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/iothub/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/iothub/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/iothub/mgmt/2017-01-19/devices/models.go b/services/iothub/mgmt/2017-01-19/devices/models.go index 2a4a5a380568..a1ac91f4b8aa 100644 --- a/services/iothub/mgmt/2017-01-19/devices/models.go +++ b/services/iothub/mgmt/2017-01-19/devices/models.go @@ -41,6 +41,12 @@ type ErrorDetails struct { Details *string `json:"Details,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EventHubConsumerGroupInfo the properties of the EventHubConsumerGroupInfo object. type EventHubConsumerGroupInfo struct { autorest.Response `json:"-"` @@ -313,6 +319,12 @@ type IotHubCapacity struct { ScaleType IotHubScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for IotHubCapacity. +func (ihc IotHubCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IotHubDescription the description of the IoT hub. type IotHubDescription struct { autorest.Response `json:"-"` @@ -627,6 +639,12 @@ type IotHubQuotaMetricInfo struct { MaxValue *int64 `json:"MaxValue,omitempty"` } +// MarshalJSON is the custom marshaler for IotHubQuotaMetricInfo. +func (ihqmi IotHubQuotaMetricInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IotHubQuotaMetricInfoListResult the JSON-serialized array of IotHubQuotaMetricInfo objects with a next // link. type IotHubQuotaMetricInfoListResult struct { @@ -1126,6 +1144,12 @@ type JobResponse struct { ParentJobID *string `json:"parentJobId,omitempty"` } +// MarshalJSON is the custom marshaler for JobResponse. +func (jr JobResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobResponseListResult the JSON-serialized array of JobResponse objects with a next link. type JobResponseListResult struct { autorest.Response `json:"-"` @@ -1338,6 +1362,12 @@ type RegistryStatistics struct { DisabledDeviceCount *int64 `json:"disabledDeviceCount,omitempty"` } +// MarshalJSON is the custom marshaler for RegistryStatistics. +func (rs RegistryStatistics) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource the common properties of an Azure resource. type Resource struct { // ID - READ-ONLY; The resource identifier. diff --git a/services/iothub/mgmt/2017-07-01/devices/CHANGELOG.md b/services/iothub/mgmt/2017-07-01/devices/CHANGELOG.md index 52911e4cc5e4..17a82c7c5246 100644 --- a/services/iothub/mgmt/2017-07-01/devices/CHANGELOG.md +++ b/services/iothub/mgmt/2017-07-01/devices/CHANGELOG.md @@ -1,2 +1,15 @@ # Change History +## Additive Changes + +### New Funcs + +1. CertificateProperties.MarshalJSON() ([]byte, error) +1. CertificatePropertiesWithNonce.MarshalJSON() ([]byte, error) +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. IotHubCapacity.MarshalJSON() ([]byte, error) +1. IotHubQuotaMetricInfo.MarshalJSON() ([]byte, error) +1. JobResponse.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. RegistryStatistics.MarshalJSON() ([]byte, error) diff --git a/services/iothub/mgmt/2017-07-01/devices/_meta.json b/services/iothub/mgmt/2017-07-01/devices/_meta.json index c4bcc798438b..ce76bce8ab10 100644 --- a/services/iothub/mgmt/2017-07-01/devices/_meta.json +++ b/services/iothub/mgmt/2017-07-01/devices/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/iothub/resource-manager/readme.md", "tag": "package-2017-07", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/iothub/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/iothub/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/iothub/mgmt/2017-07-01/devices/models.go b/services/iothub/mgmt/2017-07-01/devices/models.go index 70ab7717724b..71348781e083 100644 --- a/services/iothub/mgmt/2017-07-01/devices/models.go +++ b/services/iothub/mgmt/2017-07-01/devices/models.go @@ -72,6 +72,12 @@ type CertificateProperties struct { Updated *date.TimeRFC1123 `json:"updated,omitempty"` } +// MarshalJSON is the custom marshaler for CertificateProperties. +func (cp CertificateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificatePropertiesWithNonce the description of an X509 CA Certificate including the challenge nonce // issued for the Proof-Of-Possession flow. type CertificatePropertiesWithNonce struct { @@ -91,6 +97,12 @@ type CertificatePropertiesWithNonce struct { VerificationCode *string `json:"verificationCode,omitempty"` } +// MarshalJSON is the custom marshaler for CertificatePropertiesWithNonce. +func (cpwn CertificatePropertiesWithNonce) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificateVerificationDescription the JSON-serialized leaf certificate type CertificateVerificationDescription struct { // Certificate - base-64 representation of X509 certificate .cer file or just .pem file content. @@ -141,6 +153,12 @@ type ErrorDetails struct { Details *string `json:"Details,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EventHubConsumerGroupInfo the properties of the EventHubConsumerGroupInfo object. type EventHubConsumerGroupInfo struct { autorest.Response `json:"-"` @@ -413,6 +431,12 @@ type IotHubCapacity struct { ScaleType IotHubScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for IotHubCapacity. +func (ihc IotHubCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IotHubDescription the description of the IoT hub. type IotHubDescription struct { autorest.Response `json:"-"` @@ -727,6 +751,12 @@ type IotHubQuotaMetricInfo struct { MaxValue *int64 `json:"MaxValue,omitempty"` } +// MarshalJSON is the custom marshaler for IotHubQuotaMetricInfo. +func (ihqmi IotHubQuotaMetricInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IotHubQuotaMetricInfoListResult the JSON-serialized array of IotHubQuotaMetricInfo objects with a next // link. type IotHubQuotaMetricInfoListResult struct { @@ -1226,6 +1256,12 @@ type JobResponse struct { ParentJobID *string `json:"parentJobId,omitempty"` } +// MarshalJSON is the custom marshaler for JobResponse. +func (jr JobResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobResponseListResult the JSON-serialized array of JobResponse objects with a next link. type JobResponseListResult struct { autorest.Response `json:"-"` @@ -1431,6 +1467,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationInputs input values. type OperationInputs struct { // Name - The name of the IoT hub to check. @@ -1447,6 +1489,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -1625,6 +1673,12 @@ type RegistryStatistics struct { DisabledDeviceCount *int64 `json:"disabledDeviceCount,omitempty"` } +// MarshalJSON is the custom marshaler for RegistryStatistics. +func (rs RegistryStatistics) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource the common properties of an Azure resource. type Resource struct { // ID - READ-ONLY; The resource identifier. diff --git a/services/iothub/mgmt/2018-01-22/devices/CHANGELOG.md b/services/iothub/mgmt/2018-01-22/devices/CHANGELOG.md index 52911e4cc5e4..17a82c7c5246 100644 --- a/services/iothub/mgmt/2018-01-22/devices/CHANGELOG.md +++ b/services/iothub/mgmt/2018-01-22/devices/CHANGELOG.md @@ -1,2 +1,15 @@ # Change History +## Additive Changes + +### New Funcs + +1. CertificateProperties.MarshalJSON() ([]byte, error) +1. CertificatePropertiesWithNonce.MarshalJSON() ([]byte, error) +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. IotHubCapacity.MarshalJSON() ([]byte, error) +1. IotHubQuotaMetricInfo.MarshalJSON() ([]byte, error) +1. JobResponse.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. RegistryStatistics.MarshalJSON() ([]byte, error) diff --git a/services/iothub/mgmt/2018-01-22/devices/_meta.json b/services/iothub/mgmt/2018-01-22/devices/_meta.json index 98e38b941dad..2efdfcb1f792 100644 --- a/services/iothub/mgmt/2018-01-22/devices/_meta.json +++ b/services/iothub/mgmt/2018-01-22/devices/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/iothub/resource-manager/readme.md", "tag": "package-2018-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/iothub/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/iothub/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/iothub/mgmt/2018-01-22/devices/models.go b/services/iothub/mgmt/2018-01-22/devices/models.go index c1b201f8d685..8217a6fd1d26 100644 --- a/services/iothub/mgmt/2018-01-22/devices/models.go +++ b/services/iothub/mgmt/2018-01-22/devices/models.go @@ -72,6 +72,12 @@ type CertificateProperties struct { Updated *date.TimeRFC1123 `json:"updated,omitempty"` } +// MarshalJSON is the custom marshaler for CertificateProperties. +func (cp CertificateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificatePropertiesWithNonce the description of an X509 CA Certificate including the challenge nonce // issued for the Proof-Of-Possession flow. type CertificatePropertiesWithNonce struct { @@ -91,6 +97,12 @@ type CertificatePropertiesWithNonce struct { VerificationCode *string `json:"verificationCode,omitempty"` } +// MarshalJSON is the custom marshaler for CertificatePropertiesWithNonce. +func (cpwn CertificatePropertiesWithNonce) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificateVerificationDescription the JSON-serialized leaf certificate type CertificateVerificationDescription struct { // Certificate - base-64 representation of X509 certificate .cer file or just .pem file content. @@ -141,6 +153,12 @@ type ErrorDetails struct { Details *string `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EventHubConsumerGroupInfo the properties of the EventHubConsumerGroupInfo object. type EventHubConsumerGroupInfo struct { autorest.Response `json:"-"` @@ -414,6 +432,12 @@ type IotHubCapacity struct { ScaleType IotHubScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for IotHubCapacity. +func (ihc IotHubCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IotHubDescription the description of the IoT hub. type IotHubDescription struct { autorest.Response `json:"-"` @@ -720,6 +744,12 @@ type IotHubQuotaMetricInfo struct { MaxValue *int64 `json:"maxValue,omitempty"` } +// MarshalJSON is the custom marshaler for IotHubQuotaMetricInfo. +func (ihqmi IotHubQuotaMetricInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IotHubQuotaMetricInfoListResult the JSON-serialized array of IotHubQuotaMetricInfo objects with a next // link. type IotHubQuotaMetricInfoListResult struct { @@ -1263,6 +1293,12 @@ type JobResponse struct { ParentJobID *string `json:"parentJobId,omitempty"` } +// MarshalJSON is the custom marshaler for JobResponse. +func (jr JobResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobResponseListResult the JSON-serialized array of JobResponse objects with a next link. type JobResponseListResult struct { autorest.Response `json:"-"` @@ -1468,6 +1504,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationInputs input values. type OperationInputs struct { // Name - The name of the IoT hub to check. @@ -1484,6 +1526,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -1662,6 +1710,12 @@ type RegistryStatistics struct { DisabledDeviceCount *int64 `json:"disabledDeviceCount,omitempty"` } +// MarshalJSON is the custom marshaler for RegistryStatistics. +func (rs RegistryStatistics) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource the common properties of an Azure resource. type Resource struct { // ID - READ-ONLY; The resource identifier. diff --git a/services/iothub/mgmt/2018-04-01/devices/CHANGELOG.md b/services/iothub/mgmt/2018-04-01/devices/CHANGELOG.md index 52911e4cc5e4..1ef15e7e7f4e 100644 --- a/services/iothub/mgmt/2018-04-01/devices/CHANGELOG.md +++ b/services/iothub/mgmt/2018-04-01/devices/CHANGELOG.md @@ -1,2 +1,14 @@ # Change History +## Additive Changes + +### New Funcs + +1. CertificatePropertiesWithNonce.MarshalJSON() ([]byte, error) +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. IotHubCapacity.MarshalJSON() ([]byte, error) +1. IotHubQuotaMetricInfo.MarshalJSON() ([]byte, error) +1. JobResponse.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. RegistryStatistics.MarshalJSON() ([]byte, error) diff --git a/services/iothub/mgmt/2018-04-01/devices/_meta.json b/services/iothub/mgmt/2018-04-01/devices/_meta.json index 4d6375e37ce3..308fc190f7b1 100644 --- a/services/iothub/mgmt/2018-04-01/devices/_meta.json +++ b/services/iothub/mgmt/2018-04-01/devices/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/iothub/resource-manager/readme.md", "tag": "package-2018-04", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/iothub/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/iothub/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/iothub/mgmt/2018-04-01/devices/models.go b/services/iothub/mgmt/2018-04-01/devices/models.go index ccfe59c09e50..8643db8b5655 100644 --- a/services/iothub/mgmt/2018-04-01/devices/models.go +++ b/services/iothub/mgmt/2018-04-01/devices/models.go @@ -104,6 +104,12 @@ type CertificatePropertiesWithNonce struct { Certificate *string `json:"certificate,omitempty"` } +// MarshalJSON is the custom marshaler for CertificatePropertiesWithNonce. +func (cpwn CertificatePropertiesWithNonce) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificateVerificationDescription the JSON-serialized leaf certificate type CertificateVerificationDescription struct { // Certificate - base-64 representation of X509 certificate .cer file or just .pem file content. @@ -330,6 +336,12 @@ type ErrorDetails struct { Details *string `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EventHubConsumerGroupInfo the properties of the EventHubConsumerGroupInfo object. type EventHubConsumerGroupInfo struct { autorest.Response `json:"-"` @@ -603,6 +615,12 @@ type IotHubCapacity struct { ScaleType IotHubScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for IotHubCapacity. +func (ihc IotHubCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IotHubDescription the description of the IoT hub. type IotHubDescription struct { autorest.Response `json:"-"` @@ -911,6 +929,12 @@ type IotHubQuotaMetricInfo struct { MaxValue *int64 `json:"maxValue,omitempty"` } +// MarshalJSON is the custom marshaler for IotHubQuotaMetricInfo. +func (ihqmi IotHubQuotaMetricInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IotHubQuotaMetricInfoListResult the JSON-serialized array of IotHubQuotaMetricInfo objects with a next // link. type IotHubQuotaMetricInfoListResult struct { @@ -1455,6 +1479,12 @@ type JobResponse struct { ParentJobID *string `json:"parentJobId,omitempty"` } +// MarshalJSON is the custom marshaler for JobResponse. +func (jr JobResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobResponseListResult the JSON-serialized array of JobResponse objects with a next link. type JobResponseListResult struct { autorest.Response `json:"-"` @@ -1674,6 +1704,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationInputs input values. type OperationInputs struct { // Name - The name of the IoT hub to check. @@ -1690,6 +1726,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -1868,6 +1910,12 @@ type RegistryStatistics struct { DisabledDeviceCount *int64 `json:"disabledDeviceCount,omitempty"` } +// MarshalJSON is the custom marshaler for RegistryStatistics. +func (rs RegistryStatistics) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource the common properties of an Azure resource. type Resource struct { // ID - READ-ONLY; The resource identifier. diff --git a/services/iothub/mgmt/2020-03-01/devices/CHANGELOG.md b/services/iothub/mgmt/2020-03-01/devices/CHANGELOG.md index 52911e4cc5e4..354b026d5d2d 100644 --- a/services/iothub/mgmt/2020-03-01/devices/CHANGELOG.md +++ b/services/iothub/mgmt/2020-03-01/devices/CHANGELOG.md @@ -1,2 +1,15 @@ # Change History +## Additive Changes + +### New Funcs + +1. CertificatePropertiesWithNonce.MarshalJSON() ([]byte, error) +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. IotHubCapacity.MarshalJSON() ([]byte, error) +1. IotHubQuotaMetricInfo.MarshalJSON() ([]byte, error) +1. JobResponse.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. PrivateEndpoint.MarshalJSON() ([]byte, error) +1. RegistryStatistics.MarshalJSON() ([]byte, error) diff --git a/services/iothub/mgmt/2020-03-01/devices/_meta.json b/services/iothub/mgmt/2020-03-01/devices/_meta.json index ea31cf8c96fa..79bca89e87f0 100644 --- a/services/iothub/mgmt/2020-03-01/devices/_meta.json +++ b/services/iothub/mgmt/2020-03-01/devices/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/iothub/resource-manager/readme.md", "tag": "package-2020-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/iothub/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/iothub/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/iothub/mgmt/2020-03-01/devices/models.go b/services/iothub/mgmt/2020-03-01/devices/models.go index 9c658bcae1b8..4f048d5acb86 100644 --- a/services/iothub/mgmt/2020-03-01/devices/models.go +++ b/services/iothub/mgmt/2020-03-01/devices/models.go @@ -104,6 +104,12 @@ type CertificatePropertiesWithNonce struct { Certificate *string `json:"certificate,omitempty"` } +// MarshalJSON is the custom marshaler for CertificatePropertiesWithNonce. +func (cpwn CertificatePropertiesWithNonce) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificateVerificationDescription the JSON-serialized leaf certificate type CertificateVerificationDescription struct { // Certificate - base-64 representation of X509 certificate .cer file or just .pem file content. @@ -341,6 +347,12 @@ type ErrorDetails struct { Details *string `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EventHubConsumerGroupInfo the properties of the EventHubConsumerGroupInfo object. type EventHubConsumerGroupInfo struct { autorest.Response `json:"-"` @@ -661,6 +673,12 @@ type IotHubCapacity struct { ScaleType IotHubScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for IotHubCapacity. +func (ihc IotHubCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IotHubDescription the description of the IoT hub. type IotHubDescription struct { autorest.Response `json:"-"` @@ -1027,6 +1045,12 @@ type IotHubQuotaMetricInfo struct { MaxValue *int64 `json:"maxValue,omitempty"` } +// MarshalJSON is the custom marshaler for IotHubQuotaMetricInfo. +func (ihqmi IotHubQuotaMetricInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IotHubQuotaMetricInfoListResult the JSON-serialized array of IotHubQuotaMetricInfo objects with a next // link. type IotHubQuotaMetricInfoListResult struct { @@ -1571,6 +1595,12 @@ type JobResponse struct { ParentJobID *string `json:"parentJobId,omitempty"` } +// MarshalJSON is the custom marshaler for JobResponse. +func (jr JobResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobResponseListResult the JSON-serialized array of JobResponse objects with a next link. type JobResponseListResult struct { autorest.Response `json:"-"` @@ -1798,6 +1828,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationInputs input values. type OperationInputs struct { // Name - The name of the IoT hub to check. @@ -1814,6 +1850,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -1970,6 +2012,12 @@ type PrivateEndpoint struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpoint. +func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection the private endpoint connection of an IotHub type PrivateEndpointConnection struct { autorest.Response `json:"-"` @@ -2111,6 +2159,12 @@ type RegistryStatistics struct { DisabledDeviceCount *int64 `json:"disabledDeviceCount,omitempty"` } +// MarshalJSON is the custom marshaler for RegistryStatistics. +func (rs RegistryStatistics) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource the common properties of an Azure resource. type Resource struct { // ID - READ-ONLY; The resource identifier. diff --git a/services/keyvault/2015-06-01/keyvault/CHANGELOG.md b/services/keyvault/2015-06-01/keyvault/CHANGELOG.md index 52911e4cc5e4..91f8406d0ced 100644 --- a/services/keyvault/2015-06-01/keyvault/CHANGELOG.md +++ b/services/keyvault/2015-06-01/keyvault/CHANGELOG.md @@ -1,2 +1,16 @@ # Change History +## Additive Changes + +### New Funcs + +1. BackupKeyResult.MarshalJSON() ([]byte, error) +1. CertificateIssuerListResult.MarshalJSON() ([]byte, error) +1. CertificateListResult.MarshalJSON() ([]byte, error) +1. Error.MarshalJSON() ([]byte, error) +1. ErrorType.MarshalJSON() ([]byte, error) +1. KeyListResult.MarshalJSON() ([]byte, error) +1. KeyOperationResult.MarshalJSON() ([]byte, error) +1. KeyVerifyResult.MarshalJSON() ([]byte, error) +1. PendingCertificateSigningRequestResult.MarshalJSON() ([]byte, error) +1. SecretListResult.MarshalJSON() ([]byte, error) diff --git a/services/keyvault/2015-06-01/keyvault/_meta.json b/services/keyvault/2015-06-01/keyvault/_meta.json index dff8631893b0..cf39e26000e0 100644 --- a/services/keyvault/2015-06-01/keyvault/_meta.json +++ b/services/keyvault/2015-06-01/keyvault/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/keyvault/data-plane/readme.md", "tag": "package-2015-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2015-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/keyvault/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2015-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/keyvault/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/keyvault/2015-06-01/keyvault/models.go b/services/keyvault/2015-06-01/keyvault/models.go index 5d08b93c8449..c9af24b61001 100644 --- a/services/keyvault/2015-06-01/keyvault/models.go +++ b/services/keyvault/2015-06-01/keyvault/models.go @@ -73,6 +73,12 @@ type BackupKeyResult struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for BackupKeyResult. +func (bkr BackupKeyResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificateAttributes the certificate management attributes type CertificateAttributes struct { // Enabled - Determines whether the object is enabled @@ -220,6 +226,12 @@ type CertificateIssuerListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for CertificateIssuerListResult. +func (cilr CertificateIssuerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificateIssuerListResultIterator provides access to a complete listing of CertificateIssuerItem // values. type CertificateIssuerListResultIterator struct { @@ -434,6 +446,12 @@ type CertificateListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for CertificateListResult. +func (clr CertificateListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificateListResultIterator provides access to a complete listing of CertificateItem values. type CertificateListResultIterator struct { i int @@ -772,12 +790,24 @@ type Error struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for Error. +func (e Error) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorType the key vault error exception type ErrorType struct { // Error - READ-ONLY Error *Error `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorType. +func (et ErrorType) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IssuerAttributes the attributes of an issuer managed by the KeyVault service type IssuerAttributes struct { // Enabled - Determines whether the issuer is enabled @@ -1031,6 +1061,12 @@ type KeyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for KeyListResult. +func (klr KeyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // KeyListResultIterator provides access to a complete listing of KeyItem values. type KeyListResultIterator struct { i int @@ -1190,6 +1226,12 @@ type KeyOperationResult struct { Result *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for KeyOperationResult. +func (kor KeyOperationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // KeyOperationsParameters the key operations parameters type KeyOperationsParameters struct { // Algorithm - algorithm identifier. Possible values include: 'RSAOAEP', 'RSAOAEP256', 'RSA15' @@ -1265,6 +1307,12 @@ type KeyVerifyResult struct { Value *bool `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for KeyVerifyResult. +func (kvr KeyVerifyResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LifetimeAction action and its trigger that will be performed by Key Vault over the lifetime of a // certificate. type LifetimeAction struct { @@ -1288,6 +1336,12 @@ type PendingCertificateSigningRequestResult struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PendingCertificateSigningRequestResult. +func (pcsrr PendingCertificateSigningRequestResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SecretAttributes the secret management attributes type SecretAttributes struct { // Enabled - Determines whether the object is enabled @@ -1398,6 +1452,12 @@ type SecretListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SecretListResult. +func (slr SecretListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SecretListResultIterator provides access to a complete listing of SecretItem values. type SecretListResultIterator struct { i int diff --git a/services/keyvault/2016-10-01/keyvault/CHANGELOG.md b/services/keyvault/2016-10-01/keyvault/CHANGELOG.md index 52911e4cc5e4..56d57141c719 100644 --- a/services/keyvault/2016-10-01/keyvault/CHANGELOG.md +++ b/services/keyvault/2016-10-01/keyvault/CHANGELOG.md @@ -1,2 +1,22 @@ # Change History +## Additive Changes + +### New Funcs + +1. BackupKeyResult.MarshalJSON() ([]byte, error) +1. BackupSecretResult.MarshalJSON() ([]byte, error) +1. CertificateIssuerListResult.MarshalJSON() ([]byte, error) +1. CertificateListResult.MarshalJSON() ([]byte, error) +1. DeletedCertificateListResult.MarshalJSON() ([]byte, error) +1. DeletedKeyListResult.MarshalJSON() ([]byte, error) +1. DeletedSecretListResult.MarshalJSON() ([]byte, error) +1. Error.MarshalJSON() ([]byte, error) +1. ErrorType.MarshalJSON() ([]byte, error) +1. KeyListResult.MarshalJSON() ([]byte, error) +1. KeyOperationResult.MarshalJSON() ([]byte, error) +1. KeyVerifyResult.MarshalJSON() ([]byte, error) +1. PendingCertificateSigningRequestResult.MarshalJSON() ([]byte, error) +1. SasDefinitionListResult.MarshalJSON() ([]byte, error) +1. SecretListResult.MarshalJSON() ([]byte, error) +1. StorageListResult.MarshalJSON() ([]byte, error) diff --git a/services/keyvault/2016-10-01/keyvault/_meta.json b/services/keyvault/2016-10-01/keyvault/_meta.json index 7aa3fed3a7f5..b80d213c9e6d 100644 --- a/services/keyvault/2016-10-01/keyvault/_meta.json +++ b/services/keyvault/2016-10-01/keyvault/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/keyvault/data-plane/readme.md", "tag": "package-2016-10", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/keyvault/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/keyvault/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/keyvault/2016-10-01/keyvault/models.go b/services/keyvault/2016-10-01/keyvault/models.go index a285d4f097b1..9ec85567bcf9 100644 --- a/services/keyvault/2016-10-01/keyvault/models.go +++ b/services/keyvault/2016-10-01/keyvault/models.go @@ -73,6 +73,12 @@ type BackupKeyResult struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for BackupKeyResult. +func (bkr BackupKeyResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BackupSecretResult the backup secret result, containing the backup blob. type BackupSecretResult struct { autorest.Response `json:"-"` @@ -80,6 +86,12 @@ type BackupSecretResult struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for BackupSecretResult. +func (bsr BackupSecretResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificateAttributes the certificate management attributes. type CertificateAttributes struct { // RecoveryLevel - READ-ONLY; Reflects the deletion recovery level currently in effect for certificates in the current vault. If it contains 'Purgeable', the certificate can be permanently deleted by a privileged user; otherwise, only the system can purge the certificate, at the end of the retention interval. Possible values include: 'Purgeable', 'RecoverablePurgeable', 'Recoverable', 'RecoverableProtectedSubscription' @@ -229,6 +241,12 @@ type CertificateIssuerListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for CertificateIssuerListResult. +func (cilr CertificateIssuerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificateIssuerListResultIterator provides access to a complete listing of CertificateIssuerItem // values. type CertificateIssuerListResultIterator struct { @@ -443,6 +461,12 @@ type CertificateListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for CertificateListResult. +func (clr CertificateListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificateListResultIterator provides access to a complete listing of CertificateItem values. type CertificateListResultIterator struct { i int @@ -872,6 +896,12 @@ type DeletedCertificateListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DeletedCertificateListResult. +func (dclr DeletedCertificateListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeletedCertificateListResultIterator provides access to a complete listing of DeletedCertificateItem // values. type DeletedCertificateListResultIterator struct { @@ -1105,6 +1135,12 @@ type DeletedKeyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DeletedKeyListResult. +func (dklr DeletedKeyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeletedKeyListResultIterator provides access to a complete listing of DeletedKeyItem values. type DeletedKeyListResultIterator struct { i int @@ -1355,6 +1391,12 @@ type DeletedSecretListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DeletedSecretListResult. +func (dslr DeletedSecretListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeletedSecretListResultIterator provides access to a complete listing of DeletedSecretItem values. type DeletedSecretListResultIterator struct { i int @@ -1515,12 +1557,24 @@ type Error struct { InnerError *Error `json:"innererror,omitempty"` } +// MarshalJSON is the custom marshaler for Error. +func (e Error) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorType the key vault error exception. type ErrorType struct { // Error - READ-ONLY Error *Error `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorType. +func (et ErrorType) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IssuerAttributes the attributes of an issuer managed by the Key Vault service. type IssuerAttributes struct { // Enabled - Determines whether the issuer is enabled. @@ -1787,6 +1841,12 @@ type KeyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for KeyListResult. +func (klr KeyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // KeyListResultIterator provides access to a complete listing of KeyItem values. type KeyListResultIterator struct { i int @@ -1946,6 +2006,12 @@ type KeyOperationResult struct { Result *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for KeyOperationResult. +func (kor KeyOperationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // KeyOperationsParameters the key operations parameters. type KeyOperationsParameters struct { // Algorithm - algorithm identifier. Possible values include: 'RSAOAEP', 'RSAOAEP256', 'RSA15' @@ -2021,6 +2087,12 @@ type KeyVerifyResult struct { Value *bool `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for KeyVerifyResult. +func (kvr KeyVerifyResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LifetimeAction action and its trigger that will be performed by Key Vault over the lifetime of a // certificate. type LifetimeAction struct { @@ -2044,6 +2116,12 @@ type PendingCertificateSigningRequestResult struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PendingCertificateSigningRequestResult. +func (pcsrr PendingCertificateSigningRequestResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SasDefinitionAttributes the SAS definition management attributes. type SasDefinitionAttributes struct { // Enabled - the enabled state of the object. @@ -2137,6 +2215,12 @@ type SasDefinitionListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SasDefinitionListResult. +func (sdlr SasDefinitionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SasDefinitionListResultIterator provides access to a complete listing of SasDefinitionItem values. type SasDefinitionListResultIterator struct { i int @@ -2424,6 +2508,12 @@ type SecretListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SecretListResult. +func (slr SecretListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SecretListResultIterator provides access to a complete listing of SecretItem values. type SecretListResultIterator struct { i int @@ -2794,6 +2884,12 @@ type StorageListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for StorageListResult. +func (slr StorageListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageListResultIterator provides access to a complete listing of StorageAccountItem values. type StorageListResultIterator struct { i int diff --git a/services/keyvault/mgmt/2015-06-01/keyvault/_meta.json b/services/keyvault/mgmt/2015-06-01/keyvault/_meta.json index 605b54382914..d46fa8405d01 100644 --- a/services/keyvault/mgmt/2015-06-01/keyvault/_meta.json +++ b/services/keyvault/mgmt/2015-06-01/keyvault/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/keyvault/resource-manager/readme.md", "tag": "package-2015-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2015-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/keyvault/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2015-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/keyvault/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/keyvault/mgmt/2016-10-01/keyvault/CHANGELOG.md b/services/keyvault/mgmt/2016-10-01/keyvault/CHANGELOG.md index 52911e4cc5e4..5c5c4412b38f 100644 --- a/services/keyvault/mgmt/2016-10-01/keyvault/CHANGELOG.md +++ b/services/keyvault/mgmt/2016-10-01/keyvault/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) diff --git a/services/keyvault/mgmt/2016-10-01/keyvault/_meta.json b/services/keyvault/mgmt/2016-10-01/keyvault/_meta.json index b8fc40b3ec8c..7ebf47f41679 100644 --- a/services/keyvault/mgmt/2016-10-01/keyvault/_meta.json +++ b/services/keyvault/mgmt/2016-10-01/keyvault/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/keyvault/resource-manager/readme.md", "tag": "package-2016-10", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/keyvault/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/keyvault/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/keyvault/mgmt/2016-10-01/keyvault/models.go b/services/keyvault/mgmt/2016-10-01/keyvault/models.go index 8b2b6de9bd92..093604f5b341 100644 --- a/services/keyvault/mgmt/2016-10-01/keyvault/models.go +++ b/services/keyvault/mgmt/2016-10-01/keyvault/models.go @@ -45,6 +45,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeletedVault deleted vault information with extended details. type DeletedVault struct { autorest.Response `json:"-"` diff --git a/services/keyvault/mgmt/2018-02-14/keyvault/CHANGELOG.md b/services/keyvault/mgmt/2018-02-14/keyvault/CHANGELOG.md index 52911e4cc5e4..dd48cb0ea9eb 100644 --- a/services/keyvault/mgmt/2018-02-14/keyvault/CHANGELOG.md +++ b/services/keyvault/mgmt/2018-02-14/keyvault/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) +1. PrivateEndpoint.MarshalJSON() ([]byte, error) diff --git a/services/keyvault/mgmt/2018-02-14/keyvault/_meta.json b/services/keyvault/mgmt/2018-02-14/keyvault/_meta.json index e9ba56775dc7..b09858c29eb1 100644 --- a/services/keyvault/mgmt/2018-02-14/keyvault/_meta.json +++ b/services/keyvault/mgmt/2018-02-14/keyvault/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/keyvault/resource-manager/readme.md", "tag": "package-2018-02", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/keyvault/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/keyvault/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/keyvault/mgmt/2018-02-14/keyvault/models.go b/services/keyvault/mgmt/2018-02-14/keyvault/models.go index 19df3f358aa6..696043b773f0 100644 --- a/services/keyvault/mgmt/2018-02-14/keyvault/models.go +++ b/services/keyvault/mgmt/2018-02-14/keyvault/models.go @@ -45,6 +45,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from Key Vault resource provider type CloudError struct { Error *CloudErrorBody `json:"error,omitempty"` @@ -564,6 +570,12 @@ type PrivateEndpoint struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpoint. +func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection private endpoint connection resource. type PrivateEndpointConnection struct { autorest.Response `json:"-"` diff --git a/services/keyvault/mgmt/2019-09-01/keyvault/CHANGELOG.md b/services/keyvault/mgmt/2019-09-01/keyvault/CHANGELOG.md index 52911e4cc5e4..dd48cb0ea9eb 100644 --- a/services/keyvault/mgmt/2019-09-01/keyvault/CHANGELOG.md +++ b/services/keyvault/mgmt/2019-09-01/keyvault/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) +1. PrivateEndpoint.MarshalJSON() ([]byte, error) diff --git a/services/keyvault/mgmt/2019-09-01/keyvault/_meta.json b/services/keyvault/mgmt/2019-09-01/keyvault/_meta.json index 0228500deb79..541ca08a7dfd 100644 --- a/services/keyvault/mgmt/2019-09-01/keyvault/_meta.json +++ b/services/keyvault/mgmt/2019-09-01/keyvault/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/keyvault/resource-manager/readme.md", "tag": "package-2019-09", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/keyvault/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/keyvault/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/keyvault/mgmt/2019-09-01/keyvault/models.go b/services/keyvault/mgmt/2019-09-01/keyvault/models.go index ad4ac622474d..305303631173 100644 --- a/services/keyvault/mgmt/2019-09-01/keyvault/models.go +++ b/services/keyvault/mgmt/2019-09-01/keyvault/models.go @@ -76,6 +76,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from Key Vault resource provider type CloudError struct { Error *CloudErrorBody `json:"error,omitempty"` @@ -938,6 +944,12 @@ type PrivateEndpoint struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpoint. +func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection private endpoint connection resource. type PrivateEndpointConnection struct { autorest.Response `json:"-"` diff --git a/services/keyvault/v7.0/keyvault/CHANGELOG.md b/services/keyvault/v7.0/keyvault/CHANGELOG.md index 52911e4cc5e4..6c701c1c40af 100644 --- a/services/keyvault/v7.0/keyvault/CHANGELOG.md +++ b/services/keyvault/v7.0/keyvault/CHANGELOG.md @@ -1,2 +1,26 @@ # Change History +## Additive Changes + +### New Funcs + +1. BackupCertificateResult.MarshalJSON() ([]byte, error) +1. BackupKeyResult.MarshalJSON() ([]byte, error) +1. BackupSecretResult.MarshalJSON() ([]byte, error) +1. BackupStorageResult.MarshalJSON() ([]byte, error) +1. CertificateIssuerListResult.MarshalJSON() ([]byte, error) +1. CertificateListResult.MarshalJSON() ([]byte, error) +1. DeletedCertificateListResult.MarshalJSON() ([]byte, error) +1. DeletedKeyListResult.MarshalJSON() ([]byte, error) +1. DeletedSasDefinitionListResult.MarshalJSON() ([]byte, error) +1. DeletedSecretListResult.MarshalJSON() ([]byte, error) +1. DeletedStorageListResult.MarshalJSON() ([]byte, error) +1. Error.MarshalJSON() ([]byte, error) +1. ErrorType.MarshalJSON() ([]byte, error) +1. KeyListResult.MarshalJSON() ([]byte, error) +1. KeyOperationResult.MarshalJSON() ([]byte, error) +1. KeyVerifyResult.MarshalJSON() ([]byte, error) +1. PendingCertificateSigningRequestResult.MarshalJSON() ([]byte, error) +1. SasDefinitionListResult.MarshalJSON() ([]byte, error) +1. SecretListResult.MarshalJSON() ([]byte, error) +1. StorageListResult.MarshalJSON() ([]byte, error) diff --git a/services/keyvault/v7.0/keyvault/_meta.json b/services/keyvault/v7.0/keyvault/_meta.json index 1b5d3f3b182c..8f489243dc47 100644 --- a/services/keyvault/v7.0/keyvault/_meta.json +++ b/services/keyvault/v7.0/keyvault/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/keyvault/data-plane/readme.md", "tag": "package-7.0", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-7.0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/keyvault/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-7.0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/keyvault/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/keyvault/v7.0/keyvault/models.go b/services/keyvault/v7.0/keyvault/models.go index 8016d7f04d2b..19b0a74a48f7 100644 --- a/services/keyvault/v7.0/keyvault/models.go +++ b/services/keyvault/v7.0/keyvault/models.go @@ -73,6 +73,12 @@ type BackupCertificateResult struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for BackupCertificateResult. +func (bcr BackupCertificateResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BackupKeyResult the backup key result, containing the backup blob. type BackupKeyResult struct { autorest.Response `json:"-"` @@ -80,6 +86,12 @@ type BackupKeyResult struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for BackupKeyResult. +func (bkr BackupKeyResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BackupSecretResult the backup secret result, containing the backup blob. type BackupSecretResult struct { autorest.Response `json:"-"` @@ -87,6 +99,12 @@ type BackupSecretResult struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for BackupSecretResult. +func (bsr BackupSecretResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BackupStorageResult the backup storage result, containing the backup blob. type BackupStorageResult struct { autorest.Response `json:"-"` @@ -94,6 +112,12 @@ type BackupStorageResult struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for BackupStorageResult. +func (bsr BackupStorageResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificateAttributes the certificate management attributes. type CertificateAttributes struct { // RecoveryLevel - READ-ONLY; Reflects the deletion recovery level currently in effect for certificates in the current vault. If it contains 'Purgeable', the certificate can be permanently deleted by a privileged user; otherwise, only the system can purge the certificate, at the end of the retention interval. Possible values include: 'Purgeable', 'RecoverablePurgeable', 'Recoverable', 'RecoverableProtectedSubscription', 'CustomizedRecoverablePurgeable', 'CustomizedRecoverable', 'CustomizedRecoverableProtectedSubscription' @@ -243,6 +267,12 @@ type CertificateIssuerListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for CertificateIssuerListResult. +func (cilr CertificateIssuerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificateIssuerListResultIterator provides access to a complete listing of CertificateIssuerItem // values. type CertificateIssuerListResultIterator struct { @@ -457,6 +487,12 @@ type CertificateListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for CertificateListResult. +func (clr CertificateListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificateListResultIterator provides access to a complete listing of CertificateItem values. type CertificateListResultIterator struct { i int @@ -892,6 +928,12 @@ type DeletedCertificateListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DeletedCertificateListResult. +func (dclr DeletedCertificateListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeletedCertificateListResultIterator provides access to a complete listing of DeletedCertificateItem // values. type DeletedCertificateListResultIterator struct { @@ -1125,6 +1167,12 @@ type DeletedKeyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DeletedKeyListResult. +func (dklr DeletedKeyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeletedKeyListResultIterator provides access to a complete listing of DeletedKeyItem values. type DeletedKeyListResultIterator struct { i int @@ -1347,6 +1395,12 @@ type DeletedSasDefinitionListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DeletedSasDefinitionListResult. +func (dsdlr DeletedSasDefinitionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeletedSasDefinitionListResultIterator provides access to a complete listing of DeletedSasDefinitionItem // values. type DeletedSasDefinitionListResultIterator struct { @@ -1598,6 +1652,12 @@ type DeletedSecretListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DeletedSecretListResult. +func (dslr DeletedSecretListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeletedSecretListResultIterator provides access to a complete listing of DeletedSecretItem values. type DeletedSecretListResultIterator struct { i int @@ -1820,6 +1880,12 @@ type DeletedStorageListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DeletedStorageListResult. +func (dslr DeletedStorageListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeletedStorageListResultIterator provides access to a complete listing of DeletedStorageAccountItem // values. type DeletedStorageListResultIterator struct { @@ -1981,12 +2047,24 @@ type Error struct { InnerError *Error `json:"innererror,omitempty"` } +// MarshalJSON is the custom marshaler for Error. +func (e Error) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorType the key vault error exception. type ErrorType struct { // Error - READ-ONLY Error *Error `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorType. +func (et ErrorType) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IssuerAttributes the attributes of an issuer managed by the Key Vault service. type IssuerAttributes struct { // Enabled - Determines whether the issuer is enabled. @@ -2255,6 +2333,12 @@ type KeyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for KeyListResult. +func (klr KeyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // KeyListResultIterator provides access to a complete listing of KeyItem values. type KeyListResultIterator struct { i int @@ -2414,6 +2498,12 @@ type KeyOperationResult struct { Result *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for KeyOperationResult. +func (kor KeyOperationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // KeyOperationsParameters the key operations parameters. type KeyOperationsParameters struct { // Algorithm - algorithm identifier. Possible values include: 'RSAOAEP', 'RSAOAEP256', 'RSA15' @@ -2491,6 +2581,12 @@ type KeyVerifyResult struct { Value *bool `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for KeyVerifyResult. +func (kvr KeyVerifyResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LifetimeAction action and its trigger that will be performed by Key Vault over the lifetime of a // certificate. type LifetimeAction struct { @@ -2514,6 +2610,12 @@ type PendingCertificateSigningRequestResult struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PendingCertificateSigningRequestResult. +func (pcsrr PendingCertificateSigningRequestResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SasDefinitionAttributes the SAS definition management attributes. type SasDefinitionAttributes struct { // Enabled - the enabled state of the object. @@ -2623,6 +2725,12 @@ type SasDefinitionListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SasDefinitionListResult. +func (sdlr SasDefinitionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SasDefinitionListResultIterator provides access to a complete listing of SasDefinitionItem values. type SasDefinitionListResultIterator struct { i int @@ -2920,6 +3028,12 @@ type SecretListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SecretListResult. +func (slr SecretListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SecretListResultIterator provides access to a complete listing of SecretItem values. type SecretListResultIterator struct { i int @@ -3292,6 +3406,12 @@ type StorageListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for StorageListResult. +func (slr StorageListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageListResultIterator provides access to a complete listing of StorageAccountItem values. type StorageListResultIterator struct { i int diff --git a/services/keyvault/v7.1/keyvault/CHANGELOG.md b/services/keyvault/v7.1/keyvault/CHANGELOG.md index 52911e4cc5e4..6c701c1c40af 100644 --- a/services/keyvault/v7.1/keyvault/CHANGELOG.md +++ b/services/keyvault/v7.1/keyvault/CHANGELOG.md @@ -1,2 +1,26 @@ # Change History +## Additive Changes + +### New Funcs + +1. BackupCertificateResult.MarshalJSON() ([]byte, error) +1. BackupKeyResult.MarshalJSON() ([]byte, error) +1. BackupSecretResult.MarshalJSON() ([]byte, error) +1. BackupStorageResult.MarshalJSON() ([]byte, error) +1. CertificateIssuerListResult.MarshalJSON() ([]byte, error) +1. CertificateListResult.MarshalJSON() ([]byte, error) +1. DeletedCertificateListResult.MarshalJSON() ([]byte, error) +1. DeletedKeyListResult.MarshalJSON() ([]byte, error) +1. DeletedSasDefinitionListResult.MarshalJSON() ([]byte, error) +1. DeletedSecretListResult.MarshalJSON() ([]byte, error) +1. DeletedStorageListResult.MarshalJSON() ([]byte, error) +1. Error.MarshalJSON() ([]byte, error) +1. ErrorType.MarshalJSON() ([]byte, error) +1. KeyListResult.MarshalJSON() ([]byte, error) +1. KeyOperationResult.MarshalJSON() ([]byte, error) +1. KeyVerifyResult.MarshalJSON() ([]byte, error) +1. PendingCertificateSigningRequestResult.MarshalJSON() ([]byte, error) +1. SasDefinitionListResult.MarshalJSON() ([]byte, error) +1. SecretListResult.MarshalJSON() ([]byte, error) +1. StorageListResult.MarshalJSON() ([]byte, error) diff --git a/services/keyvault/v7.1/keyvault/_meta.json b/services/keyvault/v7.1/keyvault/_meta.json index 0198a3cda29f..e01148a28787 100644 --- a/services/keyvault/v7.1/keyvault/_meta.json +++ b/services/keyvault/v7.1/keyvault/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/keyvault/data-plane/readme.md", "tag": "package-7.1", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-7.1 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/keyvault/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-7.1 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/keyvault/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/keyvault/v7.1/keyvault/models.go b/services/keyvault/v7.1/keyvault/models.go index 087a650ae12b..8ebcb0f24cf8 100644 --- a/services/keyvault/v7.1/keyvault/models.go +++ b/services/keyvault/v7.1/keyvault/models.go @@ -73,6 +73,12 @@ type BackupCertificateResult struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for BackupCertificateResult. +func (bcr BackupCertificateResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BackupKeyResult the backup key result, containing the backup blob. type BackupKeyResult struct { autorest.Response `json:"-"` @@ -80,6 +86,12 @@ type BackupKeyResult struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for BackupKeyResult. +func (bkr BackupKeyResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BackupSecretResult the backup secret result, containing the backup blob. type BackupSecretResult struct { autorest.Response `json:"-"` @@ -87,6 +99,12 @@ type BackupSecretResult struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for BackupSecretResult. +func (bsr BackupSecretResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BackupStorageResult the backup storage result, containing the backup blob. type BackupStorageResult struct { autorest.Response `json:"-"` @@ -94,6 +112,12 @@ type BackupStorageResult struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for BackupStorageResult. +func (bsr BackupStorageResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificateAttributes the certificate management attributes. type CertificateAttributes struct { // RecoverableDays - READ-ONLY; softDelete data retention days. Value should be >=7 and <=90 when softDelete enabled, otherwise 0. @@ -245,6 +269,12 @@ type CertificateIssuerListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for CertificateIssuerListResult. +func (cilr CertificateIssuerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificateIssuerListResultIterator provides access to a complete listing of CertificateIssuerItem // values. type CertificateIssuerListResultIterator struct { @@ -459,6 +489,12 @@ type CertificateListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for CertificateListResult. +func (clr CertificateListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificateListResultIterator provides access to a complete listing of CertificateItem values. type CertificateListResultIterator struct { i int @@ -894,6 +930,12 @@ type DeletedCertificateListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DeletedCertificateListResult. +func (dclr DeletedCertificateListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeletedCertificateListResultIterator provides access to a complete listing of DeletedCertificateItem // values. type DeletedCertificateListResultIterator struct { @@ -1127,6 +1169,12 @@ type DeletedKeyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DeletedKeyListResult. +func (dklr DeletedKeyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeletedKeyListResultIterator provides access to a complete listing of DeletedKeyItem values. type DeletedKeyListResultIterator struct { i int @@ -1349,6 +1397,12 @@ type DeletedSasDefinitionListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DeletedSasDefinitionListResult. +func (dsdlr DeletedSasDefinitionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeletedSasDefinitionListResultIterator provides access to a complete listing of DeletedSasDefinitionItem // values. type DeletedSasDefinitionListResultIterator struct { @@ -1600,6 +1654,12 @@ type DeletedSecretListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DeletedSecretListResult. +func (dslr DeletedSecretListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeletedSecretListResultIterator provides access to a complete listing of DeletedSecretItem values. type DeletedSecretListResultIterator struct { i int @@ -1822,6 +1882,12 @@ type DeletedStorageListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DeletedStorageListResult. +func (dslr DeletedStorageListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeletedStorageListResultIterator provides access to a complete listing of DeletedStorageAccountItem // values. type DeletedStorageListResultIterator struct { @@ -1983,12 +2049,24 @@ type Error struct { InnerError *Error `json:"innererror,omitempty"` } +// MarshalJSON is the custom marshaler for Error. +func (e Error) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorType the key vault error exception. type ErrorType struct { // Error - READ-ONLY Error *Error `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorType. +func (et ErrorType) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IssuerAttributes the attributes of an issuer managed by the Key Vault service. type IssuerAttributes struct { // Enabled - Determines whether the issuer is enabled. @@ -2259,6 +2337,12 @@ type KeyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for KeyListResult. +func (klr KeyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // KeyListResultIterator provides access to a complete listing of KeyItem values. type KeyListResultIterator struct { i int @@ -2418,6 +2502,12 @@ type KeyOperationResult struct { Result *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for KeyOperationResult. +func (kor KeyOperationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // KeyOperationsParameters the key operations parameters. type KeyOperationsParameters struct { // Algorithm - algorithm identifier. Possible values include: 'RSAOAEP', 'RSAOAEP256', 'RSA15' @@ -2495,6 +2585,12 @@ type KeyVerifyResult struct { Value *bool `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for KeyVerifyResult. +func (kvr KeyVerifyResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LifetimeAction action and its trigger that will be performed by Key Vault over the lifetime of a // certificate. type LifetimeAction struct { @@ -2518,6 +2614,12 @@ type PendingCertificateSigningRequestResult struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PendingCertificateSigningRequestResult. +func (pcsrr PendingCertificateSigningRequestResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SasDefinitionAttributes the SAS definition management attributes. type SasDefinitionAttributes struct { // Enabled - the enabled state of the object. @@ -2629,6 +2731,12 @@ type SasDefinitionListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SasDefinitionListResult. +func (sdlr SasDefinitionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SasDefinitionListResultIterator provides access to a complete listing of SasDefinitionItem values. type SasDefinitionListResultIterator struct { i int @@ -2928,6 +3036,12 @@ type SecretListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SecretListResult. +func (slr SecretListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SecretListResultIterator provides access to a complete listing of SecretItem values. type SecretListResultIterator struct { i int @@ -3302,6 +3416,12 @@ type StorageListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for StorageListResult. +func (slr StorageListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageListResultIterator provides access to a complete listing of StorageAccountItem values. type StorageListResultIterator struct { i int diff --git a/services/kubernetesconfiguration/mgmt/2021-03-01/kubernetesconfiguration/CHANGELOG.md b/services/kubernetesconfiguration/mgmt/2021-03-01/kubernetesconfiguration/CHANGELOG.md index 52911e4cc5e4..1648d3bcc41f 100644 --- a/services/kubernetesconfiguration/mgmt/2021-03-01/kubernetesconfiguration/CHANGELOG.md +++ b/services/kubernetesconfiguration/mgmt/2021-03-01/kubernetesconfiguration/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. SourceControlConfigurationList.MarshalJSON() ([]byte, error) diff --git a/services/kubernetesconfiguration/mgmt/2021-03-01/kubernetesconfiguration/_meta.json b/services/kubernetesconfiguration/mgmt/2021-03-01/kubernetesconfiguration/_meta.json index bd8d954879ce..332caf212eb2 100644 --- a/services/kubernetesconfiguration/mgmt/2021-03-01/kubernetesconfiguration/_meta.json +++ b/services/kubernetesconfiguration/mgmt/2021-03-01/kubernetesconfiguration/_meta.json @@ -2,9 +2,9 @@ "commit": "92ab22b49bd085116af0c61fada2c6c360702e9e", "readme": "/_/azure-rest-api-specs/specification/kubernetesconfiguration/resource-manager/readme.md", "tag": "package-2021-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2021-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/kubernetesconfiguration/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2021-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/kubernetesconfiguration/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/kubernetesconfiguration/mgmt/2021-03-01/kubernetesconfiguration/models.go b/services/kubernetesconfiguration/mgmt/2021-03-01/kubernetesconfiguration/models.go index c17e54589a92..2f5121a2a2fb 100644 --- a/services/kubernetesconfiguration/mgmt/2021-03-01/kubernetesconfiguration/models.go +++ b/services/kubernetesconfiguration/mgmt/2021-03-01/kubernetesconfiguration/models.go @@ -32,6 +32,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ComplianceStatus compliance Status details type ComplianceStatus struct { // ComplianceState - READ-ONLY; The compliance state of the configuration. Possible values include: 'Pending', 'Compliant', 'Noncompliant', 'Installed', 'Failed' @@ -92,6 +98,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -102,6 +114,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceProviderOperation supported operation of this resource provider. type ResourceProviderOperation struct { // Name - Operation name, in format of {provider}/{resource}/{operation} @@ -408,6 +426,12 @@ type SourceControlConfigurationList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SourceControlConfigurationList. +func (sccl SourceControlConfigurationList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SourceControlConfigurationListIterator provides access to a complete listing of // SourceControlConfiguration values. type SourceControlConfigurationListIterator struct { diff --git a/services/kusto/mgmt/2019-01-21/kusto/CHANGELOG.md b/services/kusto/mgmt/2019-01-21/kusto/CHANGELOG.md index 52911e4cc5e4..4a0e9bec8e2f 100644 --- a/services/kusto/mgmt/2019-01-21/kusto/CHANGELOG.md +++ b/services/kusto/mgmt/2019-01-21/kusto/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/kusto/mgmt/2019-01-21/kusto/_meta.json b/services/kusto/mgmt/2019-01-21/kusto/_meta.json index bfc1ef60ec55..a2e6d07b2abc 100644 --- a/services/kusto/mgmt/2019-01-21/kusto/_meta.json +++ b/services/kusto/mgmt/2019-01-21/kusto/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/azure-kusto/resource-manager/readme.md", "tag": "package-2019-01-21", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-01-21 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/azure-kusto/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-01-21 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/azure-kusto/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/kusto/mgmt/2019-01-21/kusto/models.go b/services/kusto/mgmt/2019-01-21/kusto/models.go index cebd08b39564..ea2db2a0f274 100644 --- a/services/kusto/mgmt/2019-01-21/kusto/models.go +++ b/services/kusto/mgmt/2019-01-21/kusto/models.go @@ -43,6 +43,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureResourceSku azure resource SKU definition. type AzureResourceSku struct { // ResourceType - Resource Namespace and Type. @@ -1730,6 +1736,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -1740,6 +1752,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource // which has 'tags' and a 'location' type TrackedResource struct { diff --git a/services/kusto/mgmt/2019-05-15/kusto/CHANGELOG.md b/services/kusto/mgmt/2019-05-15/kusto/CHANGELOG.md index 52911e4cc5e4..957959dcae03 100644 --- a/services/kusto/mgmt/2019-05-15/kusto/CHANGELOG.md +++ b/services/kusto/mgmt/2019-05-15/kusto/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. SkuDescription.MarshalJSON() ([]byte, error) +1. SkuDescriptionList.MarshalJSON() ([]byte, error) diff --git a/services/kusto/mgmt/2019-05-15/kusto/_meta.json b/services/kusto/mgmt/2019-05-15/kusto/_meta.json index 7f204fb6194f..e12e5e2c214b 100644 --- a/services/kusto/mgmt/2019-05-15/kusto/_meta.json +++ b/services/kusto/mgmt/2019-05-15/kusto/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/azure-kusto/resource-manager/readme.md", "tag": "package-2019-05-15", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-05-15 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/azure-kusto/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-05-15 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/azure-kusto/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/kusto/mgmt/2019-05-15/kusto/models.go b/services/kusto/mgmt/2019-05-15/kusto/models.go index d90157dcd549..650b1c40ad08 100644 --- a/services/kusto/mgmt/2019-05-15/kusto/models.go +++ b/services/kusto/mgmt/2019-05-15/kusto/models.go @@ -43,6 +43,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureResourceSku azure resource SKU definition. type AzureResourceSku struct { // ResourceType - Resource Namespace and Type. @@ -1961,6 +1967,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -1971,6 +1983,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuDescription the Kusto SKU description of given resource type type SkuDescription struct { // ResourceType - READ-ONLY; The resource type @@ -1987,6 +2005,12 @@ type SkuDescription struct { Restrictions *[]interface{} `json:"restrictions,omitempty"` } +// MarshalJSON is the custom marshaler for SkuDescription. +func (sd SkuDescription) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuDescriptionList the list of the EngagementFabric SKU descriptions type SkuDescriptionList struct { autorest.Response `json:"-"` @@ -1994,6 +2018,12 @@ type SkuDescriptionList struct { Value *[]SkuDescription `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SkuDescriptionList. +func (sdl SkuDescriptionList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuLocationInfoItem the locations and zones info for SKU. type SkuLocationInfoItem struct { // Location - The available location of the SKU. diff --git a/services/kusto/mgmt/2019-09-07/kusto/CHANGELOG.md b/services/kusto/mgmt/2019-09-07/kusto/CHANGELOG.md index 52911e4cc5e4..997ce8b01855 100644 --- a/services/kusto/mgmt/2019-09-07/kusto/CHANGELOG.md +++ b/services/kusto/mgmt/2019-09-07/kusto/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. IdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. SkuDescription.MarshalJSON() ([]byte, error) +1. SkuDescriptionList.MarshalJSON() ([]byte, error) diff --git a/services/kusto/mgmt/2019-09-07/kusto/_meta.json b/services/kusto/mgmt/2019-09-07/kusto/_meta.json index 72592ad54a61..6abcbcda374d 100644 --- a/services/kusto/mgmt/2019-09-07/kusto/_meta.json +++ b/services/kusto/mgmt/2019-09-07/kusto/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/azure-kusto/resource-manager/readme.md", "tag": "package-2019-09-07", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-09-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/azure-kusto/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-09-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/azure-kusto/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/kusto/mgmt/2019-09-07/kusto/models.go b/services/kusto/mgmt/2019-09-07/kusto/models.go index b3239d5b9595..ed51b40ea7ef 100644 --- a/services/kusto/mgmt/2019-09-07/kusto/models.go +++ b/services/kusto/mgmt/2019-09-07/kusto/models.go @@ -247,6 +247,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureResourceSku azure resource SKU definition. type AzureResourceSku struct { // ResourceType - Resource Namespace and Type. @@ -1883,6 +1889,12 @@ type IdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for IdentityUserAssignedIdentitiesValue. +func (iAiv IdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IotHubConnectionProperties class representing the Kusto iot hub connection properties. type IotHubConnectionProperties struct { // IotHubResourceID - The resource ID of the Iot hub to be used to create a data connection. @@ -2242,6 +2254,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReadOnlyFollowingDatabase class representing a read only following database. type ReadOnlyFollowingDatabase struct { // ReadOnlyFollowingDatabaseProperties - The database properties. @@ -2551,6 +2569,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuDescription the Kusto SKU description of given resource type type SkuDescription struct { // ResourceType - READ-ONLY; The resource type @@ -2567,6 +2591,12 @@ type SkuDescription struct { Restrictions *[]interface{} `json:"restrictions,omitempty"` } +// MarshalJSON is the custom marshaler for SkuDescription. +func (sd SkuDescription) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuDescriptionList the list of the EngagementFabric SKU descriptions type SkuDescriptionList struct { autorest.Response `json:"-"` @@ -2574,6 +2604,12 @@ type SkuDescriptionList struct { Value *[]SkuDescription `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SkuDescriptionList. +func (sdl SkuDescriptionList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuLocationInfoItem the locations and zones info for SKU. type SkuLocationInfoItem struct { // Location - The available location of the SKU. diff --git a/services/kusto/mgmt/2019-11-09/kusto/CHANGELOG.md b/services/kusto/mgmt/2019-11-09/kusto/CHANGELOG.md index 52911e4cc5e4..997ce8b01855 100644 --- a/services/kusto/mgmt/2019-11-09/kusto/CHANGELOG.md +++ b/services/kusto/mgmt/2019-11-09/kusto/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. IdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. SkuDescription.MarshalJSON() ([]byte, error) +1. SkuDescriptionList.MarshalJSON() ([]byte, error) diff --git a/services/kusto/mgmt/2019-11-09/kusto/_meta.json b/services/kusto/mgmt/2019-11-09/kusto/_meta.json index 9ecf5a0d8a2c..cbad30f4bf7e 100644 --- a/services/kusto/mgmt/2019-11-09/kusto/_meta.json +++ b/services/kusto/mgmt/2019-11-09/kusto/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/azure-kusto/resource-manager/readme.md", "tag": "package-2019-11-09", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-11-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/azure-kusto/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-11-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/azure-kusto/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/kusto/mgmt/2019-11-09/kusto/models.go b/services/kusto/mgmt/2019-11-09/kusto/models.go index 406055252463..d5b19adfc2a0 100644 --- a/services/kusto/mgmt/2019-11-09/kusto/models.go +++ b/services/kusto/mgmt/2019-11-09/kusto/models.go @@ -247,6 +247,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureResourceSku azure resource SKU definition. type AzureResourceSku struct { // ResourceType - Resource Namespace and Type. @@ -2344,6 +2350,12 @@ type IdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for IdentityUserAssignedIdentitiesValue. +func (iAiv IdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IotHubConnectionProperties class representing the Kusto Iot hub connection properties. type IotHubConnectionProperties struct { // IotHubResourceID - The resource ID of the Iot hub to be used to create a data connection. @@ -2703,6 +2715,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReadOnlyFollowingDatabase class representing a read only following database. type ReadOnlyFollowingDatabase struct { // ReadOnlyFollowingDatabaseProperties - The database properties. @@ -3014,6 +3032,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuDescription the Kusto SKU description of given resource type type SkuDescription struct { // ResourceType - READ-ONLY; The resource type @@ -3030,6 +3054,12 @@ type SkuDescription struct { Restrictions *[]interface{} `json:"restrictions,omitempty"` } +// MarshalJSON is the custom marshaler for SkuDescription. +func (sd SkuDescription) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuDescriptionList the list of the EngagementFabric SKU descriptions type SkuDescriptionList struct { autorest.Response `json:"-"` @@ -3037,6 +3067,12 @@ type SkuDescriptionList struct { Value *[]SkuDescription `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SkuDescriptionList. +func (sdl SkuDescriptionList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuLocationInfoItem the locations and zones info for SKU. type SkuLocationInfoItem struct { // Location - The available location of the SKU. diff --git a/services/kusto/mgmt/2020-02-15/kusto/CHANGELOG.md b/services/kusto/mgmt/2020-02-15/kusto/CHANGELOG.md index 52911e4cc5e4..997ce8b01855 100644 --- a/services/kusto/mgmt/2020-02-15/kusto/CHANGELOG.md +++ b/services/kusto/mgmt/2020-02-15/kusto/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. IdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. SkuDescription.MarshalJSON() ([]byte, error) +1. SkuDescriptionList.MarshalJSON() ([]byte, error) diff --git a/services/kusto/mgmt/2020-02-15/kusto/_meta.json b/services/kusto/mgmt/2020-02-15/kusto/_meta.json index b19168e70696..19c01fa01ff3 100644 --- a/services/kusto/mgmt/2020-02-15/kusto/_meta.json +++ b/services/kusto/mgmt/2020-02-15/kusto/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/azure-kusto/resource-manager/readme.md", "tag": "package-2020-02-15", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-02-15 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/azure-kusto/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-02-15 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/azure-kusto/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/kusto/mgmt/2020-02-15/kusto/models.go b/services/kusto/mgmt/2020-02-15/kusto/models.go index 988fe7451e65..8b9fea642398 100644 --- a/services/kusto/mgmt/2020-02-15/kusto/models.go +++ b/services/kusto/mgmt/2020-02-15/kusto/models.go @@ -247,6 +247,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureResourceSku azure resource SKU definition. type AzureResourceSku struct { // ResourceType - Resource Namespace and Type. @@ -2428,6 +2434,12 @@ type IdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for IdentityUserAssignedIdentitiesValue. +func (iAiv IdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IotHubConnectionProperties class representing the Kusto Iot hub connection properties. type IotHubConnectionProperties struct { // IotHubResourceID - The resource ID of the Iot hub to be used to create a data connection. @@ -2800,6 +2812,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReadOnlyFollowingDatabase class representing a read only following database. type ReadOnlyFollowingDatabase struct { // ReadOnlyFollowingDatabaseProperties - The database properties. @@ -3111,6 +3129,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuDescription the Kusto SKU description of given resource type type SkuDescription struct { // ResourceType - READ-ONLY; The resource type @@ -3127,6 +3151,12 @@ type SkuDescription struct { Restrictions *[]interface{} `json:"restrictions,omitempty"` } +// MarshalJSON is the custom marshaler for SkuDescription. +func (sd SkuDescription) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuDescriptionList the list of the EngagementFabric SKU descriptions type SkuDescriptionList struct { autorest.Response `json:"-"` @@ -3134,6 +3164,12 @@ type SkuDescriptionList struct { Value *[]SkuDescription `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SkuDescriptionList. +func (sdl SkuDescriptionList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuLocationInfoItem the locations and zones info for SKU. type SkuLocationInfoItem struct { // Location - The available location of the SKU. diff --git a/services/kusto/mgmt/2020-06-14/kusto/CHANGELOG.md b/services/kusto/mgmt/2020-06-14/kusto/CHANGELOG.md index 52911e4cc5e4..997ce8b01855 100644 --- a/services/kusto/mgmt/2020-06-14/kusto/CHANGELOG.md +++ b/services/kusto/mgmt/2020-06-14/kusto/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. IdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. SkuDescription.MarshalJSON() ([]byte, error) +1. SkuDescriptionList.MarshalJSON() ([]byte, error) diff --git a/services/kusto/mgmt/2020-06-14/kusto/_meta.json b/services/kusto/mgmt/2020-06-14/kusto/_meta.json index 28544c7d3e72..982b48600e8a 100644 --- a/services/kusto/mgmt/2020-06-14/kusto/_meta.json +++ b/services/kusto/mgmt/2020-06-14/kusto/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/azure-kusto/resource-manager/readme.md", "tag": "package-2020-06-14", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-06-14 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/azure-kusto/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-06-14 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/azure-kusto/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/kusto/mgmt/2020-06-14/kusto/models.go b/services/kusto/mgmt/2020-06-14/kusto/models.go index 4ed8dfaaf291..7a445de1fe35 100644 --- a/services/kusto/mgmt/2020-06-14/kusto/models.go +++ b/services/kusto/mgmt/2020-06-14/kusto/models.go @@ -247,6 +247,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureResourceSku azure resource SKU definition. type AzureResourceSku struct { // ResourceType - Resource Namespace and Type. @@ -2477,6 +2483,12 @@ type IdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for IdentityUserAssignedIdentitiesValue. +func (iAiv IdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IotHubConnectionProperties class representing the Kusto Iot hub connection properties. type IotHubConnectionProperties struct { // IotHubResourceID - The resource ID of the Iot hub to be used to create a data connection. @@ -2849,6 +2861,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReadOnlyFollowingDatabase class representing a read only following database. type ReadOnlyFollowingDatabase struct { // ReadOnlyFollowingDatabaseProperties - The database properties. @@ -3160,6 +3178,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuDescription the Kusto SKU description of given resource type type SkuDescription struct { // ResourceType - READ-ONLY; The resource type @@ -3176,6 +3200,12 @@ type SkuDescription struct { Restrictions *[]interface{} `json:"restrictions,omitempty"` } +// MarshalJSON is the custom marshaler for SkuDescription. +func (sd SkuDescription) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuDescriptionList the list of the EngagementFabric SKU descriptions type SkuDescriptionList struct { autorest.Response `json:"-"` @@ -3183,6 +3213,12 @@ type SkuDescriptionList struct { Value *[]SkuDescription `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SkuDescriptionList. +func (sdl SkuDescriptionList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuLocationInfoItem the locations and zones info for SKU. type SkuLocationInfoItem struct { // Location - The available location of the SKU. diff --git a/services/kusto/mgmt/2020-09-18/kusto/CHANGELOG.md b/services/kusto/mgmt/2020-09-18/kusto/CHANGELOG.md index 52911e4cc5e4..997ce8b01855 100644 --- a/services/kusto/mgmt/2020-09-18/kusto/CHANGELOG.md +++ b/services/kusto/mgmt/2020-09-18/kusto/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. IdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. SkuDescription.MarshalJSON() ([]byte, error) +1. SkuDescriptionList.MarshalJSON() ([]byte, error) diff --git a/services/kusto/mgmt/2020-09-18/kusto/_meta.json b/services/kusto/mgmt/2020-09-18/kusto/_meta.json index 8f8b6d1dada2..b96297ade5be 100644 --- a/services/kusto/mgmt/2020-09-18/kusto/_meta.json +++ b/services/kusto/mgmt/2020-09-18/kusto/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/azure-kusto/resource-manager/readme.md", "tag": "package-2020-09-18", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-09-18 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/azure-kusto/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-09-18 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/azure-kusto/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/kusto/mgmt/2020-09-18/kusto/models.go b/services/kusto/mgmt/2020-09-18/kusto/models.go index 1822fd5aac1e..37ecc57aaced 100644 --- a/services/kusto/mgmt/2020-09-18/kusto/models.go +++ b/services/kusto/mgmt/2020-09-18/kusto/models.go @@ -250,6 +250,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureResourceSku azure resource SKU definition. type AzureResourceSku struct { // ResourceType - Resource Namespace and Type. @@ -2498,6 +2504,12 @@ type IdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for IdentityUserAssignedIdentitiesValue. +func (iAiv IdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IotHubConnectionProperties class representing the Kusto Iot hub connection properties. type IotHubConnectionProperties struct { // IotHubResourceID - The resource ID of the Iot hub to be used to create a data connection. @@ -2874,6 +2886,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReadOnlyFollowingDatabase class representing a read only following database. type ReadOnlyFollowingDatabase struct { // ReadOnlyFollowingDatabaseProperties - The database properties. @@ -3191,6 +3209,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuDescription the Kusto SKU description of given resource type type SkuDescription struct { // ResourceType - READ-ONLY; The resource type @@ -3207,6 +3231,12 @@ type SkuDescription struct { Restrictions *[]interface{} `json:"restrictions,omitempty"` } +// MarshalJSON is the custom marshaler for SkuDescription. +func (sd SkuDescription) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuDescriptionList the list of the EngagementFabric SKU descriptions type SkuDescriptionList struct { autorest.Response `json:"-"` @@ -3214,6 +3244,12 @@ type SkuDescriptionList struct { Value *[]SkuDescription `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SkuDescriptionList. +func (sdl SkuDescriptionList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuLocationInfoItem the locations and zones info for SKU. type SkuLocationInfoItem struct { // Location - The available location of the SKU. diff --git a/services/kusto/mgmt/2021-01-01/kusto/CHANGELOG.md b/services/kusto/mgmt/2021-01-01/kusto/CHANGELOG.md index ea9cccefdc28..2e08442824ce 100644 --- a/services/kusto/mgmt/2021-01-01/kusto/CHANGELOG.md +++ b/services/kusto/mgmt/2021-01-01/kusto/CHANGELOG.md @@ -4,158 +4,23 @@ ### Removed Constants -1. AzureScaleType.Automatic -1. AzureScaleType.Manual -1. AzureScaleType.None -1. AzureSkuName.DevNoSLAStandardD11V2 -1. AzureSkuName.DevNoSLAStandardE2aV4 -1. AzureSkuName.StandardD11V2 -1. AzureSkuName.StandardD12V2 -1. AzureSkuName.StandardD13V2 -1. AzureSkuName.StandardD14V2 -1. AzureSkuName.StandardDS13V21TBPS -1. AzureSkuName.StandardDS13V22TBPS -1. AzureSkuName.StandardDS14V23TBPS -1. AzureSkuName.StandardDS14V24TBPS -1. AzureSkuName.StandardE16aV4 -1. AzureSkuName.StandardE16asV43TBPS -1. AzureSkuName.StandardE16asV44TBPS -1. AzureSkuName.StandardE2aV4 -1. AzureSkuName.StandardE4aV4 -1. AzureSkuName.StandardE64iV3 -1. AzureSkuName.StandardE80idsV4 -1. AzureSkuName.StandardE8aV4 -1. AzureSkuName.StandardE8asV41TBPS -1. AzureSkuName.StandardE8asV42TBPS -1. AzureSkuName.StandardL16s -1. AzureSkuName.StandardL16sV2 -1. AzureSkuName.StandardL4s -1. AzureSkuName.StandardL8s -1. AzureSkuName.StandardL8sV2 -1. AzureSkuTier.Basic -1. AzureSkuTier.Standard -1. BlobStorageEventType.MicrosoftStorageBlobCreated -1. BlobStorageEventType.MicrosoftStorageBlobRenamed -1. ClusterPrincipalRole.AllDatabasesAdmin -1. ClusterPrincipalRole.AllDatabasesViewer -1. CreatedByType.Application -1. CreatedByType.Key -1. CreatedByType.ManagedIdentity -1. CreatedByType.User -1. EngineType.V2 -1. EngineType.V3 -1. EventGridDataFormat.APACHEAVRO -1. EventGridDataFormat.AVRO -1. EventGridDataFormat.CSV -1. EventGridDataFormat.JSON -1. EventGridDataFormat.MULTIJSON -1. EventGridDataFormat.ORC -1. EventGridDataFormat.PARQUET -1. EventGridDataFormat.PSV -1. EventGridDataFormat.RAW -1. EventGridDataFormat.SCSV -1. EventGridDataFormat.SINGLEJSON -1. EventGridDataFormat.SOHSV -1. EventGridDataFormat.TSV -1. EventGridDataFormat.TSVE -1. EventGridDataFormat.TXT -1. EventGridDataFormat.W3CLOGFILE -1. Kind.KindDatabase -1. Kind.KindReadOnlyFollowing -1. Kind.KindReadWrite -1. KindBasicDataConnection.KindDataConnection -1. KindBasicDataConnection.KindEventGrid -1. KindBasicDataConnection.KindEventHub -1. KindBasicDataConnection.KindIotHub -1. LanguageExtensionName.PYTHON -1. LanguageExtensionName.R -1. ProvisioningState.Creating -1. ProvisioningState.Deleting -1. ProvisioningState.Failed -1. ProvisioningState.Moving -1. ProvisioningState.Running -1. ProvisioningState.Succeeded -1. Reason.AlreadyExists -1. Reason.Invalid -1. Type.MicrosoftKustoclustersattachedDatabaseConfigurations -1. Type.MicrosoftKustoclustersdatabases +1. Kind.KindKindDatabase +1. Kind.KindKindReadOnlyFollowing +1. Kind.KindKindReadWrite ## Additive Changes ### New Constants -1. AzureScaleType.AzureScaleTypeAutomatic -1. AzureScaleType.AzureScaleTypeManual -1. AzureScaleType.AzureScaleTypeNone -1. AzureSkuName.AzureSkuNameDevNoSLAStandardD11V2 -1. AzureSkuName.AzureSkuNameDevNoSLAStandardE2aV4 -1. AzureSkuName.AzureSkuNameStandardD11V2 -1. AzureSkuName.AzureSkuNameStandardD12V2 -1. AzureSkuName.AzureSkuNameStandardD13V2 -1. AzureSkuName.AzureSkuNameStandardD14V2 -1. AzureSkuName.AzureSkuNameStandardDS13V21TBPS -1. AzureSkuName.AzureSkuNameStandardDS13V22TBPS -1. AzureSkuName.AzureSkuNameStandardDS14V23TBPS -1. AzureSkuName.AzureSkuNameStandardDS14V24TBPS -1. AzureSkuName.AzureSkuNameStandardE16aV4 -1. AzureSkuName.AzureSkuNameStandardE16asV43TBPS -1. AzureSkuName.AzureSkuNameStandardE16asV44TBPS -1. AzureSkuName.AzureSkuNameStandardE2aV4 -1. AzureSkuName.AzureSkuNameStandardE4aV4 -1. AzureSkuName.AzureSkuNameStandardE64iV3 -1. AzureSkuName.AzureSkuNameStandardE80idsV4 -1. AzureSkuName.AzureSkuNameStandardE8aV4 -1. AzureSkuName.AzureSkuNameStandardE8asV41TBPS -1. AzureSkuName.AzureSkuNameStandardE8asV42TBPS -1. AzureSkuName.AzureSkuNameStandardL16s -1. AzureSkuName.AzureSkuNameStandardL16sV2 -1. AzureSkuName.AzureSkuNameStandardL4s -1. AzureSkuName.AzureSkuNameStandardL8s -1. AzureSkuName.AzureSkuNameStandardL8sV2 -1. AzureSkuTier.AzureSkuTierBasic -1. AzureSkuTier.AzureSkuTierStandard -1. BlobStorageEventType.BlobStorageEventTypeMicrosoftStorageBlobCreated -1. BlobStorageEventType.BlobStorageEventTypeMicrosoftStorageBlobRenamed -1. ClusterPrincipalRole.ClusterPrincipalRoleAllDatabasesAdmin -1. ClusterPrincipalRole.ClusterPrincipalRoleAllDatabasesViewer -1. CreatedByType.CreatedByTypeApplication -1. CreatedByType.CreatedByTypeKey -1. CreatedByType.CreatedByTypeManagedIdentity -1. CreatedByType.CreatedByTypeUser -1. EngineType.EngineTypeV2 -1. EngineType.EngineTypeV3 -1. EventGridDataFormat.EventGridDataFormatAPACHEAVRO -1. EventGridDataFormat.EventGridDataFormatAVRO -1. EventGridDataFormat.EventGridDataFormatCSV -1. EventGridDataFormat.EventGridDataFormatJSON -1. EventGridDataFormat.EventGridDataFormatMULTIJSON -1. EventGridDataFormat.EventGridDataFormatORC -1. EventGridDataFormat.EventGridDataFormatPARQUET -1. EventGridDataFormat.EventGridDataFormatPSV -1. EventGridDataFormat.EventGridDataFormatRAW -1. EventGridDataFormat.EventGridDataFormatSCSV -1. EventGridDataFormat.EventGridDataFormatSINGLEJSON -1. EventGridDataFormat.EventGridDataFormatSOHSV -1. EventGridDataFormat.EventGridDataFormatTSV -1. EventGridDataFormat.EventGridDataFormatTSVE -1. EventGridDataFormat.EventGridDataFormatTXT -1. EventGridDataFormat.EventGridDataFormatW3CLOGFILE -1. Kind.KindKindDatabase -1. Kind.KindKindReadOnlyFollowing -1. Kind.KindKindReadWrite -1. KindBasicDataConnection.KindBasicDataConnectionKindDataConnection -1. KindBasicDataConnection.KindBasicDataConnectionKindEventGrid -1. KindBasicDataConnection.KindBasicDataConnectionKindEventHub -1. KindBasicDataConnection.KindBasicDataConnectionKindIotHub -1. LanguageExtensionName.LanguageExtensionNamePYTHON -1. LanguageExtensionName.LanguageExtensionNameR -1. ProvisioningState.ProvisioningStateCreating -1. ProvisioningState.ProvisioningStateDeleting -1. ProvisioningState.ProvisioningStateFailed -1. ProvisioningState.ProvisioningStateMoving -1. ProvisioningState.ProvisioningStateRunning -1. ProvisioningState.ProvisioningStateSucceeded -1. Reason.ReasonAlreadyExists -1. Reason.ReasonInvalid -1. Type.TypeMicrosoftKustoclustersattachedDatabaseConfigurations -1. Type.TypeMicrosoftKustoclustersdatabases +1. Kind.KindDatabase +1. Kind.KindReadOnlyFollowing +1. Kind.KindReadWrite + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. IdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. SkuDescription.MarshalJSON() ([]byte, error) +1. SkuDescriptionList.MarshalJSON() ([]byte, error) diff --git a/services/kusto/mgmt/2021-01-01/kusto/_meta.json b/services/kusto/mgmt/2021-01-01/kusto/_meta.json index a48dd193a8bc..4364ef4f5d62 100644 --- a/services/kusto/mgmt/2021-01-01/kusto/_meta.json +++ b/services/kusto/mgmt/2021-01-01/kusto/_meta.json @@ -2,9 +2,9 @@ "commit": "e5839301dfd424559851119c99ef0a2699fbd228", "readme": "/_/azure-rest-api-specs/specification/azure-kusto/resource-manager/readme.md", "tag": "package-2021-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2021-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/azure-kusto/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2021-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/azure-kusto/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix" } diff --git a/services/kusto/mgmt/2021-01-01/kusto/enums.go b/services/kusto/mgmt/2021-01-01/kusto/enums.go index da33154ce9e1..73035619f929 100644 --- a/services/kusto/mgmt/2021-01-01/kusto/enums.go +++ b/services/kusto/mgmt/2021-01-01/kusto/enums.go @@ -387,17 +387,17 @@ func PossibleIotHubDataFormatValues() []IotHubDataFormat { type Kind string const ( - // KindKindDatabase ... - KindKindDatabase Kind = "Database" - // KindKindReadOnlyFollowing ... - KindKindReadOnlyFollowing Kind = "ReadOnlyFollowing" - // KindKindReadWrite ... - KindKindReadWrite Kind = "ReadWrite" + // KindDatabase ... + KindDatabase Kind = "Database" + // KindReadOnlyFollowing ... + KindReadOnlyFollowing Kind = "ReadOnlyFollowing" + // KindReadWrite ... + KindReadWrite Kind = "ReadWrite" ) // PossibleKindValues returns an array of possible values for the Kind const type. func PossibleKindValues() []Kind { - return []Kind{KindKindDatabase, KindKindReadOnlyFollowing, KindKindReadWrite} + return []Kind{KindDatabase, KindReadOnlyFollowing, KindReadWrite} } // KindBasicDataConnection enumerates the values for kind basic data connection. diff --git a/services/kusto/mgmt/2021-01-01/kusto/models.go b/services/kusto/mgmt/2021-01-01/kusto/models.go index 377c5013c1ec..2fc36ec2990b 100644 --- a/services/kusto/mgmt/2021-01-01/kusto/models.go +++ b/services/kusto/mgmt/2021-01-01/kusto/models.go @@ -256,6 +256,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureResourceSku azure resource SKU definition. type AzureResourceSku struct { // ResourceType - Resource Namespace and Type. @@ -1251,7 +1257,7 @@ type Database struct { autorest.Response `json:"-"` // Location - Resource location. Location *string `json:"location,omitempty"` - // Kind - Possible values include: 'KindKindDatabase', 'KindKindReadWrite', 'KindKindReadOnlyFollowing' + // Kind - Possible values include: 'KindDatabase', 'KindReadWrite', 'KindReadOnlyFollowing' Kind Kind `json:"kind,omitempty"` // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` @@ -1269,11 +1275,11 @@ func unmarshalBasicDatabase(body []byte) (BasicDatabase, error) { } switch m["kind"] { - case string(KindKindReadWrite): + case string(KindReadWrite): var rwd ReadWriteDatabase err := json.Unmarshal(body, &rwd) return rwd, err - case string(KindKindReadOnlyFollowing): + case string(KindReadOnlyFollowing): var rofd ReadOnlyFollowingDatabase err := json.Unmarshal(body, &rofd) return rofd, err @@ -1304,7 +1310,7 @@ func unmarshalBasicDatabaseArray(body []byte) ([]BasicDatabase, error) { // MarshalJSON is the custom marshaler for Database. func (d Database) MarshalJSON() ([]byte, error) { - d.Kind = KindKindDatabase + d.Kind = KindDatabase objectMap := make(map[string]interface{}) if d.Location != nil { objectMap["location"] = d.Location @@ -2517,6 +2523,12 @@ type IdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for IdentityUserAssignedIdentitiesValue. +func (iAiv IdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IotHubConnectionProperties class representing the Kusto Iot hub connection properties. type IotHubConnectionProperties struct { // IotHubResourceID - The resource ID of the Iot hub to be used to create a data connection. @@ -3041,13 +3053,19 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReadOnlyFollowingDatabase class representing a read only following database. type ReadOnlyFollowingDatabase struct { // ReadOnlyFollowingDatabaseProperties - The database properties. *ReadOnlyFollowingDatabaseProperties `json:"properties,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` - // Kind - Possible values include: 'KindKindDatabase', 'KindKindReadWrite', 'KindKindReadOnlyFollowing' + // Kind - Possible values include: 'KindDatabase', 'KindReadWrite', 'KindReadOnlyFollowing' Kind Kind `json:"kind,omitempty"` // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` @@ -3059,7 +3077,7 @@ type ReadOnlyFollowingDatabase struct { // MarshalJSON is the custom marshaler for ReadOnlyFollowingDatabase. func (rofd ReadOnlyFollowingDatabase) MarshalJSON() ([]byte, error) { - rofd.Kind = KindKindReadOnlyFollowing + rofd.Kind = KindReadOnlyFollowing objectMap := make(map[string]interface{}) if rofd.ReadOnlyFollowingDatabaseProperties != nil { objectMap["properties"] = rofd.ReadOnlyFollowingDatabaseProperties @@ -3201,7 +3219,7 @@ type ReadWriteDatabase struct { *ReadWriteDatabaseProperties `json:"properties,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` - // Kind - Possible values include: 'KindKindDatabase', 'KindKindReadWrite', 'KindKindReadOnlyFollowing' + // Kind - Possible values include: 'KindDatabase', 'KindReadWrite', 'KindReadOnlyFollowing' Kind Kind `json:"kind,omitempty"` // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` @@ -3213,7 +3231,7 @@ type ReadWriteDatabase struct { // MarshalJSON is the custom marshaler for ReadWriteDatabase. func (rwd ReadWriteDatabase) MarshalJSON() ([]byte, error) { - rwd.Kind = KindKindReadWrite + rwd.Kind = KindReadWrite objectMap := make(map[string]interface{}) if rwd.ReadWriteDatabaseProperties != nil { objectMap["properties"] = rwd.ReadWriteDatabaseProperties @@ -3358,6 +3376,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Script class representing a database script. type Script struct { autorest.Response `json:"-"` @@ -3610,6 +3634,12 @@ type SkuDescription struct { Restrictions *[]interface{} `json:"restrictions,omitempty"` } +// MarshalJSON is the custom marshaler for SkuDescription. +func (sd SkuDescription) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuDescriptionList the list of the EngagementFabric SKU descriptions type SkuDescriptionList struct { autorest.Response `json:"-"` @@ -3617,6 +3647,12 @@ type SkuDescriptionList struct { Value *[]SkuDescription `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SkuDescriptionList. +func (sdl SkuDescriptionList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuLocationInfoItem the locations and zones info for SKU. type SkuLocationInfoItem struct { // Location - The available location of the SKU. diff --git a/services/labservices/mgmt/2018-10-15/labservices/CHANGELOG.md b/services/labservices/mgmt/2018-10-15/labservices/CHANGELOG.md index 52911e4cc5e4..ec809c5108f9 100644 --- a/services/labservices/mgmt/2018-10-15/labservices/CHANGELOG.md +++ b/services/labservices/mgmt/2018-10-15/labservices/CHANGELOG.md @@ -1,2 +1,15 @@ # Change History +## Additive Changes + +### New Funcs + +1. EnvironmentDetails.MarshalJSON() ([]byte, error) +1. GetEnvironmentResponse.MarshalJSON() ([]byte, error) +1. LatestOperationResult.MarshalJSON() ([]byte, error) +1. NetworkInterface.MarshalJSON() ([]byte, error) +1. OperationBatchStatusResponse.MarshalJSON() ([]byte, error) +1. OperationBatchStatusResponseItem.MarshalJSON() ([]byte, error) +1. OperationStatusResponse.MarshalJSON() ([]byte, error) +1. VMStateDetails.MarshalJSON() ([]byte, error) +1. VirtualMachineDetails.MarshalJSON() ([]byte, error) diff --git a/services/labservices/mgmt/2018-10-15/labservices/_meta.json b/services/labservices/mgmt/2018-10-15/labservices/_meta.json index efdecc690c17..5e0270b43b55 100644 --- a/services/labservices/mgmt/2018-10-15/labservices/_meta.json +++ b/services/labservices/mgmt/2018-10-15/labservices/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/labservices/resource-manager/readme.md", "tag": "package-2018-10", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/labservices/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/labservices/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/labservices/mgmt/2018-10-15/labservices/models.go b/services/labservices/mgmt/2018-10-15/labservices/models.go index a61f38df5847..473fb3f6fa56 100644 --- a/services/labservices/mgmt/2018-10-15/labservices/models.go +++ b/services/labservices/mgmt/2018-10-15/labservices/models.go @@ -199,6 +199,12 @@ type EnvironmentDetails struct { PasswordLastReset *date.Time `json:"passwordLastReset,omitempty"` } +// MarshalJSON is the custom marshaler for EnvironmentDetails. +func (ed EnvironmentDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EnvironmentFragment represents an environment instance type EnvironmentFragment struct { // EnvironmentPropertiesFragment - The properties of the Environment resource @@ -1268,6 +1274,12 @@ type GetEnvironmentResponse struct { Environment *EnvironmentDetails `json:"environment,omitempty"` } +// MarshalJSON is the custom marshaler for GetEnvironmentResponse. +func (ger GetEnvironmentResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GetPersonalPreferencesResponse represents the PersonalPreferences for the user type GetPersonalPreferencesResponse struct { autorest.Response `json:"-"` @@ -2019,6 +2031,12 @@ type LatestOperationResult struct { OperationURL *string `json:"operationUrl,omitempty"` } +// MarshalJSON is the custom marshaler for LatestOperationResult. +func (lor LatestOperationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListEnvironmentsPayload represents the payload to list environments owned by a user type ListEnvironmentsPayload struct { // LabID - The resource Id of the lab @@ -2051,6 +2069,12 @@ type NetworkInterface struct { Username *string `json:"username,omitempty"` } +// MarshalJSON is the custom marshaler for NetworkInterface. +func (ni NetworkInterface) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationBatchStatusPayload payload to get the status of an operation type OperationBatchStatusPayload struct { // Urls - The operation url of long running operation @@ -2064,6 +2088,12 @@ type OperationBatchStatusResponse struct { Items *[]OperationBatchStatusResponseItem `json:"items,omitempty"` } +// MarshalJSON is the custom marshaler for OperationBatchStatusResponse. +func (obsr OperationBatchStatusResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationBatchStatusResponseItem represents the status of an operation that used the batch API. type OperationBatchStatusResponseItem struct { // OperationURL - READ-ONLY; status of the long running operation for an environment @@ -2072,6 +2102,12 @@ type OperationBatchStatusResponseItem struct { Status *string `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for OperationBatchStatusResponseItem. +func (obsri OperationBatchStatusResponseItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationError error details for the operation in case of a failure. type OperationError struct { // Code - The error code of the operation error. @@ -2122,6 +2158,12 @@ type OperationStatusResponse struct { Status *string `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for OperationStatusResponse. +func (osr OperationStatusResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PersonalPreferencesOperationsPayload represents payload for any Environment operations like get, start, // stop, connect type PersonalPreferencesOperationsPayload struct { @@ -3761,6 +3803,12 @@ type VirtualMachineDetails struct { LastKnownPowerState *string `json:"lastKnownPowerState,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineDetails. +func (vmd VirtualMachineDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VMStateDetails details about the state of the reference virtual machine. type VMStateDetails struct { // RdpAuthority - READ-ONLY; The RdpAuthority property is a server DNS host name or IP address followed by the service port number for RDP (Remote Desktop Protocol). @@ -3772,3 +3820,9 @@ type VMStateDetails struct { // LastKnownPowerState - READ-ONLY; Last known compute power state captured in DTL LastKnownPowerState *string `json:"lastKnownPowerState,omitempty"` } + +// MarshalJSON is the custom marshaler for VMStateDetails. +func (vsd VMStateDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/logic/mgmt/2016-06-01/logic/CHANGELOG.md b/services/logic/mgmt/2016-06-01/logic/CHANGELOG.md index 52911e4cc5e4..414b0a12af19 100644 --- a/services/logic/mgmt/2016-06-01/logic/CHANGELOG.md +++ b/services/logic/mgmt/2016-06-01/logic/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. KeyVaultReference.MarshalJSON() ([]byte, error) +1. ResourceReference.MarshalJSON() ([]byte, error) +1. SubResource.MarshalJSON() ([]byte, error) +1. WorkflowTriggerProperties.MarshalJSON() ([]byte, error) diff --git a/services/logic/mgmt/2016-06-01/logic/_meta.json b/services/logic/mgmt/2016-06-01/logic/_meta.json index cb68e5d3041e..78a21f9ed008 100644 --- a/services/logic/mgmt/2016-06-01/logic/_meta.json +++ b/services/logic/mgmt/2016-06-01/logic/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/logic/resource-manager/readme.md", "tag": "package-2016-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/logic/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/logic/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/logic/mgmt/2016-06-01/logic/models.go b/services/logic/mgmt/2016-06-01/logic/models.go index 9a3ca401ee2d..6545fefac7d3 100644 --- a/services/logic/mgmt/2016-06-01/logic/models.go +++ b/services/logic/mgmt/2016-06-01/logic/models.go @@ -3196,6 +3196,12 @@ type KeyVaultReference struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for KeyVaultReference. +func (kvr KeyVaultReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListKeyVaultKeysDefinition the list key vault keys definition. type ListKeyVaultKeysDefinition struct { // KeyVault - The key vault reference. @@ -3748,6 +3754,12 @@ type ResourceReference struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceReference. +func (rr ResourceReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Response a response. type Response struct { // Headers - A list of all the headers attached to the response. @@ -3884,6 +3896,12 @@ type SubResource struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for SubResource. +func (sr SubResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackingEvent ... type TrackingEvent struct { // EventLevel - Possible values include: 'LogAlways', 'Critical', 'Error', 'Warning', 'Informational', 'Verbose' @@ -5604,6 +5622,12 @@ type WorkflowTriggerProperties struct { Workflow *ResourceReference `json:"workflow,omitempty"` } +// MarshalJSON is the custom marshaler for WorkflowTriggerProperties. +func (wtp WorkflowTriggerProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WorkflowTriggerRecurrence the workflow trigger recurrence. type WorkflowTriggerRecurrence struct { // Frequency - The frequency. Possible values include: 'RecurrenceFrequencyNotSpecified', 'RecurrenceFrequencySecond', 'RecurrenceFrequencyMinute', 'RecurrenceFrequencyHour', 'RecurrenceFrequencyDay', 'RecurrenceFrequencyWeek', 'RecurrenceFrequencyMonth', 'RecurrenceFrequencyYear' diff --git a/services/logic/mgmt/2019-05-01/logic/CHANGELOG.md b/services/logic/mgmt/2019-05-01/logic/CHANGELOG.md index 52911e4cc5e4..a5c7313295f6 100644 --- a/services/logic/mgmt/2019-05-01/logic/CHANGELOG.md +++ b/services/logic/mgmt/2019-05-01/logic/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. SubResource.MarshalJSON() ([]byte, error) +1. WorkflowTriggerProperties.MarshalJSON() ([]byte, error) diff --git a/services/logic/mgmt/2019-05-01/logic/_meta.json b/services/logic/mgmt/2019-05-01/logic/_meta.json index 63088eb5a536..6cf9abab29de 100644 --- a/services/logic/mgmt/2019-05-01/logic/_meta.json +++ b/services/logic/mgmt/2019-05-01/logic/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/logic/resource-manager/readme.md", "tag": "package-2019-05", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/logic/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/logic/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/logic/mgmt/2019-05-01/logic/models.go b/services/logic/mgmt/2019-05-01/logic/models.go index f2d06b4a19a8..9072bac346bc 100644 --- a/services/logic/mgmt/2019-05-01/logic/models.go +++ b/services/logic/mgmt/2019-05-01/logic/models.go @@ -5083,6 +5083,12 @@ type SubResource struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for SubResource. +func (sr SubResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SwaggerCustomDynamicList the swagger custom dynamic list. type SwaggerCustomDynamicList struct { // OperationID - The operation id to fetch dynamic schema. @@ -7227,6 +7233,12 @@ type WorkflowTriggerProperties struct { Workflow *ResourceReference `json:"workflow,omitempty"` } +// MarshalJSON is the custom marshaler for WorkflowTriggerProperties. +func (wtp WorkflowTriggerProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WorkflowTriggerRecurrence the workflow trigger recurrence. type WorkflowTriggerRecurrence struct { // Frequency - The frequency. Possible values include: 'RecurrenceFrequencyNotSpecified', 'RecurrenceFrequencySecond', 'RecurrenceFrequencyMinute', 'RecurrenceFrequencyHour', 'RecurrenceFrequencyDay', 'RecurrenceFrequencyWeek', 'RecurrenceFrequencyMonth', 'RecurrenceFrequencyYear' diff --git a/services/machinelearning/mgmt/2016-04-01/workspaces/_meta.json b/services/machinelearning/mgmt/2016-04-01/workspaces/_meta.json index b72a8f15cc44..062a250771db 100644 --- a/services/machinelearning/mgmt/2016-04-01/workspaces/_meta.json +++ b/services/machinelearning/mgmt/2016-04-01/workspaces/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/machinelearning/resource-manager/readme.md", "tag": "package-workspaces-2016-04", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-workspaces-2016-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/machinelearning/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-workspaces-2016-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/machinelearning/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/machinelearning/mgmt/2017-01-01/webservices/CHANGELOG.md b/services/machinelearning/mgmt/2017-01-01/webservices/CHANGELOG.md index 52911e4cc5e4..893e7f6f398d 100644 --- a/services/machinelearning/mgmt/2017-01-01/webservices/CHANGELOG.md +++ b/services/machinelearning/mgmt/2017-01-01/webservices/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. AsyncOperationErrorInfo.MarshalJSON() ([]byte, error) +1. AsyncOperationStatus.MarshalJSON() ([]byte, error) +1. OperationDisplayInfo.MarshalJSON() ([]byte, error) +1. OperationEntityListResult.MarshalJSON() ([]byte, error) diff --git a/services/machinelearning/mgmt/2017-01-01/webservices/_meta.json b/services/machinelearning/mgmt/2017-01-01/webservices/_meta.json index 2d2ae1d09f0a..551571b055b1 100644 --- a/services/machinelearning/mgmt/2017-01-01/webservices/_meta.json +++ b/services/machinelearning/mgmt/2017-01-01/webservices/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/machinelearning/resource-manager/readme.md", "tag": "package-webservices-2017-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-webservices-2017-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/machinelearning/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-webservices-2017-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/machinelearning/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/machinelearning/mgmt/2017-01-01/webservices/models.go b/services/machinelearning/mgmt/2017-01-01/webservices/models.go index a59d79051c4c..e71fbe8e693a 100644 --- a/services/machinelearning/mgmt/2017-01-01/webservices/models.go +++ b/services/machinelearning/mgmt/2017-01-01/webservices/models.go @@ -82,6 +82,12 @@ type AsyncOperationErrorInfo struct { Details *[]AsyncOperationErrorInfo `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for AsyncOperationErrorInfo. +func (aoei AsyncOperationErrorInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AsyncOperationStatus azure async operation status. type AsyncOperationStatus struct { autorest.Response `json:"-"` @@ -101,6 +107,12 @@ type AsyncOperationStatus struct { ErrorInfo *AsyncOperationErrorInfo `json:"errorInfo,omitempty"` } +// MarshalJSON is the custom marshaler for AsyncOperationStatus. +func (aos AsyncOperationStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BlobLocation describes the access location for a blob. type BlobLocation struct { // URI - The URI from which the blob is accessible from. For example, aml://abc for system assets or https://xyz for user assets or payload. @@ -397,6 +409,12 @@ type OperationDisplayInfo struct { Resource *string `json:"resource,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplayInfo. +func (odi OperationDisplayInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationEntity an API operation. type OperationEntity struct { // Name - READ-ONLY; Operation name: {provider}/{resource}/{operation}. @@ -421,6 +439,12 @@ type OperationEntityListResult struct { Value *[]OperationEntity `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationEntityListResult. +func (oelr OperationEntityListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OutputPort asset output port type OutputPort struct { // Type - Port data type. Possible values include: 'OutputPortTypeDataset' diff --git a/services/machinelearning/mgmt/2019-10-01/workspaces/_meta.json b/services/machinelearning/mgmt/2019-10-01/workspaces/_meta.json index 19e425df9ee3..715ade7485c0 100644 --- a/services/machinelearning/mgmt/2019-10-01/workspaces/_meta.json +++ b/services/machinelearning/mgmt/2019-10-01/workspaces/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/machinelearning/resource-manager/readme.md", "tag": "package-workspaces-2019-10", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-workspaces-2019-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/machinelearning/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-workspaces-2019-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/machinelearning/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/machinelearningservices/mgmt/2018-11-19/machinelearningservices/CHANGELOG.md b/services/machinelearningservices/mgmt/2018-11-19/machinelearningservices/CHANGELOG.md index 52911e4cc5e4..23e72e49b0a2 100644 --- a/services/machinelearningservices/mgmt/2018-11-19/machinelearningservices/CHANGELOG.md +++ b/services/machinelearningservices/mgmt/2018-11-19/machinelearningservices/CHANGELOG.md @@ -1,2 +1,17 @@ # Change History +## Additive Changes + +### New Funcs + +1. AmlComputeNodeInformation.MarshalJSON() ([]byte, error) +1. Error.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. ListUsagesResult.MarshalJSON() ([]byte, error) +1. ListWorkspaceKeysResult.MarshalJSON() ([]byte, error) +1. NodeStateCounts.MarshalJSON() ([]byte, error) +1. Password.MarshalJSON() ([]byte, error) +1. SystemService.MarshalJSON() ([]byte, error) +1. Usage.MarshalJSON() ([]byte, error) +1. UsageName.MarshalJSON() ([]byte, error) +1. VirtualMachineSize.MarshalJSON() ([]byte, error) diff --git a/services/machinelearningservices/mgmt/2018-11-19/machinelearningservices/_meta.json b/services/machinelearningservices/mgmt/2018-11-19/machinelearningservices/_meta.json index c1bb01572dda..6a31240eb574 100644 --- a/services/machinelearningservices/mgmt/2018-11-19/machinelearningservices/_meta.json +++ b/services/machinelearningservices/mgmt/2018-11-19/machinelearningservices/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/machinelearningservices/resource-manager/readme.md", "tag": "package-2018-11-19", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-11-19 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/machinelearningservices/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-11-19 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/machinelearningservices/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/machinelearningservices/mgmt/2018-11-19/machinelearningservices/models.go b/services/machinelearningservices/mgmt/2018-11-19/machinelearningservices/models.go index ad6a89e594a6..a875c6724f0e 100644 --- a/services/machinelearningservices/mgmt/2018-11-19/machinelearningservices/models.go +++ b/services/machinelearningservices/mgmt/2018-11-19/machinelearningservices/models.go @@ -317,6 +317,12 @@ type AmlComputeNodeInformation struct { Port *float64 `json:"port,omitempty"` } +// MarshalJSON is the custom marshaler for AmlComputeNodeInformation. +func (acni AmlComputeNodeInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AmlComputeNodesInformation compute node information related to a AmlCompute. type AmlComputeNodesInformation struct { autorest.Response `json:"-"` @@ -1387,6 +1393,12 @@ type Error struct { Error *ErrorResponse `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for Error. +func (e Error) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetail error detail information. type ErrorDetail struct { // Code - Error code. @@ -1405,6 +1417,12 @@ type ErrorResponse struct { Details *[]ErrorDetail `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HDInsight a HDInsight compute. type HDInsight struct { Properties *HDInsightProperties `json:"properties,omitempty"` @@ -1533,6 +1551,12 @@ type ListUsagesResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListUsagesResult. +func (lur ListUsagesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListUsagesResultIterator provides access to a complete listing of Usage values. type ListUsagesResultIterator struct { i int @@ -1696,6 +1720,12 @@ type ListWorkspaceKeysResult struct { ContainerRegistryCredentials *RegistryListCredentialsResult `json:"containerRegistryCredentials,omitempty"` } +// MarshalJSON is the custom marshaler for ListWorkspaceKeysResult. +func (lwkr ListWorkspaceKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MachineLearningComputeCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type MachineLearningComputeCreateOrUpdateFuture struct { @@ -1835,6 +1865,12 @@ type NodeStateCounts struct { PreemptedNodeCount *int32 `json:"preemptedNodeCount,omitempty"` } +// MarshalJSON is the custom marshaler for NodeStateCounts. +func (nsc NodeStateCounts) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation azure Machine Learning workspace REST API operation type Operation struct { // Name - Operation name: {provider}/{resource}/{operation} @@ -2030,6 +2066,12 @@ type Password struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for Password. +func (p Password) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegistryListCredentialsResult ... type RegistryListCredentialsResult struct { // Location - READ-ONLY @@ -2125,6 +2167,12 @@ type SystemService struct { Version *string `json:"version,omitempty"` } +// MarshalJSON is the custom marshaler for SystemService. +func (ss SystemService) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage describes AML Resource Usage. type Usage struct { // Unit - READ-ONLY; An enum describing the unit of usage measurement. Possible values include: 'Count' @@ -2137,6 +2185,12 @@ type Usage struct { Name *UsageName `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for Usage. +func (u Usage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageName the Usage Names. type UsageName struct { // Value - READ-ONLY; The name of the resource. @@ -2145,6 +2199,12 @@ type UsageName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for UsageName. +func (un UsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UserAccountCredentials settings for user account that gets created on each on the nodes of a compute. type UserAccountCredentials struct { // AdminUserName - Name of the administrator user account which can be used to SSH to nodes. @@ -2323,6 +2383,12 @@ type VirtualMachineSize struct { PremiumIO *bool `json:"premiumIO,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineSize. +func (vms VirtualMachineSize) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineSizeListResult the List Virtual Machine size operation response. type VirtualMachineSizeListResult struct { autorest.Response `json:"-"` diff --git a/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/CHANGELOG.md b/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/CHANGELOG.md index 52911e4cc5e4..23e72e49b0a2 100644 --- a/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/CHANGELOG.md +++ b/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/CHANGELOG.md @@ -1,2 +1,17 @@ # Change History +## Additive Changes + +### New Funcs + +1. AmlComputeNodeInformation.MarshalJSON() ([]byte, error) +1. Error.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. ListUsagesResult.MarshalJSON() ([]byte, error) +1. ListWorkspaceKeysResult.MarshalJSON() ([]byte, error) +1. NodeStateCounts.MarshalJSON() ([]byte, error) +1. Password.MarshalJSON() ([]byte, error) +1. SystemService.MarshalJSON() ([]byte, error) +1. Usage.MarshalJSON() ([]byte, error) +1. UsageName.MarshalJSON() ([]byte, error) +1. VirtualMachineSize.MarshalJSON() ([]byte, error) diff --git a/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/_meta.json b/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/_meta.json index 07805bfd580d..93e5c7294d6a 100644 --- a/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/_meta.json +++ b/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/machinelearningservices/resource-manager/readme.md", "tag": "package-2019-05-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-05-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/machinelearningservices/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-05-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/machinelearningservices/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/models.go b/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/models.go index d407621cfff4..7666a9c1850d 100644 --- a/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/models.go +++ b/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/models.go @@ -317,6 +317,12 @@ type AmlComputeNodeInformation struct { Port *float64 `json:"port,omitempty"` } +// MarshalJSON is the custom marshaler for AmlComputeNodeInformation. +func (acni AmlComputeNodeInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AmlComputeNodesInformation compute node information related to a AmlCompute. type AmlComputeNodesInformation struct { autorest.Response `json:"-"` @@ -1236,6 +1242,12 @@ type Error struct { Error *ErrorResponse `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for Error. +func (e Error) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetail error detail information. type ErrorDetail struct { // Code - Error code. @@ -1254,6 +1266,12 @@ type ErrorResponse struct { Details *[]ErrorDetail `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HDInsight a HDInsight compute. type HDInsight struct { Properties *HDInsightProperties `json:"properties,omitempty"` @@ -1382,6 +1400,12 @@ type ListUsagesResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListUsagesResult. +func (lur ListUsagesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListUsagesResultIterator provides access to a complete listing of Usage values. type ListUsagesResultIterator struct { i int @@ -1545,6 +1569,12 @@ type ListWorkspaceKeysResult struct { ContainerRegistryCredentials *RegistryListCredentialsResult `json:"containerRegistryCredentials,omitempty"` } +// MarshalJSON is the custom marshaler for ListWorkspaceKeysResult. +func (lwkr ListWorkspaceKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MachineLearningComputeCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type MachineLearningComputeCreateOrUpdateFuture struct { @@ -1684,6 +1714,12 @@ type NodeStateCounts struct { PreemptedNodeCount *int32 `json:"preemptedNodeCount,omitempty"` } +// MarshalJSON is the custom marshaler for NodeStateCounts. +func (nsc NodeStateCounts) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation azure Machine Learning workspace REST API operation type Operation struct { // Name - Operation name: {provider}/{resource}/{operation} @@ -1879,6 +1915,12 @@ type Password struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for Password. +func (p Password) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegistryListCredentialsResult ... type RegistryListCredentialsResult struct { // Location - READ-ONLY @@ -1974,6 +2016,12 @@ type SystemService struct { Version *string `json:"version,omitempty"` } +// MarshalJSON is the custom marshaler for SystemService. +func (ss SystemService) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage describes AML Resource Usage. type Usage struct { // ID - READ-ONLY; Specifies the resource ID. @@ -1990,6 +2038,12 @@ type Usage struct { Name *UsageName `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for Usage. +func (u Usage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageName the Usage Names. type UsageName struct { // Value - READ-ONLY; The name of the resource. @@ -1998,6 +2052,12 @@ type UsageName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for UsageName. +func (un UsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UserAccountCredentials settings for user account that gets created on each on the nodes of a compute. type UserAccountCredentials struct { // AdminUserName - Name of the administrator user account which can be used to SSH to nodes. @@ -2176,6 +2236,12 @@ type VirtualMachineSize struct { PremiumIO *bool `json:"premiumIO,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineSize. +func (vms VirtualMachineSize) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineSizeListResult the List Virtual Machine size operation response. type VirtualMachineSizeListResult struct { autorest.Response `json:"-"` diff --git a/services/machinelearningservices/mgmt/2019-06-01/machinelearningservices/CHANGELOG.md b/services/machinelearningservices/mgmt/2019-06-01/machinelearningservices/CHANGELOG.md index 52911e4cc5e4..ccc1bdfa3054 100644 --- a/services/machinelearningservices/mgmt/2019-06-01/machinelearningservices/CHANGELOG.md +++ b/services/machinelearningservices/mgmt/2019-06-01/machinelearningservices/CHANGELOG.md @@ -1,2 +1,21 @@ # Change History +## Additive Changes + +### New Funcs + +1. AmlComputeNodeInformation.MarshalJSON() ([]byte, error) +1. Error.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. ListUsagesResult.MarshalJSON() ([]byte, error) +1. ListWorkspaceKeysResult.MarshalJSON() ([]byte, error) +1. ListWorkspaceQuotas.MarshalJSON() ([]byte, error) +1. NodeStateCounts.MarshalJSON() ([]byte, error) +1. Password.MarshalJSON() ([]byte, error) +1. ResourceName.MarshalJSON() ([]byte, error) +1. ResourceQuota.MarshalJSON() ([]byte, error) +1. SystemService.MarshalJSON() ([]byte, error) +1. UpdateWorkspaceQuotasResult.MarshalJSON() ([]byte, error) +1. Usage.MarshalJSON() ([]byte, error) +1. UsageName.MarshalJSON() ([]byte, error) +1. VirtualMachineSize.MarshalJSON() ([]byte, error) diff --git a/services/machinelearningservices/mgmt/2019-06-01/machinelearningservices/_meta.json b/services/machinelearningservices/mgmt/2019-06-01/machinelearningservices/_meta.json index 291318408825..894da4ef9924 100644 --- a/services/machinelearningservices/mgmt/2019-06-01/machinelearningservices/_meta.json +++ b/services/machinelearningservices/mgmt/2019-06-01/machinelearningservices/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/machinelearningservices/resource-manager/readme.md", "tag": "package-2019-06-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-06-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/machinelearningservices/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-06-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/machinelearningservices/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/machinelearningservices/mgmt/2019-06-01/machinelearningservices/models.go b/services/machinelearningservices/mgmt/2019-06-01/machinelearningservices/models.go index 1df79512a4b0..90f07a82e083 100644 --- a/services/machinelearningservices/mgmt/2019-06-01/machinelearningservices/models.go +++ b/services/machinelearningservices/mgmt/2019-06-01/machinelearningservices/models.go @@ -323,6 +323,12 @@ type AmlComputeNodeInformation struct { RunID *string `json:"runId,omitempty"` } +// MarshalJSON is the custom marshaler for AmlComputeNodeInformation. +func (acni AmlComputeNodeInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AmlComputeNodesInformation compute node information related to a AmlCompute. type AmlComputeNodesInformation struct { autorest.Response `json:"-"` @@ -1247,6 +1253,12 @@ type Error struct { Error *ErrorResponse `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for Error. +func (e Error) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetail error detail information. type ErrorDetail struct { // Code - Error code. @@ -1265,6 +1277,12 @@ type ErrorResponse struct { Details *[]ErrorDetail `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HDInsight a HDInsight compute. type HDInsight struct { Properties *HDInsightProperties `json:"properties,omitempty"` @@ -1393,6 +1411,12 @@ type ListUsagesResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListUsagesResult. +func (lur ListUsagesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListUsagesResultIterator provides access to a complete listing of Usage values. type ListUsagesResultIterator struct { i int @@ -1556,6 +1580,12 @@ type ListWorkspaceKeysResult struct { ContainerRegistryCredentials *RegistryListCredentialsResult `json:"containerRegistryCredentials,omitempty"` } +// MarshalJSON is the custom marshaler for ListWorkspaceKeysResult. +func (lwkr ListWorkspaceKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListWorkspaceQuotas the List WorkspaceQuotasByVMFamily operation response. type ListWorkspaceQuotas struct { autorest.Response `json:"-"` @@ -1565,6 +1595,12 @@ type ListWorkspaceQuotas struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListWorkspaceQuotas. +func (lwq ListWorkspaceQuotas) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListWorkspaceQuotasIterator provides access to a complete listing of ResourceQuota values. type ListWorkspaceQuotasIterator struct { i int @@ -1854,6 +1890,12 @@ type NodeStateCounts struct { PreemptedNodeCount *int32 `json:"preemptedNodeCount,omitempty"` } +// MarshalJSON is the custom marshaler for NodeStateCounts. +func (nsc NodeStateCounts) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation azure Machine Learning workspace REST API operation type Operation struct { // Name - Operation name: {provider}/{resource}/{operation} @@ -2049,6 +2091,12 @@ type Password struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for Password. +func (p Password) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QuotaBaseProperties the properties for Quota update or retrieval. type QuotaBaseProperties struct { // ID - Specifies the resource ID. @@ -2130,6 +2178,12 @@ type ResourceName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceName. +func (rn ResourceName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceQuota the quota assigned to a resource. type ResourceQuota struct { // ID - READ-ONLY; Specifies the resource ID. @@ -2144,6 +2198,12 @@ type ResourceQuota struct { Unit QuotaUnit `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceQuota. +func (rq ResourceQuota) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ScaleSettings scale settings for AML Compute type ScaleSettings struct { // MaxNodeCount - Max number of nodes to use @@ -2184,6 +2244,12 @@ type SystemService struct { Version *string `json:"version,omitempty"` } +// MarshalJSON is the custom marshaler for SystemService. +func (ss SystemService) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpdateWorkspaceQuotas the properties for update Quota response. type UpdateWorkspaceQuotas struct { // ID - READ-ONLY; Specifies the resource ID. @@ -2219,6 +2285,12 @@ type UpdateWorkspaceQuotasResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for UpdateWorkspaceQuotasResult. +func (uwqr UpdateWorkspaceQuotasResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage describes AML Resource Usage. type Usage struct { // ID - READ-ONLY; Specifies the resource ID. @@ -2235,6 +2307,12 @@ type Usage struct { Name *UsageName `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for Usage. +func (u Usage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageName the Usage Names. type UsageName struct { // Value - READ-ONLY; The name of the resource. @@ -2243,6 +2321,12 @@ type UsageName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for UsageName. +func (un UsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UserAccountCredentials settings for user account that gets created on each on the nodes of a compute. type UserAccountCredentials struct { // AdminUserName - Name of the administrator user account which can be used to SSH to nodes. @@ -2423,6 +2507,12 @@ type VirtualMachineSize struct { PremiumIO *bool `json:"premiumIO,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineSize. +func (vms VirtualMachineSize) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineSizeListResult the List Virtual Machine size operation response. type VirtualMachineSizeListResult struct { autorest.Response `json:"-"` diff --git a/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/CHANGELOG.md b/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/CHANGELOG.md index 52911e4cc5e4..5c498af3a4af 100644 --- a/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/CHANGELOG.md +++ b/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/CHANGELOG.md @@ -1,2 +1,24 @@ # Change History +## Additive Changes + +### New Funcs + +1. AmlComputeNodeInformation.MarshalJSON() ([]byte, error) +1. Error.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. ListAmlUserFeatureResult.MarshalJSON() ([]byte, error) +1. ListUsagesResult.MarshalJSON() ([]byte, error) +1. ListWorkspaceKeysResult.MarshalJSON() ([]byte, error) +1. ListWorkspaceQuotas.MarshalJSON() ([]byte, error) +1. NodeStateCounts.MarshalJSON() ([]byte, error) +1. Password.MarshalJSON() ([]byte, error) +1. ResourceName.MarshalJSON() ([]byte, error) +1. ResourceQuota.MarshalJSON() ([]byte, error) +1. ResourceSkuLocationInfo.MarshalJSON() ([]byte, error) +1. ResourceSkuZoneDetails.MarshalJSON() ([]byte, error) +1. SystemService.MarshalJSON() ([]byte, error) +1. UpdateWorkspaceQuotasResult.MarshalJSON() ([]byte, error) +1. Usage.MarshalJSON() ([]byte, error) +1. UsageName.MarshalJSON() ([]byte, error) +1. VirtualMachineSize.MarshalJSON() ([]byte, error) diff --git a/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/_meta.json b/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/_meta.json index d1e61717ff69..096473b04d55 100644 --- a/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/_meta.json +++ b/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/machinelearningservices/resource-manager/readme.md", "tag": "package-2019-11-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-11-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/machinelearningservices/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-11-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/machinelearningservices/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/models.go b/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/models.go index ef12820a92f9..c52301b273db 100644 --- a/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/models.go +++ b/services/machinelearningservices/mgmt/2019-11-01/machinelearningservices/models.go @@ -323,6 +323,12 @@ type AmlComputeNodeInformation struct { RunID *string `json:"runId,omitempty"` } +// MarshalJSON is the custom marshaler for AmlComputeNodeInformation. +func (acni AmlComputeNodeInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AmlComputeNodesInformation compute node information related to a AmlCompute. type AmlComputeNodesInformation struct { autorest.Response `json:"-"` @@ -1271,6 +1277,12 @@ type Error struct { Error *ErrorResponse `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for Error. +func (e Error) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetail error detail information. type ErrorDetail struct { // Code - Error code. @@ -1289,6 +1301,12 @@ type ErrorResponse struct { Details *[]ErrorDetail `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HDInsight a HDInsight compute. type HDInsight struct { Properties *HDInsightProperties `json:"properties,omitempty"` @@ -1417,6 +1435,12 @@ type ListAmlUserFeatureResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListAmlUserFeatureResult. +func (laufr ListAmlUserFeatureResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListAmlUserFeatureResultIterator provides access to a complete listing of AmlUserFeature values. type ListAmlUserFeatureResultIterator struct { i int @@ -1576,6 +1600,12 @@ type ListUsagesResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListUsagesResult. +func (lur ListUsagesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListUsagesResultIterator provides access to a complete listing of Usage values. type ListUsagesResultIterator struct { i int @@ -1739,6 +1769,12 @@ type ListWorkspaceKeysResult struct { ContainerRegistryCredentials *RegistryListCredentialsResult `json:"containerRegistryCredentials,omitempty"` } +// MarshalJSON is the custom marshaler for ListWorkspaceKeysResult. +func (lwkr ListWorkspaceKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListWorkspaceQuotas the List WorkspaceQuotasByVMFamily operation response. type ListWorkspaceQuotas struct { autorest.Response `json:"-"` @@ -1748,6 +1784,12 @@ type ListWorkspaceQuotas struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListWorkspaceQuotas. +func (lwq ListWorkspaceQuotas) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListWorkspaceQuotasIterator provides access to a complete listing of ResourceQuota values. type ListWorkspaceQuotasIterator struct { i int @@ -2037,6 +2079,12 @@ type NodeStateCounts struct { PreemptedNodeCount *int32 `json:"preemptedNodeCount,omitempty"` } +// MarshalJSON is the custom marshaler for NodeStateCounts. +func (nsc NodeStateCounts) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation azure Machine Learning workspace REST API operation type Operation struct { // Name - Operation name: {provider}/{resource}/{operation} @@ -2232,6 +2280,12 @@ type Password struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for Password. +func (p Password) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QuotaBaseProperties the properties for Quota update or retrieval. type QuotaBaseProperties struct { // ID - Specifies the resource ID. @@ -2318,6 +2372,12 @@ type ResourceName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceName. +func (rn ResourceName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceQuota the quota assigned to a resource. type ResourceQuota struct { // ID - READ-ONLY; Specifies the resource ID. @@ -2332,6 +2392,12 @@ type ResourceQuota struct { Unit QuotaUnit `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceQuota. +func (rq ResourceQuota) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuLocationInfo ... type ResourceSkuLocationInfo struct { // Location - READ-ONLY; Location of the SKU @@ -2342,6 +2408,12 @@ type ResourceSkuLocationInfo struct { ZoneDetails *[]ResourceSkuZoneDetails `json:"zoneDetails,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuLocationInfo. +func (rsli ResourceSkuLocationInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuZoneDetails describes The zonal capabilities of a SKU. type ResourceSkuZoneDetails struct { // Name - READ-ONLY; The set of zones that the SKU is available in with the specified capabilities. @@ -2350,6 +2422,12 @@ type ResourceSkuZoneDetails struct { Capabilities *[]SKUCapability `json:"capabilities,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuZoneDetails. +func (rszd ResourceSkuZoneDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Restriction the restriction because of which SKU cannot be used. type Restriction struct { // Type - READ-ONLY; The type of restrictions. As of now only possible value for this is location. @@ -2583,6 +2661,12 @@ type SystemService struct { Version *string `json:"version,omitempty"` } +// MarshalJSON is the custom marshaler for SystemService. +func (ss SystemService) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpdateWorkspaceQuotas the properties for update Quota response. type UpdateWorkspaceQuotas struct { // ID - READ-ONLY; Specifies the resource ID. @@ -2618,6 +2702,12 @@ type UpdateWorkspaceQuotasResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for UpdateWorkspaceQuotasResult. +func (uwqr UpdateWorkspaceQuotasResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage describes AML Resource Usage. type Usage struct { // ID - READ-ONLY; Specifies the resource ID. @@ -2634,6 +2724,12 @@ type Usage struct { Name *UsageName `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for Usage. +func (u Usage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageName the Usage Names. type UsageName struct { // Value - READ-ONLY; The name of the resource. @@ -2642,6 +2738,12 @@ type UsageName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for UsageName. +func (un UsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UserAccountCredentials settings for user account that gets created on each on the nodes of a compute. type UserAccountCredentials struct { // AdminUserName - Name of the administrator user account which can be used to SSH to nodes. @@ -2822,6 +2924,12 @@ type VirtualMachineSize struct { PremiumIO *bool `json:"premiumIO,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineSize. +func (vms VirtualMachineSize) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineSizeListResult the List Virtual Machine size operation response. type VirtualMachineSizeListResult struct { autorest.Response `json:"-"` diff --git a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/CHANGELOG.md b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/CHANGELOG.md index 52911e4cc5e4..c5fc21568129 100644 --- a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/CHANGELOG.md +++ b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/CHANGELOG.md @@ -1,2 +1,25 @@ # Change History +## Additive Changes + +### New Funcs + +1. AmlComputeNodeInformation.MarshalJSON() ([]byte, error) +1. Error.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. ListAmlUserFeatureResult.MarshalJSON() ([]byte, error) +1. ListUsagesResult.MarshalJSON() ([]byte, error) +1. ListWorkspaceKeysResult.MarshalJSON() ([]byte, error) +1. ListWorkspaceQuotas.MarshalJSON() ([]byte, error) +1. NodeStateCounts.MarshalJSON() ([]byte, error) +1. Password.MarshalJSON() ([]byte, error) +1. PrivateEndpoint.MarshalJSON() ([]byte, error) +1. ResourceName.MarshalJSON() ([]byte, error) +1. ResourceQuota.MarshalJSON() ([]byte, error) +1. ResourceSkuLocationInfo.MarshalJSON() ([]byte, error) +1. ResourceSkuZoneDetails.MarshalJSON() ([]byte, error) +1. SystemService.MarshalJSON() ([]byte, error) +1. UpdateWorkspaceQuotasResult.MarshalJSON() ([]byte, error) +1. Usage.MarshalJSON() ([]byte, error) +1. UsageName.MarshalJSON() ([]byte, error) +1. VirtualMachineSize.MarshalJSON() ([]byte, error) diff --git a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/_meta.json b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/_meta.json index 6aaf25b5b79b..b55408e14360 100644 --- a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/_meta.json +++ b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/machinelearningservices/resource-manager/readme.md", "tag": "package-2020-01-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-01-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/machinelearningservices/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-01-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/machinelearningservices/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/models.go b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/models.go index 9214fb702498..4ce3d166063f 100644 --- a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/models.go +++ b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/models.go @@ -323,6 +323,12 @@ type AmlComputeNodeInformation struct { RunID *string `json:"runId,omitempty"` } +// MarshalJSON is the custom marshaler for AmlComputeNodeInformation. +func (acni AmlComputeNodeInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AmlComputeNodesInformation compute node information related to a AmlCompute. type AmlComputeNodesInformation struct { autorest.Response `json:"-"` @@ -1279,6 +1285,12 @@ type Error struct { Error *ErrorResponse `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for Error. +func (e Error) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetail error detail information. type ErrorDetail struct { // Code - Error code. @@ -1297,6 +1309,12 @@ type ErrorResponse struct { Details *[]ErrorDetail `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HDInsight a HDInsight compute. type HDInsight struct { Properties *HDInsightProperties `json:"properties,omitempty"` @@ -1435,6 +1453,12 @@ type ListAmlUserFeatureResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListAmlUserFeatureResult. +func (laufr ListAmlUserFeatureResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListAmlUserFeatureResultIterator provides access to a complete listing of AmlUserFeature values. type ListAmlUserFeatureResultIterator struct { i int @@ -1594,6 +1618,12 @@ type ListUsagesResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListUsagesResult. +func (lur ListUsagesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListUsagesResultIterator provides access to a complete listing of Usage values. type ListUsagesResultIterator struct { i int @@ -1757,6 +1787,12 @@ type ListWorkspaceKeysResult struct { ContainerRegistryCredentials *RegistryListCredentialsResult `json:"containerRegistryCredentials,omitempty"` } +// MarshalJSON is the custom marshaler for ListWorkspaceKeysResult. +func (lwkr ListWorkspaceKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListWorkspaceQuotas the List WorkspaceQuotasByVMFamily operation response. type ListWorkspaceQuotas struct { autorest.Response `json:"-"` @@ -1766,6 +1802,12 @@ type ListWorkspaceQuotas struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListWorkspaceQuotas. +func (lwq ListWorkspaceQuotas) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListWorkspaceQuotasIterator provides access to a complete listing of ResourceQuota values. type ListWorkspaceQuotasIterator struct { i int @@ -2055,6 +2097,12 @@ type NodeStateCounts struct { PreemptedNodeCount *int32 `json:"preemptedNodeCount,omitempty"` } +// MarshalJSON is the custom marshaler for NodeStateCounts. +func (nsc NodeStateCounts) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation azure Machine Learning workspace REST API operation type Operation struct { // Name - Operation name: {provider}/{resource}/{operation} @@ -2250,12 +2298,24 @@ type Password struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for Password. +func (p Password) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpoint the Private Endpoint resource. type PrivateEndpoint struct { // ID - READ-ONLY; The ARM identifier for Private Endpoint ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpoint. +func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection the Private Endpoint Connection resource. type PrivateEndpointConnection struct { autorest.Response `json:"-"` @@ -2646,6 +2706,12 @@ type ResourceName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceName. +func (rn ResourceName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceQuota the quota assigned to a resource. type ResourceQuota struct { // ID - READ-ONLY; Specifies the resource ID. @@ -2660,6 +2726,12 @@ type ResourceQuota struct { Unit QuotaUnit `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceQuota. +func (rq ResourceQuota) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuLocationInfo ... type ResourceSkuLocationInfo struct { // Location - READ-ONLY; Location of the SKU @@ -2670,6 +2742,12 @@ type ResourceSkuLocationInfo struct { ZoneDetails *[]ResourceSkuZoneDetails `json:"zoneDetails,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuLocationInfo. +func (rsli ResourceSkuLocationInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuZoneDetails describes The zonal capabilities of a SKU. type ResourceSkuZoneDetails struct { // Name - READ-ONLY; The set of zones that the SKU is available in with the specified capabilities. @@ -2678,6 +2756,12 @@ type ResourceSkuZoneDetails struct { Capabilities *[]SKUCapability `json:"capabilities,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuZoneDetails. +func (rszd ResourceSkuZoneDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Restriction the restriction because of which SKU cannot be used. type Restriction struct { // Type - READ-ONLY; The type of restrictions. As of now only possible value for this is location. @@ -2911,6 +2995,12 @@ type SystemService struct { Version *string `json:"version,omitempty"` } +// MarshalJSON is the custom marshaler for SystemService. +func (ss SystemService) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpdateWorkspaceQuotas the properties for update Quota response. type UpdateWorkspaceQuotas struct { // ID - READ-ONLY; Specifies the resource ID. @@ -2946,6 +3036,12 @@ type UpdateWorkspaceQuotasResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for UpdateWorkspaceQuotasResult. +func (uwqr UpdateWorkspaceQuotasResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage describes AML Resource Usage. type Usage struct { // ID - READ-ONLY; Specifies the resource ID. @@ -2962,6 +3058,12 @@ type Usage struct { Name *UsageName `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for Usage. +func (u Usage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageName the Usage Names. type UsageName struct { // Value - READ-ONLY; The name of the resource. @@ -2970,6 +3072,12 @@ type UsageName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for UsageName. +func (un UsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UserAccountCredentials settings for user account that gets created on each on the nodes of a compute. type UserAccountCredentials struct { // AdminUserName - Name of the administrator user account which can be used to SSH to nodes. @@ -3150,6 +3258,12 @@ type VirtualMachineSize struct { PremiumIO *bool `json:"premiumIO,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineSize. +func (vms VirtualMachineSize) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineSizeListResult the List Virtual Machine size operation response. type VirtualMachineSizeListResult struct { autorest.Response `json:"-"` diff --git a/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/CHANGELOG.md b/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/CHANGELOG.md index 52911e4cc5e4..db64bc8d9f1d 100644 --- a/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/CHANGELOG.md +++ b/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/CHANGELOG.md @@ -1,2 +1,24 @@ # Change History +## Additive Changes + +### New Funcs + +1. AmlComputeNodeInformation.MarshalJSON() ([]byte, error) +1. Error.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. ListAmlUserFeatureResult.MarshalJSON() ([]byte, error) +1. ListUsagesResult.MarshalJSON() ([]byte, error) +1. ListWorkspaceQuotas.MarshalJSON() ([]byte, error) +1. NodeStateCounts.MarshalJSON() ([]byte, error) +1. Password.MarshalJSON() ([]byte, error) +1. PrivateEndpoint.MarshalJSON() ([]byte, error) +1. ResourceName.MarshalJSON() ([]byte, error) +1. ResourceQuota.MarshalJSON() ([]byte, error) +1. ResourceSkuLocationInfo.MarshalJSON() ([]byte, error) +1. ResourceSkuZoneDetails.MarshalJSON() ([]byte, error) +1. SystemService.MarshalJSON() ([]byte, error) +1. UpdateWorkspaceQuotasResult.MarshalJSON() ([]byte, error) +1. Usage.MarshalJSON() ([]byte, error) +1. UsageName.MarshalJSON() ([]byte, error) +1. VirtualMachineSize.MarshalJSON() ([]byte, error) diff --git a/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/_meta.json b/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/_meta.json index fc4c44f435e9..4f4faf6a79c5 100644 --- a/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/_meta.json +++ b/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/machinelearningservices/resource-manager/readme.md", "tag": "package-2020-03-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-03-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/machinelearningservices/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-03-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/machinelearningservices/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/models.go b/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/models.go index 8ae51adf6a1b..19e31d191112 100644 --- a/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/models.go +++ b/services/machinelearningservices/mgmt/2020-03-01/machinelearningservices/models.go @@ -323,6 +323,12 @@ type AmlComputeNodeInformation struct { RunID *string `json:"runId,omitempty"` } +// MarshalJSON is the custom marshaler for AmlComputeNodeInformation. +func (acni AmlComputeNodeInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AmlComputeNodesInformation compute node information related to a AmlCompute. type AmlComputeNodesInformation struct { autorest.Response `json:"-"` @@ -1279,6 +1285,12 @@ type Error struct { Error *ErrorResponse `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for Error. +func (e Error) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetail error detail information. type ErrorDetail struct { // Code - Error code. @@ -1297,6 +1309,12 @@ type ErrorResponse struct { Details *[]ErrorDetail `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HDInsight a HDInsight compute. type HDInsight struct { Properties *HDInsightProperties `json:"properties,omitempty"` @@ -1435,6 +1453,12 @@ type ListAmlUserFeatureResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListAmlUserFeatureResult. +func (laufr ListAmlUserFeatureResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListAmlUserFeatureResultIterator provides access to a complete listing of AmlUserFeature values. type ListAmlUserFeatureResultIterator struct { i int @@ -1594,6 +1618,12 @@ type ListUsagesResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListUsagesResult. +func (lur ListUsagesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListUsagesResultIterator provides access to a complete listing of Usage values. type ListUsagesResultIterator struct { i int @@ -1776,6 +1806,12 @@ type ListWorkspaceQuotas struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListWorkspaceQuotas. +func (lwq ListWorkspaceQuotas) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListWorkspaceQuotasIterator provides access to a complete listing of ResourceQuota values. type ListWorkspaceQuotasIterator struct { i int @@ -2065,6 +2101,12 @@ type NodeStateCounts struct { PreemptedNodeCount *int32 `json:"preemptedNodeCount,omitempty"` } +// MarshalJSON is the custom marshaler for NodeStateCounts. +func (nsc NodeStateCounts) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NotebookListCredentialsResult ... type NotebookListCredentialsResult struct { PrimaryAccessKey *string `json:"primaryAccessKey,omitempty"` @@ -2325,12 +2367,24 @@ type Password struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for Password. +func (p Password) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpoint the Private Endpoint resource. type PrivateEndpoint struct { // ID - READ-ONLY; The ARM identifier for Private Endpoint ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpoint. +func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection the Private Endpoint Connection resource. type PrivateEndpointConnection struct { autorest.Response `json:"-"` @@ -2721,6 +2775,12 @@ type ResourceName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceName. +func (rn ResourceName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceQuota the quota assigned to a resource. type ResourceQuota struct { // ID - READ-ONLY; Specifies the resource ID. @@ -2735,6 +2795,12 @@ type ResourceQuota struct { Unit QuotaUnit `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceQuota. +func (rq ResourceQuota) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuLocationInfo ... type ResourceSkuLocationInfo struct { // Location - READ-ONLY; Location of the SKU @@ -2745,6 +2811,12 @@ type ResourceSkuLocationInfo struct { ZoneDetails *[]ResourceSkuZoneDetails `json:"zoneDetails,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuLocationInfo. +func (rsli ResourceSkuLocationInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuZoneDetails describes The zonal capabilities of a SKU. type ResourceSkuZoneDetails struct { // Name - READ-ONLY; The set of zones that the SKU is available in with the specified capabilities. @@ -2753,6 +2825,12 @@ type ResourceSkuZoneDetails struct { Capabilities *[]SKUCapability `json:"capabilities,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuZoneDetails. +func (rszd ResourceSkuZoneDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Restriction the restriction because of which SKU cannot be used. type Restriction struct { // Type - READ-ONLY; The type of restrictions. As of now only possible value for this is location. @@ -3051,6 +3129,12 @@ type SystemService struct { Version *string `json:"version,omitempty"` } +// MarshalJSON is the custom marshaler for SystemService. +func (ss SystemService) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpdateWorkspaceQuotas the properties for update Quota response. type UpdateWorkspaceQuotas struct { // ID - READ-ONLY; Specifies the resource ID. @@ -3086,6 +3170,12 @@ type UpdateWorkspaceQuotasResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for UpdateWorkspaceQuotasResult. +func (uwqr UpdateWorkspaceQuotasResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage describes AML Resource Usage. type Usage struct { // ID - READ-ONLY; Specifies the resource ID. @@ -3102,6 +3192,12 @@ type Usage struct { Name *UsageName `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for Usage. +func (u Usage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageName the Usage Names. type UsageName struct { // Value - READ-ONLY; The name of the resource. @@ -3110,6 +3206,12 @@ type UsageName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for UsageName. +func (un UsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UserAccountCredentials settings for user account that gets created on each on the nodes of a compute. type UserAccountCredentials struct { // AdminUserName - Name of the administrator user account which can be used to SSH to nodes. @@ -3290,6 +3392,12 @@ type VirtualMachineSize struct { PremiumIO *bool `json:"premiumIO,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineSize. +func (vms VirtualMachineSize) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineSizeListResult the List Virtual Machine size operation response. type VirtualMachineSizeListResult struct { autorest.Response `json:"-"` diff --git a/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/CHANGELOG.md b/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/CHANGELOG.md index 52911e4cc5e4..24c21299d39d 100644 --- a/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/CHANGELOG.md +++ b/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/CHANGELOG.md @@ -1,2 +1,25 @@ # Change History +## Additive Changes + +### New Funcs + +1. AmlComputeNodeInformation.MarshalJSON() ([]byte, error) +1. Error.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. IdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. ListAmlUserFeatureResult.MarshalJSON() ([]byte, error) +1. ListUsagesResult.MarshalJSON() ([]byte, error) +1. ListWorkspaceQuotas.MarshalJSON() ([]byte, error) +1. NodeStateCounts.MarshalJSON() ([]byte, error) +1. Password.MarshalJSON() ([]byte, error) +1. PrivateEndpoint.MarshalJSON() ([]byte, error) +1. ResourceName.MarshalJSON() ([]byte, error) +1. ResourceQuota.MarshalJSON() ([]byte, error) +1. ResourceSkuLocationInfo.MarshalJSON() ([]byte, error) +1. ResourceSkuZoneDetails.MarshalJSON() ([]byte, error) +1. SystemService.MarshalJSON() ([]byte, error) +1. UpdateWorkspaceQuotasResult.MarshalJSON() ([]byte, error) +1. Usage.MarshalJSON() ([]byte, error) +1. UsageName.MarshalJSON() ([]byte, error) +1. VirtualMachineSize.MarshalJSON() ([]byte, error) diff --git a/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/_meta.json b/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/_meta.json index 6454aa73c518..9a28c4daa9a4 100644 --- a/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/_meta.json +++ b/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/machinelearningservices/resource-manager/readme.md", "tag": "package-2020-04-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-04-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/machinelearningservices/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-04-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/machinelearningservices/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/models.go b/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/models.go index 65ff5386a57a..613cc9d6c8e6 100644 --- a/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/models.go +++ b/services/machinelearningservices/mgmt/2020-04-01/machinelearningservices/models.go @@ -328,6 +328,12 @@ type AmlComputeNodeInformation struct { RunID *string `json:"runId,omitempty"` } +// MarshalJSON is the custom marshaler for AmlComputeNodeInformation. +func (acni AmlComputeNodeInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AmlComputeNodesInformation compute node information related to a AmlCompute. type AmlComputeNodesInformation struct { autorest.Response `json:"-"` @@ -1284,6 +1290,12 @@ type Error struct { Error *ErrorResponse `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for Error. +func (e Error) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetail error detail information. type ErrorDetail struct { // Code - Error code. @@ -1302,6 +1314,12 @@ type ErrorResponse struct { Details *[]ErrorDetail `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HDInsight a HDInsight compute. type HDInsight struct { Properties *HDInsightProperties `json:"properties,omitempty"` @@ -1434,6 +1452,12 @@ type IdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for IdentityUserAssignedIdentitiesValue. +func (iAiv IdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // KeyVaultProperties ... type KeyVaultProperties struct { // KeyVaultArmID - The ArmId of the keyVault where the customer owned encryption key is present. @@ -1453,6 +1477,12 @@ type ListAmlUserFeatureResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListAmlUserFeatureResult. +func (laufr ListAmlUserFeatureResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListAmlUserFeatureResultIterator provides access to a complete listing of AmlUserFeature values. type ListAmlUserFeatureResultIterator struct { i int @@ -1612,6 +1642,12 @@ type ListUsagesResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListUsagesResult. +func (lur ListUsagesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListUsagesResultIterator provides access to a complete listing of Usage values. type ListUsagesResultIterator struct { i int @@ -1794,6 +1830,12 @@ type ListWorkspaceQuotas struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListWorkspaceQuotas. +func (lwq ListWorkspaceQuotas) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListWorkspaceQuotasIterator provides access to a complete listing of ResourceQuota values. type ListWorkspaceQuotasIterator struct { i int @@ -2083,6 +2125,12 @@ type NodeStateCounts struct { PreemptedNodeCount *int32 `json:"preemptedNodeCount,omitempty"` } +// MarshalJSON is the custom marshaler for NodeStateCounts. +func (nsc NodeStateCounts) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NotebookListCredentialsResult ... type NotebookListCredentialsResult struct { PrimaryAccessKey *string `json:"primaryAccessKey,omitempty"` @@ -2343,12 +2391,24 @@ type Password struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for Password. +func (p Password) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpoint the Private Endpoint resource. type PrivateEndpoint struct { // ID - READ-ONLY; The ARM identifier for Private Endpoint ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpoint. +func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection the Private Endpoint Connection resource. type PrivateEndpointConnection struct { autorest.Response `json:"-"` @@ -2739,6 +2799,12 @@ type ResourceName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceName. +func (rn ResourceName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceQuota the quota assigned to a resource. type ResourceQuota struct { // ID - READ-ONLY; Specifies the resource ID. @@ -2753,6 +2819,12 @@ type ResourceQuota struct { Unit QuotaUnit `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceQuota. +func (rq ResourceQuota) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuLocationInfo ... type ResourceSkuLocationInfo struct { // Location - READ-ONLY; Location of the SKU @@ -2763,6 +2835,12 @@ type ResourceSkuLocationInfo struct { ZoneDetails *[]ResourceSkuZoneDetails `json:"zoneDetails,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuLocationInfo. +func (rsli ResourceSkuLocationInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuZoneDetails describes The zonal capabilities of a SKU. type ResourceSkuZoneDetails struct { // Name - READ-ONLY; The set of zones that the SKU is available in with the specified capabilities. @@ -2771,6 +2849,12 @@ type ResourceSkuZoneDetails struct { Capabilities *[]SKUCapability `json:"capabilities,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuZoneDetails. +func (rszd ResourceSkuZoneDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Restriction the restriction because of which SKU cannot be used. type Restriction struct { // Type - READ-ONLY; The type of restrictions. As of now only possible value for this is location. @@ -3073,6 +3157,12 @@ type SystemService struct { Version *string `json:"version,omitempty"` } +// MarshalJSON is the custom marshaler for SystemService. +func (ss SystemService) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpdateWorkspaceQuotas the properties for update Quota response. type UpdateWorkspaceQuotas struct { // ID - READ-ONLY; Specifies the resource ID. @@ -3108,6 +3198,12 @@ type UpdateWorkspaceQuotasResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for UpdateWorkspaceQuotasResult. +func (uwqr UpdateWorkspaceQuotasResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage describes AML Resource Usage. type Usage struct { // ID - READ-ONLY; Specifies the resource ID. @@ -3124,6 +3220,12 @@ type Usage struct { Name *UsageName `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for Usage. +func (u Usage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageName the Usage Names. type UsageName struct { // Value - READ-ONLY; The name of the resource. @@ -3132,6 +3234,12 @@ type UsageName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for UsageName. +func (un UsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UserAccountCredentials settings for user account that gets created on each on the nodes of a compute. type UserAccountCredentials struct { // AdminUserName - Name of the administrator user account which can be used to SSH to nodes. @@ -3312,6 +3420,12 @@ type VirtualMachineSize struct { PremiumIO *bool `json:"premiumIO,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineSize. +func (vms VirtualMachineSize) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineSizeListResult the List Virtual Machine size operation response. type VirtualMachineSizeListResult struct { autorest.Response `json:"-"` diff --git a/services/maintenance/mgmt/2020-04-01/maintenance/CHANGELOG.md b/services/maintenance/mgmt/2020-04-01/maintenance/CHANGELOG.md index 52911e4cc5e4..f817772e217f 100644 --- a/services/maintenance/mgmt/2020-04-01/maintenance/CHANGELOG.md +++ b/services/maintenance/mgmt/2020-04-01/maintenance/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/maintenance/mgmt/2020-04-01/maintenance/_meta.json b/services/maintenance/mgmt/2020-04-01/maintenance/_meta.json index f5fabcd6c9d8..d8d4c41ec3ab 100644 --- a/services/maintenance/mgmt/2020-04-01/maintenance/_meta.json +++ b/services/maintenance/mgmt/2020-04-01/maintenance/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/maintenance/resource-manager/readme.md", "tag": "package-2020-04", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/maintenance/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/maintenance/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/maintenance/mgmt/2020-04-01/maintenance/models.go b/services/maintenance/mgmt/2020-04-01/maintenance/models.go index f932457d5b89..bb4ad796b74a 100644 --- a/services/maintenance/mgmt/2020-04-01/maintenance/models.go +++ b/services/maintenance/mgmt/2020-04-01/maintenance/models.go @@ -395,6 +395,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Update maintenance update on a resource type Update struct { // MaintenanceScope - The impact area. Possible values include: 'ScopeAll', 'ScopeHost', 'ScopeResource', 'ScopeInResource' diff --git a/services/maintenance/mgmt/2021-05-01/maintenance/CHANGELOG.md b/services/maintenance/mgmt/2021-05-01/maintenance/CHANGELOG.md index 52911e4cc5e4..f817772e217f 100644 --- a/services/maintenance/mgmt/2021-05-01/maintenance/CHANGELOG.md +++ b/services/maintenance/mgmt/2021-05-01/maintenance/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/maintenance/mgmt/2021-05-01/maintenance/_meta.json b/services/maintenance/mgmt/2021-05-01/maintenance/_meta.json index 048c62887639..31bcdb1b5576 100644 --- a/services/maintenance/mgmt/2021-05-01/maintenance/_meta.json +++ b/services/maintenance/mgmt/2021-05-01/maintenance/_meta.json @@ -2,9 +2,9 @@ "commit": "225e4a77704766b9b6529c40c2677b22b58da9b9", "readme": "/_/azure-rest-api-specs/specification/maintenance/resource-manager/readme.md", "tag": "package-2021-05", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2021-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/maintenance/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2021-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/maintenance/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix" } diff --git a/services/maintenance/mgmt/2021-05-01/maintenance/models.go b/services/maintenance/mgmt/2021-05-01/maintenance/models.go index 6cdc0ec5e505..4a543561180e 100644 --- a/services/maintenance/mgmt/2021-05-01/maintenance/models.go +++ b/services/maintenance/mgmt/2021-05-01/maintenance/models.go @@ -509,6 +509,12 @@ type Resource struct { SystemData *SystemData `json:"systemData,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SystemData metadata pertaining to creation and last modification of the resource. type SystemData struct { // CreatedBy - The identity that created the resource. diff --git a/services/managedservices/mgmt/2019-06-01/managedservices/CHANGELOG.md b/services/managedservices/mgmt/2019-06-01/managedservices/CHANGELOG.md index 52911e4cc5e4..a235d8f6b210 100644 --- a/services/managedservices/mgmt/2019-06-01/managedservices/CHANGELOG.md +++ b/services/managedservices/mgmt/2019-06-01/managedservices/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. Operation.MarshalJSON() ([]byte, error) +1. OperationList.MarshalJSON() ([]byte, error) +1. RegistrationAssignmentList.MarshalJSON() ([]byte, error) +1. RegistrationDefinitionList.MarshalJSON() ([]byte, error) diff --git a/services/managedservices/mgmt/2019-06-01/managedservices/_meta.json b/services/managedservices/mgmt/2019-06-01/managedservices/_meta.json index cee40c1a1df6..f54af24f40c8 100644 --- a/services/managedservices/mgmt/2019-06-01/managedservices/_meta.json +++ b/services/managedservices/mgmt/2019-06-01/managedservices/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/managedservices/resource-manager/readme.md", "tag": "package-2019-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/managedservices/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/managedservices/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/managedservices/mgmt/2019-06-01/managedservices/models.go b/services/managedservices/mgmt/2019-06-01/managedservices/models.go index 59ea02136c29..b7aa52dcdd67 100644 --- a/services/managedservices/mgmt/2019-06-01/managedservices/models.go +++ b/services/managedservices/mgmt/2019-06-01/managedservices/models.go @@ -58,6 +58,12 @@ type Operation struct { Display *OperationDisplay `json:"display,omitempty"` } +// MarshalJSON is the custom marshaler for Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationDisplay the object that represents the operation. type OperationDisplay struct { // Provider - Service provider: Microsoft.ManagedServices @@ -77,6 +83,12 @@ type OperationList struct { Value *[]Operation `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationList. +func (ol OperationList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Plan plan details for the managed services. type Plan struct { // Name - The plan name. @@ -120,6 +132,12 @@ type RegistrationAssignmentList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RegistrationAssignmentList. +func (ral RegistrationAssignmentList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegistrationAssignmentListIterator provides access to a complete listing of RegistrationAssignment // values. type RegistrationAssignmentListIterator struct { @@ -454,6 +472,12 @@ type RegistrationDefinitionList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RegistrationDefinitionList. +func (rdl RegistrationDefinitionList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegistrationDefinitionListIterator provides access to a complete listing of RegistrationDefinition // values. type RegistrationDefinitionListIterator struct { diff --git a/services/maps/mgmt/2017-01-01-preview/maps/CHANGELOG.md b/services/maps/mgmt/2017-01-01-preview/maps/CHANGELOG.md index 52911e4cc5e4..be748cf38ade 100644 --- a/services/maps/mgmt/2017-01-01-preview/maps/CHANGELOG.md +++ b/services/maps/mgmt/2017-01-01-preview/maps/CHANGELOG.md @@ -1,2 +1,13 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountKeys.MarshalJSON() ([]byte, error) +1. Accounts.MarshalJSON() ([]byte, error) +1. Error.MarshalJSON() ([]byte, error) +1. ErrorDetailsItem.MarshalJSON() ([]byte, error) +1. Operations.MarshalJSON() ([]byte, error) +1. OperationsValueItemDisplay.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/maps/mgmt/2017-01-01-preview/maps/_meta.json b/services/maps/mgmt/2017-01-01-preview/maps/_meta.json index 1e7db7d41684..17c3ae50f991 100644 --- a/services/maps/mgmt/2017-01-01-preview/maps/_meta.json +++ b/services/maps/mgmt/2017-01-01-preview/maps/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/maps/resource-manager/readme.md", "tag": "package-2017-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/maps/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/maps/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/maps/mgmt/2017-01-01-preview/maps/models.go b/services/maps/mgmt/2017-01-01-preview/maps/models.go index 1c758e524d22..b28c84f900e3 100644 --- a/services/maps/mgmt/2017-01-01-preview/maps/models.go +++ b/services/maps/mgmt/2017-01-01-preview/maps/models.go @@ -76,6 +76,12 @@ type AccountKeys struct { SecondaryKey *string `json:"secondaryKey,omitempty"` } +// MarshalJSON is the custom marshaler for AccountKeys. +func (ak AccountKeys) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountProperties additional Map account properties type AccountProperties struct { // XMsClientID - A unique identifier for the maps account @@ -89,6 +95,12 @@ type Accounts struct { Value *[]Account `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for Accounts. +func (a Accounts) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountsMoveRequest the description of what resources to move between resource groups. type AccountsMoveRequest struct { // TargetResourceGroup - The name of the destination resource group. @@ -129,6 +141,12 @@ type Error struct { Details *[]ErrorDetailsItem `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for Error. +func (e Error) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetailsItem ... type ErrorDetailsItem struct { // Code - READ-ONLY; Error code. @@ -139,6 +157,12 @@ type ErrorDetailsItem struct { Target *string `json:"target,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetailsItem. +func (eI ErrorDetailsItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // KeySpecification whether the operation refers to the primary or secondary key. type KeySpecification struct { // KeyType - Whether the operation refers to the primary or secondary key. Possible values include: 'Primary', 'Secondary' @@ -152,6 +176,12 @@ type Operations struct { Value *[]OperationsValueItem `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for Operations. +func (o Operations) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationsValueItem ... type OperationsValueItem struct { // Name - READ-ONLY; Operation name: {provider}/{resource}/{operation}. @@ -183,6 +213,12 @@ type OperationsValueItemDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationsValueItemDisplay. +func (oI OperationsValueItemDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource an Azure resource type Resource struct { // ID - READ-ONLY; The fully qualified Maps Account resource identifier. @@ -193,6 +229,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Sku the SKU of the Maps Account. type Sku struct { // Name - The name of the SKU, in standard format (such as S0). diff --git a/services/maps/mgmt/2018-05-01/maps/CHANGELOG.md b/services/maps/mgmt/2018-05-01/maps/CHANGELOG.md index 52911e4cc5e4..be748cf38ade 100644 --- a/services/maps/mgmt/2018-05-01/maps/CHANGELOG.md +++ b/services/maps/mgmt/2018-05-01/maps/CHANGELOG.md @@ -1,2 +1,13 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountKeys.MarshalJSON() ([]byte, error) +1. Accounts.MarshalJSON() ([]byte, error) +1. Error.MarshalJSON() ([]byte, error) +1. ErrorDetailsItem.MarshalJSON() ([]byte, error) +1. Operations.MarshalJSON() ([]byte, error) +1. OperationsValueItemDisplay.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/maps/mgmt/2018-05-01/maps/_meta.json b/services/maps/mgmt/2018-05-01/maps/_meta.json index 38b1b276ff9a..3c8b89a7f560 100644 --- a/services/maps/mgmt/2018-05-01/maps/_meta.json +++ b/services/maps/mgmt/2018-05-01/maps/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/maps/resource-manager/readme.md", "tag": "package-2018-05", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/maps/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/maps/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/maps/mgmt/2018-05-01/maps/models.go b/services/maps/mgmt/2018-05-01/maps/models.go index 408b7b885d9d..ecade6e4d36b 100644 --- a/services/maps/mgmt/2018-05-01/maps/models.go +++ b/services/maps/mgmt/2018-05-01/maps/models.go @@ -76,6 +76,12 @@ type AccountKeys struct { SecondaryKey *string `json:"secondaryKey,omitempty"` } +// MarshalJSON is the custom marshaler for AccountKeys. +func (ak AccountKeys) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountProperties additional Map account properties type AccountProperties struct { // XMsClientID - A unique identifier for the maps account @@ -89,6 +95,12 @@ type Accounts struct { Value *[]Account `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for Accounts. +func (a Accounts) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountsMoveRequest the description of what resources to move between resource groups. type AccountsMoveRequest struct { // TargetResourceGroup - The name of the destination resource group. @@ -129,6 +141,12 @@ type Error struct { Details *[]ErrorDetailsItem `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for Error. +func (e Error) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetailsItem ... type ErrorDetailsItem struct { // Code - READ-ONLY; Error code. @@ -139,6 +157,12 @@ type ErrorDetailsItem struct { Target *string `json:"target,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetailsItem. +func (eI ErrorDetailsItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // KeySpecification whether the operation refers to the primary or secondary key. type KeySpecification struct { // KeyType - Whether the operation refers to the primary or secondary key. Possible values include: 'Primary', 'Secondary' @@ -152,6 +176,12 @@ type Operations struct { Value *[]OperationsValueItem `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for Operations. +func (o Operations) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationsValueItem ... type OperationsValueItem struct { // Name - READ-ONLY; Operation name: {provider}/{resource}/{operation}. @@ -183,6 +213,12 @@ type OperationsValueItemDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationsValueItemDisplay. +func (oI OperationsValueItemDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource an Azure resource type Resource struct { // ID - READ-ONLY; The fully qualified Maps Account resource identifier. @@ -193,6 +229,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Sku the SKU of the Maps Account. type Sku struct { // Name - The name of the SKU, in standard format (such as S0). diff --git a/services/maps/mgmt/2021-02-01/maps/CHANGELOG.md b/services/maps/mgmt/2021-02-01/maps/CHANGELOG.md index 52911e4cc5e4..b32a892a79ee 100644 --- a/services/maps/mgmt/2021-02-01/maps/CHANGELOG.md +++ b/services/maps/mgmt/2021-02-01/maps/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountKeys.MarshalJSON() ([]byte, error) +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorDetail.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/maps/mgmt/2021-02-01/maps/_meta.json b/services/maps/mgmt/2021-02-01/maps/_meta.json index 423197245e85..0e6b11c2ca74 100644 --- a/services/maps/mgmt/2021-02-01/maps/_meta.json +++ b/services/maps/mgmt/2021-02-01/maps/_meta.json @@ -2,9 +2,9 @@ "commit": "c2ea3a3ccd14293b4bd1d17e684ef9129f0dc604", "readme": "/_/azure-rest-api-specs/specification/maps/resource-manager/readme.md", "tag": "package-2021-02", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2021-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/maps/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2021-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/maps/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix" } diff --git a/services/maps/mgmt/2021-02-01/maps/models.go b/services/maps/mgmt/2021-02-01/maps/models.go index b3271a62d8b0..4d46e3d35947 100644 --- a/services/maps/mgmt/2021-02-01/maps/models.go +++ b/services/maps/mgmt/2021-02-01/maps/models.go @@ -77,6 +77,12 @@ type AccountKeys struct { SecondaryKeyLastUpdated *string `json:"secondaryKeyLastUpdated,omitempty"` } +// MarshalJSON is the custom marshaler for AccountKeys. +func (ak AccountKeys) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountProperties additional Map account properties type AccountProperties struct { // UniqueID - READ-ONLY; A unique identifier for the maps account @@ -358,6 +364,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Creator an Azure resource which represents Maps Creator product and provides ability to manage private // location data. type Creator struct { @@ -646,6 +658,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetail the error detail. type ErrorDetail struct { // Code - READ-ONLY; The error code. @@ -660,6 +678,12 @@ type ErrorDetail struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetail. +func (ed ErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.). type ErrorResponse struct { @@ -988,6 +1012,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -998,6 +1028,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceSpecification one property of operation, include metric specifications. type ServiceSpecification struct { // MetricSpecifications - Metric specifications of operation. diff --git a/services/mariadb/mgmt/2018-06-01/mariadb/CHANGELOG.md b/services/mariadb/mgmt/2018-06-01/mariadb/CHANGELOG.md index 52911e4cc5e4..825f4187a15a 100644 --- a/services/mariadb/mgmt/2018-06-01/mariadb/CHANGELOG.md +++ b/services/mariadb/mgmt/2018-06-01/mariadb/CHANGELOG.md @@ -1,2 +1,23 @@ # Change History +## Additive Changes + +### New Funcs + +1. AdvisorsResultList.MarshalJSON() ([]byte, error) +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. PrivateEndpointConnectionListResult.MarshalJSON() ([]byte, error) +1. PrivateLinkResource.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceListResult.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. QueryTextsResultList.MarshalJSON() ([]byte, error) +1. RecommendationActionsResultList.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ServerPrivateEndpointConnection.MarshalJSON() ([]byte, error) +1. TopQueryStatisticsResultList.MarshalJSON() ([]byte, error) +1. VirtualNetworkRuleListResult.MarshalJSON() ([]byte, error) +1. WaitStatisticsResultList.MarshalJSON() ([]byte, error) diff --git a/services/mariadb/mgmt/2018-06-01/mariadb/_meta.json b/services/mariadb/mgmt/2018-06-01/mariadb/_meta.json index 4207d959b2a2..6545547e283d 100644 --- a/services/mariadb/mgmt/2018-06-01/mariadb/_meta.json +++ b/services/mariadb/mgmt/2018-06-01/mariadb/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/mariadb/resource-manager/readme.md", "tag": "package-2018-06-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-06-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/mariadb/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-06-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/mariadb/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/mariadb/mgmt/2018-06-01/mariadb/models.go b/services/mariadb/mgmt/2018-06-01/mariadb/models.go index 3c44a918bb87..6f7ac5dd7f23 100644 --- a/services/mariadb/mgmt/2018-06-01/mariadb/models.go +++ b/services/mariadb/mgmt/2018-06-01/mariadb/models.go @@ -51,6 +51,12 @@ type AdvisorsResultList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for AdvisorsResultList. +func (arl AdvisorsResultList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AdvisorsResultListIterator provides access to a complete listing of Advisor values. type AdvisorsResultListIterator struct { i int @@ -213,6 +219,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from the Batch service. type CloudError struct { Error *ErrorResponse `json:"error,omitempty"` @@ -582,6 +594,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.) type ErrorResponse struct { @@ -597,6 +615,12 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FirewallRule represents a server firewall rule. type FirewallRule struct { autorest.Response `json:"-"` @@ -919,6 +943,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (od OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult a list of resource provider operations. type OperationListResult struct { autorest.Response `json:"-"` @@ -1043,6 +1073,12 @@ type PrivateEndpointConnectionListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpointConnectionListResult. +func (peclr PrivateEndpointConnectionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnectionListResultIterator provides access to a complete listing of // PrivateEndpointConnection values. type PrivateEndpointConnectionListResultIterator struct { @@ -1358,6 +1394,12 @@ type PrivateLinkResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResource. +func (plr PrivateLinkResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkResourceListResult a list of private link resources type PrivateLinkResourceListResult struct { autorest.Response `json:"-"` @@ -1367,6 +1409,12 @@ type PrivateLinkResourceListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceListResult. +func (plrlr PrivateLinkResourceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkResourceListResultIterator provides access to a complete listing of PrivateLinkResource // values. type PrivateLinkResourceListResultIterator struct { @@ -1526,6 +1574,12 @@ type PrivateLinkResourceProperties struct { RequiredMembers *[]string `json:"requiredMembers,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. +func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkServiceConnectionStateProperty ... type PrivateLinkServiceConnectionStateProperty struct { // Status - The private link service connection status. @@ -1559,6 +1613,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QueryStatistic represents a Query Statistic. type QueryStatistic struct { autorest.Response `json:"-"` @@ -1746,6 +1806,12 @@ type QueryTextsResultList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for QueryTextsResultList. +func (qtrl QueryTextsResultList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QueryTextsResultListIterator provides access to a complete listing of QueryText values. type QueryTextsResultListIterator struct { i int @@ -2028,6 +2094,12 @@ type RecommendationActionsResultList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RecommendationActionsResultList. +func (rarl RecommendationActionsResultList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RecommendationActionsResultListIterator provides access to a complete listing of RecommendationAction // values. type RecommendationActionsResultListIterator struct { @@ -2200,6 +2272,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SecurityAlertPolicyProperties properties of a security alert policy. type SecurityAlertPolicyProperties struct { // State - Specifies the state of the policy, whether it is enabled or disabled. Possible values include: 'ServerSecurityAlertPolicyStateEnabled', 'ServerSecurityAlertPolicyStateDisabled' @@ -2426,6 +2504,12 @@ type ServerPrivateEndpointConnection struct { Properties *ServerPrivateEndpointConnectionProperties `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for ServerPrivateEndpointConnection. +func (spec ServerPrivateEndpointConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerPrivateEndpointConnectionProperties properties of a private endpoint connection. type ServerPrivateEndpointConnectionProperties struct { // PrivateEndpoint - Private endpoint which the connection belongs to. @@ -3420,6 +3504,12 @@ type TopQueryStatisticsResultList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for TopQueryStatisticsResultList. +func (tqsrl TopQueryStatisticsResultList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TopQueryStatisticsResultListIterator provides access to a complete listing of QueryStatistic values. type TopQueryStatisticsResultListIterator struct { i int @@ -3679,6 +3769,12 @@ type VirtualNetworkRuleListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkRuleListResult. +func (vnrlr VirtualNetworkRuleListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkRuleListResultIterator provides access to a complete listing of VirtualNetworkRule values. type VirtualNetworkRuleListResultIterator struct { i int @@ -4084,6 +4180,12 @@ type WaitStatisticsResultList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for WaitStatisticsResultList. +func (wsrl WaitStatisticsResultList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WaitStatisticsResultListIterator provides access to a complete listing of WaitStatistic values. type WaitStatisticsResultListIterator struct { i int diff --git a/services/mariadb/mgmt/2020-01-01/mariadb/CHANGELOG.md b/services/mariadb/mgmt/2020-01-01/mariadb/CHANGELOG.md index 52911e4cc5e4..825f4187a15a 100644 --- a/services/mariadb/mgmt/2020-01-01/mariadb/CHANGELOG.md +++ b/services/mariadb/mgmt/2020-01-01/mariadb/CHANGELOG.md @@ -1,2 +1,23 @@ # Change History +## Additive Changes + +### New Funcs + +1. AdvisorsResultList.MarshalJSON() ([]byte, error) +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. PrivateEndpointConnectionListResult.MarshalJSON() ([]byte, error) +1. PrivateLinkResource.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceListResult.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. QueryTextsResultList.MarshalJSON() ([]byte, error) +1. RecommendationActionsResultList.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ServerPrivateEndpointConnection.MarshalJSON() ([]byte, error) +1. TopQueryStatisticsResultList.MarshalJSON() ([]byte, error) +1. VirtualNetworkRuleListResult.MarshalJSON() ([]byte, error) +1. WaitStatisticsResultList.MarshalJSON() ([]byte, error) diff --git a/services/mariadb/mgmt/2020-01-01/mariadb/_meta.json b/services/mariadb/mgmt/2020-01-01/mariadb/_meta.json index 82c5849413f7..4d0febdd2973 100644 --- a/services/mariadb/mgmt/2020-01-01/mariadb/_meta.json +++ b/services/mariadb/mgmt/2020-01-01/mariadb/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/mariadb/resource-manager/readme.md", "tag": "package-2020-01-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-01-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/mariadb/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-01-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/mariadb/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/mariadb/mgmt/2020-01-01/mariadb/models.go b/services/mariadb/mgmt/2020-01-01/mariadb/models.go index e57aeae45a24..daf3ad4d8552 100644 --- a/services/mariadb/mgmt/2020-01-01/mariadb/models.go +++ b/services/mariadb/mgmt/2020-01-01/mariadb/models.go @@ -51,6 +51,12 @@ type AdvisorsResultList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for AdvisorsResultList. +func (arl AdvisorsResultList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AdvisorsResultListIterator provides access to a complete listing of Advisor values. type AdvisorsResultListIterator struct { i int @@ -213,6 +219,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from the Batch service. type CloudError struct { // Error - Error message @@ -583,6 +595,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.) type ErrorResponse struct { @@ -598,6 +616,12 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FirewallRule represents a server firewall rule. type FirewallRule struct { autorest.Response `json:"-"` @@ -920,6 +944,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (od OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult a list of resource provider operations. type OperationListResult struct { autorest.Response `json:"-"` @@ -1044,6 +1074,12 @@ type PrivateEndpointConnectionListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpointConnectionListResult. +func (peclr PrivateEndpointConnectionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnectionListResultIterator provides access to a complete listing of // PrivateEndpointConnection values. type PrivateEndpointConnectionListResultIterator struct { @@ -1359,6 +1395,12 @@ type PrivateLinkResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResource. +func (plr PrivateLinkResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkResourceListResult a list of private link resources type PrivateLinkResourceListResult struct { autorest.Response `json:"-"` @@ -1368,6 +1410,12 @@ type PrivateLinkResourceListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceListResult. +func (plrlr PrivateLinkResourceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkResourceListResultIterator provides access to a complete listing of PrivateLinkResource // values. type PrivateLinkResourceListResultIterator struct { @@ -1527,6 +1575,12 @@ type PrivateLinkResourceProperties struct { RequiredMembers *[]string `json:"requiredMembers,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. +func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkServiceConnectionStateProperty ... type PrivateLinkServiceConnectionStateProperty struct { // Status - The private link service connection status. @@ -1560,6 +1614,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QueryStatistic represents a Query Statistic. type QueryStatistic struct { autorest.Response `json:"-"` @@ -1747,6 +1807,12 @@ type QueryTextsResultList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for QueryTextsResultList. +func (qtrl QueryTextsResultList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QueryTextsResultListIterator provides access to a complete listing of QueryText values. type QueryTextsResultListIterator struct { i int @@ -2029,6 +2095,12 @@ type RecommendationActionsResultList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RecommendationActionsResultList. +func (rarl RecommendationActionsResultList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RecommendationActionsResultListIterator provides access to a complete listing of RecommendationAction // values. type RecommendationActionsResultListIterator struct { @@ -2201,6 +2273,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SecurityAlertPolicyProperties properties of a security alert policy. type SecurityAlertPolicyProperties struct { // State - Specifies the state of the policy, whether it is enabled or disabled. Possible values include: 'ServerSecurityAlertPolicyStateEnabled', 'ServerSecurityAlertPolicyStateDisabled' @@ -2427,6 +2505,12 @@ type ServerPrivateEndpointConnection struct { Properties *ServerPrivateEndpointConnectionProperties `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for ServerPrivateEndpointConnection. +func (spec ServerPrivateEndpointConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerPrivateEndpointConnectionProperties properties of a private endpoint connection. type ServerPrivateEndpointConnectionProperties struct { // PrivateEndpoint - Private endpoint which the connection belongs to. @@ -3493,6 +3577,12 @@ type TopQueryStatisticsResultList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for TopQueryStatisticsResultList. +func (tqsrl TopQueryStatisticsResultList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TopQueryStatisticsResultListIterator provides access to a complete listing of QueryStatistic values. type TopQueryStatisticsResultListIterator struct { i int @@ -3752,6 +3842,12 @@ type VirtualNetworkRuleListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkRuleListResult. +func (vnrlr VirtualNetworkRuleListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkRuleListResultIterator provides access to a complete listing of VirtualNetworkRule values. type VirtualNetworkRuleListResultIterator struct { i int @@ -4157,6 +4253,12 @@ type WaitStatisticsResultList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for WaitStatisticsResultList. +func (wsrl WaitStatisticsResultList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WaitStatisticsResultListIterator provides access to a complete listing of WaitStatistic values. type WaitStatisticsResultListIterator struct { i int diff --git a/services/marketplaceordering/mgmt/2015-06-01/marketplaceordering/CHANGELOG.md b/services/marketplaceordering/mgmt/2015-06-01/marketplaceordering/CHANGELOG.md index 52911e4cc5e4..0a062048f9ac 100644 --- a/services/marketplaceordering/mgmt/2015-06-01/marketplaceordering/CHANGELOG.md +++ b/services/marketplaceordering/mgmt/2015-06-01/marketplaceordering/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. ErrorResponseError.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/marketplaceordering/mgmt/2015-06-01/marketplaceordering/_meta.json b/services/marketplaceordering/mgmt/2015-06-01/marketplaceordering/_meta.json index feb5e0fef6f7..4352951e5d46 100644 --- a/services/marketplaceordering/mgmt/2015-06-01/marketplaceordering/_meta.json +++ b/services/marketplaceordering/mgmt/2015-06-01/marketplaceordering/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/marketplaceordering/resource-manager/readme.md", "tag": "package-2015-06-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2015-06-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/marketplaceordering/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2015-06-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/marketplaceordering/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/marketplaceordering/mgmt/2015-06-01/marketplaceordering/models.go b/services/marketplaceordering/mgmt/2015-06-01/marketplaceordering/models.go index 41e902a0c9b1..e3ed58828c12 100644 --- a/services/marketplaceordering/mgmt/2015-06-01/marketplaceordering/models.go +++ b/services/marketplaceordering/mgmt/2015-06-01/marketplaceordering/models.go @@ -127,6 +127,12 @@ type ErrorResponseError struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponseError. +func (er ErrorResponseError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListAgreementTerms ... type ListAgreementTerms struct { autorest.Response `json:"-"` @@ -329,3 +335,9 @@ type Resource struct { // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } + +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/mediaservices/mgmt/2015-10-01/media/CHANGELOG.md b/services/mediaservices/mgmt/2015-10-01/media/CHANGELOG.md index 52911e4cc5e4..fa72975a9186 100644 --- a/services/mediaservices/mgmt/2015-10-01/media/CHANGELOG.md +++ b/services/mediaservices/mgmt/2015-10-01/media/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) diff --git a/services/mediaservices/mgmt/2015-10-01/media/_meta.json b/services/mediaservices/mgmt/2015-10-01/media/_meta.json index ce99cc80caa8..f2b35b1e8736 100644 --- a/services/mediaservices/mgmt/2015-10-01/media/_meta.json +++ b/services/mediaservices/mgmt/2015-10-01/media/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/mediaservices/resource-manager/readme.md", "tag": "package-2015-10", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2015-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/mediaservices/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2015-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/mediaservices/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/mediaservices/mgmt/2015-10-01/media/models.go b/services/mediaservices/mgmt/2015-10-01/media/models.go index f397aa41f61e..fa2d02eb0a94 100644 --- a/services/mediaservices/mgmt/2015-10-01/media/models.go +++ b/services/mediaservices/mgmt/2015-10-01/media/models.go @@ -76,6 +76,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of the request to list Media Services operations. type OperationListResult struct { autorest.Response `json:"-"` @@ -85,6 +91,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegenerateKeyInput the request body for a RegenerateKey API. type RegenerateKeyInput struct { // KeyType - The keyType indicating which key you want to regenerate, Primary or Secondary. Possible values include: 'Primary', 'Secondary' diff --git a/services/mediaservices/mgmt/2018-07-01/media/CHANGELOG.md b/services/mediaservices/mgmt/2018-07-01/media/CHANGELOG.md index 52911e4cc5e4..ddaa9897da98 100644 --- a/services/mediaservices/mgmt/2018-07-01/media/CHANGELOG.md +++ b/services/mediaservices/mgmt/2018-07-01/media/CHANGELOG.md @@ -1,2 +1,16 @@ # Change History +## Additive Changes + +### New Funcs + +1. AssetStreamingLocator.MarshalJSON() ([]byte, error) +1. JobError.MarshalJSON() ([]byte, error) +1. JobErrorDetail.MarshalJSON() ([]byte, error) +1. ListStreamingLocatorsResponse.MarshalJSON() ([]byte, error) +1. Metric.MarshalJSON() ([]byte, error) +1. MetricDimension.MarshalJSON() ([]byte, error) +1. MetricProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ServiceSpecification.MarshalJSON() ([]byte, error) diff --git a/services/mediaservices/mgmt/2018-07-01/media/_meta.json b/services/mediaservices/mgmt/2018-07-01/media/_meta.json index ed1232f4af17..28f0541a9625 100644 --- a/services/mediaservices/mgmt/2018-07-01/media/_meta.json +++ b/services/mediaservices/mgmt/2018-07-01/media/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/mediaservices/resource-manager/readme.md", "tag": "package-2018-07", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/mediaservices/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/mediaservices/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/mediaservices/mgmt/2018-07-01/media/models.go b/services/mediaservices/mgmt/2018-07-01/media/models.go index cc4edfbc8d31..a230bab30d5b 100644 --- a/services/mediaservices/mgmt/2018-07-01/media/models.go +++ b/services/mediaservices/mgmt/2018-07-01/media/models.go @@ -961,6 +961,12 @@ type AssetStreamingLocator struct { DefaultContentKeyPolicyName *string `json:"defaultContentKeyPolicyName,omitempty"` } +// MarshalJSON is the custom marshaler for AssetStreamingLocator. +func (asl AssetStreamingLocator) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicAudio defines the common properties for all audio codecs. type BasicAudio interface { AsAacAudio() (*AacAudio, bool) @@ -4692,6 +4698,12 @@ type JobError struct { Details *[]JobErrorDetail `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for JobError. +func (je JobError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobErrorDetail details of JobOutput errors. type JobErrorDetail struct { // Code - READ-ONLY; Code describing the error detail. @@ -4700,6 +4712,12 @@ type JobErrorDetail struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for JobErrorDetail. +func (jed JobErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicJobInput base class for inputs to a Job. type BasicJobInput interface { AsJobInputClip() (*JobInputClip, bool) @@ -6064,6 +6082,12 @@ type ListStreamingLocatorsResponse struct { StreamingLocators *[]AssetStreamingLocator `json:"streamingLocators,omitempty"` } +// MarshalJSON is the custom marshaler for ListStreamingLocatorsResponse. +func (lslr ListStreamingLocatorsResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LiveEvent the Live Event. type LiveEvent struct { autorest.Response `json:"-"` @@ -7058,6 +7082,12 @@ type Metric struct { Dimensions *[]MetricDimension `json:"dimensions,omitempty"` } +// MarshalJSON is the custom marshaler for Metric. +func (mVar Metric) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricDimension a metric dimension. type MetricDimension struct { // Name - READ-ONLY; The metric dimension name. @@ -7068,12 +7098,24 @@ type MetricDimension struct { ToBeExportedForShoebox *bool `json:"toBeExportedForShoebox,omitempty"` } +// MarshalJSON is the custom marshaler for MetricDimension. +func (md MetricDimension) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricProperties metric properties. type MetricProperties struct { // ServiceSpecification - READ-ONLY; The service specifications. ServiceSpecification *ServiceSpecification `json:"serviceSpecification,omitempty"` } +// MarshalJSON is the custom marshaler for MetricProperties. +func (mp MetricProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Mp4Format describes the properties for an output ISO MP4 file. type Mp4Format struct { // OutputFiles - The list of output files to produce. Each entry in the list is a set of audio and video layer labels to be muxed together . @@ -8012,6 +8054,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Rectangle describes the properties of a rectangular window applied to the input media before processing // it. type Rectangle struct { @@ -8035,6 +8083,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Service a Media Services account. type Service struct { autorest.Response `json:"-"` @@ -8318,6 +8372,12 @@ type ServiceSpecification struct { MetricSpecifications *[]Metric `json:"metricSpecifications,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceSpecification. +func (ss ServiceSpecification) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StandardEncoderPreset describes all the settings to be used when encoding the input video with the // Standard Encoder. type StandardEncoderPreset struct { diff --git a/services/mediaservices/mgmt/2020-05-01/media/CHANGELOG.md b/services/mediaservices/mgmt/2020-05-01/media/CHANGELOG.md index 52911e4cc5e4..ba748df298fb 100644 --- a/services/mediaservices/mgmt/2020-05-01/media/CHANGELOG.md +++ b/services/mediaservices/mgmt/2020-05-01/media/CHANGELOG.md @@ -1,2 +1,18 @@ # Change History +## Additive Changes + +### New Funcs + +1. AssetStreamingLocator.MarshalJSON() ([]byte, error) +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. JobError.MarshalJSON() ([]byte, error) +1. JobErrorDetail.MarshalJSON() ([]byte, error) +1. ListStreamingLocatorsResponse.MarshalJSON() ([]byte, error) +1. LogSpecification.MarshalJSON() ([]byte, error) +1. MetricDimension.MarshalJSON() ([]byte, error) +1. PrivateEndpoint.MarshalJSON() ([]byte, error) +1. Properties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ServiceSpecification.MarshalJSON() ([]byte, error) diff --git a/services/mediaservices/mgmt/2020-05-01/media/_meta.json b/services/mediaservices/mgmt/2020-05-01/media/_meta.json index 40dde62fde77..0077ba3f3fd0 100644 --- a/services/mediaservices/mgmt/2020-05-01/media/_meta.json +++ b/services/mediaservices/mgmt/2020-05-01/media/_meta.json @@ -2,9 +2,9 @@ "commit": "92ab22b49bd085116af0c61fada2c6c360702e9e", "readme": "/_/azure-rest-api-specs/specification/mediaservices/resource-manager/readme.md", "tag": "package-2020-05", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/mediaservices/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/mediaservices/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/mediaservices/mgmt/2020-05-01/media/models.go b/services/mediaservices/mgmt/2020-05-01/media/models.go index 261778b9f488..d3a12ccf6811 100644 --- a/services/mediaservices/mgmt/2020-05-01/media/models.go +++ b/services/mediaservices/mgmt/2020-05-01/media/models.go @@ -1012,6 +1012,12 @@ type AssetStreamingLocator struct { DefaultContentKeyPolicyName *string `json:"defaultContentKeyPolicyName,omitempty"` } +// MarshalJSON is the custom marshaler for AssetStreamingLocator. +func (asl AssetStreamingLocator) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicAudio defines the common properties for all audio codecs. type BasicAudio interface { AsAacAudio() (*AacAudio, bool) @@ -1480,6 +1486,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BuiltInStandardEncoderPreset describes a built-in preset for encoding the input video with the Standard // Encoder. type BuiltInStandardEncoderPreset struct { @@ -5780,6 +5792,12 @@ type JobError struct { Details *[]JobErrorDetail `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for JobError. +func (je JobError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobErrorDetail details of JobOutput errors. type JobErrorDetail struct { // Code - READ-ONLY; Code describing the error detail. @@ -5788,6 +5806,12 @@ type JobErrorDetail struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for JobErrorDetail. +func (jed JobErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicJobInput base class for inputs to a Job. type BasicJobInput interface { AsJobInputClip() (*JobInputClip, bool) @@ -7388,6 +7412,12 @@ type ListStreamingLocatorsResponse struct { StreamingLocators *[]AssetStreamingLocator `json:"streamingLocators,omitempty"` } +// MarshalJSON is the custom marshaler for ListStreamingLocatorsResponse. +func (lslr ListStreamingLocatorsResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LiveEvent the live event. type LiveEvent struct { autorest.Response `json:"-"` @@ -8469,6 +8499,12 @@ type LogSpecification struct { BlobDuration *string `json:"blobDuration,omitempty"` } +// MarshalJSON is the custom marshaler for LogSpecification. +func (ls LogSpecification) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricDimension a metric dimension. type MetricDimension struct { // Name - READ-ONLY; The metric dimension name. @@ -8479,6 +8515,12 @@ type MetricDimension struct { ToBeExportedForShoebox *bool `json:"toBeExportedForShoebox,omitempty"` } +// MarshalJSON is the custom marshaler for MetricDimension. +func (md MetricDimension) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricSpecification a metric emitted by service. type MetricSpecification struct { // Name - READ-ONLY; The metric name. @@ -9461,6 +9503,12 @@ type PrivateEndpoint struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpoint. +func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection the Private Endpoint Connection resource. type PrivateEndpointConnection struct { autorest.Response `json:"-"` @@ -9668,6 +9716,12 @@ type Properties struct { ServiceSpecification *ServiceSpecification `json:"serviceSpecification,omitempty"` } +// MarshalJSON is the custom marshaler for Properties. +func (p Properties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Provider a resource provider. type Provider struct { // ProviderName - The provider name. @@ -9685,6 +9739,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Rectangle describes the properties of a rectangular window applied to the input media before processing // it. type Rectangle struct { @@ -9708,6 +9768,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SelectAudioTrackByAttribute select audio tracks from the input by specifying an attribute and an // attribute filter. type SelectAudioTrackByAttribute struct { @@ -10363,6 +10429,12 @@ type ServiceSpecification struct { MetricSpecifications *[]MetricSpecification `json:"metricSpecifications,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceSpecification. +func (ss ServiceSpecification) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StandardEncoderPreset describes all the settings to be used when encoding the input video with the // Standard Encoder. type StandardEncoderPreset struct { diff --git a/services/migrate/mgmt/2018-02-02/migrate/CHANGELOG.md b/services/migrate/mgmt/2018-02-02/migrate/CHANGELOG.md index 52911e4cc5e4..2dadeba6c315 100644 --- a/services/migrate/mgmt/2018-02-02/migrate/CHANGELOG.md +++ b/services/migrate/mgmt/2018-02-02/migrate/CHANGELOG.md @@ -1,2 +1,15 @@ # Change History +## Additive Changes + +### New Funcs + +1. AssessedDisk.MarshalJSON() ([]byte, error) +1. AssessmentOptionsResultList.MarshalJSON() ([]byte, error) +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) +1. Disk.MarshalJSON() ([]byte, error) +1. DownloadURL.MarshalJSON() ([]byte, error) +1. NetworkAdapter.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. ProjectKey.MarshalJSON() ([]byte, error) +1. VMFamily.MarshalJSON() ([]byte, error) diff --git a/services/migrate/mgmt/2018-02-02/migrate/_meta.json b/services/migrate/mgmt/2018-02-02/migrate/_meta.json index 9366e73e3c3d..ef98a1558b2e 100644 --- a/services/migrate/mgmt/2018-02-02/migrate/_meta.json +++ b/services/migrate/mgmt/2018-02-02/migrate/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/migrate/resource-manager/readme.md", "tag": "package-2018-02", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/migrate/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/migrate/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/migrate/mgmt/2018-02-02/migrate/models.go b/services/migrate/mgmt/2018-02-02/migrate/models.go index e29256ec434b..6fa715c4d19c 100644 --- a/services/migrate/mgmt/2018-02-02/migrate/models.go +++ b/services/migrate/mgmt/2018-02-02/migrate/models.go @@ -61,6 +61,12 @@ type AssessedDisk struct { SuitabilityExplanation AzureDiskSuitabilityExplanation `json:"suitabilityExplanation,omitempty"` } +// MarshalJSON is the custom marshaler for AssessedDisk. +func (ad AssessedDisk) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AssessedMachine a machine evaluated as part of an assessment. type AssessedMachine struct { autorest.Response `json:"-"` @@ -358,6 +364,12 @@ type AssessmentOptionsResultList struct { ReservedInstanceVMFamilies *[]string `json:"reservedInstanceVmFamilies,omitempty"` } +// MarshalJSON is the custom marshaler for AssessmentOptionsResultList. +func (aorl AssessmentOptionsResultList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AssessmentProperties properties of an assessment. type AssessmentProperties struct { // AzureLocation - Target Azure location for which the machines should be assessed. These enums are the same as used by Compute API. Possible values include: 'AzureLocationUnknown', 'AzureLocationEastAsia', 'AzureLocationSoutheastAsia', 'AzureLocationAustraliaEast', 'AzureLocationAustraliaSoutheast', 'AzureLocationBrazilSouth', 'AzureLocationCanadaCentral', 'AzureLocationCanadaEast', 'AzureLocationWestEurope', 'AzureLocationNorthEurope', 'AzureLocationCentralIndia', 'AzureLocationSouthIndia', 'AzureLocationWestIndia', 'AzureLocationJapanEast', 'AzureLocationJapanWest', 'AzureLocationKoreaCentral', 'AzureLocationKoreaSouth', 'AzureLocationUkWest', 'AzureLocationUkSouth', 'AzureLocationNorthCentralUs', 'AzureLocationEastUs', 'AzureLocationWestUs2', 'AzureLocationSouthCentralUs', 'AzureLocationCentralUs', 'AzureLocationEastUs2', 'AzureLocationWestUs', 'AzureLocationWestCentralUs', 'AzureLocationGermanyCentral', 'AzureLocationGermanyNortheast', 'AzureLocationChinaNorth', 'AzureLocationChinaEast' @@ -472,6 +484,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from the Azure Migrate service. type CloudError struct { Error *CloudErrorBody `json:"error,omitempty"` @@ -497,6 +515,12 @@ type Disk struct { GigabytesConsumed *float64 `json:"gigabytesConsumed,omitempty"` } +// MarshalJSON is the custom marshaler for Disk. +func (d Disk) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DownloadURL download URL for assessment report. type DownloadURL struct { autorest.Response `json:"-"` @@ -506,6 +530,12 @@ type DownloadURL struct { ExpirationTime *date.Time `json:"expirationTime,omitempty"` } +// MarshalJSON is the custom marshaler for DownloadURL. +func (du DownloadURL) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Group a group created in a Migration project. type Group struct { autorest.Response `json:"-"` @@ -765,6 +795,12 @@ type NetworkAdapter struct { IPAddresses *[]string `json:"ipAddresses,omitempty"` } +// MarshalJSON is the custom marshaler for NetworkAdapter. +func (na NetworkAdapter) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation a REST API operation supported by the provider. type Operation struct { // Name - READ-ONLY; Name of the operation. @@ -796,6 +832,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (od OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationResultList list of API operations. type OperationResultList struct { autorest.Response `json:"-"` @@ -927,6 +969,12 @@ type ProjectKey struct { WorkspaceKey *string `json:"workspaceKey,omitempty"` } +// MarshalJSON is the custom marshaler for ProjectKey. +func (pk ProjectKey) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProjectProperties properties of a project. type ProjectProperties struct { // CreatedTimestamp - READ-ONLY; Time when this project was created. Date-Time represented in ISO-8601 format. @@ -986,3 +1034,9 @@ type VMFamily struct { // Category - READ-ONLY; Category of the VM family. Category *[]string `json:"category,omitempty"` } + +// MarshalJSON is the custom marshaler for VMFamily. +func (vf VMFamily) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/migrate/mgmt/2020-01-01/migrate/CHANGELOG.md b/services/migrate/mgmt/2020-01-01/migrate/CHANGELOG.md index 52911e4cc5e4..0e7a7644799e 100644 --- a/services/migrate/mgmt/2020-01-01/migrate/CHANGELOG.md +++ b/services/migrate/mgmt/2020-01-01/migrate/CHANGELOG.md @@ -1,2 +1,46 @@ # Change History +## Additive Changes + +### New Funcs + +1. Application.MarshalJSON() ([]byte, error) +1. AppsAndRoles.MarshalJSON() ([]byte, error) +1. BizTalkServer.MarshalJSON() ([]byte, error) +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. ExchangeServer.MarshalJSON() ([]byte, error) +1. Feature.MarshalJSON() ([]byte, error) +1. HyperVClusterCollection.MarshalJSON() ([]byte, error) +1. HyperVDisk.MarshalJSON() ([]byte, error) +1. HyperVHostCollection.MarshalJSON() ([]byte, error) +1. HyperVJob.MarshalJSON() ([]byte, error) +1. HyperVJobCollection.MarshalJSON() ([]byte, error) +1. HyperVMachine.MarshalJSON() ([]byte, error) +1. HyperVMachineCollection.MarshalJSON() ([]byte, error) +1. HyperVMachineProperties.MarshalJSON() ([]byte, error) +1. HyperVNetworkAdapter.MarshalJSON() ([]byte, error) +1. HyperVRunAsAccount.MarshalJSON() ([]byte, error) +1. HyperVRunAsAccountCollection.MarshalJSON() ([]byte, error) +1. JobProperties.MarshalJSON() ([]byte, error) +1. OperatingSystem.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationResultList.MarshalJSON() ([]byte, error) +1. OperationStatus.MarshalJSON() ([]byte, error) +1. OperationStatusError.MarshalJSON() ([]byte, error) +1. OtherDatabase.MarshalJSON() ([]byte, error) +1. RunAsAccountProperties.MarshalJSON() ([]byte, error) +1. SQLServer.MarshalJSON() ([]byte, error) +1. SharePointServer.MarshalJSON() ([]byte, error) +1. SiteHealthSummaryCollection.MarshalJSON() ([]byte, error) +1. SystemCenter.MarshalJSON() ([]byte, error) +1. VCenterCollection.MarshalJSON() ([]byte, error) +1. VMwareDisk.MarshalJSON() ([]byte, error) +1. VMwareJob.MarshalJSON() ([]byte, error) +1. VMwareJobCollection.MarshalJSON() ([]byte, error) +1. VMwareMachine.MarshalJSON() ([]byte, error) +1. VMwareMachineCollection.MarshalJSON() ([]byte, error) +1. VMwareMachineProperties.MarshalJSON() ([]byte, error) +1. VMwareNetworkAdapter.MarshalJSON() ([]byte, error) +1. VMwareRunAsAccount.MarshalJSON() ([]byte, error) +1. VMwareRunAsAccountCollection.MarshalJSON() ([]byte, error) +1. WebApplication.MarshalJSON() ([]byte, error) diff --git a/services/migrate/mgmt/2020-01-01/migrate/_meta.json b/services/migrate/mgmt/2020-01-01/migrate/_meta.json index f7c62cd396ce..0e0f692bfb31 100644 --- a/services/migrate/mgmt/2020-01-01/migrate/_meta.json +++ b/services/migrate/mgmt/2020-01-01/migrate/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/migrate/resource-manager/readme.md", "tag": "package-2020-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/migrate/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/migrate/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/migrate/mgmt/2020-01-01/migrate/models.go b/services/migrate/mgmt/2020-01-01/migrate/models.go index afcdb0bfc6fc..2ed3f969f173 100644 --- a/services/migrate/mgmt/2020-01-01/migrate/models.go +++ b/services/migrate/mgmt/2020-01-01/migrate/models.go @@ -40,6 +40,12 @@ type Application struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for Application. +func (a Application) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AppsAndRoles appsAndRoles in the guest virtual machine. type AppsAndRoles struct { // Applications - READ-ONLY; Applications of the AppsAndRoles. @@ -62,6 +68,12 @@ type AppsAndRoles struct { OtherDatabases *[]OtherDatabase `json:"otherDatabases,omitempty"` } +// MarshalJSON is the custom marshaler for AppsAndRoles. +func (aar AppsAndRoles) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BizTalkServer bizTalkServer in the guest virtual machine. type BizTalkServer struct { // ProductName - READ-ONLY; ProductName of the BizTalkServer. @@ -70,6 +82,12 @@ type BizTalkServer struct { Status *string `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for BizTalkServer. +func (bts BizTalkServer) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetails error contract returned when some exception occurs in Rest API. type ErrorDetails struct { // Code - READ-ONLY; Error code. @@ -94,6 +112,12 @@ type ErrorDetails struct { AgentErrorRecommendedAction *string `json:"agentErrorRecommendedAction,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExchangeServer exchangeServer in the guest virtual machine. type ExchangeServer struct { // ProductName - READ-ONLY; ProductName of the ExchangeServer. @@ -108,6 +132,12 @@ type ExchangeServer struct { Version *string `json:"version,omitempty"` } +// MarshalJSON is the custom marshaler for ExchangeServer. +func (es ExchangeServer) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Feature feature in the guest virtual machine. type Feature struct { // Name - READ-ONLY; Name of the Feature. @@ -120,6 +150,12 @@ type Feature struct { Status *string `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for Feature. +func (f Feature) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GuestOSDetails data related to a machine's operating system. Serialized and stored as part of Machine // Rest object. type GuestOSDetails struct { @@ -207,6 +243,12 @@ type HyperVClusterCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for HyperVClusterCollection. +func (hvcc HyperVClusterCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HyperVClusterCollectionIterator provides access to a complete listing of HyperVCluster values. type HyperVClusterCollectionIterator struct { i int @@ -410,6 +452,12 @@ type HyperVDisk struct { Path *string `json:"path,omitempty"` } +// MarshalJSON is the custom marshaler for HyperVDisk. +func (hvd HyperVDisk) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HyperVHost host REST Resource. type HyperVHost struct { autorest.Response `json:"-"` @@ -444,6 +492,12 @@ type HyperVHostCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for HyperVHostCollection. +func (hvhc HyperVHostCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HyperVHostCollectionIterator provides access to a complete listing of HyperVHost values. type HyperVHostCollectionIterator struct { i int @@ -642,6 +696,12 @@ type HyperVJob struct { Properties *JobProperties `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for HyperVJob. +func (hvj HyperVJob) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HyperVJobCollection collection of Hyper-V jobs. type HyperVJobCollection struct { autorest.Response `json:"-"` @@ -651,6 +711,12 @@ type HyperVJobCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for HyperVJobCollection. +func (hvjc HyperVJobCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HyperVJobCollectionIterator provides access to a complete listing of HyperVJob values. type HyperVJobCollectionIterator struct { i int @@ -814,6 +880,12 @@ type HyperVMachine struct { Properties *HyperVMachineProperties `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for HyperVMachine. +func (hvm HyperVMachine) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HyperVMachineCollection collection of Hyper-V machines. type HyperVMachineCollection struct { autorest.Response `json:"-"` @@ -823,6 +895,12 @@ type HyperVMachineCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for HyperVMachineCollection. +func (hvmc HyperVMachineCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HyperVMachineCollectionIterator provides access to a complete listing of HyperVMachine values. type HyperVMachineCollectionIterator struct { i int @@ -1041,6 +1119,12 @@ type HyperVMachineProperties struct { Errors *[]HealthErrorDetails `json:"errors,omitempty"` } +// MarshalJSON is the custom marshaler for HyperVMachineProperties. +func (hvmp HyperVMachineProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HyperVNetworkAdapter second level object represented in responses as part of Machine REST resource. type HyperVNetworkAdapter struct { // NetworkID - READ-ONLY; Network Id. @@ -1063,6 +1147,12 @@ type HyperVNetworkAdapter struct { IPAddressType *string `json:"ipAddressType,omitempty"` } +// MarshalJSON is the custom marshaler for HyperVNetworkAdapter. +func (hvna HyperVNetworkAdapter) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HyperVRunAsAccount run as account REST Resource. type HyperVRunAsAccount struct { autorest.Response `json:"-"` @@ -1076,6 +1166,12 @@ type HyperVRunAsAccount struct { Properties *RunAsAccountProperties `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for HyperVRunAsAccount. +func (hvraa HyperVRunAsAccount) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HyperVRunAsAccountCollection collection of Hyper-V run as accounts. type HyperVRunAsAccountCollection struct { autorest.Response `json:"-"` @@ -1085,6 +1181,12 @@ type HyperVRunAsAccountCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for HyperVRunAsAccountCollection. +func (hvraac HyperVRunAsAccountCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HyperVRunAsAccountCollectionIterator provides access to a complete listing of HyperVRunAsAccount values. type HyperVRunAsAccountCollectionIterator struct { i int @@ -1316,6 +1418,12 @@ type JobProperties struct { Errors *[]ErrorDetails `json:"errors,omitempty"` } +// MarshalJSON is the custom marshaler for JobProperties. +func (jp JobProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Machine ... type Machine struct { PropertiesTimestamp *date.Time `json:"properties.timestamp,omitempty"` @@ -1371,6 +1479,12 @@ type OperatingSystem struct { OsVersion *string `json:"osVersion,omitempty"` } +// MarshalJSON is the custom marshaler for OperatingSystem. +func (osVar OperatingSystem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperatingSystemConfiguration ... type OperatingSystemConfiguration struct { // Family - Possible values include: 'Unknown', 'Windows', 'Linux', 'Solaris', 'Aix' @@ -1411,6 +1525,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (od OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationResultList list of API operations. type OperationResultList struct { autorest.Response `json:"-"` @@ -1420,6 +1540,12 @@ type OperationResultList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationResultList. +func (orl OperationResultList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationResultListIterator provides access to a complete listing of Operation values. type OperationResultListIterator struct { i int @@ -1589,6 +1715,12 @@ type OperationStatus struct { Properties *OperationStatusProperties `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for OperationStatus. +func (osVar OperationStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationStatusError class for operation status errors. type OperationStatusError struct { // Code - READ-ONLY; Error code. @@ -1597,6 +1729,12 @@ type OperationStatusError struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for OperationStatusError. +func (ose OperationStatusError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationStatusProperties class for operation result properties. type OperationStatusProperties struct { // Result - Result or output of the workflow. @@ -1613,6 +1751,12 @@ type OtherDatabase struct { Version *string `json:"version,omitempty"` } +// MarshalJSON is the custom marshaler for OtherDatabase. +func (od OtherDatabase) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RunAsAccountProperties class for run as account properties. type RunAsAccountProperties struct { // DisplayName - READ-ONLY; Display name of the run as account. @@ -1625,6 +1769,12 @@ type RunAsAccountProperties struct { UpdatedTimestamp *string `json:"updatedTimestamp,omitempty"` } +// MarshalJSON is the custom marshaler for RunAsAccountProperties. +func (raap RunAsAccountProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SharePointServer sharePointServer in the guest virtual machine. type SharePointServer struct { // ProductName - READ-ONLY; ProductName of the SharePointServer. @@ -1637,6 +1787,12 @@ type SharePointServer struct { Version *string `json:"version,omitempty"` } +// MarshalJSON is the custom marshaler for SharePointServer. +func (sps SharePointServer) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SiteAgentProperties class for site agent properties. type SiteAgentProperties struct { // ID - READ-ONLY; ID of the agent. @@ -1713,6 +1869,12 @@ type SiteHealthSummaryCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SiteHealthSummaryCollection. +func (shsc SiteHealthSummaryCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SiteHealthSummaryCollectionIterator provides access to a complete listing of SiteHealthSummary values. type SiteHealthSummaryCollectionIterator struct { i int @@ -1927,6 +2089,12 @@ type SQLServer struct { ClusterName *string `json:"clusterName,omitempty"` } +// MarshalJSON is the custom marshaler for SQLServer. +func (ss SQLServer) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SystemCenter systemCenter in the guest virtual machine. type SystemCenter struct { // ProductName - READ-ONLY; ProductName of the SystemCenter. @@ -1937,6 +2105,12 @@ type SystemCenter struct { Version *string `json:"version,omitempty"` } +// MarshalJSON is the custom marshaler for SystemCenter. +func (sc SystemCenter) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Timezone ... type Timezone struct { FullName *string `json:"fullName,omitempty"` @@ -1976,6 +2150,12 @@ type VCenterCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for VCenterCollection. +func (vcc VCenterCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VCenterCollectionIterator provides access to a complete listing of VCenter values. type VCenterCollectionIterator struct { i int @@ -2196,6 +2376,12 @@ type VMwareDisk struct { Path *string `json:"path,omitempty"` } +// MarshalJSON is the custom marshaler for VMwareDisk. +func (vmd VMwareDisk) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VMwareJob job REST Resource. type VMwareJob struct { autorest.Response `json:"-"` @@ -2209,6 +2395,12 @@ type VMwareJob struct { Properties *JobProperties `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for VMwareJob. +func (vmj VMwareJob) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VMwareJobCollection collection of VMware jobs. type VMwareJobCollection struct { autorest.Response `json:"-"` @@ -2218,6 +2410,12 @@ type VMwareJobCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for VMwareJobCollection. +func (vmjc VMwareJobCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VMwareJobCollectionIterator provides access to a complete listing of VMwareJob values. type VMwareJobCollectionIterator struct { i int @@ -2381,6 +2579,12 @@ type VMwareMachine struct { Properties *VMwareMachineProperties `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for VMwareMachine. +func (vmm VMwareMachine) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VMwareMachineCollection collection of VMware machines. type VMwareMachineCollection struct { autorest.Response `json:"-"` @@ -2390,6 +2594,12 @@ type VMwareMachineCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for VMwareMachineCollection. +func (vmmc VMwareMachineCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VMwareMachineCollectionIterator provides access to a complete listing of VMwareMachine values. type VMwareMachineCollectionIterator struct { i int @@ -2616,6 +2826,12 @@ type VMwareMachineProperties struct { Errors *[]HealthErrorDetails `json:"errors,omitempty"` } +// MarshalJSON is the custom marshaler for VMwareMachineProperties. +func (vmmp VMwareMachineProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VMwareNetworkAdapter second level object represented in responses as part of Machine REST resource. type VMwareNetworkAdapter struct { // Label - READ-ONLY; Label of the NIC. @@ -2632,6 +2848,12 @@ type VMwareNetworkAdapter struct { IPAddressType *string `json:"ipAddressType,omitempty"` } +// MarshalJSON is the custom marshaler for VMwareNetworkAdapter. +func (vmna VMwareNetworkAdapter) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VMwareRunAsAccount run as account REST Resource. type VMwareRunAsAccount struct { autorest.Response `json:"-"` @@ -2645,6 +2867,12 @@ type VMwareRunAsAccount struct { Properties *RunAsAccountProperties `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for VMwareRunAsAccount. +func (vmraa VMwareRunAsAccount) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VMwareRunAsAccountCollection collection of VMware run as accounts. type VMwareRunAsAccountCollection struct { autorest.Response `json:"-"` @@ -2654,6 +2882,12 @@ type VMwareRunAsAccountCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for VMwareRunAsAccountCollection. +func (vmraac VMwareRunAsAccountCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VMwareRunAsAccountCollectionIterator provides access to a complete listing of VMwareRunAsAccount values. type VMwareRunAsAccountCollectionIterator struct { i int @@ -2869,3 +3103,9 @@ type WebApplication struct { // ApplicationPool - READ-ONLY; ApplicationPool of the WebApplication. ApplicationPool *string `json:"applicationPool,omitempty"` } + +// MarshalJSON is the custom marshaler for WebApplication. +func (wa WebApplication) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/mixedreality/mgmt/2021-01-01/mixedreality/CHANGELOG.md b/services/mixedreality/mgmt/2021-01-01/mixedreality/CHANGELOG.md index 52911e4cc5e4..86ab7158e529 100644 --- a/services/mixedreality/mgmt/2021-01-01/mixedreality/CHANGELOG.md +++ b/services/mixedreality/mgmt/2021-01-01/mixedreality/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountKeys.MarshalJSON() ([]byte, error) +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/mixedreality/mgmt/2021-01-01/mixedreality/_meta.json b/services/mixedreality/mgmt/2021-01-01/mixedreality/_meta.json index 4eb50cea0660..7c3c02502c8f 100644 --- a/services/mixedreality/mgmt/2021-01-01/mixedreality/_meta.json +++ b/services/mixedreality/mgmt/2021-01-01/mixedreality/_meta.json @@ -2,9 +2,9 @@ "commit": "0b17e6a5e811fd7b122d383b4942441d95e5e8cf", "readme": "/_/azure-rest-api-specs/specification/mixedreality/resource-manager/readme.md", "tag": "package-2021-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2021-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/mixedreality/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2021-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/mixedreality/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/mixedreality/mgmt/2021-01-01/mixedreality/models.go b/services/mixedreality/mgmt/2021-01-01/mixedreality/models.go index 2753f971d47b..40ce7a3cae91 100644 --- a/services/mixedreality/mgmt/2021-01-01/mixedreality/models.go +++ b/services/mixedreality/mgmt/2021-01-01/mixedreality/models.go @@ -34,6 +34,12 @@ type AccountKeys struct { SecondaryKey *string `json:"secondaryKey,omitempty"` } +// MarshalJSON is the custom marshaler for AccountKeys. +func (ak AccountKeys) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountProperties common Properties shared by Mixed Reality Accounts type AccountProperties struct { // StorageAccountName - The name of the storage account associated with this accountId @@ -65,6 +71,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CheckNameAvailabilityRequest check Name Availability Request type CheckNameAvailabilityRequest struct { // Name - Resource Name To Verify @@ -376,6 +388,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RemoteRenderingAccount remoteRenderingAccount Response. type RemoteRenderingAccount struct { autorest.Response `json:"-"` @@ -718,6 +736,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceModelWithAllowedPropertySet the resource model definition containing the full set of allowed // properties for a resource. Except properties bag, there cannot be a top level property outside of this // set. diff --git a/services/monitor/mgmt/2020-10-01/insights/CHANGELOG.md b/services/monitor/mgmt/2020-10-01/insights/CHANGELOG.md index 52911e4cc5e4..3942218f5486 100644 --- a/services/monitor/mgmt/2020-10-01/insights/CHANGELOG.md +++ b/services/monitor/mgmt/2020-10-01/insights/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. ErrorResponse.MarshalJSON() ([]byte, error) diff --git a/services/monitor/mgmt/2020-10-01/insights/_meta.json b/services/monitor/mgmt/2020-10-01/insights/_meta.json index 4b861826276d..d3dee91128a1 100644 --- a/services/monitor/mgmt/2020-10-01/insights/_meta.json +++ b/services/monitor/mgmt/2020-10-01/insights/_meta.json @@ -2,9 +2,9 @@ "commit": "8240593bde5350e6762015523ccd57cb61e32da5", "readme": "/_/azure-rest-api-specs/specification/monitor/resource-manager/readme.md", "tag": "package-2020-10", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/monitor/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/monitor/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/monitor/mgmt/2020-10-01/insights/models.go b/services/monitor/mgmt/2020-10-01/insights/models.go index ccd567218fd5..c90f3abbb326 100644 --- a/services/monitor/mgmt/2020-10-01/insights/models.go +++ b/services/monitor/mgmt/2020-10-01/insights/models.go @@ -451,3 +451,9 @@ type ErrorResponse struct { // Message - READ-ONLY; The error message indicating why the operation failed. Message *string `json:"message,omitempty"` } + +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/msi/mgmt/2018-11-30/msi/CHANGELOG.md b/services/msi/mgmt/2018-11-30/msi/CHANGELOG.md index 52911e4cc5e4..a2bd0efc5d16 100644 --- a/services/msi/mgmt/2018-11-30/msi/CHANGELOG.md +++ b/services/msi/mgmt/2018-11-30/msi/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. SystemAssignedIdentityProperties.MarshalJSON() ([]byte, error) +1. UserAssignedIdentityProperties.MarshalJSON() ([]byte, error) diff --git a/services/msi/mgmt/2018-11-30/msi/_meta.json b/services/msi/mgmt/2018-11-30/msi/_meta.json index caa3de4a98aa..562281767795 100644 --- a/services/msi/mgmt/2018-11-30/msi/_meta.json +++ b/services/msi/mgmt/2018-11-30/msi/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/msi/resource-manager/readme.md", "tag": "package-2018-11-30", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-11-30 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/msi/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-11-30 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/msi/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/msi/mgmt/2018-11-30/msi/models.go b/services/msi/mgmt/2018-11-30/msi/models.go index b8e041422938..c45f4b8aa23d 100644 --- a/services/msi/mgmt/2018-11-30/msi/models.go +++ b/services/msi/mgmt/2018-11-30/msi/models.go @@ -31,6 +31,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from the ManagedServiceIdentity service. type CloudError struct { // Error - A list of additional details about the error. @@ -434,6 +440,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -444,6 +456,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SystemAssignedIdentity describes a system assigned identity resource. type SystemAssignedIdentity struct { autorest.Response `json:"-"` @@ -554,6 +572,12 @@ type SystemAssignedIdentityProperties struct { ClientSecretURL *string `json:"clientSecretUrl,omitempty"` } +// MarshalJSON is the custom marshaler for SystemAssignedIdentityProperties. +func (saip SystemAssignedIdentityProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource // which has 'tags' and a 'location' type TrackedResource struct { @@ -749,3 +773,9 @@ type UserAssignedIdentityProperties struct { // ClientID - READ-ONLY; The id of the app associated with the identity. This is a random generated UUID by MSI. ClientID *uuid.UUID `json:"clientId,omitempty"` } + +// MarshalJSON is the custom marshaler for UserAssignedIdentityProperties. +func (uaip UserAssignedIdentityProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/mysql/mgmt/2017-12-01/mysql/CHANGELOG.md b/services/mysql/mgmt/2017-12-01/mysql/CHANGELOG.md index 52911e4cc5e4..d37474b3dd93 100644 --- a/services/mysql/mgmt/2017-12-01/mysql/CHANGELOG.md +++ b/services/mysql/mgmt/2017-12-01/mysql/CHANGELOG.md @@ -1,2 +1,14 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ServerPrivateEndpointConnection.MarshalJSON() ([]byte, error) +1. VirtualNetworkRuleListResult.MarshalJSON() ([]byte, error) diff --git a/services/mysql/mgmt/2017-12-01/mysql/_meta.json b/services/mysql/mgmt/2017-12-01/mysql/_meta.json index 18b94dea4e9e..a0f627d54996 100644 --- a/services/mysql/mgmt/2017-12-01/mysql/_meta.json +++ b/services/mysql/mgmt/2017-12-01/mysql/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/mysql/resource-manager/readme.md", "tag": "package-2017-12-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-12-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/mysql/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-12-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/mysql/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/mysql/mgmt/2017-12-01/mysql/models.go b/services/mysql/mgmt/2017-12-01/mysql/models.go index f2054533c177..097fea7a8a46 100644 --- a/services/mysql/mgmt/2017-12-01/mysql/models.go +++ b/services/mysql/mgmt/2017-12-01/mysql/models.go @@ -33,6 +33,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from the Batch service. type CloudError struct { Error *ErrorResponse `json:"error,omitempty"` @@ -365,6 +371,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.) type ErrorResponse struct { @@ -380,6 +392,12 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FirewallRule represents a server firewall rule. type FirewallRule struct { autorest.Response `json:"-"` @@ -705,6 +723,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (od OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult a list of resource provider operations. type OperationListResult struct { autorest.Response `json:"-"` @@ -764,6 +788,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -774,6 +804,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceIdentity azure Active Directory identity configuration for a resource. type ResourceIdentity struct { // PrincipalID - READ-ONLY; The Azure Active Directory principal id. @@ -1219,6 +1255,12 @@ type ServerPrivateEndpointConnection struct { Properties *ServerPrivateEndpointConnectionProperties `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for ServerPrivateEndpointConnection. +func (spec ServerPrivateEndpointConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerPrivateEndpointConnectionProperties properties of a private endpoint connection. type ServerPrivateEndpointConnectionProperties struct { // PrivateEndpoint - Private endpoint which the connection belongs to. @@ -2321,6 +2363,12 @@ type VirtualNetworkRuleListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkRuleListResult. +func (vnrlr VirtualNetworkRuleListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkRuleListResultIterator provides access to a complete listing of VirtualNetworkRule values. type VirtualNetworkRuleListResultIterator struct { i int diff --git a/services/mysql/mgmt/2020-01-01/mysql/CHANGELOG.md b/services/mysql/mgmt/2020-01-01/mysql/CHANGELOG.md index 52911e4cc5e4..c7809bd39811 100644 --- a/services/mysql/mgmt/2020-01-01/mysql/CHANGELOG.md +++ b/services/mysql/mgmt/2020-01-01/mysql/CHANGELOG.md @@ -1,2 +1,24 @@ # Change History +## Additive Changes + +### New Funcs + +1. AdvisorsResultList.MarshalJSON() ([]byte, error) +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. PrivateEndpointConnectionListResult.MarshalJSON() ([]byte, error) +1. PrivateLinkResource.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceListResult.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. QueryTextsResultList.MarshalJSON() ([]byte, error) +1. RecommendationActionsResultList.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ServerKeyListResult.MarshalJSON() ([]byte, error) +1. ServerPrivateEndpointConnection.MarshalJSON() ([]byte, error) +1. TopQueryStatisticsResultList.MarshalJSON() ([]byte, error) +1. VirtualNetworkRuleListResult.MarshalJSON() ([]byte, error) +1. WaitStatisticsResultList.MarshalJSON() ([]byte, error) diff --git a/services/mysql/mgmt/2020-01-01/mysql/_meta.json b/services/mysql/mgmt/2020-01-01/mysql/_meta.json index f0b057c398e5..eb6144234ab1 100644 --- a/services/mysql/mgmt/2020-01-01/mysql/_meta.json +++ b/services/mysql/mgmt/2020-01-01/mysql/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/mysql/resource-manager/readme.md", "tag": "package-2020-01-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-01-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/mysql/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-01-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/mysql/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/mysql/mgmt/2020-01-01/mysql/models.go b/services/mysql/mgmt/2020-01-01/mysql/models.go index ee131aee0f95..2eb5fb3e5c17 100644 --- a/services/mysql/mgmt/2020-01-01/mysql/models.go +++ b/services/mysql/mgmt/2020-01-01/mysql/models.go @@ -52,6 +52,12 @@ type AdvisorsResultList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for AdvisorsResultList. +func (arl AdvisorsResultList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AdvisorsResultListIterator provides access to a complete listing of Advisor values. type AdvisorsResultListIterator struct { i int @@ -214,6 +220,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from the Batch service. type CloudError struct { // Error - Error message @@ -584,6 +596,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.) type ErrorResponse struct { @@ -599,6 +617,12 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FirewallRule represents a server firewall rule. type FirewallRule struct { autorest.Response `json:"-"` @@ -924,6 +948,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (od OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult a list of resource provider operations. type OperationListResult struct { autorest.Response `json:"-"` @@ -1048,6 +1078,12 @@ type PrivateEndpointConnectionListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpointConnectionListResult. +func (peclr PrivateEndpointConnectionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnectionListResultIterator provides access to a complete listing of // PrivateEndpointConnection values. type PrivateEndpointConnectionListResultIterator struct { @@ -1363,6 +1399,12 @@ type PrivateLinkResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResource. +func (plr PrivateLinkResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkResourceListResult a list of private link resources type PrivateLinkResourceListResult struct { autorest.Response `json:"-"` @@ -1372,6 +1414,12 @@ type PrivateLinkResourceListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceListResult. +func (plrlr PrivateLinkResourceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkResourceListResultIterator provides access to a complete listing of PrivateLinkResource // values. type PrivateLinkResourceListResultIterator struct { @@ -1531,6 +1579,12 @@ type PrivateLinkResourceProperties struct { RequiredMembers *[]string `json:"requiredMembers,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. +func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkServiceConnectionStateProperty ... type PrivateLinkServiceConnectionStateProperty struct { // Status - The private link service connection status. @@ -1564,6 +1618,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QueryStatistic represents a Query Statistic. type QueryStatistic struct { autorest.Response `json:"-"` @@ -1751,6 +1811,12 @@ type QueryTextsResultList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for QueryTextsResultList. +func (qtrl QueryTextsResultList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QueryTextsResultListIterator provides access to a complete listing of QueryText values. type QueryTextsResultListIterator struct { i int @@ -2033,6 +2099,12 @@ type RecommendationActionsResultList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RecommendationActionsResultList. +func (rarl RecommendationActionsResultList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RecommendationActionsResultListIterator provides access to a complete listing of RecommendationAction // values. type RecommendationActionsResultListIterator struct { @@ -2205,6 +2277,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceIdentity azure Active Directory identity configuration for a resource. type ResourceIdentity struct { // PrincipalID - READ-ONLY; The Azure Active Directory principal id. @@ -2728,6 +2806,12 @@ type ServerKeyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ServerKeyListResult. +func (sklr ServerKeyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerKeyListResultIterator provides access to a complete listing of ServerKey values. type ServerKeyListResultIterator struct { i int @@ -2995,6 +3079,12 @@ type ServerPrivateEndpointConnection struct { Properties *ServerPrivateEndpointConnectionProperties `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for ServerPrivateEndpointConnection. +func (spec ServerPrivateEndpointConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerPrivateEndpointConnectionProperties properties of a private endpoint connection. type ServerPrivateEndpointConnectionProperties struct { // PrivateEndpoint - Private endpoint which the connection belongs to. @@ -4221,6 +4311,12 @@ type TopQueryStatisticsResultList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for TopQueryStatisticsResultList. +func (tqsrl TopQueryStatisticsResultList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TopQueryStatisticsResultListIterator provides access to a complete listing of QueryStatistic values. type TopQueryStatisticsResultListIterator struct { i int @@ -4480,6 +4576,12 @@ type VirtualNetworkRuleListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkRuleListResult. +func (vnrlr VirtualNetworkRuleListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkRuleListResultIterator provides access to a complete listing of VirtualNetworkRule values. type VirtualNetworkRuleListResultIterator struct { i int @@ -4885,6 +4987,12 @@ type WaitStatisticsResultList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for WaitStatisticsResultList. +func (wsrl WaitStatisticsResultList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WaitStatisticsResultListIterator provides access to a complete listing of WaitStatistic values. type WaitStatisticsResultListIterator struct { i int diff --git a/services/netapp/mgmt/2019-05-01/netapp/_meta.json b/services/netapp/mgmt/2019-05-01/netapp/_meta.json index e8116ad6dad6..b765be1774a8 100644 --- a/services/netapp/mgmt/2019-05-01/netapp/_meta.json +++ b/services/netapp/mgmt/2019-05-01/netapp/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", "tag": "package-netapp-2019-05-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-netapp-2019-05-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-netapp-2019-05-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/netapp/mgmt/2019-06-01/netapp/_meta.json b/services/netapp/mgmt/2019-06-01/netapp/_meta.json index d215d5bd0fa4..e83e748984f0 100644 --- a/services/netapp/mgmt/2019-06-01/netapp/_meta.json +++ b/services/netapp/mgmt/2019-06-01/netapp/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", "tag": "package-netapp-2019-06-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-netapp-2019-06-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-netapp-2019-06-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/netapp/mgmt/2019-07-01/netapp/_meta.json b/services/netapp/mgmt/2019-07-01/netapp/_meta.json index 48a7a4d5f221..649fc9dcec1b 100644 --- a/services/netapp/mgmt/2019-07-01/netapp/_meta.json +++ b/services/netapp/mgmt/2019-07-01/netapp/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", "tag": "package-netapp-2019-07-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-netapp-2019-07-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-netapp-2019-07-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/netapp/mgmt/2019-08-01/netapp/_meta.json b/services/netapp/mgmt/2019-08-01/netapp/_meta.json index 93cb9ca936c5..01c7a067cf86 100644 --- a/services/netapp/mgmt/2019-08-01/netapp/_meta.json +++ b/services/netapp/mgmt/2019-08-01/netapp/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", "tag": "package-netapp-2019-08-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-netapp-2019-08-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-netapp-2019-08-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/netapp/mgmt/2019-10-01/netapp/_meta.json b/services/netapp/mgmt/2019-10-01/netapp/_meta.json index de4630acd5bf..2fd962c81f7a 100644 --- a/services/netapp/mgmt/2019-10-01/netapp/_meta.json +++ b/services/netapp/mgmt/2019-10-01/netapp/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", "tag": "package-netapp-2019-10-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-netapp-2019-10-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-netapp-2019-10-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/netapp/mgmt/2019-11-01/netapp/_meta.json b/services/netapp/mgmt/2019-11-01/netapp/_meta.json index 23c454f1c2e1..83930d4bf845 100644 --- a/services/netapp/mgmt/2019-11-01/netapp/_meta.json +++ b/services/netapp/mgmt/2019-11-01/netapp/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", "tag": "package-netapp-2019-11-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-netapp-2019-11-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-netapp-2019-11-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/netapp/mgmt/2020-02-01/netapp/CHANGELOG.md b/services/netapp/mgmt/2020-02-01/netapp/CHANGELOG.md index 52911e4cc5e4..1984ed2e57f2 100644 --- a/services/netapp/mgmt/2020-02-01/netapp/CHANGELOG.md +++ b/services/netapp/mgmt/2020-02-01/netapp/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. SnapshotProperties.MarshalJSON() ([]byte, error) diff --git a/services/netapp/mgmt/2020-02-01/netapp/_meta.json b/services/netapp/mgmt/2020-02-01/netapp/_meta.json index 23c7fa0cc0bc..01f4b2e34f35 100644 --- a/services/netapp/mgmt/2020-02-01/netapp/_meta.json +++ b/services/netapp/mgmt/2020-02-01/netapp/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", "tag": "package-netapp-2020-02-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-netapp-2020-02-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-netapp-2020-02-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/netapp/mgmt/2020-02-01/netapp/models.go b/services/netapp/mgmt/2020-02-01/netapp/models.go index e566315f825d..34cb8b26c2da 100644 --- a/services/netapp/mgmt/2020-02-01/netapp/models.go +++ b/services/netapp/mgmt/2020-02-01/netapp/models.go @@ -1214,6 +1214,12 @@ type SnapshotProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for SnapshotProperties. +func (sp SnapshotProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SnapshotsCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type SnapshotsCreateFuture struct { diff --git a/services/netapp/mgmt/2020-03-01/netapp/CHANGELOG.md b/services/netapp/mgmt/2020-03-01/netapp/CHANGELOG.md index 52911e4cc5e4..1984ed2e57f2 100644 --- a/services/netapp/mgmt/2020-03-01/netapp/CHANGELOG.md +++ b/services/netapp/mgmt/2020-03-01/netapp/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. SnapshotProperties.MarshalJSON() ([]byte, error) diff --git a/services/netapp/mgmt/2020-03-01/netapp/_meta.json b/services/netapp/mgmt/2020-03-01/netapp/_meta.json index 07ce972019d2..a3a0bec6167c 100644 --- a/services/netapp/mgmt/2020-03-01/netapp/_meta.json +++ b/services/netapp/mgmt/2020-03-01/netapp/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", "tag": "package-netapp-2020-03-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-netapp-2020-03-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-netapp-2020-03-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/netapp/mgmt/2020-03-01/netapp/models.go b/services/netapp/mgmt/2020-03-01/netapp/models.go index 01da3bca448b..22507610d980 100644 --- a/services/netapp/mgmt/2020-03-01/netapp/models.go +++ b/services/netapp/mgmt/2020-03-01/netapp/models.go @@ -1214,6 +1214,12 @@ type SnapshotProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for SnapshotProperties. +func (sp SnapshotProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SnapshotsCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type SnapshotsCreateFuture struct { diff --git a/services/netapp/mgmt/2020-05-01/netapp/CHANGELOG.md b/services/netapp/mgmt/2020-05-01/netapp/CHANGELOG.md index 52911e4cc5e4..1984ed2e57f2 100644 --- a/services/netapp/mgmt/2020-05-01/netapp/CHANGELOG.md +++ b/services/netapp/mgmt/2020-05-01/netapp/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. SnapshotProperties.MarshalJSON() ([]byte, error) diff --git a/services/netapp/mgmt/2020-05-01/netapp/_meta.json b/services/netapp/mgmt/2020-05-01/netapp/_meta.json index 036387198bef..42a13fa3aafe 100644 --- a/services/netapp/mgmt/2020-05-01/netapp/_meta.json +++ b/services/netapp/mgmt/2020-05-01/netapp/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", "tag": "package-netapp-2020-05-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-netapp-2020-05-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-netapp-2020-05-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/netapp/mgmt/2020-05-01/netapp/models.go b/services/netapp/mgmt/2020-05-01/netapp/models.go index 4741aaeac460..7c895154bbd0 100644 --- a/services/netapp/mgmt/2020-05-01/netapp/models.go +++ b/services/netapp/mgmt/2020-05-01/netapp/models.go @@ -2333,6 +2333,12 @@ type SnapshotProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for SnapshotProperties. +func (sp SnapshotProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SnapshotsCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type SnapshotsCreateFuture struct { diff --git a/services/netapp/mgmt/2020-06-01/netapp/CHANGELOG.md b/services/netapp/mgmt/2020-06-01/netapp/CHANGELOG.md index 52911e4cc5e4..1984ed2e57f2 100644 --- a/services/netapp/mgmt/2020-06-01/netapp/CHANGELOG.md +++ b/services/netapp/mgmt/2020-06-01/netapp/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. SnapshotProperties.MarshalJSON() ([]byte, error) diff --git a/services/netapp/mgmt/2020-06-01/netapp/_meta.json b/services/netapp/mgmt/2020-06-01/netapp/_meta.json index 8e75ca74992a..410b0ac4e08a 100644 --- a/services/netapp/mgmt/2020-06-01/netapp/_meta.json +++ b/services/netapp/mgmt/2020-06-01/netapp/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", "tag": "package-netapp-2020-06-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-netapp-2020-06-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-netapp-2020-06-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/netapp/mgmt/2020-06-01/netapp/models.go b/services/netapp/mgmt/2020-06-01/netapp/models.go index eb38fb3f89d5..13f586b91d5a 100644 --- a/services/netapp/mgmt/2020-06-01/netapp/models.go +++ b/services/netapp/mgmt/2020-06-01/netapp/models.go @@ -2390,6 +2390,12 @@ type SnapshotProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for SnapshotProperties. +func (sp SnapshotProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SnapshotsCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type SnapshotsCreateFuture struct { diff --git a/services/netapp/mgmt/2020-07-01/netapp/CHANGELOG.md b/services/netapp/mgmt/2020-07-01/netapp/CHANGELOG.md index 52911e4cc5e4..1984ed2e57f2 100644 --- a/services/netapp/mgmt/2020-07-01/netapp/CHANGELOG.md +++ b/services/netapp/mgmt/2020-07-01/netapp/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. SnapshotProperties.MarshalJSON() ([]byte, error) diff --git a/services/netapp/mgmt/2020-07-01/netapp/_meta.json b/services/netapp/mgmt/2020-07-01/netapp/_meta.json index 3a9991295466..3a9fec65c5a8 100644 --- a/services/netapp/mgmt/2020-07-01/netapp/_meta.json +++ b/services/netapp/mgmt/2020-07-01/netapp/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", "tag": "package-netapp-2020-07-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-netapp-2020-07-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-netapp-2020-07-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/netapp/mgmt/2020-07-01/netapp/models.go b/services/netapp/mgmt/2020-07-01/netapp/models.go index 2be9644b03d2..b9d239662b86 100644 --- a/services/netapp/mgmt/2020-07-01/netapp/models.go +++ b/services/netapp/mgmt/2020-07-01/netapp/models.go @@ -2447,6 +2447,12 @@ type SnapshotProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for SnapshotProperties. +func (sp SnapshotProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SnapshotsCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type SnapshotsCreateFuture struct { diff --git a/services/netapp/mgmt/2020-08-01/netapp/CHANGELOG.md b/services/netapp/mgmt/2020-08-01/netapp/CHANGELOG.md index 52911e4cc5e4..1984ed2e57f2 100644 --- a/services/netapp/mgmt/2020-08-01/netapp/CHANGELOG.md +++ b/services/netapp/mgmt/2020-08-01/netapp/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. SnapshotProperties.MarshalJSON() ([]byte, error) diff --git a/services/netapp/mgmt/2020-08-01/netapp/_meta.json b/services/netapp/mgmt/2020-08-01/netapp/_meta.json index 532b00967ea1..72a4b4afe30b 100644 --- a/services/netapp/mgmt/2020-08-01/netapp/_meta.json +++ b/services/netapp/mgmt/2020-08-01/netapp/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", "tag": "package-netapp-2020-08-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-netapp-2020-08-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-netapp-2020-08-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/netapp/mgmt/2020-08-01/netapp/models.go b/services/netapp/mgmt/2020-08-01/netapp/models.go index 45aa3ab78153..9a764f7ea009 100644 --- a/services/netapp/mgmt/2020-08-01/netapp/models.go +++ b/services/netapp/mgmt/2020-08-01/netapp/models.go @@ -2447,6 +2447,12 @@ type SnapshotProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for SnapshotProperties. +func (sp SnapshotProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SnapshotsCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type SnapshotsCreateFuture struct { diff --git a/services/netapp/mgmt/2020-09-01/netapp/CHANGELOG.md b/services/netapp/mgmt/2020-09-01/netapp/CHANGELOG.md index 52911e4cc5e4..1984ed2e57f2 100644 --- a/services/netapp/mgmt/2020-09-01/netapp/CHANGELOG.md +++ b/services/netapp/mgmt/2020-09-01/netapp/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. SnapshotProperties.MarshalJSON() ([]byte, error) diff --git a/services/netapp/mgmt/2020-09-01/netapp/_meta.json b/services/netapp/mgmt/2020-09-01/netapp/_meta.json index 11ed933fe801..21310b188192 100644 --- a/services/netapp/mgmt/2020-09-01/netapp/_meta.json +++ b/services/netapp/mgmt/2020-09-01/netapp/_meta.json @@ -2,9 +2,9 @@ "commit": "b08824e05817297a4b2874d8db5e6fc8c29349c9", "readme": "/_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", "tag": "package-netapp-2020-09-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-netapp-2020-09-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-netapp-2020-09-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/netapp/mgmt/2020-09-01/netapp/models.go b/services/netapp/mgmt/2020-09-01/netapp/models.go index a4dae33e5608..49c21090b397 100644 --- a/services/netapp/mgmt/2020-09-01/netapp/models.go +++ b/services/netapp/mgmt/2020-09-01/netapp/models.go @@ -2454,6 +2454,12 @@ type SnapshotProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for SnapshotProperties. +func (sp SnapshotProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SnapshotsCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type SnapshotsCreateFuture struct { diff --git a/services/netapp/mgmt/2020-11-01/netapp/CHANGELOG.md b/services/netapp/mgmt/2020-11-01/netapp/CHANGELOG.md index 52911e4cc5e4..1984ed2e57f2 100644 --- a/services/netapp/mgmt/2020-11-01/netapp/CHANGELOG.md +++ b/services/netapp/mgmt/2020-11-01/netapp/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. SnapshotProperties.MarshalJSON() ([]byte, error) diff --git a/services/netapp/mgmt/2020-11-01/netapp/_meta.json b/services/netapp/mgmt/2020-11-01/netapp/_meta.json index 0ecc3b31e74f..4540e45860e3 100644 --- a/services/netapp/mgmt/2020-11-01/netapp/_meta.json +++ b/services/netapp/mgmt/2020-11-01/netapp/_meta.json @@ -2,9 +2,9 @@ "commit": "92ab22b49bd085116af0c61fada2c6c360702e9e", "readme": "/_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", "tag": "package-netapp-2020-11-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-netapp-2020-11-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-netapp-2020-11-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/netapp/mgmt/2020-11-01/netapp/models.go b/services/netapp/mgmt/2020-11-01/netapp/models.go index 80e018d4b895..133f62399830 100644 --- a/services/netapp/mgmt/2020-11-01/netapp/models.go +++ b/services/netapp/mgmt/2020-11-01/netapp/models.go @@ -2887,6 +2887,12 @@ type SnapshotProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for SnapshotProperties. +func (sp SnapshotProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SnapshotsCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type SnapshotsCreateFuture struct { diff --git a/services/netapp/mgmt/2020-12-01/netapp/CHANGELOG.md b/services/netapp/mgmt/2020-12-01/netapp/CHANGELOG.md index 52911e4cc5e4..6c2e61661036 100644 --- a/services/netapp/mgmt/2020-12-01/netapp/CHANGELOG.md +++ b/services/netapp/mgmt/2020-12-01/netapp/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. BackupStatus.MarshalJSON() ([]byte, error) +1. SnapshotProperties.MarshalJSON() ([]byte, error) diff --git a/services/netapp/mgmt/2020-12-01/netapp/_meta.json b/services/netapp/mgmt/2020-12-01/netapp/_meta.json index b90f96903013..8f77702fd460 100644 --- a/services/netapp/mgmt/2020-12-01/netapp/_meta.json +++ b/services/netapp/mgmt/2020-12-01/netapp/_meta.json @@ -2,9 +2,9 @@ "commit": "8d3b22458da4bb9309c0207c2ebc1903de741249", "readme": "/_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", "tag": "package-netapp-2020-12-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-netapp-2020-12-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-netapp-2020-12-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/netapp/mgmt/2020-12-01/netapp/models.go b/services/netapp/mgmt/2020-12-01/netapp/models.go index b8f85b38db3b..9cae52cffc35 100644 --- a/services/netapp/mgmt/2020-12-01/netapp/models.go +++ b/services/netapp/mgmt/2020-12-01/netapp/models.go @@ -1392,6 +1392,12 @@ type BackupStatus struct { ErrorMessage *string `json:"errorMessage,omitempty"` } +// MarshalJSON is the custom marshaler for BackupStatus. +func (bs BackupStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BackupsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type BackupsUpdateFuture struct { @@ -2926,6 +2932,12 @@ type SnapshotProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for SnapshotProperties. +func (sp SnapshotProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SnapshotsCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type SnapshotsCreateFuture struct { diff --git a/services/network/mgmt/2015-06-15/network/_meta.json b/services/network/mgmt/2015-06-15/network/_meta.json index 2b858b6a3fb5..f37b21f4aba5 100644 --- a/services/network/mgmt/2015-06-15/network/_meta.json +++ b/services/network/mgmt/2015-06-15/network/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "tag": "package-2015-06split", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2015-06split --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2015-06split --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/network/mgmt/2016-03-30/network/_meta.json b/services/network/mgmt/2016-03-30/network/_meta.json index 181a5448bd60..63d3bf4f827e 100644 --- a/services/network/mgmt/2016-03-30/network/_meta.json +++ b/services/network/mgmt/2016-03-30/network/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "tag": "package-2016-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/network/mgmt/2016-06-01/network/_meta.json b/services/network/mgmt/2016-06-01/network/_meta.json index c62100c739f8..30fef07c4a86 100644 --- a/services/network/mgmt/2016-06-01/network/_meta.json +++ b/services/network/mgmt/2016-06-01/network/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "tag": "package-2016-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/network/mgmt/2016-09-01/network/CHANGELOG.md b/services/network/mgmt/2016-09-01/network/CHANGELOG.md index 52911e4cc5e4..f3d3c1247a7b 100644 --- a/services/network/mgmt/2016-09-01/network/CHANGELOG.md +++ b/services/network/mgmt/2016-09-01/network/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. BgpPeerStatus.MarshalJSON() ([]byte, error) +1. GatewayRoute.MarshalJSON() ([]byte, error) +1. TunnelConnectionHealth.MarshalJSON() ([]byte, error) +1. WatcherPropertiesFormat.MarshalJSON() ([]byte, error) diff --git a/services/network/mgmt/2016-09-01/network/_meta.json b/services/network/mgmt/2016-09-01/network/_meta.json index b79f677fecf9..f7cb7cf4530b 100644 --- a/services/network/mgmt/2016-09-01/network/_meta.json +++ b/services/network/mgmt/2016-09-01/network/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "tag": "package-2016-09", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/network/mgmt/2016-09-01/network/models.go b/services/network/mgmt/2016-09-01/network/models.go index 2fcefc8067a1..05b77adbef25 100644 --- a/services/network/mgmt/2016-09-01/network/models.go +++ b/services/network/mgmt/2016-09-01/network/models.go @@ -2084,6 +2084,12 @@ type BgpPeerStatus struct { MessagesReceived *int64 `json:"messagesReceived,omitempty"` } +// MarshalJSON is the custom marshaler for BgpPeerStatus. +func (bps BgpPeerStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BgpPeerStatusListResult response for list BGP peer status API service call type BgpPeerStatusListResult struct { autorest.Response `json:"-"` @@ -3870,6 +3876,12 @@ type GatewayRoute struct { Weight *int32 `json:"weight,omitempty"` } +// MarshalJSON is the custom marshaler for GatewayRoute. +func (gr GatewayRoute) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GatewayRouteListResult list of virtual network gateway routes type GatewayRouteListResult struct { autorest.Response `json:"-"` @@ -8835,6 +8847,12 @@ type TunnelConnectionHealth struct { LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"` } +// MarshalJSON is the custom marshaler for TunnelConnectionHealth. +func (tch TunnelConnectionHealth) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage describes network resource usage. type Usage struct { // Unit - An enum describing the unit of measurement. @@ -11357,6 +11375,12 @@ type WatcherPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for WatcherPropertiesFormat. +func (wpf WatcherPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WatchersDeleteFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type WatchersDeleteFuture struct { diff --git a/services/network/mgmt/2016-12-01/network/CHANGELOG.md b/services/network/mgmt/2016-12-01/network/CHANGELOG.md index 52911e4cc5e4..f3d3c1247a7b 100644 --- a/services/network/mgmt/2016-12-01/network/CHANGELOG.md +++ b/services/network/mgmt/2016-12-01/network/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. BgpPeerStatus.MarshalJSON() ([]byte, error) +1. GatewayRoute.MarshalJSON() ([]byte, error) +1. TunnelConnectionHealth.MarshalJSON() ([]byte, error) +1. WatcherPropertiesFormat.MarshalJSON() ([]byte, error) diff --git a/services/network/mgmt/2016-12-01/network/_meta.json b/services/network/mgmt/2016-12-01/network/_meta.json index 2f4ab0224855..bc382504e107 100644 --- a/services/network/mgmt/2016-12-01/network/_meta.json +++ b/services/network/mgmt/2016-12-01/network/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "tag": "package-2016-12", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/network/mgmt/2016-12-01/network/models.go b/services/network/mgmt/2016-12-01/network/models.go index 0bbbcb57efb8..80aff6dadfdf 100644 --- a/services/network/mgmt/2016-12-01/network/models.go +++ b/services/network/mgmt/2016-12-01/network/models.go @@ -2107,6 +2107,12 @@ type BgpPeerStatus struct { MessagesReceived *int64 `json:"messagesReceived,omitempty"` } +// MarshalJSON is the custom marshaler for BgpPeerStatus. +func (bps BgpPeerStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BgpPeerStatusListResult response for list BGP peer status API service call type BgpPeerStatusListResult struct { autorest.Response `json:"-"` @@ -4156,6 +4162,12 @@ type GatewayRoute struct { Weight *int32 `json:"weight,omitempty"` } +// MarshalJSON is the custom marshaler for GatewayRoute. +func (gr GatewayRoute) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GatewayRouteListResult list of virtual network gateway routes type GatewayRouteListResult struct { autorest.Response `json:"-"` @@ -10135,6 +10147,12 @@ type TunnelConnectionHealth struct { LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"` } +// MarshalJSON is the custom marshaler for TunnelConnectionHealth. +func (tch TunnelConnectionHealth) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage describes network resource usage. type Usage struct { // Unit - An enum describing the unit of measurement. @@ -12657,6 +12675,12 @@ type WatcherPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for WatcherPropertiesFormat. +func (wpf WatcherPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WatchersDeleteFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type WatchersDeleteFuture struct { diff --git a/services/network/mgmt/2017-03-01/network/CHANGELOG.md b/services/network/mgmt/2017-03-01/network/CHANGELOG.md index 52911e4cc5e4..b081db76d29e 100644 --- a/services/network/mgmt/2017-03-01/network/CHANGELOG.md +++ b/services/network/mgmt/2017-03-01/network/CHANGELOG.md @@ -1,2 +1,15 @@ # Change History +## Additive Changes + +### New Funcs + +1. BgpPeerStatus.MarshalJSON() ([]byte, error) +1. ConnectivityHop.MarshalJSON() ([]byte, error) +1. ConnectivityInformation.MarshalJSON() ([]byte, error) +1. ConnectivityIssue.MarshalJSON() ([]byte, error) +1. GatewayRoute.MarshalJSON() ([]byte, error) +1. TunnelConnectionHealth.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsage.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsageName.MarshalJSON() ([]byte, error) +1. WatcherPropertiesFormat.MarshalJSON() ([]byte, error) diff --git a/services/network/mgmt/2017-03-01/network/_meta.json b/services/network/mgmt/2017-03-01/network/_meta.json index 04707123acc5..f74be4412fb4 100644 --- a/services/network/mgmt/2017-03-01/network/_meta.json +++ b/services/network/mgmt/2017-03-01/network/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "tag": "package-2017-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/network/mgmt/2017-03-01/network/models.go b/services/network/mgmt/2017-03-01/network/models.go index d7dcd871709e..dd03150fb75e 100644 --- a/services/network/mgmt/2017-03-01/network/models.go +++ b/services/network/mgmt/2017-03-01/network/models.go @@ -2262,6 +2262,12 @@ type BgpPeerStatus struct { MessagesReceived *int64 `json:"messagesReceived,omitempty"` } +// MarshalJSON is the custom marshaler for BgpPeerStatus. +func (bps BgpPeerStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BgpPeerStatusListResult response for list BGP peer status API service call type BgpPeerStatusListResult struct { autorest.Response `json:"-"` @@ -2589,6 +2595,12 @@ type ConnectivityHop struct { Issues *[]ConnectivityIssue `json:"issues,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityHop. +func (ch ConnectivityHop) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityInformation information on the connectivity status. type ConnectivityInformation struct { autorest.Response `json:"-"` @@ -2608,6 +2620,12 @@ type ConnectivityInformation struct { ProbesFailed *int32 `json:"probesFailed,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityInformation. +func (ci ConnectivityInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityIssue information about an issue encountered in the process of checking for connectivity. type ConnectivityIssue struct { // Origin - READ-ONLY; The origin of the issue. Possible values include: 'OriginLocal', 'OriginInbound', 'OriginOutbound' @@ -2620,6 +2638,12 @@ type ConnectivityIssue struct { Context *[]map[string]*string `json:"context,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityIssue. +func (ci ConnectivityIssue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityParameters parameters that determine how the connectivity check will be performed. type ConnectivityParameters struct { Source *ConnectivitySource `json:"source,omitempty"` @@ -4384,6 +4408,12 @@ type GatewayRoute struct { Weight *int32 `json:"weight,omitempty"` } +// MarshalJSON is the custom marshaler for GatewayRoute. +func (gr GatewayRoute) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GatewayRouteListResult list of virtual network gateway routes type GatewayRouteListResult struct { autorest.Response `json:"-"` @@ -10397,6 +10427,12 @@ type TunnelConnectionHealth struct { LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"` } +// MarshalJSON is the custom marshaler for TunnelConnectionHealth. +func (tch TunnelConnectionHealth) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage describes network resource usage. type Usage struct { // Unit - An enum describing the unit of measurement. @@ -12772,6 +12808,12 @@ type VirtualNetworkUsage struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsage. +func (vnu VirtualNetworkUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkUsageName usage strings container. type VirtualNetworkUsageName struct { // LocalizedValue - READ-ONLY; Localized subnet size and usage string. @@ -12780,6 +12822,12 @@ type VirtualNetworkUsageName struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsageName. +func (vnun VirtualNetworkUsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnClientConfiguration vpnClientConfiguration for P2S client. type VpnClientConfiguration struct { // VpnClientAddressPool - The reference of the address space resource which represents Address space for P2S VpnClient. @@ -13120,6 +13168,12 @@ type WatcherPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for WatcherPropertiesFormat. +func (wpf WatcherPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WatchersCheckConnectivityFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type WatchersCheckConnectivityFuture struct { diff --git a/services/network/mgmt/2017-06-01/network/CHANGELOG.md b/services/network/mgmt/2017-06-01/network/CHANGELOG.md index 52911e4cc5e4..b081db76d29e 100644 --- a/services/network/mgmt/2017-06-01/network/CHANGELOG.md +++ b/services/network/mgmt/2017-06-01/network/CHANGELOG.md @@ -1,2 +1,15 @@ # Change History +## Additive Changes + +### New Funcs + +1. BgpPeerStatus.MarshalJSON() ([]byte, error) +1. ConnectivityHop.MarshalJSON() ([]byte, error) +1. ConnectivityInformation.MarshalJSON() ([]byte, error) +1. ConnectivityIssue.MarshalJSON() ([]byte, error) +1. GatewayRoute.MarshalJSON() ([]byte, error) +1. TunnelConnectionHealth.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsage.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsageName.MarshalJSON() ([]byte, error) +1. WatcherPropertiesFormat.MarshalJSON() ([]byte, error) diff --git a/services/network/mgmt/2017-06-01/network/_meta.json b/services/network/mgmt/2017-06-01/network/_meta.json index eaa8b3667960..2a66e9d7c7fc 100644 --- a/services/network/mgmt/2017-06-01/network/_meta.json +++ b/services/network/mgmt/2017-06-01/network/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "tag": "package-2017-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/network/mgmt/2017-06-01/network/models.go b/services/network/mgmt/2017-06-01/network/models.go index 1286f691efeb..4f9499f542ee 100644 --- a/services/network/mgmt/2017-06-01/network/models.go +++ b/services/network/mgmt/2017-06-01/network/models.go @@ -2949,6 +2949,12 @@ type BgpPeerStatus struct { MessagesReceived *int64 `json:"messagesReceived,omitempty"` } +// MarshalJSON is the custom marshaler for BgpPeerStatus. +func (bps BgpPeerStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BgpPeerStatusListResult response for list BGP peer status API service call type BgpPeerStatusListResult struct { autorest.Response `json:"-"` @@ -3276,6 +3282,12 @@ type ConnectivityHop struct { Issues *[]ConnectivityIssue `json:"issues,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityHop. +func (ch ConnectivityHop) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityInformation information on the connectivity status. type ConnectivityInformation struct { autorest.Response `json:"-"` @@ -3295,6 +3307,12 @@ type ConnectivityInformation struct { ProbesFailed *int32 `json:"probesFailed,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityInformation. +func (ci ConnectivityInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityIssue information about an issue encountered in the process of checking for connectivity. type ConnectivityIssue struct { // Origin - READ-ONLY; The origin of the issue. Possible values include: 'OriginLocal', 'OriginInbound', 'OriginOutbound' @@ -3307,6 +3325,12 @@ type ConnectivityIssue struct { Context *[]map[string]*string `json:"context,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityIssue. +func (ci ConnectivityIssue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityParameters parameters that determine how the connectivity check will be performed. type ConnectivityParameters struct { Source *ConnectivitySource `json:"source,omitempty"` @@ -5317,6 +5341,12 @@ type GatewayRoute struct { Weight *int32 `json:"weight,omitempty"` } +// MarshalJSON is the custom marshaler for GatewayRoute. +func (gr GatewayRoute) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GatewayRouteListResult list of virtual network gateway routes type GatewayRouteListResult struct { autorest.Response `json:"-"` @@ -12686,6 +12716,12 @@ type TunnelConnectionHealth struct { LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"` } +// MarshalJSON is the custom marshaler for TunnelConnectionHealth. +func (tch TunnelConnectionHealth) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage describes network resource usage. type Usage struct { // Unit - An enum describing the unit of measurement. @@ -15505,6 +15541,12 @@ type VirtualNetworkUsage struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsage. +func (vnu VirtualNetworkUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkUsageName usage strings container. type VirtualNetworkUsageName struct { // LocalizedValue - READ-ONLY; Localized subnet size and usage string. @@ -15513,6 +15555,12 @@ type VirtualNetworkUsageName struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsageName. +func (vnun VirtualNetworkUsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnClientConfiguration vpnClientConfiguration for P2S client. type VpnClientConfiguration struct { // VpnClientAddressPool - The reference of the address space resource which represents Address space for P2S VpnClient. @@ -15867,6 +15915,12 @@ type WatcherPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for WatcherPropertiesFormat. +func (wpf WatcherPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WatchersCheckConnectivityFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type WatchersCheckConnectivityFuture struct { diff --git a/services/network/mgmt/2017-08-01/network/CHANGELOG.md b/services/network/mgmt/2017-08-01/network/CHANGELOG.md index 52911e4cc5e4..b081db76d29e 100644 --- a/services/network/mgmt/2017-08-01/network/CHANGELOG.md +++ b/services/network/mgmt/2017-08-01/network/CHANGELOG.md @@ -1,2 +1,15 @@ # Change History +## Additive Changes + +### New Funcs + +1. BgpPeerStatus.MarshalJSON() ([]byte, error) +1. ConnectivityHop.MarshalJSON() ([]byte, error) +1. ConnectivityInformation.MarshalJSON() ([]byte, error) +1. ConnectivityIssue.MarshalJSON() ([]byte, error) +1. GatewayRoute.MarshalJSON() ([]byte, error) +1. TunnelConnectionHealth.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsage.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsageName.MarshalJSON() ([]byte, error) +1. WatcherPropertiesFormat.MarshalJSON() ([]byte, error) diff --git a/services/network/mgmt/2017-08-01/network/_meta.json b/services/network/mgmt/2017-08-01/network/_meta.json index 8bfa2d2e212a..19cde5272a0c 100644 --- a/services/network/mgmt/2017-08-01/network/_meta.json +++ b/services/network/mgmt/2017-08-01/network/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "tag": "package-2017-08", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/network/mgmt/2017-08-01/network/models.go b/services/network/mgmt/2017-08-01/network/models.go index f7a35d09e771..c8da81b6efa8 100644 --- a/services/network/mgmt/2017-08-01/network/models.go +++ b/services/network/mgmt/2017-08-01/network/models.go @@ -2949,6 +2949,12 @@ type BgpPeerStatus struct { MessagesReceived *int64 `json:"messagesReceived,omitempty"` } +// MarshalJSON is the custom marshaler for BgpPeerStatus. +func (bps BgpPeerStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BgpPeerStatusListResult response for list BGP peer status API service call type BgpPeerStatusListResult struct { autorest.Response `json:"-"` @@ -3276,6 +3282,12 @@ type ConnectivityHop struct { Issues *[]ConnectivityIssue `json:"issues,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityHop. +func (ch ConnectivityHop) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityInformation information on the connectivity status. type ConnectivityInformation struct { autorest.Response `json:"-"` @@ -3295,6 +3307,12 @@ type ConnectivityInformation struct { ProbesFailed *int32 `json:"probesFailed,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityInformation. +func (ci ConnectivityInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityIssue information about an issue encountered in the process of checking for connectivity. type ConnectivityIssue struct { // Origin - READ-ONLY; The origin of the issue. Possible values include: 'OriginLocal', 'OriginInbound', 'OriginOutbound' @@ -3307,6 +3325,12 @@ type ConnectivityIssue struct { Context *[]map[string]*string `json:"context,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityIssue. +func (ci ConnectivityIssue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityParameters parameters that determine how the connectivity check will be performed. type ConnectivityParameters struct { Source *ConnectivitySource `json:"source,omitempty"` @@ -5317,6 +5341,12 @@ type GatewayRoute struct { Weight *int32 `json:"weight,omitempty"` } +// MarshalJSON is the custom marshaler for GatewayRoute. +func (gr GatewayRoute) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GatewayRouteListResult list of virtual network gateway routes type GatewayRouteListResult struct { autorest.Response `json:"-"` @@ -12728,6 +12758,12 @@ type TunnelConnectionHealth struct { LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"` } +// MarshalJSON is the custom marshaler for TunnelConnectionHealth. +func (tch TunnelConnectionHealth) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage describes network resource usage. type Usage struct { // ID - READ-ONLY; Resource identifier. @@ -15610,6 +15646,12 @@ type VirtualNetworkUsage struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsage. +func (vnu VirtualNetworkUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkUsageName usage strings container. type VirtualNetworkUsageName struct { // LocalizedValue - READ-ONLY; Localized subnet size and usage string. @@ -15618,6 +15660,12 @@ type VirtualNetworkUsageName struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsageName. +func (vnun VirtualNetworkUsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnClientConfiguration vpnClientConfiguration for P2S client. type VpnClientConfiguration struct { // VpnClientAddressPool - The reference of the address space resource which represents Address space for P2S VpnClient. @@ -15972,6 +16020,12 @@ type WatcherPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for WatcherPropertiesFormat. +func (wpf WatcherPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WatchersCheckConnectivityFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type WatchersCheckConnectivityFuture struct { diff --git a/services/network/mgmt/2017-09-01/network/CHANGELOG.md b/services/network/mgmt/2017-09-01/network/CHANGELOG.md index 52911e4cc5e4..4666dc0e5cc4 100644 --- a/services/network/mgmt/2017-09-01/network/CHANGELOG.md +++ b/services/network/mgmt/2017-09-01/network/CHANGELOG.md @@ -1,2 +1,16 @@ # Change History +## Additive Changes + +### New Funcs + +1. ApplicationSecurityGroupPropertiesFormat.MarshalJSON() ([]byte, error) +1. BgpPeerStatus.MarshalJSON() ([]byte, error) +1. ConnectivityHop.MarshalJSON() ([]byte, error) +1. ConnectivityInformation.MarshalJSON() ([]byte, error) +1. ConnectivityIssue.MarshalJSON() ([]byte, error) +1. GatewayRoute.MarshalJSON() ([]byte, error) +1. TunnelConnectionHealth.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsage.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsageName.MarshalJSON() ([]byte, error) +1. WatcherPropertiesFormat.MarshalJSON() ([]byte, error) diff --git a/services/network/mgmt/2017-09-01/network/_meta.json b/services/network/mgmt/2017-09-01/network/_meta.json index c5b38c8c3fd9..6f1c69d5473a 100644 --- a/services/network/mgmt/2017-09-01/network/_meta.json +++ b/services/network/mgmt/2017-09-01/network/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "tag": "package-2017-09", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/network/mgmt/2017-09-01/network/models.go b/services/network/mgmt/2017-09-01/network/models.go index 031380a32989..3a6ac7466f9b 100644 --- a/services/network/mgmt/2017-09-01/network/models.go +++ b/services/network/mgmt/2017-09-01/network/models.go @@ -2962,6 +2962,12 @@ type ApplicationSecurityGroupPropertiesFormat struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationSecurityGroupPropertiesFormat. +func (asgpf ApplicationSecurityGroupPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationSecurityGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type ApplicationSecurityGroupsCreateOrUpdateFuture struct { @@ -3473,6 +3479,12 @@ type BgpPeerStatus struct { MessagesReceived *int64 `json:"messagesReceived,omitempty"` } +// MarshalJSON is the custom marshaler for BgpPeerStatus. +func (bps BgpPeerStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BgpPeerStatusListResult response for list BGP peer status API service call type BgpPeerStatusListResult struct { autorest.Response `json:"-"` @@ -3800,6 +3812,12 @@ type ConnectivityHop struct { Issues *[]ConnectivityIssue `json:"issues,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityHop. +func (ch ConnectivityHop) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityInformation information on the connectivity status. type ConnectivityInformation struct { autorest.Response `json:"-"` @@ -3819,6 +3837,12 @@ type ConnectivityInformation struct { ProbesFailed *int32 `json:"probesFailed,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityInformation. +func (ci ConnectivityInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityIssue information about an issue encountered in the process of checking for connectivity. type ConnectivityIssue struct { // Origin - READ-ONLY; The origin of the issue. Possible values include: 'OriginLocal', 'OriginInbound', 'OriginOutbound' @@ -3831,6 +3855,12 @@ type ConnectivityIssue struct { Context *[]map[string]*string `json:"context,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityIssue. +func (ci ConnectivityIssue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityParameters parameters that determine how the connectivity check will be performed. type ConnectivityParameters struct { Source *ConnectivitySource `json:"source,omitempty"` @@ -5894,6 +5924,12 @@ type GatewayRoute struct { Weight *int32 `json:"weight,omitempty"` } +// MarshalJSON is the custom marshaler for GatewayRoute. +func (gr GatewayRoute) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GatewayRouteListResult list of virtual network gateway routes type GatewayRouteListResult struct { autorest.Response `json:"-"` @@ -13893,6 +13929,12 @@ type TunnelConnectionHealth struct { LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"` } +// MarshalJSON is the custom marshaler for TunnelConnectionHealth. +func (tch TunnelConnectionHealth) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage describes network resource usage. type Usage struct { // ID - READ-ONLY; Resource identifier. @@ -16911,6 +16953,12 @@ type VirtualNetworkUsage struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsage. +func (vnu VirtualNetworkUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkUsageName usage strings container. type VirtualNetworkUsageName struct { // LocalizedValue - READ-ONLY; Localized subnet size and usage string. @@ -16919,6 +16967,12 @@ type VirtualNetworkUsageName struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsageName. +func (vnun VirtualNetworkUsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnClientConfiguration vpnClientConfiguration for P2S client. type VpnClientConfiguration struct { // VpnClientAddressPool - The reference of the address space resource which represents Address space for P2S VpnClient. @@ -17283,6 +17337,12 @@ type WatcherPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for WatcherPropertiesFormat. +func (wpf WatcherPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WatchersCheckConnectivityFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type WatchersCheckConnectivityFuture struct { diff --git a/services/network/mgmt/2017-10-01/network/CHANGELOG.md b/services/network/mgmt/2017-10-01/network/CHANGELOG.md index 52911e4cc5e4..4666dc0e5cc4 100644 --- a/services/network/mgmt/2017-10-01/network/CHANGELOG.md +++ b/services/network/mgmt/2017-10-01/network/CHANGELOG.md @@ -1,2 +1,16 @@ # Change History +## Additive Changes + +### New Funcs + +1. ApplicationSecurityGroupPropertiesFormat.MarshalJSON() ([]byte, error) +1. BgpPeerStatus.MarshalJSON() ([]byte, error) +1. ConnectivityHop.MarshalJSON() ([]byte, error) +1. ConnectivityInformation.MarshalJSON() ([]byte, error) +1. ConnectivityIssue.MarshalJSON() ([]byte, error) +1. GatewayRoute.MarshalJSON() ([]byte, error) +1. TunnelConnectionHealth.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsage.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsageName.MarshalJSON() ([]byte, error) +1. WatcherPropertiesFormat.MarshalJSON() ([]byte, error) diff --git a/services/network/mgmt/2017-10-01/network/_meta.json b/services/network/mgmt/2017-10-01/network/_meta.json index eb01f8040061..b81386e7d7a6 100644 --- a/services/network/mgmt/2017-10-01/network/_meta.json +++ b/services/network/mgmt/2017-10-01/network/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "tag": "package-2017-10", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/network/mgmt/2017-10-01/network/models.go b/services/network/mgmt/2017-10-01/network/models.go index 8c5cb03ebcf1..8408f6ea833d 100644 --- a/services/network/mgmt/2017-10-01/network/models.go +++ b/services/network/mgmt/2017-10-01/network/models.go @@ -2967,6 +2967,12 @@ type ApplicationSecurityGroupPropertiesFormat struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationSecurityGroupPropertiesFormat. +func (asgpf ApplicationSecurityGroupPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationSecurityGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type ApplicationSecurityGroupsCreateOrUpdateFuture struct { @@ -3478,6 +3484,12 @@ type BgpPeerStatus struct { MessagesReceived *int64 `json:"messagesReceived,omitempty"` } +// MarshalJSON is the custom marshaler for BgpPeerStatus. +func (bps BgpPeerStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BgpPeerStatusListResult response for list BGP peer status API service call type BgpPeerStatusListResult struct { autorest.Response `json:"-"` @@ -4271,6 +4283,12 @@ type ConnectivityHop struct { Issues *[]ConnectivityIssue `json:"issues,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityHop. +func (ch ConnectivityHop) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityInformation information on the connectivity status. type ConnectivityInformation struct { autorest.Response `json:"-"` @@ -4290,6 +4308,12 @@ type ConnectivityInformation struct { ProbesFailed *int32 `json:"probesFailed,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityInformation. +func (ci ConnectivityInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityIssue information about an issue encountered in the process of checking for connectivity. type ConnectivityIssue struct { // Origin - READ-ONLY; The origin of the issue. Possible values include: 'OriginLocal', 'OriginInbound', 'OriginOutbound' @@ -4302,6 +4326,12 @@ type ConnectivityIssue struct { Context *[]map[string]*string `json:"context,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityIssue. +func (ci ConnectivityIssue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityParameters parameters that determine how the connectivity check will be performed. type ConnectivityParameters struct { Source *ConnectivitySource `json:"source,omitempty"` @@ -6365,6 +6395,12 @@ type GatewayRoute struct { Weight *int32 `json:"weight,omitempty"` } +// MarshalJSON is the custom marshaler for GatewayRoute. +func (gr GatewayRoute) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GatewayRouteListResult list of virtual network gateway routes type GatewayRouteListResult struct { autorest.Response `json:"-"` @@ -14373,6 +14409,12 @@ type TunnelConnectionHealth struct { LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"` } +// MarshalJSON is the custom marshaler for TunnelConnectionHealth. +func (tch TunnelConnectionHealth) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage describes network resource usage. type Usage struct { // ID - READ-ONLY; Resource identifier. @@ -17391,6 +17433,12 @@ type VirtualNetworkUsage struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsage. +func (vnu VirtualNetworkUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkUsageName usage strings container. type VirtualNetworkUsageName struct { // LocalizedValue - READ-ONLY; Localized subnet size and usage string. @@ -17399,6 +17447,12 @@ type VirtualNetworkUsageName struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsageName. +func (vnun VirtualNetworkUsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnClientConfiguration vpnClientConfiguration for P2S client. type VpnClientConfiguration struct { // VpnClientAddressPool - The reference of the address space resource which represents Address space for P2S VpnClient. @@ -17763,6 +17817,12 @@ type WatcherPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for WatcherPropertiesFormat. +func (wpf WatcherPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WatchersCheckConnectivityFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type WatchersCheckConnectivityFuture struct { diff --git a/services/network/mgmt/2017-11-01/network/CHANGELOG.md b/services/network/mgmt/2017-11-01/network/CHANGELOG.md index 52911e4cc5e4..4666dc0e5cc4 100644 --- a/services/network/mgmt/2017-11-01/network/CHANGELOG.md +++ b/services/network/mgmt/2017-11-01/network/CHANGELOG.md @@ -1,2 +1,16 @@ # Change History +## Additive Changes + +### New Funcs + +1. ApplicationSecurityGroupPropertiesFormat.MarshalJSON() ([]byte, error) +1. BgpPeerStatus.MarshalJSON() ([]byte, error) +1. ConnectivityHop.MarshalJSON() ([]byte, error) +1. ConnectivityInformation.MarshalJSON() ([]byte, error) +1. ConnectivityIssue.MarshalJSON() ([]byte, error) +1. GatewayRoute.MarshalJSON() ([]byte, error) +1. TunnelConnectionHealth.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsage.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsageName.MarshalJSON() ([]byte, error) +1. WatcherPropertiesFormat.MarshalJSON() ([]byte, error) diff --git a/services/network/mgmt/2017-11-01/network/_meta.json b/services/network/mgmt/2017-11-01/network/_meta.json index ab989f265c31..2676071cf911 100644 --- a/services/network/mgmt/2017-11-01/network/_meta.json +++ b/services/network/mgmt/2017-11-01/network/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "tag": "package-2017-11", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/network/mgmt/2017-11-01/network/models.go b/services/network/mgmt/2017-11-01/network/models.go index 043f097aef1f..eea2970689b0 100644 --- a/services/network/mgmt/2017-11-01/network/models.go +++ b/services/network/mgmt/2017-11-01/network/models.go @@ -2967,6 +2967,12 @@ type ApplicationSecurityGroupPropertiesFormat struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationSecurityGroupPropertiesFormat. +func (asgpf ApplicationSecurityGroupPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationSecurityGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type ApplicationSecurityGroupsCreateOrUpdateFuture struct { @@ -3478,6 +3484,12 @@ type BgpPeerStatus struct { MessagesReceived *int64 `json:"messagesReceived,omitempty"` } +// MarshalJSON is the custom marshaler for BgpPeerStatus. +func (bps BgpPeerStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BgpPeerStatusListResult response for list BGP peer status API service call type BgpPeerStatusListResult struct { autorest.Response `json:"-"` @@ -4271,6 +4283,12 @@ type ConnectivityHop struct { Issues *[]ConnectivityIssue `json:"issues,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityHop. +func (ch ConnectivityHop) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityInformation information on the connectivity status. type ConnectivityInformation struct { autorest.Response `json:"-"` @@ -4290,6 +4308,12 @@ type ConnectivityInformation struct { ProbesFailed *int32 `json:"probesFailed,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityInformation. +func (ci ConnectivityInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityIssue information about an issue encountered in the process of checking for connectivity. type ConnectivityIssue struct { // Origin - READ-ONLY; The origin of the issue. Possible values include: 'OriginLocal', 'OriginInbound', 'OriginOutbound' @@ -4302,6 +4326,12 @@ type ConnectivityIssue struct { Context *[]map[string]*string `json:"context,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityIssue. +func (ci ConnectivityIssue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityParameters parameters that determine how the connectivity check will be performed. type ConnectivityParameters struct { Source *ConnectivitySource `json:"source,omitempty"` @@ -6365,6 +6395,12 @@ type GatewayRoute struct { Weight *int32 `json:"weight,omitempty"` } +// MarshalJSON is the custom marshaler for GatewayRoute. +func (gr GatewayRoute) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GatewayRouteListResult list of virtual network gateway routes type GatewayRouteListResult struct { autorest.Response `json:"-"` @@ -14362,6 +14398,12 @@ type TunnelConnectionHealth struct { LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"` } +// MarshalJSON is the custom marshaler for TunnelConnectionHealth. +func (tch TunnelConnectionHealth) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage describes network resource usage. type Usage struct { // ID - READ-ONLY; Resource identifier. @@ -17380,6 +17422,12 @@ type VirtualNetworkUsage struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsage. +func (vnu VirtualNetworkUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkUsageName usage strings container. type VirtualNetworkUsageName struct { // LocalizedValue - READ-ONLY; Localized subnet size and usage string. @@ -17388,6 +17436,12 @@ type VirtualNetworkUsageName struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsageName. +func (vnun VirtualNetworkUsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnClientConfiguration vpnClientConfiguration for P2S client. type VpnClientConfiguration struct { // VpnClientAddressPool - The reference of the address space resource which represents Address space for P2S VpnClient. @@ -17752,6 +17806,12 @@ type WatcherPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for WatcherPropertiesFormat. +func (wpf WatcherPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WatchersCheckConnectivityFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type WatchersCheckConnectivityFuture struct { diff --git a/services/network/mgmt/2018-01-01/network/CHANGELOG.md b/services/network/mgmt/2018-01-01/network/CHANGELOG.md index 52911e4cc5e4..4666dc0e5cc4 100644 --- a/services/network/mgmt/2018-01-01/network/CHANGELOG.md +++ b/services/network/mgmt/2018-01-01/network/CHANGELOG.md @@ -1,2 +1,16 @@ # Change History +## Additive Changes + +### New Funcs + +1. ApplicationSecurityGroupPropertiesFormat.MarshalJSON() ([]byte, error) +1. BgpPeerStatus.MarshalJSON() ([]byte, error) +1. ConnectivityHop.MarshalJSON() ([]byte, error) +1. ConnectivityInformation.MarshalJSON() ([]byte, error) +1. ConnectivityIssue.MarshalJSON() ([]byte, error) +1. GatewayRoute.MarshalJSON() ([]byte, error) +1. TunnelConnectionHealth.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsage.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsageName.MarshalJSON() ([]byte, error) +1. WatcherPropertiesFormat.MarshalJSON() ([]byte, error) diff --git a/services/network/mgmt/2018-01-01/network/_meta.json b/services/network/mgmt/2018-01-01/network/_meta.json index 80ef02fe04ba..5480867afd66 100644 --- a/services/network/mgmt/2018-01-01/network/_meta.json +++ b/services/network/mgmt/2018-01-01/network/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "tag": "package-2018-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/network/mgmt/2018-01-01/network/models.go b/services/network/mgmt/2018-01-01/network/models.go index de4081b89840..f3d00e3eb010 100644 --- a/services/network/mgmt/2018-01-01/network/models.go +++ b/services/network/mgmt/2018-01-01/network/models.go @@ -2971,6 +2971,12 @@ type ApplicationSecurityGroupPropertiesFormat struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationSecurityGroupPropertiesFormat. +func (asgpf ApplicationSecurityGroupPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationSecurityGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type ApplicationSecurityGroupsCreateOrUpdateFuture struct { @@ -3482,6 +3488,12 @@ type BgpPeerStatus struct { MessagesReceived *int64 `json:"messagesReceived,omitempty"` } +// MarshalJSON is the custom marshaler for BgpPeerStatus. +func (bps BgpPeerStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BgpPeerStatusListResult response for list BGP peer status API service call type BgpPeerStatusListResult struct { autorest.Response `json:"-"` @@ -4275,6 +4287,12 @@ type ConnectivityHop struct { Issues *[]ConnectivityIssue `json:"issues,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityHop. +func (ch ConnectivityHop) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityInformation information on the connectivity status. type ConnectivityInformation struct { autorest.Response `json:"-"` @@ -4294,6 +4312,12 @@ type ConnectivityInformation struct { ProbesFailed *int32 `json:"probesFailed,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityInformation. +func (ci ConnectivityInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityIssue information about an issue encountered in the process of checking for connectivity. type ConnectivityIssue struct { // Origin - READ-ONLY; The origin of the issue. Possible values include: 'OriginLocal', 'OriginInbound', 'OriginOutbound' @@ -4306,6 +4330,12 @@ type ConnectivityIssue struct { Context *[]map[string]*string `json:"context,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityIssue. +func (ci ConnectivityIssue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityParameters parameters that determine how the connectivity check will be performed. type ConnectivityParameters struct { Source *ConnectivitySource `json:"source,omitempty"` @@ -6383,6 +6413,12 @@ type GatewayRoute struct { Weight *int32 `json:"weight,omitempty"` } +// MarshalJSON is the custom marshaler for GatewayRoute. +func (gr GatewayRoute) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GatewayRouteListResult list of virtual network gateway routes type GatewayRouteListResult struct { autorest.Response `json:"-"` @@ -14441,6 +14477,12 @@ type TunnelConnectionHealth struct { LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"` } +// MarshalJSON is the custom marshaler for TunnelConnectionHealth. +func (tch TunnelConnectionHealth) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage describes network resource usage. type Usage struct { // ID - READ-ONLY; Resource identifier. @@ -17459,6 +17501,12 @@ type VirtualNetworkUsage struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsage. +func (vnu VirtualNetworkUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkUsageName usage strings container. type VirtualNetworkUsageName struct { // LocalizedValue - READ-ONLY; Localized subnet size and usage string. @@ -17467,6 +17515,12 @@ type VirtualNetworkUsageName struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsageName. +func (vnun VirtualNetworkUsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnClientConfiguration vpnClientConfiguration for P2S client. type VpnClientConfiguration struct { // VpnClientAddressPool - The reference of the address space resource which represents Address space for P2S VpnClient. @@ -17830,6 +17884,12 @@ type WatcherPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for WatcherPropertiesFormat. +func (wpf WatcherPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WatchersCheckConnectivityFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type WatchersCheckConnectivityFuture struct { diff --git a/services/network/mgmt/2018-02-01/network/CHANGELOG.md b/services/network/mgmt/2018-02-01/network/CHANGELOG.md index 52911e4cc5e4..b986ed6a20f9 100644 --- a/services/network/mgmt/2018-02-01/network/CHANGELOG.md +++ b/services/network/mgmt/2018-02-01/network/CHANGELOG.md @@ -1,2 +1,17 @@ # Change History +## Additive Changes + +### New Funcs + +1. ApplicationSecurityGroupPropertiesFormat.MarshalJSON() ([]byte, error) +1. BgpPeerStatus.MarshalJSON() ([]byte, error) +1. ConnectivityHop.MarshalJSON() ([]byte, error) +1. ConnectivityInformation.MarshalJSON() ([]byte, error) +1. ConnectivityIssue.MarshalJSON() ([]byte, error) +1. DdosProtectionPlanPropertiesFormat.MarshalJSON() ([]byte, error) +1. GatewayRoute.MarshalJSON() ([]byte, error) +1. TunnelConnectionHealth.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsage.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsageName.MarshalJSON() ([]byte, error) +1. WatcherPropertiesFormat.MarshalJSON() ([]byte, error) diff --git a/services/network/mgmt/2018-02-01/network/_meta.json b/services/network/mgmt/2018-02-01/network/_meta.json index 7dbc366a67eb..0971c2ce1719 100644 --- a/services/network/mgmt/2018-02-01/network/_meta.json +++ b/services/network/mgmt/2018-02-01/network/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "tag": "package-2018-02", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/network/mgmt/2018-02-01/network/models.go b/services/network/mgmt/2018-02-01/network/models.go index de8681047e50..f5a12a72e4ad 100644 --- a/services/network/mgmt/2018-02-01/network/models.go +++ b/services/network/mgmt/2018-02-01/network/models.go @@ -2971,6 +2971,12 @@ type ApplicationSecurityGroupPropertiesFormat struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationSecurityGroupPropertiesFormat. +func (asgpf ApplicationSecurityGroupPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationSecurityGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type ApplicationSecurityGroupsCreateOrUpdateFuture struct { @@ -3482,6 +3488,12 @@ type BgpPeerStatus struct { MessagesReceived *int64 `json:"messagesReceived,omitempty"` } +// MarshalJSON is the custom marshaler for BgpPeerStatus. +func (bps BgpPeerStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BgpPeerStatusListResult response for list BGP peer status API service call type BgpPeerStatusListResult struct { autorest.Response `json:"-"` @@ -4277,6 +4289,12 @@ type ConnectivityHop struct { Issues *[]ConnectivityIssue `json:"issues,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityHop. +func (ch ConnectivityHop) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityInformation information on the connectivity status. type ConnectivityInformation struct { autorest.Response `json:"-"` @@ -4296,6 +4314,12 @@ type ConnectivityInformation struct { ProbesFailed *int32 `json:"probesFailed,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityInformation. +func (ci ConnectivityInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityIssue information about an issue encountered in the process of checking for connectivity. type ConnectivityIssue struct { // Origin - READ-ONLY; The origin of the issue. Possible values include: 'OriginLocal', 'OriginInbound', 'OriginOutbound' @@ -4308,6 +4332,12 @@ type ConnectivityIssue struct { Context *[]map[string]*string `json:"context,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityIssue. +func (ci ConnectivityIssue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityParameters parameters that determine how the connectivity check will be performed. type ConnectivityParameters struct { Source *ConnectivitySource `json:"source,omitempty"` @@ -4618,6 +4648,12 @@ type DdosProtectionPlanPropertiesFormat struct { VirtualNetworks *[]SubResource `json:"virtualNetworks,omitempty"` } +// MarshalJSON is the custom marshaler for DdosProtectionPlanPropertiesFormat. +func (dpppf DdosProtectionPlanPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DdosProtectionPlansCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type DdosProtectionPlansCreateOrUpdateFuture struct { @@ -7926,6 +7962,12 @@ type GatewayRoute struct { Weight *int32 `json:"weight,omitempty"` } +// MarshalJSON is the custom marshaler for GatewayRoute. +func (gr GatewayRoute) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GatewayRouteListResult list of virtual network gateway routes type GatewayRouteListResult struct { autorest.Response `json:"-"` @@ -15946,6 +15988,12 @@ type TunnelConnectionHealth struct { LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"` } +// MarshalJSON is the custom marshaler for TunnelConnectionHealth. +func (tch TunnelConnectionHealth) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage describes network resource usage. type Usage struct { // ID - READ-ONLY; Resource identifier. @@ -19052,6 +19100,12 @@ type VirtualNetworkUsage struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsage. +func (vnu VirtualNetworkUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkUsageName usage strings container. type VirtualNetworkUsageName struct { // LocalizedValue - READ-ONLY; Localized subnet size and usage string. @@ -19060,6 +19114,12 @@ type VirtualNetworkUsageName struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsageName. +func (vnun VirtualNetworkUsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnClientConfiguration vpnClientConfiguration for P2S client. type VpnClientConfiguration struct { // VpnClientAddressPool - The reference of the address space resource which represents Address space for P2S VpnClient. @@ -19447,6 +19507,12 @@ type WatcherPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for WatcherPropertiesFormat. +func (wpf WatcherPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WatchersCheckConnectivityFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type WatchersCheckConnectivityFuture struct { diff --git a/services/network/mgmt/2018-04-01/network/CHANGELOG.md b/services/network/mgmt/2018-04-01/network/CHANGELOG.md index 52911e4cc5e4..521d8060f36a 100644 --- a/services/network/mgmt/2018-04-01/network/CHANGELOG.md +++ b/services/network/mgmt/2018-04-01/network/CHANGELOG.md @@ -1,2 +1,18 @@ # Change History +## Additive Changes + +### New Funcs + +1. ApplicationSecurityGroupPropertiesFormat.MarshalJSON() ([]byte, error) +1. BgpPeerStatus.MarshalJSON() ([]byte, error) +1. ConnectivityHop.MarshalJSON() ([]byte, error) +1. ConnectivityInformation.MarshalJSON() ([]byte, error) +1. ConnectivityIssue.MarshalJSON() ([]byte, error) +1. DdosProtectionPlanPropertiesFormat.MarshalJSON() ([]byte, error) +1. GatewayRoute.MarshalJSON() ([]byte, error) +1. TunnelConnectionHealth.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsage.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsageName.MarshalJSON() ([]byte, error) +1. VpnSiteID.MarshalJSON() ([]byte, error) +1. WatcherPropertiesFormat.MarshalJSON() ([]byte, error) diff --git a/services/network/mgmt/2018-04-01/network/_meta.json b/services/network/mgmt/2018-04-01/network/_meta.json index aa9f33e0e992..1422302bcecd 100644 --- a/services/network/mgmt/2018-04-01/network/_meta.json +++ b/services/network/mgmt/2018-04-01/network/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "tag": "package-2018-04", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/network/mgmt/2018-04-01/network/models.go b/services/network/mgmt/2018-04-01/network/models.go index 0adb1feca7e6..3b6b986fe85e 100644 --- a/services/network/mgmt/2018-04-01/network/models.go +++ b/services/network/mgmt/2018-04-01/network/models.go @@ -3010,6 +3010,12 @@ type ApplicationSecurityGroupPropertiesFormat struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationSecurityGroupPropertiesFormat. +func (asgpf ApplicationSecurityGroupPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationSecurityGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type ApplicationSecurityGroupsCreateOrUpdateFuture struct { @@ -4202,6 +4208,12 @@ type BgpPeerStatus struct { MessagesReceived *int64 `json:"messagesReceived,omitempty"` } +// MarshalJSON is the custom marshaler for BgpPeerStatus. +func (bps BgpPeerStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BgpPeerStatusListResult response for list BGP peer status API service call type BgpPeerStatusListResult struct { autorest.Response `json:"-"` @@ -4999,6 +5011,12 @@ type ConnectivityHop struct { Issues *[]ConnectivityIssue `json:"issues,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityHop. +func (ch ConnectivityHop) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityInformation information on the connectivity status. type ConnectivityInformation struct { autorest.Response `json:"-"` @@ -5018,6 +5036,12 @@ type ConnectivityInformation struct { ProbesFailed *int32 `json:"probesFailed,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityInformation. +func (ci ConnectivityInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityIssue information about an issue encountered in the process of checking for connectivity. type ConnectivityIssue struct { // Origin - READ-ONLY; The origin of the issue. Possible values include: 'OriginLocal', 'OriginInbound', 'OriginOutbound' @@ -5030,6 +5054,12 @@ type ConnectivityIssue struct { Context *[]map[string]*string `json:"context,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityIssue. +func (ci ConnectivityIssue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityParameters parameters that determine how the connectivity check will be performed. type ConnectivityParameters struct { Source *ConnectivitySource `json:"source,omitempty"` @@ -5337,6 +5367,12 @@ type DdosProtectionPlanPropertiesFormat struct { VirtualNetworks *[]SubResource `json:"virtualNetworks,omitempty"` } +// MarshalJSON is the custom marshaler for DdosProtectionPlanPropertiesFormat. +func (dpppf DdosProtectionPlanPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DdosProtectionPlansCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type DdosProtectionPlansCreateOrUpdateFuture struct { @@ -8669,6 +8705,12 @@ type GatewayRoute struct { Weight *int32 `json:"weight,omitempty"` } +// MarshalJSON is the custom marshaler for GatewayRoute. +func (gr GatewayRoute) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GatewayRouteListResult list of virtual network gateway routes type GatewayRouteListResult struct { autorest.Response `json:"-"` @@ -17809,6 +17851,12 @@ type TunnelConnectionHealth struct { LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"` } +// MarshalJSON is the custom marshaler for TunnelConnectionHealth. +func (tch TunnelConnectionHealth) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage describes network resource usage. type Usage struct { // ID - READ-ONLY; Resource identifier. @@ -21163,6 +21211,12 @@ type VirtualNetworkUsage struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsage. +func (vnu VirtualNetworkUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkUsageName usage strings container. type VirtualNetworkUsageName struct { // LocalizedValue - READ-ONLY; Localized subnet size and usage string. @@ -21171,6 +21225,12 @@ type VirtualNetworkUsageName struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsageName. +func (vnun VirtualNetworkUsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualWAN virtualWAN Resource. type VirtualWAN struct { autorest.Response `json:"-"` @@ -22270,6 +22330,12 @@ type VpnSiteID struct { VpnSite *string `json:"vpnSite,omitempty"` } +// MarshalJSON is the custom marshaler for VpnSiteID. +func (vsi VpnSiteID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnSiteProperties parameters for VpnSite type VpnSiteProperties struct { // VirtualWAN - The VirtualWAN to which the vpnSite belongs @@ -22577,6 +22643,12 @@ type WatcherPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for WatcherPropertiesFormat. +func (wpf WatcherPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WatchersCheckConnectivityFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type WatchersCheckConnectivityFuture struct { diff --git a/services/network/mgmt/2018-06-01/network/CHANGELOG.md b/services/network/mgmt/2018-06-01/network/CHANGELOG.md index 52911e4cc5e4..63581b8dc42f 100644 --- a/services/network/mgmt/2018-06-01/network/CHANGELOG.md +++ b/services/network/mgmt/2018-06-01/network/CHANGELOG.md @@ -1,2 +1,19 @@ # Change History +## Additive Changes + +### New Funcs + +1. ApplicationSecurityGroupPropertiesFormat.MarshalJSON() ([]byte, error) +1. BgpPeerStatus.MarshalJSON() ([]byte, error) +1. ConfigurationDiagnosticResponse.MarshalJSON() ([]byte, error) +1. ConnectivityHop.MarshalJSON() ([]byte, error) +1. ConnectivityInformation.MarshalJSON() ([]byte, error) +1. ConnectivityIssue.MarshalJSON() ([]byte, error) +1. DdosProtectionPlanPropertiesFormat.MarshalJSON() ([]byte, error) +1. GatewayRoute.MarshalJSON() ([]byte, error) +1. TunnelConnectionHealth.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsage.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsageName.MarshalJSON() ([]byte, error) +1. VpnSiteID.MarshalJSON() ([]byte, error) +1. WatcherPropertiesFormat.MarshalJSON() ([]byte, error) diff --git a/services/network/mgmt/2018-06-01/network/_meta.json b/services/network/mgmt/2018-06-01/network/_meta.json index 1519274d985c..a6b7effe8a9e 100644 --- a/services/network/mgmt/2018-06-01/network/_meta.json +++ b/services/network/mgmt/2018-06-01/network/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "tag": "package-2018-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/network/mgmt/2018-06-01/network/models.go b/services/network/mgmt/2018-06-01/network/models.go index cdec2739d411..f46427e0ab39 100644 --- a/services/network/mgmt/2018-06-01/network/models.go +++ b/services/network/mgmt/2018-06-01/network/models.go @@ -3010,6 +3010,12 @@ type ApplicationSecurityGroupPropertiesFormat struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationSecurityGroupPropertiesFormat. +func (asgpf ApplicationSecurityGroupPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationSecurityGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type ApplicationSecurityGroupsCreateOrUpdateFuture struct { @@ -4202,6 +4208,12 @@ type BgpPeerStatus struct { MessagesReceived *int64 `json:"messagesReceived,omitempty"` } +// MarshalJSON is the custom marshaler for BgpPeerStatus. +func (bps BgpPeerStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BgpPeerStatusListResult response for list BGP peer status API service call type BgpPeerStatusListResult struct { autorest.Response `json:"-"` @@ -4504,6 +4516,12 @@ type ConfigurationDiagnosticResponse struct { Results *[]ConfigurationDiagnosticResult `json:"results,omitempty"` } +// MarshalJSON is the custom marshaler for ConfigurationDiagnosticResponse. +func (cdr ConfigurationDiagnosticResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConfigurationDiagnosticResult network configuration diagnostic result corresponded to provided traffic // query. type ConfigurationDiagnosticResult struct { @@ -5046,6 +5064,12 @@ type ConnectivityHop struct { Issues *[]ConnectivityIssue `json:"issues,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityHop. +func (ch ConnectivityHop) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityInformation information on the connectivity status. type ConnectivityInformation struct { autorest.Response `json:"-"` @@ -5065,6 +5089,12 @@ type ConnectivityInformation struct { ProbesFailed *int32 `json:"probesFailed,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityInformation. +func (ci ConnectivityInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityIssue information about an issue encountered in the process of checking for connectivity. type ConnectivityIssue struct { // Origin - READ-ONLY; The origin of the issue. Possible values include: 'OriginLocal', 'OriginInbound', 'OriginOutbound' @@ -5077,6 +5107,12 @@ type ConnectivityIssue struct { Context *[]map[string]*string `json:"context,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityIssue. +func (ci ConnectivityIssue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityParameters parameters that determine how the connectivity check will be performed. type ConnectivityParameters struct { Source *ConnectivitySource `json:"source,omitempty"` @@ -5384,6 +5420,12 @@ type DdosProtectionPlanPropertiesFormat struct { VirtualNetworks *[]SubResource `json:"virtualNetworks,omitempty"` } +// MarshalJSON is the custom marshaler for DdosProtectionPlanPropertiesFormat. +func (dpppf DdosProtectionPlanPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DdosProtectionPlansCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type DdosProtectionPlansCreateOrUpdateFuture struct { @@ -8742,6 +8784,12 @@ type GatewayRoute struct { Weight *int32 `json:"weight,omitempty"` } +// MarshalJSON is the custom marshaler for GatewayRoute. +func (gr GatewayRoute) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GatewayRouteListResult list of virtual network gateway routes type GatewayRouteListResult struct { autorest.Response `json:"-"` @@ -17937,6 +17985,12 @@ type TunnelConnectionHealth struct { LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"` } +// MarshalJSON is the custom marshaler for TunnelConnectionHealth. +func (tch TunnelConnectionHealth) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage describes network resource usage. type Usage struct { // ID - READ-ONLY; Resource identifier. @@ -21328,6 +21382,12 @@ type VirtualNetworkUsage struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsage. +func (vnu VirtualNetworkUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkUsageName usage strings container. type VirtualNetworkUsageName struct { // LocalizedValue - READ-ONLY; Localized subnet size and usage string. @@ -21336,6 +21396,12 @@ type VirtualNetworkUsageName struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsageName. +func (vnun VirtualNetworkUsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualWAN virtualWAN Resource. type VirtualWAN struct { autorest.Response `json:"-"` @@ -22435,6 +22501,12 @@ type VpnSiteID struct { VpnSite *string `json:"vpnSite,omitempty"` } +// MarshalJSON is the custom marshaler for VpnSiteID. +func (vsi VpnSiteID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnSiteProperties parameters for VpnSite type VpnSiteProperties struct { // VirtualWAN - The VirtualWAN to which the vpnSite belongs @@ -22742,6 +22814,12 @@ type WatcherPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for WatcherPropertiesFormat. +func (wpf WatcherPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WatchersCheckConnectivityFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type WatchersCheckConnectivityFuture struct { diff --git a/services/network/mgmt/2018-07-01/network/CHANGELOG.md b/services/network/mgmt/2018-07-01/network/CHANGELOG.md index 52911e4cc5e4..63581b8dc42f 100644 --- a/services/network/mgmt/2018-07-01/network/CHANGELOG.md +++ b/services/network/mgmt/2018-07-01/network/CHANGELOG.md @@ -1,2 +1,19 @@ # Change History +## Additive Changes + +### New Funcs + +1. ApplicationSecurityGroupPropertiesFormat.MarshalJSON() ([]byte, error) +1. BgpPeerStatus.MarshalJSON() ([]byte, error) +1. ConfigurationDiagnosticResponse.MarshalJSON() ([]byte, error) +1. ConnectivityHop.MarshalJSON() ([]byte, error) +1. ConnectivityInformation.MarshalJSON() ([]byte, error) +1. ConnectivityIssue.MarshalJSON() ([]byte, error) +1. DdosProtectionPlanPropertiesFormat.MarshalJSON() ([]byte, error) +1. GatewayRoute.MarshalJSON() ([]byte, error) +1. TunnelConnectionHealth.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsage.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsageName.MarshalJSON() ([]byte, error) +1. VpnSiteID.MarshalJSON() ([]byte, error) +1. WatcherPropertiesFormat.MarshalJSON() ([]byte, error) diff --git a/services/network/mgmt/2018-07-01/network/_meta.json b/services/network/mgmt/2018-07-01/network/_meta.json index 402d4666f126..5d9d0a43b5be 100644 --- a/services/network/mgmt/2018-07-01/network/_meta.json +++ b/services/network/mgmt/2018-07-01/network/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "tag": "package-2018-07", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/network/mgmt/2018-07-01/network/models.go b/services/network/mgmt/2018-07-01/network/models.go index 0a698405f9b7..e70cf7af16c6 100644 --- a/services/network/mgmt/2018-07-01/network/models.go +++ b/services/network/mgmt/2018-07-01/network/models.go @@ -3010,6 +3010,12 @@ type ApplicationSecurityGroupPropertiesFormat struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationSecurityGroupPropertiesFormat. +func (asgpf ApplicationSecurityGroupPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationSecurityGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type ApplicationSecurityGroupsCreateOrUpdateFuture struct { @@ -4204,6 +4210,12 @@ type BgpPeerStatus struct { MessagesReceived *int64 `json:"messagesReceived,omitempty"` } +// MarshalJSON is the custom marshaler for BgpPeerStatus. +func (bps BgpPeerStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BgpPeerStatusListResult response for list BGP peer status API service call type BgpPeerStatusListResult struct { autorest.Response `json:"-"` @@ -4506,6 +4518,12 @@ type ConfigurationDiagnosticResponse struct { Results *[]ConfigurationDiagnosticResult `json:"results,omitempty"` } +// MarshalJSON is the custom marshaler for ConfigurationDiagnosticResponse. +func (cdr ConfigurationDiagnosticResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConfigurationDiagnosticResult network configuration diagnostic result corresponded to provided traffic // query. type ConfigurationDiagnosticResult struct { @@ -5048,6 +5066,12 @@ type ConnectivityHop struct { Issues *[]ConnectivityIssue `json:"issues,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityHop. +func (ch ConnectivityHop) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityInformation information on the connectivity status. type ConnectivityInformation struct { autorest.Response `json:"-"` @@ -5067,6 +5091,12 @@ type ConnectivityInformation struct { ProbesFailed *int32 `json:"probesFailed,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityInformation. +func (ci ConnectivityInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityIssue information about an issue encountered in the process of checking for connectivity. type ConnectivityIssue struct { // Origin - READ-ONLY; The origin of the issue. Possible values include: 'OriginLocal', 'OriginInbound', 'OriginOutbound' @@ -5079,6 +5109,12 @@ type ConnectivityIssue struct { Context *[]map[string]*string `json:"context,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityIssue. +func (ci ConnectivityIssue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityParameters parameters that determine how the connectivity check will be performed. type ConnectivityParameters struct { Source *ConnectivitySource `json:"source,omitempty"` @@ -5386,6 +5422,12 @@ type DdosProtectionPlanPropertiesFormat struct { VirtualNetworks *[]SubResource `json:"virtualNetworks,omitempty"` } +// MarshalJSON is the custom marshaler for DdosProtectionPlanPropertiesFormat. +func (dpppf DdosProtectionPlanPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DdosProtectionPlansCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type DdosProtectionPlansCreateOrUpdateFuture struct { @@ -8751,6 +8793,12 @@ type GatewayRoute struct { Weight *int32 `json:"weight,omitempty"` } +// MarshalJSON is the custom marshaler for GatewayRoute. +func (gr GatewayRoute) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GatewayRouteListResult list of virtual network gateway routes type GatewayRouteListResult struct { autorest.Response `json:"-"` @@ -19213,6 +19261,12 @@ type TunnelConnectionHealth struct { LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"` } +// MarshalJSON is the custom marshaler for TunnelConnectionHealth. +func (tch TunnelConnectionHealth) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage describes network resource usage. type Usage struct { // ID - READ-ONLY; Resource identifier. @@ -22577,6 +22631,12 @@ type VirtualNetworkUsage struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsage. +func (vnu VirtualNetworkUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkUsageName usage strings container. type VirtualNetworkUsageName struct { // LocalizedValue - READ-ONLY; Localized subnet size and usage string. @@ -22585,6 +22645,12 @@ type VirtualNetworkUsageName struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsageName. +func (vnun VirtualNetworkUsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualWAN virtualWAN Resource. type VirtualWAN struct { autorest.Response `json:"-"` @@ -23684,6 +23750,12 @@ type VpnSiteID struct { VpnSite *string `json:"vpnSite,omitempty"` } +// MarshalJSON is the custom marshaler for VpnSiteID. +func (vsi VpnSiteID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnSiteProperties parameters for VpnSite type VpnSiteProperties struct { // VirtualWAN - The VirtualWAN to which the vpnSite belongs @@ -23991,6 +24063,12 @@ type WatcherPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for WatcherPropertiesFormat. +func (wpf WatcherPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WatchersCheckConnectivityFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type WatchersCheckConnectivityFuture struct { diff --git a/services/network/mgmt/2018-08-01/network/CHANGELOG.md b/services/network/mgmt/2018-08-01/network/CHANGELOG.md index 52911e4cc5e4..c9b14d773504 100644 --- a/services/network/mgmt/2018-08-01/network/CHANGELOG.md +++ b/services/network/mgmt/2018-08-01/network/CHANGELOG.md @@ -1,2 +1,23 @@ # Change History +## Additive Changes + +### New Funcs + +1. ApplicationSecurityGroupPropertiesFormat.MarshalJSON() ([]byte, error) +1. AzureFirewallFqdnTagPropertiesFormat.MarshalJSON() ([]byte, error) +1. BgpPeerStatus.MarshalJSON() ([]byte, error) +1. ConfigurationDiagnosticResponse.MarshalJSON() ([]byte, error) +1. ConnectivityHop.MarshalJSON() ([]byte, error) +1. ConnectivityInformation.MarshalJSON() ([]byte, error) +1. ConnectivityIssue.MarshalJSON() ([]byte, error) +1. ContainerNetworkInterfaceIPConfigurationPropertiesFormat.MarshalJSON() ([]byte, error) +1. DdosProtectionPlanPropertiesFormat.MarshalJSON() ([]byte, error) +1. ExpressRouteConnectionID.MarshalJSON() ([]byte, error) +1. ExpressRoutePortsLocationBandwidths.MarshalJSON() ([]byte, error) +1. GatewayRoute.MarshalJSON() ([]byte, error) +1. TunnelConnectionHealth.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsage.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsageName.MarshalJSON() ([]byte, error) +1. VpnSiteID.MarshalJSON() ([]byte, error) +1. WatcherPropertiesFormat.MarshalJSON() ([]byte, error) diff --git a/services/network/mgmt/2018-08-01/network/_meta.json b/services/network/mgmt/2018-08-01/network/_meta.json index e99c5f575a94..dcd8dffbab77 100644 --- a/services/network/mgmt/2018-08-01/network/_meta.json +++ b/services/network/mgmt/2018-08-01/network/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "tag": "package-2018-08", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/network/mgmt/2018-08-01/network/models.go b/services/network/mgmt/2018-08-01/network/models.go index f3acbc31464a..85d816b71a03 100644 --- a/services/network/mgmt/2018-08-01/network/models.go +++ b/services/network/mgmt/2018-08-01/network/models.go @@ -3145,6 +3145,12 @@ type ApplicationSecurityGroupPropertiesFormat struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationSecurityGroupPropertiesFormat. +func (asgpf ApplicationSecurityGroupPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationSecurityGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type ApplicationSecurityGroupsCreateOrUpdateFuture struct { @@ -4157,6 +4163,12 @@ type AzureFirewallFqdnTagPropertiesFormat struct { FqdnTagName *string `json:"fqdnTagName,omitempty"` } +// MarshalJSON is the custom marshaler for AzureFirewallFqdnTagPropertiesFormat. +func (afftpf AzureFirewallFqdnTagPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureFirewallIPConfiguration IP configuration of an Azure Firewall. type AzureFirewallIPConfiguration struct { *AzureFirewallIPConfigurationPropertiesFormat `json:"properties,omitempty"` @@ -4917,6 +4929,12 @@ type BgpPeerStatus struct { MessagesReceived *int64 `json:"messagesReceived,omitempty"` } +// MarshalJSON is the custom marshaler for BgpPeerStatus. +func (bps BgpPeerStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BgpPeerStatusListResult response for list BGP peer status API service call type BgpPeerStatusListResult struct { autorest.Response `json:"-"` @@ -5235,6 +5253,12 @@ type ConfigurationDiagnosticResponse struct { Results *[]ConfigurationDiagnosticResult `json:"results,omitempty"` } +// MarshalJSON is the custom marshaler for ConfigurationDiagnosticResponse. +func (cdr ConfigurationDiagnosticResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConfigurationDiagnosticResult network configuration diagnostic result corresponded to provided traffic // query. type ConfigurationDiagnosticResult struct { @@ -5777,6 +5801,12 @@ type ConnectivityHop struct { Issues *[]ConnectivityIssue `json:"issues,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityHop. +func (ch ConnectivityHop) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityInformation information on the connectivity status. type ConnectivityInformation struct { autorest.Response `json:"-"` @@ -5796,6 +5826,12 @@ type ConnectivityInformation struct { ProbesFailed *int32 `json:"probesFailed,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityInformation. +func (ci ConnectivityInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityIssue information about an issue encountered in the process of checking for connectivity. type ConnectivityIssue struct { // Origin - READ-ONLY; The origin of the issue. Possible values include: 'OriginLocal', 'OriginInbound', 'OriginOutbound' @@ -5808,6 +5844,12 @@ type ConnectivityIssue struct { Context *[]map[string]*string `json:"context,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityIssue. +func (ci ConnectivityIssue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityParameters parameters that determine how the connectivity check will be performed. type ConnectivityParameters struct { Source *ConnectivitySource `json:"source,omitempty"` @@ -6123,6 +6165,12 @@ type ContainerNetworkInterfaceIPConfigurationPropertiesFormat struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerNetworkInterfaceIPConfigurationPropertiesFormat. +func (cniicpf ContainerNetworkInterfaceIPConfigurationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerNetworkInterfacePropertiesFormat ... type ContainerNetworkInterfacePropertiesFormat struct { // ContainerNetworkInterfaceConfiguration - Container network interface configuration from which this container network interface is created. @@ -6440,6 +6488,12 @@ type DdosProtectionPlanPropertiesFormat struct { VirtualNetworks *[]SubResource `json:"virtualNetworks,omitempty"` } +// MarshalJSON is the custom marshaler for DdosProtectionPlanPropertiesFormat. +func (dpppf DdosProtectionPlanPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DdosProtectionPlansCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type DdosProtectionPlansCreateOrUpdateFuture struct { @@ -8526,6 +8580,12 @@ type ExpressRouteConnectionID struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRouteConnectionID. +func (erci ExpressRouteConnectionID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRouteConnectionList expressRouteConnection list type ExpressRouteConnectionList struct { autorest.Response `json:"-"` @@ -10636,6 +10696,12 @@ type ExpressRoutePortsLocationBandwidths struct { ValueInGbps *int32 `json:"valueInGbps,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRoutePortsLocationBandwidths. +func (erplb ExpressRoutePortsLocationBandwidths) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRoutePortsLocationListResult response for ListExpressRoutePortsLocations API service call. type ExpressRoutePortsLocationListResult struct { autorest.Response `json:"-"` @@ -11386,6 +11452,12 @@ type GatewayRoute struct { Weight *int32 `json:"weight,omitempty"` } +// MarshalJSON is the custom marshaler for GatewayRoute. +func (gr GatewayRoute) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GatewayRouteListResult list of virtual network gateway routes type GatewayRouteListResult struct { autorest.Response `json:"-"` @@ -24643,6 +24715,12 @@ type TunnelConnectionHealth struct { LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"` } +// MarshalJSON is the custom marshaler for TunnelConnectionHealth. +func (tch TunnelConnectionHealth) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage describes network resource usage. type Usage struct { // ID - READ-ONLY; Resource identifier. @@ -28513,6 +28591,12 @@ type VirtualNetworkUsage struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsage. +func (vnu VirtualNetworkUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkUsageName usage strings container. type VirtualNetworkUsageName struct { // LocalizedValue - READ-ONLY; Localized subnet size and usage string. @@ -28521,6 +28605,12 @@ type VirtualNetworkUsageName struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsageName. +func (vnun VirtualNetworkUsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualWAN virtualWAN Resource. type VirtualWAN struct { autorest.Response `json:"-"` @@ -29710,6 +29800,12 @@ type VpnSiteID struct { VpnSite *string `json:"vpnSite,omitempty"` } +// MarshalJSON is the custom marshaler for VpnSiteID. +func (vsi VpnSiteID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnSiteProperties parameters for VpnSite type VpnSiteProperties struct { // VirtualWan - The VirtualWAN to which the vpnSite belongs @@ -30019,6 +30115,12 @@ type WatcherPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for WatcherPropertiesFormat. +func (wpf WatcherPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WatchersCheckConnectivityFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type WatchersCheckConnectivityFuture struct { diff --git a/services/network/mgmt/2018-10-01/network/CHANGELOG.md b/services/network/mgmt/2018-10-01/network/CHANGELOG.md index 52911e4cc5e4..2b9f1f7fabe0 100644 --- a/services/network/mgmt/2018-10-01/network/CHANGELOG.md +++ b/services/network/mgmt/2018-10-01/network/CHANGELOG.md @@ -1,2 +1,24 @@ # Change History +## Additive Changes + +### New Funcs + +1. ApplicationSecurityGroupPropertiesFormat.MarshalJSON() ([]byte, error) +1. AzureFirewallFqdnTagPropertiesFormat.MarshalJSON() ([]byte, error) +1. BgpPeerStatus.MarshalJSON() ([]byte, error) +1. ConfigurationDiagnosticResponse.MarshalJSON() ([]byte, error) +1. ConnectivityHop.MarshalJSON() ([]byte, error) +1. ConnectivityInformation.MarshalJSON() ([]byte, error) +1. ConnectivityIssue.MarshalJSON() ([]byte, error) +1. ContainerNetworkInterfaceIPConfigurationPropertiesFormat.MarshalJSON() ([]byte, error) +1. DdosProtectionPlanPropertiesFormat.MarshalJSON() ([]byte, error) +1. ExpressRouteConnectionID.MarshalJSON() ([]byte, error) +1. ExpressRoutePortsLocationBandwidths.MarshalJSON() ([]byte, error) +1. GatewayRoute.MarshalJSON() ([]byte, error) +1. ManagedServiceIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. TunnelConnectionHealth.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsage.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsageName.MarshalJSON() ([]byte, error) +1. VpnSiteID.MarshalJSON() ([]byte, error) +1. WatcherPropertiesFormat.MarshalJSON() ([]byte, error) diff --git a/services/network/mgmt/2018-10-01/network/_meta.json b/services/network/mgmt/2018-10-01/network/_meta.json index 21c9d8debaf5..d7647fabe59a 100644 --- a/services/network/mgmt/2018-10-01/network/_meta.json +++ b/services/network/mgmt/2018-10-01/network/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "tag": "package-2018-10", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/network/mgmt/2018-10-01/network/models.go b/services/network/mgmt/2018-10-01/network/models.go index a01d14a6bce7..4e296dc54db8 100644 --- a/services/network/mgmt/2018-10-01/network/models.go +++ b/services/network/mgmt/2018-10-01/network/models.go @@ -3291,6 +3291,12 @@ type ApplicationSecurityGroupPropertiesFormat struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationSecurityGroupPropertiesFormat. +func (asgpf ApplicationSecurityGroupPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationSecurityGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type ApplicationSecurityGroupsCreateOrUpdateFuture struct { @@ -4303,6 +4309,12 @@ type AzureFirewallFqdnTagPropertiesFormat struct { FqdnTagName *string `json:"fqdnTagName,omitempty"` } +// MarshalJSON is the custom marshaler for AzureFirewallFqdnTagPropertiesFormat. +func (afftpf AzureFirewallFqdnTagPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureFirewallIPConfiguration IP configuration of an Azure Firewall. type AzureFirewallIPConfiguration struct { *AzureFirewallIPConfigurationPropertiesFormat `json:"properties,omitempty"` @@ -5078,6 +5090,12 @@ type BgpPeerStatus struct { MessagesReceived *int64 `json:"messagesReceived,omitempty"` } +// MarshalJSON is the custom marshaler for BgpPeerStatus. +func (bps BgpPeerStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BgpPeerStatusListResult response for list BGP peer status API service call type BgpPeerStatusListResult struct { autorest.Response `json:"-"` @@ -5396,6 +5414,12 @@ type ConfigurationDiagnosticResponse struct { Results *[]ConfigurationDiagnosticResult `json:"results,omitempty"` } +// MarshalJSON is the custom marshaler for ConfigurationDiagnosticResponse. +func (cdr ConfigurationDiagnosticResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConfigurationDiagnosticResult network configuration diagnostic result corresponded to provided traffic // query. type ConfigurationDiagnosticResult struct { @@ -5938,6 +5962,12 @@ type ConnectivityHop struct { Issues *[]ConnectivityIssue `json:"issues,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityHop. +func (ch ConnectivityHop) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityInformation information on the connectivity status. type ConnectivityInformation struct { autorest.Response `json:"-"` @@ -5957,6 +5987,12 @@ type ConnectivityInformation struct { ProbesFailed *int32 `json:"probesFailed,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityInformation. +func (ci ConnectivityInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityIssue information about an issue encountered in the process of checking for connectivity. type ConnectivityIssue struct { // Origin - READ-ONLY; The origin of the issue. Possible values include: 'OriginLocal', 'OriginInbound', 'OriginOutbound' @@ -5969,6 +6005,12 @@ type ConnectivityIssue struct { Context *[]map[string]*string `json:"context,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityIssue. +func (ci ConnectivityIssue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityParameters parameters that determine how the connectivity check will be performed. type ConnectivityParameters struct { Source *ConnectivitySource `json:"source,omitempty"` @@ -6284,6 +6326,12 @@ type ContainerNetworkInterfaceIPConfigurationPropertiesFormat struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerNetworkInterfaceIPConfigurationPropertiesFormat. +func (cniicpf ContainerNetworkInterfaceIPConfigurationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerNetworkInterfacePropertiesFormat ... type ContainerNetworkInterfacePropertiesFormat struct { // ContainerNetworkInterfaceConfiguration - Container network interface configuration from which this container network interface is created. @@ -6601,6 +6649,12 @@ type DdosProtectionPlanPropertiesFormat struct { VirtualNetworks *[]SubResource `json:"virtualNetworks,omitempty"` } +// MarshalJSON is the custom marshaler for DdosProtectionPlanPropertiesFormat. +func (dpppf DdosProtectionPlanPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DdosProtectionPlansCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type DdosProtectionPlansCreateOrUpdateFuture struct { @@ -8848,6 +8902,12 @@ type ExpressRouteConnectionID struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRouteConnectionID. +func (erci ExpressRouteConnectionID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRouteConnectionList expressRouteConnection list type ExpressRouteConnectionList struct { autorest.Response `json:"-"` @@ -10958,6 +11018,12 @@ type ExpressRoutePortsLocationBandwidths struct { ValueInGbps *int32 `json:"valueInGbps,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRoutePortsLocationBandwidths. +func (erplb ExpressRoutePortsLocationBandwidths) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRoutePortsLocationListResult response for ListExpressRoutePortsLocations API service call. type ExpressRoutePortsLocationListResult struct { autorest.Response `json:"-"` @@ -11717,6 +11783,12 @@ type GatewayRoute struct { Weight *int32 `json:"weight,omitempty"` } +// MarshalJSON is the custom marshaler for GatewayRoute. +func (gr GatewayRoute) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GatewayRouteListResult list of virtual network gateway routes type GatewayRouteListResult struct { autorest.Response `json:"-"` @@ -17548,6 +17620,12 @@ type ManagedServiceIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedServiceIdentityUserAssignedIdentitiesValue. +func (msiAiv ManagedServiceIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MatchedRule matched rule. type MatchedRule struct { // RuleName - Name of the matched network security rule. @@ -25008,6 +25086,12 @@ type TunnelConnectionHealth struct { LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"` } +// MarshalJSON is the custom marshaler for TunnelConnectionHealth. +func (tch TunnelConnectionHealth) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage describes network resource usage. type Usage struct { // ID - READ-ONLY; Resource identifier. @@ -28878,6 +28962,12 @@ type VirtualNetworkUsage struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsage. +func (vnu VirtualNetworkUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkUsageName usage strings container. type VirtualNetworkUsageName struct { // LocalizedValue - READ-ONLY; Localized subnet size and usage string. @@ -28886,6 +28976,12 @@ type VirtualNetworkUsageName struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsageName. +func (vnun VirtualNetworkUsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualWAN virtualWAN Resource. type VirtualWAN struct { autorest.Response `json:"-"` @@ -30075,6 +30171,12 @@ type VpnSiteID struct { VpnSite *string `json:"vpnSite,omitempty"` } +// MarshalJSON is the custom marshaler for VpnSiteID. +func (vsi VpnSiteID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnSiteProperties parameters for VpnSite type VpnSiteProperties struct { // VirtualWan - The VirtualWAN to which the vpnSite belongs @@ -30384,6 +30486,12 @@ type WatcherPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for WatcherPropertiesFormat. +func (wpf WatcherPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WatchersCheckConnectivityFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type WatchersCheckConnectivityFuture struct { diff --git a/services/network/mgmt/2018-11-01/network/CHANGELOG.md b/services/network/mgmt/2018-11-01/network/CHANGELOG.md index 52911e4cc5e4..2b9f1f7fabe0 100644 --- a/services/network/mgmt/2018-11-01/network/CHANGELOG.md +++ b/services/network/mgmt/2018-11-01/network/CHANGELOG.md @@ -1,2 +1,24 @@ # Change History +## Additive Changes + +### New Funcs + +1. ApplicationSecurityGroupPropertiesFormat.MarshalJSON() ([]byte, error) +1. AzureFirewallFqdnTagPropertiesFormat.MarshalJSON() ([]byte, error) +1. BgpPeerStatus.MarshalJSON() ([]byte, error) +1. ConfigurationDiagnosticResponse.MarshalJSON() ([]byte, error) +1. ConnectivityHop.MarshalJSON() ([]byte, error) +1. ConnectivityInformation.MarshalJSON() ([]byte, error) +1. ConnectivityIssue.MarshalJSON() ([]byte, error) +1. ContainerNetworkInterfaceIPConfigurationPropertiesFormat.MarshalJSON() ([]byte, error) +1. DdosProtectionPlanPropertiesFormat.MarshalJSON() ([]byte, error) +1. ExpressRouteConnectionID.MarshalJSON() ([]byte, error) +1. ExpressRoutePortsLocationBandwidths.MarshalJSON() ([]byte, error) +1. GatewayRoute.MarshalJSON() ([]byte, error) +1. ManagedServiceIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. TunnelConnectionHealth.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsage.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsageName.MarshalJSON() ([]byte, error) +1. VpnSiteID.MarshalJSON() ([]byte, error) +1. WatcherPropertiesFormat.MarshalJSON() ([]byte, error) diff --git a/services/network/mgmt/2018-11-01/network/_meta.json b/services/network/mgmt/2018-11-01/network/_meta.json index bc07442956c2..c847294c3a27 100644 --- a/services/network/mgmt/2018-11-01/network/_meta.json +++ b/services/network/mgmt/2018-11-01/network/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "tag": "package-2018-11", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/network/mgmt/2018-11-01/network/models.go b/services/network/mgmt/2018-11-01/network/models.go index 0df1481711a2..89743e875f41 100644 --- a/services/network/mgmt/2018-11-01/network/models.go +++ b/services/network/mgmt/2018-11-01/network/models.go @@ -3293,6 +3293,12 @@ type ApplicationSecurityGroupPropertiesFormat struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationSecurityGroupPropertiesFormat. +func (asgpf ApplicationSecurityGroupPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationSecurityGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type ApplicationSecurityGroupsCreateOrUpdateFuture struct { @@ -4348,6 +4354,12 @@ type AzureFirewallFqdnTagPropertiesFormat struct { FqdnTagName *string `json:"fqdnTagName,omitempty"` } +// MarshalJSON is the custom marshaler for AzureFirewallFqdnTagPropertiesFormat. +func (afftpf AzureFirewallFqdnTagPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureFirewallIPConfiguration IP configuration of an Azure Firewall. type AzureFirewallIPConfiguration struct { *AzureFirewallIPConfigurationPropertiesFormat `json:"properties,omitempty"` @@ -5123,6 +5135,12 @@ type BgpPeerStatus struct { MessagesReceived *int64 `json:"messagesReceived,omitempty"` } +// MarshalJSON is the custom marshaler for BgpPeerStatus. +func (bps BgpPeerStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BgpPeerStatusListResult response for list BGP peer status API service call type BgpPeerStatusListResult struct { autorest.Response `json:"-"` @@ -5459,6 +5477,12 @@ type ConfigurationDiagnosticResponse struct { Results *[]ConfigurationDiagnosticResult `json:"results,omitempty"` } +// MarshalJSON is the custom marshaler for ConfigurationDiagnosticResponse. +func (cdr ConfigurationDiagnosticResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConfigurationDiagnosticResult network configuration diagnostic result corresponded to provided traffic // query. type ConfigurationDiagnosticResult struct { @@ -6001,6 +6025,12 @@ type ConnectivityHop struct { Issues *[]ConnectivityIssue `json:"issues,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityHop. +func (ch ConnectivityHop) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityInformation information on the connectivity status. type ConnectivityInformation struct { autorest.Response `json:"-"` @@ -6020,6 +6050,12 @@ type ConnectivityInformation struct { ProbesFailed *int32 `json:"probesFailed,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityInformation. +func (ci ConnectivityInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityIssue information about an issue encountered in the process of checking for connectivity. type ConnectivityIssue struct { // Origin - READ-ONLY; The origin of the issue. Possible values include: 'OriginLocal', 'OriginInbound', 'OriginOutbound' @@ -6032,6 +6068,12 @@ type ConnectivityIssue struct { Context *[]map[string]*string `json:"context,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityIssue. +func (ci ConnectivityIssue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityParameters parameters that determine how the connectivity check will be performed. type ConnectivityParameters struct { Source *ConnectivitySource `json:"source,omitempty"` @@ -6347,6 +6389,12 @@ type ContainerNetworkInterfaceIPConfigurationPropertiesFormat struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerNetworkInterfaceIPConfigurationPropertiesFormat. +func (cniicpf ContainerNetworkInterfaceIPConfigurationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerNetworkInterfacePropertiesFormat ... type ContainerNetworkInterfacePropertiesFormat struct { // ContainerNetworkInterfaceConfiguration - Container network interface configuration from which this container network interface is created. @@ -6923,6 +6971,12 @@ type DdosProtectionPlanPropertiesFormat struct { VirtualNetworks *[]SubResource `json:"virtualNetworks,omitempty"` } +// MarshalJSON is the custom marshaler for DdosProtectionPlanPropertiesFormat. +func (dpppf DdosProtectionPlanPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DdosProtectionPlansCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type DdosProtectionPlansCreateOrUpdateFuture struct { @@ -9221,6 +9275,12 @@ type ExpressRouteConnectionID struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRouteConnectionID. +func (erci ExpressRouteConnectionID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRouteConnectionList expressRouteConnection list type ExpressRouteConnectionList struct { autorest.Response `json:"-"` @@ -11331,6 +11391,12 @@ type ExpressRoutePortsLocationBandwidths struct { ValueInGbps *int32 `json:"valueInGbps,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRoutePortsLocationBandwidths. +func (erplb ExpressRoutePortsLocationBandwidths) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRoutePortsLocationListResult response for ListExpressRoutePortsLocations API service call. type ExpressRoutePortsLocationListResult struct { autorest.Response `json:"-"` @@ -12090,6 +12156,12 @@ type GatewayRoute struct { Weight *int32 `json:"weight,omitempty"` } +// MarshalJSON is the custom marshaler for GatewayRoute. +func (gr GatewayRoute) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GatewayRouteListResult list of virtual network gateway routes type GatewayRouteListResult struct { autorest.Response `json:"-"` @@ -17927,6 +17999,12 @@ type ManagedServiceIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedServiceIdentityUserAssignedIdentitiesValue. +func (msiAiv ManagedServiceIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MatchedRule matched rule. type MatchedRule struct { // RuleName - Name of the matched network security rule. @@ -25404,6 +25482,12 @@ type TunnelConnectionHealth struct { LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"` } +// MarshalJSON is the custom marshaler for TunnelConnectionHealth. +func (tch TunnelConnectionHealth) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage describes network resource usage. type Usage struct { // ID - READ-ONLY; Resource identifier. @@ -29274,6 +29358,12 @@ type VirtualNetworkUsage struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsage. +func (vnu VirtualNetworkUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkUsageName usage strings container. type VirtualNetworkUsageName struct { // LocalizedValue - READ-ONLY; Localized subnet size and usage string. @@ -29282,6 +29372,12 @@ type VirtualNetworkUsageName struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsageName. +func (vnun VirtualNetworkUsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualWAN virtualWAN Resource. type VirtualWAN struct { autorest.Response `json:"-"` @@ -30471,6 +30567,12 @@ type VpnSiteID struct { VpnSite *string `json:"vpnSite,omitempty"` } +// MarshalJSON is the custom marshaler for VpnSiteID. +func (vsi VpnSiteID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnSiteProperties parameters for VpnSite type VpnSiteProperties struct { // VirtualWan - The VirtualWAN to which the vpnSite belongs @@ -30780,6 +30882,12 @@ type WatcherPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for WatcherPropertiesFormat. +func (wpf WatcherPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WatchersCheckConnectivityFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type WatchersCheckConnectivityFuture struct { diff --git a/services/network/mgmt/2018-12-01/network/CHANGELOG.md b/services/network/mgmt/2018-12-01/network/CHANGELOG.md index 52911e4cc5e4..947aa586cd64 100644 --- a/services/network/mgmt/2018-12-01/network/CHANGELOG.md +++ b/services/network/mgmt/2018-12-01/network/CHANGELOG.md @@ -1,2 +1,25 @@ # Change History +## Additive Changes + +### New Funcs + +1. ApplicationSecurityGroupPropertiesFormat.MarshalJSON() ([]byte, error) +1. AzureFirewallFqdnTagPropertiesFormat.MarshalJSON() ([]byte, error) +1. BgpPeerStatus.MarshalJSON() ([]byte, error) +1. ConfigurationDiagnosticResponse.MarshalJSON() ([]byte, error) +1. ConnectivityHop.MarshalJSON() ([]byte, error) +1. ConnectivityInformation.MarshalJSON() ([]byte, error) +1. ConnectivityIssue.MarshalJSON() ([]byte, error) +1. ContainerNetworkInterfaceIPConfigurationPropertiesFormat.MarshalJSON() ([]byte, error) +1. DdosProtectionPlanPropertiesFormat.MarshalJSON() ([]byte, error) +1. ExpressRouteConnectionID.MarshalJSON() ([]byte, error) +1. ExpressRoutePortsLocationBandwidths.MarshalJSON() ([]byte, error) +1. GatewayRoute.MarshalJSON() ([]byte, error) +1. ManagedServiceIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. TunnelConnectionHealth.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsage.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsageName.MarshalJSON() ([]byte, error) +1. VpnSiteID.MarshalJSON() ([]byte, error) +1. WatcherPropertiesFormat.MarshalJSON() ([]byte, error) +1. WebApplicationFirewallPolicyListResult.MarshalJSON() ([]byte, error) diff --git a/services/network/mgmt/2018-12-01/network/_meta.json b/services/network/mgmt/2018-12-01/network/_meta.json index 894dc0896440..ff1b18571bf7 100644 --- a/services/network/mgmt/2018-12-01/network/_meta.json +++ b/services/network/mgmt/2018-12-01/network/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "tag": "package-2018-12", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/network/mgmt/2018-12-01/network/models.go b/services/network/mgmt/2018-12-01/network/models.go index 0351c785455c..f53be7691d71 100644 --- a/services/network/mgmt/2018-12-01/network/models.go +++ b/services/network/mgmt/2018-12-01/network/models.go @@ -3316,6 +3316,12 @@ type ApplicationSecurityGroupPropertiesFormat struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationSecurityGroupPropertiesFormat. +func (asgpf ApplicationSecurityGroupPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationSecurityGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type ApplicationSecurityGroupsCreateOrUpdateFuture struct { @@ -4371,6 +4377,12 @@ type AzureFirewallFqdnTagPropertiesFormat struct { FqdnTagName *string `json:"fqdnTagName,omitempty"` } +// MarshalJSON is the custom marshaler for AzureFirewallFqdnTagPropertiesFormat. +func (afftpf AzureFirewallFqdnTagPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureFirewallIPConfiguration IP configuration of an Azure Firewall. type AzureFirewallIPConfiguration struct { *AzureFirewallIPConfigurationPropertiesFormat `json:"properties,omitempty"` @@ -5148,6 +5160,12 @@ type BgpPeerStatus struct { MessagesReceived *int64 `json:"messagesReceived,omitempty"` } +// MarshalJSON is the custom marshaler for BgpPeerStatus. +func (bps BgpPeerStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BgpPeerStatusListResult response for list BGP peer status API service call type BgpPeerStatusListResult struct { autorest.Response `json:"-"` @@ -5484,6 +5502,12 @@ type ConfigurationDiagnosticResponse struct { Results *[]ConfigurationDiagnosticResult `json:"results,omitempty"` } +// MarshalJSON is the custom marshaler for ConfigurationDiagnosticResponse. +func (cdr ConfigurationDiagnosticResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConfigurationDiagnosticResult network configuration diagnostic result corresponded to provided traffic // query. type ConfigurationDiagnosticResult struct { @@ -6026,6 +6050,12 @@ type ConnectivityHop struct { Issues *[]ConnectivityIssue `json:"issues,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityHop. +func (ch ConnectivityHop) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityInformation information on the connectivity status. type ConnectivityInformation struct { autorest.Response `json:"-"` @@ -6045,6 +6075,12 @@ type ConnectivityInformation struct { ProbesFailed *int32 `json:"probesFailed,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityInformation. +func (ci ConnectivityInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityIssue information about an issue encountered in the process of checking for connectivity. type ConnectivityIssue struct { // Origin - READ-ONLY; The origin of the issue. Possible values include: 'OriginLocal', 'OriginInbound', 'OriginOutbound' @@ -6057,6 +6093,12 @@ type ConnectivityIssue struct { Context *[]map[string]*string `json:"context,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityIssue. +func (ci ConnectivityIssue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityParameters parameters that determine how the connectivity check will be performed. type ConnectivityParameters struct { Source *ConnectivitySource `json:"source,omitempty"` @@ -6372,6 +6414,12 @@ type ContainerNetworkInterfaceIPConfigurationPropertiesFormat struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerNetworkInterfaceIPConfigurationPropertiesFormat. +func (cniicpf ContainerNetworkInterfaceIPConfigurationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerNetworkInterfacePropertiesFormat ... type ContainerNetworkInterfacePropertiesFormat struct { // ContainerNetworkInterfaceConfiguration - Container network interface configuration from which this container network interface is created. @@ -6948,6 +6996,12 @@ type DdosProtectionPlanPropertiesFormat struct { VirtualNetworks *[]SubResource `json:"virtualNetworks,omitempty"` } +// MarshalJSON is the custom marshaler for DdosProtectionPlanPropertiesFormat. +func (dpppf DdosProtectionPlanPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DdosProtectionPlansCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type DdosProtectionPlansCreateOrUpdateFuture struct { @@ -9316,6 +9370,12 @@ type ExpressRouteConnectionID struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRouteConnectionID. +func (erci ExpressRouteConnectionID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRouteConnectionList expressRouteConnection list type ExpressRouteConnectionList struct { autorest.Response `json:"-"` @@ -11426,6 +11486,12 @@ type ExpressRoutePortsLocationBandwidths struct { ValueInGbps *int32 `json:"valueInGbps,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRoutePortsLocationBandwidths. +func (erplb ExpressRoutePortsLocationBandwidths) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRoutePortsLocationListResult response for ListExpressRoutePortsLocations API service call. type ExpressRoutePortsLocationListResult struct { autorest.Response `json:"-"` @@ -12185,6 +12251,12 @@ type GatewayRoute struct { Weight *int32 `json:"weight,omitempty"` } +// MarshalJSON is the custom marshaler for GatewayRoute. +func (gr GatewayRoute) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GatewayRouteListResult list of virtual network gateway routes type GatewayRouteListResult struct { autorest.Response `json:"-"` @@ -18063,6 +18135,12 @@ type ManagedServiceIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedServiceIdentityUserAssignedIdentitiesValue. +func (msiAiv ManagedServiceIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MatchCondition define match conditions type MatchCondition struct { // MatchVariables - List of match variables @@ -25898,6 +25976,12 @@ type TunnelConnectionHealth struct { LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"` } +// MarshalJSON is the custom marshaler for TunnelConnectionHealth. +func (tch TunnelConnectionHealth) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage describes network resource usage. type Usage struct { // ID - READ-ONLY; Resource identifier. @@ -29768,6 +29852,12 @@ type VirtualNetworkUsage struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsage. +func (vnu VirtualNetworkUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkUsageName usage strings container. type VirtualNetworkUsageName struct { // LocalizedValue - READ-ONLY; Localized subnet size and usage string. @@ -29776,6 +29866,12 @@ type VirtualNetworkUsageName struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsageName. +func (vnun VirtualNetworkUsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualWAN virtualWAN Resource. type VirtualWAN struct { autorest.Response `json:"-"` @@ -30965,6 +31061,12 @@ type VpnSiteID struct { VpnSite *string `json:"vpnSite,omitempty"` } +// MarshalJSON is the custom marshaler for VpnSiteID. +func (vsi VpnSiteID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnSiteProperties parameters for VpnSite type VpnSiteProperties struct { // VirtualWan - The VirtualWAN to which the vpnSite belongs @@ -31274,6 +31376,12 @@ type WatcherPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for WatcherPropertiesFormat. +func (wpf WatcherPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WatchersCheckConnectivityFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type WatchersCheckConnectivityFuture struct { @@ -31986,6 +32094,12 @@ type WebApplicationFirewallPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for WebApplicationFirewallPolicyListResult. +func (wafplr WebApplicationFirewallPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WebApplicationFirewallPolicyListResultIterator provides access to a complete listing of // WebApplicationFirewallPolicy values. type WebApplicationFirewallPolicyListResultIterator struct { diff --git a/services/network/mgmt/2019-02-01/network/CHANGELOG.md b/services/network/mgmt/2019-02-01/network/CHANGELOG.md index 52911e4cc5e4..0a2c505e0670 100644 --- a/services/network/mgmt/2019-02-01/network/CHANGELOG.md +++ b/services/network/mgmt/2019-02-01/network/CHANGELOG.md @@ -1,2 +1,24 @@ # Change History +## Additive Changes + +### New Funcs + +1. ApplicationSecurityGroupPropertiesFormat.MarshalJSON() ([]byte, error) +1. AzureFirewallFqdnTagPropertiesFormat.MarshalJSON() ([]byte, error) +1. BgpPeerStatus.MarshalJSON() ([]byte, error) +1. ConfigurationDiagnosticResponse.MarshalJSON() ([]byte, error) +1. ConnectivityHop.MarshalJSON() ([]byte, error) +1. ConnectivityInformation.MarshalJSON() ([]byte, error) +1. ConnectivityIssue.MarshalJSON() ([]byte, error) +1. ContainerNetworkInterfaceIPConfigurationPropertiesFormat.MarshalJSON() ([]byte, error) +1. DdosProtectionPlanPropertiesFormat.MarshalJSON() ([]byte, error) +1. ExpressRouteConnectionID.MarshalJSON() ([]byte, error) +1. ExpressRoutePortsLocationBandwidths.MarshalJSON() ([]byte, error) +1. GatewayRoute.MarshalJSON() ([]byte, error) +1. ManagedServiceIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. TunnelConnectionHealth.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsage.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsageName.MarshalJSON() ([]byte, error) +1. VpnSiteID.MarshalJSON() ([]byte, error) +1. WebApplicationFirewallPolicyListResult.MarshalJSON() ([]byte, error) diff --git a/services/network/mgmt/2019-02-01/network/_meta.json b/services/network/mgmt/2019-02-01/network/_meta.json index 948f45d5babe..5d94c3676348 100644 --- a/services/network/mgmt/2019-02-01/network/_meta.json +++ b/services/network/mgmt/2019-02-01/network/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "tag": "package-2019-02", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/network/mgmt/2019-02-01/network/models.go b/services/network/mgmt/2019-02-01/network/models.go index e1bda0aa7d5b..04e8ce4d836b 100644 --- a/services/network/mgmt/2019-02-01/network/models.go +++ b/services/network/mgmt/2019-02-01/network/models.go @@ -3408,6 +3408,12 @@ type ApplicationSecurityGroupPropertiesFormat struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationSecurityGroupPropertiesFormat. +func (asgpf ApplicationSecurityGroupPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationSecurityGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type ApplicationSecurityGroupsCreateOrUpdateFuture struct { @@ -4467,6 +4473,12 @@ type AzureFirewallFqdnTagPropertiesFormat struct { FqdnTagName *string `json:"fqdnTagName,omitempty"` } +// MarshalJSON is the custom marshaler for AzureFirewallFqdnTagPropertiesFormat. +func (afftpf AzureFirewallFqdnTagPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureFirewallIPConfiguration IP configuration of an Azure Firewall. type AzureFirewallIPConfiguration struct { // AzureFirewallIPConfigurationPropertiesFormat - Properties of the azure firewall IP configuration. @@ -5249,6 +5261,12 @@ type BgpPeerStatus struct { MessagesReceived *int64 `json:"messagesReceived,omitempty"` } +// MarshalJSON is the custom marshaler for BgpPeerStatus. +func (bps BgpPeerStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BgpPeerStatusListResult response for list BGP peer status API service call type BgpPeerStatusListResult struct { autorest.Response `json:"-"` @@ -5586,6 +5604,12 @@ type ConfigurationDiagnosticResponse struct { Results *[]ConfigurationDiagnosticResult `json:"results,omitempty"` } +// MarshalJSON is the custom marshaler for ConfigurationDiagnosticResponse. +func (cdr ConfigurationDiagnosticResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConfigurationDiagnosticResult network configuration diagnostic result corresponded to provided traffic // query. type ConfigurationDiagnosticResult struct { @@ -6137,6 +6161,12 @@ type ConnectivityHop struct { Issues *[]ConnectivityIssue `json:"issues,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityHop. +func (ch ConnectivityHop) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityInformation information on the connectivity status. type ConnectivityInformation struct { autorest.Response `json:"-"` @@ -6156,6 +6186,12 @@ type ConnectivityInformation struct { ProbesFailed *int32 `json:"probesFailed,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityInformation. +func (ci ConnectivityInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityIssue information about an issue encountered in the process of checking for connectivity. type ConnectivityIssue struct { // Origin - READ-ONLY; The origin of the issue. Possible values include: 'OriginLocal', 'OriginInbound', 'OriginOutbound' @@ -6168,6 +6204,12 @@ type ConnectivityIssue struct { Context *[]map[string]*string `json:"context,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityIssue. +func (ci ConnectivityIssue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityParameters parameters that determine how the connectivity check will be performed. type ConnectivityParameters struct { // Source - Describes the source of the connection. @@ -6486,6 +6528,12 @@ type ContainerNetworkInterfaceIPConfigurationPropertiesFormat struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerNetworkInterfaceIPConfigurationPropertiesFormat. +func (cniicpf ContainerNetworkInterfaceIPConfigurationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerNetworkInterfacePropertiesFormat properties of container network interface. type ContainerNetworkInterfacePropertiesFormat struct { // ContainerNetworkInterfaceConfiguration - Container network interface configuration from which this container network interface is created. @@ -7062,6 +7110,12 @@ type DdosProtectionPlanPropertiesFormat struct { VirtualNetworks *[]SubResource `json:"virtualNetworks,omitempty"` } +// MarshalJSON is the custom marshaler for DdosProtectionPlanPropertiesFormat. +func (dpppf DdosProtectionPlanPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DdosProtectionPlansCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type DdosProtectionPlansCreateOrUpdateFuture struct { @@ -9445,6 +9499,12 @@ type ExpressRouteConnectionID struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRouteConnectionID. +func (erci ExpressRouteConnectionID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRouteConnectionList expressRouteConnection list type ExpressRouteConnectionList struct { autorest.Response `json:"-"` @@ -11546,6 +11606,12 @@ type ExpressRoutePortsLocationBandwidths struct { ValueInGbps *int32 `json:"valueInGbps,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRoutePortsLocationBandwidths. +func (erplb ExpressRoutePortsLocationBandwidths) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRoutePortsLocationListResult response for ListExpressRoutePortsLocations API service call. type ExpressRoutePortsLocationListResult struct { autorest.Response `json:"-"` @@ -12310,6 +12376,12 @@ type GatewayRoute struct { Weight *int32 `json:"weight,omitempty"` } +// MarshalJSON is the custom marshaler for GatewayRoute. +func (gr GatewayRoute) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GatewayRouteListResult list of virtual network gateway routes type GatewayRouteListResult struct { autorest.Response `json:"-"` @@ -18190,6 +18262,12 @@ type ManagedServiceIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedServiceIdentityUserAssignedIdentitiesValue. +func (msiAiv ManagedServiceIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MatchCondition define match conditions type MatchCondition struct { // MatchVariables - List of match variables @@ -26492,6 +26570,12 @@ type TunnelConnectionHealth struct { LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"` } +// MarshalJSON is the custom marshaler for TunnelConnectionHealth. +func (tch TunnelConnectionHealth) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage describes network resource usage. type Usage struct { // ID - READ-ONLY; Resource identifier. @@ -30368,6 +30452,12 @@ type VirtualNetworkUsage struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsage. +func (vnu VirtualNetworkUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkUsageName usage strings container. type VirtualNetworkUsageName struct { // LocalizedValue - READ-ONLY; Localized subnet size and usage string. @@ -30376,6 +30466,12 @@ type VirtualNetworkUsageName struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsageName. +func (vnun VirtualNetworkUsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualWAN virtualWAN Resource. type VirtualWAN struct { autorest.Response `json:"-"` @@ -31575,6 +31671,12 @@ type VpnSiteID struct { VpnSite *string `json:"vpnSite,omitempty"` } +// MarshalJSON is the custom marshaler for VpnSiteID. +func (vsi VpnSiteID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnSiteProperties parameters for VpnSite type VpnSiteProperties struct { // VirtualWan - The VirtualWAN to which the vpnSite belongs @@ -32598,6 +32700,12 @@ type WebApplicationFirewallPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for WebApplicationFirewallPolicyListResult. +func (wafplr WebApplicationFirewallPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WebApplicationFirewallPolicyListResultIterator provides access to a complete listing of // WebApplicationFirewallPolicy values. type WebApplicationFirewallPolicyListResultIterator struct { diff --git a/services/network/mgmt/2019-04-01/network/CHANGELOG.md b/services/network/mgmt/2019-04-01/network/CHANGELOG.md index 52911e4cc5e4..e842382779a5 100644 --- a/services/network/mgmt/2019-04-01/network/CHANGELOG.md +++ b/services/network/mgmt/2019-04-01/network/CHANGELOG.md @@ -1,2 +1,28 @@ # Change History +## Additive Changes + +### New Funcs + +1. ApplicationSecurityGroupPropertiesFormat.MarshalJSON() ([]byte, error) +1. AzureFirewallFqdnTagPropertiesFormat.MarshalJSON() ([]byte, error) +1. BgpPeerStatus.MarshalJSON() ([]byte, error) +1. ConfigurationDiagnosticResponse.MarshalJSON() ([]byte, error) +1. ConnectivityHop.MarshalJSON() ([]byte, error) +1. ConnectivityInformation.MarshalJSON() ([]byte, error) +1. ConnectivityIssue.MarshalJSON() ([]byte, error) +1. ContainerNetworkInterfaceIPConfigurationPropertiesFormat.MarshalJSON() ([]byte, error) +1. DdosProtectionPlanPropertiesFormat.MarshalJSON() ([]byte, error) +1. ExpressRouteConnectionID.MarshalJSON() ([]byte, error) +1. ExpressRoutePortsLocationBandwidths.MarshalJSON() ([]byte, error) +1. GatewayRoute.MarshalJSON() ([]byte, error) +1. ManagedServiceIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. ServiceTagInformation.MarshalJSON() ([]byte, error) +1. ServiceTagInformationPropertiesFormat.MarshalJSON() ([]byte, error) +1. ServiceTagsListResult.MarshalJSON() ([]byte, error) +1. TunnelConnectionHealth.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsage.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsageName.MarshalJSON() ([]byte, error) +1. VpnClientConnectionHealthDetail.MarshalJSON() ([]byte, error) +1. VpnSiteID.MarshalJSON() ([]byte, error) +1. WebApplicationFirewallPolicyListResult.MarshalJSON() ([]byte, error) diff --git a/services/network/mgmt/2019-04-01/network/_meta.json b/services/network/mgmt/2019-04-01/network/_meta.json index d6104df2be0e..1ce00646669c 100644 --- a/services/network/mgmt/2019-04-01/network/_meta.json +++ b/services/network/mgmt/2019-04-01/network/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "tag": "package-2019-04", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/network/mgmt/2019-04-01/network/models.go b/services/network/mgmt/2019-04-01/network/models.go index ca9a6fb87339..4e52bf032af5 100644 --- a/services/network/mgmt/2019-04-01/network/models.go +++ b/services/network/mgmt/2019-04-01/network/models.go @@ -3410,6 +3410,12 @@ type ApplicationSecurityGroupPropertiesFormat struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationSecurityGroupPropertiesFormat. +func (asgpf ApplicationSecurityGroupPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationSecurityGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type ApplicationSecurityGroupsCreateOrUpdateFuture struct { @@ -4840,6 +4846,12 @@ type AzureFirewallFqdnTagPropertiesFormat struct { FqdnTagName *string `json:"fqdnTagName,omitempty"` } +// MarshalJSON is the custom marshaler for AzureFirewallFqdnTagPropertiesFormat. +func (afftpf AzureFirewallFqdnTagPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureFirewallIPConfiguration IP configuration of an Azure Firewall. type AzureFirewallIPConfiguration struct { // AzureFirewallIPConfigurationPropertiesFormat - Properties of the azure firewall IP configuration. @@ -6087,6 +6099,12 @@ type BgpPeerStatus struct { MessagesReceived *int64 `json:"messagesReceived,omitempty"` } +// MarshalJSON is the custom marshaler for BgpPeerStatus. +func (bps BgpPeerStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BgpPeerStatusListResult response for list BGP peer status API service call. type BgpPeerStatusListResult struct { autorest.Response `json:"-"` @@ -6431,6 +6449,12 @@ type ConfigurationDiagnosticResponse struct { Results *[]ConfigurationDiagnosticResult `json:"results,omitempty"` } +// MarshalJSON is the custom marshaler for ConfigurationDiagnosticResponse. +func (cdr ConfigurationDiagnosticResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConfigurationDiagnosticResult network configuration diagnostic result corresponded to provided traffic // query. type ConfigurationDiagnosticResult struct { @@ -6982,6 +7006,12 @@ type ConnectivityHop struct { Issues *[]ConnectivityIssue `json:"issues,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityHop. +func (ch ConnectivityHop) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityInformation information on the connectivity status. type ConnectivityInformation struct { autorest.Response `json:"-"` @@ -7001,6 +7031,12 @@ type ConnectivityInformation struct { ProbesFailed *int32 `json:"probesFailed,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityInformation. +func (ci ConnectivityInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityIssue information about an issue encountered in the process of checking for connectivity. type ConnectivityIssue struct { // Origin - READ-ONLY; The origin of the issue. Possible values include: 'OriginLocal', 'OriginInbound', 'OriginOutbound' @@ -7013,6 +7049,12 @@ type ConnectivityIssue struct { Context *[]map[string]*string `json:"context,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityIssue. +func (ci ConnectivityIssue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityParameters parameters that determine how the connectivity check will be performed. type ConnectivityParameters struct { // Source - Describes the source of the connection. @@ -7331,6 +7373,12 @@ type ContainerNetworkInterfaceIPConfigurationPropertiesFormat struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerNetworkInterfaceIPConfigurationPropertiesFormat. +func (cniicpf ContainerNetworkInterfaceIPConfigurationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerNetworkInterfacePropertiesFormat properties of container network interface. type ContainerNetworkInterfacePropertiesFormat struct { // ContainerNetworkInterfaceConfiguration - Container network interface configuration from which this container network interface is created. @@ -7907,6 +7955,12 @@ type DdosProtectionPlanPropertiesFormat struct { VirtualNetworks *[]SubResource `json:"virtualNetworks,omitempty"` } +// MarshalJSON is the custom marshaler for DdosProtectionPlanPropertiesFormat. +func (dpppf DdosProtectionPlanPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DdosProtectionPlansCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type DdosProtectionPlansCreateOrUpdateFuture struct { @@ -10317,6 +10371,12 @@ type ExpressRouteConnectionID struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRouteConnectionID. +func (erci ExpressRouteConnectionID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRouteConnectionList expressRouteConnection list. type ExpressRouteConnectionList struct { autorest.Response `json:"-"` @@ -12418,6 +12478,12 @@ type ExpressRoutePortsLocationBandwidths struct { ValueInGbps *int32 `json:"valueInGbps,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRoutePortsLocationBandwidths. +func (erplb ExpressRoutePortsLocationBandwidths) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRoutePortsLocationListResult response for ListExpressRoutePortsLocations API service call. type ExpressRoutePortsLocationListResult struct { autorest.Response `json:"-"` @@ -13187,6 +13253,12 @@ type GatewayRoute struct { Weight *int32 `json:"weight,omitempty"` } +// MarshalJSON is the custom marshaler for GatewayRoute. +func (gr GatewayRoute) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GatewayRouteListResult list of virtual network gateway routes. type GatewayRouteListResult struct { autorest.Response `json:"-"` @@ -18670,6 +18742,12 @@ type ManagedServiceIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedServiceIdentityUserAssignedIdentitiesValue. +func (msiAiv ManagedServiceIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MatchCondition define match conditions. type MatchCondition struct { // MatchVariables - List of match variables. @@ -27769,6 +27847,12 @@ type ServiceTagInformation struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagInformation. +func (sti ServiceTagInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceTagInformationPropertiesFormat properties of the service tag information. type ServiceTagInformationPropertiesFormat struct { // ChangeNumber - READ-ONLY; The iteration number of service tag. @@ -27781,6 +27865,12 @@ type ServiceTagInformationPropertiesFormat struct { AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagInformationPropertiesFormat. +func (stipf ServiceTagInformationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceTagsListResult response for the ListServiceTags API service call. type ServiceTagsListResult struct { autorest.Response `json:"-"` @@ -27798,6 +27888,12 @@ type ServiceTagsListResult struct { Values *[]ServiceTagInformation `json:"values,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagsListResult. +func (stlr ServiceTagsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // String ... type String struct { autorest.Response `json:"-"` @@ -28472,6 +28568,12 @@ type TunnelConnectionHealth struct { LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"` } +// MarshalJSON is the custom marshaler for TunnelConnectionHealth. +func (tch TunnelConnectionHealth) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage describes network resource usage. type Usage struct { // ID - READ-ONLY; Resource identifier. @@ -32391,6 +32493,12 @@ type VirtualNetworkUsage struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsage. +func (vnu VirtualNetworkUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkUsageName usage strings container. type VirtualNetworkUsageName struct { // LocalizedValue - READ-ONLY; Localized subnet size and usage string. @@ -32399,6 +32507,12 @@ type VirtualNetworkUsageName struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsageName. +func (vnun VirtualNetworkUsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualWAN virtualWAN Resource. type VirtualWAN struct { autorest.Response `json:"-"` @@ -32779,6 +32893,12 @@ type VpnClientConnectionHealthDetail struct { MaxPacketsPerSecond *int64 `json:"maxPacketsPerSecond,omitempty"` } +// MarshalJSON is the custom marshaler for VpnClientConnectionHealthDetail. +func (vcchd VpnClientConnectionHealthDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnClientConnectionHealthDetailListResult list of virtual network gateway vpn client connection health. type VpnClientConnectionHealthDetailListResult struct { autorest.Response `json:"-"` @@ -33687,6 +33807,12 @@ type VpnSiteID struct { VpnSite *string `json:"vpnSite,omitempty"` } +// MarshalJSON is the custom marshaler for VpnSiteID. +func (vsi VpnSiteID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnSiteProperties parameters for VpnSite. type VpnSiteProperties struct { // VirtualWan - The VirtualWAN to which the vpnSite belongs. @@ -34710,6 +34836,12 @@ type WebApplicationFirewallPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for WebApplicationFirewallPolicyListResult. +func (wafplr WebApplicationFirewallPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WebApplicationFirewallPolicyListResultIterator provides access to a complete listing of // WebApplicationFirewallPolicy values. type WebApplicationFirewallPolicyListResultIterator struct { diff --git a/services/network/mgmt/2019-06-01/network/CHANGELOG.md b/services/network/mgmt/2019-06-01/network/CHANGELOG.md index 52911e4cc5e4..e842382779a5 100644 --- a/services/network/mgmt/2019-06-01/network/CHANGELOG.md +++ b/services/network/mgmt/2019-06-01/network/CHANGELOG.md @@ -1,2 +1,28 @@ # Change History +## Additive Changes + +### New Funcs + +1. ApplicationSecurityGroupPropertiesFormat.MarshalJSON() ([]byte, error) +1. AzureFirewallFqdnTagPropertiesFormat.MarshalJSON() ([]byte, error) +1. BgpPeerStatus.MarshalJSON() ([]byte, error) +1. ConfigurationDiagnosticResponse.MarshalJSON() ([]byte, error) +1. ConnectivityHop.MarshalJSON() ([]byte, error) +1. ConnectivityInformation.MarshalJSON() ([]byte, error) +1. ConnectivityIssue.MarshalJSON() ([]byte, error) +1. ContainerNetworkInterfaceIPConfigurationPropertiesFormat.MarshalJSON() ([]byte, error) +1. DdosProtectionPlanPropertiesFormat.MarshalJSON() ([]byte, error) +1. ExpressRouteConnectionID.MarshalJSON() ([]byte, error) +1. ExpressRoutePortsLocationBandwidths.MarshalJSON() ([]byte, error) +1. GatewayRoute.MarshalJSON() ([]byte, error) +1. ManagedServiceIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. ServiceTagInformation.MarshalJSON() ([]byte, error) +1. ServiceTagInformationPropertiesFormat.MarshalJSON() ([]byte, error) +1. ServiceTagsListResult.MarshalJSON() ([]byte, error) +1. TunnelConnectionHealth.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsage.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsageName.MarshalJSON() ([]byte, error) +1. VpnClientConnectionHealthDetail.MarshalJSON() ([]byte, error) +1. VpnSiteID.MarshalJSON() ([]byte, error) +1. WebApplicationFirewallPolicyListResult.MarshalJSON() ([]byte, error) diff --git a/services/network/mgmt/2019-06-01/network/_meta.json b/services/network/mgmt/2019-06-01/network/_meta.json index 972c140a0972..0a8c4c4c8d40 100644 --- a/services/network/mgmt/2019-06-01/network/_meta.json +++ b/services/network/mgmt/2019-06-01/network/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "tag": "package-2019-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/network/mgmt/2019-06-01/network/models.go b/services/network/mgmt/2019-06-01/network/models.go index a2f4cb3fbc50..03d784918fb2 100644 --- a/services/network/mgmt/2019-06-01/network/models.go +++ b/services/network/mgmt/2019-06-01/network/models.go @@ -3481,6 +3481,12 @@ type ApplicationSecurityGroupPropertiesFormat struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationSecurityGroupPropertiesFormat. +func (asgpf ApplicationSecurityGroupPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationSecurityGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type ApplicationSecurityGroupsCreateOrUpdateFuture struct { @@ -4911,6 +4917,12 @@ type AzureFirewallFqdnTagPropertiesFormat struct { FqdnTagName *string `json:"fqdnTagName,omitempty"` } +// MarshalJSON is the custom marshaler for AzureFirewallFqdnTagPropertiesFormat. +func (afftpf AzureFirewallFqdnTagPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureFirewallIPConfiguration IP configuration of an Azure Firewall. type AzureFirewallIPConfiguration struct { // AzureFirewallIPConfigurationPropertiesFormat - Properties of the azure firewall IP configuration. @@ -6254,6 +6266,12 @@ type BgpPeerStatus struct { MessagesReceived *int64 `json:"messagesReceived,omitempty"` } +// MarshalJSON is the custom marshaler for BgpPeerStatus. +func (bps BgpPeerStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BgpPeerStatusListResult response for list BGP peer status API service call. type BgpPeerStatusListResult struct { autorest.Response `json:"-"` @@ -6598,6 +6616,12 @@ type ConfigurationDiagnosticResponse struct { Results *[]ConfigurationDiagnosticResult `json:"results,omitempty"` } +// MarshalJSON is the custom marshaler for ConfigurationDiagnosticResponse. +func (cdr ConfigurationDiagnosticResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConfigurationDiagnosticResult network configuration diagnostic result corresponded to provided traffic // query. type ConfigurationDiagnosticResult struct { @@ -7149,6 +7173,12 @@ type ConnectivityHop struct { Issues *[]ConnectivityIssue `json:"issues,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityHop. +func (ch ConnectivityHop) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityInformation information on the connectivity status. type ConnectivityInformation struct { autorest.Response `json:"-"` @@ -7168,6 +7198,12 @@ type ConnectivityInformation struct { ProbesFailed *int32 `json:"probesFailed,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityInformation. +func (ci ConnectivityInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityIssue information about an issue encountered in the process of checking for connectivity. type ConnectivityIssue struct { // Origin - READ-ONLY; The origin of the issue. Possible values include: 'OriginLocal', 'OriginInbound', 'OriginOutbound' @@ -7180,6 +7216,12 @@ type ConnectivityIssue struct { Context *[]map[string]*string `json:"context,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityIssue. +func (ci ConnectivityIssue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityParameters parameters that determine how the connectivity check will be performed. type ConnectivityParameters struct { // Source - Describes the source of the connection. @@ -7498,6 +7540,12 @@ type ContainerNetworkInterfaceIPConfigurationPropertiesFormat struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerNetworkInterfaceIPConfigurationPropertiesFormat. +func (cniicpf ContainerNetworkInterfaceIPConfigurationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerNetworkInterfacePropertiesFormat properties of container network interface. type ContainerNetworkInterfacePropertiesFormat struct { // ContainerNetworkInterfaceConfiguration - Container network interface configuration from which this container network interface is created. @@ -8074,6 +8122,12 @@ type DdosProtectionPlanPropertiesFormat struct { VirtualNetworks *[]SubResource `json:"virtualNetworks,omitempty"` } +// MarshalJSON is the custom marshaler for DdosProtectionPlanPropertiesFormat. +func (dpppf DdosProtectionPlanPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DdosProtectionPlansCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type DdosProtectionPlansCreateOrUpdateFuture struct { @@ -10484,6 +10538,12 @@ type ExpressRouteConnectionID struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRouteConnectionID. +func (erci ExpressRouteConnectionID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRouteConnectionList expressRouteConnection list. type ExpressRouteConnectionList struct { autorest.Response `json:"-"` @@ -12585,6 +12645,12 @@ type ExpressRoutePortsLocationBandwidths struct { ValueInGbps *int32 `json:"valueInGbps,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRoutePortsLocationBandwidths. +func (erplb ExpressRoutePortsLocationBandwidths) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRoutePortsLocationListResult response for ListExpressRoutePortsLocations API service call. type ExpressRoutePortsLocationListResult struct { autorest.Response `json:"-"` @@ -14595,6 +14661,12 @@ type GatewayRoute struct { Weight *int32 `json:"weight,omitempty"` } +// MarshalJSON is the custom marshaler for GatewayRoute. +func (gr GatewayRoute) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GatewayRouteListResult list of virtual network gateway routes. type GatewayRouteListResult struct { autorest.Response `json:"-"` @@ -20440,6 +20512,12 @@ type ManagedServiceIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedServiceIdentityUserAssignedIdentitiesValue. +func (msiAiv ManagedServiceIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MatchCondition define match conditions. type MatchCondition struct { // MatchVariables - List of match variables. @@ -29580,6 +29658,12 @@ type ServiceTagInformation struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagInformation. +func (sti ServiceTagInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceTagInformationPropertiesFormat properties of the service tag information. type ServiceTagInformationPropertiesFormat struct { // ChangeNumber - READ-ONLY; The iteration number of service tag. @@ -29592,6 +29676,12 @@ type ServiceTagInformationPropertiesFormat struct { AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagInformationPropertiesFormat. +func (stipf ServiceTagInformationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceTagsListResult response for the ListServiceTags API service call. type ServiceTagsListResult struct { autorest.Response `json:"-"` @@ -29609,6 +29699,12 @@ type ServiceTagsListResult struct { Values *[]ServiceTagInformation `json:"values,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagsListResult. +func (stlr ServiceTagsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // String ... type String struct { autorest.Response `json:"-"` @@ -30320,6 +30416,12 @@ type TunnelConnectionHealth struct { LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"` } +// MarshalJSON is the custom marshaler for TunnelConnectionHealth. +func (tch TunnelConnectionHealth) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UnprepareNetworkPoliciesRequest details of UnprepareNetworkPolicies for Subnet. type UnprepareNetworkPoliciesRequest struct { // ServiceName - The name of the service for which subnet is being unprepared for. @@ -34245,6 +34347,12 @@ type VirtualNetworkUsage struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsage. +func (vnu VirtualNetworkUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkUsageName usage strings container. type VirtualNetworkUsageName struct { // LocalizedValue - READ-ONLY; Localized subnet size and usage string. @@ -34253,6 +34361,12 @@ type VirtualNetworkUsageName struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsageName. +func (vnun VirtualNetworkUsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualWAN virtualWAN Resource. type VirtualWAN struct { autorest.Response `json:"-"` @@ -34633,6 +34747,12 @@ type VpnClientConnectionHealthDetail struct { MaxPacketsPerSecond *int64 `json:"maxPacketsPerSecond,omitempty"` } +// MarshalJSON is the custom marshaler for VpnClientConnectionHealthDetail. +func (vcchd VpnClientConnectionHealthDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnClientConnectionHealthDetailListResult list of virtual network gateway vpn client connection health. type VpnClientConnectionHealthDetailListResult struct { autorest.Response `json:"-"` @@ -35562,6 +35682,12 @@ type VpnSiteID struct { VpnSite *string `json:"vpnSite,omitempty"` } +// MarshalJSON is the custom marshaler for VpnSiteID. +func (vsi VpnSiteID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnSiteLink vpnSiteLink Resource. type VpnSiteLink struct { autorest.Response `json:"-"` @@ -36853,6 +36979,12 @@ type WebApplicationFirewallPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for WebApplicationFirewallPolicyListResult. +func (wafplr WebApplicationFirewallPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WebApplicationFirewallPolicyListResultIterator provides access to a complete listing of // WebApplicationFirewallPolicy values. type WebApplicationFirewallPolicyListResultIterator struct { diff --git a/services/network/mgmt/2019-07-01/network/CHANGELOG.md b/services/network/mgmt/2019-07-01/network/CHANGELOG.md index 52911e4cc5e4..2f9239e2d494 100644 --- a/services/network/mgmt/2019-07-01/network/CHANGELOG.md +++ b/services/network/mgmt/2019-07-01/network/CHANGELOG.md @@ -1,2 +1,29 @@ # Change History +## Additive Changes + +### New Funcs + +1. ApplicationSecurityGroupPropertiesFormat.MarshalJSON() ([]byte, error) +1. AzureFirewallFqdnTagPropertiesFormat.MarshalJSON() ([]byte, error) +1. BgpPeerStatus.MarshalJSON() ([]byte, error) +1. ConfigurationDiagnosticResponse.MarshalJSON() ([]byte, error) +1. ConnectivityHop.MarshalJSON() ([]byte, error) +1. ConnectivityInformation.MarshalJSON() ([]byte, error) +1. ConnectivityIssue.MarshalJSON() ([]byte, error) +1. ContainerNetworkInterfaceIPConfigurationPropertiesFormat.MarshalJSON() ([]byte, error) +1. DdosProtectionPlanPropertiesFormat.MarshalJSON() ([]byte, error) +1. ExpressRouteConnectionID.MarshalJSON() ([]byte, error) +1. ExpressRoutePortsLocationBandwidths.MarshalJSON() ([]byte, error) +1. GatewayRoute.MarshalJSON() ([]byte, error) +1. InterfaceIPConfigurationPrivateLinkConnectionProperties.MarshalJSON() ([]byte, error) +1. ManagedServiceIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. ServiceTagInformation.MarshalJSON() ([]byte, error) +1. ServiceTagInformationPropertiesFormat.MarshalJSON() ([]byte, error) +1. ServiceTagsListResult.MarshalJSON() ([]byte, error) +1. TunnelConnectionHealth.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsage.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsageName.MarshalJSON() ([]byte, error) +1. VpnClientConnectionHealthDetail.MarshalJSON() ([]byte, error) +1. VpnSiteID.MarshalJSON() ([]byte, error) +1. WebApplicationFirewallPolicyListResult.MarshalJSON() ([]byte, error) diff --git a/services/network/mgmt/2019-07-01/network/_meta.json b/services/network/mgmt/2019-07-01/network/_meta.json index f63a2cce2df1..c354729f4fb1 100644 --- a/services/network/mgmt/2019-07-01/network/_meta.json +++ b/services/network/mgmt/2019-07-01/network/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "tag": "package-2019-07", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/network/mgmt/2019-07-01/network/models.go b/services/network/mgmt/2019-07-01/network/models.go index 7bbae6e49d10..fbe487f69d40 100644 --- a/services/network/mgmt/2019-07-01/network/models.go +++ b/services/network/mgmt/2019-07-01/network/models.go @@ -3483,6 +3483,12 @@ type ApplicationSecurityGroupPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationSecurityGroupPropertiesFormat. +func (asgpf ApplicationSecurityGroupPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationSecurityGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type ApplicationSecurityGroupsCreateOrUpdateFuture struct { @@ -4913,6 +4919,12 @@ type AzureFirewallFqdnTagPropertiesFormat struct { FqdnTagName *string `json:"fqdnTagName,omitempty"` } +// MarshalJSON is the custom marshaler for AzureFirewallFqdnTagPropertiesFormat. +func (afftpf AzureFirewallFqdnTagPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureFirewallIPConfiguration IP configuration of an Azure Firewall. type AzureFirewallIPConfiguration struct { // AzureFirewallIPConfigurationPropertiesFormat - Properties of the azure firewall IP configuration. @@ -6213,6 +6225,12 @@ type BgpPeerStatus struct { MessagesReceived *int64 `json:"messagesReceived,omitempty"` } +// MarshalJSON is the custom marshaler for BgpPeerStatus. +func (bps BgpPeerStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BgpPeerStatusListResult response for list BGP peer status API service call. type BgpPeerStatusListResult struct { autorest.Response `json:"-"` @@ -6557,6 +6575,12 @@ type ConfigurationDiagnosticResponse struct { Results *[]ConfigurationDiagnosticResult `json:"results,omitempty"` } +// MarshalJSON is the custom marshaler for ConfigurationDiagnosticResponse. +func (cdr ConfigurationDiagnosticResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConfigurationDiagnosticResult network configuration diagnostic result corresponded to provided traffic // query. type ConfigurationDiagnosticResult struct { @@ -7108,6 +7132,12 @@ type ConnectivityHop struct { Issues *[]ConnectivityIssue `json:"issues,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityHop. +func (ch ConnectivityHop) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityInformation information on the connectivity status. type ConnectivityInformation struct { autorest.Response `json:"-"` @@ -7127,6 +7157,12 @@ type ConnectivityInformation struct { ProbesFailed *int32 `json:"probesFailed,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityInformation. +func (ci ConnectivityInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityIssue information about an issue encountered in the process of checking for connectivity. type ConnectivityIssue struct { // Origin - READ-ONLY; The origin of the issue. Possible values include: 'OriginLocal', 'OriginInbound', 'OriginOutbound' @@ -7139,6 +7175,12 @@ type ConnectivityIssue struct { Context *[]map[string]*string `json:"context,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityIssue. +func (ci ConnectivityIssue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityParameters parameters that determine how the connectivity check will be performed. type ConnectivityParameters struct { // Source - Describes the source of the connection. @@ -7457,6 +7499,12 @@ type ContainerNetworkInterfaceIPConfigurationPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerNetworkInterfaceIPConfigurationPropertiesFormat. +func (cniicpf ContainerNetworkInterfaceIPConfigurationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerNetworkInterfacePropertiesFormat properties of container network interface. type ContainerNetworkInterfacePropertiesFormat struct { // ContainerNetworkInterfaceConfiguration - Container network interface configuration from which this container network interface is created. @@ -8033,6 +8081,12 @@ type DdosProtectionPlanPropertiesFormat struct { VirtualNetworks *[]SubResource `json:"virtualNetworks,omitempty"` } +// MarshalJSON is the custom marshaler for DdosProtectionPlanPropertiesFormat. +func (dpppf DdosProtectionPlanPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DdosProtectionPlansCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type DdosProtectionPlansCreateOrUpdateFuture struct { @@ -10443,6 +10497,12 @@ type ExpressRouteConnectionID struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRouteConnectionID. +func (erci ExpressRouteConnectionID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRouteConnectionList expressRouteConnection list. type ExpressRouteConnectionList struct { autorest.Response `json:"-"` @@ -12573,6 +12633,12 @@ type ExpressRoutePortsLocationBandwidths struct { ValueInGbps *int32 `json:"valueInGbps,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRoutePortsLocationBandwidths. +func (erplb ExpressRoutePortsLocationBandwidths) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRoutePortsLocationListResult response for ListExpressRoutePortsLocations API service call. type ExpressRoutePortsLocationListResult struct { autorest.Response `json:"-"` @@ -14583,6 +14649,12 @@ type GatewayRoute struct { Weight *int32 `json:"weight,omitempty"` } +// MarshalJSON is the custom marshaler for GatewayRoute. +func (gr GatewayRoute) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GatewayRouteListResult list of virtual network gateway routes. type GatewayRouteListResult struct { autorest.Response `json:"-"` @@ -15677,6 +15749,12 @@ type InterfaceIPConfigurationPrivateLinkConnectionProperties struct { Fqdns *[]string `json:"fqdns,omitempty"` } +// MarshalJSON is the custom marshaler for InterfaceIPConfigurationPrivateLinkConnectionProperties. +func (iicplcp InterfaceIPConfigurationPrivateLinkConnectionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InterfaceIPConfigurationPropertiesFormat properties of IP configuration. type InterfaceIPConfigurationPropertiesFormat struct { // VirtualNetworkTaps - The reference to Virtual Network Taps. @@ -20483,6 +20561,12 @@ type ManagedServiceIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedServiceIdentityUserAssignedIdentitiesValue. +func (msiAiv ManagedServiceIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MatchCondition define match conditions. type MatchCondition struct { // MatchVariables - List of match variables. @@ -29623,6 +29707,12 @@ type ServiceTagInformation struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagInformation. +func (sti ServiceTagInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceTagInformationPropertiesFormat properties of the service tag information. type ServiceTagInformationPropertiesFormat struct { // ChangeNumber - READ-ONLY; The iteration number of service tag. @@ -29635,6 +29725,12 @@ type ServiceTagInformationPropertiesFormat struct { AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagInformationPropertiesFormat. +func (stipf ServiceTagInformationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceTagsListResult response for the ListServiceTags API service call. type ServiceTagsListResult struct { autorest.Response `json:"-"` @@ -29652,6 +29748,12 @@ type ServiceTagsListResult struct { Values *[]ServiceTagInformation `json:"values,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagsListResult. +func (stlr ServiceTagsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // String ... type String struct { autorest.Response `json:"-"` @@ -30371,6 +30473,12 @@ type TunnelConnectionHealth struct { LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"` } +// MarshalJSON is the custom marshaler for TunnelConnectionHealth. +func (tch TunnelConnectionHealth) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UnprepareNetworkPoliciesRequest details of UnprepareNetworkPolicies for Subnet. type UnprepareNetworkPoliciesRequest struct { // ServiceName - The name of the service for which subnet is being unprepared for. @@ -34483,6 +34591,12 @@ type VirtualNetworkUsage struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsage. +func (vnu VirtualNetworkUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkUsageName usage strings container. type VirtualNetworkUsageName struct { // LocalizedValue - READ-ONLY; Localized subnet size and usage string. @@ -34491,6 +34605,12 @@ type VirtualNetworkUsageName struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsageName. +func (vnun VirtualNetworkUsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualRouter virtualRouter Resource. type VirtualRouter struct { autorest.Response `json:"-"` @@ -35611,6 +35731,12 @@ type VpnClientConnectionHealthDetail struct { MaxPacketsPerSecond *int64 `json:"maxPacketsPerSecond,omitempty"` } +// MarshalJSON is the custom marshaler for VpnClientConnectionHealthDetail. +func (vcchd VpnClientConnectionHealthDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnClientConnectionHealthDetailListResult list of virtual network gateway vpn client connection health. type VpnClientConnectionHealthDetailListResult struct { autorest.Response `json:"-"` @@ -36552,6 +36678,12 @@ type VpnSiteID struct { VpnSite *string `json:"vpnSite,omitempty"` } +// MarshalJSON is the custom marshaler for VpnSiteID. +func (vsi VpnSiteID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnSiteLink vpnSiteLink Resource. type VpnSiteLink struct { autorest.Response `json:"-"` @@ -37843,6 +37975,12 @@ type WebApplicationFirewallPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for WebApplicationFirewallPolicyListResult. +func (wafplr WebApplicationFirewallPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WebApplicationFirewallPolicyListResultIterator provides access to a complete listing of // WebApplicationFirewallPolicy values. type WebApplicationFirewallPolicyListResultIterator struct { diff --git a/services/network/mgmt/2019-08-01/network/CHANGELOG.md b/services/network/mgmt/2019-08-01/network/CHANGELOG.md index 52911e4cc5e4..2f9239e2d494 100644 --- a/services/network/mgmt/2019-08-01/network/CHANGELOG.md +++ b/services/network/mgmt/2019-08-01/network/CHANGELOG.md @@ -1,2 +1,29 @@ # Change History +## Additive Changes + +### New Funcs + +1. ApplicationSecurityGroupPropertiesFormat.MarshalJSON() ([]byte, error) +1. AzureFirewallFqdnTagPropertiesFormat.MarshalJSON() ([]byte, error) +1. BgpPeerStatus.MarshalJSON() ([]byte, error) +1. ConfigurationDiagnosticResponse.MarshalJSON() ([]byte, error) +1. ConnectivityHop.MarshalJSON() ([]byte, error) +1. ConnectivityInformation.MarshalJSON() ([]byte, error) +1. ConnectivityIssue.MarshalJSON() ([]byte, error) +1. ContainerNetworkInterfaceIPConfigurationPropertiesFormat.MarshalJSON() ([]byte, error) +1. DdosProtectionPlanPropertiesFormat.MarshalJSON() ([]byte, error) +1. ExpressRouteConnectionID.MarshalJSON() ([]byte, error) +1. ExpressRoutePortsLocationBandwidths.MarshalJSON() ([]byte, error) +1. GatewayRoute.MarshalJSON() ([]byte, error) +1. InterfaceIPConfigurationPrivateLinkConnectionProperties.MarshalJSON() ([]byte, error) +1. ManagedServiceIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. ServiceTagInformation.MarshalJSON() ([]byte, error) +1. ServiceTagInformationPropertiesFormat.MarshalJSON() ([]byte, error) +1. ServiceTagsListResult.MarshalJSON() ([]byte, error) +1. TunnelConnectionHealth.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsage.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsageName.MarshalJSON() ([]byte, error) +1. VpnClientConnectionHealthDetail.MarshalJSON() ([]byte, error) +1. VpnSiteID.MarshalJSON() ([]byte, error) +1. WebApplicationFirewallPolicyListResult.MarshalJSON() ([]byte, error) diff --git a/services/network/mgmt/2019-08-01/network/_meta.json b/services/network/mgmt/2019-08-01/network/_meta.json index d002b44e5c2f..cbb084f5c748 100644 --- a/services/network/mgmt/2019-08-01/network/_meta.json +++ b/services/network/mgmt/2019-08-01/network/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "tag": "package-2019-08", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/network/mgmt/2019-08-01/network/models.go b/services/network/mgmt/2019-08-01/network/models.go index 7312df4df0dd..548ee44a70a5 100644 --- a/services/network/mgmt/2019-08-01/network/models.go +++ b/services/network/mgmt/2019-08-01/network/models.go @@ -3493,6 +3493,12 @@ type ApplicationSecurityGroupPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationSecurityGroupPropertiesFormat. +func (asgpf ApplicationSecurityGroupPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationSecurityGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type ApplicationSecurityGroupsCreateOrUpdateFuture struct { @@ -5104,6 +5110,12 @@ type AzureFirewallFqdnTagPropertiesFormat struct { FqdnTagName *string `json:"fqdnTagName,omitempty"` } +// MarshalJSON is the custom marshaler for AzureFirewallFqdnTagPropertiesFormat. +func (afftpf AzureFirewallFqdnTagPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureFirewallIPConfiguration IP configuration of an Azure Firewall. type AzureFirewallIPConfiguration struct { // AzureFirewallIPConfigurationPropertiesFormat - Properties of the azure firewall IP configuration. @@ -6417,6 +6429,12 @@ type BgpPeerStatus struct { MessagesReceived *int64 `json:"messagesReceived,omitempty"` } +// MarshalJSON is the custom marshaler for BgpPeerStatus. +func (bps BgpPeerStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BgpPeerStatusListResult response for list BGP peer status API service call. type BgpPeerStatusListResult struct { autorest.Response `json:"-"` @@ -6761,6 +6779,12 @@ type ConfigurationDiagnosticResponse struct { Results *[]ConfigurationDiagnosticResult `json:"results,omitempty"` } +// MarshalJSON is the custom marshaler for ConfigurationDiagnosticResponse. +func (cdr ConfigurationDiagnosticResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConfigurationDiagnosticResult network configuration diagnostic result corresponded to provided traffic // query. type ConfigurationDiagnosticResult struct { @@ -7312,6 +7336,12 @@ type ConnectivityHop struct { Issues *[]ConnectivityIssue `json:"issues,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityHop. +func (ch ConnectivityHop) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityInformation information on the connectivity status. type ConnectivityInformation struct { autorest.Response `json:"-"` @@ -7331,6 +7361,12 @@ type ConnectivityInformation struct { ProbesFailed *int32 `json:"probesFailed,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityInformation. +func (ci ConnectivityInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityIssue information about an issue encountered in the process of checking for connectivity. type ConnectivityIssue struct { // Origin - READ-ONLY; The origin of the issue. Possible values include: 'OriginLocal', 'OriginInbound', 'OriginOutbound' @@ -7343,6 +7379,12 @@ type ConnectivityIssue struct { Context *[]map[string]*string `json:"context,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityIssue. +func (ci ConnectivityIssue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityParameters parameters that determine how the connectivity check will be performed. type ConnectivityParameters struct { // Source - Describes the source of the connection. @@ -7661,6 +7703,12 @@ type ContainerNetworkInterfaceIPConfigurationPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerNetworkInterfaceIPConfigurationPropertiesFormat. +func (cniicpf ContainerNetworkInterfaceIPConfigurationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerNetworkInterfacePropertiesFormat properties of container network interface. type ContainerNetworkInterfacePropertiesFormat struct { // ContainerNetworkInterfaceConfiguration - Container network interface configuration from which this container network interface is created. @@ -8237,6 +8285,12 @@ type DdosProtectionPlanPropertiesFormat struct { VirtualNetworks *[]SubResource `json:"virtualNetworks,omitempty"` } +// MarshalJSON is the custom marshaler for DdosProtectionPlanPropertiesFormat. +func (dpppf DdosProtectionPlanPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DdosProtectionPlansCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type DdosProtectionPlansCreateOrUpdateFuture struct { @@ -10647,6 +10701,12 @@ type ExpressRouteConnectionID struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRouteConnectionID. +func (erci ExpressRouteConnectionID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRouteConnectionList expressRouteConnection list. type ExpressRouteConnectionList struct { autorest.Response `json:"-"` @@ -12777,6 +12837,12 @@ type ExpressRoutePortsLocationBandwidths struct { ValueInGbps *int32 `json:"valueInGbps,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRoutePortsLocationBandwidths. +func (erplb ExpressRoutePortsLocationBandwidths) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRoutePortsLocationListResult response for ListExpressRoutePortsLocations API service call. type ExpressRoutePortsLocationListResult struct { autorest.Response `json:"-"` @@ -14787,6 +14853,12 @@ type GatewayRoute struct { Weight *int32 `json:"weight,omitempty"` } +// MarshalJSON is the custom marshaler for GatewayRoute. +func (gr GatewayRoute) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GatewayRouteListResult list of virtual network gateway routes. type GatewayRouteListResult struct { autorest.Response `json:"-"` @@ -15924,6 +15996,12 @@ type InterfaceIPConfigurationPrivateLinkConnectionProperties struct { Fqdns *[]string `json:"fqdns,omitempty"` } +// MarshalJSON is the custom marshaler for InterfaceIPConfigurationPrivateLinkConnectionProperties. +func (iicplcp InterfaceIPConfigurationPrivateLinkConnectionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InterfaceIPConfigurationPropertiesFormat properties of IP configuration. type InterfaceIPConfigurationPropertiesFormat struct { // VirtualNetworkTaps - The reference to Virtual Network Taps. @@ -20763,6 +20841,12 @@ type ManagedServiceIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedServiceIdentityUserAssignedIdentitiesValue. +func (msiAiv ManagedServiceIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MatchCondition define match conditions. type MatchCondition struct { // MatchVariables - List of match variables. @@ -29436,6 +29520,12 @@ type ServiceTagInformation struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagInformation. +func (sti ServiceTagInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceTagInformationPropertiesFormat properties of the service tag information. type ServiceTagInformationPropertiesFormat struct { // ChangeNumber - READ-ONLY; The iteration number of service tag. @@ -29448,6 +29538,12 @@ type ServiceTagInformationPropertiesFormat struct { AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagInformationPropertiesFormat. +func (stipf ServiceTagInformationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceTagsListResult response for the ListServiceTags API service call. type ServiceTagsListResult struct { autorest.Response `json:"-"` @@ -29465,6 +29561,12 @@ type ServiceTagsListResult struct { Values *[]ServiceTagInformation `json:"values,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagsListResult. +func (stlr ServiceTagsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // String ... type String struct { autorest.Response `json:"-"` @@ -30184,6 +30286,12 @@ type TunnelConnectionHealth struct { LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"` } +// MarshalJSON is the custom marshaler for TunnelConnectionHealth. +func (tch TunnelConnectionHealth) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UnprepareNetworkPoliciesRequest details of UnprepareNetworkPolicies for Subnet. type UnprepareNetworkPoliciesRequest struct { // ServiceName - The name of the service for which subnet is being unprepared for. @@ -34327,6 +34435,12 @@ type VirtualNetworkUsage struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsage. +func (vnu VirtualNetworkUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkUsageName usage strings container. type VirtualNetworkUsageName struct { // LocalizedValue - READ-ONLY; Localized subnet size and usage string. @@ -34335,6 +34449,12 @@ type VirtualNetworkUsageName struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsageName. +func (vnun VirtualNetworkUsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualRouter virtualRouter Resource. type VirtualRouter struct { autorest.Response `json:"-"` @@ -35453,6 +35573,12 @@ type VpnClientConnectionHealthDetail struct { MaxPacketsPerSecond *int64 `json:"maxPacketsPerSecond,omitempty"` } +// MarshalJSON is the custom marshaler for VpnClientConnectionHealthDetail. +func (vcchd VpnClientConnectionHealthDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnClientConnectionHealthDetailListResult list of virtual network gateway vpn client connection health. type VpnClientConnectionHealthDetailListResult struct { autorest.Response `json:"-"` @@ -36792,6 +36918,12 @@ type VpnSiteID struct { VpnSite *string `json:"vpnSite,omitempty"` } +// MarshalJSON is the custom marshaler for VpnSiteID. +func (vsi VpnSiteID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnSiteLink vpnSiteLink Resource. type VpnSiteLink struct { autorest.Response `json:"-"` @@ -38083,6 +38215,12 @@ type WebApplicationFirewallPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for WebApplicationFirewallPolicyListResult. +func (wafplr WebApplicationFirewallPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WebApplicationFirewallPolicyListResultIterator provides access to a complete listing of // WebApplicationFirewallPolicy values. type WebApplicationFirewallPolicyListResultIterator struct { diff --git a/services/network/mgmt/2019-09-01/network/CHANGELOG.md b/services/network/mgmt/2019-09-01/network/CHANGELOG.md index 52911e4cc5e4..2c80a1aab6aa 100644 --- a/services/network/mgmt/2019-09-01/network/CHANGELOG.md +++ b/services/network/mgmt/2019-09-01/network/CHANGELOG.md @@ -1,2 +1,33 @@ # Change History +## Additive Changes + +### New Funcs + +1. ApplicationSecurityGroupPropertiesFormat.MarshalJSON() ([]byte, error) +1. AzureFirewallFqdnTagPropertiesFormat.MarshalJSON() ([]byte, error) +1. BackendAddressPoolPropertiesFormat.MarshalJSON() ([]byte, error) +1. BastionActiveSession.MarshalJSON() ([]byte, error) +1. BastionSessionState.MarshalJSON() ([]byte, error) +1. BgpPeerStatus.MarshalJSON() ([]byte, error) +1. ConfigurationDiagnosticResponse.MarshalJSON() ([]byte, error) +1. ConnectivityHop.MarshalJSON() ([]byte, error) +1. ConnectivityInformation.MarshalJSON() ([]byte, error) +1. ConnectivityIssue.MarshalJSON() ([]byte, error) +1. ContainerNetworkInterfaceIPConfigurationPropertiesFormat.MarshalJSON() ([]byte, error) +1. DdosProtectionPlanPropertiesFormat.MarshalJSON() ([]byte, error) +1. ExpressRouteConnectionID.MarshalJSON() ([]byte, error) +1. ExpressRoutePortsLocationBandwidths.MarshalJSON() ([]byte, error) +1. GatewayRoute.MarshalJSON() ([]byte, error) +1. InterfaceIPConfigurationPrivateLinkConnectionProperties.MarshalJSON() ([]byte, error) +1. ManagedServiceIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. ServiceTagInformation.MarshalJSON() ([]byte, error) +1. ServiceTagInformationPropertiesFormat.MarshalJSON() ([]byte, error) +1. ServiceTagsListResult.MarshalJSON() ([]byte, error) +1. TunnelConnectionHealth.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsage.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsageName.MarshalJSON() ([]byte, error) +1. VpnClientConnectionHealthDetail.MarshalJSON() ([]byte, error) +1. VpnSiteID.MarshalJSON() ([]byte, error) +1. WatcherPropertiesFormat.MarshalJSON() ([]byte, error) +1. WebApplicationFirewallPolicyListResult.MarshalJSON() ([]byte, error) diff --git a/services/network/mgmt/2019-09-01/network/_meta.json b/services/network/mgmt/2019-09-01/network/_meta.json index 0b6c5d9e334a..cc6e85191bd3 100644 --- a/services/network/mgmt/2019-09-01/network/_meta.json +++ b/services/network/mgmt/2019-09-01/network/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "tag": "package-2019-09", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/network/mgmt/2019-09-01/network/models.go b/services/network/mgmt/2019-09-01/network/models.go index 9f1f7f36f1a7..131738782c66 100644 --- a/services/network/mgmt/2019-09-01/network/models.go +++ b/services/network/mgmt/2019-09-01/network/models.go @@ -3648,6 +3648,12 @@ type ApplicationSecurityGroupPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationSecurityGroupPropertiesFormat. +func (asgpf ApplicationSecurityGroupPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationSecurityGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type ApplicationSecurityGroupsCreateOrUpdateFuture struct { @@ -5245,6 +5251,12 @@ type AzureFirewallFqdnTagPropertiesFormat struct { FqdnTagName *string `json:"fqdnTagName,omitempty"` } +// MarshalJSON is the custom marshaler for AzureFirewallFqdnTagPropertiesFormat. +func (afftpf AzureFirewallFqdnTagPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureFirewallIPConfiguration IP configuration of an Azure Firewall. type AzureFirewallIPConfiguration struct { // AzureFirewallIPConfigurationPropertiesFormat - Properties of the azure firewall IP configuration. @@ -6127,6 +6139,12 @@ type BackendAddressPoolPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for BackendAddressPoolPropertiesFormat. +func (bappf BackendAddressPoolPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BastionActiveSession the session detail for a target. type BastionActiveSession struct { // SessionID - READ-ONLY; A unique id for the session. @@ -6153,6 +6171,12 @@ type BastionActiveSession struct { SessionDurationInMins *float64 `json:"sessionDurationInMins,omitempty"` } +// MarshalJSON is the custom marshaler for BastionActiveSession. +func (bas BastionActiveSession) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BastionActiveSessionListResult response for GetActiveSessions. type BastionActiveSessionListResult struct { autorest.Response `json:"-"` @@ -6974,6 +6998,12 @@ type BastionSessionState struct { State *string `json:"state,omitempty"` } +// MarshalJSON is the custom marshaler for BastionSessionState. +func (bss BastionSessionState) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BastionShareableLink bastion Shareable Link. type BastionShareableLink struct { // VM - Reference of the virtual machine resource. @@ -7197,6 +7227,12 @@ type BgpPeerStatus struct { MessagesReceived *int64 `json:"messagesReceived,omitempty"` } +// MarshalJSON is the custom marshaler for BgpPeerStatus. +func (bps BgpPeerStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BgpPeerStatusListResult response for list BGP peer status API service call. type BgpPeerStatusListResult struct { autorest.Response `json:"-"` @@ -7541,6 +7577,12 @@ type ConfigurationDiagnosticResponse struct { Results *[]ConfigurationDiagnosticResult `json:"results,omitempty"` } +// MarshalJSON is the custom marshaler for ConfigurationDiagnosticResponse. +func (cdr ConfigurationDiagnosticResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConfigurationDiagnosticResult network configuration diagnostic result corresponded to provided traffic // query. type ConfigurationDiagnosticResult struct { @@ -8092,6 +8134,12 @@ type ConnectivityHop struct { Issues *[]ConnectivityIssue `json:"issues,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityHop. +func (ch ConnectivityHop) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityInformation information on the connectivity status. type ConnectivityInformation struct { autorest.Response `json:"-"` @@ -8111,6 +8159,12 @@ type ConnectivityInformation struct { ProbesFailed *int32 `json:"probesFailed,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityInformation. +func (ci ConnectivityInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityIssue information about an issue encountered in the process of checking for connectivity. type ConnectivityIssue struct { // Origin - READ-ONLY; The origin of the issue. Possible values include: 'OriginLocal', 'OriginInbound', 'OriginOutbound' @@ -8123,6 +8177,12 @@ type ConnectivityIssue struct { Context *[]map[string]*string `json:"context,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityIssue. +func (ci ConnectivityIssue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityParameters parameters that determine how the connectivity check will be performed. type ConnectivityParameters struct { // Source - Describes the source of the connection. @@ -8434,6 +8494,12 @@ type ContainerNetworkInterfaceIPConfigurationPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerNetworkInterfaceIPConfigurationPropertiesFormat. +func (cniicpf ContainerNetworkInterfaceIPConfigurationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerNetworkInterfacePropertiesFormat properties of container network interface. type ContainerNetworkInterfacePropertiesFormat struct { // ContainerNetworkInterfaceConfiguration - READ-ONLY; Container network interface configuration from which this container network interface is created. @@ -8961,6 +9027,12 @@ type DdosProtectionPlanPropertiesFormat struct { VirtualNetworks *[]SubResource `json:"virtualNetworks,omitempty"` } +// MarshalJSON is the custom marshaler for DdosProtectionPlanPropertiesFormat. +func (dpppf DdosProtectionPlanPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DdosProtectionPlansCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type DdosProtectionPlansCreateOrUpdateFuture struct { @@ -11331,6 +11403,12 @@ type ExpressRouteConnectionID struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRouteConnectionID. +func (erci ExpressRouteConnectionID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRouteConnectionList expressRouteConnection list. type ExpressRouteConnectionList struct { autorest.Response `json:"-"` @@ -13429,6 +13507,12 @@ type ExpressRoutePortsLocationBandwidths struct { ValueInGbps *int32 `json:"valueInGbps,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRoutePortsLocationBandwidths. +func (erplb ExpressRoutePortsLocationBandwidths) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRoutePortsLocationListResult response for ListExpressRoutePortsLocations API service call. type ExpressRoutePortsLocationListResult struct { autorest.Response `json:"-"` @@ -15411,6 +15495,12 @@ type GatewayRoute struct { Weight *int32 `json:"weight,omitempty"` } +// MarshalJSON is the custom marshaler for GatewayRoute. +func (gr GatewayRoute) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GatewayRouteListResult list of virtual network gateway routes. type GatewayRouteListResult struct { autorest.Response `json:"-"` @@ -16676,6 +16766,12 @@ type InterfaceIPConfigurationPrivateLinkConnectionProperties struct { Fqdns *[]string `json:"fqdns,omitempty"` } +// MarshalJSON is the custom marshaler for InterfaceIPConfigurationPrivateLinkConnectionProperties. +func (iicplcp InterfaceIPConfigurationPrivateLinkConnectionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InterfaceIPConfigurationPropertiesFormat properties of IP configuration. type InterfaceIPConfigurationPropertiesFormat struct { // VirtualNetworkTaps - The reference to Virtual Network Taps. @@ -21965,6 +22061,12 @@ type ManagedServiceIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedServiceIdentityUserAssignedIdentitiesValue. +func (msiAiv ManagedServiceIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MatchCondition define match conditions. type MatchCondition struct { // MatchVariables - List of match variables. @@ -30628,6 +30730,12 @@ type ServiceTagInformation struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagInformation. +func (sti ServiceTagInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceTagInformationPropertiesFormat properties of the service tag information. type ServiceTagInformationPropertiesFormat struct { // ChangeNumber - READ-ONLY; The iteration number of service tag. @@ -30640,6 +30748,12 @@ type ServiceTagInformationPropertiesFormat struct { AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagInformationPropertiesFormat. +func (stipf ServiceTagInformationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceTagsListResult response for the ListServiceTags API service call. type ServiceTagsListResult struct { autorest.Response `json:"-"` @@ -30657,6 +30771,12 @@ type ServiceTagsListResult struct { Values *[]ServiceTagInformation `json:"values,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagsListResult. +func (stlr ServiceTagsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SessionIds list of session ids. type SessionIds struct { // SessionIds - List of session ids @@ -31370,6 +31490,12 @@ type TunnelConnectionHealth struct { LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"` } +// MarshalJSON is the custom marshaler for TunnelConnectionHealth. +func (tch TunnelConnectionHealth) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UnprepareNetworkPoliciesRequest details of UnprepareNetworkPolicies for Subnet. type UnprepareNetworkPoliciesRequest struct { // ServiceName - The name of the service for which subnet is being unprepared for. @@ -35659,6 +35785,12 @@ type VirtualNetworkUsage struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsage. +func (vnu VirtualNetworkUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkUsageName usage strings container. type VirtualNetworkUsageName struct { // LocalizedValue - READ-ONLY; Localized subnet size and usage string. @@ -35667,6 +35799,12 @@ type VirtualNetworkUsageName struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsageName. +func (vnun VirtualNetworkUsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualRouter virtualRouter Resource. type VirtualRouter struct { autorest.Response `json:"-"` @@ -36773,6 +36911,12 @@ type VpnClientConnectionHealthDetail struct { MaxPacketsPerSecond *int64 `json:"maxPacketsPerSecond,omitempty"` } +// MarshalJSON is the custom marshaler for VpnClientConnectionHealthDetail. +func (vcchd VpnClientConnectionHealthDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnClientConnectionHealthDetailListResult list of virtual network gateway vpn client connection health. type VpnClientConnectionHealthDetailListResult struct { autorest.Response `json:"-"` @@ -38032,6 +38176,12 @@ type VpnSiteID struct { VpnSite *string `json:"vpnSite,omitempty"` } +// MarshalJSON is the custom marshaler for VpnSiteID. +func (vsi VpnSiteID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnSiteLink vpnSiteLink Resource. type VpnSiteLink struct { autorest.Response `json:"-"` @@ -38607,6 +38757,12 @@ type WatcherPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for WatcherPropertiesFormat. +func (wpf WatcherPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WatchersCheckConnectivityFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type WatchersCheckConnectivityFuture struct { @@ -39316,6 +39472,12 @@ type WebApplicationFirewallPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for WebApplicationFirewallPolicyListResult. +func (wafplr WebApplicationFirewallPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WebApplicationFirewallPolicyListResultIterator provides access to a complete listing of // WebApplicationFirewallPolicy values. type WebApplicationFirewallPolicyListResultIterator struct { diff --git a/services/network/mgmt/2019-11-01/network/CHANGELOG.md b/services/network/mgmt/2019-11-01/network/CHANGELOG.md index 52911e4cc5e4..df5249d09a65 100644 --- a/services/network/mgmt/2019-11-01/network/CHANGELOG.md +++ b/services/network/mgmt/2019-11-01/network/CHANGELOG.md @@ -1,2 +1,34 @@ # Change History +## Additive Changes + +### New Funcs + +1. ApplicationSecurityGroupPropertiesFormat.MarshalJSON() ([]byte, error) +1. AzureFirewallFqdnTagPropertiesFormat.MarshalJSON() ([]byte, error) +1. AzureFirewallIPGroups.MarshalJSON() ([]byte, error) +1. BackendAddressPoolPropertiesFormat.MarshalJSON() ([]byte, error) +1. BastionActiveSession.MarshalJSON() ([]byte, error) +1. BastionSessionState.MarshalJSON() ([]byte, error) +1. BgpPeerStatus.MarshalJSON() ([]byte, error) +1. ConfigurationDiagnosticResponse.MarshalJSON() ([]byte, error) +1. ConnectivityHop.MarshalJSON() ([]byte, error) +1. ConnectivityInformation.MarshalJSON() ([]byte, error) +1. ConnectivityIssue.MarshalJSON() ([]byte, error) +1. ContainerNetworkInterfaceIPConfigurationPropertiesFormat.MarshalJSON() ([]byte, error) +1. DdosProtectionPlanPropertiesFormat.MarshalJSON() ([]byte, error) +1. ExpressRouteConnectionID.MarshalJSON() ([]byte, error) +1. ExpressRoutePortsLocationBandwidths.MarshalJSON() ([]byte, error) +1. GatewayRoute.MarshalJSON() ([]byte, error) +1. InterfaceIPConfigurationPrivateLinkConnectionProperties.MarshalJSON() ([]byte, error) +1. ManagedServiceIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. ServiceTagInformation.MarshalJSON() ([]byte, error) +1. ServiceTagInformationPropertiesFormat.MarshalJSON() ([]byte, error) +1. ServiceTagsListResult.MarshalJSON() ([]byte, error) +1. TunnelConnectionHealth.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsage.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsageName.MarshalJSON() ([]byte, error) +1. VpnClientConnectionHealthDetail.MarshalJSON() ([]byte, error) +1. VpnSiteID.MarshalJSON() ([]byte, error) +1. WatcherPropertiesFormat.MarshalJSON() ([]byte, error) +1. WebApplicationFirewallPolicyListResult.MarshalJSON() ([]byte, error) diff --git a/services/network/mgmt/2019-11-01/network/_meta.json b/services/network/mgmt/2019-11-01/network/_meta.json index 21f569be5f45..f40ad173f09b 100644 --- a/services/network/mgmt/2019-11-01/network/_meta.json +++ b/services/network/mgmt/2019-11-01/network/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "tag": "package-2019-11", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/network/mgmt/2019-11-01/network/models.go b/services/network/mgmt/2019-11-01/network/models.go index 8bd613fb9c67..9e459eda0df9 100644 --- a/services/network/mgmt/2019-11-01/network/models.go +++ b/services/network/mgmt/2019-11-01/network/models.go @@ -3660,6 +3660,12 @@ type ApplicationSecurityGroupPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationSecurityGroupPropertiesFormat. +func (asgpf ApplicationSecurityGroupPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationSecurityGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type ApplicationSecurityGroupsCreateOrUpdateFuture struct { @@ -5257,6 +5263,12 @@ type AzureFirewallFqdnTagPropertiesFormat struct { FqdnTagName *string `json:"fqdnTagName,omitempty"` } +// MarshalJSON is the custom marshaler for AzureFirewallFqdnTagPropertiesFormat. +func (afftpf AzureFirewallFqdnTagPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureFirewallIPConfiguration IP configuration of an Azure Firewall. type AzureFirewallIPConfiguration struct { // AzureFirewallIPConfigurationPropertiesFormat - Properties of the azure firewall IP configuration. @@ -5378,6 +5390,12 @@ type AzureFirewallIPGroups struct { ChangeNumber *string `json:"changeNumber,omitempty"` } +// MarshalJSON is the custom marshaler for AzureFirewallIPGroups. +func (afig AzureFirewallIPGroups) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureFirewallListResult response for ListAzureFirewalls API service call. type AzureFirewallListResult struct { autorest.Response `json:"-"` @@ -6122,6 +6140,12 @@ type BackendAddressPoolPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for BackendAddressPoolPropertiesFormat. +func (bappf BackendAddressPoolPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BastionActiveSession the session detail for a target. type BastionActiveSession struct { // SessionID - READ-ONLY; A unique id for the session. @@ -6148,6 +6172,12 @@ type BastionActiveSession struct { SessionDurationInMins *float64 `json:"sessionDurationInMins,omitempty"` } +// MarshalJSON is the custom marshaler for BastionActiveSession. +func (bas BastionActiveSession) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BastionActiveSessionListResult response for GetActiveSessions. type BastionActiveSessionListResult struct { autorest.Response `json:"-"` @@ -6969,6 +6999,12 @@ type BastionSessionState struct { State *string `json:"state,omitempty"` } +// MarshalJSON is the custom marshaler for BastionSessionState. +func (bss BastionSessionState) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BastionShareableLink bastion Shareable Link. type BastionShareableLink struct { // VM - Reference of the virtual machine resource. @@ -7192,6 +7228,12 @@ type BgpPeerStatus struct { MessagesReceived *int64 `json:"messagesReceived,omitempty"` } +// MarshalJSON is the custom marshaler for BgpPeerStatus. +func (bps BgpPeerStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BgpPeerStatusListResult response for list BGP peer status API service call. type BgpPeerStatusListResult struct { autorest.Response `json:"-"` @@ -7536,6 +7578,12 @@ type ConfigurationDiagnosticResponse struct { Results *[]ConfigurationDiagnosticResult `json:"results,omitempty"` } +// MarshalJSON is the custom marshaler for ConfigurationDiagnosticResponse. +func (cdr ConfigurationDiagnosticResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConfigurationDiagnosticResult network configuration diagnostic result corresponded to provided traffic // query. type ConfigurationDiagnosticResult struct { @@ -8254,6 +8302,12 @@ type ConnectivityHop struct { Issues *[]ConnectivityIssue `json:"issues,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityHop. +func (ch ConnectivityHop) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityInformation information on the connectivity status. type ConnectivityInformation struct { autorest.Response `json:"-"` @@ -8273,6 +8327,12 @@ type ConnectivityInformation struct { ProbesFailed *int32 `json:"probesFailed,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityInformation. +func (ci ConnectivityInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityIssue information about an issue encountered in the process of checking for connectivity. type ConnectivityIssue struct { // Origin - READ-ONLY; The origin of the issue. Possible values include: 'OriginLocal', 'OriginInbound', 'OriginOutbound' @@ -8285,6 +8345,12 @@ type ConnectivityIssue struct { Context *[]map[string]*string `json:"context,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityIssue. +func (ci ConnectivityIssue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityParameters parameters that determine how the connectivity check will be performed. type ConnectivityParameters struct { // Source - The source of the connection. @@ -8596,6 +8662,12 @@ type ContainerNetworkInterfaceIPConfigurationPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerNetworkInterfaceIPConfigurationPropertiesFormat. +func (cniicpf ContainerNetworkInterfaceIPConfigurationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerNetworkInterfacePropertiesFormat properties of container network interface. type ContainerNetworkInterfacePropertiesFormat struct { // ContainerNetworkInterfaceConfiguration - READ-ONLY; Container network interface configuration from which this container network interface is created. @@ -9123,6 +9195,12 @@ type DdosProtectionPlanPropertiesFormat struct { VirtualNetworks *[]SubResource `json:"virtualNetworks,omitempty"` } +// MarshalJSON is the custom marshaler for DdosProtectionPlanPropertiesFormat. +func (dpppf DdosProtectionPlanPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DdosProtectionPlansCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type DdosProtectionPlansCreateOrUpdateFuture struct { @@ -11495,6 +11573,12 @@ type ExpressRouteConnectionID struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRouteConnectionID. +func (erci ExpressRouteConnectionID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRouteConnectionList expressRouteConnection list. type ExpressRouteConnectionList struct { autorest.Response `json:"-"` @@ -13593,6 +13677,12 @@ type ExpressRoutePortsLocationBandwidths struct { ValueInGbps *int32 `json:"valueInGbps,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRoutePortsLocationBandwidths. +func (erplb ExpressRoutePortsLocationBandwidths) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRoutePortsLocationListResult response for ListExpressRoutePortsLocations API service call. type ExpressRoutePortsLocationListResult struct { autorest.Response `json:"-"` @@ -15982,6 +16072,12 @@ type GatewayRoute struct { Weight *int32 `json:"weight,omitempty"` } +// MarshalJSON is the custom marshaler for GatewayRoute. +func (gr GatewayRoute) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GatewayRouteListResult list of virtual network gateway routes. type GatewayRouteListResult struct { autorest.Response `json:"-"` @@ -17247,6 +17343,12 @@ type InterfaceIPConfigurationPrivateLinkConnectionProperties struct { Fqdns *[]string `json:"fqdns,omitempty"` } +// MarshalJSON is the custom marshaler for InterfaceIPConfigurationPrivateLinkConnectionProperties. +func (iicplcp InterfaceIPConfigurationPrivateLinkConnectionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InterfaceIPConfigurationPropertiesFormat properties of IP configuration. type InterfaceIPConfigurationPropertiesFormat struct { // VirtualNetworkTaps - The reference to Virtual Network Taps. @@ -22536,6 +22638,12 @@ type ManagedServiceIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedServiceIdentityUserAssignedIdentitiesValue. +func (msiAiv ManagedServiceIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MatchCondition define match conditions. type MatchCondition struct { // MatchVariables - List of match variables. @@ -31242,6 +31350,12 @@ type ServiceTagInformation struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagInformation. +func (sti ServiceTagInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceTagInformationPropertiesFormat properties of the service tag information. type ServiceTagInformationPropertiesFormat struct { // ChangeNumber - READ-ONLY; The iteration number of service tag. @@ -31254,6 +31368,12 @@ type ServiceTagInformationPropertiesFormat struct { AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagInformationPropertiesFormat. +func (stipf ServiceTagInformationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceTagsListResult response for the ListServiceTags API service call. type ServiceTagsListResult struct { autorest.Response `json:"-"` @@ -31271,6 +31391,12 @@ type ServiceTagsListResult struct { Values *[]ServiceTagInformation `json:"values,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagsListResult. +func (stlr ServiceTagsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SessionIds list of session IDs. type SessionIds struct { // SessionIds - List of session IDs. @@ -31984,6 +32110,12 @@ type TunnelConnectionHealth struct { LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"` } +// MarshalJSON is the custom marshaler for TunnelConnectionHealth. +func (tch TunnelConnectionHealth) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UnprepareNetworkPoliciesRequest details of UnprepareNetworkPolicies for Subnet. type UnprepareNetworkPoliciesRequest struct { // ServiceName - The name of the service for which subnet is being unprepared for. @@ -36310,6 +36442,12 @@ type VirtualNetworkUsage struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsage. +func (vnu VirtualNetworkUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkUsageName usage strings container. type VirtualNetworkUsageName struct { // LocalizedValue - READ-ONLY; Localized subnet size and usage string. @@ -36318,6 +36456,12 @@ type VirtualNetworkUsageName struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsageName. +func (vnun VirtualNetworkUsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualRouter virtualRouter Resource. type VirtualRouter struct { autorest.Response `json:"-"` @@ -37424,6 +37568,12 @@ type VpnClientConnectionHealthDetail struct { MaxPacketsPerSecond *int64 `json:"maxPacketsPerSecond,omitempty"` } +// MarshalJSON is the custom marshaler for VpnClientConnectionHealthDetail. +func (vcchd VpnClientConnectionHealthDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnClientConnectionHealthDetailListResult list of virtual network gateway vpn client connection health. type VpnClientConnectionHealthDetailListResult struct { autorest.Response `json:"-"` @@ -38683,6 +38833,12 @@ type VpnSiteID struct { VpnSite *string `json:"vpnSite,omitempty"` } +// MarshalJSON is the custom marshaler for VpnSiteID. +func (vsi VpnSiteID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnSiteLink vpnSiteLink Resource. type VpnSiteLink struct { autorest.Response `json:"-"` @@ -39258,6 +39414,12 @@ type WatcherPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for WatcherPropertiesFormat. +func (wpf WatcherPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WatchersCheckConnectivityFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type WatchersCheckConnectivityFuture struct { @@ -39967,6 +40129,12 @@ type WebApplicationFirewallPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for WebApplicationFirewallPolicyListResult. +func (wafplr WebApplicationFirewallPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WebApplicationFirewallPolicyListResultIterator provides access to a complete listing of // WebApplicationFirewallPolicy values. type WebApplicationFirewallPolicyListResultIterator struct { diff --git a/services/network/mgmt/2019-12-01/network/CHANGELOG.md b/services/network/mgmt/2019-12-01/network/CHANGELOG.md index 52911e4cc5e4..d07d649a6451 100644 --- a/services/network/mgmt/2019-12-01/network/CHANGELOG.md +++ b/services/network/mgmt/2019-12-01/network/CHANGELOG.md @@ -1,2 +1,35 @@ # Change History +## Additive Changes + +### New Funcs + +1. ApplicationSecurityGroupPropertiesFormat.MarshalJSON() ([]byte, error) +1. AzureFirewallFqdnTagPropertiesFormat.MarshalJSON() ([]byte, error) +1. AzureFirewallIPGroups.MarshalJSON() ([]byte, error) +1. BackendAddressPoolPropertiesFormat.MarshalJSON() ([]byte, error) +1. BastionActiveSession.MarshalJSON() ([]byte, error) +1. BastionSessionState.MarshalJSON() ([]byte, error) +1. BgpPeerStatus.MarshalJSON() ([]byte, error) +1. ConfigurationDiagnosticResponse.MarshalJSON() ([]byte, error) +1. ConnectivityHop.MarshalJSON() ([]byte, error) +1. ConnectivityInformation.MarshalJSON() ([]byte, error) +1. ConnectivityIssue.MarshalJSON() ([]byte, error) +1. ContainerNetworkInterfaceIPConfigurationPropertiesFormat.MarshalJSON() ([]byte, error) +1. DdosProtectionPlanPropertiesFormat.MarshalJSON() ([]byte, error) +1. ExpressRouteConnectionID.MarshalJSON() ([]byte, error) +1. ExpressRoutePortsLocationBandwidths.MarshalJSON() ([]byte, error) +1. GatewayRoute.MarshalJSON() ([]byte, error) +1. InterfaceIPConfigurationPrivateLinkConnectionProperties.MarshalJSON() ([]byte, error) +1. ManagedServiceIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. ServiceTagInformation.MarshalJSON() ([]byte, error) +1. ServiceTagInformationPropertiesFormat.MarshalJSON() ([]byte, error) +1. ServiceTagsListResult.MarshalJSON() ([]byte, error) +1. TunnelConnectionHealth.MarshalJSON() ([]byte, error) +1. VirtualApplianceNicProperties.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsage.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsageName.MarshalJSON() ([]byte, error) +1. VpnClientConnectionHealthDetail.MarshalJSON() ([]byte, error) +1. VpnSiteID.MarshalJSON() ([]byte, error) +1. WatcherPropertiesFormat.MarshalJSON() ([]byte, error) +1. WebApplicationFirewallPolicyListResult.MarshalJSON() ([]byte, error) diff --git a/services/network/mgmt/2019-12-01/network/_meta.json b/services/network/mgmt/2019-12-01/network/_meta.json index 195726c643f4..0b58f2151e02 100644 --- a/services/network/mgmt/2019-12-01/network/_meta.json +++ b/services/network/mgmt/2019-12-01/network/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "tag": "package-2019-12", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/network/mgmt/2019-12-01/network/models.go b/services/network/mgmt/2019-12-01/network/models.go index e7d5f43615d6..a0e3749a3dbb 100644 --- a/services/network/mgmt/2019-12-01/network/models.go +++ b/services/network/mgmt/2019-12-01/network/models.go @@ -3670,6 +3670,12 @@ type ApplicationSecurityGroupPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationSecurityGroupPropertiesFormat. +func (asgpf ApplicationSecurityGroupPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationSecurityGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type ApplicationSecurityGroupsCreateOrUpdateFuture struct { @@ -5267,6 +5273,12 @@ type AzureFirewallFqdnTagPropertiesFormat struct { FqdnTagName *string `json:"fqdnTagName,omitempty"` } +// MarshalJSON is the custom marshaler for AzureFirewallFqdnTagPropertiesFormat. +func (afftpf AzureFirewallFqdnTagPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureFirewallIPConfiguration IP configuration of an Azure Firewall. type AzureFirewallIPConfiguration struct { // AzureFirewallIPConfigurationPropertiesFormat - Properties of the azure firewall IP configuration. @@ -5388,6 +5400,12 @@ type AzureFirewallIPGroups struct { ChangeNumber *string `json:"changeNumber,omitempty"` } +// MarshalJSON is the custom marshaler for AzureFirewallIPGroups. +func (afig AzureFirewallIPGroups) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureFirewallListResult response for ListAzureFirewalls API service call. type AzureFirewallListResult struct { autorest.Response `json:"-"` @@ -6132,6 +6150,12 @@ type BackendAddressPoolPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for BackendAddressPoolPropertiesFormat. +func (bappf BackendAddressPoolPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BastionActiveSession the session detail for a target. type BastionActiveSession struct { // SessionID - READ-ONLY; A unique id for the session. @@ -6158,6 +6182,12 @@ type BastionActiveSession struct { SessionDurationInMins *float64 `json:"sessionDurationInMins,omitempty"` } +// MarshalJSON is the custom marshaler for BastionActiveSession. +func (bas BastionActiveSession) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BastionActiveSessionListResult response for GetActiveSessions. type BastionActiveSessionListResult struct { autorest.Response `json:"-"` @@ -6979,6 +7009,12 @@ type BastionSessionState struct { State *string `json:"state,omitempty"` } +// MarshalJSON is the custom marshaler for BastionSessionState. +func (bss BastionSessionState) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BastionShareableLink bastion Shareable Link. type BastionShareableLink struct { // VM - Reference of the virtual machine resource. @@ -7202,6 +7238,12 @@ type BgpPeerStatus struct { MessagesReceived *int64 `json:"messagesReceived,omitempty"` } +// MarshalJSON is the custom marshaler for BgpPeerStatus. +func (bps BgpPeerStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BgpPeerStatusListResult response for list BGP peer status API service call. type BgpPeerStatusListResult struct { autorest.Response `json:"-"` @@ -7548,6 +7590,12 @@ type ConfigurationDiagnosticResponse struct { Results *[]ConfigurationDiagnosticResult `json:"results,omitempty"` } +// MarshalJSON is the custom marshaler for ConfigurationDiagnosticResponse. +func (cdr ConfigurationDiagnosticResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConfigurationDiagnosticResult network configuration diagnostic result corresponded to provided traffic // query. type ConfigurationDiagnosticResult struct { @@ -8266,6 +8314,12 @@ type ConnectivityHop struct { Issues *[]ConnectivityIssue `json:"issues,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityHop. +func (ch ConnectivityHop) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityInformation information on the connectivity status. type ConnectivityInformation struct { autorest.Response `json:"-"` @@ -8285,6 +8339,12 @@ type ConnectivityInformation struct { ProbesFailed *int32 `json:"probesFailed,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityInformation. +func (ci ConnectivityInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityIssue information about an issue encountered in the process of checking for connectivity. type ConnectivityIssue struct { // Origin - READ-ONLY; The origin of the issue. Possible values include: 'OriginLocal', 'OriginInbound', 'OriginOutbound' @@ -8297,6 +8357,12 @@ type ConnectivityIssue struct { Context *[]map[string]*string `json:"context,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityIssue. +func (ci ConnectivityIssue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityParameters parameters that determine how the connectivity check will be performed. type ConnectivityParameters struct { // Source - The source of the connection. @@ -8608,6 +8674,12 @@ type ContainerNetworkInterfaceIPConfigurationPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerNetworkInterfaceIPConfigurationPropertiesFormat. +func (cniicpf ContainerNetworkInterfaceIPConfigurationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerNetworkInterfacePropertiesFormat properties of container network interface. type ContainerNetworkInterfacePropertiesFormat struct { // ContainerNetworkInterfaceConfiguration - READ-ONLY; Container network interface configuration from which this container network interface is created. @@ -9135,6 +9207,12 @@ type DdosProtectionPlanPropertiesFormat struct { VirtualNetworks *[]SubResource `json:"virtualNetworks,omitempty"` } +// MarshalJSON is the custom marshaler for DdosProtectionPlanPropertiesFormat. +func (dpppf DdosProtectionPlanPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DdosProtectionPlansCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type DdosProtectionPlansCreateOrUpdateFuture struct { @@ -11512,6 +11590,12 @@ type ExpressRouteConnectionID struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRouteConnectionID. +func (erci ExpressRouteConnectionID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRouteConnectionList expressRouteConnection list. type ExpressRouteConnectionList struct { autorest.Response `json:"-"` @@ -13610,6 +13694,12 @@ type ExpressRoutePortsLocationBandwidths struct { ValueInGbps *int32 `json:"valueInGbps,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRoutePortsLocationBandwidths. +func (erplb ExpressRoutePortsLocationBandwidths) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRoutePortsLocationListResult response for ListExpressRoutePortsLocations API service call. type ExpressRoutePortsLocationListResult struct { autorest.Response `json:"-"` @@ -16009,6 +16099,12 @@ type GatewayRoute struct { Weight *int32 `json:"weight,omitempty"` } +// MarshalJSON is the custom marshaler for GatewayRoute. +func (gr GatewayRoute) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GatewayRouteListResult list of virtual network gateway routes. type GatewayRouteListResult struct { autorest.Response `json:"-"` @@ -17274,6 +17370,12 @@ type InterfaceIPConfigurationPrivateLinkConnectionProperties struct { Fqdns *[]string `json:"fqdns,omitempty"` } +// MarshalJSON is the custom marshaler for InterfaceIPConfigurationPrivateLinkConnectionProperties. +func (iicplcp InterfaceIPConfigurationPrivateLinkConnectionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InterfaceIPConfigurationPropertiesFormat properties of IP configuration. type InterfaceIPConfigurationPropertiesFormat struct { // VirtualNetworkTaps - The reference to Virtual Network Taps. @@ -22609,6 +22711,12 @@ type ManagedServiceIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedServiceIdentityUserAssignedIdentitiesValue. +func (msiAiv ManagedServiceIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MatchCondition define match conditions. type MatchCondition struct { // MatchVariables - List of match variables. @@ -31408,6 +31516,12 @@ type ServiceTagInformation struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagInformation. +func (sti ServiceTagInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceTagInformationPropertiesFormat properties of the service tag information. type ServiceTagInformationPropertiesFormat struct { // ChangeNumber - READ-ONLY; The iteration number of service tag. @@ -31420,6 +31534,12 @@ type ServiceTagInformationPropertiesFormat struct { AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagInformationPropertiesFormat. +func (stipf ServiceTagInformationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceTagsListResult response for the ListServiceTags API service call. type ServiceTagsListResult struct { autorest.Response `json:"-"` @@ -31437,6 +31557,12 @@ type ServiceTagsListResult struct { Values *[]ServiceTagInformation `json:"values,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagsListResult. +func (stlr ServiceTagsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SessionIds list of session IDs. type SessionIds struct { // SessionIds - List of session IDs. @@ -32150,6 +32276,12 @@ type TunnelConnectionHealth struct { LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"` } +// MarshalJSON is the custom marshaler for TunnelConnectionHealth. +func (tch TunnelConnectionHealth) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UnprepareNetworkPoliciesRequest details of UnprepareNetworkPolicies for Subnet. type UnprepareNetworkPoliciesRequest struct { // ServiceName - The name of the service for which subnet is being unprepared for. @@ -32696,6 +32828,12 @@ type VirtualApplianceNicProperties struct { PrivateIPAddress *string `json:"privateIpAddress,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualApplianceNicProperties. +func (vanp VirtualApplianceNicProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualAppliancePropertiesFormat network Virtual Appliance definition. type VirtualAppliancePropertiesFormat struct { // BootStrapConfigurationBlob - BootStrapConfigurationBlob storage URLs. @@ -36924,6 +37062,12 @@ type VirtualNetworkUsage struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsage. +func (vnu VirtualNetworkUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkUsageName usage strings container. type VirtualNetworkUsageName struct { // LocalizedValue - READ-ONLY; Localized subnet size and usage string. @@ -36932,6 +37076,12 @@ type VirtualNetworkUsageName struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsageName. +func (vnun VirtualNetworkUsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualRouter virtualRouter Resource. type VirtualRouter struct { autorest.Response `json:"-"` @@ -38038,6 +38188,12 @@ type VpnClientConnectionHealthDetail struct { MaxPacketsPerSecond *int64 `json:"maxPacketsPerSecond,omitempty"` } +// MarshalJSON is the custom marshaler for VpnClientConnectionHealthDetail. +func (vcchd VpnClientConnectionHealthDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnClientConnectionHealthDetailListResult list of virtual network gateway vpn client connection health. type VpnClientConnectionHealthDetailListResult struct { autorest.Response `json:"-"` @@ -39297,6 +39453,12 @@ type VpnSiteID struct { VpnSite *string `json:"vpnSite,omitempty"` } +// MarshalJSON is the custom marshaler for VpnSiteID. +func (vsi VpnSiteID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnSiteLink vpnSiteLink Resource. type VpnSiteLink struct { autorest.Response `json:"-"` @@ -39877,6 +40039,12 @@ type WatcherPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for WatcherPropertiesFormat. +func (wpf WatcherPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WatchersCheckConnectivityFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type WatchersCheckConnectivityFuture struct { @@ -40586,6 +40754,12 @@ type WebApplicationFirewallPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for WebApplicationFirewallPolicyListResult. +func (wafplr WebApplicationFirewallPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WebApplicationFirewallPolicyListResultIterator provides access to a complete listing of // WebApplicationFirewallPolicy values. type WebApplicationFirewallPolicyListResultIterator struct { diff --git a/services/network/mgmt/2020-03-01/network/CHANGELOG.md b/services/network/mgmt/2020-03-01/network/CHANGELOG.md index 52911e4cc5e4..d07d649a6451 100644 --- a/services/network/mgmt/2020-03-01/network/CHANGELOG.md +++ b/services/network/mgmt/2020-03-01/network/CHANGELOG.md @@ -1,2 +1,35 @@ # Change History +## Additive Changes + +### New Funcs + +1. ApplicationSecurityGroupPropertiesFormat.MarshalJSON() ([]byte, error) +1. AzureFirewallFqdnTagPropertiesFormat.MarshalJSON() ([]byte, error) +1. AzureFirewallIPGroups.MarshalJSON() ([]byte, error) +1. BackendAddressPoolPropertiesFormat.MarshalJSON() ([]byte, error) +1. BastionActiveSession.MarshalJSON() ([]byte, error) +1. BastionSessionState.MarshalJSON() ([]byte, error) +1. BgpPeerStatus.MarshalJSON() ([]byte, error) +1. ConfigurationDiagnosticResponse.MarshalJSON() ([]byte, error) +1. ConnectivityHop.MarshalJSON() ([]byte, error) +1. ConnectivityInformation.MarshalJSON() ([]byte, error) +1. ConnectivityIssue.MarshalJSON() ([]byte, error) +1. ContainerNetworkInterfaceIPConfigurationPropertiesFormat.MarshalJSON() ([]byte, error) +1. DdosProtectionPlanPropertiesFormat.MarshalJSON() ([]byte, error) +1. ExpressRouteConnectionID.MarshalJSON() ([]byte, error) +1. ExpressRoutePortsLocationBandwidths.MarshalJSON() ([]byte, error) +1. GatewayRoute.MarshalJSON() ([]byte, error) +1. InterfaceIPConfigurationPrivateLinkConnectionProperties.MarshalJSON() ([]byte, error) +1. ManagedServiceIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. ServiceTagInformation.MarshalJSON() ([]byte, error) +1. ServiceTagInformationPropertiesFormat.MarshalJSON() ([]byte, error) +1. ServiceTagsListResult.MarshalJSON() ([]byte, error) +1. TunnelConnectionHealth.MarshalJSON() ([]byte, error) +1. VirtualApplianceNicProperties.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsage.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsageName.MarshalJSON() ([]byte, error) +1. VpnClientConnectionHealthDetail.MarshalJSON() ([]byte, error) +1. VpnSiteID.MarshalJSON() ([]byte, error) +1. WatcherPropertiesFormat.MarshalJSON() ([]byte, error) +1. WebApplicationFirewallPolicyListResult.MarshalJSON() ([]byte, error) diff --git a/services/network/mgmt/2020-03-01/network/_meta.json b/services/network/mgmt/2020-03-01/network/_meta.json index a35b2116d34f..8ae8f4a96afe 100644 --- a/services/network/mgmt/2020-03-01/network/_meta.json +++ b/services/network/mgmt/2020-03-01/network/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "tag": "package-2020-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/network/mgmt/2020-03-01/network/models.go b/services/network/mgmt/2020-03-01/network/models.go index 582f8639c9ae..56a0818312b2 100644 --- a/services/network/mgmt/2020-03-01/network/models.go +++ b/services/network/mgmt/2020-03-01/network/models.go @@ -3675,6 +3675,12 @@ type ApplicationSecurityGroupPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationSecurityGroupPropertiesFormat. +func (asgpf ApplicationSecurityGroupPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationSecurityGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type ApplicationSecurityGroupsCreateOrUpdateFuture struct { @@ -5272,6 +5278,12 @@ type AzureFirewallFqdnTagPropertiesFormat struct { FqdnTagName *string `json:"fqdnTagName,omitempty"` } +// MarshalJSON is the custom marshaler for AzureFirewallFqdnTagPropertiesFormat. +func (afftpf AzureFirewallFqdnTagPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureFirewallIPConfiguration IP configuration of an Azure Firewall. type AzureFirewallIPConfiguration struct { // AzureFirewallIPConfigurationPropertiesFormat - Properties of the azure firewall IP configuration. @@ -5393,6 +5405,12 @@ type AzureFirewallIPGroups struct { ChangeNumber *string `json:"changeNumber,omitempty"` } +// MarshalJSON is the custom marshaler for AzureFirewallIPGroups. +func (afig AzureFirewallIPGroups) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureFirewallListResult response for ListAzureFirewalls API service call. type AzureFirewallListResult struct { autorest.Response `json:"-"` @@ -6180,6 +6198,12 @@ type BackendAddressPoolPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for BackendAddressPoolPropertiesFormat. +func (bappf BackendAddressPoolPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BastionActiveSession the session detail for a target. type BastionActiveSession struct { // SessionID - READ-ONLY; A unique id for the session. @@ -6206,6 +6230,12 @@ type BastionActiveSession struct { SessionDurationInMins *float64 `json:"sessionDurationInMins,omitempty"` } +// MarshalJSON is the custom marshaler for BastionActiveSession. +func (bas BastionActiveSession) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BastionActiveSessionListResult response for GetActiveSessions. type BastionActiveSessionListResult struct { autorest.Response `json:"-"` @@ -7027,6 +7057,12 @@ type BastionSessionState struct { State *string `json:"state,omitempty"` } +// MarshalJSON is the custom marshaler for BastionSessionState. +func (bss BastionSessionState) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BastionShareableLink bastion Shareable Link. type BastionShareableLink struct { // VM - Reference of the virtual machine resource. @@ -7250,6 +7286,12 @@ type BgpPeerStatus struct { MessagesReceived *int64 `json:"messagesReceived,omitempty"` } +// MarshalJSON is the custom marshaler for BgpPeerStatus. +func (bps BgpPeerStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BgpPeerStatusListResult response for list BGP peer status API service call. type BgpPeerStatusListResult struct { autorest.Response `json:"-"` @@ -7596,6 +7638,12 @@ type ConfigurationDiagnosticResponse struct { Results *[]ConfigurationDiagnosticResult `json:"results,omitempty"` } +// MarshalJSON is the custom marshaler for ConfigurationDiagnosticResponse. +func (cdr ConfigurationDiagnosticResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConfigurationDiagnosticResult network configuration diagnostic result corresponded to provided traffic // query. type ConfigurationDiagnosticResult struct { @@ -8314,6 +8362,12 @@ type ConnectivityHop struct { Issues *[]ConnectivityIssue `json:"issues,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityHop. +func (ch ConnectivityHop) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityInformation information on the connectivity status. type ConnectivityInformation struct { autorest.Response `json:"-"` @@ -8333,6 +8387,12 @@ type ConnectivityInformation struct { ProbesFailed *int32 `json:"probesFailed,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityInformation. +func (ci ConnectivityInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityIssue information about an issue encountered in the process of checking for connectivity. type ConnectivityIssue struct { // Origin - READ-ONLY; The origin of the issue. Possible values include: 'OriginLocal', 'OriginInbound', 'OriginOutbound' @@ -8345,6 +8405,12 @@ type ConnectivityIssue struct { Context *[]map[string]*string `json:"context,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityIssue. +func (ci ConnectivityIssue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityParameters parameters that determine how the connectivity check will be performed. type ConnectivityParameters struct { // Source - The source of the connection. @@ -8656,6 +8722,12 @@ type ContainerNetworkInterfaceIPConfigurationPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerNetworkInterfaceIPConfigurationPropertiesFormat. +func (cniicpf ContainerNetworkInterfaceIPConfigurationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerNetworkInterfacePropertiesFormat properties of container network interface. type ContainerNetworkInterfacePropertiesFormat struct { // ContainerNetworkInterfaceConfiguration - READ-ONLY; Container network interface configuration from which this container network interface is created. @@ -9191,6 +9263,12 @@ type DdosProtectionPlanPropertiesFormat struct { VirtualNetworks *[]SubResource `json:"virtualNetworks,omitempty"` } +// MarshalJSON is the custom marshaler for DdosProtectionPlanPropertiesFormat. +func (dpppf DdosProtectionPlanPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DdosProtectionPlansCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type DdosProtectionPlansCreateOrUpdateFuture struct { @@ -11568,6 +11646,12 @@ type ExpressRouteConnectionID struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRouteConnectionID. +func (erci ExpressRouteConnectionID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRouteConnectionList expressRouteConnection list. type ExpressRouteConnectionList struct { autorest.Response `json:"-"` @@ -13666,6 +13750,12 @@ type ExpressRoutePortsLocationBandwidths struct { ValueInGbps *int32 `json:"valueInGbps,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRoutePortsLocationBandwidths. +func (erplb ExpressRoutePortsLocationBandwidths) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRoutePortsLocationListResult response for ListExpressRoutePortsLocations API service call. type ExpressRoutePortsLocationListResult struct { autorest.Response `json:"-"` @@ -16065,6 +16155,12 @@ type GatewayRoute struct { Weight *int32 `json:"weight,omitempty"` } +// MarshalJSON is the custom marshaler for GatewayRoute. +func (gr GatewayRoute) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GatewayRouteListResult list of virtual network gateway routes. type GatewayRouteListResult struct { autorest.Response `json:"-"` @@ -17330,6 +17426,12 @@ type InterfaceIPConfigurationPrivateLinkConnectionProperties struct { Fqdns *[]string `json:"fqdns,omitempty"` } +// MarshalJSON is the custom marshaler for InterfaceIPConfigurationPrivateLinkConnectionProperties. +func (iicplcp InterfaceIPConfigurationPrivateLinkConnectionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InterfaceIPConfigurationPropertiesFormat properties of IP configuration. type InterfaceIPConfigurationPropertiesFormat struct { // VirtualNetworkTaps - The reference to Virtual Network Taps. @@ -23063,6 +23165,12 @@ type ManagedServiceIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedServiceIdentityUserAssignedIdentitiesValue. +func (msiAiv ManagedServiceIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MatchCondition define match conditions. type MatchCondition struct { // MatchVariables - List of match variables. @@ -32708,6 +32816,12 @@ type ServiceTagInformation struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagInformation. +func (sti ServiceTagInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceTagInformationPropertiesFormat properties of the service tag information. type ServiceTagInformationPropertiesFormat struct { // ChangeNumber - READ-ONLY; The iteration number of service tag. @@ -32720,6 +32834,12 @@ type ServiceTagInformationPropertiesFormat struct { AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagInformationPropertiesFormat. +func (stipf ServiceTagInformationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceTagsListResult response for the ListServiceTags API service call. type ServiceTagsListResult struct { autorest.Response `json:"-"` @@ -32737,6 +32857,12 @@ type ServiceTagsListResult struct { Values *[]ServiceTagInformation `json:"values,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagsListResult. +func (stlr ServiceTagsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SessionIds list of session IDs. type SessionIds struct { // SessionIds - List of session IDs. @@ -33455,6 +33581,12 @@ type TunnelConnectionHealth struct { LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"` } +// MarshalJSON is the custom marshaler for TunnelConnectionHealth. +func (tch TunnelConnectionHealth) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UnprepareNetworkPoliciesRequest details of UnprepareNetworkPolicies for Subnet. type UnprepareNetworkPoliciesRequest struct { // ServiceName - The name of the service for which subnet is being unprepared for. @@ -34001,6 +34133,12 @@ type VirtualApplianceNicProperties struct { PrivateIPAddress *string `json:"privateIpAddress,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualApplianceNicProperties. +func (vanp VirtualApplianceNicProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualAppliancePropertiesFormat network Virtual Appliance definition. type VirtualAppliancePropertiesFormat struct { // BootStrapConfigurationBlob - BootStrapConfigurationBlob storage URLs. @@ -38244,6 +38382,12 @@ type VirtualNetworkUsage struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsage. +func (vnu VirtualNetworkUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkUsageName usage strings container. type VirtualNetworkUsageName struct { // LocalizedValue - READ-ONLY; Localized subnet size and usage string. @@ -38252,6 +38396,12 @@ type VirtualNetworkUsageName struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsageName. +func (vnun VirtualNetworkUsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualRouter virtualRouter Resource. type VirtualRouter struct { autorest.Response `json:"-"` @@ -39360,6 +39510,12 @@ type VpnClientConnectionHealthDetail struct { MaxPacketsPerSecond *int64 `json:"maxPacketsPerSecond,omitempty"` } +// MarshalJSON is the custom marshaler for VpnClientConnectionHealthDetail. +func (vcchd VpnClientConnectionHealthDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnClientConnectionHealthDetailListResult list of virtual network gateway vpn client connection health. type VpnClientConnectionHealthDetailListResult struct { autorest.Response `json:"-"` @@ -40629,6 +40785,12 @@ type VpnSiteID struct { VpnSite *string `json:"vpnSite,omitempty"` } +// MarshalJSON is the custom marshaler for VpnSiteID. +func (vsi VpnSiteID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnSiteLink vpnSiteLink Resource. type VpnSiteLink struct { autorest.Response `json:"-"` @@ -41209,6 +41371,12 @@ type WatcherPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for WatcherPropertiesFormat. +func (wpf WatcherPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WatchersCheckConnectivityFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type WatchersCheckConnectivityFuture struct { @@ -41918,6 +42086,12 @@ type WebApplicationFirewallPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for WebApplicationFirewallPolicyListResult. +func (wafplr WebApplicationFirewallPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WebApplicationFirewallPolicyListResultIterator provides access to a complete listing of // WebApplicationFirewallPolicy values. type WebApplicationFirewallPolicyListResultIterator struct { diff --git a/services/network/mgmt/2020-04-01/network/CHANGELOG.md b/services/network/mgmt/2020-04-01/network/CHANGELOG.md index 52911e4cc5e4..4ecc582f95c8 100644 --- a/services/network/mgmt/2020-04-01/network/CHANGELOG.md +++ b/services/network/mgmt/2020-04-01/network/CHANGELOG.md @@ -1,2 +1,34 @@ # Change History +## Additive Changes + +### New Funcs + +1. ApplicationSecurityGroupPropertiesFormat.MarshalJSON() ([]byte, error) +1. AzureFirewallFqdnTagPropertiesFormat.MarshalJSON() ([]byte, error) +1. AzureFirewallIPGroups.MarshalJSON() ([]byte, error) +1. BastionActiveSession.MarshalJSON() ([]byte, error) +1. BastionSessionState.MarshalJSON() ([]byte, error) +1. BgpPeerStatus.MarshalJSON() ([]byte, error) +1. ConfigurationDiagnosticResponse.MarshalJSON() ([]byte, error) +1. ConnectivityHop.MarshalJSON() ([]byte, error) +1. ConnectivityInformation.MarshalJSON() ([]byte, error) +1. ConnectivityIssue.MarshalJSON() ([]byte, error) +1. ContainerNetworkInterfaceIPConfigurationPropertiesFormat.MarshalJSON() ([]byte, error) +1. DdosProtectionPlanPropertiesFormat.MarshalJSON() ([]byte, error) +1. ExpressRouteConnectionID.MarshalJSON() ([]byte, error) +1. ExpressRoutePortsLocationBandwidths.MarshalJSON() ([]byte, error) +1. GatewayRoute.MarshalJSON() ([]byte, error) +1. InterfaceIPConfigurationPrivateLinkConnectionProperties.MarshalJSON() ([]byte, error) +1. ManagedServiceIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. ServiceTagInformation.MarshalJSON() ([]byte, error) +1. ServiceTagInformationPropertiesFormat.MarshalJSON() ([]byte, error) +1. ServiceTagsListResult.MarshalJSON() ([]byte, error) +1. TunnelConnectionHealth.MarshalJSON() ([]byte, error) +1. VirtualApplianceNicProperties.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsage.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsageName.MarshalJSON() ([]byte, error) +1. VpnClientConnectionHealthDetail.MarshalJSON() ([]byte, error) +1. VpnSiteID.MarshalJSON() ([]byte, error) +1. WatcherPropertiesFormat.MarshalJSON() ([]byte, error) +1. WebApplicationFirewallPolicyListResult.MarshalJSON() ([]byte, error) diff --git a/services/network/mgmt/2020-04-01/network/_meta.json b/services/network/mgmt/2020-04-01/network/_meta.json index 965e15ad6e4a..fe5091f1f380 100644 --- a/services/network/mgmt/2020-04-01/network/_meta.json +++ b/services/network/mgmt/2020-04-01/network/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "tag": "package-2020-04", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/network/mgmt/2020-04-01/network/models.go b/services/network/mgmt/2020-04-01/network/models.go index 210ca87f1bfe..c10bbe4a054a 100644 --- a/services/network/mgmt/2020-04-01/network/models.go +++ b/services/network/mgmt/2020-04-01/network/models.go @@ -3675,6 +3675,12 @@ type ApplicationSecurityGroupPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationSecurityGroupPropertiesFormat. +func (asgpf ApplicationSecurityGroupPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationSecurityGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type ApplicationSecurityGroupsCreateOrUpdateFuture struct { @@ -5272,6 +5278,12 @@ type AzureFirewallFqdnTagPropertiesFormat struct { FqdnTagName *string `json:"fqdnTagName,omitempty"` } +// MarshalJSON is the custom marshaler for AzureFirewallFqdnTagPropertiesFormat. +func (afftpf AzureFirewallFqdnTagPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureFirewallIPConfiguration IP configuration of an Azure Firewall. type AzureFirewallIPConfiguration struct { // AzureFirewallIPConfigurationPropertiesFormat - Properties of the azure firewall IP configuration. @@ -5393,6 +5405,12 @@ type AzureFirewallIPGroups struct { ChangeNumber *string `json:"changeNumber,omitempty"` } +// MarshalJSON is the custom marshaler for AzureFirewallIPGroups. +func (afig AzureFirewallIPGroups) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureFirewallListResult response for ListAzureFirewalls API service call. type AzureFirewallListResult struct { autorest.Response `json:"-"` @@ -6217,6 +6235,12 @@ type BastionActiveSession struct { SessionDurationInMins *float64 `json:"sessionDurationInMins,omitempty"` } +// MarshalJSON is the custom marshaler for BastionActiveSession. +func (bas BastionActiveSession) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BastionActiveSessionListResult response for GetActiveSessions. type BastionActiveSessionListResult struct { autorest.Response `json:"-"` @@ -7038,6 +7062,12 @@ type BastionSessionState struct { State *string `json:"state,omitempty"` } +// MarshalJSON is the custom marshaler for BastionSessionState. +func (bss BastionSessionState) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BastionShareableLink bastion Shareable Link. type BastionShareableLink struct { // VM - Reference of the virtual machine resource. @@ -7261,6 +7291,12 @@ type BgpPeerStatus struct { MessagesReceived *int64 `json:"messagesReceived,omitempty"` } +// MarshalJSON is the custom marshaler for BgpPeerStatus. +func (bps BgpPeerStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BgpPeerStatusListResult response for list BGP peer status API service call. type BgpPeerStatusListResult struct { autorest.Response `json:"-"` @@ -7607,6 +7643,12 @@ type ConfigurationDiagnosticResponse struct { Results *[]ConfigurationDiagnosticResult `json:"results,omitempty"` } +// MarshalJSON is the custom marshaler for ConfigurationDiagnosticResponse. +func (cdr ConfigurationDiagnosticResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConfigurationDiagnosticResult network configuration diagnostic result corresponded to provided traffic // query. type ConfigurationDiagnosticResult struct { @@ -8325,6 +8367,12 @@ type ConnectivityHop struct { Issues *[]ConnectivityIssue `json:"issues,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityHop. +func (ch ConnectivityHop) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityInformation information on the connectivity status. type ConnectivityInformation struct { autorest.Response `json:"-"` @@ -8344,6 +8392,12 @@ type ConnectivityInformation struct { ProbesFailed *int32 `json:"probesFailed,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityInformation. +func (ci ConnectivityInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityIssue information about an issue encountered in the process of checking for connectivity. type ConnectivityIssue struct { // Origin - READ-ONLY; The origin of the issue. Possible values include: 'OriginLocal', 'OriginInbound', 'OriginOutbound' @@ -8356,6 +8410,12 @@ type ConnectivityIssue struct { Context *[]map[string]*string `json:"context,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityIssue. +func (ci ConnectivityIssue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityParameters parameters that determine how the connectivity check will be performed. type ConnectivityParameters struct { // Source - The source of the connection. @@ -8667,6 +8727,12 @@ type ContainerNetworkInterfaceIPConfigurationPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerNetworkInterfaceIPConfigurationPropertiesFormat. +func (cniicpf ContainerNetworkInterfaceIPConfigurationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerNetworkInterfacePropertiesFormat properties of container network interface. type ContainerNetworkInterfacePropertiesFormat struct { // ContainerNetworkInterfaceConfiguration - READ-ONLY; Container network interface configuration from which this container network interface is created. @@ -9202,6 +9268,12 @@ type DdosProtectionPlanPropertiesFormat struct { VirtualNetworks *[]SubResource `json:"virtualNetworks,omitempty"` } +// MarshalJSON is the custom marshaler for DdosProtectionPlanPropertiesFormat. +func (dpppf DdosProtectionPlanPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DdosProtectionPlansCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type DdosProtectionPlansCreateOrUpdateFuture struct { @@ -11579,6 +11651,12 @@ type ExpressRouteConnectionID struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRouteConnectionID. +func (erci ExpressRouteConnectionID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRouteConnectionList expressRouteConnection list. type ExpressRouteConnectionList struct { autorest.Response `json:"-"` @@ -13682,6 +13760,12 @@ type ExpressRoutePortsLocationBandwidths struct { ValueInGbps *int32 `json:"valueInGbps,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRoutePortsLocationBandwidths. +func (erplb ExpressRoutePortsLocationBandwidths) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRoutePortsLocationListResult response for ListExpressRoutePortsLocations API service call. type ExpressRoutePortsLocationListResult struct { autorest.Response `json:"-"` @@ -16094,6 +16178,12 @@ type GatewayRoute struct { Weight *int32 `json:"weight,omitempty"` } +// MarshalJSON is the custom marshaler for GatewayRoute. +func (gr GatewayRoute) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GatewayRouteListResult list of virtual network gateway routes. type GatewayRouteListResult struct { autorest.Response `json:"-"` @@ -17574,6 +17664,12 @@ type InterfaceIPConfigurationPrivateLinkConnectionProperties struct { Fqdns *[]string `json:"fqdns,omitempty"` } +// MarshalJSON is the custom marshaler for InterfaceIPConfigurationPrivateLinkConnectionProperties. +func (iicplcp InterfaceIPConfigurationPrivateLinkConnectionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InterfaceIPConfigurationPropertiesFormat properties of IP configuration. type InterfaceIPConfigurationPropertiesFormat struct { // VirtualNetworkTaps - The reference to Virtual Network Taps. @@ -23621,6 +23717,12 @@ type ManagedServiceIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedServiceIdentityUserAssignedIdentitiesValue. +func (msiAiv ManagedServiceIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MatchCondition define match conditions. type MatchCondition struct { // MatchVariables - List of match variables. @@ -33290,6 +33392,12 @@ type ServiceTagInformation struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagInformation. +func (sti ServiceTagInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceTagInformationPropertiesFormat properties of the service tag information. type ServiceTagInformationPropertiesFormat struct { // ChangeNumber - READ-ONLY; The iteration number of service tag. @@ -33302,6 +33410,12 @@ type ServiceTagInformationPropertiesFormat struct { AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagInformationPropertiesFormat. +func (stipf ServiceTagInformationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceTagsListResult response for the ListServiceTags API service call. type ServiceTagsListResult struct { autorest.Response `json:"-"` @@ -33319,6 +33433,12 @@ type ServiceTagsListResult struct { Values *[]ServiceTagInformation `json:"values,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagsListResult. +func (stlr ServiceTagsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SessionIds list of session IDs. type SessionIds struct { // SessionIds - List of session IDs. @@ -34047,6 +34167,12 @@ type TunnelConnectionHealth struct { LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"` } +// MarshalJSON is the custom marshaler for TunnelConnectionHealth. +func (tch TunnelConnectionHealth) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UnprepareNetworkPoliciesRequest details of UnprepareNetworkPolicies for Subnet. type UnprepareNetworkPoliciesRequest struct { // ServiceName - The name of the service for which subnet is being unprepared for. @@ -34593,6 +34719,12 @@ type VirtualApplianceNicProperties struct { PrivateIPAddress *string `json:"privateIpAddress,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualApplianceNicProperties. +func (vanp VirtualApplianceNicProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualAppliancePropertiesFormat network Virtual Appliance definition. type VirtualAppliancePropertiesFormat struct { // BootStrapConfigurationBlob - BootStrapConfigurationBlob storage URLs. @@ -38836,6 +38968,12 @@ type VirtualNetworkUsage struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsage. +func (vnu VirtualNetworkUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkUsageName usage strings container. type VirtualNetworkUsageName struct { // LocalizedValue - READ-ONLY; Localized subnet size and usage string. @@ -38844,6 +38982,12 @@ type VirtualNetworkUsageName struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsageName. +func (vnun VirtualNetworkUsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualRouter virtualRouter Resource. type VirtualRouter struct { autorest.Response `json:"-"` @@ -39958,6 +40102,12 @@ type VpnClientConnectionHealthDetail struct { MaxPacketsPerSecond *int64 `json:"maxPacketsPerSecond,omitempty"` } +// MarshalJSON is the custom marshaler for VpnClientConnectionHealthDetail. +func (vcchd VpnClientConnectionHealthDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnClientConnectionHealthDetailListResult list of virtual network gateway vpn client connection health. type VpnClientConnectionHealthDetailListResult struct { autorest.Response `json:"-"` @@ -41232,6 +41382,12 @@ type VpnSiteID struct { VpnSite *string `json:"vpnSite,omitempty"` } +// MarshalJSON is the custom marshaler for VpnSiteID. +func (vsi VpnSiteID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnSiteLink vpnSiteLink Resource. type VpnSiteLink struct { autorest.Response `json:"-"` @@ -41812,6 +41968,12 @@ type WatcherPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for WatcherPropertiesFormat. +func (wpf WatcherPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WatchersCheckConnectivityFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type WatchersCheckConnectivityFuture struct { @@ -42521,6 +42683,12 @@ type WebApplicationFirewallPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for WebApplicationFirewallPolicyListResult. +func (wafplr WebApplicationFirewallPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WebApplicationFirewallPolicyListResultIterator provides access to a complete listing of // WebApplicationFirewallPolicy values. type WebApplicationFirewallPolicyListResultIterator struct { diff --git a/services/network/mgmt/2020-05-01/network/CHANGELOG.md b/services/network/mgmt/2020-05-01/network/CHANGELOG.md index 52911e4cc5e4..9247e69d69de 100644 --- a/services/network/mgmt/2020-05-01/network/CHANGELOG.md +++ b/services/network/mgmt/2020-05-01/network/CHANGELOG.md @@ -1,2 +1,36 @@ # Change History +## Additive Changes + +### New Funcs + +1. ApplicationSecurityGroupPropertiesFormat.MarshalJSON() ([]byte, error) +1. AzureFirewallFqdnTagPropertiesFormat.MarshalJSON() ([]byte, error) +1. AzureFirewallIPGroups.MarshalJSON() ([]byte, error) +1. BastionActiveSession.MarshalJSON() ([]byte, error) +1. BastionSessionState.MarshalJSON() ([]byte, error) +1. BgpPeerStatus.MarshalJSON() ([]byte, error) +1. ConfigurationDiagnosticResponse.MarshalJSON() ([]byte, error) +1. ConnectivityHop.MarshalJSON() ([]byte, error) +1. ConnectivityInformation.MarshalJSON() ([]byte, error) +1. ConnectivityIssue.MarshalJSON() ([]byte, error) +1. ContainerNetworkInterfaceIPConfigurationPropertiesFormat.MarshalJSON() ([]byte, error) +1. DdosProtectionPlanPropertiesFormat.MarshalJSON() ([]byte, error) +1. ExpressRouteConnectionID.MarshalJSON() ([]byte, error) +1. ExpressRoutePortsLocationBandwidths.MarshalJSON() ([]byte, error) +1. GatewayRoute.MarshalJSON() ([]byte, error) +1. HopLinkProperties.MarshalJSON() ([]byte, error) +1. InterfaceIPConfigurationPrivateLinkConnectionProperties.MarshalJSON() ([]byte, error) +1. ManagedServiceIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. ServiceTagInformation.MarshalJSON() ([]byte, error) +1. ServiceTagInformationPropertiesFormat.MarshalJSON() ([]byte, error) +1. ServiceTagsListResult.MarshalJSON() ([]byte, error) +1. TunnelConnectionHealth.MarshalJSON() ([]byte, error) +1. VirtualApplianceNicProperties.MarshalJSON() ([]byte, error) +1. VirtualApplianceSkuInstances.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsage.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsageName.MarshalJSON() ([]byte, error) +1. VpnClientConnectionHealthDetail.MarshalJSON() ([]byte, error) +1. VpnSiteID.MarshalJSON() ([]byte, error) +1. WatcherPropertiesFormat.MarshalJSON() ([]byte, error) +1. WebApplicationFirewallPolicyListResult.MarshalJSON() ([]byte, error) diff --git a/services/network/mgmt/2020-05-01/network/_meta.json b/services/network/mgmt/2020-05-01/network/_meta.json index 33d3407aa648..0ef7ffc7d53c 100644 --- a/services/network/mgmt/2020-05-01/network/_meta.json +++ b/services/network/mgmt/2020-05-01/network/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "tag": "package-2020-05", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/network/mgmt/2020-05-01/network/models.go b/services/network/mgmt/2020-05-01/network/models.go index fdd00f9215c8..aca3ac7b20bb 100644 --- a/services/network/mgmt/2020-05-01/network/models.go +++ b/services/network/mgmt/2020-05-01/network/models.go @@ -4541,6 +4541,12 @@ type ApplicationSecurityGroupPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationSecurityGroupPropertiesFormat. +func (asgpf ApplicationSecurityGroupPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationSecurityGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type ApplicationSecurityGroupsCreateOrUpdateFuture struct { @@ -6138,6 +6144,12 @@ type AzureFirewallFqdnTagPropertiesFormat struct { FqdnTagName *string `json:"fqdnTagName,omitempty"` } +// MarshalJSON is the custom marshaler for AzureFirewallFqdnTagPropertiesFormat. +func (afftpf AzureFirewallFqdnTagPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureFirewallIPConfiguration IP configuration of an Azure Firewall. type AzureFirewallIPConfiguration struct { // AzureFirewallIPConfigurationPropertiesFormat - Properties of the azure firewall IP configuration. @@ -6259,6 +6271,12 @@ type AzureFirewallIPGroups struct { ChangeNumber *string `json:"changeNumber,omitempty"` } +// MarshalJSON is the custom marshaler for AzureFirewallIPGroups. +func (afig AzureFirewallIPGroups) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureFirewallListResult response for ListAzureFirewalls API service call. type AzureFirewallListResult struct { autorest.Response `json:"-"` @@ -7086,6 +7104,12 @@ type BastionActiveSession struct { SessionDurationInMins *float64 `json:"sessionDurationInMins,omitempty"` } +// MarshalJSON is the custom marshaler for BastionActiveSession. +func (bas BastionActiveSession) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BastionActiveSessionListResult response for GetActiveSessions. type BastionActiveSessionListResult struct { autorest.Response `json:"-"` @@ -7907,6 +7931,12 @@ type BastionSessionState struct { State *string `json:"state,omitempty"` } +// MarshalJSON is the custom marshaler for BastionSessionState. +func (bss BastionSessionState) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BastionShareableLink bastion Shareable Link. type BastionShareableLink struct { // VM - Reference of the virtual machine resource. @@ -8244,6 +8274,12 @@ type BgpPeerStatus struct { MessagesReceived *int64 `json:"messagesReceived,omitempty"` } +// MarshalJSON is the custom marshaler for BgpPeerStatus. +func (bps BgpPeerStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BgpPeerStatusListResult response for list BGP peer status API service call. type BgpPeerStatusListResult struct { autorest.Response `json:"-"` @@ -8600,6 +8636,12 @@ type ConfigurationDiagnosticResponse struct { Results *[]ConfigurationDiagnosticResult `json:"results,omitempty"` } +// MarshalJSON is the custom marshaler for ConfigurationDiagnosticResponse. +func (cdr ConfigurationDiagnosticResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConfigurationDiagnosticResult network configuration diagnostic result corresponded to provided traffic // query. type ConfigurationDiagnosticResult struct { @@ -9324,6 +9366,12 @@ type ConnectivityHop struct { Issues *[]ConnectivityIssue `json:"issues,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityHop. +func (ch ConnectivityHop) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityInformation information on the connectivity status. type ConnectivityInformation struct { autorest.Response `json:"-"` @@ -9343,6 +9391,12 @@ type ConnectivityInformation struct { ProbesFailed *int32 `json:"probesFailed,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityInformation. +func (ci ConnectivityInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityIssue information about an issue encountered in the process of checking for connectivity. type ConnectivityIssue struct { // Origin - READ-ONLY; The origin of the issue. Possible values include: 'OriginLocal', 'OriginInbound', 'OriginOutbound' @@ -9355,6 +9409,12 @@ type ConnectivityIssue struct { Context *[]map[string]*string `json:"context,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityIssue. +func (ci ConnectivityIssue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityParameters parameters that determine how the connectivity check will be performed. type ConnectivityParameters struct { // Source - The source of the connection. @@ -9666,6 +9726,12 @@ type ContainerNetworkInterfaceIPConfigurationPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerNetworkInterfaceIPConfigurationPropertiesFormat. +func (cniicpf ContainerNetworkInterfaceIPConfigurationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerNetworkInterfacePropertiesFormat properties of container network interface. type ContainerNetworkInterfacePropertiesFormat struct { // ContainerNetworkInterfaceConfiguration - READ-ONLY; Container network interface configuration from which this container network interface is created. @@ -10201,6 +10267,12 @@ type DdosProtectionPlanPropertiesFormat struct { VirtualNetworks *[]SubResource `json:"virtualNetworks,omitempty"` } +// MarshalJSON is the custom marshaler for DdosProtectionPlanPropertiesFormat. +func (dpppf DdosProtectionPlanPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DdosProtectionPlansCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type DdosProtectionPlansCreateOrUpdateFuture struct { @@ -12597,6 +12669,12 @@ type ExpressRouteConnectionID struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRouteConnectionID. +func (erci ExpressRouteConnectionID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRouteConnectionList expressRouteConnection list. type ExpressRouteConnectionList struct { autorest.Response `json:"-"` @@ -14700,6 +14778,12 @@ type ExpressRoutePortsLocationBandwidths struct { ValueInGbps *int32 `json:"valueInGbps,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRoutePortsLocationBandwidths. +func (erplb ExpressRoutePortsLocationBandwidths) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRoutePortsLocationListResult response for ListExpressRoutePortsLocations API service call. type ExpressRoutePortsLocationListResult struct { autorest.Response `json:"-"` @@ -17093,6 +17177,12 @@ type GatewayRoute struct { Weight *int32 `json:"weight,omitempty"` } +// MarshalJSON is the custom marshaler for GatewayRoute. +func (gr GatewayRoute) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GatewayRouteListResult list of virtual network gateway routes. type GatewayRouteListResult struct { autorest.Response `json:"-"` @@ -17341,6 +17431,12 @@ type HopLinkProperties struct { RoundTripTimeMax *int32 `json:"roundTripTimeMax,omitempty"` } +// MarshalJSON is the custom marshaler for HopLinkProperties. +func (hlp HopLinkProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HTTPConfiguration HTTP configuration of the connectivity check. type HTTPConfiguration struct { // Method - HTTP method. Possible values include: 'HTTPMethodGet' @@ -18887,6 +18983,12 @@ type InterfaceIPConfigurationPrivateLinkConnectionProperties struct { Fqdns *[]string `json:"fqdns,omitempty"` } +// MarshalJSON is the custom marshaler for InterfaceIPConfigurationPrivateLinkConnectionProperties. +func (iicplcp InterfaceIPConfigurationPrivateLinkConnectionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InterfaceIPConfigurationPropertiesFormat properties of IP configuration. type InterfaceIPConfigurationPropertiesFormat struct { // VirtualNetworkTaps - The reference to Virtual Network Taps. @@ -25254,6 +25356,12 @@ type ManagedServiceIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedServiceIdentityUserAssignedIdentitiesValue. +func (msiAiv ManagedServiceIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MatchCondition define match conditions. type MatchCondition struct { // MatchVariables - List of match variables. @@ -34949,6 +35057,12 @@ type ServiceTagInformation struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagInformation. +func (sti ServiceTagInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceTagInformationPropertiesFormat properties of the service tag information. type ServiceTagInformationPropertiesFormat struct { // ChangeNumber - READ-ONLY; The iteration number of service tag. @@ -34961,6 +35075,12 @@ type ServiceTagInformationPropertiesFormat struct { AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagInformationPropertiesFormat. +func (stipf ServiceTagInformationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceTagsListResult response for the ListServiceTags API service call. type ServiceTagsListResult struct { autorest.Response `json:"-"` @@ -34978,6 +35098,12 @@ type ServiceTagsListResult struct { Values *[]ServiceTagInformation `json:"values,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagsListResult. +func (stlr ServiceTagsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SessionIds list of session IDs. type SessionIds struct { // SessionIds - List of session IDs. @@ -35706,6 +35832,12 @@ type TunnelConnectionHealth struct { LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"` } +// MarshalJSON is the custom marshaler for TunnelConnectionHealth. +func (tch TunnelConnectionHealth) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UnprepareNetworkPoliciesRequest details of UnprepareNetworkPolicies for Subnet. type UnprepareNetworkPoliciesRequest struct { // ServiceName - The name of the service for which subnet is being unprepared for. @@ -36238,6 +36370,12 @@ type VirtualApplianceNicProperties struct { PrivateIPAddress *string `json:"privateIpAddress,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualApplianceNicProperties. +func (vanp VirtualApplianceNicProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualAppliancePropertiesFormat network Virtual Appliance definition. type VirtualAppliancePropertiesFormat struct { // NvaSku - Network Virtual Appliance SKU. @@ -36839,6 +36977,12 @@ type VirtualApplianceSkuInstances struct { InstanceCount *int32 `json:"instanceCount,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualApplianceSkuInstances. +func (vasi VirtualApplianceSkuInstances) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualApplianceSkuListResult response for ListNetworkVirtualApplianceSkus API service call. type VirtualApplianceSkuListResult struct { autorest.Response `json:"-"` @@ -41378,6 +41522,12 @@ type VirtualNetworkUsage struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsage. +func (vnu VirtualNetworkUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkUsageName usage strings container. type VirtualNetworkUsageName struct { // LocalizedValue - READ-ONLY; Localized subnet size and usage string. @@ -41386,6 +41536,12 @@ type VirtualNetworkUsageName struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsageName. +func (vnun VirtualNetworkUsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualRouter virtualRouter Resource. type VirtualRouter struct { autorest.Response `json:"-"` @@ -42500,6 +42656,12 @@ type VpnClientConnectionHealthDetail struct { MaxPacketsPerSecond *int64 `json:"maxPacketsPerSecond,omitempty"` } +// MarshalJSON is the custom marshaler for VpnClientConnectionHealthDetail. +func (vcchd VpnClientConnectionHealthDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnClientConnectionHealthDetailListResult list of virtual network gateway vpn client connection health. type VpnClientConnectionHealthDetailListResult struct { autorest.Response `json:"-"` @@ -43774,6 +43936,12 @@ type VpnSiteID struct { VpnSite *string `json:"vpnSite,omitempty"` } +// MarshalJSON is the custom marshaler for VpnSiteID. +func (vsi VpnSiteID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnSiteLink vpnSiteLink Resource. type VpnSiteLink struct { autorest.Response `json:"-"` @@ -44354,6 +44522,12 @@ type WatcherPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for WatcherPropertiesFormat. +func (wpf WatcherPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WatchersCheckConnectivityFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type WatchersCheckConnectivityFuture struct { @@ -45063,6 +45237,12 @@ type WebApplicationFirewallPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for WebApplicationFirewallPolicyListResult. +func (wafplr WebApplicationFirewallPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WebApplicationFirewallPolicyListResultIterator provides access to a complete listing of // WebApplicationFirewallPolicy values. type WebApplicationFirewallPolicyListResultIterator struct { diff --git a/services/network/mgmt/2020-06-01/network/CHANGELOG.md b/services/network/mgmt/2020-06-01/network/CHANGELOG.md index 52911e4cc5e4..737046ff7ec9 100644 --- a/services/network/mgmt/2020-06-01/network/CHANGELOG.md +++ b/services/network/mgmt/2020-06-01/network/CHANGELOG.md @@ -1,2 +1,37 @@ # Change History +## Additive Changes + +### New Funcs + +1. ApplicationSecurityGroupPropertiesFormat.MarshalJSON() ([]byte, error) +1. AzureFirewallFqdnTagPropertiesFormat.MarshalJSON() ([]byte, error) +1. AzureFirewallIPGroups.MarshalJSON() ([]byte, error) +1. BastionActiveSession.MarshalJSON() ([]byte, error) +1. BastionSessionState.MarshalJSON() ([]byte, error) +1. BgpPeerStatus.MarshalJSON() ([]byte, error) +1. ConfigurationDiagnosticResponse.MarshalJSON() ([]byte, error) +1. ConnectivityHop.MarshalJSON() ([]byte, error) +1. ConnectivityInformation.MarshalJSON() ([]byte, error) +1. ConnectivityIssue.MarshalJSON() ([]byte, error) +1. ContainerNetworkInterfaceIPConfigurationPropertiesFormat.MarshalJSON() ([]byte, error) +1. DdosProtectionPlanPropertiesFormat.MarshalJSON() ([]byte, error) +1. ExpressRouteConnectionID.MarshalJSON() ([]byte, error) +1. ExpressRoutePortsLocationBandwidths.MarshalJSON() ([]byte, error) +1. GatewayRoute.MarshalJSON() ([]byte, error) +1. HopLinkProperties.MarshalJSON() ([]byte, error) +1. InterfaceIPConfigurationPrivateLinkConnectionProperties.MarshalJSON() ([]byte, error) +1. ManagedServiceIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. PeerRoute.MarshalJSON() ([]byte, error) +1. ServiceTagInformation.MarshalJSON() ([]byte, error) +1. ServiceTagInformationPropertiesFormat.MarshalJSON() ([]byte, error) +1. ServiceTagsListResult.MarshalJSON() ([]byte, error) +1. TunnelConnectionHealth.MarshalJSON() ([]byte, error) +1. VirtualApplianceNicProperties.MarshalJSON() ([]byte, error) +1. VirtualApplianceSkuInstances.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsage.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsageName.MarshalJSON() ([]byte, error) +1. VpnClientConnectionHealthDetail.MarshalJSON() ([]byte, error) +1. VpnSiteID.MarshalJSON() ([]byte, error) +1. WatcherPropertiesFormat.MarshalJSON() ([]byte, error) +1. WebApplicationFirewallPolicyListResult.MarshalJSON() ([]byte, error) diff --git a/services/network/mgmt/2020-06-01/network/_meta.json b/services/network/mgmt/2020-06-01/network/_meta.json index ff581021d5f2..b5df013791e6 100644 --- a/services/network/mgmt/2020-06-01/network/_meta.json +++ b/services/network/mgmt/2020-06-01/network/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "tag": "package-2020-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/network/mgmt/2020-06-01/network/models.go b/services/network/mgmt/2020-06-01/network/models.go index fe5a82a436fe..960e01984c15 100644 --- a/services/network/mgmt/2020-06-01/network/models.go +++ b/services/network/mgmt/2020-06-01/network/models.go @@ -4785,6 +4785,12 @@ type ApplicationSecurityGroupPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationSecurityGroupPropertiesFormat. +func (asgpf ApplicationSecurityGroupPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationSecurityGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type ApplicationSecurityGroupsCreateOrUpdateFuture struct { @@ -6382,6 +6388,12 @@ type AzureFirewallFqdnTagPropertiesFormat struct { FqdnTagName *string `json:"fqdnTagName,omitempty"` } +// MarshalJSON is the custom marshaler for AzureFirewallFqdnTagPropertiesFormat. +func (afftpf AzureFirewallFqdnTagPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureFirewallIPConfiguration IP configuration of an Azure Firewall. type AzureFirewallIPConfiguration struct { // AzureFirewallIPConfigurationPropertiesFormat - Properties of the azure firewall IP configuration. @@ -6503,6 +6515,12 @@ type AzureFirewallIPGroups struct { ChangeNumber *string `json:"changeNumber,omitempty"` } +// MarshalJSON is the custom marshaler for AzureFirewallIPGroups. +func (afig AzureFirewallIPGroups) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureFirewallListResult response for ListAzureFirewalls API service call. type AzureFirewallListResult struct { autorest.Response `json:"-"` @@ -7330,6 +7348,12 @@ type BastionActiveSession struct { SessionDurationInMins *float64 `json:"sessionDurationInMins,omitempty"` } +// MarshalJSON is the custom marshaler for BastionActiveSession. +func (bas BastionActiveSession) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BastionActiveSessionListResult response for GetActiveSessions. type BastionActiveSessionListResult struct { autorest.Response `json:"-"` @@ -8151,6 +8175,12 @@ type BastionSessionState struct { State *string `json:"state,omitempty"` } +// MarshalJSON is the custom marshaler for BastionSessionState. +func (bss BastionSessionState) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BastionShareableLink bastion Shareable Link. type BastionShareableLink struct { // VM - Reference of the virtual machine resource. @@ -8488,6 +8518,12 @@ type BgpPeerStatus struct { MessagesReceived *int64 `json:"messagesReceived,omitempty"` } +// MarshalJSON is the custom marshaler for BgpPeerStatus. +func (bps BgpPeerStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BgpPeerStatusListResult response for list BGP peer status API service call. type BgpPeerStatusListResult struct { autorest.Response `json:"-"` @@ -8844,6 +8880,12 @@ type ConfigurationDiagnosticResponse struct { Results *[]ConfigurationDiagnosticResult `json:"results,omitempty"` } +// MarshalJSON is the custom marshaler for ConfigurationDiagnosticResponse. +func (cdr ConfigurationDiagnosticResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConfigurationDiagnosticResult network configuration diagnostic result corresponded to provided traffic // query. type ConfigurationDiagnosticResult struct { @@ -9590,6 +9632,12 @@ type ConnectivityHop struct { Issues *[]ConnectivityIssue `json:"issues,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityHop. +func (ch ConnectivityHop) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityInformation information on the connectivity status. type ConnectivityInformation struct { autorest.Response `json:"-"` @@ -9609,6 +9657,12 @@ type ConnectivityInformation struct { ProbesFailed *int32 `json:"probesFailed,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityInformation. +func (ci ConnectivityInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityIssue information about an issue encountered in the process of checking for connectivity. type ConnectivityIssue struct { // Origin - READ-ONLY; The origin of the issue. Possible values include: 'OriginLocal', 'OriginInbound', 'OriginOutbound' @@ -9621,6 +9675,12 @@ type ConnectivityIssue struct { Context *[]map[string]*string `json:"context,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityIssue. +func (ci ConnectivityIssue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityParameters parameters that determine how the connectivity check will be performed. type ConnectivityParameters struct { // Source - The source of the connection. @@ -9932,6 +9992,12 @@ type ContainerNetworkInterfaceIPConfigurationPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerNetworkInterfaceIPConfigurationPropertiesFormat. +func (cniicpf ContainerNetworkInterfaceIPConfigurationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerNetworkInterfacePropertiesFormat properties of container network interface. type ContainerNetworkInterfacePropertiesFormat struct { // ContainerNetworkInterfaceConfiguration - READ-ONLY; Container network interface configuration from which this container network interface is created. @@ -10861,6 +10927,12 @@ type DdosProtectionPlanPropertiesFormat struct { VirtualNetworks *[]SubResource `json:"virtualNetworks,omitempty"` } +// MarshalJSON is the custom marshaler for DdosProtectionPlanPropertiesFormat. +func (dpppf DdosProtectionPlanPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DdosProtectionPlansCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type DdosProtectionPlansCreateOrUpdateFuture struct { @@ -13668,6 +13740,12 @@ type ExpressRouteConnectionID struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRouteConnectionID. +func (erci ExpressRouteConnectionID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRouteConnectionList expressRouteConnection list. type ExpressRouteConnectionList struct { autorest.Response `json:"-"` @@ -15767,6 +15845,12 @@ type ExpressRoutePortsLocationBandwidths struct { ValueInGbps *int32 `json:"valueInGbps,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRoutePortsLocationBandwidths. +func (erplb ExpressRoutePortsLocationBandwidths) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRoutePortsLocationListResult response for ListExpressRoutePortsLocations API service call. type ExpressRoutePortsLocationListResult struct { autorest.Response `json:"-"` @@ -18160,6 +18244,12 @@ type GatewayRoute struct { Weight *int32 `json:"weight,omitempty"` } +// MarshalJSON is the custom marshaler for GatewayRoute. +func (gr GatewayRoute) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GatewayRouteListResult list of virtual network gateway routes. type GatewayRouteListResult struct { autorest.Response `json:"-"` @@ -18421,6 +18511,12 @@ type HopLinkProperties struct { RoundTripTimeMax *int32 `json:"roundTripTimeMax,omitempty"` } +// MarshalJSON is the custom marshaler for HopLinkProperties. +func (hlp HopLinkProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HTTPConfiguration HTTP configuration of the connectivity check. type HTTPConfiguration struct { // Method - HTTP method. Possible values include: 'HTTPMethodGet' @@ -20127,6 +20223,12 @@ type InterfaceIPConfigurationPrivateLinkConnectionProperties struct { Fqdns *[]string `json:"fqdns,omitempty"` } +// MarshalJSON is the custom marshaler for InterfaceIPConfigurationPrivateLinkConnectionProperties. +func (iicplcp InterfaceIPConfigurationPrivateLinkConnectionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InterfaceIPConfigurationPropertiesFormat properties of IP configuration. type InterfaceIPConfigurationPropertiesFormat struct { // VirtualNetworkTaps - The reference to Virtual Network Taps. @@ -26496,6 +26598,12 @@ type ManagedServiceIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedServiceIdentityUserAssignedIdentitiesValue. +func (msiAiv ManagedServiceIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MatchCondition define match conditions. type MatchCondition struct { // MatchVariables - List of match variables. @@ -29003,6 +29111,12 @@ type PeerRoute struct { Weight *int32 `json:"weight,omitempty"` } +// MarshalJSON is the custom marshaler for PeerRoute. +func (pr PeerRoute) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PeerRouteList list of virtual router peer routes. type PeerRouteList struct { autorest.Response `json:"-"` @@ -36344,6 +36458,12 @@ type ServiceTagInformation struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagInformation. +func (sti ServiceTagInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceTagInformationPropertiesFormat properties of the service tag information. type ServiceTagInformationPropertiesFormat struct { // ChangeNumber - READ-ONLY; The iteration number of service tag. @@ -36356,6 +36476,12 @@ type ServiceTagInformationPropertiesFormat struct { AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagInformationPropertiesFormat. +func (stipf ServiceTagInformationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceTagsListResult response for the ListServiceTags API service call. type ServiceTagsListResult struct { autorest.Response `json:"-"` @@ -36373,6 +36499,12 @@ type ServiceTagsListResult struct { Values *[]ServiceTagInformation `json:"values,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagsListResult. +func (stlr ServiceTagsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SessionIds list of session IDs. type SessionIds struct { // SessionIds - List of session IDs. @@ -37101,6 +37233,12 @@ type TunnelConnectionHealth struct { LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"` } +// MarshalJSON is the custom marshaler for TunnelConnectionHealth. +func (tch TunnelConnectionHealth) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UnprepareNetworkPoliciesRequest details of UnprepareNetworkPolicies for Subnet. type UnprepareNetworkPoliciesRequest struct { // ServiceName - The name of the service for which subnet is being unprepared for. @@ -37633,6 +37771,12 @@ type VirtualApplianceNicProperties struct { PrivateIPAddress *string `json:"privateIpAddress,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualApplianceNicProperties. +func (vanp VirtualApplianceNicProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualAppliancePropertiesFormat network Virtual Appliance definition. type VirtualAppliancePropertiesFormat struct { // NvaSku - Network Virtual Appliance SKU. @@ -38238,6 +38382,12 @@ type VirtualApplianceSkuInstances struct { InstanceCount *int32 `json:"instanceCount,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualApplianceSkuInstances. +func (vasi VirtualApplianceSkuInstances) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualApplianceSkuListResult response for ListNetworkVirtualApplianceSkus API service call. type VirtualApplianceSkuListResult struct { autorest.Response `json:"-"` @@ -42873,6 +43023,12 @@ type VirtualNetworkUsage struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsage. +func (vnu VirtualNetworkUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkUsageName usage strings container. type VirtualNetworkUsageName struct { // LocalizedValue - READ-ONLY; Localized subnet size and usage string. @@ -42881,6 +43037,12 @@ type VirtualNetworkUsageName struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsageName. +func (vnun VirtualNetworkUsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualRouter virtualRouter Resource. type VirtualRouter struct { autorest.Response `json:"-"` @@ -43995,6 +44157,12 @@ type VpnClientConnectionHealthDetail struct { MaxPacketsPerSecond *int64 `json:"maxPacketsPerSecond,omitempty"` } +// MarshalJSON is the custom marshaler for VpnClientConnectionHealthDetail. +func (vcchd VpnClientConnectionHealthDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnClientConnectionHealthDetailListResult list of virtual network gateway vpn client connection health. type VpnClientConnectionHealthDetailListResult struct { autorest.Response `json:"-"` @@ -45526,6 +45694,12 @@ type VpnSiteID struct { VpnSite *string `json:"vpnSite,omitempty"` } +// MarshalJSON is the custom marshaler for VpnSiteID. +func (vsi VpnSiteID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnSiteLink vpnSiteLink Resource. type VpnSiteLink struct { autorest.Response `json:"-"` @@ -46111,6 +46285,12 @@ type WatcherPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for WatcherPropertiesFormat. +func (wpf WatcherPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WatchersCheckConnectivityFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type WatchersCheckConnectivityFuture struct { @@ -46820,6 +47000,12 @@ type WebApplicationFirewallPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for WebApplicationFirewallPolicyListResult. +func (wafplr WebApplicationFirewallPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WebApplicationFirewallPolicyListResultIterator provides access to a complete listing of // WebApplicationFirewallPolicy values. type WebApplicationFirewallPolicyListResultIterator struct { diff --git a/services/network/mgmt/2020-07-01/network/CHANGELOG.md b/services/network/mgmt/2020-07-01/network/CHANGELOG.md index 52911e4cc5e4..ef8cbf9eb775 100644 --- a/services/network/mgmt/2020-07-01/network/CHANGELOG.md +++ b/services/network/mgmt/2020-07-01/network/CHANGELOG.md @@ -1,2 +1,38 @@ # Change History +## Additive Changes + +### New Funcs + +1. ApplicationSecurityGroupPropertiesFormat.MarshalJSON() ([]byte, error) +1. AzureFirewallFqdnTagPropertiesFormat.MarshalJSON() ([]byte, error) +1. AzureFirewallIPGroups.MarshalJSON() ([]byte, error) +1. AzureWebCategoryPropertiesFormat.MarshalJSON() ([]byte, error) +1. BastionActiveSession.MarshalJSON() ([]byte, error) +1. BastionSessionState.MarshalJSON() ([]byte, error) +1. BgpPeerStatus.MarshalJSON() ([]byte, error) +1. ConfigurationDiagnosticResponse.MarshalJSON() ([]byte, error) +1. ConnectivityHop.MarshalJSON() ([]byte, error) +1. ConnectivityInformation.MarshalJSON() ([]byte, error) +1. ConnectivityIssue.MarshalJSON() ([]byte, error) +1. ContainerNetworkInterfaceIPConfigurationPropertiesFormat.MarshalJSON() ([]byte, error) +1. DdosProtectionPlanPropertiesFormat.MarshalJSON() ([]byte, error) +1. ExpressRouteConnectionID.MarshalJSON() ([]byte, error) +1. ExpressRoutePortsLocationBandwidths.MarshalJSON() ([]byte, error) +1. GatewayRoute.MarshalJSON() ([]byte, error) +1. HopLinkProperties.MarshalJSON() ([]byte, error) +1. InterfaceIPConfigurationPrivateLinkConnectionProperties.MarshalJSON() ([]byte, error) +1. ManagedServiceIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. PeerRoute.MarshalJSON() ([]byte, error) +1. ServiceTagInformation.MarshalJSON() ([]byte, error) +1. ServiceTagInformationPropertiesFormat.MarshalJSON() ([]byte, error) +1. ServiceTagsListResult.MarshalJSON() ([]byte, error) +1. TunnelConnectionHealth.MarshalJSON() ([]byte, error) +1. VirtualApplianceNicProperties.MarshalJSON() ([]byte, error) +1. VirtualApplianceSkuInstances.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsage.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsageName.MarshalJSON() ([]byte, error) +1. VpnClientConnectionHealthDetail.MarshalJSON() ([]byte, error) +1. VpnSiteID.MarshalJSON() ([]byte, error) +1. WatcherPropertiesFormat.MarshalJSON() ([]byte, error) +1. WebApplicationFirewallPolicyListResult.MarshalJSON() ([]byte, error) diff --git a/services/network/mgmt/2020-07-01/network/_meta.json b/services/network/mgmt/2020-07-01/network/_meta.json index 63c78a2915ba..dbaf58d6d704 100644 --- a/services/network/mgmt/2020-07-01/network/_meta.json +++ b/services/network/mgmt/2020-07-01/network/_meta.json @@ -2,9 +2,9 @@ "commit": "3a3a9452f965a227ce43e6b545035b99dd175f23", "readme": "/_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "tag": "package-2020-07", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/network/mgmt/2020-07-01/network/models.go b/services/network/mgmt/2020-07-01/network/models.go index cdfce8bb4bad..03a580b4cece 100644 --- a/services/network/mgmt/2020-07-01/network/models.go +++ b/services/network/mgmt/2020-07-01/network/models.go @@ -4800,6 +4800,12 @@ type ApplicationSecurityGroupPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationSecurityGroupPropertiesFormat. +func (asgpf ApplicationSecurityGroupPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationSecurityGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type ApplicationSecurityGroupsCreateOrUpdateFuture struct { @@ -6397,6 +6403,12 @@ type AzureFirewallFqdnTagPropertiesFormat struct { FqdnTagName *string `json:"fqdnTagName,omitempty"` } +// MarshalJSON is the custom marshaler for AzureFirewallFqdnTagPropertiesFormat. +func (afftpf AzureFirewallFqdnTagPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureFirewallIPConfiguration IP configuration of an Azure Firewall. type AzureFirewallIPConfiguration struct { // AzureFirewallIPConfigurationPropertiesFormat - Properties of the azure firewall IP configuration. @@ -6518,6 +6530,12 @@ type AzureFirewallIPGroups struct { ChangeNumber *string `json:"changeNumber,omitempty"` } +// MarshalJSON is the custom marshaler for AzureFirewallIPGroups. +func (afig AzureFirewallIPGroups) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureFirewallListResult response for ListAzureFirewalls API service call. type AzureFirewallListResult struct { autorest.Response `json:"-"` @@ -7456,6 +7474,12 @@ type AzureWebCategoryPropertiesFormat struct { Group *string `json:"group,omitempty"` } +// MarshalJSON is the custom marshaler for AzureWebCategoryPropertiesFormat. +func (awcpf AzureWebCategoryPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BackendAddressPool pool of backend IP addresses. type BackendAddressPool struct { autorest.Response `json:"-"` @@ -7597,6 +7621,12 @@ type BastionActiveSession struct { SessionDurationInMins *float64 `json:"sessionDurationInMins,omitempty"` } +// MarshalJSON is the custom marshaler for BastionActiveSession. +func (bas BastionActiveSession) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BastionActiveSessionListResult response for GetActiveSessions. type BastionActiveSessionListResult struct { autorest.Response `json:"-"` @@ -8418,6 +8448,12 @@ type BastionSessionState struct { State *string `json:"state,omitempty"` } +// MarshalJSON is the custom marshaler for BastionSessionState. +func (bss BastionSessionState) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BastionShareableLink bastion Shareable Link. type BastionShareableLink struct { // VM - Reference of the virtual machine resource. @@ -8755,6 +8791,12 @@ type BgpPeerStatus struct { MessagesReceived *int64 `json:"messagesReceived,omitempty"` } +// MarshalJSON is the custom marshaler for BgpPeerStatus. +func (bps BgpPeerStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BgpPeerStatusListResult response for list BGP peer status API service call. type BgpPeerStatusListResult struct { autorest.Response `json:"-"` @@ -9111,6 +9153,12 @@ type ConfigurationDiagnosticResponse struct { Results *[]ConfigurationDiagnosticResult `json:"results,omitempty"` } +// MarshalJSON is the custom marshaler for ConfigurationDiagnosticResponse. +func (cdr ConfigurationDiagnosticResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConfigurationDiagnosticResult network configuration diagnostic result corresponded to provided traffic // query. type ConfigurationDiagnosticResult struct { @@ -9857,6 +9905,12 @@ type ConnectivityHop struct { Issues *[]ConnectivityIssue `json:"issues,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityHop. +func (ch ConnectivityHop) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityInformation information on the connectivity status. type ConnectivityInformation struct { autorest.Response `json:"-"` @@ -9876,6 +9930,12 @@ type ConnectivityInformation struct { ProbesFailed *int32 `json:"probesFailed,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityInformation. +func (ci ConnectivityInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityIssue information about an issue encountered in the process of checking for connectivity. type ConnectivityIssue struct { // Origin - READ-ONLY; The origin of the issue. Possible values include: 'OriginLocal', 'OriginInbound', 'OriginOutbound' @@ -9888,6 +9948,12 @@ type ConnectivityIssue struct { Context *[]map[string]*string `json:"context,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityIssue. +func (ci ConnectivityIssue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityParameters parameters that determine how the connectivity check will be performed. type ConnectivityParameters struct { // Source - The source of the connection. @@ -10199,6 +10265,12 @@ type ContainerNetworkInterfaceIPConfigurationPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerNetworkInterfaceIPConfigurationPropertiesFormat. +func (cniicpf ContainerNetworkInterfaceIPConfigurationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerNetworkInterfacePropertiesFormat properties of container network interface. type ContainerNetworkInterfacePropertiesFormat struct { // ContainerNetworkInterfaceConfiguration - READ-ONLY; Container network interface configuration from which this container network interface is created. @@ -11128,6 +11200,12 @@ type DdosProtectionPlanPropertiesFormat struct { VirtualNetworks *[]SubResource `json:"virtualNetworks,omitempty"` } +// MarshalJSON is the custom marshaler for DdosProtectionPlanPropertiesFormat. +func (dpppf DdosProtectionPlanPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DdosProtectionPlansCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type DdosProtectionPlansCreateOrUpdateFuture struct { @@ -13935,6 +14013,12 @@ type ExpressRouteConnectionID struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRouteConnectionID. +func (erci ExpressRouteConnectionID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRouteConnectionList expressRouteConnection list. type ExpressRouteConnectionList struct { autorest.Response `json:"-"` @@ -16034,6 +16118,12 @@ type ExpressRoutePortsLocationBandwidths struct { ValueInGbps *int32 `json:"valueInGbps,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRoutePortsLocationBandwidths. +func (erplb ExpressRoutePortsLocationBandwidths) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRoutePortsLocationListResult response for ListExpressRoutePortsLocations API service call. type ExpressRoutePortsLocationListResult struct { autorest.Response `json:"-"` @@ -18530,6 +18620,12 @@ type GatewayRoute struct { Weight *int32 `json:"weight,omitempty"` } +// MarshalJSON is the custom marshaler for GatewayRoute. +func (gr GatewayRoute) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GatewayRouteListResult list of virtual network gateway routes. type GatewayRouteListResult struct { autorest.Response `json:"-"` @@ -18791,6 +18887,12 @@ type HopLinkProperties struct { RoundTripTimeMax *int64 `json:"roundTripTimeMax,omitempty"` } +// MarshalJSON is the custom marshaler for HopLinkProperties. +func (hlp HopLinkProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HTTPConfiguration HTTP configuration of the connectivity check. type HTTPConfiguration struct { // Method - HTTP method. Possible values include: 'HTTPMethodGet' @@ -20511,6 +20613,12 @@ type InterfaceIPConfigurationPrivateLinkConnectionProperties struct { Fqdns *[]string `json:"fqdns,omitempty"` } +// MarshalJSON is the custom marshaler for InterfaceIPConfigurationPrivateLinkConnectionProperties. +func (iicplcp InterfaceIPConfigurationPrivateLinkConnectionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InterfaceIPConfigurationPropertiesFormat properties of IP configuration. type InterfaceIPConfigurationPropertiesFormat struct { // VirtualNetworkTaps - The reference to Virtual Network Taps. @@ -26903,6 +27011,12 @@ type ManagedServiceIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedServiceIdentityUserAssignedIdentitiesValue. +func (msiAiv ManagedServiceIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MatchCondition define match conditions. type MatchCondition struct { // MatchVariables - List of match variables. @@ -29420,6 +29534,12 @@ type PeerRoute struct { Weight *int32 `json:"weight,omitempty"` } +// MarshalJSON is the custom marshaler for PeerRoute. +func (pr PeerRoute) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PeerRouteList list of virtual router peer routes. type PeerRouteList struct { autorest.Response `json:"-"` @@ -36793,6 +36913,12 @@ type ServiceTagInformation struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagInformation. +func (sti ServiceTagInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceTagInformationPropertiesFormat properties of the service tag information. type ServiceTagInformationPropertiesFormat struct { // ChangeNumber - READ-ONLY; The iteration number of service tag. @@ -36805,6 +36931,12 @@ type ServiceTagInformationPropertiesFormat struct { AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagInformationPropertiesFormat. +func (stipf ServiceTagInformationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceTagsListResult response for the ListServiceTags API service call. type ServiceTagsListResult struct { autorest.Response `json:"-"` @@ -36824,6 +36956,12 @@ type ServiceTagsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagsListResult. +func (stlr ServiceTagsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SessionIds list of session IDs. type SessionIds struct { // SessionIds - List of session IDs. @@ -37552,6 +37690,12 @@ type TunnelConnectionHealth struct { LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"` } +// MarshalJSON is the custom marshaler for TunnelConnectionHealth. +func (tch TunnelConnectionHealth) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UnprepareNetworkPoliciesRequest details of UnprepareNetworkPolicies for Subnet. type UnprepareNetworkPoliciesRequest struct { // ServiceName - The name of the service for which subnet is being unprepared for. @@ -38084,6 +38228,12 @@ type VirtualApplianceNicProperties struct { PrivateIPAddress *string `json:"privateIpAddress,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualApplianceNicProperties. +func (vanp VirtualApplianceNicProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualAppliancePropertiesFormat network Virtual Appliance definition. type VirtualAppliancePropertiesFormat struct { // NvaSku - Network Virtual Appliance SKU. @@ -38689,6 +38839,12 @@ type VirtualApplianceSkuInstances struct { InstanceCount *int32 `json:"instanceCount,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualApplianceSkuInstances. +func (vasi VirtualApplianceSkuInstances) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualApplianceSkuListResult response for ListNetworkVirtualApplianceSkus API service call. type VirtualApplianceSkuListResult struct { autorest.Response `json:"-"` @@ -43358,6 +43514,12 @@ type VirtualNetworkUsage struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsage. +func (vnu VirtualNetworkUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkUsageName usage strings container. type VirtualNetworkUsageName struct { // LocalizedValue - READ-ONLY; Localized subnet size and usage string. @@ -43366,6 +43528,12 @@ type VirtualNetworkUsageName struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsageName. +func (vnun VirtualNetworkUsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualRouter virtualRouter Resource. type VirtualRouter struct { autorest.Response `json:"-"` @@ -44480,6 +44648,12 @@ type VpnClientConnectionHealthDetail struct { MaxPacketsPerSecond *int64 `json:"maxPacketsPerSecond,omitempty"` } +// MarshalJSON is the custom marshaler for VpnClientConnectionHealthDetail. +func (vcchd VpnClientConnectionHealthDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnClientConnectionHealthDetailListResult list of virtual network gateway vpn client connection health. type VpnClientConnectionHealthDetailListResult struct { autorest.Response `json:"-"` @@ -46016,6 +46190,12 @@ type VpnSiteID struct { VpnSite *string `json:"vpnSite,omitempty"` } +// MarshalJSON is the custom marshaler for VpnSiteID. +func (vsi VpnSiteID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnSiteLink vpnSiteLink Resource. type VpnSiteLink struct { autorest.Response `json:"-"` @@ -46601,6 +46781,12 @@ type WatcherPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for WatcherPropertiesFormat. +func (wpf WatcherPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WatchersCheckConnectivityFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type WatchersCheckConnectivityFuture struct { @@ -47310,6 +47496,12 @@ type WebApplicationFirewallPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for WebApplicationFirewallPolicyListResult. +func (wafplr WebApplicationFirewallPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WebApplicationFirewallPolicyListResultIterator provides access to a complete listing of // WebApplicationFirewallPolicy values. type WebApplicationFirewallPolicyListResultIterator struct { diff --git a/services/network/mgmt/2020-08-01/network/CHANGELOG.md b/services/network/mgmt/2020-08-01/network/CHANGELOG.md index 52911e4cc5e4..ef8cbf9eb775 100644 --- a/services/network/mgmt/2020-08-01/network/CHANGELOG.md +++ b/services/network/mgmt/2020-08-01/network/CHANGELOG.md @@ -1,2 +1,38 @@ # Change History +## Additive Changes + +### New Funcs + +1. ApplicationSecurityGroupPropertiesFormat.MarshalJSON() ([]byte, error) +1. AzureFirewallFqdnTagPropertiesFormat.MarshalJSON() ([]byte, error) +1. AzureFirewallIPGroups.MarshalJSON() ([]byte, error) +1. AzureWebCategoryPropertiesFormat.MarshalJSON() ([]byte, error) +1. BastionActiveSession.MarshalJSON() ([]byte, error) +1. BastionSessionState.MarshalJSON() ([]byte, error) +1. BgpPeerStatus.MarshalJSON() ([]byte, error) +1. ConfigurationDiagnosticResponse.MarshalJSON() ([]byte, error) +1. ConnectivityHop.MarshalJSON() ([]byte, error) +1. ConnectivityInformation.MarshalJSON() ([]byte, error) +1. ConnectivityIssue.MarshalJSON() ([]byte, error) +1. ContainerNetworkInterfaceIPConfigurationPropertiesFormat.MarshalJSON() ([]byte, error) +1. DdosProtectionPlanPropertiesFormat.MarshalJSON() ([]byte, error) +1. ExpressRouteConnectionID.MarshalJSON() ([]byte, error) +1. ExpressRoutePortsLocationBandwidths.MarshalJSON() ([]byte, error) +1. GatewayRoute.MarshalJSON() ([]byte, error) +1. HopLinkProperties.MarshalJSON() ([]byte, error) +1. InterfaceIPConfigurationPrivateLinkConnectionProperties.MarshalJSON() ([]byte, error) +1. ManagedServiceIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. PeerRoute.MarshalJSON() ([]byte, error) +1. ServiceTagInformation.MarshalJSON() ([]byte, error) +1. ServiceTagInformationPropertiesFormat.MarshalJSON() ([]byte, error) +1. ServiceTagsListResult.MarshalJSON() ([]byte, error) +1. TunnelConnectionHealth.MarshalJSON() ([]byte, error) +1. VirtualApplianceNicProperties.MarshalJSON() ([]byte, error) +1. VirtualApplianceSkuInstances.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsage.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsageName.MarshalJSON() ([]byte, error) +1. VpnClientConnectionHealthDetail.MarshalJSON() ([]byte, error) +1. VpnSiteID.MarshalJSON() ([]byte, error) +1. WatcherPropertiesFormat.MarshalJSON() ([]byte, error) +1. WebApplicationFirewallPolicyListResult.MarshalJSON() ([]byte, error) diff --git a/services/network/mgmt/2020-08-01/network/_meta.json b/services/network/mgmt/2020-08-01/network/_meta.json index 9e2565b8a92d..a36bb0b6b190 100644 --- a/services/network/mgmt/2020-08-01/network/_meta.json +++ b/services/network/mgmt/2020-08-01/network/_meta.json @@ -2,9 +2,9 @@ "commit": "d4bad535d456ee82c7fd17d1ec2b8802a0b83205", "readme": "/_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "tag": "package-2020-08", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/network/mgmt/2020-08-01/network/models.go b/services/network/mgmt/2020-08-01/network/models.go index e0903124a8d6..b398fae5d5e1 100644 --- a/services/network/mgmt/2020-08-01/network/models.go +++ b/services/network/mgmt/2020-08-01/network/models.go @@ -4800,6 +4800,12 @@ type ApplicationSecurityGroupPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationSecurityGroupPropertiesFormat. +func (asgpf ApplicationSecurityGroupPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationSecurityGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type ApplicationSecurityGroupsCreateOrUpdateFuture struct { @@ -6397,6 +6403,12 @@ type AzureFirewallFqdnTagPropertiesFormat struct { FqdnTagName *string `json:"fqdnTagName,omitempty"` } +// MarshalJSON is the custom marshaler for AzureFirewallFqdnTagPropertiesFormat. +func (afftpf AzureFirewallFqdnTagPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureFirewallIPConfiguration IP configuration of an Azure Firewall. type AzureFirewallIPConfiguration struct { // AzureFirewallIPConfigurationPropertiesFormat - Properties of the azure firewall IP configuration. @@ -6518,6 +6530,12 @@ type AzureFirewallIPGroups struct { ChangeNumber *string `json:"changeNumber,omitempty"` } +// MarshalJSON is the custom marshaler for AzureFirewallIPGroups. +func (afig AzureFirewallIPGroups) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureFirewallListResult response for ListAzureFirewalls API service call. type AzureFirewallListResult struct { autorest.Response `json:"-"` @@ -7456,6 +7474,12 @@ type AzureWebCategoryPropertiesFormat struct { Group *string `json:"group,omitempty"` } +// MarshalJSON is the custom marshaler for AzureWebCategoryPropertiesFormat. +func (awcpf AzureWebCategoryPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BackendAddressPool pool of backend IP addresses. type BackendAddressPool struct { autorest.Response `json:"-"` @@ -7602,6 +7626,12 @@ type BastionActiveSession struct { SessionDurationInMins *float64 `json:"sessionDurationInMins,omitempty"` } +// MarshalJSON is the custom marshaler for BastionActiveSession. +func (bas BastionActiveSession) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BastionActiveSessionListResult response for GetActiveSessions. type BastionActiveSessionListResult struct { autorest.Response `json:"-"` @@ -8423,6 +8453,12 @@ type BastionSessionState struct { State *string `json:"state,omitempty"` } +// MarshalJSON is the custom marshaler for BastionSessionState. +func (bss BastionSessionState) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BastionShareableLink bastion Shareable Link. type BastionShareableLink struct { // VM - Reference of the virtual machine resource. @@ -8760,6 +8796,12 @@ type BgpPeerStatus struct { MessagesReceived *int64 `json:"messagesReceived,omitempty"` } +// MarshalJSON is the custom marshaler for BgpPeerStatus. +func (bps BgpPeerStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BgpPeerStatusListResult response for list BGP peer status API service call. type BgpPeerStatusListResult struct { autorest.Response `json:"-"` @@ -9116,6 +9158,12 @@ type ConfigurationDiagnosticResponse struct { Results *[]ConfigurationDiagnosticResult `json:"results,omitempty"` } +// MarshalJSON is the custom marshaler for ConfigurationDiagnosticResponse. +func (cdr ConfigurationDiagnosticResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConfigurationDiagnosticResult network configuration diagnostic result corresponded to provided traffic // query. type ConfigurationDiagnosticResult struct { @@ -9862,6 +9910,12 @@ type ConnectivityHop struct { Issues *[]ConnectivityIssue `json:"issues,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityHop. +func (ch ConnectivityHop) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityInformation information on the connectivity status. type ConnectivityInformation struct { autorest.Response `json:"-"` @@ -9881,6 +9935,12 @@ type ConnectivityInformation struct { ProbesFailed *int32 `json:"probesFailed,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityInformation. +func (ci ConnectivityInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityIssue information about an issue encountered in the process of checking for connectivity. type ConnectivityIssue struct { // Origin - READ-ONLY; The origin of the issue. Possible values include: 'OriginLocal', 'OriginInbound', 'OriginOutbound' @@ -9893,6 +9953,12 @@ type ConnectivityIssue struct { Context *[]map[string]*string `json:"context,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityIssue. +func (ci ConnectivityIssue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityParameters parameters that determine how the connectivity check will be performed. type ConnectivityParameters struct { // Source - The source of the connection. @@ -10204,6 +10270,12 @@ type ContainerNetworkInterfaceIPConfigurationPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerNetworkInterfaceIPConfigurationPropertiesFormat. +func (cniicpf ContainerNetworkInterfaceIPConfigurationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerNetworkInterfacePropertiesFormat properties of container network interface. type ContainerNetworkInterfacePropertiesFormat struct { // ContainerNetworkInterfaceConfiguration - READ-ONLY; Container network interface configuration from which this container network interface is created. @@ -11147,6 +11219,12 @@ type DdosProtectionPlanPropertiesFormat struct { VirtualNetworks *[]SubResource `json:"virtualNetworks,omitempty"` } +// MarshalJSON is the custom marshaler for DdosProtectionPlanPropertiesFormat. +func (dpppf DdosProtectionPlanPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DdosProtectionPlansCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type DdosProtectionPlansCreateOrUpdateFuture struct { @@ -13954,6 +14032,12 @@ type ExpressRouteConnectionID struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRouteConnectionID. +func (erci ExpressRouteConnectionID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRouteConnectionList expressRouteConnection list. type ExpressRouteConnectionList struct { autorest.Response `json:"-"` @@ -16101,6 +16185,12 @@ type ExpressRoutePortsLocationBandwidths struct { ValueInGbps *int32 `json:"valueInGbps,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRoutePortsLocationBandwidths. +func (erplb ExpressRoutePortsLocationBandwidths) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRoutePortsLocationListResult response for ListExpressRoutePortsLocations API service call. type ExpressRoutePortsLocationListResult struct { autorest.Response `json:"-"` @@ -18597,6 +18687,12 @@ type GatewayRoute struct { Weight *int32 `json:"weight,omitempty"` } +// MarshalJSON is the custom marshaler for GatewayRoute. +func (gr GatewayRoute) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GatewayRouteListResult list of virtual network gateway routes. type GatewayRouteListResult struct { autorest.Response `json:"-"` @@ -18858,6 +18954,12 @@ type HopLinkProperties struct { RoundTripTimeMax *int64 `json:"roundTripTimeMax,omitempty"` } +// MarshalJSON is the custom marshaler for HopLinkProperties. +func (hlp HopLinkProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HTTPConfiguration HTTP configuration of the connectivity check. type HTTPConfiguration struct { // Method - HTTP method. Possible values include: 'HTTPMethodGet' @@ -20578,6 +20680,12 @@ type InterfaceIPConfigurationPrivateLinkConnectionProperties struct { Fqdns *[]string `json:"fqdns,omitempty"` } +// MarshalJSON is the custom marshaler for InterfaceIPConfigurationPrivateLinkConnectionProperties. +func (iicplcp InterfaceIPConfigurationPrivateLinkConnectionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InterfaceIPConfigurationPropertiesFormat properties of IP configuration. type InterfaceIPConfigurationPropertiesFormat struct { // VirtualNetworkTaps - The reference to Virtual Network Taps. @@ -27130,6 +27238,12 @@ type ManagedServiceIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedServiceIdentityUserAssignedIdentitiesValue. +func (msiAiv ManagedServiceIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MatchCondition define match conditions. type MatchCondition struct { // MatchVariables - List of match variables. @@ -29727,6 +29841,12 @@ type PeerRoute struct { Weight *int32 `json:"weight,omitempty"` } +// MarshalJSON is the custom marshaler for PeerRoute. +func (pr PeerRoute) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PeerRouteList list of virtual router peer routes. type PeerRouteList struct { autorest.Response `json:"-"` @@ -37163,6 +37283,12 @@ type ServiceTagInformation struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagInformation. +func (sti ServiceTagInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceTagInformationPropertiesFormat properties of the service tag information. type ServiceTagInformationPropertiesFormat struct { // ChangeNumber - READ-ONLY; The iteration number of service tag. @@ -37175,6 +37301,12 @@ type ServiceTagInformationPropertiesFormat struct { AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagInformationPropertiesFormat. +func (stipf ServiceTagInformationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceTagsListResult response for the ListServiceTags API service call. type ServiceTagsListResult struct { autorest.Response `json:"-"` @@ -37194,6 +37326,12 @@ type ServiceTagsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagsListResult. +func (stlr ServiceTagsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SessionIds list of session IDs. type SessionIds struct { // SessionIds - List of session IDs. @@ -37922,6 +38060,12 @@ type TunnelConnectionHealth struct { LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"` } +// MarshalJSON is the custom marshaler for TunnelConnectionHealth. +func (tch TunnelConnectionHealth) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UnprepareNetworkPoliciesRequest details of UnprepareNetworkPolicies for Subnet. type UnprepareNetworkPoliciesRequest struct { // ServiceName - The name of the service for which subnet is being unprepared for. @@ -38454,6 +38598,12 @@ type VirtualApplianceNicProperties struct { PrivateIPAddress *string `json:"privateIpAddress,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualApplianceNicProperties. +func (vanp VirtualApplianceNicProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualAppliancePropertiesFormat network Virtual Appliance definition. type VirtualAppliancePropertiesFormat struct { // NvaSku - Network Virtual Appliance SKU. @@ -39059,6 +39209,12 @@ type VirtualApplianceSkuInstances struct { InstanceCount *int32 `json:"instanceCount,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualApplianceSkuInstances. +func (vasi VirtualApplianceSkuInstances) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualApplianceSkuListResult response for ListNetworkVirtualApplianceSkus API service call. type VirtualApplianceSkuListResult struct { autorest.Response `json:"-"` @@ -43771,6 +43927,12 @@ type VirtualNetworkUsage struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsage. +func (vnu VirtualNetworkUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkUsageName usage strings container. type VirtualNetworkUsageName struct { // LocalizedValue - READ-ONLY; Localized subnet size and usage string. @@ -43779,6 +43941,12 @@ type VirtualNetworkUsageName struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsageName. +func (vnun VirtualNetworkUsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualRouter virtualRouter Resource. type VirtualRouter struct { autorest.Response `json:"-"` @@ -44893,6 +45061,12 @@ type VpnClientConnectionHealthDetail struct { MaxPacketsPerSecond *int64 `json:"maxPacketsPerSecond,omitempty"` } +// MarshalJSON is the custom marshaler for VpnClientConnectionHealthDetail. +func (vcchd VpnClientConnectionHealthDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnClientConnectionHealthDetailListResult list of virtual network gateway vpn client connection health. type VpnClientConnectionHealthDetailListResult struct { autorest.Response `json:"-"` @@ -46571,6 +46745,12 @@ type VpnSiteID struct { VpnSite *string `json:"vpnSite,omitempty"` } +// MarshalJSON is the custom marshaler for VpnSiteID. +func (vsi VpnSiteID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnSiteLink vpnSiteLink Resource. type VpnSiteLink struct { autorest.Response `json:"-"` @@ -47171,6 +47351,12 @@ type WatcherPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for WatcherPropertiesFormat. +func (wpf WatcherPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WatchersCheckConnectivityFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type WatchersCheckConnectivityFuture struct { @@ -47880,6 +48066,12 @@ type WebApplicationFirewallPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for WebApplicationFirewallPolicyListResult. +func (wafplr WebApplicationFirewallPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WebApplicationFirewallPolicyListResultIterator provides access to a complete listing of // WebApplicationFirewallPolicy values. type WebApplicationFirewallPolicyListResultIterator struct { diff --git a/services/network/mgmt/2020-11-01/network/CHANGELOG.md b/services/network/mgmt/2020-11-01/network/CHANGELOG.md index 878fce3b5205..bfd75d4c09f7 100644 --- a/services/network/mgmt/2020-11-01/network/CHANGELOG.md +++ b/services/network/mgmt/2020-11-01/network/CHANGELOG.md @@ -4,410 +4,6 @@ ### Removed Constants -1. Access.Allow -1. Access.Deny -1. ApplicationGatewayBackendHealthServerHealth.Down -1. ApplicationGatewayBackendHealthServerHealth.Draining -1. ApplicationGatewayBackendHealthServerHealth.Partial -1. ApplicationGatewayBackendHealthServerHealth.Unknown -1. ApplicationGatewayBackendHealthServerHealth.Up -1. ApplicationGatewayCookieBasedAffinity.Disabled -1. ApplicationGatewayCookieBasedAffinity.Enabled -1. ApplicationGatewayCustomErrorStatusCode.HTTPStatus403 -1. ApplicationGatewayCustomErrorStatusCode.HTTPStatus502 -1. ApplicationGatewayFirewallMode.Detection -1. ApplicationGatewayFirewallMode.Prevention -1. ApplicationGatewayOperationalState.Running -1. ApplicationGatewayOperationalState.Starting -1. ApplicationGatewayOperationalState.Stopped -1. ApplicationGatewayOperationalState.Stopping -1. ApplicationGatewayProtocol.HTTP -1. ApplicationGatewayProtocol.HTTPS -1. ApplicationGatewayRedirectType.Found -1. ApplicationGatewayRedirectType.Permanent -1. ApplicationGatewayRedirectType.SeeOther -1. ApplicationGatewayRedirectType.Temporary -1. ApplicationGatewayRequestRoutingRuleType.Basic -1. ApplicationGatewayRequestRoutingRuleType.PathBasedRouting -1. ApplicationGatewaySkuName.StandardLarge -1. ApplicationGatewaySkuName.StandardMedium -1. ApplicationGatewaySkuName.StandardSmall -1. ApplicationGatewaySkuName.StandardV2 -1. ApplicationGatewaySkuName.WAFLarge -1. ApplicationGatewaySkuName.WAFMedium -1. ApplicationGatewaySkuName.WAFV2 -1. ApplicationGatewaySslCipherSuite.TLSDHEDSSWITH3DESEDECBCSHA -1. ApplicationGatewaySslCipherSuite.TLSDHEDSSWITHAES128CBCSHA -1. ApplicationGatewaySslCipherSuite.TLSDHEDSSWITHAES128CBCSHA256 -1. ApplicationGatewaySslCipherSuite.TLSDHEDSSWITHAES256CBCSHA -1. ApplicationGatewaySslCipherSuite.TLSDHEDSSWITHAES256CBCSHA256 -1. ApplicationGatewaySslCipherSuite.TLSDHERSAWITHAES128CBCSHA -1. ApplicationGatewaySslCipherSuite.TLSDHERSAWITHAES128GCMSHA256 -1. ApplicationGatewaySslCipherSuite.TLSDHERSAWITHAES256CBCSHA -1. ApplicationGatewaySslCipherSuite.TLSDHERSAWITHAES256GCMSHA384 -1. ApplicationGatewaySslCipherSuite.TLSECDHEECDSAWITHAES128CBCSHA -1. ApplicationGatewaySslCipherSuite.TLSECDHEECDSAWITHAES128CBCSHA256 -1. ApplicationGatewaySslCipherSuite.TLSECDHEECDSAWITHAES128GCMSHA256 -1. ApplicationGatewaySslCipherSuite.TLSECDHEECDSAWITHAES256CBCSHA -1. ApplicationGatewaySslCipherSuite.TLSECDHEECDSAWITHAES256CBCSHA384 -1. ApplicationGatewaySslCipherSuite.TLSECDHEECDSAWITHAES256GCMSHA384 -1. ApplicationGatewaySslCipherSuite.TLSECDHERSAWITHAES128CBCSHA -1. ApplicationGatewaySslCipherSuite.TLSECDHERSAWITHAES128CBCSHA256 -1. ApplicationGatewaySslCipherSuite.TLSECDHERSAWITHAES128GCMSHA256 -1. ApplicationGatewaySslCipherSuite.TLSECDHERSAWITHAES256CBCSHA -1. ApplicationGatewaySslCipherSuite.TLSECDHERSAWITHAES256CBCSHA384 -1. ApplicationGatewaySslCipherSuite.TLSECDHERSAWITHAES256GCMSHA384 -1. ApplicationGatewaySslCipherSuite.TLSRSAWITH3DESEDECBCSHA -1. ApplicationGatewaySslCipherSuite.TLSRSAWITHAES128CBCSHA -1. ApplicationGatewaySslCipherSuite.TLSRSAWITHAES128CBCSHA256 -1. ApplicationGatewaySslCipherSuite.TLSRSAWITHAES128GCMSHA256 -1. ApplicationGatewaySslCipherSuite.TLSRSAWITHAES256CBCSHA -1. ApplicationGatewaySslCipherSuite.TLSRSAWITHAES256CBCSHA256 -1. ApplicationGatewaySslCipherSuite.TLSRSAWITHAES256GCMSHA384 -1. ApplicationGatewaySslPolicyName.AppGwSslPolicy20150501 -1. ApplicationGatewaySslPolicyName.AppGwSslPolicy20170401 -1. ApplicationGatewaySslPolicyName.AppGwSslPolicy20170401S -1. ApplicationGatewaySslPolicyType.Custom -1. ApplicationGatewaySslPolicyType.Predefined -1. ApplicationGatewaySslProtocol.TLSv10 -1. ApplicationGatewaySslProtocol.TLSv11 -1. ApplicationGatewaySslProtocol.TLSv12 -1. AssociationType.Associated -1. AssociationType.Contains -1. AuthenticationMethod.EAPMSCHAPv2 -1. AuthenticationMethod.EAPTLS -1. AuthorizationUseStatus.Available -1. AuthorizationUseStatus.InUse -1. AzureFirewallNatRCActionType.Dnat -1. AzureFirewallNatRCActionType.Snat -1. AzureFirewallNetworkRuleProtocol.Any -1. AzureFirewallNetworkRuleProtocol.ICMP -1. AzureFirewallNetworkRuleProtocol.TCP -1. AzureFirewallNetworkRuleProtocol.UDP -1. AzureFirewallSkuName.AZFWHub -1. AzureFirewallSkuName.AZFWVNet -1. AzureFirewallSkuTier.Premium -1. AzureFirewallSkuTier.Standard -1. BastionConnectProtocol.RDP -1. BastionConnectProtocol.SSH -1. CircuitConnectionStatus.Connected -1. CircuitConnectionStatus.Connecting -1. CircuitConnectionStatus.Disconnected -1. CommissionedState.Commissioned -1. CommissionedState.Commissioning -1. CommissionedState.Decommissioning -1. CommissionedState.Deprovisioning -1. CommissionedState.Provisioned -1. CommissionedState.Provisioning -1. ConnectionMonitorEndpointFilterItemType.AgentAddress -1. ConnectionMonitorEndpointFilterType.Include -1. ConnectionMonitorType.MultiEndpoint -1. ConnectionMonitorType.SingleSourceDestination -1. CoverageLevel.AboveAverage -1. CoverageLevel.Average -1. CoverageLevel.BelowAverage -1. CoverageLevel.Default -1. CoverageLevel.Full -1. CoverageLevel.Low -1. DestinationPortBehavior.ListenIfAvailable -1. DestinationPortBehavior.None -1. Direction.Inbound -1. Direction.Outbound -1. EffectiveRouteState.Active -1. EffectiveRouteState.Invalid -1. EndpointType.AzureSubnet -1. EndpointType.AzureVM -1. EndpointType.AzureVNet -1. EndpointType.ExternalAddress -1. EndpointType.MMAWorkspaceMachine -1. EndpointType.MMAWorkspaceNetwork -1. EvaluationState.Completed -1. EvaluationState.InProgress -1. EvaluationState.NotStarted -1. ExpressRouteCircuitPeeringAdvertisedPublicPrefixState.Configured -1. ExpressRouteCircuitPeeringAdvertisedPublicPrefixState.Configuring -1. ExpressRouteCircuitPeeringAdvertisedPublicPrefixState.NotConfigured -1. ExpressRouteCircuitPeeringAdvertisedPublicPrefixState.ValidationNeeded -1. ExpressRouteCircuitSkuFamily.MeteredData -1. ExpressRouteCircuitSkuFamily.UnlimitedData -1. ExpressRouteLinkConnectorType.LC -1. ExpressRouteLinkConnectorType.SC -1. ExpressRouteLinkMacSecCipher.GcmAes128 -1. ExpressRouteLinkMacSecCipher.GcmAes256 -1. ExpressRouteLinkMacSecCipher.GcmAesXpn128 -1. ExpressRouteLinkMacSecCipher.GcmAesXpn256 -1. ExpressRoutePeeringType.AzurePrivatePeering -1. ExpressRoutePeeringType.AzurePublicPeering -1. ExpressRoutePeeringType.MicrosoftPeering -1. ExpressRoutePortsEncapsulation.Dot1Q -1. ExpressRoutePortsEncapsulation.QinQ -1. ExtendedLocationTypes.EdgeZone -1. FirewallPolicyNatRuleCollectionActionType.DNAT -1. FlowLogFormatType.JSON -1. HTTPConfigurationMethod.Get -1. HTTPConfigurationMethod.Post -1. IPAllocationMethod.Dynamic -1. IPAllocationMethod.Static -1. IPAllocationType.Hypernet -1. IPAllocationType.Undefined -1. IPVersion.IPv4 -1. IPVersion.IPv6 -1. IkeEncryption.AES128 -1. IkeEncryption.AES192 -1. IkeEncryption.AES256 -1. IkeEncryption.DES -1. IkeEncryption.DES3 -1. IkeEncryption.GCMAES128 -1. IkeEncryption.GCMAES256 -1. LoadBalancerSkuTier.Global -1. LoadBalancerSkuTier.Regional -1. OutputType.Workspace -1. OwaspCrsExclusionEntryMatchVariable.RequestArgNames -1. OwaspCrsExclusionEntryMatchVariable.RequestCookieNames -1. OwaspCrsExclusionEntryMatchVariable.RequestHeaderNames -1. PcError.AgentStopped -1. PcError.CaptureFailed -1. PcError.InternalError -1. PcError.LocalFileFailed -1. PcError.StorageFailed -1. ProcessorArchitecture.Amd64 -1. ProcessorArchitecture.X86 -1. ProvisioningState.Deleting -1. ProvisioningState.Failed -1. ProvisioningState.Succeeded -1. ProvisioningState.Updating -1. RuleCollectionType.RuleCollectionTypeFirewallPolicyFilterRuleCollection -1. RuleCollectionType.RuleCollectionTypeFirewallPolicyNatRuleCollection -1. RuleCollectionType.RuleCollectionTypeFirewallPolicyRuleCollection -1. RuleType.RuleTypeApplicationRule -1. RuleType.RuleTypeFirewallPolicyRule -1. RuleType.RuleTypeNatRule -1. RuleType.RuleTypeNetworkRule -1. SecurityProviderName.Checkpoint -1. SecurityProviderName.IBoss -1. SecurityProviderName.ZScaler -1. VirtualNetworkGatewayConnectionProtocol.IKEv1 -1. VirtualNetworkGatewayConnectionProtocol.IKEv2 -1. VirtualNetworkGatewayConnectionType.ExpressRoute -1. VirtualNetworkGatewayConnectionType.IPsec -1. VirtualNetworkGatewayConnectionType.VPNClient -1. VirtualNetworkGatewayConnectionType.Vnet2Vnet -1. VirtualWanSecurityProviderType.External -1. VirtualWanSecurityProviderType.Native -1. VpnAuthenticationType.AAD -1. VpnAuthenticationType.Certificate -1. VpnAuthenticationType.Radius -1. VpnClientProtocol.IkeV2 -1. VpnClientProtocol.OpenVPN -1. VpnClientProtocol.SSTP -1. VpnNatRuleMode.EgressSnat -1. VpnNatRuleMode.IngressSnat -1. VpnType.PolicyBased -1. VpnType.RouteBased -1. WebApplicationFirewallMatchVariable.PostArgs -1. WebApplicationFirewallMatchVariable.QueryString -1. WebApplicationFirewallMatchVariable.RemoteAddr -1. WebApplicationFirewallMatchVariable.RequestBody -1. WebApplicationFirewallMatchVariable.RequestCookies -1. WebApplicationFirewallMatchVariable.RequestHeaders -1. WebApplicationFirewallMatchVariable.RequestMethod -1. WebApplicationFirewallMatchVariable.RequestURI -1. WebApplicationFirewallTransform.HTMLEntityDecode -1. WebApplicationFirewallTransform.Lowercase -1. WebApplicationFirewallTransform.RemoveNulls -1. WebApplicationFirewallTransform.Trim -1. WebApplicationFirewallTransform.URLDecode -1. WebApplicationFirewallTransform.URLEncode - -### Struct Changes - -#### Removed Struct Fields - -1. VirtualNetworkGatewayPropertiesFormat.VirtualNetworkExtendedLocation - -### Signature Changes - -#### Struct Fields - -1. SubnetPropertiesFormat.PrivateEndpointNetworkPolicies changed type from *string to VirtualNetworkPrivateEndpointNetworkPolicies -1. SubnetPropertiesFormat.PrivateLinkServiceNetworkPolicies changed type from *string to VirtualNetworkPrivateLinkServiceNetworkPolicies - -## Additive Changes - -### New Constants - -1. Access.AccessAllow -1. Access.AccessDeny -1. ApplicationGatewayBackendHealthServerHealth.ApplicationGatewayBackendHealthServerHealthDown -1. ApplicationGatewayBackendHealthServerHealth.ApplicationGatewayBackendHealthServerHealthDraining -1. ApplicationGatewayBackendHealthServerHealth.ApplicationGatewayBackendHealthServerHealthPartial -1. ApplicationGatewayBackendHealthServerHealth.ApplicationGatewayBackendHealthServerHealthUnknown -1. ApplicationGatewayBackendHealthServerHealth.ApplicationGatewayBackendHealthServerHealthUp -1. ApplicationGatewayCookieBasedAffinity.ApplicationGatewayCookieBasedAffinityDisabled -1. ApplicationGatewayCookieBasedAffinity.ApplicationGatewayCookieBasedAffinityEnabled -1. ApplicationGatewayCustomErrorStatusCode.ApplicationGatewayCustomErrorStatusCodeHTTPStatus403 -1. ApplicationGatewayCustomErrorStatusCode.ApplicationGatewayCustomErrorStatusCodeHTTPStatus502 -1. ApplicationGatewayFirewallMode.ApplicationGatewayFirewallModeDetection -1. ApplicationGatewayFirewallMode.ApplicationGatewayFirewallModePrevention -1. ApplicationGatewayOperationalState.ApplicationGatewayOperationalStateRunning -1. ApplicationGatewayOperationalState.ApplicationGatewayOperationalStateStarting -1. ApplicationGatewayOperationalState.ApplicationGatewayOperationalStateStopped -1. ApplicationGatewayOperationalState.ApplicationGatewayOperationalStateStopping -1. ApplicationGatewayProtocol.ApplicationGatewayProtocolHTTP -1. ApplicationGatewayProtocol.ApplicationGatewayProtocolHTTPS -1. ApplicationGatewayRedirectType.ApplicationGatewayRedirectTypeFound -1. ApplicationGatewayRedirectType.ApplicationGatewayRedirectTypePermanent -1. ApplicationGatewayRedirectType.ApplicationGatewayRedirectTypeSeeOther -1. ApplicationGatewayRedirectType.ApplicationGatewayRedirectTypeTemporary -1. ApplicationGatewayRequestRoutingRuleType.ApplicationGatewayRequestRoutingRuleTypeBasic -1. ApplicationGatewayRequestRoutingRuleType.ApplicationGatewayRequestRoutingRuleTypePathBasedRouting -1. ApplicationGatewaySkuName.ApplicationGatewaySkuNameStandardLarge -1. ApplicationGatewaySkuName.ApplicationGatewaySkuNameStandardMedium -1. ApplicationGatewaySkuName.ApplicationGatewaySkuNameStandardSmall -1. ApplicationGatewaySkuName.ApplicationGatewaySkuNameStandardV2 -1. ApplicationGatewaySkuName.ApplicationGatewaySkuNameWAFLarge -1. ApplicationGatewaySkuName.ApplicationGatewaySkuNameWAFMedium -1. ApplicationGatewaySkuName.ApplicationGatewaySkuNameWAFV2 -1. ApplicationGatewaySslCipherSuite.ApplicationGatewaySslCipherSuiteTLSDHEDSSWITH3DESEDECBCSHA -1. ApplicationGatewaySslCipherSuite.ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAES128CBCSHA -1. ApplicationGatewaySslCipherSuite.ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAES128CBCSHA256 -1. ApplicationGatewaySslCipherSuite.ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAES256CBCSHA -1. ApplicationGatewaySslCipherSuite.ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAES256CBCSHA256 -1. ApplicationGatewaySslCipherSuite.ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAES128CBCSHA -1. ApplicationGatewaySslCipherSuite.ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAES128GCMSHA256 -1. ApplicationGatewaySslCipherSuite.ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAES256CBCSHA -1. ApplicationGatewaySslCipherSuite.ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAES256GCMSHA384 -1. ApplicationGatewaySslCipherSuite.ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAES128CBCSHA -1. ApplicationGatewaySslCipherSuite.ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAES128CBCSHA256 -1. ApplicationGatewaySslCipherSuite.ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAES128GCMSHA256 -1. ApplicationGatewaySslCipherSuite.ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAES256CBCSHA -1. ApplicationGatewaySslCipherSuite.ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAES256CBCSHA384 -1. ApplicationGatewaySslCipherSuite.ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAES256GCMSHA384 -1. ApplicationGatewaySslCipherSuite.ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAES128CBCSHA -1. ApplicationGatewaySslCipherSuite.ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAES128CBCSHA256 -1. ApplicationGatewaySslCipherSuite.ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAES128GCMSHA256 -1. ApplicationGatewaySslCipherSuite.ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAES256CBCSHA -1. ApplicationGatewaySslCipherSuite.ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAES256CBCSHA384 -1. ApplicationGatewaySslCipherSuite.ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAES256GCMSHA384 -1. ApplicationGatewaySslCipherSuite.ApplicationGatewaySslCipherSuiteTLSRSAWITH3DESEDECBCSHA -1. ApplicationGatewaySslCipherSuite.ApplicationGatewaySslCipherSuiteTLSRSAWITHAES128CBCSHA -1. ApplicationGatewaySslCipherSuite.ApplicationGatewaySslCipherSuiteTLSRSAWITHAES128CBCSHA256 -1. ApplicationGatewaySslCipherSuite.ApplicationGatewaySslCipherSuiteTLSRSAWITHAES128GCMSHA256 -1. ApplicationGatewaySslCipherSuite.ApplicationGatewaySslCipherSuiteTLSRSAWITHAES256CBCSHA -1. ApplicationGatewaySslCipherSuite.ApplicationGatewaySslCipherSuiteTLSRSAWITHAES256CBCSHA256 -1. ApplicationGatewaySslCipherSuite.ApplicationGatewaySslCipherSuiteTLSRSAWITHAES256GCMSHA384 -1. ApplicationGatewaySslPolicyName.ApplicationGatewaySslPolicyNameAppGwSslPolicy20150501 -1. ApplicationGatewaySslPolicyName.ApplicationGatewaySslPolicyNameAppGwSslPolicy20170401 -1. ApplicationGatewaySslPolicyName.ApplicationGatewaySslPolicyNameAppGwSslPolicy20170401S -1. ApplicationGatewaySslPolicyType.ApplicationGatewaySslPolicyTypeCustom -1. ApplicationGatewaySslPolicyType.ApplicationGatewaySslPolicyTypePredefined -1. ApplicationGatewaySslProtocol.ApplicationGatewaySslProtocolTLSv10 -1. ApplicationGatewaySslProtocol.ApplicationGatewaySslProtocolTLSv11 -1. ApplicationGatewaySslProtocol.ApplicationGatewaySslProtocolTLSv12 -1. AssociationType.AssociationTypeAssociated -1. AssociationType.AssociationTypeContains -1. AuthenticationMethod.AuthenticationMethodEAPMSCHAPv2 -1. AuthenticationMethod.AuthenticationMethodEAPTLS -1. AuthorizationUseStatus.AuthorizationUseStatusAvailable -1. AuthorizationUseStatus.AuthorizationUseStatusInUse -1. AzureFirewallNatRCActionType.AzureFirewallNatRCActionTypeDnat -1. AzureFirewallNatRCActionType.AzureFirewallNatRCActionTypeSnat -1. AzureFirewallNetworkRuleProtocol.AzureFirewallNetworkRuleProtocolAny -1. AzureFirewallNetworkRuleProtocol.AzureFirewallNetworkRuleProtocolICMP -1. AzureFirewallNetworkRuleProtocol.AzureFirewallNetworkRuleProtocolTCP -1. AzureFirewallNetworkRuleProtocol.AzureFirewallNetworkRuleProtocolUDP -1. AzureFirewallSkuName.AzureFirewallSkuNameAZFWHub -1. AzureFirewallSkuName.AzureFirewallSkuNameAZFWVNet -1. AzureFirewallSkuTier.AzureFirewallSkuTierPremium -1. AzureFirewallSkuTier.AzureFirewallSkuTierStandard -1. BastionConnectProtocol.BastionConnectProtocolRDP -1. BastionConnectProtocol.BastionConnectProtocolSSH -1. CircuitConnectionStatus.CircuitConnectionStatusConnected -1. CircuitConnectionStatus.CircuitConnectionStatusConnecting -1. CircuitConnectionStatus.CircuitConnectionStatusDisconnected -1. CommissionedState.CommissionedStateCommissioned -1. CommissionedState.CommissionedStateCommissioning -1. CommissionedState.CommissionedStateDecommissioning -1. CommissionedState.CommissionedStateDeprovisioning -1. CommissionedState.CommissionedStateProvisioned -1. CommissionedState.CommissionedStateProvisioning -1. ConnectionMonitorEndpointFilterItemType.ConnectionMonitorEndpointFilterItemTypeAgentAddress -1. ConnectionMonitorEndpointFilterType.ConnectionMonitorEndpointFilterTypeInclude -1. ConnectionMonitorType.ConnectionMonitorTypeMultiEndpoint -1. ConnectionMonitorType.ConnectionMonitorTypeSingleSourceDestination -1. CoverageLevel.CoverageLevelAboveAverage -1. CoverageLevel.CoverageLevelAverage -1. CoverageLevel.CoverageLevelBelowAverage -1. CoverageLevel.CoverageLevelDefault -1. CoverageLevel.CoverageLevelFull -1. CoverageLevel.CoverageLevelLow -1. DestinationPortBehavior.DestinationPortBehaviorListenIfAvailable -1. DestinationPortBehavior.DestinationPortBehaviorNone -1. Direction.DirectionInbound -1. Direction.DirectionOutbound -1. EffectiveRouteState.EffectiveRouteStateActive -1. EffectiveRouteState.EffectiveRouteStateInvalid -1. EndpointType.EndpointTypeAzureSubnet -1. EndpointType.EndpointTypeAzureVM -1. EndpointType.EndpointTypeAzureVNet -1. EndpointType.EndpointTypeExternalAddress -1. EndpointType.EndpointTypeMMAWorkspaceMachine -1. EndpointType.EndpointTypeMMAWorkspaceNetwork -1. EvaluationState.EvaluationStateCompleted -1. EvaluationState.EvaluationStateInProgress -1. EvaluationState.EvaluationStateNotStarted -1. ExpressRouteCircuitPeeringAdvertisedPublicPrefixState.ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfigured -1. ExpressRouteCircuitPeeringAdvertisedPublicPrefixState.ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfiguring -1. ExpressRouteCircuitPeeringAdvertisedPublicPrefixState.ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateNotConfigured -1. ExpressRouteCircuitPeeringAdvertisedPublicPrefixState.ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateValidationNeeded -1. ExpressRouteCircuitSkuFamily.ExpressRouteCircuitSkuFamilyMeteredData -1. ExpressRouteCircuitSkuFamily.ExpressRouteCircuitSkuFamilyUnlimitedData -1. ExpressRouteLinkConnectorType.ExpressRouteLinkConnectorTypeLC -1. ExpressRouteLinkConnectorType.ExpressRouteLinkConnectorTypeSC -1. ExpressRouteLinkMacSecCipher.ExpressRouteLinkMacSecCipherGcmAes128 -1. ExpressRouteLinkMacSecCipher.ExpressRouteLinkMacSecCipherGcmAes256 -1. ExpressRouteLinkMacSecCipher.ExpressRouteLinkMacSecCipherGcmAesXpn128 -1. ExpressRouteLinkMacSecCipher.ExpressRouteLinkMacSecCipherGcmAesXpn256 -1. ExpressRoutePeeringType.ExpressRoutePeeringTypeAzurePrivatePeering -1. ExpressRoutePeeringType.ExpressRoutePeeringTypeAzurePublicPeering -1. ExpressRoutePeeringType.ExpressRoutePeeringTypeMicrosoftPeering -1. ExpressRoutePortsEncapsulation.ExpressRoutePortsEncapsulationDot1Q -1. ExpressRoutePortsEncapsulation.ExpressRoutePortsEncapsulationQinQ -1. ExtendedLocationTypes.ExtendedLocationTypesEdgeZone -1. FirewallPolicyNatRuleCollectionActionType.FirewallPolicyNatRuleCollectionActionTypeDNAT -1. FlowLogFormatType.FlowLogFormatTypeJSON -1. HTTPConfigurationMethod.HTTPConfigurationMethodGet -1. HTTPConfigurationMethod.HTTPConfigurationMethodPost -1. IPAllocationMethod.IPAllocationMethodDynamic -1. IPAllocationMethod.IPAllocationMethodStatic -1. IPAllocationType.IPAllocationTypeHypernet -1. IPAllocationType.IPAllocationTypeUndefined -1. IPVersion.IPVersionIPv4 -1. IPVersion.IPVersionIPv6 -1. IkeEncryption.IkeEncryptionAES128 -1. IkeEncryption.IkeEncryptionAES192 -1. IkeEncryption.IkeEncryptionAES256 -1. IkeEncryption.IkeEncryptionDES -1. IkeEncryption.IkeEncryptionDES3 -1. IkeEncryption.IkeEncryptionGCMAES128 -1. IkeEncryption.IkeEncryptionGCMAES256 -1. LoadBalancerSkuTier.LoadBalancerSkuTierGlobal -1. LoadBalancerSkuTier.LoadBalancerSkuTierRegional -1. OutputType.OutputTypeWorkspace -1. OwaspCrsExclusionEntryMatchVariable.OwaspCrsExclusionEntryMatchVariableRequestArgNames -1. OwaspCrsExclusionEntryMatchVariable.OwaspCrsExclusionEntryMatchVariableRequestCookieNames -1. OwaspCrsExclusionEntryMatchVariable.OwaspCrsExclusionEntryMatchVariableRequestHeaderNames -1. PcError.PcErrorAgentStopped -1. PcError.PcErrorCaptureFailed -1. PcError.PcErrorInternalError -1. PcError.PcErrorLocalFileFailed -1. PcError.PcErrorStorageFailed -1. ProcessorArchitecture.ProcessorArchitectureAmd64 -1. ProcessorArchitecture.ProcessorArchitectureX86 -1. ProvisioningState.ProvisioningStateDeleting -1. ProvisioningState.ProvisioningStateFailed -1. ProvisioningState.ProvisioningStateSucceeded -1. ProvisioningState.ProvisioningStateUpdating 1. RuleCollectionType.RuleCollectionTypeRuleCollectionTypeFirewallPolicyFilterRuleCollection 1. RuleCollectionType.RuleCollectionTypeRuleCollectionTypeFirewallPolicyNatRuleCollection 1. RuleCollectionType.RuleCollectionTypeRuleCollectionTypeFirewallPolicyRuleCollection @@ -415,53 +11,88 @@ 1. RuleType.RuleTypeRuleTypeFirewallPolicyRule 1. RuleType.RuleTypeRuleTypeNatRule 1. RuleType.RuleTypeRuleTypeNetworkRule -1. SecurityProviderName.SecurityProviderNameCheckpoint -1. SecurityProviderName.SecurityProviderNameIBoss -1. SecurityProviderName.SecurityProviderNameZScaler -1. VirtualNetworkGatewayConnectionProtocol.VirtualNetworkGatewayConnectionProtocolIKEv1 -1. VirtualNetworkGatewayConnectionProtocol.VirtualNetworkGatewayConnectionProtocolIKEv2 -1. VirtualNetworkGatewayConnectionType.VirtualNetworkGatewayConnectionTypeExpressRoute -1. VirtualNetworkGatewayConnectionType.VirtualNetworkGatewayConnectionTypeIPsec -1. VirtualNetworkGatewayConnectionType.VirtualNetworkGatewayConnectionTypeVPNClient -1. VirtualNetworkGatewayConnectionType.VirtualNetworkGatewayConnectionTypeVnet2Vnet -1. VirtualNetworkPrivateEndpointNetworkPolicies.VirtualNetworkPrivateEndpointNetworkPoliciesDisabled -1. VirtualNetworkPrivateEndpointNetworkPolicies.VirtualNetworkPrivateEndpointNetworkPoliciesEnabled -1. VirtualNetworkPrivateLinkServiceNetworkPolicies.VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled -1. VirtualNetworkPrivateLinkServiceNetworkPolicies.VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled -1. VirtualWanSecurityProviderType.VirtualWanSecurityProviderTypeExternal -1. VirtualWanSecurityProviderType.VirtualWanSecurityProviderTypeNative -1. VpnAuthenticationType.VpnAuthenticationTypeAAD -1. VpnAuthenticationType.VpnAuthenticationTypeCertificate -1. VpnAuthenticationType.VpnAuthenticationTypeRadius -1. VpnClientProtocol.VpnClientProtocolIkeV2 -1. VpnClientProtocol.VpnClientProtocolOpenVPN -1. VpnClientProtocol.VpnClientProtocolSSTP -1. VpnNatRuleMode.VpnNatRuleModeEgressSnat -1. VpnNatRuleMode.VpnNatRuleModeIngressSnat -1. VpnType.VpnTypePolicyBased -1. VpnType.VpnTypeRouteBased -1. WebApplicationFirewallMatchVariable.WebApplicationFirewallMatchVariablePostArgs -1. WebApplicationFirewallMatchVariable.WebApplicationFirewallMatchVariableQueryString -1. WebApplicationFirewallMatchVariable.WebApplicationFirewallMatchVariableRemoteAddr -1. WebApplicationFirewallMatchVariable.WebApplicationFirewallMatchVariableRequestBody -1. WebApplicationFirewallMatchVariable.WebApplicationFirewallMatchVariableRequestCookies -1. WebApplicationFirewallMatchVariable.WebApplicationFirewallMatchVariableRequestHeaders -1. WebApplicationFirewallMatchVariable.WebApplicationFirewallMatchVariableRequestMethod -1. WebApplicationFirewallMatchVariable.WebApplicationFirewallMatchVariableRequestURI -1. WebApplicationFirewallTransform.WebApplicationFirewallTransformHTMLEntityDecode -1. WebApplicationFirewallTransform.WebApplicationFirewallTransformLowercase -1. WebApplicationFirewallTransform.WebApplicationFirewallTransformRemoveNulls -1. WebApplicationFirewallTransform.WebApplicationFirewallTransformTrim -1. WebApplicationFirewallTransform.WebApplicationFirewallTransformURLDecode -1. WebApplicationFirewallTransform.WebApplicationFirewallTransformURLEncode + +## Additive Changes + +### New Constants + +1. InterfaceMigrationPhase.InterfaceMigrationPhaseAbort +1. InterfaceMigrationPhase.InterfaceMigrationPhaseCommit +1. InterfaceMigrationPhase.InterfaceMigrationPhaseCommitted +1. InterfaceMigrationPhase.InterfaceMigrationPhaseNone +1. InterfaceMigrationPhase.InterfaceMigrationPhasePrepare +1. InterfaceNicType.InterfaceNicTypeElastic +1. InterfaceNicType.InterfaceNicTypeStandard +1. PublicIPAddressMigrationPhase.PublicIPAddressMigrationPhaseAbort +1. PublicIPAddressMigrationPhase.PublicIPAddressMigrationPhaseCommit +1. PublicIPAddressMigrationPhase.PublicIPAddressMigrationPhaseCommitted +1. PublicIPAddressMigrationPhase.PublicIPAddressMigrationPhaseNone +1. PublicIPAddressMigrationPhase.PublicIPAddressMigrationPhasePrepare +1. RuleCollectionType.RuleCollectionTypeFirewallPolicyFilterRuleCollection +1. RuleCollectionType.RuleCollectionTypeFirewallPolicyNatRuleCollection +1. RuleCollectionType.RuleCollectionTypeFirewallPolicyRuleCollection +1. RuleType.RuleTypeApplicationRule +1. RuleType.RuleTypeFirewallPolicyRule +1. RuleType.RuleTypeNatRule +1. RuleType.RuleTypeNetworkRule ### New Funcs -1. PossibleVirtualNetworkPrivateEndpointNetworkPoliciesValues() []VirtualNetworkPrivateEndpointNetworkPolicies -1. PossibleVirtualNetworkPrivateLinkServiceNetworkPoliciesValues() []VirtualNetworkPrivateLinkServiceNetworkPolicies +1. ApplicationSecurityGroupPropertiesFormat.MarshalJSON() ([]byte, error) +1. AzureFirewallFqdnTagPropertiesFormat.MarshalJSON() ([]byte, error) +1. AzureFirewallIPGroups.MarshalJSON() ([]byte, error) +1. AzureWebCategoryPropertiesFormat.MarshalJSON() ([]byte, error) +1. BastionActiveSession.MarshalJSON() ([]byte, error) +1. BastionSessionState.MarshalJSON() ([]byte, error) +1. BgpPeerStatus.MarshalJSON() ([]byte, error) +1. ConfigurationDiagnosticResponse.MarshalJSON() ([]byte, error) +1. ConnectivityHop.MarshalJSON() ([]byte, error) +1. ConnectivityInformation.MarshalJSON() ([]byte, error) +1. ConnectivityIssue.MarshalJSON() ([]byte, error) +1. ContainerNetworkInterfaceIPConfigurationPropertiesFormat.MarshalJSON() ([]byte, error) +1. DdosProtectionPlanPropertiesFormat.MarshalJSON() ([]byte, error) +1. ExpressRouteConnectionID.MarshalJSON() ([]byte, error) +1. ExpressRoutePortsLocationBandwidths.MarshalJSON() ([]byte, error) +1. GatewayRoute.MarshalJSON() ([]byte, error) +1. HopLinkProperties.MarshalJSON() ([]byte, error) +1. InterfaceIPConfigurationPrivateLinkConnectionProperties.MarshalJSON() ([]byte, error) +1. ManagedServiceIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. PeerRoute.MarshalJSON() ([]byte, error) +1. PossibleInterfaceMigrationPhaseValues() []InterfaceMigrationPhase +1. PossibleInterfaceNicTypeValues() []InterfaceNicType +1. PossiblePublicIPAddressMigrationPhaseValues() []PublicIPAddressMigrationPhase +1. ServiceTagInformation.MarshalJSON() ([]byte, error) +1. ServiceTagInformationPropertiesFormat.MarshalJSON() ([]byte, error) +1. ServiceTagsListResult.MarshalJSON() ([]byte, error) +1. TunnelConnectionHealth.MarshalJSON() ([]byte, error) +1. VirtualApplianceNicProperties.MarshalJSON() ([]byte, error) +1. VirtualApplianceSkuInstances.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsage.MarshalJSON() ([]byte, error) +1. VirtualNetworkUsageName.MarshalJSON() ([]byte, error) +1. VpnClientConnectionHealthDetail.MarshalJSON() ([]byte, error) +1. VpnSiteID.MarshalJSON() ([]byte, error) +1. WatcherPropertiesFormat.MarshalJSON() ([]byte, error) +1. WebApplicationFirewallPolicyListResult.MarshalJSON() ([]byte, error) ### Struct Changes #### New Struct Fields -1. VirtualNetworkGateway.ExtendedLocation +1. AvailablePrivateEndpointType.DisplayName +1. Delegation.Type +1. IPAddressAvailabilityResult.IsPlatformReserved +1. InterfaceIPConfiguration.Type +1. InterfacePropertiesFormat.MigrationPhase +1. InterfacePropertiesFormat.NicType +1. InterfacePropertiesFormat.PrivateLinkService +1. PublicIPAddressPropertiesFormat.LinkedPublicIPAddress +1. PublicIPAddressPropertiesFormat.MigrationPhase +1. PublicIPAddressPropertiesFormat.NatGateway +1. PublicIPAddressPropertiesFormat.ServicePublicIPAddress +1. PublicIPPrefixPropertiesFormat.NatGateway +1. ServiceTagInformationPropertiesFormat.State +1. Subnet.Type +1. SubnetPropertiesFormat.ApplicationGatewayIPConfigurations +1. VirtualNetworkPeering.Type +1. VirtualNetworkPeeringPropertiesFormat.DoNotVerifyRemoteGateways +1. VirtualNetworkPeeringPropertiesFormat.ResourceGUID diff --git a/services/network/mgmt/2020-11-01/network/_meta.json b/services/network/mgmt/2020-11-01/network/_meta.json index fc87db56acc7..1d22e0f17324 100644 --- a/services/network/mgmt/2020-11-01/network/_meta.json +++ b/services/network/mgmt/2020-11-01/network/_meta.json @@ -1,10 +1,10 @@ { - "commit": "c2ea3a3ccd14293b4bd1d17e684ef9129f0dc604", + "commit": "394395ed0bdc1c5c05cb37a031379ca03bfebbb5", "readme": "/_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "tag": "package-2020-11", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix" } diff --git a/services/network/mgmt/2020-11-01/network/enums.go b/services/network/mgmt/2020-11-01/network/enums.go index aa6e3705fc6d..84aee1a1b9b6 100644 --- a/services/network/mgmt/2020-11-01/network/enums.go +++ b/services/network/mgmt/2020-11-01/network/enums.go @@ -1342,6 +1342,42 @@ func PossibleInboundSecurityRulesProtocolValues() []InboundSecurityRulesProtocol return []InboundSecurityRulesProtocol{InboundSecurityRulesProtocolTCP, InboundSecurityRulesProtocolUDP} } +// InterfaceMigrationPhase enumerates the values for interface migration phase. +type InterfaceMigrationPhase string + +const ( + // InterfaceMigrationPhaseAbort ... + InterfaceMigrationPhaseAbort InterfaceMigrationPhase = "Abort" + // InterfaceMigrationPhaseCommit ... + InterfaceMigrationPhaseCommit InterfaceMigrationPhase = "Commit" + // InterfaceMigrationPhaseCommitted ... + InterfaceMigrationPhaseCommitted InterfaceMigrationPhase = "Committed" + // InterfaceMigrationPhaseNone ... + InterfaceMigrationPhaseNone InterfaceMigrationPhase = "None" + // InterfaceMigrationPhasePrepare ... + InterfaceMigrationPhasePrepare InterfaceMigrationPhase = "Prepare" +) + +// PossibleInterfaceMigrationPhaseValues returns an array of possible values for the InterfaceMigrationPhase const type. +func PossibleInterfaceMigrationPhaseValues() []InterfaceMigrationPhase { + return []InterfaceMigrationPhase{InterfaceMigrationPhaseAbort, InterfaceMigrationPhaseCommit, InterfaceMigrationPhaseCommitted, InterfaceMigrationPhaseNone, InterfaceMigrationPhasePrepare} +} + +// InterfaceNicType enumerates the values for interface nic type. +type InterfaceNicType string + +const ( + // InterfaceNicTypeElastic ... + InterfaceNicTypeElastic InterfaceNicType = "Elastic" + // InterfaceNicTypeStandard ... + InterfaceNicTypeStandard InterfaceNicType = "Standard" +) + +// PossibleInterfaceNicTypeValues returns an array of possible values for the InterfaceNicType const type. +func PossibleInterfaceNicTypeValues() []InterfaceNicType { + return []InterfaceNicType{InterfaceNicTypeElastic, InterfaceNicTypeStandard} +} + // IPAllocationMethod enumerates the values for ip allocation method. type IPAllocationMethod string @@ -1903,6 +1939,27 @@ func PossibleProvisioningStateValues() []ProvisioningState { return []ProvisioningState{ProvisioningStateDeleting, ProvisioningStateFailed, ProvisioningStateSucceeded, ProvisioningStateUpdating} } +// PublicIPAddressMigrationPhase enumerates the values for public ip address migration phase. +type PublicIPAddressMigrationPhase string + +const ( + // PublicIPAddressMigrationPhaseAbort ... + PublicIPAddressMigrationPhaseAbort PublicIPAddressMigrationPhase = "Abort" + // PublicIPAddressMigrationPhaseCommit ... + PublicIPAddressMigrationPhaseCommit PublicIPAddressMigrationPhase = "Commit" + // PublicIPAddressMigrationPhaseCommitted ... + PublicIPAddressMigrationPhaseCommitted PublicIPAddressMigrationPhase = "Committed" + // PublicIPAddressMigrationPhaseNone ... + PublicIPAddressMigrationPhaseNone PublicIPAddressMigrationPhase = "None" + // PublicIPAddressMigrationPhasePrepare ... + PublicIPAddressMigrationPhasePrepare PublicIPAddressMigrationPhase = "Prepare" +) + +// PossiblePublicIPAddressMigrationPhaseValues returns an array of possible values for the PublicIPAddressMigrationPhase const type. +func PossiblePublicIPAddressMigrationPhaseValues() []PublicIPAddressMigrationPhase { + return []PublicIPAddressMigrationPhase{PublicIPAddressMigrationPhaseAbort, PublicIPAddressMigrationPhaseCommit, PublicIPAddressMigrationPhaseCommitted, PublicIPAddressMigrationPhaseNone, PublicIPAddressMigrationPhasePrepare} +} + // PublicIPAddressSkuName enumerates the values for public ip address sku name. type PublicIPAddressSkuName string @@ -2024,36 +2081,36 @@ func PossibleRoutingStateValues() []RoutingState { type RuleCollectionType string const ( - // RuleCollectionTypeRuleCollectionTypeFirewallPolicyFilterRuleCollection ... - RuleCollectionTypeRuleCollectionTypeFirewallPolicyFilterRuleCollection RuleCollectionType = "FirewallPolicyFilterRuleCollection" - // RuleCollectionTypeRuleCollectionTypeFirewallPolicyNatRuleCollection ... - RuleCollectionTypeRuleCollectionTypeFirewallPolicyNatRuleCollection RuleCollectionType = "FirewallPolicyNatRuleCollection" - // RuleCollectionTypeRuleCollectionTypeFirewallPolicyRuleCollection ... - RuleCollectionTypeRuleCollectionTypeFirewallPolicyRuleCollection RuleCollectionType = "FirewallPolicyRuleCollection" + // RuleCollectionTypeFirewallPolicyFilterRuleCollection ... + RuleCollectionTypeFirewallPolicyFilterRuleCollection RuleCollectionType = "FirewallPolicyFilterRuleCollection" + // RuleCollectionTypeFirewallPolicyNatRuleCollection ... + RuleCollectionTypeFirewallPolicyNatRuleCollection RuleCollectionType = "FirewallPolicyNatRuleCollection" + // RuleCollectionTypeFirewallPolicyRuleCollection ... + RuleCollectionTypeFirewallPolicyRuleCollection RuleCollectionType = "FirewallPolicyRuleCollection" ) // PossibleRuleCollectionTypeValues returns an array of possible values for the RuleCollectionType const type. func PossibleRuleCollectionTypeValues() []RuleCollectionType { - return []RuleCollectionType{RuleCollectionTypeRuleCollectionTypeFirewallPolicyFilterRuleCollection, RuleCollectionTypeRuleCollectionTypeFirewallPolicyNatRuleCollection, RuleCollectionTypeRuleCollectionTypeFirewallPolicyRuleCollection} + return []RuleCollectionType{RuleCollectionTypeFirewallPolicyFilterRuleCollection, RuleCollectionTypeFirewallPolicyNatRuleCollection, RuleCollectionTypeFirewallPolicyRuleCollection} } // RuleType enumerates the values for rule type. type RuleType string const ( - // RuleTypeRuleTypeApplicationRule ... - RuleTypeRuleTypeApplicationRule RuleType = "ApplicationRule" - // RuleTypeRuleTypeFirewallPolicyRule ... - RuleTypeRuleTypeFirewallPolicyRule RuleType = "FirewallPolicyRule" - // RuleTypeRuleTypeNatRule ... - RuleTypeRuleTypeNatRule RuleType = "NatRule" - // RuleTypeRuleTypeNetworkRule ... - RuleTypeRuleTypeNetworkRule RuleType = "NetworkRule" + // RuleTypeApplicationRule ... + RuleTypeApplicationRule RuleType = "ApplicationRule" + // RuleTypeFirewallPolicyRule ... + RuleTypeFirewallPolicyRule RuleType = "FirewallPolicyRule" + // RuleTypeNatRule ... + RuleTypeNatRule RuleType = "NatRule" + // RuleTypeNetworkRule ... + RuleTypeNetworkRule RuleType = "NetworkRule" ) // PossibleRuleTypeValues returns an array of possible values for the RuleType const type. func PossibleRuleTypeValues() []RuleType { - return []RuleType{RuleTypeRuleTypeApplicationRule, RuleTypeRuleTypeFirewallPolicyRule, RuleTypeRuleTypeNatRule, RuleTypeRuleTypeNetworkRule} + return []RuleType{RuleTypeApplicationRule, RuleTypeFirewallPolicyRule, RuleTypeNatRule, RuleTypeNetworkRule} } // SecurityPartnerProviderConnectionStatus enumerates the values for security partner provider connection diff --git a/services/network/mgmt/2020-11-01/network/inboundnatrules.go b/services/network/mgmt/2020-11-01/network/inboundnatrules.go index 7853cd12ffef..61635c810d48 100644 --- a/services/network/mgmt/2020-11-01/network/inboundnatrules.go +++ b/services/network/mgmt/2020-11-01/network/inboundnatrules.go @@ -63,6 +63,8 @@ func (client InboundNatRulesClient) CreateOrUpdate(ctx context.Context, resource Chain: []validation.Constraint{{Target: "inboundNatRuleParameters.InboundNatRulePropertiesFormat.BackendIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.IPConfiguration.IPConfigurationPropertiesFormat", Name: validation.Null, Rule: false, Chain: []validation.Constraint{{Target: "inboundNatRuleParameters.InboundNatRulePropertiesFormat.BackendIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.IPConfiguration.IPConfigurationPropertiesFormat.PublicIPAddress", Name: validation.Null, Rule: false, Chain: nil}}}, }}, + {Target: "inboundNatRuleParameters.InboundNatRulePropertiesFormat.BackendIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.ServicePublicIPAddress", Name: validation.Null, Rule: false, Chain: nil}, + {Target: "inboundNatRuleParameters.InboundNatRulePropertiesFormat.BackendIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.LinkedPublicIPAddress", Name: validation.Null, Rule: false, Chain: nil}, }}, }}, }}, diff --git a/services/network/mgmt/2020-11-01/network/interfacesgroup.go b/services/network/mgmt/2020-11-01/network/interfacesgroup.go index c7494ac93b08..5923bb542cd4 100644 --- a/services/network/mgmt/2020-11-01/network/interfacesgroup.go +++ b/services/network/mgmt/2020-11-01/network/interfacesgroup.go @@ -60,6 +60,12 @@ func (client InterfacesClient) CreateOrUpdate(ctx context.Context, resourceGroup {Target: "parameters.InterfacePropertiesFormat.PrivateEndpoint.ExtendedLocation.Type", Name: validation.Null, Rule: true, Chain: nil}, }}, }}, + {Target: "parameters.InterfacePropertiesFormat.PrivateLinkService", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.InterfacePropertiesFormat.PrivateLinkService.ExtendedLocation", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.InterfacePropertiesFormat.PrivateLinkService.ExtendedLocation.Name", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.InterfacePropertiesFormat.PrivateLinkService.ExtendedLocation.Type", Name: validation.Null, Rule: true, Chain: nil}, + }}, + }}, }}}}}); err != nil { return result, validation.NewError("network.InterfacesClient", "CreateOrUpdate", err.Error()) } diff --git a/services/network/mgmt/2020-11-01/network/interfacetapconfigurations.go b/services/network/mgmt/2020-11-01/network/interfacetapconfigurations.go index 147a80484b98..0130f79c793e 100644 --- a/services/network/mgmt/2020-11-01/network/interfacetapconfigurations.go +++ b/services/network/mgmt/2020-11-01/network/interfacetapconfigurations.go @@ -66,6 +66,8 @@ func (client InterfaceTapConfigurationsClient) CreateOrUpdate(ctx context.Contex Chain: []validation.Constraint{{Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationNetworkInterfaceIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.IPConfiguration.IPConfigurationPropertiesFormat", Name: validation.Null, Rule: false, Chain: []validation.Constraint{{Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationNetworkInterfaceIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.IPConfiguration.IPConfigurationPropertiesFormat.PublicIPAddress", Name: validation.Null, Rule: false, Chain: nil}}}, }}, + {Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationNetworkInterfaceIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.ServicePublicIPAddress", Name: validation.Null, Rule: false, Chain: nil}, + {Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationNetworkInterfaceIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.LinkedPublicIPAddress", Name: validation.Null, Rule: false, Chain: nil}, }}, }}, }}, @@ -82,6 +84,8 @@ func (client InterfaceTapConfigurationsClient) CreateOrUpdate(ctx context.Contex Chain: []validation.Constraint{{Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationLoadBalancerFrontEndIPConfiguration.FrontendIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.IPConfiguration.IPConfigurationPropertiesFormat", Name: validation.Null, Rule: false, Chain: []validation.Constraint{{Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationLoadBalancerFrontEndIPConfiguration.FrontendIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.IPConfiguration.IPConfigurationPropertiesFormat.PublicIPAddress", Name: validation.Null, Rule: false, Chain: nil}}}, }}, + {Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationLoadBalancerFrontEndIPConfiguration.FrontendIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.ServicePublicIPAddress", Name: validation.Null, Rule: false, Chain: nil}, + {Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationLoadBalancerFrontEndIPConfiguration.FrontendIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.LinkedPublicIPAddress", Name: validation.Null, Rule: false, Chain: nil}, }}, }}, }}, diff --git a/services/network/mgmt/2020-11-01/network/models.go b/services/network/mgmt/2020-11-01/network/models.go index f911270fade0..227218bb6429 100644 --- a/services/network/mgmt/2020-11-01/network/models.go +++ b/services/network/mgmt/2020-11-01/network/models.go @@ -4436,13 +4436,13 @@ type ApplicationRule struct { Name *string `json:"name,omitempty"` // Description - Description of the rule. Description *string `json:"description,omitempty"` - // RuleType - Possible values include: 'RuleTypeRuleTypeFirewallPolicyRule', 'RuleTypeRuleTypeApplicationRule', 'RuleTypeRuleTypeNatRule', 'RuleTypeRuleTypeNetworkRule' + // RuleType - Possible values include: 'RuleTypeFirewallPolicyRule', 'RuleTypeApplicationRule', 'RuleTypeNatRule', 'RuleTypeNetworkRule' RuleType RuleType `json:"ruleType,omitempty"` } // MarshalJSON is the custom marshaler for ApplicationRule. func (ar ApplicationRule) MarshalJSON() ([]byte, error) { - ar.RuleType = RuleTypeRuleTypeApplicationRule + ar.RuleType = RuleTypeApplicationRule objectMap := make(map[string]interface{}) if ar.SourceAddresses != nil { objectMap["sourceAddresses"] = ar.SourceAddresses @@ -4800,6 +4800,12 @@ type ApplicationSecurityGroupPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationSecurityGroupPropertiesFormat. +func (asgpf ApplicationSecurityGroupPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationSecurityGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type ApplicationSecurityGroupsCreateOrUpdateFuture struct { @@ -5442,6 +5448,8 @@ type AvailablePrivateEndpointType struct { Type *string `json:"type,omitempty"` // ResourceName - The name of the service and resource. ResourceName *string `json:"resourceName,omitempty"` + // DisplayName - Display name of the resource. + DisplayName *string `json:"displayName,omitempty"` } // AvailablePrivateEndpointTypesResult an array of available PrivateEndpoint types. @@ -6397,6 +6405,12 @@ type AzureFirewallFqdnTagPropertiesFormat struct { FqdnTagName *string `json:"fqdnTagName,omitempty"` } +// MarshalJSON is the custom marshaler for AzureFirewallFqdnTagPropertiesFormat. +func (afftpf AzureFirewallFqdnTagPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureFirewallIPConfiguration IP configuration of an Azure Firewall. type AzureFirewallIPConfiguration struct { // AzureFirewallIPConfigurationPropertiesFormat - Properties of the azure firewall IP configuration. @@ -6518,6 +6532,12 @@ type AzureFirewallIPGroups struct { ChangeNumber *string `json:"changeNumber,omitempty"` } +// MarshalJSON is the custom marshaler for AzureFirewallIPGroups. +func (afig AzureFirewallIPGroups) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureFirewallListResult response for ListAzureFirewalls API service call. type AzureFirewallListResult struct { autorest.Response `json:"-"` @@ -7456,6 +7476,12 @@ type AzureWebCategoryPropertiesFormat struct { Group *string `json:"group,omitempty"` } +// MarshalJSON is the custom marshaler for AzureWebCategoryPropertiesFormat. +func (awcpf AzureWebCategoryPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BackendAddressPool pool of backend IP addresses. type BackendAddressPool struct { autorest.Response `json:"-"` @@ -7602,6 +7628,12 @@ type BastionActiveSession struct { SessionDurationInMins *float64 `json:"sessionDurationInMins,omitempty"` } +// MarshalJSON is the custom marshaler for BastionActiveSession. +func (bas BastionActiveSession) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BastionActiveSessionListResult response for GetActiveSessions. type BastionActiveSessionListResult struct { autorest.Response `json:"-"` @@ -8423,6 +8455,12 @@ type BastionSessionState struct { State *string `json:"state,omitempty"` } +// MarshalJSON is the custom marshaler for BastionSessionState. +func (bss BastionSessionState) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BastionShareableLink bastion Shareable Link. type BastionShareableLink struct { // VM - Reference of the virtual machine resource. @@ -8760,6 +8798,12 @@ type BgpPeerStatus struct { MessagesReceived *int64 `json:"messagesReceived,omitempty"` } +// MarshalJSON is the custom marshaler for BgpPeerStatus. +func (bps BgpPeerStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BgpPeerStatusListResult response for list BGP peer status API service call. type BgpPeerStatusListResult struct { autorest.Response `json:"-"` @@ -9116,6 +9160,12 @@ type ConfigurationDiagnosticResponse struct { Results *[]ConfigurationDiagnosticResult `json:"results,omitempty"` } +// MarshalJSON is the custom marshaler for ConfigurationDiagnosticResponse. +func (cdr ConfigurationDiagnosticResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConfigurationDiagnosticResult network configuration diagnostic result corresponded to provided traffic // query. type ConfigurationDiagnosticResult struct { @@ -9862,6 +9912,12 @@ type ConnectivityHop struct { Issues *[]ConnectivityIssue `json:"issues,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityHop. +func (ch ConnectivityHop) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityInformation information on the connectivity status. type ConnectivityInformation struct { autorest.Response `json:"-"` @@ -9881,6 +9937,12 @@ type ConnectivityInformation struct { ProbesFailed *int32 `json:"probesFailed,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityInformation. +func (ci ConnectivityInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityIssue information about an issue encountered in the process of checking for connectivity. type ConnectivityIssue struct { // Origin - READ-ONLY; The origin of the issue. Possible values include: 'OriginLocal', 'OriginInbound', 'OriginOutbound' @@ -9893,6 +9955,12 @@ type ConnectivityIssue struct { Context *[]map[string]*string `json:"context,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityIssue. +func (ci ConnectivityIssue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectivityParameters parameters that determine how the connectivity check will be performed. type ConnectivityParameters struct { // Source - The source of the connection. @@ -10204,6 +10272,12 @@ type ContainerNetworkInterfaceIPConfigurationPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerNetworkInterfaceIPConfigurationPropertiesFormat. +func (cniicpf ContainerNetworkInterfaceIPConfigurationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerNetworkInterfacePropertiesFormat properties of container network interface. type ContainerNetworkInterfacePropertiesFormat struct { // ContainerNetworkInterfaceConfiguration - READ-ONLY; Container network interface configuration from which this container network interface is created. @@ -11147,6 +11221,12 @@ type DdosProtectionPlanPropertiesFormat struct { VirtualNetworks *[]SubResource `json:"virtualNetworks,omitempty"` } +// MarshalJSON is the custom marshaler for DdosProtectionPlanPropertiesFormat. +func (dpppf DdosProtectionPlanPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DdosProtectionPlansCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type DdosProtectionPlansCreateOrUpdateFuture struct { @@ -11245,6 +11325,8 @@ type Delegation struct { Name *string `json:"name,omitempty"` // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` + // Type - Resource type. + Type *string `json:"type,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` } @@ -11258,6 +11340,9 @@ func (d Delegation) MarshalJSON() ([]byte, error) { if d.Name != nil { objectMap["name"] = d.Name } + if d.Type != nil { + objectMap["type"] = d.Type + } if d.ID != nil { objectMap["id"] = d.ID } @@ -11300,6 +11385,15 @@ func (d *Delegation) UnmarshalJSON(body []byte) error { } d.Etag = &etag } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + d.Type = &typeVar + } case "id": if v != nil { var ID string @@ -13954,6 +14048,12 @@ type ExpressRouteConnectionID struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRouteConnectionID. +func (erci ExpressRouteConnectionID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRouteConnectionList expressRouteConnection list. type ExpressRouteConnectionList struct { autorest.Response `json:"-"` @@ -16101,6 +16201,12 @@ type ExpressRoutePortsLocationBandwidths struct { ValueInGbps *int32 `json:"valueInGbps,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRoutePortsLocationBandwidths. +func (erplb ExpressRoutePortsLocationBandwidths) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRoutePortsLocationListResult response for ListExpressRoutePortsLocations API service call. type ExpressRoutePortsLocationListResult struct { autorest.Response `json:"-"` @@ -16812,13 +16918,13 @@ type FirewallPolicyFilterRuleCollection struct { Name *string `json:"name,omitempty"` // Priority - Priority of the Firewall Policy Rule Collection resource. Priority *int32 `json:"priority,omitempty"` - // RuleCollectionType - Possible values include: 'RuleCollectionTypeRuleCollectionTypeFirewallPolicyRuleCollection', 'RuleCollectionTypeRuleCollectionTypeFirewallPolicyNatRuleCollection', 'RuleCollectionTypeRuleCollectionTypeFirewallPolicyFilterRuleCollection' + // RuleCollectionType - Possible values include: 'RuleCollectionTypeFirewallPolicyRuleCollection', 'RuleCollectionTypeFirewallPolicyNatRuleCollection', 'RuleCollectionTypeFirewallPolicyFilterRuleCollection' RuleCollectionType RuleCollectionType `json:"ruleCollectionType,omitempty"` } // MarshalJSON is the custom marshaler for FirewallPolicyFilterRuleCollection. func (fpfrc FirewallPolicyFilterRuleCollection) MarshalJSON() ([]byte, error) { - fpfrc.RuleCollectionType = RuleCollectionTypeRuleCollectionTypeFirewallPolicyFilterRuleCollection + fpfrc.RuleCollectionType = RuleCollectionTypeFirewallPolicyFilterRuleCollection objectMap := make(map[string]interface{}) if fpfrc.Action != nil { objectMap["action"] = fpfrc.Action @@ -17164,13 +17270,13 @@ type FirewallPolicyNatRuleCollection struct { Name *string `json:"name,omitempty"` // Priority - Priority of the Firewall Policy Rule Collection resource. Priority *int32 `json:"priority,omitempty"` - // RuleCollectionType - Possible values include: 'RuleCollectionTypeRuleCollectionTypeFirewallPolicyRuleCollection', 'RuleCollectionTypeRuleCollectionTypeFirewallPolicyNatRuleCollection', 'RuleCollectionTypeRuleCollectionTypeFirewallPolicyFilterRuleCollection' + // RuleCollectionType - Possible values include: 'RuleCollectionTypeFirewallPolicyRuleCollection', 'RuleCollectionTypeFirewallPolicyNatRuleCollection', 'RuleCollectionTypeFirewallPolicyFilterRuleCollection' RuleCollectionType RuleCollectionType `json:"ruleCollectionType,omitempty"` } // MarshalJSON is the custom marshaler for FirewallPolicyNatRuleCollection. func (fpnrc FirewallPolicyNatRuleCollection) MarshalJSON() ([]byte, error) { - fpnrc.RuleCollectionType = RuleCollectionTypeRuleCollectionTypeFirewallPolicyNatRuleCollection + fpnrc.RuleCollectionType = RuleCollectionTypeFirewallPolicyNatRuleCollection objectMap := make(map[string]interface{}) if fpnrc.Action != nil { objectMap["action"] = fpnrc.Action @@ -17352,7 +17458,7 @@ type FirewallPolicyRule struct { Name *string `json:"name,omitempty"` // Description - Description of the rule. Description *string `json:"description,omitempty"` - // RuleType - Possible values include: 'RuleTypeRuleTypeFirewallPolicyRule', 'RuleTypeRuleTypeApplicationRule', 'RuleTypeRuleTypeNatRule', 'RuleTypeRuleTypeNetworkRule' + // RuleType - Possible values include: 'RuleTypeFirewallPolicyRule', 'RuleTypeApplicationRule', 'RuleTypeNatRule', 'RuleTypeNetworkRule' RuleType RuleType `json:"ruleType,omitempty"` } @@ -17364,15 +17470,15 @@ func unmarshalBasicFirewallPolicyRule(body []byte) (BasicFirewallPolicyRule, err } switch m["ruleType"] { - case string(RuleTypeRuleTypeApplicationRule): + case string(RuleTypeApplicationRule): var ar ApplicationRule err := json.Unmarshal(body, &ar) return ar, err - case string(RuleTypeRuleTypeNatRule): + case string(RuleTypeNatRule): var nr NatRule err := json.Unmarshal(body, &nr) return nr, err - case string(RuleTypeRuleTypeNetworkRule): + case string(RuleTypeNetworkRule): var r Rule err := json.Unmarshal(body, &r) return r, err @@ -17403,7 +17509,7 @@ func unmarshalBasicFirewallPolicyRuleArray(body []byte) ([]BasicFirewallPolicyRu // MarshalJSON is the custom marshaler for FirewallPolicyRule. func (fpr FirewallPolicyRule) MarshalJSON() ([]byte, error) { - fpr.RuleType = RuleTypeRuleTypeFirewallPolicyRule + fpr.RuleType = RuleTypeFirewallPolicyRule objectMap := make(map[string]interface{}) if fpr.Name != nil { objectMap["name"] = fpr.Name @@ -17463,7 +17569,7 @@ type FirewallPolicyRuleCollection struct { Name *string `json:"name,omitempty"` // Priority - Priority of the Firewall Policy Rule Collection resource. Priority *int32 `json:"priority,omitempty"` - // RuleCollectionType - Possible values include: 'RuleCollectionTypeRuleCollectionTypeFirewallPolicyRuleCollection', 'RuleCollectionTypeRuleCollectionTypeFirewallPolicyNatRuleCollection', 'RuleCollectionTypeRuleCollectionTypeFirewallPolicyFilterRuleCollection' + // RuleCollectionType - Possible values include: 'RuleCollectionTypeFirewallPolicyRuleCollection', 'RuleCollectionTypeFirewallPolicyNatRuleCollection', 'RuleCollectionTypeFirewallPolicyFilterRuleCollection' RuleCollectionType RuleCollectionType `json:"ruleCollectionType,omitempty"` } @@ -17475,11 +17581,11 @@ func unmarshalBasicFirewallPolicyRuleCollection(body []byte) (BasicFirewallPolic } switch m["ruleCollectionType"] { - case string(RuleCollectionTypeRuleCollectionTypeFirewallPolicyNatRuleCollection): + case string(RuleCollectionTypeFirewallPolicyNatRuleCollection): var fpnrc FirewallPolicyNatRuleCollection err := json.Unmarshal(body, &fpnrc) return fpnrc, err - case string(RuleCollectionTypeRuleCollectionTypeFirewallPolicyFilterRuleCollection): + case string(RuleCollectionTypeFirewallPolicyFilterRuleCollection): var fpfrc FirewallPolicyFilterRuleCollection err := json.Unmarshal(body, &fpfrc) return fpfrc, err @@ -17510,7 +17616,7 @@ func unmarshalBasicFirewallPolicyRuleCollectionArray(body []byte) ([]BasicFirewa // MarshalJSON is the custom marshaler for FirewallPolicyRuleCollection. func (fprc FirewallPolicyRuleCollection) MarshalJSON() ([]byte, error) { - fprc.RuleCollectionType = RuleCollectionTypeRuleCollectionTypeFirewallPolicyRuleCollection + fprc.RuleCollectionType = RuleCollectionTypeFirewallPolicyRuleCollection objectMap := make(map[string]interface{}) if fprc.Name != nil { objectMap["name"] = fprc.Name @@ -18639,6 +18745,12 @@ type GatewayRoute struct { Weight *int32 `json:"weight,omitempty"` } +// MarshalJSON is the custom marshaler for GatewayRoute. +func (gr GatewayRoute) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GatewayRouteListResult list of virtual network gateway routes. type GatewayRouteListResult struct { autorest.Response `json:"-"` @@ -18900,6 +19012,12 @@ type HopLinkProperties struct { RoundTripTimeMax *int64 `json:"roundTripTimeMax,omitempty"` } +// MarshalJSON is the custom marshaler for HopLinkProperties. +func (hlp HopLinkProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HTTPConfiguration HTTP configuration of the connectivity check. type HTTPConfiguration struct { // Method - HTTP method. Possible values include: 'HTTPMethodGet' @@ -20370,6 +20488,8 @@ type InterfaceIPConfiguration struct { Name *string `json:"name,omitempty"` // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` + // Type - Resource type. + Type *string `json:"type,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` } @@ -20383,6 +20503,9 @@ func (iic InterfaceIPConfiguration) MarshalJSON() ([]byte, error) { if iic.Name != nil { objectMap["name"] = iic.Name } + if iic.Type != nil { + objectMap["type"] = iic.Type + } if iic.ID != nil { objectMap["id"] = iic.ID } @@ -20425,6 +20548,15 @@ func (iic *InterfaceIPConfiguration) UnmarshalJSON(body []byte) error { } iic.Etag = &etag } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + iic.Type = &typeVar + } case "id": if v != nil { var ID string @@ -20620,6 +20752,12 @@ type InterfaceIPConfigurationPrivateLinkConnectionProperties struct { Fqdns *[]string `json:"fqdns,omitempty"` } +// MarshalJSON is the custom marshaler for InterfaceIPConfigurationPrivateLinkConnectionProperties. +func (iicplcp InterfaceIPConfigurationPrivateLinkConnectionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InterfaceIPConfigurationPropertiesFormat properties of IP configuration. type InterfaceIPConfigurationPropertiesFormat struct { // VirtualNetworkTaps - The reference to Virtual Network Taps. @@ -21055,6 +21193,12 @@ type InterfacePropertiesFormat struct { ResourceGUID *string `json:"resourceGuid,omitempty"` // ProvisioningState - READ-ONLY; The provisioning state of the network interface resource. Possible values include: 'ProvisioningStateSucceeded', 'ProvisioningStateUpdating', 'ProvisioningStateDeleting', 'ProvisioningStateFailed' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // NicType - Type of Network Interface resource. Possible values include: 'InterfaceNicTypeStandard', 'InterfaceNicTypeElastic' + NicType InterfaceNicType `json:"nicType,omitempty"` + // PrivateLinkService - Privatelinkservice of the network interface resource. + PrivateLinkService *PrivateLinkService `json:"privateLinkService,omitempty"` + // MigrationPhase - Migration phase of Network Interface resource. Possible values include: 'InterfaceMigrationPhaseNone', 'InterfaceMigrationPhasePrepare', 'InterfaceMigrationPhaseCommit', 'InterfaceMigrationPhaseAbort', 'InterfaceMigrationPhaseCommitted' + MigrationPhase InterfaceMigrationPhase `json:"migrationPhase,omitempty"` } // MarshalJSON is the custom marshaler for InterfacePropertiesFormat. @@ -21075,6 +21219,15 @@ func (ipf InterfacePropertiesFormat) MarshalJSON() ([]byte, error) { if ipf.EnableIPForwarding != nil { objectMap["enableIPForwarding"] = ipf.EnableIPForwarding } + if ipf.NicType != "" { + objectMap["nicType"] = ipf.NicType + } + if ipf.PrivateLinkService != nil { + objectMap["privateLinkService"] = ipf.PrivateLinkService + } + if ipf.MigrationPhase != "" { + objectMap["migrationPhase"] = ipf.MigrationPhase + } return json.Marshal(objectMap) } @@ -21607,6 +21760,8 @@ type IPAddressAvailabilityResult struct { Available *bool `json:"available,omitempty"` // AvailableIPAddresses - Contains other available private IP addresses if the asked for address is taken. AvailableIPAddresses *[]string `json:"availableIPAddresses,omitempty"` + // IsPlatformReserved - Private IP address platform reserved. + IsPlatformReserved *bool `json:"isPlatformReserved,omitempty"` } // IPAllocation ipAllocation resource. @@ -27177,6 +27332,12 @@ type ManagedServiceIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedServiceIdentityUserAssignedIdentitiesValue. +func (msiAiv ManagedServiceIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MatchCondition define match conditions. type MatchCondition struct { // MatchVariables - List of match variables. @@ -27680,13 +27841,13 @@ type NatRule struct { Name *string `json:"name,omitempty"` // Description - Description of the rule. Description *string `json:"description,omitempty"` - // RuleType - Possible values include: 'RuleTypeRuleTypeFirewallPolicyRule', 'RuleTypeRuleTypeApplicationRule', 'RuleTypeRuleTypeNatRule', 'RuleTypeRuleTypeNetworkRule' + // RuleType - Possible values include: 'RuleTypeFirewallPolicyRule', 'RuleTypeApplicationRule', 'RuleTypeNatRule', 'RuleTypeNetworkRule' RuleType RuleType `json:"ruleType,omitempty"` } // MarshalJSON is the custom marshaler for NatRule. func (nr NatRule) MarshalJSON() ([]byte, error) { - nr.RuleType = RuleTypeRuleTypeNatRule + nr.RuleType = RuleTypeNatRule objectMap := make(map[string]interface{}) if nr.IPProtocols != nil { objectMap["ipProtocols"] = nr.IPProtocols @@ -29774,6 +29935,12 @@ type PeerRoute struct { Weight *int32 `json:"weight,omitempty"` } +// MarshalJSON is the custom marshaler for PeerRoute. +func (pr PeerRoute) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PeerRouteList list of virtual router peer routes. type PeerRouteList struct { autorest.Response `json:"-"` @@ -32651,6 +32818,14 @@ type PublicIPAddressPropertiesFormat struct { ResourceGUID *string `json:"resourceGuid,omitempty"` // ProvisioningState - READ-ONLY; The provisioning state of the public IP address resource. Possible values include: 'ProvisioningStateSucceeded', 'ProvisioningStateUpdating', 'ProvisioningStateDeleting', 'ProvisioningStateFailed' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // ServicePublicIPAddress - The service public IP address of the public IP address resource. + ServicePublicIPAddress *PublicIPAddress `json:"servicePublicIPAddress,omitempty"` + // NatGateway - The NatGateway for the Public IP address. + NatGateway *NatGateway `json:"natGateway,omitempty"` + // MigrationPhase - Migration phase of Public IP Address. Possible values include: 'PublicIPAddressMigrationPhaseNone', 'PublicIPAddressMigrationPhasePrepare', 'PublicIPAddressMigrationPhaseCommit', 'PublicIPAddressMigrationPhaseAbort', 'PublicIPAddressMigrationPhaseCommitted' + MigrationPhase PublicIPAddressMigrationPhase `json:"migrationPhase,omitempty"` + // LinkedPublicIPAddress - The linked public IP address of the public IP address resource. + LinkedPublicIPAddress *PublicIPAddress `json:"linkedPublicIPAddress,omitempty"` } // MarshalJSON is the custom marshaler for PublicIPAddressPropertiesFormat. @@ -32680,6 +32855,18 @@ func (piapf PublicIPAddressPropertiesFormat) MarshalJSON() ([]byte, error) { if piapf.IdleTimeoutInMinutes != nil { objectMap["idleTimeoutInMinutes"] = piapf.IdleTimeoutInMinutes } + if piapf.ServicePublicIPAddress != nil { + objectMap["servicePublicIPAddress"] = piapf.ServicePublicIPAddress + } + if piapf.NatGateway != nil { + objectMap["natGateway"] = piapf.NatGateway + } + if piapf.MigrationPhase != "" { + objectMap["migrationPhase"] = piapf.MigrationPhase + } + if piapf.LinkedPublicIPAddress != nil { + objectMap["linkedPublicIPAddress"] = piapf.LinkedPublicIPAddress + } return json.Marshal(objectMap) } @@ -33107,6 +33294,8 @@ type PublicIPPrefixPropertiesFormat struct { ResourceGUID *string `json:"resourceGuid,omitempty"` // ProvisioningState - READ-ONLY; The provisioning state of the public IP prefix resource. Possible values include: 'ProvisioningStateSucceeded', 'ProvisioningStateUpdating', 'ProvisioningStateDeleting', 'ProvisioningStateFailed' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // NatGateway - NatGateway of Public IP Prefix. + NatGateway *NatGateway `json:"natGateway,omitempty"` } // MarshalJSON is the custom marshaler for PublicIPPrefixPropertiesFormat. @@ -33124,6 +33313,9 @@ func (pippf PublicIPPrefixPropertiesFormat) MarshalJSON() ([]byte, error) { if pippf.CustomIPPrefix != nil { objectMap["customIPPrefix"] = pippf.CustomIPPrefix } + if pippf.NatGateway != nil { + objectMap["natGateway"] = pippf.NatGateway + } return json.Marshal(objectMap) } @@ -34976,13 +35168,13 @@ type Rule struct { Name *string `json:"name,omitempty"` // Description - Description of the rule. Description *string `json:"description,omitempty"` - // RuleType - Possible values include: 'RuleTypeRuleTypeFirewallPolicyRule', 'RuleTypeRuleTypeApplicationRule', 'RuleTypeRuleTypeNatRule', 'RuleTypeRuleTypeNetworkRule' + // RuleType - Possible values include: 'RuleTypeFirewallPolicyRule', 'RuleTypeApplicationRule', 'RuleTypeNatRule', 'RuleTypeNetworkRule' RuleType RuleType `json:"ruleType,omitempty"` } // MarshalJSON is the custom marshaler for Rule. func (r Rule) MarshalJSON() ([]byte, error) { - r.RuleType = RuleTypeRuleTypeNetworkRule + r.RuleType = RuleTypeNetworkRule objectMap := make(map[string]interface{}) if r.IPProtocols != nil { objectMap["ipProtocols"] = r.IPProtocols @@ -37221,6 +37413,12 @@ type ServiceTagInformation struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagInformation. +func (sti ServiceTagInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceTagInformationPropertiesFormat properties of the service tag information. type ServiceTagInformationPropertiesFormat struct { // ChangeNumber - READ-ONLY; The iteration number of service tag. @@ -37231,6 +37429,14 @@ type ServiceTagInformationPropertiesFormat struct { SystemService *string `json:"systemService,omitempty"` // AddressPrefixes - READ-ONLY; The list of IP address prefixes. AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` + // State - READ-ONLY; The state of the service tag. + State *string `json:"state,omitempty"` +} + +// MarshalJSON is the custom marshaler for ServiceTagInformationPropertiesFormat. +func (stipf ServiceTagInformationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) } // ServiceTagsListResult response for the ListServiceTags API service call. @@ -37252,6 +37458,12 @@ type ServiceTagsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTagsListResult. +func (stlr ServiceTagsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SessionIds list of session IDs. type SessionIds struct { // SessionIds - List of session IDs. @@ -37283,6 +37495,8 @@ type Subnet struct { Name *string `json:"name,omitempty"` // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` + // Type - Resource type. + Type *string `json:"type,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` } @@ -37296,6 +37510,9 @@ func (s Subnet) MarshalJSON() ([]byte, error) { if s.Name != nil { objectMap["name"] = s.Name } + if s.Type != nil { + objectMap["type"] = s.Type + } if s.ID != nil { objectMap["id"] = s.ID } @@ -37338,6 +37555,15 @@ func (s *Subnet) UnmarshalJSON(body []byte) error { } s.Etag = &etag } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + s.Type = &typeVar + } case "id": if v != nil { var ID string @@ -37568,6 +37794,8 @@ type SubnetPropertiesFormat struct { PrivateEndpointNetworkPolicies VirtualNetworkPrivateEndpointNetworkPolicies `json:"privateEndpointNetworkPolicies,omitempty"` // PrivateLinkServiceNetworkPolicies - Enable or Disable apply network policies on private link service in the subnet. Possible values include: 'VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled', 'VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled' PrivateLinkServiceNetworkPolicies VirtualNetworkPrivateLinkServiceNetworkPolicies `json:"privateLinkServiceNetworkPolicies,omitempty"` + // ApplicationGatewayIPConfigurations - Application gateway IP configurations of virtual network resource. + ApplicationGatewayIPConfigurations *[]ApplicationGatewayIPConfiguration `json:"applicationGatewayIpConfigurations,omitempty"` } // MarshalJSON is the custom marshaler for SubnetPropertiesFormat. @@ -37606,6 +37834,9 @@ func (spf SubnetPropertiesFormat) MarshalJSON() ([]byte, error) { if spf.PrivateLinkServiceNetworkPolicies != "" { objectMap["privateLinkServiceNetworkPolicies"] = spf.PrivateLinkServiceNetworkPolicies } + if spf.ApplicationGatewayIPConfigurations != nil { + objectMap["applicationGatewayIpConfigurations"] = spf.ApplicationGatewayIPConfigurations + } return json.Marshal(objectMap) } @@ -37980,6 +38211,12 @@ type TunnelConnectionHealth struct { LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"` } +// MarshalJSON is the custom marshaler for TunnelConnectionHealth. +func (tch TunnelConnectionHealth) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UnprepareNetworkPoliciesRequest details of UnprepareNetworkPolicies for Subnet. type UnprepareNetworkPoliciesRequest struct { // ServiceName - The name of the service for which subnet is being unprepared for. @@ -38512,6 +38749,12 @@ type VirtualApplianceNicProperties struct { PrivateIPAddress *string `json:"privateIpAddress,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualApplianceNicProperties. +func (vanp VirtualApplianceNicProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualAppliancePropertiesFormat network Virtual Appliance definition. type VirtualAppliancePropertiesFormat struct { // NvaSku - Network Virtual Appliance SKU. @@ -39117,6 +39360,12 @@ type VirtualApplianceSkuInstances struct { InstanceCount *int32 `json:"instanceCount,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualApplianceSkuInstances. +func (vasi VirtualApplianceSkuInstances) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualApplianceSkuListResult response for ListNetworkVirtualApplianceSkus API service call. type VirtualApplianceSkuListResult struct { autorest.Response `json:"-"` @@ -42974,6 +43223,8 @@ type VirtualNetworkPeering struct { Name *string `json:"name,omitempty"` // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` + // Type - Resource type. + Type *string `json:"type,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` } @@ -42987,6 +43238,9 @@ func (vnp VirtualNetworkPeering) MarshalJSON() ([]byte, error) { if vnp.Name != nil { objectMap["name"] = vnp.Name } + if vnp.Type != nil { + objectMap["type"] = vnp.Type + } if vnp.ID != nil { objectMap["id"] = vnp.ID } @@ -43029,6 +43283,15 @@ func (vnp *VirtualNetworkPeering) UnmarshalJSON(body []byte) error { } vnp.Etag = &etag } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + vnp.Type = &typeVar + } case "id": if v != nil { var ID string @@ -43225,6 +43488,10 @@ type VirtualNetworkPeeringPropertiesFormat struct { PeeringState VirtualNetworkPeeringState `json:"peeringState,omitempty"` // ProvisioningState - READ-ONLY; The provisioning state of the virtual network peering resource. Possible values include: 'ProvisioningStateSucceeded', 'ProvisioningStateUpdating', 'ProvisioningStateDeleting', 'ProvisioningStateFailed' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // DoNotVerifyRemoteGateways - If we need to verify the provisioning state of the remote gateway. + DoNotVerifyRemoteGateways *bool `json:"doNotVerifyRemoteGateways,omitempty"` + // ResourceGUID - READ-ONLY; The resourceGuid property of the Virtual Network peering resource. + ResourceGUID *string `json:"resourceGuid,omitempty"` } // MarshalJSON is the custom marshaler for VirtualNetworkPeeringPropertiesFormat. @@ -43254,6 +43521,9 @@ func (vnppf VirtualNetworkPeeringPropertiesFormat) MarshalJSON() ([]byte, error) if vnppf.PeeringState != "" { objectMap["peeringState"] = vnppf.PeeringState } + if vnppf.DoNotVerifyRemoteGateways != nil { + objectMap["doNotVerifyRemoteGateways"] = vnppf.DoNotVerifyRemoteGateways + } return json.Marshal(objectMap) } @@ -43875,6 +44145,12 @@ type VirtualNetworkUsage struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsage. +func (vnu VirtualNetworkUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkUsageName usage strings container. type VirtualNetworkUsageName struct { // LocalizedValue - READ-ONLY; Localized subnet size and usage string. @@ -43883,6 +44159,12 @@ type VirtualNetworkUsageName struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkUsageName. +func (vnun VirtualNetworkUsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualRouter virtualRouter Resource. type VirtualRouter struct { autorest.Response `json:"-"` @@ -44999,6 +45281,12 @@ type VpnClientConnectionHealthDetail struct { MaxPacketsPerSecond *int64 `json:"maxPacketsPerSecond,omitempty"` } +// MarshalJSON is the custom marshaler for VpnClientConnectionHealthDetail. +func (vcchd VpnClientConnectionHealthDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnClientConnectionHealthDetailListResult list of virtual network gateway vpn client connection health. type VpnClientConnectionHealthDetailListResult struct { autorest.Response `json:"-"` @@ -46762,6 +47050,12 @@ type VpnSiteID struct { VpnSite *string `json:"vpnSite,omitempty"` } +// MarshalJSON is the custom marshaler for VpnSiteID. +func (vsi VpnSiteID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VpnSiteLink vpnSiteLink Resource. type VpnSiteLink struct { autorest.Response `json:"-"` @@ -47362,6 +47656,12 @@ type WatcherPropertiesFormat struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for WatcherPropertiesFormat. +func (wpf WatcherPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WatchersCheckConnectivityFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type WatchersCheckConnectivityFuture struct { @@ -48071,6 +48371,12 @@ type WebApplicationFirewallPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for WebApplicationFirewallPolicyListResult. +func (wafplr WebApplicationFirewallPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WebApplicationFirewallPolicyListResultIterator provides access to a complete listing of // WebApplicationFirewallPolicy values. type WebApplicationFirewallPolicyListResultIterator struct { diff --git a/services/network/mgmt/2020-11-01/network/publicipaddresses.go b/services/network/mgmt/2020-11-01/network/publicipaddresses.go index 364b884eda2f..3ac11831620e 100644 --- a/services/network/mgmt/2020-11-01/network/publicipaddresses.go +++ b/services/network/mgmt/2020-11-01/network/publicipaddresses.go @@ -59,6 +59,8 @@ func (client PublicIPAddressesClient) CreateOrUpdate(ctx context.Context, resour Chain: []validation.Constraint{{Target: "parameters.PublicIPAddressPropertiesFormat.IPConfiguration.IPConfigurationPropertiesFormat", Name: validation.Null, Rule: false, Chain: []validation.Constraint{{Target: "parameters.PublicIPAddressPropertiesFormat.IPConfiguration.IPConfigurationPropertiesFormat.PublicIPAddress", Name: validation.Null, Rule: false, Chain: nil}}}, }}, + {Target: "parameters.PublicIPAddressPropertiesFormat.ServicePublicIPAddress", Name: validation.Null, Rule: false, Chain: nil}, + {Target: "parameters.PublicIPAddressPropertiesFormat.LinkedPublicIPAddress", Name: validation.Null, Rule: false, Chain: nil}, }}}}}); err != nil { return result, validation.NewError("network.PublicIPAddressesClient", "CreateOrUpdate", err.Error()) } diff --git a/services/network/mgmt/2020-11-01/network/virtualhubipconfiguration.go b/services/network/mgmt/2020-11-01/network/virtualhubipconfiguration.go index 719feba031ff..2e0f9874693c 100644 --- a/services/network/mgmt/2020-11-01/network/virtualhubipconfiguration.go +++ b/services/network/mgmt/2020-11-01/network/virtualhubipconfiguration.go @@ -63,6 +63,8 @@ func (client VirtualHubIPConfigurationClient) CreateOrUpdate(ctx context.Context Chain: []validation.Constraint{{Target: "parameters.HubIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.IPConfiguration.IPConfigurationPropertiesFormat", Name: validation.Null, Rule: false, Chain: []validation.Constraint{{Target: "parameters.HubIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.IPConfiguration.IPConfigurationPropertiesFormat.PublicIPAddress", Name: validation.Null, Rule: false, Chain: nil}}}, }}, + {Target: "parameters.HubIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.ServicePublicIPAddress", Name: validation.Null, Rule: false, Chain: nil}, + {Target: "parameters.HubIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.LinkedPublicIPAddress", Name: validation.Null, Rule: false, Chain: nil}, }}, }}, }}}}}); err != nil { diff --git a/services/network/mgmt/2020-11-01/network/virtualnetworktaps.go b/services/network/mgmt/2020-11-01/network/virtualnetworktaps.go index 9142201dae20..2c59af2297a4 100644 --- a/services/network/mgmt/2020-11-01/network/virtualnetworktaps.go +++ b/services/network/mgmt/2020-11-01/network/virtualnetworktaps.go @@ -63,6 +63,8 @@ func (client VirtualNetworkTapsClient) CreateOrUpdate(ctx context.Context, resou Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkTapPropertiesFormat.DestinationNetworkInterfaceIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.IPConfiguration.IPConfigurationPropertiesFormat", Name: validation.Null, Rule: false, Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkTapPropertiesFormat.DestinationNetworkInterfaceIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.IPConfiguration.IPConfigurationPropertiesFormat.PublicIPAddress", Name: validation.Null, Rule: false, Chain: nil}}}, }}, + {Target: "parameters.VirtualNetworkTapPropertiesFormat.DestinationNetworkInterfaceIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.ServicePublicIPAddress", Name: validation.Null, Rule: false, Chain: nil}, + {Target: "parameters.VirtualNetworkTapPropertiesFormat.DestinationNetworkInterfaceIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.LinkedPublicIPAddress", Name: validation.Null, Rule: false, Chain: nil}, }}, }}, }}, @@ -79,6 +81,8 @@ func (client VirtualNetworkTapsClient) CreateOrUpdate(ctx context.Context, resou Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkTapPropertiesFormat.DestinationLoadBalancerFrontEndIPConfiguration.FrontendIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.IPConfiguration.IPConfigurationPropertiesFormat", Name: validation.Null, Rule: false, Chain: []validation.Constraint{{Target: "parameters.VirtualNetworkTapPropertiesFormat.DestinationLoadBalancerFrontEndIPConfiguration.FrontendIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.IPConfiguration.IPConfigurationPropertiesFormat.PublicIPAddress", Name: validation.Null, Rule: false, Chain: nil}}}, }}, + {Target: "parameters.VirtualNetworkTapPropertiesFormat.DestinationLoadBalancerFrontEndIPConfiguration.FrontendIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.ServicePublicIPAddress", Name: validation.Null, Rule: false, Chain: nil}, + {Target: "parameters.VirtualNetworkTapPropertiesFormat.DestinationLoadBalancerFrontEndIPConfiguration.FrontendIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.LinkedPublicIPAddress", Name: validation.Null, Rule: false, Chain: nil}, }}, }}, }}, diff --git a/services/notificationhubs/mgmt/2014-09-01/notificationhubs/_meta.json b/services/notificationhubs/mgmt/2014-09-01/notificationhubs/_meta.json index e012c7a19b42..6a7eeed63b16 100644 --- a/services/notificationhubs/mgmt/2014-09-01/notificationhubs/_meta.json +++ b/services/notificationhubs/mgmt/2014-09-01/notificationhubs/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/notificationhubs/resource-manager/readme.md", "tag": "package-2014-09", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2014-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/notificationhubs/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2014-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/notificationhubs/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/notificationhubs/mgmt/2016-03-01/notificationhubs/_meta.json b/services/notificationhubs/mgmt/2016-03-01/notificationhubs/_meta.json index b5cd88767238..86f146c833aa 100644 --- a/services/notificationhubs/mgmt/2016-03-01/notificationhubs/_meta.json +++ b/services/notificationhubs/mgmt/2016-03-01/notificationhubs/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/notificationhubs/resource-manager/readme.md", "tag": "package-2016-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/notificationhubs/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/notificationhubs/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/notificationhubs/mgmt/2017-04-01/notificationhubs/CHANGELOG.md b/services/notificationhubs/mgmt/2017-04-01/notificationhubs/CHANGELOG.md index 52911e4cc5e4..fa72975a9186 100644 --- a/services/notificationhubs/mgmt/2017-04-01/notificationhubs/CHANGELOG.md +++ b/services/notificationhubs/mgmt/2017-04-01/notificationhubs/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) diff --git a/services/notificationhubs/mgmt/2017-04-01/notificationhubs/_meta.json b/services/notificationhubs/mgmt/2017-04-01/notificationhubs/_meta.json index d791f10babcc..1eefc215815c 100644 --- a/services/notificationhubs/mgmt/2017-04-01/notificationhubs/_meta.json +++ b/services/notificationhubs/mgmt/2017-04-01/notificationhubs/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/notificationhubs/resource-manager/readme.md", "tag": "package-2017-04", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/notificationhubs/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/notificationhubs/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/notificationhubs/mgmt/2017-04-01/notificationhubs/models.go b/services/notificationhubs/mgmt/2017-04-01/notificationhubs/models.go index 58f2f32e850c..59b405bab09f 100644 --- a/services/notificationhubs/mgmt/2017-04-01/notificationhubs/models.go +++ b/services/notificationhubs/mgmt/2017-04-01/notificationhubs/models.go @@ -1308,6 +1308,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of the request to list NotificationHubs operations. It contains a list of // operations and a URL link to get the next set of results. type OperationListResult struct { @@ -1318,6 +1324,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int diff --git a/services/operationalinsights/mgmt/2015-03-20/operationalinsights/CHANGELOG.md b/services/operationalinsights/mgmt/2015-03-20/operationalinsights/CHANGELOG.md index 52911e4cc5e4..5726633e6573 100644 --- a/services/operationalinsights/mgmt/2015-03-20/operationalinsights/CHANGELOG.md +++ b/services/operationalinsights/mgmt/2015-03-20/operationalinsights/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. AvailableServiceTier.MarshalJSON() ([]byte, error) diff --git a/services/operationalinsights/mgmt/2015-03-20/operationalinsights/_meta.json b/services/operationalinsights/mgmt/2015-03-20/operationalinsights/_meta.json index da4d36210e63..92da0d9c2f8f 100644 --- a/services/operationalinsights/mgmt/2015-03-20/operationalinsights/_meta.json +++ b/services/operationalinsights/mgmt/2015-03-20/operationalinsights/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/operationalinsights/resource-manager/readme.md", "tag": "package-2015-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2015-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/operationalinsights/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2015-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/operationalinsights/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/operationalinsights/mgmt/2015-03-20/operationalinsights/models.go b/services/operationalinsights/mgmt/2015-03-20/operationalinsights/models.go index 1833184b712e..b6b77c5e15be 100644 --- a/services/operationalinsights/mgmt/2015-03-20/operationalinsights/models.go +++ b/services/operationalinsights/mgmt/2015-03-20/operationalinsights/models.go @@ -37,6 +37,12 @@ type AvailableServiceTier struct { LastSkuUpdate *date.Time `json:"LastSkuUpdate,omitempty"` } +// MarshalJSON is the custom marshaler for AvailableServiceTier. +func (astVar AvailableServiceTier) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CoreSummary the core summary of a search. type CoreSummary struct { // Status - The status of a core summary. diff --git a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/CHANGELOG.md b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/CHANGELOG.md index 52911e4cc5e4..c2b5891f3634 100644 --- a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/CHANGELOG.md +++ b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. AvailableServiceTier.MarshalJSON() ([]byte, error) +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/_meta.json b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/_meta.json index 92ac313d5d39..8b65b5c66ea2 100644 --- a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/_meta.json +++ b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/operationalinsights/resource-manager/readme.md", "tag": "package-2020-08", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/operationalinsights/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/operationalinsights/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/models.go b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/models.go index 02f57a0d2d65..669781b2725e 100644 --- a/services/operationalinsights/mgmt/2020-08-01/operationalinsights/models.go +++ b/services/operationalinsights/mgmt/2020-08-01/operationalinsights/models.go @@ -38,6 +38,12 @@ type AvailableServiceTier struct { LastSkuUpdate *string `json:"lastSkuUpdate,omitempty"` } +// MarshalJSON is the custom marshaler for AvailableServiceTier. +func (astVar AvailableServiceTier) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureEntityResource the resource model definition for an Azure Resource Manager resource with an etag. type AzureEntityResource struct { // Etag - READ-ONLY; Resource Etag. @@ -50,6 +56,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Cluster the top level Log Analytics cluster resource container. type Cluster struct { autorest.Response `json:"-"` @@ -1014,6 +1026,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorContract contains details when the response code indicates an error. type ErrorContract struct { // Error - The details of the error. @@ -1035,6 +1053,12 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Identity identity for the resource. type Identity struct { // PrincipalID - READ-ONLY; The principal ID of resource identity. @@ -1664,6 +1688,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -1674,6 +1704,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SavedSearch value object for saved search results. type SavedSearch struct { autorest.Response `json:"-"` diff --git a/services/operationalinsights/mgmt/2020-10-01/operationalinsights/CHANGELOG.md b/services/operationalinsights/mgmt/2020-10-01/operationalinsights/CHANGELOG.md index 52911e4cc5e4..775e92c55b23 100644 --- a/services/operationalinsights/mgmt/2020-10-01/operationalinsights/CHANGELOG.md +++ b/services/operationalinsights/mgmt/2020-10-01/operationalinsights/CHANGELOG.md @@ -1,2 +1,14 @@ # Change History +## Additive Changes + +### New Funcs + +1. AssociatedWorkspace.MarshalJSON() ([]byte, error) +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. CapacityReservationProperties.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorDetail.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. UserIdentityProperties.MarshalJSON() ([]byte, error) diff --git a/services/operationalinsights/mgmt/2020-10-01/operationalinsights/_meta.json b/services/operationalinsights/mgmt/2020-10-01/operationalinsights/_meta.json index 1f450aa46ebc..0ebe680e18ac 100644 --- a/services/operationalinsights/mgmt/2020-10-01/operationalinsights/_meta.json +++ b/services/operationalinsights/mgmt/2020-10-01/operationalinsights/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/operationalinsights/resource-manager/readme.md", "tag": "package-2020-10", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/operationalinsights/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/operationalinsights/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/operationalinsights/mgmt/2020-10-01/operationalinsights/models.go b/services/operationalinsights/mgmt/2020-10-01/operationalinsights/models.go index c7373c5f2428..70e34d98b6e8 100644 --- a/services/operationalinsights/mgmt/2020-10-01/operationalinsights/models.go +++ b/services/operationalinsights/mgmt/2020-10-01/operationalinsights/models.go @@ -31,6 +31,12 @@ type AssociatedWorkspace struct { AssociateDate *string `json:"associateDate,omitempty"` } +// MarshalJSON is the custom marshaler for AssociatedWorkspace. +func (aw AssociatedWorkspace) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureEntityResource the resource model definition for an Azure Resource Manager resource with an etag. type AzureEntityResource struct { // Etag - READ-ONLY; Resource Etag. @@ -43,6 +49,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CapacityReservationProperties the Capacity Reservation properties. type CapacityReservationProperties struct { // LastSkuUpdate - READ-ONLY; The last time Sku was updated. @@ -53,6 +65,12 @@ type CapacityReservationProperties struct { MaxCapacity *int64 `json:"maxCapacity,omitempty"` } +// MarshalJSON is the custom marshaler for CapacityReservationProperties. +func (crp CapacityReservationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Cluster the top level Log Analytics cluster resource container. type Cluster struct { autorest.Response `json:"-"` @@ -572,6 +590,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetail the error detail. type ErrorDetail struct { // Code - READ-ONLY; The error code. @@ -586,6 +610,12 @@ type ErrorDetail struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetail. +func (ed ErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.). type ErrorResponse struct { @@ -836,6 +866,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -846,6 +882,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource type TrackedResource struct { // Tags - Resource tags. @@ -880,6 +922,12 @@ type UserIdentityProperties struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for UserIdentityProperties. +func (uip UserIdentityProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Workspace the top level Workspace resource container. type Workspace struct { autorest.Response `json:"-"` diff --git a/services/operationalinsights/v1/operationalinsights/_meta.json b/services/operationalinsights/v1/operationalinsights/_meta.json index 0e6c42b84856..b7500bd9c98d 100644 --- a/services/operationalinsights/v1/operationalinsights/_meta.json +++ b/services/operationalinsights/v1/operationalinsights/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/operationalinsights/data-plane/readme.md", "tag": "v1", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=v1 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/operationalinsights/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=v1 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/operationalinsights/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/peering/mgmt/2020-04-01/peering/CHANGELOG.md b/services/peering/mgmt/2020-04-01/peering/CHANGELOG.md index 52911e4cc5e4..a7673d285336 100644 --- a/services/peering/mgmt/2020-04-01/peering/CHANGELOG.md +++ b/services/peering/mgmt/2020-04-01/peering/CHANGELOG.md @@ -1,2 +1,13 @@ # Change History +## Additive Changes + +### New Funcs + +1. ErrorDetail.MarshalJSON() ([]byte, error) +1. Operation.MarshalJSON() ([]byte, error) +1. OperationDisplayInfo.MarshalJSON() ([]byte, error) +1. ReceivedRoute.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ServiceCountry.MarshalJSON() ([]byte, error) +1. ServicePrefixEvent.MarshalJSON() ([]byte, error) diff --git a/services/peering/mgmt/2020-04-01/peering/_meta.json b/services/peering/mgmt/2020-04-01/peering/_meta.json index 5c386bde66ea..a3a033aa30b1 100644 --- a/services/peering/mgmt/2020-04-01/peering/_meta.json +++ b/services/peering/mgmt/2020-04-01/peering/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/peering/resource-manager/readme.md", "tag": "package-2020-04-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-04-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/peering/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-04-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/peering/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/peering/mgmt/2020-04-01/peering/models.go b/services/peering/mgmt/2020-04-01/peering/models.go index 75a3aae76cd1..910e0ef04e38 100644 --- a/services/peering/mgmt/2020-04-01/peering/models.go +++ b/services/peering/mgmt/2020-04-01/peering/models.go @@ -170,6 +170,12 @@ type ErrorDetail struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetail. +func (ed ErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse the error response that indicates why an operation has failed. type ErrorResponse struct { // Error - The error detail that describes why an operation has failed. @@ -797,6 +803,12 @@ type Operation struct { IsDataAction *bool `json:"isDataAction,omitempty"` } +// MarshalJSON is the custom marshaler for Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationDisplayInfo the information related to the operation. type OperationDisplayInfo struct { // Provider - READ-ONLY; The name of the resource provider. @@ -809,6 +821,12 @@ type OperationDisplayInfo struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplayInfo. +func (odi OperationDisplayInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult the paginated list of peering API operations. type OperationListResult struct { autorest.Response `json:"-"` @@ -1312,6 +1330,12 @@ type ReceivedRoute struct { ReceivedTimestamp *string `json:"receivedTimestamp,omitempty"` } +// MarshalJSON is the custom marshaler for ReceivedRoute. +func (rr ReceivedRoute) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReceivedRouteListResult the paginated list of received routes for the peering. type ReceivedRouteListResult struct { autorest.Response `json:"-"` @@ -1987,6 +2011,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceTags the resource tags. type ResourceTags struct { // Tags - Gets or sets the tags, a dictionary of descriptors arm object @@ -2127,6 +2157,12 @@ type ServiceCountry struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceCountry. +func (sc ServiceCountry) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceCountryListResult the paginated list of peering service countries. type ServiceCountryListResult struct { autorest.Response `json:"-"` @@ -2773,6 +2809,12 @@ type ServicePrefixEvent struct { EventDescription *string `json:"eventDescription,omitempty"` } +// MarshalJSON is the custom marshaler for ServicePrefixEvent. +func (spe ServicePrefixEvent) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServicePrefixListResult the paginated list of peering service prefixes. type ServicePrefixListResult struct { autorest.Response `json:"-"` diff --git a/services/peering/mgmt/2020-10-01/peering/CHANGELOG.md b/services/peering/mgmt/2020-10-01/peering/CHANGELOG.md index 52911e4cc5e4..9b0f5c553f1c 100644 --- a/services/peering/mgmt/2020-10-01/peering/CHANGELOG.md +++ b/services/peering/mgmt/2020-10-01/peering/CHANGELOG.md @@ -1,2 +1,14 @@ # Change History +## Additive Changes + +### New Funcs + +1. CdnPeeringPrefixProperties.MarshalJSON() ([]byte, error) +1. ErrorDetail.MarshalJSON() ([]byte, error) +1. Operation.MarshalJSON() ([]byte, error) +1. OperationDisplayInfo.MarshalJSON() ([]byte, error) +1. ReceivedRoute.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ServiceCountry.MarshalJSON() ([]byte, error) +1. ServicePrefixEvent.MarshalJSON() ([]byte, error) diff --git a/services/peering/mgmt/2020-10-01/peering/_meta.json b/services/peering/mgmt/2020-10-01/peering/_meta.json index c70a759c899a..4250d79bb228 100644 --- a/services/peering/mgmt/2020-10-01/peering/_meta.json +++ b/services/peering/mgmt/2020-10-01/peering/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/peering/resource-manager/readme.md", "tag": "package-2020-10-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-10-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/peering/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-10-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/peering/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/peering/mgmt/2020-10-01/peering/models.go b/services/peering/mgmt/2020-10-01/peering/models.go index e2c88015cfcf..3a3ac4c6b8fa 100644 --- a/services/peering/mgmt/2020-10-01/peering/models.go +++ b/services/peering/mgmt/2020-10-01/peering/models.go @@ -331,6 +331,12 @@ type CdnPeeringPrefixProperties struct { BgpCommunity *string `json:"bgpCommunity,omitempty"` } +// MarshalJSON is the custom marshaler for CdnPeeringPrefixProperties. +func (cppp CdnPeeringPrefixProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CheckServiceProviderAvailabilityInput class for CheckServiceProviderAvailabilityInput type CheckServiceProviderAvailabilityInput struct { // PeeringServiceLocation - Gets or sets the peering service location. @@ -417,6 +423,12 @@ type ErrorDetail struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetail. +func (ed ErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse the error response that indicates why an operation has failed. type ErrorResponse struct { // Error - The error detail that describes why an operation has failed. @@ -1044,6 +1056,12 @@ type Operation struct { IsDataAction *bool `json:"isDataAction,omitempty"` } +// MarshalJSON is the custom marshaler for Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationDisplayInfo the information related to the operation. type OperationDisplayInfo struct { // Provider - READ-ONLY; The name of the resource provider. @@ -1056,6 +1074,12 @@ type OperationDisplayInfo struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplayInfo. +func (odi OperationDisplayInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult the paginated list of peering API operations. type OperationListResult struct { autorest.Response `json:"-"` @@ -1559,6 +1583,12 @@ type ReceivedRoute struct { ReceivedTimestamp *string `json:"receivedTimestamp,omitempty"` } +// MarshalJSON is the custom marshaler for ReceivedRoute. +func (rr ReceivedRoute) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReceivedRouteListResult the paginated list of received routes for the peering. type ReceivedRouteListResult struct { autorest.Response `json:"-"` @@ -2234,6 +2264,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceTags the resource tags. type ResourceTags struct { // Tags - Gets or sets the tags, a dictionary of descriptors arm object @@ -2374,6 +2410,12 @@ type ServiceCountry struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceCountry. +func (sc ServiceCountry) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceCountryListResult the paginated list of peering service countries. type ServiceCountryListResult struct { autorest.Response `json:"-"` @@ -3020,6 +3062,12 @@ type ServicePrefixEvent struct { EventDescription *string `json:"eventDescription,omitempty"` } +// MarshalJSON is the custom marshaler for ServicePrefixEvent. +func (spe ServicePrefixEvent) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServicePrefixListResult the paginated list of peering service prefixes. type ServicePrefixListResult struct { autorest.Response `json:"-"` diff --git a/services/personalizer/v1.0/personalizer/CHANGELOG.md b/services/personalizer/v1.0/personalizer/CHANGELOG.md index 52911e4cc5e4..00f3c90821d6 100644 --- a/services/personalizer/v1.0/personalizer/CHANGELOG.md +++ b/services/personalizer/v1.0/personalizer/CHANGELOG.md @@ -1,2 +1,13 @@ # Change History +## Additive Changes + +### New Funcs + +1. DateRange.MarshalJSON() ([]byte, error) +1. LogsProperties.MarshalJSON() ([]byte, error) +1. LogsPropertiesDateRange.MarshalJSON() ([]byte, error) +1. ModelProperties.MarshalJSON() ([]byte, error) +1. PolicyResult.MarshalJSON() ([]byte, error) +1. RankResponse.MarshalJSON() ([]byte, error) +1. RankedAction.MarshalJSON() ([]byte, error) diff --git a/services/personalizer/v1.0/personalizer/_meta.json b/services/personalizer/v1.0/personalizer/_meta.json index ac05ab3fbc71..dcdda3c12a00 100644 --- a/services/personalizer/v1.0/personalizer/_meta.json +++ b/services/personalizer/v1.0/personalizer/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/Personalizer/readme.md", "tag": "release_1_0", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=release_1_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/Personalizer/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=release_1_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/Personalizer/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/personalizer/v1.0/personalizer/models.go b/services/personalizer/v1.0/personalizer/models.go index 526fdbb626d6..a199706ab8ba 100644 --- a/services/personalizer/v1.0/personalizer/models.go +++ b/services/personalizer/v1.0/personalizer/models.go @@ -31,6 +31,12 @@ type DateRange struct { To *date.Time `json:"to,omitempty"` } +// MarshalJSON is the custom marshaler for DateRange. +func (dr DateRange) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Error the error object. type Error struct { // Code - High level error code. Possible values include: 'BadRequest', 'ResourceNotFound', 'InternalServerError', 'InvalidServiceConfiguration', 'InvalidPolicyConfiguration', 'InvalidPolicyContract', 'InvalidEvaluationContract', 'InvalidRewardRequest', 'InvalidEventIDToActivate', 'InvalidRankRequest', 'InvalidExportLogsRequest', 'InvalidContainer', 'FrontEndNotFound', 'EvaluationNotFound', 'LogsPropertiesNotFound', 'RankNullResponse', 'UpdateConfigurationFailed', 'ModelResetFailed' @@ -117,6 +123,12 @@ type LogsProperties struct { DateRange *LogsPropertiesDateRange `json:"dateRange,omitempty"` } +// MarshalJSON is the custom marshaler for LogsProperties. +func (lp LogsProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LogsPropertiesDateRange ... type LogsPropertiesDateRange struct { // From - READ-ONLY @@ -125,6 +137,12 @@ type LogsPropertiesDateRange struct { To *date.Time `json:"to,omitempty"` } +// MarshalJSON is the custom marshaler for LogsPropertiesDateRange. +func (lpR LogsPropertiesDateRange) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ModelProperties ... type ModelProperties struct { autorest.Response `json:"-"` @@ -134,6 +152,12 @@ type ModelProperties struct { LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"` } +// MarshalJSON is the custom marshaler for ModelProperties. +func (mp ModelProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PolicyContract learning settings specifying how to train the model. type PolicyContract struct { autorest.Response `json:"-"` @@ -155,6 +179,12 @@ type PolicyResult struct { TotalSummary *PolicyResultTotalSummary `json:"totalSummary,omitempty"` } +// MarshalJSON is the custom marshaler for PolicyResult. +func (pr PolicyResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PolicyResultSummary ... type PolicyResultSummary struct { // TimeStamp - READ-ONLY @@ -227,6 +257,12 @@ type RankedAction struct { Probability *float64 `json:"probability,omitempty"` } +// MarshalJSON is the custom marshaler for RankedAction. +func (ra RankedAction) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RankRequest request a set of actions to be ranked by the Personalizer service. type RankRequest struct { // ContextFeatures - Features of the context used for Personalizer as a @@ -270,6 +306,12 @@ type RankResponse struct { RewardActionID *string `json:"rewardActionId,omitempty"` } +// MarshalJSON is the custom marshaler for RankResponse. +func (rr RankResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReadCloser ... type ReadCloser struct { autorest.Response `json:"-"` diff --git a/services/policyinsights/mgmt/2018-04-04/policyinsights/CHANGELOG.md b/services/policyinsights/mgmt/2018-04-04/policyinsights/CHANGELOG.md index 52911e4cc5e4..42eb14a9cd70 100644 --- a/services/policyinsights/mgmt/2018-04-04/policyinsights/CHANGELOG.md +++ b/services/policyinsights/mgmt/2018-04-04/policyinsights/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. QueryFailureError.MarshalJSON() ([]byte, error) diff --git a/services/policyinsights/mgmt/2018-04-04/policyinsights/_meta.json b/services/policyinsights/mgmt/2018-04-04/policyinsights/_meta.json index a6d3ae73b749..f3e7121d6541 100644 --- a/services/policyinsights/mgmt/2018-04-04/policyinsights/_meta.json +++ b/services/policyinsights/mgmt/2018-04-04/policyinsights/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/policyinsights/resource-manager/readme.md", "tag": "package-2018-04", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/policyinsights/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/policyinsights/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/policyinsights/mgmt/2018-04-04/policyinsights/models.go b/services/policyinsights/mgmt/2018-04-04/policyinsights/models.go index d717d027d2b3..6a1190ed3282 100644 --- a/services/policyinsights/mgmt/2018-04-04/policyinsights/models.go +++ b/services/policyinsights/mgmt/2018-04-04/policyinsights/models.go @@ -972,6 +972,12 @@ type QueryFailureError struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for QueryFailureError. +func (qf QueryFailureError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // String ... type String struct { autorest.Response `json:"-"` diff --git a/services/postgresql/mgmt/2017-12-01/postgresql/CHANGELOG.md b/services/postgresql/mgmt/2017-12-01/postgresql/CHANGELOG.md index 52911e4cc5e4..d37474b3dd93 100644 --- a/services/postgresql/mgmt/2017-12-01/postgresql/CHANGELOG.md +++ b/services/postgresql/mgmt/2017-12-01/postgresql/CHANGELOG.md @@ -1,2 +1,14 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ServerPrivateEndpointConnection.MarshalJSON() ([]byte, error) +1. VirtualNetworkRuleListResult.MarshalJSON() ([]byte, error) diff --git a/services/postgresql/mgmt/2017-12-01/postgresql/_meta.json b/services/postgresql/mgmt/2017-12-01/postgresql/_meta.json index c1fe60844582..0d0f4dfcca08 100644 --- a/services/postgresql/mgmt/2017-12-01/postgresql/_meta.json +++ b/services/postgresql/mgmt/2017-12-01/postgresql/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/postgresql/resource-manager/readme.md", "tag": "package-2017-12-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-12-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/postgresql/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-12-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/postgresql/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/postgresql/mgmt/2017-12-01/postgresql/models.go b/services/postgresql/mgmt/2017-12-01/postgresql/models.go index 5f4e4a6fd9f6..5029523ae3b6 100644 --- a/services/postgresql/mgmt/2017-12-01/postgresql/models.go +++ b/services/postgresql/mgmt/2017-12-01/postgresql/models.go @@ -33,6 +33,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from the Batch service. type CloudError struct { Error *ErrorResponse `json:"error,omitempty"` @@ -365,6 +371,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.) type ErrorResponse struct { @@ -380,6 +392,12 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FirewallRule represents a server firewall rule. type FirewallRule struct { autorest.Response `json:"-"` @@ -705,6 +723,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (od OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult a list of resource provider operations. type OperationListResult struct { autorest.Response `json:"-"` @@ -764,6 +788,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -774,6 +804,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceIdentity azure Active Directory identity configuration for a resource. type ResourceIdentity struct { // PrincipalID - READ-ONLY; The Azure Active Directory principal id. @@ -1219,6 +1255,12 @@ type ServerPrivateEndpointConnection struct { Properties *ServerPrivateEndpointConnectionProperties `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for ServerPrivateEndpointConnection. +func (spec ServerPrivateEndpointConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerPrivateEndpointConnectionProperties properties of a private endpoint connection. type ServerPrivateEndpointConnectionProperties struct { // PrivateEndpoint - Private endpoint which the connection belongs to. @@ -2321,6 +2363,12 @@ type VirtualNetworkRuleListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkRuleListResult. +func (vnrlr VirtualNetworkRuleListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkRuleListResultIterator provides access to a complete listing of VirtualNetworkRule values. type VirtualNetworkRuleListResultIterator struct { i int diff --git a/services/postgresql/mgmt/2020-01-01/postgresql/CHANGELOG.md b/services/postgresql/mgmt/2020-01-01/postgresql/CHANGELOG.md index 52911e4cc5e4..bd9e28e8fadd 100644 --- a/services/postgresql/mgmt/2020-01-01/postgresql/CHANGELOG.md +++ b/services/postgresql/mgmt/2020-01-01/postgresql/CHANGELOG.md @@ -1,2 +1,19 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. PrivateEndpointConnectionListResult.MarshalJSON() ([]byte, error) +1. PrivateLinkResource.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceListResult.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ServerKeyListResult.MarshalJSON() ([]byte, error) +1. ServerPrivateEndpointConnection.MarshalJSON() ([]byte, error) +1. VirtualNetworkRuleListResult.MarshalJSON() ([]byte, error) diff --git a/services/postgresql/mgmt/2020-01-01/postgresql/_meta.json b/services/postgresql/mgmt/2020-01-01/postgresql/_meta.json index 4d075c32f701..1aacd052fc27 100644 --- a/services/postgresql/mgmt/2020-01-01/postgresql/_meta.json +++ b/services/postgresql/mgmt/2020-01-01/postgresql/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/postgresql/resource-manager/readme.md", "tag": "package-2020-01-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-01-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/postgresql/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-01-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/postgresql/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/postgresql/mgmt/2020-01-01/postgresql/models.go b/services/postgresql/mgmt/2020-01-01/postgresql/models.go index cbb0a5c343f8..019da26aa3bf 100644 --- a/services/postgresql/mgmt/2020-01-01/postgresql/models.go +++ b/services/postgresql/mgmt/2020-01-01/postgresql/models.go @@ -33,6 +33,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from the Batch service. type CloudError struct { Error *ErrorResponse `json:"error,omitempty"` @@ -365,6 +371,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.) type ErrorResponse struct { @@ -380,6 +392,12 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FirewallRule represents a server firewall rule. type FirewallRule struct { autorest.Response `json:"-"` @@ -705,6 +723,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (od OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult a list of resource provider operations. type OperationListResult struct { autorest.Response `json:"-"` @@ -829,6 +853,12 @@ type PrivateEndpointConnectionListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpointConnectionListResult. +func (peclr PrivateEndpointConnectionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnectionListResultIterator provides access to a complete listing of // PrivateEndpointConnection values. type PrivateEndpointConnectionListResultIterator struct { @@ -1144,6 +1174,12 @@ type PrivateLinkResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResource. +func (plr PrivateLinkResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkResourceListResult a list of private link resources type PrivateLinkResourceListResult struct { autorest.Response `json:"-"` @@ -1153,6 +1189,12 @@ type PrivateLinkResourceListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceListResult. +func (plrlr PrivateLinkResourceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkResourceListResultIterator provides access to a complete listing of PrivateLinkResource // values. type PrivateLinkResourceListResultIterator struct { @@ -1312,6 +1354,12 @@ type PrivateLinkResourceProperties struct { RequiredMembers *[]string `json:"requiredMembers,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. +func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkServiceConnectionStateProperty ... type PrivateLinkServiceConnectionStateProperty struct { // Status - The private link service connection status. @@ -1345,6 +1393,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -1355,6 +1409,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceIdentity azure Active Directory identity configuration for a resource. type ResourceIdentity struct { // PrincipalID - READ-ONLY; The Azure Active Directory principal id. @@ -1878,6 +1938,12 @@ type ServerKeyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ServerKeyListResult. +func (sklr ServerKeyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerKeyListResultIterator provides access to a complete listing of ServerKey values. type ServerKeyListResultIterator struct { i int @@ -2145,6 +2211,12 @@ type ServerPrivateEndpointConnection struct { Properties *ServerPrivateEndpointConnectionProperties `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for ServerPrivateEndpointConnection. +func (spec ServerPrivateEndpointConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerPrivateEndpointConnectionProperties properties of a private endpoint connection. type ServerPrivateEndpointConnectionProperties struct { // PrivateEndpoint - Private endpoint which the connection belongs to. @@ -3262,6 +3334,12 @@ type VirtualNetworkRuleListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkRuleListResult. +func (vnrlr VirtualNetworkRuleListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkRuleListResultIterator provides access to a complete listing of VirtualNetworkRule values. type VirtualNetworkRuleListResultIterator struct { i int diff --git a/services/powerbidedicated/mgmt/2017-10-01/powerbidedicated/CHANGELOG.md b/services/powerbidedicated/mgmt/2017-10-01/powerbidedicated/CHANGELOG.md index 52911e4cc5e4..fa72975a9186 100644 --- a/services/powerbidedicated/mgmt/2017-10-01/powerbidedicated/CHANGELOG.md +++ b/services/powerbidedicated/mgmt/2017-10-01/powerbidedicated/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) diff --git a/services/powerbidedicated/mgmt/2017-10-01/powerbidedicated/_meta.json b/services/powerbidedicated/mgmt/2017-10-01/powerbidedicated/_meta.json index 7a5b94482f8a..f0f9de48ada1 100644 --- a/services/powerbidedicated/mgmt/2017-10-01/powerbidedicated/_meta.json +++ b/services/powerbidedicated/mgmt/2017-10-01/powerbidedicated/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/powerbidedicated/resource-manager/readme.md", "tag": "package-2017-10-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-10-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/powerbidedicated/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-10-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/powerbidedicated/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/powerbidedicated/mgmt/2017-10-01/powerbidedicated/models.go b/services/powerbidedicated/mgmt/2017-10-01/powerbidedicated/models.go index 3da2331ecc23..e9ce1db9700e 100644 --- a/services/powerbidedicated/mgmt/2017-10-01/powerbidedicated/models.go +++ b/services/powerbidedicated/mgmt/2017-10-01/powerbidedicated/models.go @@ -491,6 +491,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result listing capacities. It contains a list of operations and a URL link to get // the next set of results. type OperationListResult struct { @@ -501,6 +507,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int diff --git a/services/powerbiembedded/mgmt/2016-01-29/powerbiembedded/_meta.json b/services/powerbiembedded/mgmt/2016-01-29/powerbiembedded/_meta.json index 55a6b6e077ec..f95ec62cfda7 100644 --- a/services/powerbiembedded/mgmt/2016-01-29/powerbiembedded/_meta.json +++ b/services/powerbiembedded/mgmt/2016-01-29/powerbiembedded/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/powerbiembedded/resource-manager/readme.md", "tag": "package-2016-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/powerbiembedded/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/powerbiembedded/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/addons/mgmt/2017-05-15/addons/_meta.json b/services/preview/addons/mgmt/2017-05-15/addons/_meta.json index 79466b1a3375..134f9d196622 100644 --- a/services/preview/addons/mgmt/2017-05-15/addons/_meta.json +++ b/services/preview/addons/mgmt/2017-05-15/addons/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/addons/resource-manager/readme.md", "tag": "package-2017-05", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/addons/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/addons/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/addons/mgmt/2018-03-01/addons/_meta.json b/services/preview/addons/mgmt/2018-03-01/addons/_meta.json index f60038fe4372..d5b6dcdf4381 100644 --- a/services/preview/addons/mgmt/2018-03-01/addons/_meta.json +++ b/services/preview/addons/mgmt/2018-03-01/addons/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/addons/resource-manager/readme.md", "tag": "package-2018-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/addons/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/addons/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/advisor/mgmt/2016-07-12-preview/advisor/_meta.json b/services/preview/advisor/mgmt/2016-07-12-preview/advisor/_meta.json index b30523ccc123..69c36180f668 100644 --- a/services/preview/advisor/mgmt/2016-07-12-preview/advisor/_meta.json +++ b/services/preview/advisor/mgmt/2016-07-12-preview/advisor/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/advisor/resource-manager/readme.md", "tag": "package-2016-07-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-07-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/advisor/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-07-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/advisor/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/alertsmanagement/mgmt/2018-05-05-preview/alertsmanagement/CHANGELOG.md b/services/preview/alertsmanagement/mgmt/2018-05-05-preview/alertsmanagement/CHANGELOG.md index 52911e4cc5e4..f817772e217f 100644 --- a/services/preview/alertsmanagement/mgmt/2018-05-05-preview/alertsmanagement/CHANGELOG.md +++ b/services/preview/alertsmanagement/mgmt/2018-05-05-preview/alertsmanagement/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/alertsmanagement/mgmt/2018-05-05-preview/alertsmanagement/_meta.json b/services/preview/alertsmanagement/mgmt/2018-05-05-preview/alertsmanagement/_meta.json index 742936c16404..e92a9c23127a 100644 --- a/services/preview/alertsmanagement/mgmt/2018-05-05-preview/alertsmanagement/_meta.json +++ b/services/preview/alertsmanagement/mgmt/2018-05-05-preview/alertsmanagement/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/alertsmanagement/resource-manager/readme.md", "tag": "package-2018-05-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-05-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/alertsmanagement/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-05-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/alertsmanagement/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/alertsmanagement/mgmt/2018-05-05-preview/alertsmanagement/models.go b/services/preview/alertsmanagement/mgmt/2018-05-05-preview/alertsmanagement/models.go index e0f0a2b72fee..cd711d4bebde 100644 --- a/services/preview/alertsmanagement/mgmt/2018-05-05-preview/alertsmanagement/models.go +++ b/services/preview/alertsmanagement/mgmt/2018-05-05-preview/alertsmanagement/models.go @@ -886,6 +886,12 @@ type Resource struct { Name *string `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SmartGroup set of related alerts grouped together smartly by AMS. type SmartGroup struct { autorest.Response `json:"-"` diff --git a/services/preview/alertsmanagement/mgmt/2019-05-05-preview/alertsmanagement/CHANGELOG.md b/services/preview/alertsmanagement/mgmt/2019-05-05-preview/alertsmanagement/CHANGELOG.md index 52911e4cc5e4..f817772e217f 100644 --- a/services/preview/alertsmanagement/mgmt/2019-05-05-preview/alertsmanagement/CHANGELOG.md +++ b/services/preview/alertsmanagement/mgmt/2019-05-05-preview/alertsmanagement/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/alertsmanagement/mgmt/2019-05-05-preview/alertsmanagement/_meta.json b/services/preview/alertsmanagement/mgmt/2019-05-05-preview/alertsmanagement/_meta.json index 0c3b3aee323c..8a1d15aeebb6 100644 --- a/services/preview/alertsmanagement/mgmt/2019-05-05-preview/alertsmanagement/_meta.json +++ b/services/preview/alertsmanagement/mgmt/2019-05-05-preview/alertsmanagement/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/alertsmanagement/resource-manager/readme.md", "tag": "package-preview-2019-05", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-preview-2019-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/alertsmanagement/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-preview-2019-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/alertsmanagement/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/alertsmanagement/mgmt/2019-05-05-preview/alertsmanagement/models.go b/services/preview/alertsmanagement/mgmt/2019-05-05-preview/alertsmanagement/models.go index f9c970183488..33a9d2494182 100644 --- a/services/preview/alertsmanagement/mgmt/2019-05-05-preview/alertsmanagement/models.go +++ b/services/preview/alertsmanagement/mgmt/2019-05-05-preview/alertsmanagement/models.go @@ -1356,6 +1356,12 @@ type Resource struct { Name *string `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Scope target scope for a given action rule. By default scope will be the subscription. User can also // provide list of resource groups or list of resources from the scope subscription as well. type Scope struct { diff --git a/services/preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement/CHANGELOG.md b/services/preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement/CHANGELOG.md index 52911e4cc5e4..f817772e217f 100644 --- a/services/preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement/CHANGELOG.md +++ b/services/preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement/_meta.json b/services/preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement/_meta.json index 2dcdd6a5d9ca..f89ddd96b097 100644 --- a/services/preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement/_meta.json +++ b/services/preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement/_meta.json @@ -2,9 +2,9 @@ "commit": "4c93f28f89435f6d244f4db61bbf810b5d20f09f", "readme": "/_/azure-rest-api-specs/specification/alertsmanagement/resource-manager/readme.md", "tag": "package-2019-06-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-06-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/alertsmanagement/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-06-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/alertsmanagement/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement/models.go b/services/preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement/models.go index 6e02194b601d..22d7cb7791bb 100644 --- a/services/preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement/models.go +++ b/services/preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement/models.go @@ -1815,6 +1815,12 @@ type Resource struct { Name *string `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Scope target scope for a given action rule. By default scope will be the subscription. User can also // provide list of resource groups or list of resources from the scope subscription as well. type Scope struct { diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/CHANGELOG.md b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/CHANGELOG.md index 52911e4cc5e4..726ae9a660ba 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/CHANGELOG.md +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. PolicySnippetContract.MarshalJSON() ([]byte, error) diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/_meta.json b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/_meta.json index 08fc5f15bdbd..63d31e6b3f59 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/_meta.json +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/apimanagement/control-plane/readme.md", "tag": "package-2017-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/apimanagement/control-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/apimanagement/control-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/models.go b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/models.go index e5a0d7ca8ab2..417842cf6ab1 100644 --- a/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/models.go +++ b/services/preview/apimanagement/ctrl/2017-03-01/apimanagement/models.go @@ -2629,6 +2629,12 @@ type PolicySnippetContract struct { Scope *int32 `json:"scope,omitempty"` } +// MarshalJSON is the custom marshaler for PolicySnippetContract. +func (psc PolicySnippetContract) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PolicySnippetsCollection the response of the list policy snippets operation. type PolicySnippetsCollection struct { autorest.Response `json:"-"` diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/CHANGELOG.md b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/CHANGELOG.md index 52911e4cc5e4..fc5f18c228ac 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/CHANGELOG.md +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/CHANGELOG.md @@ -1,2 +1,19 @@ # Change History +## Additive Changes + +### New Funcs + +1. APICollection.MarshalJSON() ([]byte, error) +1. APIReleaseCollection.MarshalJSON() ([]byte, error) +1. APIRevisionCollection.MarshalJSON() ([]byte, error) +1. APIRevisionContract.MarshalJSON() ([]byte, error) +1. IssueAttachmentCollection.MarshalJSON() ([]byte, error) +1. IssueCollection.MarshalJSON() ([]byte, error) +1. IssueCommentCollection.MarshalJSON() ([]byte, error) +1. OperationCollection.MarshalJSON() ([]byte, error) +1. PolicySnippetContract.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ResourceSkuCapacity.MarshalJSON() ([]byte, error) +1. ResourceSkuResult.MarshalJSON() ([]byte, error) +1. SchemaCollection.MarshalJSON() ([]byte, error) diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/_meta.json b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/_meta.json index f41f90d799df..34ece3a253af 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/_meta.json +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/apimanagement/resource-manager/readme.md", "tag": "package-2018-06-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-06-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/apimanagement/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-06-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/apimanagement/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/models.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/models.go index 7afc85f60d5e..a9e5e379aa86 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/models.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/models.go @@ -81,6 +81,12 @@ type APICollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for APICollection. +func (ac APICollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // APICollectionIterator provides access to a complete listing of APIContract values. type APICollectionIterator struct { i int @@ -777,6 +783,12 @@ type APIReleaseCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for APIReleaseCollection. +func (arc APIReleaseCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // APIReleaseCollectionIterator provides access to a complete listing of APIReleaseContract values. type APIReleaseCollectionIterator struct { i int @@ -1033,6 +1045,12 @@ type APIRevisionCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for APIRevisionCollection. +func (arc APIRevisionCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // APIRevisionCollectionIterator provides access to a complete listing of APIRevisionContract values. type APIRevisionCollectionIterator struct { i int @@ -1203,6 +1221,12 @@ type APIRevisionContract struct { IsCurrent *bool `json:"isCurrent,omitempty"` } +// MarshalJSON is the custom marshaler for APIRevisionContract. +func (arc APIRevisionContract) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // APIRevisionInfoContract object used to create an API Revision or Version based on an existing API // Revision type APIRevisionInfoContract struct { @@ -4603,6 +4627,12 @@ type IssueAttachmentCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for IssueAttachmentCollection. +func (iac IssueAttachmentCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IssueAttachmentCollectionIterator provides access to a complete listing of IssueAttachmentContract // values. type IssueAttachmentCollectionIterator struct { @@ -4846,6 +4876,12 @@ type IssueCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for IssueCollection. +func (ic IssueCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IssueCollectionIterator provides access to a complete listing of IssueContract values. type IssueCollectionIterator struct { i int @@ -5005,6 +5041,12 @@ type IssueCommentCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for IssueCommentCollection. +func (icc IssueCommentCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IssueCommentCollectionIterator provides access to a complete listing of IssueCommentContract values. type IssueCommentCollectionIterator struct { i int @@ -6336,6 +6378,12 @@ type OperationCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationCollection. +func (oc OperationCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationCollectionIterator provides access to a complete listing of OperationContract values. type OperationCollectionIterator struct { i int @@ -7032,6 +7080,12 @@ type PolicySnippetContract struct { Scope *int32 `json:"scope,omitempty"` } +// MarshalJSON is the custom marshaler for PolicySnippetContract. +func (psc PolicySnippetContract) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PolicySnippetsCollection the response of the list policy snippets operation. type PolicySnippetsCollection struct { autorest.Response `json:"-"` @@ -8810,6 +8864,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSku describes an available API Management SKU. type ResourceSku struct { // Name - Name of the Sku. Possible values include: 'SkuTypeDeveloper', 'SkuTypeStandard', 'SkuTypePremium', 'SkuTypeBasic', 'SkuTypeConsumption' @@ -8828,6 +8888,12 @@ type ResourceSkuCapacity struct { ScaleType ResourceSkuCapacityScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapacity. +func (rsc ResourceSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuResult describes an available API Management service SKU. type ResourceSkuResult struct { // ResourceType - READ-ONLY; The type of resource the SKU applies to. @@ -8838,6 +8904,12 @@ type ResourceSkuResult struct { Capacity *ResourceSkuCapacity `json:"capacity,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuResult. +func (rsr ResourceSkuResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuResults the API Management service SKUs operation response. type ResourceSkuResults struct { autorest.Response `json:"-"` @@ -9034,6 +9106,12 @@ type SchemaCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SchemaCollection. +func (sc SchemaCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SchemaCollectionIterator provides access to a complete listing of SchemaContract values. type SchemaCollectionIterator struct { i int diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/CHANGELOG.md b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/CHANGELOG.md index 52911e4cc5e4..639b66793779 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/CHANGELOG.md +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/CHANGELOG.md @@ -1,2 +1,21 @@ # Change History +## Additive Changes + +### New Funcs + +1. APICollection.MarshalJSON() ([]byte, error) +1. APIReleaseCollection.MarshalJSON() ([]byte, error) +1. APIRevisionCollection.MarshalJSON() ([]byte, error) +1. APIRevisionContract.MarshalJSON() ([]byte, error) +1. GatewayCollection.MarshalJSON() ([]byte, error) +1. GatewayHostnameConfigurationCollection.MarshalJSON() ([]byte, error) +1. IssueAttachmentCollection.MarshalJSON() ([]byte, error) +1. IssueCollection.MarshalJSON() ([]byte, error) +1. IssueCommentCollection.MarshalJSON() ([]byte, error) +1. OperationCollection.MarshalJSON() ([]byte, error) +1. PolicyDescriptionContractProperties.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ResourceSkuCapacity.MarshalJSON() ([]byte, error) +1. ResourceSkuResult.MarshalJSON() ([]byte, error) +1. SchemaCollection.MarshalJSON() ([]byte, error) diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/_meta.json b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/_meta.json index b5877da9c08a..c63e28ee02bf 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/_meta.json +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/apimanagement/resource-manager/readme.md", "tag": "package-preview-2019-12", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-preview-2019-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/apimanagement/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-preview-2019-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/apimanagement/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/models.go b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/models.go index 7d7c710651ea..2c6b2a8586ef 100644 --- a/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/models.go +++ b/services/preview/apimanagement/mgmt/2019-12-01-preview/apimanagement/models.go @@ -125,6 +125,12 @@ type APICollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for APICollection. +func (ac APICollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // APICollectionIterator provides access to a complete listing of APIContract values. type APICollectionIterator struct { i int @@ -855,6 +861,12 @@ type APIReleaseCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for APIReleaseCollection. +func (arc APIReleaseCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // APIReleaseCollectionIterator provides access to a complete listing of APIReleaseContract values. type APIReleaseCollectionIterator struct { i int @@ -1111,6 +1123,12 @@ type APIRevisionCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for APIRevisionCollection. +func (arc APIRevisionCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // APIRevisionCollectionIterator provides access to a complete listing of APIRevisionContract values. type APIRevisionCollectionIterator struct { i int @@ -1281,6 +1299,12 @@ type APIRevisionContract struct { IsCurrent *bool `json:"isCurrent,omitempty"` } +// MarshalJSON is the custom marshaler for APIRevisionContract. +func (arc APIRevisionContract) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // APIRevisionInfoContract object used to create an API Revision or Version based on an existing API // Revision type APIRevisionInfoContract struct { @@ -4106,6 +4130,12 @@ type GatewayCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for GatewayCollection. +func (gc GatewayCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GatewayCollectionIterator provides access to a complete listing of GatewayContract values. type GatewayCollectionIterator struct { i int @@ -4346,6 +4376,12 @@ type GatewayHostnameConfigurationCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for GatewayHostnameConfigurationCollection. +func (ghcc GatewayHostnameConfigurationCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GatewayHostnameConfigurationCollectionIterator provides access to a complete listing of // GatewayHostnameConfigurationContract values. type GatewayHostnameConfigurationCollectionIterator struct { @@ -5460,6 +5496,12 @@ type IssueAttachmentCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for IssueAttachmentCollection. +func (iac IssueAttachmentCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IssueAttachmentCollectionIterator provides access to a complete listing of IssueAttachmentContract // values. type IssueAttachmentCollectionIterator struct { @@ -5703,6 +5745,12 @@ type IssueCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for IssueCollection. +func (ic IssueCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IssueCollectionIterator provides access to a complete listing of IssueContract values. type IssueCollectionIterator struct { i int @@ -5862,6 +5910,12 @@ type IssueCommentCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for IssueCommentCollection. +func (icc IssueCommentCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IssueCommentCollectionIterator provides access to a complete listing of IssueCommentContract values. type IssueCommentCollectionIterator struct { i int @@ -7666,6 +7720,12 @@ type OperationCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationCollection. +func (oc OperationCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationCollectionIterator provides access to a complete listing of OperationContract values. type OperationCollectionIterator struct { i int @@ -8439,6 +8499,12 @@ type PolicyDescriptionContractProperties struct { Scope *int32 `json:"scope,omitempty"` } +// MarshalJSON is the custom marshaler for PolicyDescriptionContractProperties. +func (pdcp PolicyDescriptionContractProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PortalDelegationSettings delegation settings for a developer portal. type PortalDelegationSettings struct { autorest.Response `json:"-"` @@ -9921,6 +9987,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceLocationDataContract resource location data properties. type ResourceLocationDataContract struct { // Name - A canonical name for the geographic or physical location. @@ -9951,6 +10023,12 @@ type ResourceSkuCapacity struct { ScaleType ResourceSkuCapacityScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapacity. +func (rsc ResourceSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuResult describes an available API Management service SKU. type ResourceSkuResult struct { // ResourceType - READ-ONLY; The type of resource the SKU applies to. @@ -9961,6 +10039,12 @@ type ResourceSkuResult struct { Capacity *ResourceSkuCapacity `json:"capacity,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuResult. +func (rsr ResourceSkuResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuResults the API Management service SKUs operation response. type ResourceSkuResults struct { autorest.Response `json:"-"` @@ -10196,6 +10280,12 @@ type SchemaCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SchemaCollection. +func (sc SchemaCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SchemaCollectionIterator provides access to a complete listing of SchemaContract values. type SchemaCollectionIterator struct { i int diff --git a/services/preview/appconfiguration/mgmt/2019-02-01-preview/appconfiguration/CHANGELOG.md b/services/preview/appconfiguration/mgmt/2019-02-01-preview/appconfiguration/CHANGELOG.md index 52911e4cc5e4..41fed58f6f7b 100644 --- a/services/preview/appconfiguration/mgmt/2019-02-01-preview/appconfiguration/CHANGELOG.md +++ b/services/preview/appconfiguration/mgmt/2019-02-01-preview/appconfiguration/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. APIKey.MarshalJSON() ([]byte, error) +1. ConfigurationStoreProperties.MarshalJSON() ([]byte, error) +1. NameAvailabilityStatus.MarshalJSON() ([]byte, error) diff --git a/services/preview/appconfiguration/mgmt/2019-02-01-preview/appconfiguration/_meta.json b/services/preview/appconfiguration/mgmt/2019-02-01-preview/appconfiguration/_meta.json index deda849ce18f..2557134ab2d6 100644 --- a/services/preview/appconfiguration/mgmt/2019-02-01-preview/appconfiguration/_meta.json +++ b/services/preview/appconfiguration/mgmt/2019-02-01-preview/appconfiguration/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/appconfiguration/resource-manager/readme.md", "tag": "package-2019-02-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-02-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/appconfiguration/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-02-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/appconfiguration/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/appconfiguration/mgmt/2019-02-01-preview/appconfiguration/models.go b/services/preview/appconfiguration/mgmt/2019-02-01-preview/appconfiguration/models.go index 4aad95528965..8c2c49a4e982 100644 --- a/services/preview/appconfiguration/mgmt/2019-02-01-preview/appconfiguration/models.go +++ b/services/preview/appconfiguration/mgmt/2019-02-01-preview/appconfiguration/models.go @@ -37,6 +37,12 @@ type APIKey struct { ReadOnly *bool `json:"readOnly,omitempty"` } +// MarshalJSON is the custom marshaler for APIKey. +func (ak APIKey) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // APIKeyListResult the result of a request to list API keys. type APIKeyListResult struct { autorest.Response `json:"-"` @@ -475,6 +481,12 @@ type ConfigurationStoreProperties struct { Endpoint *string `json:"endpoint,omitempty"` } +// MarshalJSON is the custom marshaler for ConfigurationStoreProperties. +func (csp ConfigurationStoreProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConfigurationStoresCreateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type ConfigurationStoresCreateFuture struct { @@ -676,6 +688,12 @@ type NameAvailabilityStatus struct { Reason *string `json:"reason,omitempty"` } +// MarshalJSON is the custom marshaler for NameAvailabilityStatus. +func (nas NameAvailabilityStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationDefinition the definition of a configuration store operation. type OperationDefinition struct { // Name - Operation name: {provider}/{resource}/{operation}. diff --git a/services/preview/appconfiguration/mgmt/2019-11-01-preview/appconfiguration/CHANGELOG.md b/services/preview/appconfiguration/mgmt/2019-11-01-preview/appconfiguration/CHANGELOG.md index 52911e4cc5e4..17dd5be3caa9 100644 --- a/services/preview/appconfiguration/mgmt/2019-11-01-preview/appconfiguration/CHANGELOG.md +++ b/services/preview/appconfiguration/mgmt/2019-11-01-preview/appconfiguration/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. APIKey.MarshalJSON() ([]byte, error) +1. NameAvailabilityStatus.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceProperties.MarshalJSON() ([]byte, error) +1. UserIdentity.MarshalJSON() ([]byte, error) diff --git a/services/preview/appconfiguration/mgmt/2019-11-01-preview/appconfiguration/_meta.json b/services/preview/appconfiguration/mgmt/2019-11-01-preview/appconfiguration/_meta.json index f58746fc8800..64679fe24f5c 100644 --- a/services/preview/appconfiguration/mgmt/2019-11-01-preview/appconfiguration/_meta.json +++ b/services/preview/appconfiguration/mgmt/2019-11-01-preview/appconfiguration/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/appconfiguration/resource-manager/readme.md", "tag": "package-2019-11-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-11-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/appconfiguration/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-11-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/appconfiguration/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/appconfiguration/mgmt/2019-11-01-preview/appconfiguration/models.go b/services/preview/appconfiguration/mgmt/2019-11-01-preview/appconfiguration/models.go index d1ecde4cf93b..5e1b75f5bb5d 100644 --- a/services/preview/appconfiguration/mgmt/2019-11-01-preview/appconfiguration/models.go +++ b/services/preview/appconfiguration/mgmt/2019-11-01-preview/appconfiguration/models.go @@ -37,6 +37,12 @@ type APIKey struct { ReadOnly *bool `json:"readOnly,omitempty"` } +// MarshalJSON is the custom marshaler for APIKey. +func (ak APIKey) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // APIKeyListResult the result of a request to list API keys. type APIKeyListResult struct { autorest.Response `json:"-"` @@ -803,6 +809,12 @@ type NameAvailabilityStatus struct { Reason *string `json:"reason,omitempty"` } +// MarshalJSON is the custom marshaler for NameAvailabilityStatus. +func (nas NameAvailabilityStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationDefinition the definition of a configuration store operation. type OperationDefinition struct { // Name - Operation name: {provider}/{resource}/{operation}. @@ -1654,6 +1666,12 @@ type PrivateLinkResourceProperties struct { RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. +func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkServiceConnectionState the state of a private link service connection. type PrivateLinkServiceConnectionState struct { // Status - The private link service connection status. Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected' @@ -1745,3 +1763,9 @@ type UserIdentity struct { // ClientID - READ-ONLY; The client ID of the user-assigned identity. ClientID *string `json:"clientId,omitempty"` } + +// MarshalJSON is the custom marshaler for UserIdentity. +func (UI UserIdentity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/preview/appconfiguration/mgmt/2020-07-01-preview/appconfiguration/CHANGELOG.md b/services/preview/appconfiguration/mgmt/2020-07-01-preview/appconfiguration/CHANGELOG.md index 52911e4cc5e4..7b3a78e06d00 100644 --- a/services/preview/appconfiguration/mgmt/2020-07-01-preview/appconfiguration/CHANGELOG.md +++ b/services/preview/appconfiguration/mgmt/2020-07-01-preview/appconfiguration/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. APIKey.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. NameAvailabilityStatus.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceProperties.MarshalJSON() ([]byte, error) +1. UserIdentity.MarshalJSON() ([]byte, error) diff --git a/services/preview/appconfiguration/mgmt/2020-07-01-preview/appconfiguration/_meta.json b/services/preview/appconfiguration/mgmt/2020-07-01-preview/appconfiguration/_meta.json index 75198b8d138d..6a946f132518 100644 --- a/services/preview/appconfiguration/mgmt/2020-07-01-preview/appconfiguration/_meta.json +++ b/services/preview/appconfiguration/mgmt/2020-07-01-preview/appconfiguration/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/appconfiguration/resource-manager/readme.md", "tag": "package-2020-07-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-07-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/appconfiguration/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-07-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/appconfiguration/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/appconfiguration/mgmt/2020-07-01-preview/appconfiguration/models.go b/services/preview/appconfiguration/mgmt/2020-07-01-preview/appconfiguration/models.go index 6e60fcf24123..c349fc478fd2 100644 --- a/services/preview/appconfiguration/mgmt/2020-07-01-preview/appconfiguration/models.go +++ b/services/preview/appconfiguration/mgmt/2020-07-01-preview/appconfiguration/models.go @@ -37,6 +37,12 @@ type APIKey struct { ReadOnly *bool `json:"readOnly,omitempty"` } +// MarshalJSON is the custom marshaler for APIKey. +func (ak APIKey) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // APIKeyListResult the result of a request to list API keys. type APIKeyListResult struct { autorest.Response `json:"-"` @@ -745,6 +751,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetails the details of the error. type ErrorDetails struct { // Code - READ-ONLY; Error code. @@ -755,6 +767,12 @@ type ErrorDetails struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse error response indicates that the service is not able to process the incoming request. The // reason is provided in the error message. type ErrorResponse struct { @@ -1127,6 +1145,12 @@ type NameAvailabilityStatus struct { Reason *string `json:"reason,omitempty"` } +// MarshalJSON is the custom marshaler for NameAvailabilityStatus. +func (nas NameAvailabilityStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationDefinition the definition of a configuration store operation. type OperationDefinition struct { // Name - Operation name: {provider}/{resource}/{operation}. @@ -1990,6 +2014,12 @@ type PrivateLinkResourceProperties struct { RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. +func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkServiceConnectionState the state of a private link service connection. type PrivateLinkServiceConnectionState struct { // Status - The private link service connection status. Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected' @@ -2089,3 +2119,9 @@ type UserIdentity struct { // ClientID - READ-ONLY; The client ID of the user-assigned identity. ClientID *string `json:"clientId,omitempty"` } + +// MarshalJSON is the custom marshaler for UserIdentity. +func (UI UserIdentity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/preview/appinsights/v1/insights/_meta.json b/services/preview/appinsights/v1/insights/_meta.json index 1d8ce9456631..e467b3d2b0af 100644 --- a/services/preview/appinsights/v1/insights/_meta.json +++ b/services/preview/appinsights/v1/insights/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/applicationinsights/data-plane/readme.md", "tag": "v1", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=v1 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/applicationinsights/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=v1 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/applicationinsights/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/CHANGELOG.md b/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/CHANGELOG.md index 52911e4cc5e4..ed7f2347408c 100644 --- a/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/CHANGELOG.md +++ b/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. AvailableRuntimeVersions.MarshalJSON() ([]byte, error) +1. DeploymentInstance.MarshalJSON() ([]byte, error) +1. NetworkProfileOutboundIPs.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/_meta.json b/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/_meta.json index 07ac25f7eeca..b1e5d67c3ec5 100644 --- a/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/_meta.json +++ b/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/appplatform/resource-manager/readme.md", "tag": "package-2019-05-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-05-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/appplatform/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-05-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/appplatform/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/models.go b/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/models.go index 91a634232932..bfe3d257712d 100644 --- a/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/models.go +++ b/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/models.go @@ -510,6 +510,12 @@ type AvailableRuntimeVersions struct { Value *[]SupportedRuntimeVersion `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for AvailableRuntimeVersions. +func (arv AvailableRuntimeVersions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BindingResource binding resource payload type BindingResource struct { autorest.Response `json:"-"` @@ -1284,6 +1290,12 @@ type DeploymentInstance struct { StartTime *string `json:"startTime,omitempty"` } +// MarshalJSON is the custom marshaler for DeploymentInstance. +func (di DeploymentInstance) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeploymentResource deployment resource payload type DeploymentResource struct { autorest.Response `json:"-"` @@ -1894,6 +1906,12 @@ type NetworkProfileOutboundIPs struct { PublicIPs *[]string `json:"publicIPs,omitempty"` } +// MarshalJSON is the custom marshaler for NetworkProfileOutboundIPs. +func (npP NetworkProfileOutboundIPs) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationDetail operation detail payload type OperationDetail struct { // Name - Name of the operation @@ -1959,6 +1977,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegenerateTestKeyRequestPayload regenerate test key request payload type RegenerateTestKeyRequestPayload struct { // KeyType - Type of the test key. Possible values include: 'Primary', 'Secondary' @@ -1975,6 +1999,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSku describes an available Azure Spring Cloud SKU. type ResourceSku struct { // ResourceType - Gets the type of resource the SKU applies to. diff --git a/services/preview/appplatform/mgmt/2020-11-01-preview/appplatform/CHANGELOG.md b/services/preview/appplatform/mgmt/2020-11-01-preview/appplatform/CHANGELOG.md index 52911e4cc5e4..24fbc0e11b51 100644 --- a/services/preview/appplatform/mgmt/2020-11-01-preview/appplatform/CHANGELOG.md +++ b/services/preview/appplatform/mgmt/2020-11-01-preview/appplatform/CHANGELOG.md @@ -1,2 +1,13 @@ # Change History +## Additive Changes + +### New Funcs + +1. ApplicationInsightsAgentVersions.MarshalJSON() ([]byte, error) +1. AvailableRuntimeVersions.MarshalJSON() ([]byte, error) +1. DeploymentInstance.MarshalJSON() ([]byte, error) +1. NetworkProfileOutboundIPs.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. RequiredTraffic.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/appplatform/mgmt/2020-11-01-preview/appplatform/_meta.json b/services/preview/appplatform/mgmt/2020-11-01-preview/appplatform/_meta.json index a29dd43c0157..3321eb44e18f 100644 --- a/services/preview/appplatform/mgmt/2020-11-01-preview/appplatform/_meta.json +++ b/services/preview/appplatform/mgmt/2020-11-01-preview/appplatform/_meta.json @@ -2,9 +2,9 @@ "commit": "92ab22b49bd085116af0c61fada2c6c360702e9e", "readme": "/_/azure-rest-api-specs/specification/appplatform/resource-manager/readme.md", "tag": "package-preview-2020-11", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-preview-2020-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/appplatform/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-preview-2020-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/appplatform/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/appplatform/mgmt/2020-11-01-preview/appplatform/models.go b/services/preview/appplatform/mgmt/2020-11-01-preview/appplatform/models.go index f55f0a0d1d87..f6471952adfe 100644 --- a/services/preview/appplatform/mgmt/2020-11-01-preview/appplatform/models.go +++ b/services/preview/appplatform/mgmt/2020-11-01-preview/appplatform/models.go @@ -26,6 +26,12 @@ type ApplicationInsightsAgentVersions struct { Java *string `json:"java,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationInsightsAgentVersions. +func (aiav ApplicationInsightsAgentVersions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AppResource app resource payload type AppResource struct { autorest.Response `json:"-"` @@ -557,6 +563,12 @@ type AvailableRuntimeVersions struct { Value *[]SupportedRuntimeVersion `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for AvailableRuntimeVersions. +func (arv AvailableRuntimeVersions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BindingResource binding resource payload type BindingResource struct { autorest.Response `json:"-"` @@ -1818,6 +1830,12 @@ type DeploymentInstance struct { StartTime *string `json:"startTime,omitempty"` } +// MarshalJSON is the custom marshaler for DeploymentInstance. +func (di DeploymentInstance) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeploymentResource deployment resource payload type DeploymentResource struct { autorest.Response `json:"-"` @@ -2614,6 +2632,12 @@ type NetworkProfileOutboundIPs struct { PublicIPs *[]string `json:"publicIPs,omitempty"` } +// MarshalJSON is the custom marshaler for NetworkProfileOutboundIPs. +func (npP NetworkProfileOutboundIPs) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationDetail operation detail payload type OperationDetail struct { // Name - Name of the operation @@ -2679,6 +2703,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegenerateTestKeyRequestPayload regenerate test key request payload type RegenerateTestKeyRequestPayload struct { // KeyType - Type of the test key. Possible values include: 'Primary', 'Secondary' @@ -2699,6 +2729,12 @@ type RequiredTraffic struct { Direction TrafficDirection `json:"direction,omitempty"` } +// MarshalJSON is the custom marshaler for RequiredTraffic. +func (rt RequiredTraffic) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource the core properties of ARM resources. type Resource struct { // ID - READ-ONLY; Fully qualified resource Id for the resource. @@ -2709,6 +2745,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSku describes an available Azure Spring Cloud SKU. type ResourceSku struct { // ResourceType - Gets the type of resource the SKU applies to. diff --git a/services/preview/authorization/mgmt/2017-10-01-preview/authorization/_meta.json b/services/preview/authorization/mgmt/2017-10-01-preview/authorization/_meta.json index e246f41808fc..d58f25a6ffd6 100644 --- a/services/preview/authorization/mgmt/2017-10-01-preview/authorization/_meta.json +++ b/services/preview/authorization/mgmt/2017-10-01-preview/authorization/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/authorization/resource-manager/readme.md", "tag": "package-2017-10-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-10-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/authorization/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-10-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/authorization/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/authorization/mgmt/2018-01-01-preview/authorization/_meta.json b/services/preview/authorization/mgmt/2018-01-01-preview/authorization/_meta.json index daa9abaf7291..1f5ee74c43e5 100644 --- a/services/preview/authorization/mgmt/2018-01-01-preview/authorization/_meta.json +++ b/services/preview/authorization/mgmt/2018-01-01-preview/authorization/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/authorization/resource-manager/readme.md", "tag": "package-2018-01-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-01-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/authorization/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-01-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/authorization/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/authorization/mgmt/2018-07-01-preview/authorization/CHANGELOG.md b/services/preview/authorization/mgmt/2018-07-01-preview/authorization/CHANGELOG.md index 52911e4cc5e4..4ae70fc49dda 100644 --- a/services/preview/authorization/mgmt/2018-07-01-preview/authorization/CHANGELOG.md +++ b/services/preview/authorization/mgmt/2018-07-01-preview/authorization/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. Principal.MarshalJSON() ([]byte, error) diff --git a/services/preview/authorization/mgmt/2018-07-01-preview/authorization/_meta.json b/services/preview/authorization/mgmt/2018-07-01-preview/authorization/_meta.json index cea597927f71..3619c719c3ba 100644 --- a/services/preview/authorization/mgmt/2018-07-01-preview/authorization/_meta.json +++ b/services/preview/authorization/mgmt/2018-07-01-preview/authorization/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/authorization/resource-manager/readme.md", "tag": "package-2018-07-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-07-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/authorization/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-07-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/authorization/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/authorization/mgmt/2018-07-01-preview/authorization/models.go b/services/preview/authorization/mgmt/2018-07-01-preview/authorization/models.go index 573383427bfc..372185e3e843 100644 --- a/services/preview/authorization/mgmt/2018-07-01-preview/authorization/models.go +++ b/services/preview/authorization/mgmt/2018-07-01-preview/authorization/models.go @@ -720,6 +720,12 @@ type Principal struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Principal. +func (p Principal) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProviderOperation operation type ProviderOperation struct { // Name - The operation name. diff --git a/services/preview/authorization/mgmt/2018-09-01-preview/authorization/CHANGELOG.md b/services/preview/authorization/mgmt/2018-09-01-preview/authorization/CHANGELOG.md index 52911e4cc5e4..4ae70fc49dda 100644 --- a/services/preview/authorization/mgmt/2018-09-01-preview/authorization/CHANGELOG.md +++ b/services/preview/authorization/mgmt/2018-09-01-preview/authorization/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. Principal.MarshalJSON() ([]byte, error) diff --git a/services/preview/authorization/mgmt/2018-09-01-preview/authorization/_meta.json b/services/preview/authorization/mgmt/2018-09-01-preview/authorization/_meta.json index 9d4f7bf3d7c7..5ab845b9d4a9 100644 --- a/services/preview/authorization/mgmt/2018-09-01-preview/authorization/_meta.json +++ b/services/preview/authorization/mgmt/2018-09-01-preview/authorization/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/authorization/resource-manager/readme.md", "tag": "package-2018-09-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-09-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/authorization/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-09-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/authorization/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/authorization/mgmt/2018-09-01-preview/authorization/models.go b/services/preview/authorization/mgmt/2018-09-01-preview/authorization/models.go index 1581f8a7163f..f4fb758e8ad7 100644 --- a/services/preview/authorization/mgmt/2018-09-01-preview/authorization/models.go +++ b/services/preview/authorization/mgmt/2018-09-01-preview/authorization/models.go @@ -720,6 +720,12 @@ type Principal struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Principal. +func (p Principal) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProviderOperation operation type ProviderOperation struct { // Name - The operation name. diff --git a/services/preview/authorization/mgmt/2020-04-01-preview/authorization/CHANGELOG.md b/services/preview/authorization/mgmt/2020-04-01-preview/authorization/CHANGELOG.md index 717ea072cdde..52911e4cc5e4 100644 --- a/services/preview/authorization/mgmt/2020-04-01-preview/authorization/CHANGELOG.md +++ b/services/preview/authorization/mgmt/2020-04-01-preview/authorization/CHANGELOG.md @@ -1,103 +1,2 @@ # Change History -## Breaking Changes - -### Struct Changes - -#### Removed Structs - -1. CustomErrorResponse - -### Signature Changes - -#### Funcs - -1. RoleAssignmentsClient.Delete - - Params - - From: context.Context, string, string - - To: context.Context, string, string, string -1. RoleAssignmentsClient.DeleteByID - - Params - - From: context.Context, string - - To: context.Context, string, string -1. RoleAssignmentsClient.DeleteByIDPreparer - - Params - - From: context.Context, string - - To: context.Context, string, string -1. RoleAssignmentsClient.DeletePreparer - - Params - - From: context.Context, string, string - - To: context.Context, string, string, string -1. RoleAssignmentsClient.Get - - Params - - From: context.Context, string, string - - To: context.Context, string, string, string -1. RoleAssignmentsClient.GetByID - - Params - - From: context.Context, string - - To: context.Context, string, string -1. RoleAssignmentsClient.GetByIDPreparer - - Params - - From: context.Context, string - - To: context.Context, string, string -1. RoleAssignmentsClient.GetPreparer - - Params - - From: context.Context, string, string - - To: context.Context, string, string, string -1. RoleAssignmentsClient.List - - Params - - From: context.Context, string - - To: context.Context, string, string -1. RoleAssignmentsClient.ListComplete - - Params - - From: context.Context, string - - To: context.Context, string, string -1. RoleAssignmentsClient.ListForResource - - Params - - From: context.Context, string, string, string, string, string, string - - To: context.Context, string, string, string, string, string, string, string -1. RoleAssignmentsClient.ListForResourceComplete - - Params - - From: context.Context, string, string, string, string, string, string - - To: context.Context, string, string, string, string, string, string, string -1. RoleAssignmentsClient.ListForResourceGroup - - Params - - From: context.Context, string, string - - To: context.Context, string, string, string -1. RoleAssignmentsClient.ListForResourceGroupComplete - - Params - - From: context.Context, string, string - - To: context.Context, string, string, string -1. RoleAssignmentsClient.ListForResourceGroupPreparer - - Params - - From: context.Context, string, string - - To: context.Context, string, string, string -1. RoleAssignmentsClient.ListForResourcePreparer - - Params - - From: context.Context, string, string, string, string, string, string - - To: context.Context, string, string, string, string, string, string, string -1. RoleAssignmentsClient.ListForScope - - Params - - From: context.Context, string, string - - To: context.Context, string, string, string -1. RoleAssignmentsClient.ListForScopeComplete - - Params - - From: context.Context, string, string - - To: context.Context, string, string, string -1. RoleAssignmentsClient.ListForScopePreparer - - Params - - From: context.Context, string, string - - To: context.Context, string, string, string -1. RoleAssignmentsClient.ListPreparer - - Params - - From: context.Context, string - - To: context.Context, string, string - -## Additive Changes - -### New Funcs - -1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) -1. ErrorDetail.MarshalJSON() ([]byte, error) -1. Principal.MarshalJSON() ([]byte, error) -1. RoleAssignmentMetricsResult.MarshalJSON() ([]byte, error) diff --git a/services/preview/automanage/mgmt/2020-06-30-preview/automanage/CHANGELOG.md b/services/preview/automanage/mgmt/2020-06-30-preview/automanage/CHANGELOG.md index 52911e4cc5e4..e33c6dc1456d 100644 --- a/services/preview/automanage/mgmt/2020-06-30-preview/automanage/CHANGELOG.md +++ b/services/preview/automanage/mgmt/2020-06-30-preview/automanage/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ConfigurationProfileAssignmentCompliance.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorDetail.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/automanage/mgmt/2020-06-30-preview/automanage/_meta.json b/services/preview/automanage/mgmt/2020-06-30-preview/automanage/_meta.json index f6d1583f367c..9f388dd5f86e 100644 --- a/services/preview/automanage/mgmt/2020-06-30-preview/automanage/_meta.json +++ b/services/preview/automanage/mgmt/2020-06-30-preview/automanage/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/automanage/resource-manager/readme.md", "tag": "package-2020-06-30-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-06-30-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/automanage/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-06-30-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/automanage/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/automanage/mgmt/2020-06-30-preview/automanage/models.go b/services/preview/automanage/mgmt/2020-06-30-preview/automanage/models.go index e345add8a69c..ab407e4bbb3a 100644 --- a/services/preview/automanage/mgmt/2020-06-30-preview/automanage/models.go +++ b/services/preview/automanage/mgmt/2020-06-30-preview/automanage/models.go @@ -107,6 +107,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConfigurationProfileAssignment configuration profile assignment is an association between a VM and // automanage profile configuration. type ConfigurationProfileAssignment struct { @@ -136,6 +142,12 @@ type ConfigurationProfileAssignmentCompliance struct { UpdateStatus UpdateStatus `json:"updateStatus,omitempty"` } +// MarshalJSON is the custom marshaler for ConfigurationProfileAssignmentCompliance. +func (cpac ConfigurationProfileAssignmentCompliance) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConfigurationProfileAssignmentList the response of the list configuration profile assignment operation. type ConfigurationProfileAssignmentList struct { autorest.Response `json:"-"` @@ -326,6 +338,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetail the error detail. type ErrorDetail struct { // Code - READ-ONLY; The error code. @@ -340,6 +358,12 @@ type ErrorDetail struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetail. +func (ed ErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.). type ErrorResponse struct { @@ -464,6 +488,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -474,6 +504,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource type TrackedResource struct { // Tags - Resource tags. diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/CHANGELOG.md b/services/preview/automation/mgmt/2017-05-15-preview/automation/CHANGELOG.md index 52911e4cc5e4..be384208d7a5 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/CHANGELOG.md +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/CHANGELOG.md @@ -1,2 +1,13 @@ # Change History +## Additive Changes + +### New Funcs + +1. JobNavigation.MarshalJSON() ([]byte, error) +1. Key.MarshalJSON() ([]byte, error) +1. LinkedWorkspace.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. Statistics.MarshalJSON() ([]byte, error) +1. UpdateConfigurationNavigation.MarshalJSON() ([]byte, error) diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/_meta.json b/services/preview/automation/mgmt/2017-05-15-preview/automation/_meta.json index 60c255080148..af6dd2567de0 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/_meta.json +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/automation/resource-manager/readme.md", "tag": "package-2017-05-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-05-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/automation/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-05-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/automation/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/models.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/models.go index 8e8f8c21de56..cff5a3424011 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/models.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/models.go @@ -4689,6 +4689,12 @@ type JobNavigation struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for JobNavigation. +func (jn JobNavigation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobProperties definition of job properties. type JobProperties struct { // Runbook - Gets or sets the runbook. @@ -5368,6 +5374,12 @@ type Key struct { Value *string `json:"Value,omitempty"` } +// MarshalJSON is the custom marshaler for Key. +func (kVar Key) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // KeyListResult ... type KeyListResult struct { autorest.Response `json:"-"` @@ -5382,6 +5394,12 @@ type LinkedWorkspace struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for LinkedWorkspace. +func (lw LinkedWorkspace) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LinuxProperties linux specific update configuration. type LinuxProperties struct { // IncludedPackageClassifications - Update classifications included in the software update configuration. Possible values include: 'Unclassified', 'Critical', 'Security', 'Other' @@ -5919,6 +5937,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReadCloser ... type ReadCloser struct { autorest.Response `json:"-"` @@ -5935,6 +5959,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RunAsCredentialAssociationProperty definition of RunAs credential to use for hybrid worker. type RunAsCredentialAssociationProperty struct { // Name - Gets or sets the name of the credential. @@ -8682,6 +8712,12 @@ type Statistics struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for Statistics. +func (s Statistics) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StatisticsListResult the response model for the list statistics operation. type StatisticsListResult struct { autorest.Response `json:"-"` @@ -8945,6 +8981,12 @@ type UpdateConfigurationNavigation struct { Name *string `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for UpdateConfigurationNavigation. +func (ucn UpdateConfigurationNavigation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage definition of Usage. type Usage struct { // ID - Gets or sets the id of the resource. diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/CHANGELOG.md b/services/preview/automation/mgmt/2018-01-15-preview/automation/CHANGELOG.md index 52911e4cc5e4..be384208d7a5 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/CHANGELOG.md +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/CHANGELOG.md @@ -1,2 +1,13 @@ # Change History +## Additive Changes + +### New Funcs + +1. JobNavigation.MarshalJSON() ([]byte, error) +1. Key.MarshalJSON() ([]byte, error) +1. LinkedWorkspace.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. Statistics.MarshalJSON() ([]byte, error) +1. UpdateConfigurationNavigation.MarshalJSON() ([]byte, error) diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/_meta.json b/services/preview/automation/mgmt/2018-01-15-preview/automation/_meta.json index c23198f97ebe..92758f736020 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/_meta.json +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/automation/resource-manager/readme.md", "tag": "package-2018-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/automation/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/automation/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/models.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/models.go index 230871e10a20..127c2c27849b 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/models.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/models.go @@ -5092,6 +5092,12 @@ type JobNavigation struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for JobNavigation. +func (jn JobNavigation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobProperties definition of job properties. type JobProperties struct { // Runbook - Gets or sets the runbook. @@ -5771,6 +5777,12 @@ type Key struct { Value *string `json:"Value,omitempty"` } +// MarshalJSON is the custom marshaler for Key. +func (kVar Key) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // KeyListResult ... type KeyListResult struct { autorest.Response `json:"-"` @@ -5785,6 +5797,12 @@ type LinkedWorkspace struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for LinkedWorkspace. +func (lw LinkedWorkspace) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LinuxProperties linux specific update configuration. type LinuxProperties struct { // IncludedPackageClassifications - Update classifications included in the software update configuration. Possible values include: 'Unclassified', 'Critical', 'Security', 'Other' @@ -6344,6 +6362,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReadCloser ... type ReadCloser struct { autorest.Response `json:"-"` @@ -6360,6 +6384,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RunAsCredentialAssociationProperty definition of RunAs credential to use for hybrid worker. type RunAsCredentialAssociationProperty struct { // Name - Gets or sets the name of the credential. @@ -9107,6 +9137,12 @@ type Statistics struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for Statistics. +func (s Statistics) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StatisticsListResult the response model for the list statistics operation. type StatisticsListResult struct { autorest.Response `json:"-"` @@ -9370,6 +9406,12 @@ type UpdateConfigurationNavigation struct { Name *string `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for UpdateConfigurationNavigation. +func (ucn UpdateConfigurationNavigation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage definition of Usage. type Usage struct { // ID - Gets or sets the id of the resource. diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/CHANGELOG.md b/services/preview/automation/mgmt/2018-06-30-preview/automation/CHANGELOG.md index 52911e4cc5e4..be384208d7a5 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/CHANGELOG.md +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/CHANGELOG.md @@ -1,2 +1,13 @@ # Change History +## Additive Changes + +### New Funcs + +1. JobNavigation.MarshalJSON() ([]byte, error) +1. Key.MarshalJSON() ([]byte, error) +1. LinkedWorkspace.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. Statistics.MarshalJSON() ([]byte, error) +1. UpdateConfigurationNavigation.MarshalJSON() ([]byte, error) diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/_meta.json b/services/preview/automation/mgmt/2018-06-30-preview/automation/_meta.json index 7e50d61d10e2..d41852a8336f 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/_meta.json +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/automation/resource-manager/readme.md", "tag": "package-2018-06-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-06-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/automation/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-06-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/automation/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/models.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/models.go index abb6447349a1..0835ff70f645 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/models.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/models.go @@ -5092,6 +5092,12 @@ type JobNavigation struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for JobNavigation. +func (jn JobNavigation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobProperties definition of job properties. type JobProperties struct { // Runbook - Gets or sets the runbook. @@ -5771,6 +5777,12 @@ type Key struct { Value *string `json:"Value,omitempty"` } +// MarshalJSON is the custom marshaler for Key. +func (kVar Key) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // KeyListResult ... type KeyListResult struct { autorest.Response `json:"-"` @@ -5785,6 +5797,12 @@ type LinkedWorkspace struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for LinkedWorkspace. +func (lw LinkedWorkspace) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LinuxProperties linux specific update configuration. type LinuxProperties struct { // IncludedPackageClassifications - Update classifications included in the software update configuration. Possible values include: 'Unclassified', 'Critical', 'Security', 'Other' @@ -6344,6 +6362,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PythonPackageCreateParameters the parameters supplied to the create or update module operation. type PythonPackageCreateParameters struct { // PythonPackageCreateProperties - Gets or sets the module create properties. @@ -6434,6 +6458,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RunAsCredentialAssociationProperty definition of RunAs credential to use for hybrid worker. type RunAsCredentialAssociationProperty struct { // Name - Gets or sets the name of the credential. @@ -9181,6 +9211,12 @@ type Statistics struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for Statistics. +func (s Statistics) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StatisticsListResult the response model for the list statistics operation. type StatisticsListResult struct { autorest.Response `json:"-"` @@ -9444,6 +9480,12 @@ type UpdateConfigurationNavigation struct { Name *string `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for UpdateConfigurationNavigation. +func (ucn UpdateConfigurationNavigation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage definition of Usage. type Usage struct { // ID - Gets or sets the id of the resource. diff --git a/services/preview/avs/mgmt/2020-07-17-preview/avs/CHANGELOG.md b/services/preview/avs/mgmt/2020-07-17-preview/avs/CHANGELOG.md index 52911e4cc5e4..7083846f37ee 100644 --- a/services/preview/avs/mgmt/2020-07-17-preview/avs/CHANGELOG.md +++ b/services/preview/avs/mgmt/2020-07-17-preview/avs/CHANGELOG.md @@ -1,2 +1,29 @@ # Change History +## Additive Changes + +### New Funcs + +1. AdminCredentials.MarshalJSON() ([]byte, error) +1. Circuit.MarshalJSON() ([]byte, error) +1. ClusterList.MarshalJSON() ([]byte, error) +1. Endpoints.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. ExpressRouteAuthorizationList.MarshalJSON() ([]byte, error) +1. ExpressRouteAuthorizationProperties.MarshalJSON() ([]byte, error) +1. GlobalReachConnectionList.MarshalJSON() ([]byte, error) +1. HcxEnterpriseSiteList.MarshalJSON() ([]byte, error) +1. HcxEnterpriseSiteProperties.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationList.MarshalJSON() ([]byte, error) +1. PrivateCloudList.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. Trial.MarshalJSON() ([]byte, error) +1. WorkloadNetworkDhcpList.MarshalJSON() ([]byte, error) +1. WorkloadNetworkGatewayList.MarshalJSON() ([]byte, error) +1. WorkloadNetworkPortMirroringList.MarshalJSON() ([]byte, error) +1. WorkloadNetworkSegmentsList.MarshalJSON() ([]byte, error) +1. WorkloadNetworkVMGroupsList.MarshalJSON() ([]byte, error) +1. WorkloadNetworkVirtualMachinesList.MarshalJSON() ([]byte, error) diff --git a/services/preview/avs/mgmt/2020-07-17-preview/avs/_meta.json b/services/preview/avs/mgmt/2020-07-17-preview/avs/_meta.json index d954530701ee..8c807c43c1a5 100644 --- a/services/preview/avs/mgmt/2020-07-17-preview/avs/_meta.json +++ b/services/preview/avs/mgmt/2020-07-17-preview/avs/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/vmware/resource-manager/readme.md", "tag": "package-2020-07-17-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-07-17-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/vmware/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-07-17-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/vmware/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/avs/mgmt/2020-07-17-preview/avs/models.go b/services/preview/avs/mgmt/2020-07-17-preview/avs/models.go index 226c9743c717..76c5ffc1d85f 100644 --- a/services/preview/avs/mgmt/2020-07-17-preview/avs/models.go +++ b/services/preview/avs/mgmt/2020-07-17-preview/avs/models.go @@ -32,6 +32,12 @@ type AdminCredentials struct { VcenterPassword *string `json:"vcenterPassword,omitempty"` } +// MarshalJSON is the custom marshaler for AdminCredentials. +func (ac AdminCredentials) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AuthorizationsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type AuthorizationsCreateOrUpdateFuture struct { @@ -124,6 +130,12 @@ type Circuit struct { ExpressRoutePrivatePeeringID *string `json:"expressRoutePrivatePeeringID,omitempty"` } +// MarshalJSON is the custom marshaler for Circuit. +func (c Circuit) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError API error response type CloudError struct { // Error - An error returned by the API @@ -226,6 +238,12 @@ type ClusterList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ClusterList. +func (cl ClusterList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ClusterListIterator provides access to a complete listing of Cluster values. type ClusterListIterator struct { i int @@ -596,6 +614,12 @@ type Endpoints struct { HcxCloudManager *string `json:"hcxCloudManager,omitempty"` } +// MarshalJSON is the custom marshaler for Endpoints. +func (e Endpoints) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorAdditionalInfo the resource management error additional info. type ErrorAdditionalInfo struct { // Type - READ-ONLY; The additional info type. @@ -604,6 +628,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.) type ErrorResponse struct { @@ -619,6 +649,12 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRouteAuthorization expressRoute Circuit Authorization type ExpressRouteAuthorization struct { autorest.Response `json:"-"` @@ -698,6 +734,12 @@ type ExpressRouteAuthorizationList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRouteAuthorizationList. +func (eral ExpressRouteAuthorizationList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExpressRouteAuthorizationListIterator provides access to a complete listing of ExpressRouteAuthorization // values. type ExpressRouteAuthorizationListIterator struct { @@ -859,6 +901,12 @@ type ExpressRouteAuthorizationProperties struct { ExpressRouteAuthorizationKey *string `json:"expressRouteAuthorizationKey,omitempty"` } +// MarshalJSON is the custom marshaler for ExpressRouteAuthorizationProperties. +func (erap ExpressRouteAuthorizationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GlobalReachConnection a global reach connection resource type GlobalReachConnection struct { autorest.Response `json:"-"` @@ -941,6 +989,12 @@ type GlobalReachConnectionList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for GlobalReachConnectionList. +func (grcl GlobalReachConnectionList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GlobalReachConnectionListIterator provides access to a complete listing of GlobalReachConnection values. type GlobalReachConnectionListIterator struct { i int @@ -1276,6 +1330,12 @@ type HcxEnterpriseSiteList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for HcxEnterpriseSiteList. +func (hesl HcxEnterpriseSiteList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HcxEnterpriseSiteListIterator provides access to a complete listing of HcxEnterpriseSite values. type HcxEnterpriseSiteListIterator struct { i int @@ -1434,6 +1494,12 @@ type HcxEnterpriseSiteProperties struct { Status HcxEnterpriseSiteStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for HcxEnterpriseSiteProperties. +func (hesp HcxEnterpriseSiteProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IdentitySource vCenter Single Sign On Identity Source type IdentitySource struct { // Name - The name of the identity source @@ -1568,6 +1634,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationList pageable list of operations type OperationList struct { autorest.Response `json:"-"` @@ -1577,6 +1649,12 @@ type OperationList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationList. +func (ol OperationList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListIterator provides access to a complete listing of Operation values. type OperationListIterator struct { i int @@ -1857,6 +1935,12 @@ type PrivateCloudList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateCloudList. +func (pcl PrivateCloudList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateCloudListIterator provides access to a complete listing of PrivateCloud values. type PrivateCloudListIterator struct { i int @@ -2266,6 +2350,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Quota subscription quotas type Quota struct { autorest.Response `json:"-"` @@ -2291,6 +2381,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceSpecification service specification payload type ServiceSpecification struct { // LogSpecifications - Specifications of the Log for Azure Monitoring @@ -2340,6 +2436,12 @@ type Trial struct { AvailableHosts *int32 `json:"availableHosts,omitempty"` } +// MarshalJSON is the custom marshaler for Trial. +func (t Trial) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WorkloadNetworkDhcp NSX DHCP type WorkloadNetworkDhcp struct { autorest.Response `json:"-"` @@ -2518,6 +2620,12 @@ type WorkloadNetworkDhcpList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for WorkloadNetworkDhcpList. +func (wndl WorkloadNetworkDhcpList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WorkloadNetworkDhcpListIterator provides access to a complete listing of WorkloadNetworkDhcp values. type WorkloadNetworkDhcpListIterator struct { i int @@ -2865,6 +2973,12 @@ type WorkloadNetworkGatewayList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for WorkloadNetworkGatewayList. +func (wngl WorkloadNetworkGatewayList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WorkloadNetworkGatewayListIterator provides access to a complete listing of WorkloadNetworkGateway // values. type WorkloadNetworkGatewayListIterator struct { @@ -3115,6 +3229,12 @@ type WorkloadNetworkPortMirroringList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for WorkloadNetworkPortMirroringList. +func (wnpml WorkloadNetworkPortMirroringList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WorkloadNetworkPortMirroringListIterator provides access to a complete listing of // WorkloadNetworkPortMirroring values. type WorkloadNetworkPortMirroringListIterator struct { @@ -3749,6 +3869,12 @@ type WorkloadNetworkSegmentsList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for WorkloadNetworkSegmentsList. +func (wnsl WorkloadNetworkSegmentsList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WorkloadNetworkSegmentsListIterator provides access to a complete listing of WorkloadNetworkSegment // values. type WorkloadNetworkSegmentsListIterator struct { @@ -4179,6 +4305,12 @@ type WorkloadNetworkVirtualMachinesList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for WorkloadNetworkVirtualMachinesList. +func (wnvml WorkloadNetworkVirtualMachinesList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WorkloadNetworkVirtualMachinesListIterator provides access to a complete listing of // WorkloadNetworkVirtualMachine values. type WorkloadNetworkVirtualMachinesListIterator struct { @@ -4441,6 +4573,12 @@ type WorkloadNetworkVMGroupsList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for WorkloadNetworkVMGroupsList. +func (wnvgl WorkloadNetworkVMGroupsList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WorkloadNetworkVMGroupsListIterator provides access to a complete listing of WorkloadNetworkVMGroup // values. type WorkloadNetworkVMGroupsListIterator struct { diff --git a/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/CHANGELOG.md b/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/CHANGELOG.md index 52911e4cc5e4..5aaa77ec6ba5 100644 --- a/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/CHANGELOG.md +++ b/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. GuestUsagesResourceList.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) diff --git a/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/_meta.json b/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/_meta.json index ab120ed78534..56bd1093440f 100644 --- a/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/_meta.json +++ b/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/_meta.json @@ -2,9 +2,9 @@ "commit": "3a3a9452f965a227ce43e6b545035b99dd175f23", "readme": "/_/azure-rest-api-specs/specification/cpim/resource-manager/readme.md", "tag": "package-2020-05-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-05-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cpim/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-05-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cpim/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/models.go b/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/models.go index bff7f971a469..af25fbb58b91 100644 --- a/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/models.go +++ b/services/preview/azureadb2c/mgmt/2020-05-01-preview/azureadb2c/models.go @@ -27,6 +27,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.) type ErrorResponse struct { @@ -42,6 +48,12 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GuestUsagesResource guest Usages Resource type GuestUsagesResource struct { autorest.Response `json:"-"` @@ -150,6 +162,12 @@ type GuestUsagesResourceList struct { Value *[]GuestUsagesResource `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for GuestUsagesResourceList. +func (gurl GuestUsagesResourceList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GuestUsagesResourcePatch guest Usages Resource for Patch type GuestUsagesResourcePatch struct { // Tags - Key-value pairs of additional resource provisioning properties. @@ -215,3 +233,9 @@ type OperationListResult struct { // Value - READ-ONLY; List of cpim service operations supported by the Microsoft.AzureActiveDirectory resource provider. Value *[]Operation `json:"value,omitempty"` } + +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/CHANGELOG.md b/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/CHANGELOG.md index 52911e4cc5e4..baacfb8e5631 100644 --- a/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/CHANGELOG.md +++ b/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/CHANGELOG.md @@ -1,2 +1,15 @@ # Change History +## Additive Changes + +### New Funcs + +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. PostgresInstanceListResult.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. SQLManagedInstanceListResult.MarshalJSON() ([]byte, error) +1. SQLServerInstanceListResult.MarshalJSON() ([]byte, error) +1. SQLServerListResult.MarshalJSON() ([]byte, error) +1. SQLServerRegistrationListResult.MarshalJSON() ([]byte, error) diff --git a/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/_meta.json b/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/_meta.json index b71e53faf404..41cc2889718c 100644 --- a/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/_meta.json +++ b/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/azuredata/resource-manager/readme.md", "tag": "package-2017-03-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-03-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/azuredata/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-03-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/azuredata/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/models.go b/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/models.go index 581458ccca41..e02d0527812f 100644 --- a/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/models.go +++ b/services/preview/azuredata/mgmt/2017-03-01-preview/azuredata/models.go @@ -241,6 +241,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (od OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of the request to list SQL operations. type OperationListResult struct { autorest.Response `json:"-"` @@ -250,6 +256,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -694,6 +706,12 @@ type PostgresInstanceListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PostgresInstanceListResult. +func (pilr PostgresInstanceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PostgresInstanceListResultIterator provides access to a complete listing of PostgresInstance values. type PostgresInstanceListResultIterator struct { i int @@ -881,6 +899,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource ... type Resource struct { // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -891,6 +915,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceModelWithAllowedPropertySet the resource model definition containing the full set of allowed // properties for a resource. Except properties bag, there cannot be a top level property outside of this // set. @@ -1134,6 +1164,12 @@ type SQLManagedInstanceListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SQLManagedInstanceListResult. +func (smilr SQLManagedInstanceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLManagedInstanceListResultIterator provides access to a complete listing of SQLManagedInstance values. type SQLManagedInstanceListResultIterator struct { i int @@ -1509,6 +1545,12 @@ type SQLServerInstanceListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SQLServerInstanceListResult. +func (ssilr SQLServerInstanceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLServerInstanceListResultIterator provides access to a complete listing of SQLServerInstance values. type SQLServerInstanceListResultIterator struct { i int @@ -1722,6 +1764,12 @@ type SQLServerListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SQLServerListResult. +func (sslr SQLServerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLServerListResultIterator provides access to a complete listing of SQLServer values. type SQLServerListResultIterator struct { i int @@ -2007,6 +2055,12 @@ type SQLServerRegistrationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SQLServerRegistrationListResult. +func (ssrlr SQLServerRegistrationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLServerRegistrationListResultIterator provides access to a complete listing of SQLServerRegistration // values. type SQLServerRegistrationListResultIterator struct { diff --git a/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/CHANGELOG.md b/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/CHANGELOG.md index 52911e4cc5e4..baacfb8e5631 100644 --- a/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/CHANGELOG.md +++ b/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/CHANGELOG.md @@ -1,2 +1,15 @@ # Change History +## Additive Changes + +### New Funcs + +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. PostgresInstanceListResult.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. SQLManagedInstanceListResult.MarshalJSON() ([]byte, error) +1. SQLServerInstanceListResult.MarshalJSON() ([]byte, error) +1. SQLServerListResult.MarshalJSON() ([]byte, error) +1. SQLServerRegistrationListResult.MarshalJSON() ([]byte, error) diff --git a/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/_meta.json b/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/_meta.json index 92ffc016767c..82afebaff6fd 100644 --- a/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/_meta.json +++ b/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/azuredata/resource-manager/readme.md", "tag": "package-preview-2019-07", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-preview-2019-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/azuredata/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-preview-2019-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/azuredata/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/models.go b/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/models.go index 4138f9431c01..d247578674c5 100644 --- a/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/models.go +++ b/services/preview/azuredata/mgmt/2019-07-24-preview/azuredata/models.go @@ -241,6 +241,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (od OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of the request to list SQL operations. type OperationListResult struct { autorest.Response `json:"-"` @@ -250,6 +256,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -694,6 +706,12 @@ type PostgresInstanceListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PostgresInstanceListResult. +func (pilr PostgresInstanceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PostgresInstanceListResultIterator provides access to a complete listing of PostgresInstance values. type PostgresInstanceListResultIterator struct { i int @@ -881,6 +899,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource ... type Resource struct { // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -891,6 +915,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceModelWithAllowedPropertySet the resource model definition containing the full set of allowed // properties for a resource. Except properties bag, there cannot be a top level property outside of this // set. @@ -1134,6 +1164,12 @@ type SQLManagedInstanceListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SQLManagedInstanceListResult. +func (smilr SQLManagedInstanceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLManagedInstanceListResultIterator provides access to a complete listing of SQLManagedInstance values. type SQLManagedInstanceListResultIterator struct { i int @@ -1509,6 +1545,12 @@ type SQLServerInstanceListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SQLServerInstanceListResult. +func (ssilr SQLServerInstanceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLServerInstanceListResultIterator provides access to a complete listing of SQLServerInstance values. type SQLServerInstanceListResultIterator struct { i int @@ -1722,6 +1764,12 @@ type SQLServerListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SQLServerListResult. +func (sslr SQLServerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLServerListResultIterator provides access to a complete listing of SQLServer values. type SQLServerListResultIterator struct { i int @@ -2007,6 +2055,12 @@ type SQLServerRegistrationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SQLServerRegistrationListResult. +func (ssrlr SQLServerRegistrationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLServerRegistrationListResultIterator provides access to a complete listing of SQLServerRegistration // values. type SQLServerRegistrationListResultIterator struct { diff --git a/services/preview/azurestackhci/mgmt/2020-03-01-preview/azurestackhci/CHANGELOG.md b/services/preview/azurestackhci/mgmt/2020-03-01-preview/azurestackhci/CHANGELOG.md index 52911e4cc5e4..84d205125a1c 100644 --- a/services/preview/azurestackhci/mgmt/2020-03-01-preview/azurestackhci/CHANGELOG.md +++ b/services/preview/azurestackhci/mgmt/2020-03-01-preview/azurestackhci/CHANGELOG.md @@ -1,2 +1,13 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ClusterNode.MarshalJSON() ([]byte, error) +1. ClusterReportedProperties.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorDetail.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/azurestackhci/mgmt/2020-03-01-preview/azurestackhci/_meta.json b/services/preview/azurestackhci/mgmt/2020-03-01-preview/azurestackhci/_meta.json index 5475eaf55c67..35e817f47bec 100644 --- a/services/preview/azurestackhci/mgmt/2020-03-01-preview/azurestackhci/_meta.json +++ b/services/preview/azurestackhci/mgmt/2020-03-01-preview/azurestackhci/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/azurestackhci/resource-manager/readme.md", "tag": "package-2020-03-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-03-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/azurestackhci/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-03-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/azurestackhci/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/azurestackhci/mgmt/2020-03-01-preview/azurestackhci/models.go b/services/preview/azurestackhci/mgmt/2020-03-01-preview/azurestackhci/models.go index d893438b8caf..2bf50026ac47 100644 --- a/services/preview/azurestackhci/mgmt/2020-03-01-preview/azurestackhci/models.go +++ b/services/preview/azurestackhci/mgmt/2020-03-01-preview/azurestackhci/models.go @@ -41,6 +41,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Cluster cluster details. type Cluster struct { autorest.Response `json:"-"` @@ -332,6 +338,12 @@ type ClusterNode struct { MemoryInGiB *float64 `json:"memoryInGiB,omitempty"` } +// MarshalJSON is the custom marshaler for ClusterNode. +func (cn ClusterNode) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ClusterProperties cluster properties. type ClusterProperties struct { // ProvisioningState - READ-ONLY; Provisioning state. Possible values include: 'Succeeded', 'Failed', 'Canceled', 'Accepted', 'Provisioning' @@ -387,6 +399,12 @@ type ClusterReportedProperties struct { LastUpdated *date.Time `json:"lastUpdated,omitempty"` } +// MarshalJSON is the custom marshaler for ClusterReportedProperties. +func (crp ClusterReportedProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ClusterUpdate cluster details to update. type ClusterUpdate struct { // Tags - Resource tags. @@ -410,6 +428,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetail the error detail. type ErrorDetail struct { // Code - READ-ONLY; The error code. @@ -424,6 +448,12 @@ type ErrorDetail struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetail. +func (ed ErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.). type ErrorResponse struct { @@ -468,6 +498,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -478,6 +514,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource // which has 'tags' and a 'location' type TrackedResource struct { diff --git a/services/preview/baremetalinfrastructure/mgmt/2020-08-06-preview/baremetalinfrastructure/CHANGELOG.md b/services/preview/baremetalinfrastructure/mgmt/2020-08-06-preview/baremetalinfrastructure/CHANGELOG.md index 52911e4cc5e4..f66af821ec3d 100644 --- a/services/preview/baremetalinfrastructure/mgmt/2020-08-06-preview/baremetalinfrastructure/CHANGELOG.md +++ b/services/preview/baremetalinfrastructure/mgmt/2020-08-06-preview/baremetalinfrastructure/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. Display.MarshalJSON() ([]byte, error) +1. ErrorDefinition.MarshalJSON() ([]byte, error) +1. HardwareProfile.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/baremetalinfrastructure/mgmt/2020-08-06-preview/baremetalinfrastructure/_meta.json b/services/preview/baremetalinfrastructure/mgmt/2020-08-06-preview/baremetalinfrastructure/_meta.json index 52d1ae3f4608..56bd46701020 100644 --- a/services/preview/baremetalinfrastructure/mgmt/2020-08-06-preview/baremetalinfrastructure/_meta.json +++ b/services/preview/baremetalinfrastructure/mgmt/2020-08-06-preview/baremetalinfrastructure/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/baremetalinfrastructure/resource-manager/readme.md", "tag": "package-2020-08-06-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-08-06-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/baremetalinfrastructure/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-08-06-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/baremetalinfrastructure/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/baremetalinfrastructure/mgmt/2020-08-06-preview/baremetalinfrastructure/models.go b/services/preview/baremetalinfrastructure/mgmt/2020-08-06-preview/baremetalinfrastructure/models.go index 161a92e221ee..a3badb17b23a 100644 --- a/services/preview/baremetalinfrastructure/mgmt/2020-08-06-preview/baremetalinfrastructure/models.go +++ b/services/preview/baremetalinfrastructure/mgmt/2020-08-06-preview/baremetalinfrastructure/models.go @@ -486,6 +486,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Disk specifies the disk information fo the AzureBareMetal instance type Disk struct { // Name - The disk name. @@ -522,6 +528,12 @@ type Display struct { Origin *string `json:"origin,omitempty"` } +// MarshalJSON is the custom marshaler for Display. +func (d Display) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDefinition error definition. type ErrorDefinition struct { // Code - READ-ONLY; Service specific error code which serves as the substatus for the HTTP error code. @@ -532,6 +544,12 @@ type ErrorDefinition struct { Details *[]ErrorDefinition `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDefinition. +func (ed ErrorDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse error response. type ErrorResponse struct { // Error - The error details. @@ -546,6 +564,12 @@ type HardwareProfile struct { AzureBareMetalInstanceSize AzureBareMetalInstanceSizeNamesEnum `json:"azureBareMetalInstanceSize,omitempty"` } +// MarshalJSON is the custom marshaler for HardwareProfile. +func (hp HardwareProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IPAddress specifies the IP address of the network interface. type IPAddress struct { // IPAddress - Specifies the IP address of the network interface. @@ -633,6 +657,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -643,6 +673,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Result sample result definition type Result struct { // SampleProperty - Sample property of type string diff --git a/services/preview/batchai/mgmt/2017-09-01-preview/batchai/_meta.json b/services/preview/batchai/mgmt/2017-09-01-preview/batchai/_meta.json index 83f50223a9dc..b72d06999326 100644 --- a/services/preview/batchai/mgmt/2017-09-01-preview/batchai/_meta.json +++ b/services/preview/batchai/mgmt/2017-09-01-preview/batchai/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/batchai/resource-manager/readme.md", "tag": "package-2017-09-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-09-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batchai/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-09-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/batchai/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/billing/mgmt/2017-02-27-preview/billing/CHANGELOG.md b/services/preview/billing/mgmt/2017-02-27-preview/billing/CHANGELOG.md index 52911e4cc5e4..a436ca8f7451 100644 --- a/services/preview/billing/mgmt/2017-02-27-preview/billing/CHANGELOG.md +++ b/services/preview/billing/mgmt/2017-02-27-preview/billing/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. DownloadURL.MarshalJSON() ([]byte, error) +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. InvoicesListResult.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/billing/mgmt/2017-02-27-preview/billing/_meta.json b/services/preview/billing/mgmt/2017-02-27-preview/billing/_meta.json index 7cab6a44c4b1..a78bc83149f7 100644 --- a/services/preview/billing/mgmt/2017-02-27-preview/billing/_meta.json +++ b/services/preview/billing/mgmt/2017-02-27-preview/billing/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/billing/resource-manager/readme.md", "tag": "package-2017-02-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-02-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/billing/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-02-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/billing/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/billing/mgmt/2017-02-27-preview/billing/models.go b/services/preview/billing/mgmt/2017-02-27-preview/billing/models.go index 7021c5b9a6ad..cb9da1fc22fd 100644 --- a/services/preview/billing/mgmt/2017-02-27-preview/billing/models.go +++ b/services/preview/billing/mgmt/2017-02-27-preview/billing/models.go @@ -27,6 +27,12 @@ type DownloadURL struct { URL *string `json:"url,omitempty"` } +// MarshalJSON is the custom marshaler for DownloadURL. +func (du DownloadURL) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetails the details of the error. type ErrorDetails struct { // Code - READ-ONLY; Error code. @@ -37,6 +43,12 @@ type ErrorDetails struct { Target *string `json:"target,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse error response indicates that the service is not able to process the incoming request. The // reason is provided in the error message. type ErrorResponse struct { @@ -144,6 +156,12 @@ type InvoicesListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for InvoicesListResult. +func (ilr InvoicesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InvoicesListResultIterator provides access to a complete listing of Invoice values. type InvoicesListResultIterator struct { i int @@ -321,6 +339,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of the request to list billing operations. It contains a list of operations // and a URL link to get the next set of results. type OperationListResult struct { @@ -331,6 +355,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -490,3 +520,9 @@ type Resource struct { // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } + +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/preview/billing/mgmt/2017-04-24-preview/billing/CHANGELOG.md b/services/preview/billing/mgmt/2017-04-24-preview/billing/CHANGELOG.md index 52911e4cc5e4..dca6eee2c150 100644 --- a/services/preview/billing/mgmt/2017-04-24-preview/billing/CHANGELOG.md +++ b/services/preview/billing/mgmt/2017-04-24-preview/billing/CHANGELOG.md @@ -1,2 +1,14 @@ # Change History +## Additive Changes + +### New Funcs + +1. DownloadURL.MarshalJSON() ([]byte, error) +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. InvoicesListResult.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. PeriodProperties.MarshalJSON() ([]byte, error) +1. PeriodsListResult.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/billing/mgmt/2017-04-24-preview/billing/_meta.json b/services/preview/billing/mgmt/2017-04-24-preview/billing/_meta.json index 8f8bc8a3c583..55a44b78479d 100644 --- a/services/preview/billing/mgmt/2017-04-24-preview/billing/_meta.json +++ b/services/preview/billing/mgmt/2017-04-24-preview/billing/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/billing/resource-manager/readme.md", "tag": "package-2017-04-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-04-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/billing/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-04-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/billing/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/billing/mgmt/2017-04-24-preview/billing/models.go b/services/preview/billing/mgmt/2017-04-24-preview/billing/models.go index b903a30de59a..5df633e02abf 100644 --- a/services/preview/billing/mgmt/2017-04-24-preview/billing/models.go +++ b/services/preview/billing/mgmt/2017-04-24-preview/billing/models.go @@ -27,6 +27,12 @@ type DownloadURL struct { URL *string `json:"url,omitempty"` } +// MarshalJSON is the custom marshaler for DownloadURL. +func (du DownloadURL) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetails the details of the error. type ErrorDetails struct { // Code - READ-ONLY; Error code. @@ -37,6 +43,12 @@ type ErrorDetails struct { Target *string `json:"target,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse error response indicates that the service is not able to process the incoming request. The // reason is provided in the error message. type ErrorResponse struct { @@ -147,6 +159,12 @@ type InvoicesListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for InvoicesListResult. +func (ilr InvoicesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InvoicesListResultIterator provides access to a complete listing of Invoice values. type InvoicesListResultIterator struct { i int @@ -324,6 +342,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result listing billing operations. It contains a list of operations and a URL link // to get the next set of results. type OperationListResult struct { @@ -334,6 +358,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -566,6 +596,12 @@ type PeriodProperties struct { InvoiceIds *[]string `json:"invoiceIds,omitempty"` } +// MarshalJSON is the custom marshaler for PeriodProperties. +func (pp PeriodProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PeriodsListResult result of listing billing periods. It contains a list of available billing periods in // reverse chronological order. type PeriodsListResult struct { @@ -576,6 +612,12 @@ type PeriodsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PeriodsListResult. +func (plr PeriodsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PeriodsListResultIterator provides access to a complete listing of Period values. type PeriodsListResultIterator struct { i int @@ -735,3 +777,9 @@ type Resource struct { // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } + +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/preview/billing/mgmt/2018-03-01-preview/billing/CHANGELOG.md b/services/preview/billing/mgmt/2018-03-01-preview/billing/CHANGELOG.md index 52911e4cc5e4..e48119a148f1 100644 --- a/services/preview/billing/mgmt/2018-03-01-preview/billing/CHANGELOG.md +++ b/services/preview/billing/mgmt/2018-03-01-preview/billing/CHANGELOG.md @@ -1,2 +1,16 @@ # Change History +## Additive Changes + +### New Funcs + +1. DownloadURL.MarshalJSON() ([]byte, error) +1. EnrollmentAccountListResult.MarshalJSON() ([]byte, error) +1. EnrollmentAccountProperties.MarshalJSON() ([]byte, error) +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. InvoicesListResult.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. PeriodProperties.MarshalJSON() ([]byte, error) +1. PeriodsListResult.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/billing/mgmt/2018-03-01-preview/billing/_meta.json b/services/preview/billing/mgmt/2018-03-01-preview/billing/_meta.json index 1b7e146ea551..2d5f1b1cd5bb 100644 --- a/services/preview/billing/mgmt/2018-03-01-preview/billing/_meta.json +++ b/services/preview/billing/mgmt/2018-03-01-preview/billing/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/billing/resource-manager/readme.md", "tag": "package-2018-03-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-03-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/billing/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-03-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/billing/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/billing/mgmt/2018-03-01-preview/billing/models.go b/services/preview/billing/mgmt/2018-03-01-preview/billing/models.go index 131ec0bb8dea..55d5db4fb42a 100644 --- a/services/preview/billing/mgmt/2018-03-01-preview/billing/models.go +++ b/services/preview/billing/mgmt/2018-03-01-preview/billing/models.go @@ -27,6 +27,12 @@ type DownloadURL struct { URL *string `json:"url,omitempty"` } +// MarshalJSON is the custom marshaler for DownloadURL. +func (du DownloadURL) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EnrollmentAccount an enrollment account resource. type EnrollmentAccount struct { autorest.Response `json:"-"` @@ -109,6 +115,12 @@ type EnrollmentAccountListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for EnrollmentAccountListResult. +func (ealr EnrollmentAccountListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EnrollmentAccountListResultIterator provides access to a complete listing of EnrollmentAccount values. type EnrollmentAccountListResultIterator struct { i int @@ -265,6 +277,12 @@ type EnrollmentAccountProperties struct { PrincipalName *string `json:"principalName,omitempty"` } +// MarshalJSON is the custom marshaler for EnrollmentAccountProperties. +func (eap EnrollmentAccountProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetails the details of the error. type ErrorDetails struct { // Code - READ-ONLY; Error code. @@ -275,6 +293,12 @@ type ErrorDetails struct { Target *string `json:"target,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse error response indicates that the service is not able to process the incoming request. The // reason is provided in the error message. type ErrorResponse struct { @@ -386,6 +410,12 @@ type InvoicesListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for InvoicesListResult. +func (ilr InvoicesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InvoicesListResultIterator provides access to a complete listing of Invoice values. type InvoicesListResultIterator struct { i int @@ -563,6 +593,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result listing billing operations. It contains a list of operations and a URL link // to get the next set of results. type OperationListResult struct { @@ -573,6 +609,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -806,6 +848,12 @@ type PeriodProperties struct { InvoiceIds *[]string `json:"invoiceIds,omitempty"` } +// MarshalJSON is the custom marshaler for PeriodProperties. +func (pp PeriodProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PeriodsListResult result of listing billing periods. It contains a list of available billing periods in // reverse chronological order. type PeriodsListResult struct { @@ -816,6 +864,12 @@ type PeriodsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PeriodsListResult. +func (plr PeriodsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PeriodsListResultIterator provides access to a complete listing of Period values. type PeriodsListResultIterator struct { i int @@ -975,3 +1029,9 @@ type Resource struct { // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } + +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/CHANGELOG.md b/services/preview/billing/mgmt/2018-11-01-preview/billing/CHANGELOG.md index 52911e4cc5e4..942f7d6660b8 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/CHANGELOG.md +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/CHANGELOG.md @@ -1,2 +1,41 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountListResult.MarshalJSON() ([]byte, error) +1. AgreementListResult.MarshalJSON() ([]byte, error) +1. AvailableBalanceProperties.MarshalJSON() ([]byte, error) +1. CustomerListResult.MarshalJSON() ([]byte, error) +1. DepartmentListResult.MarshalJSON() ([]byte, error) +1. DownloadProperties.MarshalJSON() ([]byte, error) +1. DownloadURL.MarshalJSON() ([]byte, error) +1. EnrollmentAccountListResult.MarshalJSON() ([]byte, error) +1. EnrollmentPolicies.MarshalJSON() ([]byte, error) +1. Error.MarshalJSON() ([]byte, error) +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. InvoiceListResult.MarshalJSON() ([]byte, error) +1. InvoiceSectionListResult.MarshalJSON() ([]byte, error) +1. InvoiceSummaryProperties.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. Participants.MarshalJSON() ([]byte, error) +1. PaymentMethodsListResult.MarshalJSON() ([]byte, error) +1. PaymentProperties.MarshalJSON() ([]byte, error) +1. PermissionsListResult.MarshalJSON() ([]byte, error) +1. PermissionsProperties.MarshalJSON() ([]byte, error) +1. ProductsListResult.MarshalJSON() ([]byte, error) +1. ProfileListResult.MarshalJSON() ([]byte, error) +1. PropertySummary.MarshalJSON() ([]byte, error) +1. RecipientTransferDetailsListResult.MarshalJSON() ([]byte, error) +1. RecipientTransferProperties.MarshalJSON() ([]byte, error) +1. Reseller.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. RoleAssignmentListResult.MarshalJSON() ([]byte, error) +1. RoleAssignmentProperties.MarshalJSON() ([]byte, error) +1. RoleDefinitionListResult.MarshalJSON() ([]byte, error) +1. SubscriptionsListResult.MarshalJSON() ([]byte, error) +1. TransactionsListResult.MarshalJSON() ([]byte, error) +1. TransferDetailsListResult.MarshalJSON() ([]byte, error) +1. TransferProperties.MarshalJSON() ([]byte, error) diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/_meta.json b/services/preview/billing/mgmt/2018-11-01-preview/billing/_meta.json index 2d14b43b943b..4a279b25c1b9 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/_meta.json +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/billing/resource-manager/readme.md", "tag": "package-2018-11-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-11-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/billing/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-11-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/billing/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/models.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/models.go index 2db09fec38fb..fa592ad1c24e 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/models.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/models.go @@ -148,6 +148,12 @@ type AccountListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for AccountListResult. +func (alr AccountListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListResultIterator provides access to a complete listing of Account values. type AccountListResultIterator struct { i int @@ -533,6 +539,12 @@ type AgreementListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for AgreementListResult. +func (alr AgreementListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AgreementListResultIterator provides access to a complete listing of Agreement values. type AgreementListResultIterator struct { i int @@ -801,6 +813,12 @@ type AvailableBalanceProperties struct { Amount *Amount `json:"amount,omitempty"` } +// MarshalJSON is the custom marshaler for AvailableBalanceProperties. +func (abp AvailableBalanceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Customer a partner's customer. type Customer struct { autorest.Response `json:"-"` @@ -883,6 +901,12 @@ type CustomerListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for CustomerListResult. +func (clr CustomerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CustomerListResultIterator provides access to a complete listing of Customer values. type CustomerListResultIterator struct { i int @@ -1125,6 +1149,12 @@ type DepartmentListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DepartmentListResult. +func (dlr DepartmentListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DepartmentListResultIterator provides access to a complete listing of Department values. type DepartmentListResultIterator struct { i int @@ -1316,6 +1346,12 @@ type DownloadProperties struct { URL *string `json:"url,omitempty"` } +// MarshalJSON is the custom marshaler for DownloadProperties. +func (dp DownloadProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DownloadURL a secure URL that can be used to download a an entity until the URL expires. type DownloadURL struct { autorest.Response `json:"-"` @@ -1325,6 +1361,12 @@ type DownloadURL struct { URL *string `json:"url,omitempty"` } +// MarshalJSON is the custom marshaler for DownloadURL. +func (du DownloadURL) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EnabledAzureSKUs details about the enabled azure sku. type EnabledAzureSKUs struct { // SkuID - The sku id. @@ -1470,6 +1512,12 @@ type EnrollmentAccountListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for EnrollmentAccountListResult. +func (ealr EnrollmentAccountListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EnrollmentAccountListResultIterator provides access to a complete listing of EnrollmentAccount values. type EnrollmentAccountListResultIterator struct { i int @@ -1650,6 +1698,12 @@ type EnrollmentPolicies struct { ReservedInstancesEnabled *bool `json:"reservedInstancesEnabled,omitempty"` } +// MarshalJSON is the custom marshaler for EnrollmentPolicies. +func (ep EnrollmentPolicies) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Error error details for transfer execution. type Error struct { // ErrorCode - READ-ONLY; Error code. @@ -1658,6 +1712,12 @@ type Error struct { ErrorMessage *string `json:"errorMessage,omitempty"` } +// MarshalJSON is the custom marshaler for Error. +func (e Error) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetails the details of the error. type ErrorDetails struct { // Code - READ-ONLY; Error code. @@ -1668,6 +1728,12 @@ type ErrorDetails struct { Target *string `json:"target,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse error response indicates that the service is not able to process the incoming request. The // reason is provided in the error message. type ErrorResponse struct { @@ -1731,6 +1797,12 @@ type InvoiceListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for InvoiceListResult. +func (ilr InvoiceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InvoiceListResultIterator provides access to a complete listing of InvoiceSummary values. type InvoiceListResultIterator struct { i int @@ -1971,6 +2043,12 @@ type InvoiceSectionListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for InvoiceSectionListResult. +func (islr InvoiceSectionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InvoiceSectionListResultIterator provides access to a complete listing of InvoiceSection values. type InvoiceSectionListResultIterator struct { i int @@ -2316,6 +2394,12 @@ type InvoiceSummaryProperties struct { Payments *[]PaymentProperties `json:"payments,omitempty"` } +// MarshalJSON is the custom marshaler for InvoiceSummaryProperties. +func (isp InvoiceSummaryProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LineOfCredit line of credit resource. type LineOfCredit struct { autorest.Response `json:"-"` @@ -2483,6 +2567,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result listing billing operations. It contains a list of operations and a URL link // to get the next set of results. type OperationListResult struct { @@ -2493,6 +2583,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -2675,6 +2771,12 @@ type Participants struct { Email *string `json:"email,omitempty"` } +// MarshalJSON is the custom marshaler for Participants. +func (p Participants) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PaymentMethod a payment method resource. type PaymentMethod struct { *PaymentMethodProperties `json:"properties,omitempty"` @@ -2776,6 +2878,12 @@ type PaymentMethodsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PaymentMethodsListResult. +func (pmlr PaymentMethodsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PaymentMethodsListResultIterator provides access to a complete listing of PaymentMethod values. type PaymentMethodsListResultIterator struct { i int @@ -2936,6 +3044,12 @@ type PaymentProperties struct { Date *date.Time `json:"date,omitempty"` } +// MarshalJSON is the custom marshaler for PaymentProperties. +func (pp PaymentProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PermissionsListResult result of list billingPermissions a caller has on a billing account. type PermissionsListResult struct { autorest.Response `json:"-"` @@ -2943,6 +3057,12 @@ type PermissionsListResult struct { Value *[]PermissionsProperties `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PermissionsListResult. +func (plr PermissionsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PermissionsProperties the set of allowed action and not allowed actions a caller has on a billing // account type PermissionsProperties struct { @@ -2952,6 +3072,12 @@ type PermissionsProperties struct { NotActions *[]string `json:"notActions,omitempty"` } +// MarshalJSON is the custom marshaler for PermissionsProperties. +func (pp PermissionsProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Policy the Policy. type Policy struct { autorest.Response `json:"-"` @@ -3095,6 +3221,12 @@ type ProductsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ProductsListResult. +func (plr ProductsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProductsListResultIterator provides access to a complete listing of ProductSummary values. type ProductsListResultIterator struct { i int @@ -3465,6 +3597,12 @@ type ProfileListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ProfileListResult. +func (plr ProfileListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProfileListResultIterator provides access to a complete listing of Profile values. type ProfileListResultIterator struct { i int @@ -3845,6 +3983,12 @@ type PropertySummary struct { SkuDescription *string `json:"skuDescription,omitempty"` } +// MarshalJSON is the custom marshaler for PropertySummary. +func (ps PropertySummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RecipientTransferDetails details of the transfer. type RecipientTransferDetails struct { autorest.Response `json:"-"` @@ -3894,6 +4038,12 @@ type RecipientTransferDetailsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RecipientTransferDetailsListResult. +func (rtdlr RecipientTransferDetailsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RecipientTransferDetailsListResultIterator provides access to a complete listing of // RecipientTransferDetails values. type RecipientTransferDetailsListResultIterator struct { @@ -4067,6 +4217,12 @@ type RecipientTransferProperties struct { DetailedTransferStatus *[]DetailedTransferStatus `json:"detailedTransferStatus,omitempty"` } +// MarshalJSON is the custom marshaler for RecipientTransferProperties. +func (rtp RecipientTransferProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Reseller details about a reseller. type Reseller struct { // ResellerID - READ-ONLY; The reseller id. @@ -4075,6 +4231,12 @@ type Reseller struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for Reseller. +func (r Reseller) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource the Resource model definition. type Resource struct { // ID - READ-ONLY; Resource Id. @@ -4085,6 +4247,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RoleAssignment a role assignment type RoleAssignment struct { autorest.Response `json:"-"` @@ -4165,6 +4333,12 @@ type RoleAssignmentListResult struct { Value *[]RoleAssignment `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for RoleAssignmentListResult. +func (ralr RoleAssignmentListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RoleAssignmentPayload the payload use to update role assignment on a scope type RoleAssignmentPayload struct { // PrincipalID - The user's principal id that the role gets assigned to @@ -4191,6 +4365,12 @@ type RoleAssignmentProperties struct { Scope *string `json:"scope,omitempty"` } +// MarshalJSON is the custom marshaler for RoleAssignmentProperties. +func (rap RoleAssignmentProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RoleDefinition result of get role definition for a role. type RoleDefinition struct { autorest.Response `json:"-"` @@ -4271,6 +4451,12 @@ type RoleDefinitionListResult struct { Value *[]RoleDefinition `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for RoleDefinitionListResult. +func (rdlr RoleDefinitionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RoleDefinitionProperties the properties of the a role definition. type RoleDefinitionProperties struct { // Description - READ-ONLY; The role description @@ -4385,6 +4571,12 @@ type SubscriptionsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SubscriptionsListResult. +func (slr SubscriptionsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SubscriptionsListResultIterator provides access to a complete listing of SubscriptionSummary values. type SubscriptionsListResultIterator struct { i int @@ -4659,6 +4851,12 @@ type TransactionsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for TransactionsListResult. +func (tlr TransactionsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TransactionsListResultIterator provides access to a complete listing of TransactionsSummary values. type TransactionsListResultIterator struct { i int @@ -5078,6 +5276,12 @@ type TransferDetailsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for TransferDetailsListResult. +func (tdlr TransferDetailsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TransferDetailsListResultIterator provides access to a complete listing of TransferDetails values. type TransferDetailsListResultIterator struct { i int @@ -5260,6 +5464,12 @@ type TransferProperties struct { DetailedTransferStatus *[]DetailedTransferStatus `json:"detailedTransferStatus,omitempty"` } +// MarshalJSON is the custom marshaler for TransferProperties. +func (tp TransferProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpdateAutoRenewOperationSummary summary of cancel product operation type UpdateAutoRenewOperationSummary struct { autorest.Response `json:"-"` diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/CHANGELOG.md b/services/preview/billing/mgmt/2020-05-01-preview/billing/CHANGELOG.md index 52911e4cc5e4..8821e5b04ed1 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/CHANGELOG.md +++ b/services/preview/billing/mgmt/2020-05-01-preview/billing/CHANGELOG.md @@ -1,2 +1,35 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountListResult.MarshalJSON() ([]byte, error) +1. AgreementListResult.MarshalJSON() ([]byte, error) +1. AvailableBalanceProperties.MarshalJSON() ([]byte, error) +1. CustomerListResult.MarshalJSON() ([]byte, error) +1. Document.MarshalJSON() ([]byte, error) +1. DownloadURL.MarshalJSON() ([]byte, error) +1. EnrollmentAccountListResult.MarshalJSON() ([]byte, error) +1. EnrollmentAccountSummaryProperties.MarshalJSON() ([]byte, error) +1. EnrollmentPolicies.MarshalJSON() ([]byte, error) +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. ErrorSubDetailsItem.MarshalJSON() ([]byte, error) +1. InstructionListResult.MarshalJSON() ([]byte, error) +1. InvoiceListResult.MarshalJSON() ([]byte, error) +1. InvoiceSectionListResult.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. Participants.MarshalJSON() ([]byte, error) +1. PeriodProperties.MarshalJSON() ([]byte, error) +1. PeriodsListResult.MarshalJSON() ([]byte, error) +1. PermissionsListResult.MarshalJSON() ([]byte, error) +1. PermissionsProperties.MarshalJSON() ([]byte, error) +1. ProductsListResult.MarshalJSON() ([]byte, error) +1. ProfileListResult.MarshalJSON() ([]byte, error) +1. Reseller.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. RoleAssignmentListResult.MarshalJSON() ([]byte, error) +1. RoleDefinitionListResult.MarshalJSON() ([]byte, error) +1. SubscriptionsListResult.MarshalJSON() ([]byte, error) +1. TransactionListResult.MarshalJSON() ([]byte, error) diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/_meta.json b/services/preview/billing/mgmt/2020-05-01-preview/billing/_meta.json index e15464f90ef5..cc040847267f 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/_meta.json +++ b/services/preview/billing/mgmt/2020-05-01-preview/billing/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/billing/resource-manager/readme.md", "tag": "package-2020-05", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/billing/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/billing/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/models.go b/services/preview/billing/mgmt/2020-05-01-preview/billing/models.go index 7cd24b2118d8..98070f62a25b 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/models.go +++ b/services/preview/billing/mgmt/2020-05-01-preview/billing/models.go @@ -103,6 +103,12 @@ type AccountListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for AccountListResult. +func (alr AccountListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListResultIterator provides access to a complete listing of Account values. type AccountListResultIterator struct { i int @@ -492,6 +498,12 @@ type AgreementListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for AgreementListResult. +func (alr AgreementListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AgreementListResultIterator provides access to a complete listing of Agreement values. type AgreementListResultIterator struct { i int @@ -764,6 +776,12 @@ type AvailableBalanceProperties struct { Amount *Amount `json:"amount,omitempty"` } +// MarshalJSON is the custom marshaler for AvailableBalanceProperties. +func (abp AvailableBalanceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzurePlan details of the Azure plan. type AzurePlan struct { // SkuID - The sku id. @@ -863,6 +881,12 @@ type CustomerListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for CustomerListResult. +func (clr CustomerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CustomerListResultIterator provides access to a complete listing of Customer values. type CustomerListResultIterator struct { i int @@ -1214,6 +1238,12 @@ type Document struct { Source DocumentSource `json:"source,omitempty"` } +// MarshalJSON is the custom marshaler for Document. +func (d Document) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DownloadURL a secure URL that can be used to download a an entity until the URL expires. type DownloadURL struct { autorest.Response `json:"-"` @@ -1223,6 +1253,12 @@ type DownloadURL struct { URL *string `json:"url,omitempty"` } +// MarshalJSON is the custom marshaler for DownloadURL. +func (du DownloadURL) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Enrollment the properties of an enrollment. type Enrollment struct { // StartDate - The start date of the enrollment. @@ -1350,6 +1386,12 @@ type EnrollmentAccountListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for EnrollmentAccountListResult. +func (ealr EnrollmentAccountListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EnrollmentAccountListResultIterator provides access to a complete listing of EnrollmentAccountSummary // values. type EnrollmentAccountListResultIterator struct { @@ -1598,6 +1640,12 @@ type EnrollmentAccountSummaryProperties struct { PrincipalName *string `json:"principalName,omitempty"` } +// MarshalJSON is the custom marshaler for EnrollmentAccountSummaryProperties. +func (easp EnrollmentAccountSummaryProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EnrollmentPolicies the policies for Enterprise Agreement enrollments. type EnrollmentPolicies struct { // AccountOwnerViewCharges - READ-ONLY; The policy that controls whether Account Owners can view charges. @@ -1610,6 +1658,12 @@ type EnrollmentPolicies struct { ReservedInstancesEnabled *bool `json:"reservedInstancesEnabled,omitempty"` } +// MarshalJSON is the custom marshaler for EnrollmentPolicies. +func (ep EnrollmentPolicies) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetails the details of the error. type ErrorDetails struct { // Code - READ-ONLY; Error code. @@ -1622,6 +1676,12 @@ type ErrorDetails struct { Details *[]ErrorSubDetailsItem `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse error response indicates that the service is not able to process the incoming request. The // reason is provided in the error message. type ErrorResponse struct { @@ -1639,6 +1699,12 @@ type ErrorSubDetailsItem struct { Target *string `json:"target,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorSubDetailsItem. +func (esdi ErrorSubDetailsItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IndirectRelationshipInfo the billing profile details of the partner of the customer for an indirect // motion. type IndirectRelationshipInfo struct { @@ -1732,6 +1798,12 @@ type InstructionListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for InstructionListResult. +func (ilr InstructionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InstructionListResultIterator provides access to a complete listing of Instruction values. type InstructionListResultIterator struct { i int @@ -1976,6 +2048,12 @@ type InvoiceListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for InvoiceListResult. +func (ilr InvoiceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InvoiceListResultIterator provides access to a complete listing of Invoice values. type InvoiceListResultIterator struct { i int @@ -2446,6 +2524,12 @@ type InvoiceSectionListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for InvoiceSectionListResult. +func (islr InvoiceSectionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InvoiceSectionListResultIterator provides access to a complete listing of InvoiceSection values. type InvoiceSectionListResultIterator struct { i int @@ -2914,6 +2998,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult the list of billing operations and a URL link to get the next set of results. type OperationListResult struct { autorest.Response `json:"-"` @@ -2923,6 +3013,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -3083,6 +3179,12 @@ type Participants struct { Email *string `json:"email,omitempty"` } +// MarshalJSON is the custom marshaler for Participants. +func (p Participants) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PaymentProperties the properties of a payment. type PaymentProperties struct { // PaymentType - READ-ONLY; The type of payment. @@ -3189,6 +3291,12 @@ type PeriodProperties struct { InvoiceIds *[]string `json:"invoiceIds,omitempty"` } +// MarshalJSON is the custom marshaler for PeriodProperties. +func (pp PeriodProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PeriodsListResult result of listing billing periods. It contains a list of available billing periods in // reverse chronological order. type PeriodsListResult struct { @@ -3199,6 +3307,12 @@ type PeriodsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PeriodsListResult. +func (plr PeriodsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PeriodsListResultIterator provides access to a complete listing of Period values. type PeriodsListResultIterator struct { i int @@ -3358,6 +3472,12 @@ type PermissionsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PermissionsListResult. +func (plr PermissionsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PermissionsListResultIterator provides access to a complete listing of PermissionsProperties values. type PermissionsListResultIterator struct { i int @@ -3517,6 +3637,12 @@ type PermissionsProperties struct { NotActions *[]string `json:"notActions,omitempty"` } +// MarshalJSON is the custom marshaler for PermissionsProperties. +func (pp PermissionsProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Policy a policy. type Policy struct { autorest.Response `json:"-"` @@ -3744,6 +3870,12 @@ type ProductsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ProductsListResult. +func (plr ProductsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProductsListResultIterator provides access to a complete listing of Product values. type ProductsListResultIterator struct { i int @@ -3990,6 +4122,12 @@ type ProfileListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ProfileListResult. +func (plr ProfileListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProfileListResultIterator provides access to a complete listing of Profile values. type ProfileListResultIterator struct { i int @@ -4405,6 +4543,12 @@ type Reseller struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for Reseller. +func (r Reseller) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource the Resource model definition. type Resource struct { // ID - READ-ONLY; Resource Id. @@ -4415,6 +4559,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RoleAssignment the role assignment type RoleAssignment struct { autorest.Response `json:"-"` @@ -4497,6 +4647,12 @@ type RoleAssignmentListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RoleAssignmentListResult. +func (ralr RoleAssignmentListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RoleAssignmentListResultIterator provides access to a complete listing of RoleAssignment values. type RoleAssignmentListResultIterator struct { i int @@ -4774,6 +4930,12 @@ type RoleDefinitionListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RoleDefinitionListResult. +func (rdlr RoleDefinitionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RoleDefinitionListResultIterator provides access to a complete listing of RoleDefinition values. type RoleDefinitionListResultIterator struct { i int @@ -5073,6 +5235,12 @@ type SubscriptionsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SubscriptionsListResult. +func (slr SubscriptionsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SubscriptionsListResultIterator provides access to a complete listing of Subscription values. type SubscriptionsListResultIterator struct { i int @@ -5346,6 +5514,12 @@ type TransactionListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for TransactionListResult. +func (tlr TransactionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TransactionListResultIterator provides access to a complete listing of Transaction values. type TransactionListResultIterator struct { i int diff --git a/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain/CHANGELOG.md b/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain/CHANGELOG.md index 52911e4cc5e4..f817772e217f 100644 --- a/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain/CHANGELOG.md +++ b/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain/_meta.json b/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain/_meta.json index 9d9c31f16ce9..028515fe25f5 100644 --- a/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain/_meta.json +++ b/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/blockchain/resource-manager/readme.md", "tag": "package-2018-06-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-06-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/blockchain/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-06-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/blockchain/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain/models.go b/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain/models.go index 1625b92e6d89..39d07ed64dac 100644 --- a/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain/models.go +++ b/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain/models.go @@ -769,6 +769,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceProviderOperation operation payload which is exposed in the response of the resource provider. type ResourceProviderOperation struct { // Origin - Gets or sets the origin. diff --git a/services/preview/blueprint/mgmt/2018-11-01-preview/blueprint/CHANGELOG.md b/services/preview/blueprint/mgmt/2018-11-01-preview/blueprint/CHANGELOG.md index 52911e4cc5e4..4ce7e806ae70 100644 --- a/services/preview/blueprint/mgmt/2018-11-01-preview/blueprint/CHANGELOG.md +++ b/services/preview/blueprint/mgmt/2018-11-01-preview/blueprint/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. AssignmentStatus.MarshalJSON() ([]byte, error) +1. AzureResourceBase.MarshalJSON() ([]byte, error) +1. ResourceStatusBase.MarshalJSON() ([]byte, error) +1. Status.MarshalJSON() ([]byte, error) diff --git a/services/preview/blueprint/mgmt/2018-11-01-preview/blueprint/_meta.json b/services/preview/blueprint/mgmt/2018-11-01-preview/blueprint/_meta.json index 7496f44ce25e..59acbc25845b 100644 --- a/services/preview/blueprint/mgmt/2018-11-01-preview/blueprint/_meta.json +++ b/services/preview/blueprint/mgmt/2018-11-01-preview/blueprint/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/blueprint/resource-manager/readme.md", "tag": "package-2018-11-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-11-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/blueprint/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-11-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/blueprint/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/blueprint/mgmt/2018-11-01-preview/blueprint/models.go b/services/preview/blueprint/mgmt/2018-11-01-preview/blueprint/models.go index 047375a3a6c3..3628bb0ac561 100644 --- a/services/preview/blueprint/mgmt/2018-11-01-preview/blueprint/models.go +++ b/services/preview/blueprint/mgmt/2018-11-01-preview/blueprint/models.go @@ -985,6 +985,12 @@ type AssignmentStatus struct { LastModified *date.Time `json:"lastModified,omitempty"` } +// MarshalJSON is the custom marshaler for AssignmentStatus. +func (as AssignmentStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureResourceBase common properties for all Azure resources. type AzureResourceBase struct { // ID - READ-ONLY; String Id used to locate any resource on Azure. @@ -995,6 +1001,12 @@ type AzureResourceBase struct { Name *string `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for AzureResourceBase. +func (arb AzureResourceBase) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureResourceManagerError error code and message type AzureResourceManagerError struct { // Code - Error code. @@ -2011,6 +2023,12 @@ type ResourceStatusBase struct { LastModified *date.Time `json:"lastModified,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceStatusBase. +func (rsb ResourceStatusBase) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RoleAssignmentArtifact blueprint artifact that applies a Role assignment. type RoleAssignmentArtifact struct { // RoleAssignmentArtifactProperties - Properties for a Role assignment blueprint artifact. @@ -2194,6 +2212,12 @@ type Status struct { LastModified *date.Time `json:"lastModified,omitempty"` } +// MarshalJSON is the custom marshaler for Status. +func (s Status) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TemplateArtifact blueprint artifact that deploys a Resource Manager template. type TemplateArtifact struct { // TemplateArtifactProperties - Properties for a Resource Manager template blueprint artifact. diff --git a/services/preview/botservice/mgmt/2017-12-01/botservice/CHANGELOG.md b/services/preview/botservice/mgmt/2017-12-01/botservice/CHANGELOG.md index 52911e4cc5e4..e0cf87dbeb6f 100644 --- a/services/preview/botservice/mgmt/2017-12-01/botservice/CHANGELOG.md +++ b/services/preview/botservice/mgmt/2017-12-01/botservice/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. ConnectionItemName.MarshalJSON() ([]byte, error) +1. ServiceProviderParameter.MarshalJSON() ([]byte, error) diff --git a/services/preview/botservice/mgmt/2017-12-01/botservice/_meta.json b/services/preview/botservice/mgmt/2017-12-01/botservice/_meta.json index 489595930e09..f6dab5913c8f 100644 --- a/services/preview/botservice/mgmt/2017-12-01/botservice/_meta.json +++ b/services/preview/botservice/mgmt/2017-12-01/botservice/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/botservice/resource-manager/readme.md", "tag": "package-2017-12-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-12-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/botservice/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-12-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/botservice/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/botservice/mgmt/2017-12-01/botservice/models.go b/services/preview/botservice/mgmt/2017-12-01/botservice/models.go index 935cfbefb6b8..1e60f3a4c533 100644 --- a/services/preview/botservice/mgmt/2017-12-01/botservice/models.go +++ b/services/preview/botservice/mgmt/2017-12-01/botservice/models.go @@ -796,6 +796,12 @@ type ConnectionItemName struct { Name *string `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectionItemName. +func (cin ConnectionItemName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectionSetting bot channel resource definition type ConnectionSetting struct { autorest.Response `json:"-"` @@ -1849,6 +1855,12 @@ type ServiceProviderParameter struct { Default *string `json:"default,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceProviderParameter. +func (spp ServiceProviderParameter) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceProviderProperties the Object used to describe a Service Provider supported by Bot Service type ServiceProviderProperties struct { // ID - READ-ONLY; Id for Service Provider diff --git a/services/preview/botservice/mgmt/2018-07-12/botservice/CHANGELOG.md b/services/preview/botservice/mgmt/2018-07-12/botservice/CHANGELOG.md index 52911e4cc5e4..e0cf87dbeb6f 100644 --- a/services/preview/botservice/mgmt/2018-07-12/botservice/CHANGELOG.md +++ b/services/preview/botservice/mgmt/2018-07-12/botservice/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. ConnectionItemName.MarshalJSON() ([]byte, error) +1. ServiceProviderParameter.MarshalJSON() ([]byte, error) diff --git a/services/preview/botservice/mgmt/2018-07-12/botservice/_meta.json b/services/preview/botservice/mgmt/2018-07-12/botservice/_meta.json index 34bfa1d7ecfd..003782b3ca83 100644 --- a/services/preview/botservice/mgmt/2018-07-12/botservice/_meta.json +++ b/services/preview/botservice/mgmt/2018-07-12/botservice/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/botservice/resource-manager/readme.md", "tag": "package-2018-07-12", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-07-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/botservice/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-07-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/botservice/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/botservice/mgmt/2018-07-12/botservice/models.go b/services/preview/botservice/mgmt/2018-07-12/botservice/models.go index 7b9092f6b03e..6422259ddeb3 100644 --- a/services/preview/botservice/mgmt/2018-07-12/botservice/models.go +++ b/services/preview/botservice/mgmt/2018-07-12/botservice/models.go @@ -797,6 +797,12 @@ type ConnectionItemName struct { Name *string `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectionItemName. +func (cin ConnectionItemName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectionSetting bot channel resource definition type ConnectionSetting struct { autorest.Response `json:"-"` @@ -2249,6 +2255,12 @@ type ServiceProviderParameter struct { Default *string `json:"default,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceProviderParameter. +func (spp ServiceProviderParameter) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceProviderProperties the Object used to describe a Service Provider supported by Bot Service type ServiceProviderProperties struct { // ID - READ-ONLY; Id for Service Provider diff --git a/services/preview/cognitiveservices/mgmt/2016-02-01-preview/cognitiveservices/CHANGELOG.md b/services/preview/cognitiveservices/mgmt/2016-02-01-preview/cognitiveservices/CHANGELOG.md index 52911e4cc5e4..3bc2e46cffdd 100644 --- a/services/preview/cognitiveservices/mgmt/2016-02-01-preview/cognitiveservices/CHANGELOG.md +++ b/services/preview/cognitiveservices/mgmt/2016-02-01-preview/cognitiveservices/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountEnumerateSkusResult.MarshalJSON() ([]byte, error) +1. AccountListResult.MarshalJSON() ([]byte, error) diff --git a/services/preview/cognitiveservices/mgmt/2016-02-01-preview/cognitiveservices/_meta.json b/services/preview/cognitiveservices/mgmt/2016-02-01-preview/cognitiveservices/_meta.json index c0a47d6732df..8d91ae0259f7 100644 --- a/services/preview/cognitiveservices/mgmt/2016-02-01-preview/cognitiveservices/_meta.json +++ b/services/preview/cognitiveservices/mgmt/2016-02-01-preview/cognitiveservices/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/resource-manager/readme.md", "tag": "package-2016-02-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-02-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-02-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/cognitiveservices/mgmt/2016-02-01-preview/cognitiveservices/models.go b/services/preview/cognitiveservices/mgmt/2016-02-01-preview/cognitiveservices/models.go index 4e633ede3131..5110a3436aa4 100644 --- a/services/preview/cognitiveservices/mgmt/2016-02-01-preview/cognitiveservices/models.go +++ b/services/preview/cognitiveservices/mgmt/2016-02-01-preview/cognitiveservices/models.go @@ -206,6 +206,12 @@ type AccountEnumerateSkusResult struct { Value *[]ResourceAndSku `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for AccountEnumerateSkusResult. +func (aesr AccountEnumerateSkusResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountKeys the access keys for the cognitive services account. type AccountKeys struct { autorest.Response `json:"-"` @@ -222,6 +228,12 @@ type AccountListResult struct { Value *[]Account `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for AccountListResult. +func (alr AccountListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountProperties ... type AccountProperties struct { // ProvisioningState - READ-ONLY; Gets the status of the cognitive services account at the time the operation was called. Possible values include: 'Creating', 'ResolvingDNS', 'Succeeded', 'Failed' diff --git a/services/preview/cognitiveservices/v1.0/anomalydetector/_meta.json b/services/preview/cognitiveservices/v1.0/anomalydetector/_meta.json index 35b3fc607cf0..b933023fa59a 100644 --- a/services/preview/cognitiveservices/v1.0/anomalydetector/_meta.json +++ b/services/preview/cognitiveservices/v1.0/anomalydetector/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/AnomalyDetector/readme.md", "tag": "release_1_0", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=release_1_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/AnomalyDetector/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=release_1_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/AnomalyDetector/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/cognitiveservices/v1.0/formrecognizer/_meta.json b/services/preview/cognitiveservices/v1.0/formrecognizer/_meta.json index bda48f0065e0..03e4a238b6f8 100644 --- a/services/preview/cognitiveservices/v1.0/formrecognizer/_meta.json +++ b/services/preview/cognitiveservices/v1.0/formrecognizer/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/FormRecognizer/readme.md", "tag": "release_1_0", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=release_1_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/FormRecognizer/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=release_1_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/FormRecognizer/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/cognitiveservices/v1.0/inkrecognizer/_meta.json b/services/preview/cognitiveservices/v1.0/inkrecognizer/_meta.json index 03f557f42d2e..3e848bccf200 100644 --- a/services/preview/cognitiveservices/v1.0/inkrecognizer/_meta.json +++ b/services/preview/cognitiveservices/v1.0/inkrecognizer/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/InkRecognizer/readme.md", "tag": "release_1_0", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=release_1_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/InkRecognizer/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=release_1_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/InkRecognizer/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/cognitiveservices/v1.0/visualsearch/CHANGELOG.md b/services/preview/cognitiveservices/v1.0/visualsearch/CHANGELOG.md index 52911e4cc5e4..2ba4e3aae679 100644 --- a/services/preview/cognitiveservices/v1.0/visualsearch/CHANGELOG.md +++ b/services/preview/cognitiveservices/v1.0/visualsearch/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. ImagesImageMetadata.MarshalJSON() ([]byte, error) +1. ImagesModule.MarshalJSON() ([]byte, error) +1. RecipesModule.MarshalJSON() ([]byte, error) +1. RelatedSearchesModule.MarshalJSON() ([]byte, error) diff --git a/services/preview/cognitiveservices/v1.0/visualsearch/_meta.json b/services/preview/cognitiveservices/v1.0/visualsearch/_meta.json index 4df0a9aebca5..a27d0e1a370c 100644 --- a/services/preview/cognitiveservices/v1.0/visualsearch/_meta.json +++ b/services/preview/cognitiveservices/v1.0/visualsearch/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/VisualSearch/readme.md", "tag": "release_1_0", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=release_1_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/VisualSearch/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=release_1_0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/VisualSearch/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/cognitiveservices/v1.0/visualsearch/models.go b/services/preview/cognitiveservices/v1.0/visualsearch/models.go index 31f66187217c..159caeeb2fbb 100644 --- a/services/preview/cognitiveservices/v1.0/visualsearch/models.go +++ b/services/preview/cognitiveservices/v1.0/visualsearch/models.go @@ -5412,12 +5412,24 @@ type ImagesImageMetadata struct { AggregateOffer *AggregateOffer `json:"aggregateOffer,omitempty"` } +// MarshalJSON is the custom marshaler for ImagesImageMetadata. +func (iim ImagesImageMetadata) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImagesModule defines a list of images. type ImagesModule struct { // Value - READ-ONLY; A list of images. Value *[]ImageObject `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ImagesModule. +func (im ImagesModule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageTag a visual search tag. type ImageTag struct { // DisplayName - READ-ONLY; Display name for this tag. For the default tag, the display name is empty. @@ -8351,12 +8363,24 @@ type RecipesModule struct { Value *[]Recipe `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for RecipesModule. +func (rm RecipesModule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RelatedSearchesModule defines a list of related searches. type RelatedSearchesModule struct { // Value - READ-ONLY; A list of related searches. Value *[]Query `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for RelatedSearchesModule. +func (rsm RelatedSearchesModule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Request a JSON object that contains information about the image to get insights of. Specify this object // only in a knowledgeRequest form data. type Request struct { diff --git a/services/preview/cognitiveservices/v1.0_preview.1/translatortext/_meta.json b/services/preview/cognitiveservices/v1.0_preview.1/translatortext/_meta.json index bf290e82acd0..516b654e50de 100644 --- a/services/preview/cognitiveservices/v1.0_preview.1/translatortext/_meta.json +++ b/services/preview/cognitiveservices/v1.0_preview.1/translatortext/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/TranslatorText/readme.md", "tag": "release_1_0_preview.1", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=release_1_0_preview.1 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/TranslatorText/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=release_1_0_preview.1 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/TranslatorText/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/cognitiveservices/v3.0/luis/authoring/_meta.json b/services/preview/cognitiveservices/v3.0/luis/authoring/_meta.json index d8853714fe6a..2fbf2eabcbe9 100644 --- a/services/preview/cognitiveservices/v3.0/luis/authoring/_meta.json +++ b/services/preview/cognitiveservices/v3.0/luis/authoring/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/LUIS/Authoring/readme.md", "tag": "authoring_3_0_preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=authoring_3_0_preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/LUIS/Authoring/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=authoring_3_0_preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/LUIS/Authoring/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/cognitiveservices/v3.4-preview/customvision/training/CHANGELOG.md b/services/preview/cognitiveservices/v3.4-preview/customvision/training/CHANGELOG.md index 52911e4cc5e4..aea068b5d256 100644 --- a/services/preview/cognitiveservices/v3.4-preview/customvision/training/CHANGELOG.md +++ b/services/preview/cognitiveservices/v3.4-preview/customvision/training/CHANGELOG.md @@ -1,2 +1,23 @@ # Change History +## Additive Changes + +### New Funcs + +1. Domain.MarshalJSON() ([]byte, error) +1. Export.MarshalJSON() ([]byte, error) +1. ImageCreateResult.MarshalJSON() ([]byte, error) +1. ImageCreateSummary.MarshalJSON() ([]byte, error) +1. ImageMetadataUpdateSummary.MarshalJSON() ([]byte, error) +1. ImagePerformance.MarshalJSON() ([]byte, error) +1. ImagePrediction.MarshalJSON() ([]byte, error) +1. ImageRegionProposal.MarshalJSON() ([]byte, error) +1. ImageTag.MarshalJSON() ([]byte, error) +1. IterationPerformance.MarshalJSON() ([]byte, error) +1. Prediction.MarshalJSON() ([]byte, error) +1. ProjectExport.MarshalJSON() ([]byte, error) +1. RegionProposal.MarshalJSON() ([]byte, error) +1. StoredImagePrediction.MarshalJSON() ([]byte, error) +1. StoredSuggestedTagAndRegion.MarshalJSON() ([]byte, error) +1. SuggestedTagAndRegion.MarshalJSON() ([]byte, error) +1. TagPerformance.MarshalJSON() ([]byte, error) diff --git a/services/preview/cognitiveservices/v3.4-preview/customvision/training/_meta.json b/services/preview/cognitiveservices/v3.4-preview/customvision/training/_meta.json index 5be1abd39f5b..417a83a13058 100644 --- a/services/preview/cognitiveservices/v3.4-preview/customvision/training/_meta.json +++ b/services/preview/cognitiveservices/v3.4-preview/customvision/training/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/CustomVision/Training/readme.md", "tag": "release_3_4_preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=release_3_4_preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/CustomVision/Training/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=release_3_4_preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/CustomVision/Training/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/cognitiveservices/v3.4-preview/customvision/training/models.go b/services/preview/cognitiveservices/v3.4-preview/customvision/training/models.go index 759f00964fee..109447f112fb 100644 --- a/services/preview/cognitiveservices/v3.4-preview/customvision/training/models.go +++ b/services/preview/cognitiveservices/v3.4-preview/customvision/training/models.go @@ -80,6 +80,12 @@ type Domain struct { ModelInformation *ModelInformation `json:"modelInformation,omitempty"` } +// MarshalJSON is the custom marshaler for Domain. +func (d Domain) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Export ... type Export struct { autorest.Response `json:"-"` @@ -98,6 +104,12 @@ type Export struct { NewerVersionAvailable *bool `json:"newerVersionAvailable,omitempty"` } +// MarshalJSON is the custom marshaler for Export. +func (e Export) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Image image model to be sent as JSON. type Image struct { // ID - READ-ONLY; Id of the image. @@ -138,6 +150,12 @@ type ImageCreateResult struct { Image *Image `json:"image,omitempty"` } +// MarshalJSON is the custom marshaler for ImageCreateResult. +func (icr ImageCreateResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageCreateSummary ... type ImageCreateSummary struct { autorest.Response `json:"-"` @@ -147,6 +165,12 @@ type ImageCreateSummary struct { Images *[]ImageCreateResult `json:"images,omitempty"` } +// MarshalJSON is the custom marshaler for ImageCreateSummary. +func (ics ImageCreateSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageFileCreateBatch ... type ImageFileCreateBatch struct { Images *[]ImageFileCreateEntry `json:"images,omitempty"` @@ -243,6 +267,12 @@ type ImageMetadataUpdateSummary struct { Images *[]ImageMetadataUpdateEntry `json:"images,omitempty"` } +// MarshalJSON is the custom marshaler for ImageMetadataUpdateSummary. +func (imus ImageMetadataUpdateSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImagePerformance image performance model. type ImagePerformance struct { // Predictions - READ-ONLY @@ -265,6 +295,12 @@ type ImagePerformance struct { Regions *[]ImageRegion `json:"regions,omitempty"` } +// MarshalJSON is the custom marshaler for ImagePerformance. +func (IP ImagePerformance) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImagePrediction result of an image prediction request. type ImagePrediction struct { autorest.Response `json:"-"` @@ -280,6 +316,12 @@ type ImagePrediction struct { Predictions *[]Prediction `json:"predictions,omitempty"` } +// MarshalJSON is the custom marshaler for ImagePrediction. +func (IP ImagePrediction) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageProcessingSettings represents image preprocessing settings used by image augmentation. type ImageProcessingSettings struct { // AugmentationMethods - Gets or sets enabled image transforms. The key corresponds to the transform name. If value is set to true, then correspondent transform is enabled. Otherwise this transform will not be used. @@ -420,6 +462,12 @@ type ImageRegionProposal struct { Proposals *[]RegionProposal `json:"proposals,omitempty"` } +// MarshalJSON is the custom marshaler for ImageRegionProposal. +func (irp ImageRegionProposal) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageTag ... type ImageTag struct { // TagID - READ-ONLY @@ -430,6 +478,12 @@ type ImageTag struct { Created *date.Time `json:"created,omitempty"` } +// MarshalJSON is the custom marshaler for ImageTag. +func (it ImageTag) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageTagCreateBatch batch of image tags. type ImageTagCreateBatch struct { // Tags - Image Tag entries to include in this batch. @@ -564,6 +618,12 @@ type IterationPerformance struct { AveragePrecision *float64 `json:"averagePrecision,omitempty"` } +// MarshalJSON is the custom marshaler for IterationPerformance. +func (IP IterationPerformance) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListDomain ... type ListDomain struct { autorest.Response `json:"-"` @@ -642,6 +702,12 @@ type Prediction struct { TagType TagType `json:"tagType,omitempty"` } +// MarshalJSON is the custom marshaler for Prediction. +func (p Prediction) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PredictionQueryResult query result of the prediction images that were sent to your prediction endpoint. type PredictionQueryResult struct { autorest.Response `json:"-"` @@ -741,6 +807,12 @@ type ProjectExport struct { Token *string `json:"token,omitempty"` } +// MarshalJSON is the custom marshaler for ProjectExport. +func (peVar ProjectExport) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProjectSettings represents settings associated with a project. type ProjectSettings struct { // DomainID - Gets or sets the id of the Domain to use with this project. @@ -807,6 +879,12 @@ type RegionProposal struct { BoundingBox *BoundingBox `json:"boundingBox,omitempty"` } +// MarshalJSON is the custom marshaler for RegionProposal. +func (rp RegionProposal) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SetInt32 ... type SetInt32 struct { autorest.Response `json:"-"` @@ -844,6 +922,12 @@ type StoredImagePrediction struct { Predictions *[]Prediction `json:"predictions,omitempty"` } +// MarshalJSON is the custom marshaler for StoredImagePrediction. +func (sip StoredImagePrediction) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StoredSuggestedTagAndRegion result of a suggested tags and regions request of the untagged image. type StoredSuggestedTagAndRegion struct { // Width - READ-ONLY; Width of the resized image. @@ -872,6 +956,12 @@ type StoredSuggestedTagAndRegion struct { PredictionUncertainty *float64 `json:"predictionUncertainty,omitempty"` } +// MarshalJSON is the custom marshaler for StoredSuggestedTagAndRegion. +func (sstar StoredSuggestedTagAndRegion) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SuggestedTagAndRegion result of a suggested tags and regions request. type SuggestedTagAndRegion struct { // ID - READ-ONLY; Prediction Id. @@ -888,6 +978,12 @@ type SuggestedTagAndRegion struct { PredictionUncertainty *float64 `json:"predictionUncertainty,omitempty"` } +// MarshalJSON is the custom marshaler for SuggestedTagAndRegion. +func (star SuggestedTagAndRegion) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SuggestedTagAndRegionQuery the array of result images and token containing session and continuation Ids // for the next query. type SuggestedTagAndRegionQuery struct { @@ -982,3 +1078,9 @@ type TagPerformance struct { // AveragePrecision - READ-ONLY; Gets the average precision when applicable. AveragePrecision *float64 `json:"averagePrecision,omitempty"` } + +// MarshalJSON is the custom marshaler for TagPerformance. +func (tp TagPerformance) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/preview/commerce/mgmt/2015-06-01-preview/commerce/_meta.json b/services/preview/commerce/mgmt/2015-06-01-preview/commerce/_meta.json index 2d0fac9e377f..2cc9b14c3bc2 100644 --- a/services/preview/commerce/mgmt/2015-06-01-preview/commerce/_meta.json +++ b/services/preview/commerce/mgmt/2015-06-01-preview/commerce/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/commerce/resource-manager/readme.md", "tag": "package-2015-06-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2015-06-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/commerce/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2015-06-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/commerce/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/communication/mgmt/2020-08-20-preview/communication/CHANGELOG.md b/services/preview/communication/mgmt/2020-08-20-preview/communication/CHANGELOG.md index 52911e4cc5e4..f817772e217f 100644 --- a/services/preview/communication/mgmt/2020-08-20-preview/communication/CHANGELOG.md +++ b/services/preview/communication/mgmt/2020-08-20-preview/communication/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/communication/mgmt/2020-08-20-preview/communication/_meta.json b/services/preview/communication/mgmt/2020-08-20-preview/communication/_meta.json index 13fac92c0190..12099f8688a0 100644 --- a/services/preview/communication/mgmt/2020-08-20-preview/communication/_meta.json +++ b/services/preview/communication/mgmt/2020-08-20-preview/communication/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/communication/resource-manager/readme.md", "tag": "package-2020-08-20-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-08-20-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/communication/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-08-20-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/communication/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/communication/mgmt/2020-08-20-preview/communication/models.go b/services/preview/communication/mgmt/2020-08-20-preview/communication/models.go index 6cec2438f4a9..176760039382 100644 --- a/services/preview/communication/mgmt/2020-08-20-preview/communication/models.go +++ b/services/preview/communication/mgmt/2020-08-20-preview/communication/models.go @@ -411,6 +411,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ServiceCreateOrUpdateFuture struct { diff --git a/services/preview/compute/mgmt/2016-04-30-preview/compute/CHANGELOG.md b/services/preview/compute/mgmt/2016-04-30-preview/compute/CHANGELOG.md index 52911e4cc5e4..8e938b9669e3 100644 --- a/services/preview/compute/mgmt/2016-04-30-preview/compute/CHANGELOG.md +++ b/services/preview/compute/mgmt/2016-04-30-preview/compute/CHANGELOG.md @@ -1,2 +1,16 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccessURIRaw.MarshalJSON() ([]byte, error) +1. BootDiagnosticsInstanceView.MarshalJSON() ([]byte, error) +1. DataDiskImage.MarshalJSON() ([]byte, error) +1. OperationStatusResponse.MarshalJSON() ([]byte, error) +1. SubResourceReadOnly.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetInstanceViewStatusesSummary.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetSku.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetSkuCapacity.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetVMExtensionsSummary.MarshalJSON() ([]byte, error) +1. VirtualMachineStatusCodeCount.MarshalJSON() ([]byte, error) diff --git a/services/preview/compute/mgmt/2016-04-30-preview/compute/_meta.json b/services/preview/compute/mgmt/2016-04-30-preview/compute/_meta.json index 7bd42f34a86e..8dbcd3bdba74 100644 --- a/services/preview/compute/mgmt/2016-04-30-preview/compute/_meta.json +++ b/services/preview/compute/mgmt/2016-04-30-preview/compute/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-compute-2016-04-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-compute-2016-04-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-compute-2016-04-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/compute/mgmt/2016-04-30-preview/compute/models.go b/services/preview/compute/mgmt/2016-04-30-preview/compute/models.go index 0e3b16c99a15..79ddf5732c56 100644 --- a/services/preview/compute/mgmt/2016-04-30-preview/compute/models.go +++ b/services/preview/compute/mgmt/2016-04-30-preview/compute/models.go @@ -105,6 +105,12 @@ type AccessURIRaw struct { AccessSAS *string `json:"accessSAS,omitempty"` } +// MarshalJSON is the custom marshaler for AccessURIRaw. +func (aur AccessURIRaw) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AdditionalUnattendContent specifies additional XML formatted information that can be included in the // Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, // and the pass in which the content is applied. @@ -481,6 +487,12 @@ type BootDiagnosticsInstanceView struct { SerialConsoleLogBlobURI *string `json:"serialConsoleLogBlobUri,omitempty"` } +// MarshalJSON is the custom marshaler for BootDiagnosticsInstanceView. +func (bdiv BootDiagnosticsInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CreationData data used when creating a disk. type CreationData struct { // CreateOption - This enumerates the possible sources of a disk's creation. Possible values include: 'Empty', 'Attach', 'FromImage', 'Import', 'Copy', 'Restore' @@ -521,6 +533,12 @@ type DataDiskImage struct { Lun *int32 `json:"lun,omitempty"` } +// MarshalJSON is the custom marshaler for DataDiskImage. +func (ddi DataDiskImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DiagnosticsProfile specifies the boot diagnostic settings state.

    Minimum api-version: // 2015-06-15. type DiagnosticsProfile struct { @@ -1915,6 +1933,12 @@ type OperationStatusResponse struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for OperationStatusResponse. +func (osr OperationStatusResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OSDisk specifies information about the operating system disk used by the virtual machine.

    For // more information about disks, see [About disks and VHDs for Azure virtual // machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). @@ -2610,6 +2634,12 @@ type SubResourceReadOnly struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for SubResourceReadOnly. +func (srro SubResourceReadOnly) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpdateResource the Update Resource model definition. type UpdateResource struct { // Tags - Resource tags @@ -4085,6 +4115,12 @@ type VirtualMachineScaleSetInstanceViewStatusesSummary struct { StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetInstanceViewStatusesSummary. +func (vmssivss VirtualMachineScaleSetInstanceViewStatusesSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetIPConfiguration describes a virtual machine scale set network profile's IP // configuration. type VirtualMachineScaleSetIPConfiguration struct { @@ -4983,6 +5019,12 @@ type VirtualMachineScaleSetSku struct { Capacity *VirtualMachineScaleSetSkuCapacity `json:"capacity,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetSku. +func (vmsss VirtualMachineScaleSetSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetSkuCapacity describes scaling information of a sku. type VirtualMachineScaleSetSkuCapacity struct { // Minimum - READ-ONLY; The minimum capacity. @@ -4995,6 +5037,12 @@ type VirtualMachineScaleSetSkuCapacity struct { ScaleType VirtualMachineScaleSetSkuScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetSkuCapacity. +func (vmsssc VirtualMachineScaleSetSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetsPowerOffFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type VirtualMachineScaleSetsPowerOffFuture struct { @@ -5419,6 +5467,12 @@ type VirtualMachineScaleSetVMExtensionsSummary struct { StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetVMExtensionsSummary. +func (vmssves VirtualMachineScaleSetVMExtensionsSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetVMInstanceIDs specifies a list of virtual machine instance IDs from the VM scale // set. type VirtualMachineScaleSetVMInstanceIDs struct { @@ -6402,6 +6456,12 @@ type VirtualMachineStatusCodeCount struct { Count *int32 `json:"count,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineStatusCodeCount. +func (vmscc VirtualMachineStatusCodeCount) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WindowsConfiguration specifies Windows operating system settings on the virtual machine. type WindowsConfiguration struct { // ProvisionVMAgent - Indicates whether virtual machine agent should be provisioned on the virtual machine.

    When this property is not specified in the request body, default behavior is to set it to true. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later. diff --git a/services/preview/compute/mgmt/2020-10-01-preview/compute/CHANGELOG.md b/services/preview/compute/mgmt/2020-10-01-preview/compute/CHANGELOG.md index 52911e4cc5e4..94e1f4509adc 100644 --- a/services/preview/compute/mgmt/2020-10-01-preview/compute/CHANGELOG.md +++ b/services/preview/compute/mgmt/2020-10-01-preview/compute/CHANGELOG.md @@ -1,2 +1,58 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccessURI.MarshalJSON() ([]byte, error) +1. AvailablePatchSummary.MarshalJSON() ([]byte, error) +1. BootDiagnosticsInstanceView.MarshalJSON() ([]byte, error) +1. CloudServiceRoleProperties.MarshalJSON() ([]byte, error) +1. DataDiskImage.MarshalJSON() ([]byte, error) +1. DiskAccessProperties.MarshalJSON() ([]byte, error) +1. GalleryIdentifier.MarshalJSON() ([]byte, error) +1. InstanceSku.MarshalJSON() ([]byte, error) +1. InstanceViewStatusesSummary.MarshalJSON() ([]byte, error) +1. LastPatchInstallationSummary.MarshalJSON() ([]byte, error) +1. LogAnalyticsOperationResult.MarshalJSON() ([]byte, error) +1. LogAnalyticsOutput.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OperationValueDisplay.MarshalJSON() ([]byte, error) +1. OrchestrationServiceSummary.MarshalJSON() ([]byte, error) +1. PrivateEndpoint.MarshalJSON() ([]byte, error) +1. ProxyOnlyResource.MarshalJSON() ([]byte, error) +1. RecoveryWalkResponse.MarshalJSON() ([]byte, error) +1. RegionalReplicationStatus.MarshalJSON() ([]byte, error) +1. ReplicationStatus.MarshalJSON() ([]byte, error) +1. ResourceSku.MarshalJSON() ([]byte, error) +1. ResourceSkuCapabilities.MarshalJSON() ([]byte, error) +1. ResourceSkuCapacity.MarshalJSON() ([]byte, error) +1. ResourceSkuCosts.MarshalJSON() ([]byte, error) +1. ResourceSkuLocationInfo.MarshalJSON() ([]byte, error) +1. ResourceSkuRestrictionInfo.MarshalJSON() ([]byte, error) +1. ResourceSkuRestrictions.MarshalJSON() ([]byte, error) +1. ResourceSkuZoneDetails.MarshalJSON() ([]byte, error) +1. RetrieveBootDiagnosticsDataResult.MarshalJSON() ([]byte, error) +1. RoleInstanceInstanceView.MarshalJSON() ([]byte, error) +1. RoleInstanceNetworkProfile.MarshalJSON() ([]byte, error) +1. RollbackStatusInfo.MarshalJSON() ([]byte, error) +1. RollingUpgradeProgressInfo.MarshalJSON() ([]byte, error) +1. RollingUpgradeRunningStatus.MarshalJSON() ([]byte, error) +1. RollingUpgradeStatusInfoProperties.MarshalJSON() ([]byte, error) +1. ShareInfoElement.MarshalJSON() ([]byte, error) +1. StatusCodeCount.MarshalJSON() ([]byte, error) +1. SubResourceReadOnly.MarshalJSON() ([]byte, error) +1. UpdateDomain.MarshalJSON() ([]byte, error) +1. UpgradeOperationHistoricalStatusInfo.MarshalJSON() ([]byte, error) +1. UpgradeOperationHistoricalStatusInfoProperties.MarshalJSON() ([]byte, error) +1. UpgradeOperationHistoryStatus.MarshalJSON() ([]byte, error) +1. VirtualMachineAssessPatchesResult.MarshalJSON() ([]byte, error) +1. VirtualMachineHealthStatus.MarshalJSON() ([]byte, error) +1. VirtualMachineIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetInstanceViewStatusesSummary.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetSku.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetSkuCapacity.MarshalJSON() ([]byte, error) +1. VirtualMachineScaleSetVMExtensionsSummary.MarshalJSON() ([]byte, error) +1. VirtualMachineSoftwarePatchProperties.MarshalJSON() ([]byte, error) +1. VirtualMachineStatusCodeCount.MarshalJSON() ([]byte, error) diff --git a/services/preview/compute/mgmt/2020-10-01-preview/compute/_meta.json b/services/preview/compute/mgmt/2020-10-01-preview/compute/_meta.json index a7b9ea16c7f3..a64ffcf16091 100644 --- a/services/preview/compute/mgmt/2020-10-01-preview/compute/_meta.json +++ b/services/preview/compute/mgmt/2020-10-01-preview/compute/_meta.json @@ -2,9 +2,9 @@ "commit": "0b17e6a5e811fd7b122d383b4942441d95e5e8cf", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-2020-10-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-10-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-10-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/compute/mgmt/2020-10-01-preview/compute/models.go b/services/preview/compute/mgmt/2020-10-01-preview/compute/models.go index f50a0936abc4..f72051c4b3b2 100644 --- a/services/preview/compute/mgmt/2020-10-01-preview/compute/models.go +++ b/services/preview/compute/mgmt/2020-10-01-preview/compute/models.go @@ -28,6 +28,12 @@ type AccessURI struct { AccessSAS *string `json:"accessSAS,omitempty"` } +// MarshalJSON is the custom marshaler for AccessURI. +func (au AccessURI) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AdditionalCapabilities enables or disables a capability on the virtual machine or virtual machine scale // set. type AdditionalCapabilities struct { @@ -504,6 +510,12 @@ type AvailablePatchSummary struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for AvailablePatchSummary. +func (aps AvailablePatchSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BillingProfile specifies the billing related details of a Azure Spot VM or VMSS.

    Minimum // api-version: 2019-03-01. type BillingProfile struct { @@ -531,6 +543,12 @@ type BootDiagnosticsInstanceView struct { Status *InstanceViewStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for BootDiagnosticsInstanceView. +func (bdiv BootDiagnosticsInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from the Compute service. type CloudError struct { Error *APIError `json:"error,omitempty"` @@ -1231,6 +1249,12 @@ type CloudServiceRoleProperties struct { UniqueID *string `json:"uniqueId,omitempty"` } +// MarshalJSON is the custom marshaler for CloudServiceRoleProperties. +func (csrp CloudServiceRoleProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudServiceRoleSku describes the cloud service role sku. type CloudServiceRoleSku struct { // Name - The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete and recreate the cloud service or move back to the old sku. @@ -2298,6 +2322,12 @@ type DataDiskImage struct { Lun *int32 `json:"lun,omitempty"` } +// MarshalJSON is the custom marshaler for DataDiskImage. +func (ddi DataDiskImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DataDiskImageEncryption contains encryption settings for a data disk image. type DataDiskImageEncryption struct { // Lun - This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine. @@ -3887,6 +3917,12 @@ type DiskAccessProperties struct { TimeCreated *date.Time `json:"timeCreated,omitempty"` } +// MarshalJSON is the custom marshaler for DiskAccessProperties. +func (dap DiskAccessProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DiskAccessUpdate used for updating a disk access resource. type DiskAccessUpdate struct { // Tags - Resource tags @@ -6672,6 +6708,12 @@ type GalleryIdentifier struct { UniqueName *string `json:"uniqueName,omitempty"` } +// MarshalJSON is the custom marshaler for GalleryIdentifier. +func (gi GalleryIdentifier) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GalleryImage specifies information about the gallery Image Definition that you want to create or update. type GalleryImage struct { autorest.Response `json:"-"` @@ -8658,6 +8700,12 @@ type InstanceSku struct { Tier *string `json:"tier,omitempty"` } +// MarshalJSON is the custom marshaler for InstanceSku. +func (is InstanceSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InstanceViewStatus instance view status. type InstanceViewStatus struct { // Code - The status code. @@ -8678,6 +8726,12 @@ type InstanceViewStatusesSummary struct { StatusesSummary *[]StatusCodeCount `json:"statusesSummary,omitempty"` } +// MarshalJSON is the custom marshaler for InstanceViewStatusesSummary. +func (ivss InstanceViewStatusesSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // KeyForDiskEncryptionSet key Vault Key Url to be used for server side encryption of Managed Disks and // Snapshots type KeyForDiskEncryptionSet struct { @@ -8750,6 +8804,12 @@ type LastPatchInstallationSummary struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for LastPatchInstallationSummary. +func (lpis LastPatchInstallationSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LinuxConfiguration specifies the Linux operating system settings on the virtual machine.

    For a // list of supported Linux distributions, see [Linux on Azure-Endorsed // Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-endorsed-distros?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json) @@ -9075,12 +9135,24 @@ type LogAnalyticsOperationResult struct { Properties *LogAnalyticsOutput `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for LogAnalyticsOperationResult. +func (laor LogAnalyticsOperationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LogAnalyticsOutput logAnalytics output properties type LogAnalyticsOutput struct { // Output - READ-ONLY; Output file Uri path to blob container. Output *string `json:"output,omitempty"` } +// MarshalJSON is the custom marshaler for LogAnalyticsOutput. +func (lao LogAnalyticsOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MaintenanceRedeployStatus maintenance Operation Status. type MaintenanceRedeployStatus struct { // IsCustomerInitiatedMaintenanceAllowed - True, if customer is allowed to perform Maintenance. @@ -9186,6 +9258,12 @@ type OperationListResult struct { Value *[]OperationValue `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationValue describes the properties of a Compute Operation value. type OperationValue struct { // Origin - READ-ONLY; The origin of the compute operation. @@ -9258,6 +9336,12 @@ type OperationValueDisplay struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationValueDisplay. +func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OrchestrationServiceStateInput the input for OrchestrationServiceState type OrchestrationServiceStateInput struct { // ServiceName - The name of the service. Possible values include: 'AutomaticRepairs' @@ -9274,6 +9358,12 @@ type OrchestrationServiceSummary struct { ServiceState OrchestrationServiceState `json:"serviceState,omitempty"` } +// MarshalJSON is the custom marshaler for OrchestrationServiceSummary. +func (oss OrchestrationServiceSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OSDisk specifies information about the operating system disk used by the virtual machine.

    For // more information about disks, see [About disks and VHDs for Azure virtual // machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). @@ -9365,6 +9455,12 @@ type PrivateEndpoint struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpoint. +func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection the Private Endpoint Connection resource. type PrivateEndpointConnection struct { autorest.Response `json:"-"` @@ -10029,6 +10125,12 @@ type ProxyOnlyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyOnlyResource. +func (por ProxyOnlyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PurchasePlan used for establishing the purchase context of any 3rd Party artifact through MarketPlace. type PurchasePlan struct { // Publisher - The publisher ID. @@ -10063,6 +10165,12 @@ type RecoveryWalkResponse struct { NextPlatformUpdateDomain *int32 `json:"nextPlatformUpdateDomain,omitempty"` } +// MarshalJSON is the custom marshaler for RecoveryWalkResponse. +func (rwr RecoveryWalkResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegionalReplicationStatus this is the regional replication status. type RegionalReplicationStatus struct { // Region - READ-ONLY; The region to which the gallery Image Version is being replicated to. @@ -10075,6 +10183,12 @@ type RegionalReplicationStatus struct { Progress *int32 `json:"progress,omitempty"` } +// MarshalJSON is the custom marshaler for RegionalReplicationStatus. +func (rrs RegionalReplicationStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReplicationStatus this is the replication status of the gallery Image Version. type ReplicationStatus struct { // AggregatedState - READ-ONLY; This is the aggregated replication status based on all the regional replication status flags. Possible values include: 'Unknown', 'InProgress', 'Completed', 'Failed' @@ -10083,6 +10197,12 @@ type ReplicationStatus struct { Summary *[]RegionalReplicationStatus `json:"summary,omitempty"` } +// MarshalJSON is the custom marshaler for ReplicationStatus. +func (rs ReplicationStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RequestRateByIntervalInput api request input for LogAnalytics getRequestRateByInterval Api. type RequestRateByIntervalInput struct { // IntervalLength - Interval value in minutes used to create LogAnalytics call rate logs. Possible values include: 'ThreeMins', 'FiveMins', 'ThirtyMins', 'SixtyMins' @@ -10192,6 +10312,12 @@ type ResourceSku struct { Restrictions *[]ResourceSkuRestrictions `json:"restrictions,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSku. +func (rs ResourceSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCapabilities describes The SKU capabilities object. type ResourceSkuCapabilities struct { // Name - READ-ONLY; An invariant to describe the feature. @@ -10200,6 +10326,12 @@ type ResourceSkuCapabilities struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapabilities. +func (rsc ResourceSkuCapabilities) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCapacity describes scaling information of a SKU. type ResourceSkuCapacity struct { // Minimum - READ-ONLY; The minimum capacity. @@ -10212,6 +10344,12 @@ type ResourceSkuCapacity struct { ScaleType ResourceSkuCapacityScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapacity. +func (rsc ResourceSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCosts describes metadata for retrieving price info. type ResourceSkuCosts struct { // MeterID - READ-ONLY; Used for querying price from commerce. @@ -10222,6 +10360,12 @@ type ResourceSkuCosts struct { ExtendedUnit *string `json:"extendedUnit,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCosts. +func (rsc ResourceSkuCosts) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuLocationInfo ... type ResourceSkuLocationInfo struct { // Location - READ-ONLY; Location of the SKU @@ -10232,6 +10376,12 @@ type ResourceSkuLocationInfo struct { ZoneDetails *[]ResourceSkuZoneDetails `json:"zoneDetails,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuLocationInfo. +func (rsli ResourceSkuLocationInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuRestrictionInfo ... type ResourceSkuRestrictionInfo struct { // Locations - READ-ONLY; Locations where the SKU is restricted @@ -10240,6 +10390,12 @@ type ResourceSkuRestrictionInfo struct { Zones *[]string `json:"zones,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuRestrictionInfo. +func (rsri ResourceSkuRestrictionInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuRestrictions describes scaling information of a SKU. type ResourceSkuRestrictions struct { // Type - READ-ONLY; The type of restrictions. Possible values include: 'Location', 'Zone' @@ -10252,6 +10408,12 @@ type ResourceSkuRestrictions struct { ReasonCode ResourceSkuRestrictionsReasonCode `json:"reasonCode,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuRestrictions. +func (rsr ResourceSkuRestrictions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkusResult the List Resource Skus operation response. type ResourceSkusResult struct { autorest.Response `json:"-"` @@ -10419,6 +10581,12 @@ type ResourceSkuZoneDetails struct { Capabilities *[]ResourceSkuCapabilities `json:"capabilities,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuZoneDetails. +func (rszd ResourceSkuZoneDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceURIList the List resources which are encrypted with the disk encryption set. type ResourceURIList struct { autorest.Response `json:"-"` @@ -10587,6 +10755,12 @@ type RetrieveBootDiagnosticsDataResult struct { SerialConsoleLogBlobURI *string `json:"serialConsoleLogBlobUri,omitempty"` } +// MarshalJSON is the custom marshaler for RetrieveBootDiagnosticsDataResult. +func (rbddr RetrieveBootDiagnosticsDataResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RoleInstance ... type RoleInstance struct { autorest.Response `json:"-"` @@ -10629,6 +10803,12 @@ type RoleInstanceInstanceView struct { Statuses *[]ResourceInstanceViewStatus `json:"statuses,omitempty"` } +// MarshalJSON is the custom marshaler for RoleInstanceInstanceView. +func (riiv RoleInstanceInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RoleInstanceListResult ... type RoleInstanceListResult struct { autorest.Response `json:"-"` @@ -10792,6 +10972,12 @@ type RoleInstanceNetworkProfile struct { NetworkInterfaces *[]SubResource `json:"networkInterfaces,omitempty"` } +// MarshalJSON is the custom marshaler for RoleInstanceNetworkProfile. +func (rinp RoleInstanceNetworkProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RoleInstanceProperties ... type RoleInstanceProperties struct { NetworkProfile *RoleInstanceNetworkProfile `json:"networkProfile,omitempty"` @@ -10814,6 +11000,12 @@ type RollbackStatusInfo struct { RollbackError *APIError `json:"rollbackError,omitempty"` } +// MarshalJSON is the custom marshaler for RollbackStatusInfo. +func (rsi RollbackStatusInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollingUpgradePolicy the configuration parameters used while performing a rolling upgrade. type RollingUpgradePolicy struct { // MaxBatchInstancePercent - The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The default value for this parameter is 20%. @@ -10839,6 +11031,12 @@ type RollingUpgradeProgressInfo struct { PendingInstanceCount *int32 `json:"pendingInstanceCount,omitempty"` } +// MarshalJSON is the custom marshaler for RollingUpgradeProgressInfo. +func (rupi RollingUpgradeProgressInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollingUpgradeRunningStatus information about the current running state of the overall upgrade. type RollingUpgradeRunningStatus struct { // Code - READ-ONLY; Code indicating the current status of the upgrade. Possible values include: 'RollingUpgradeStatusCodeRollingForward', 'RollingUpgradeStatusCodeCancelled', 'RollingUpgradeStatusCodeCompleted', 'RollingUpgradeStatusCodeFaulted' @@ -10851,6 +11049,12 @@ type RollingUpgradeRunningStatus struct { LastActionTime *date.Time `json:"lastActionTime,omitempty"` } +// MarshalJSON is the custom marshaler for RollingUpgradeRunningStatus. +func (rurs RollingUpgradeRunningStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollingUpgradeStatusInfo the status of the latest virtual machine scale set rolling upgrade. type RollingUpgradeStatusInfo struct { autorest.Response `json:"-"` @@ -10963,6 +11167,12 @@ type RollingUpgradeStatusInfoProperties struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for RollingUpgradeStatusInfoProperties. +func (rusip RollingUpgradeStatusInfoProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RunCommandDocument describes the properties of a Run Command. type RunCommandDocument struct { autorest.Response `json:"-"` @@ -11217,6 +11427,12 @@ type ShareInfoElement struct { VMURI *string `json:"vmUri,omitempty"` } +// MarshalJSON is the custom marshaler for ShareInfoElement. +func (sie ShareInfoElement) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Sku describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware // the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU // name. @@ -12263,6 +12479,12 @@ type StatusCodeCount struct { Count *int32 `json:"count,omitempty"` } +// MarshalJSON is the custom marshaler for StatusCodeCount. +func (scc StatusCodeCount) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageProfile specifies the storage settings for the virtual machine disks. type StorageProfile struct { // ImageReference - Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. @@ -12285,6 +12507,12 @@ type SubResourceReadOnly struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for SubResourceReadOnly. +func (srro SubResourceReadOnly) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SubResourceWithColocationStatus ... type SubResourceWithColocationStatus struct { // ColocationStatus - Describes colocation status of a resource in the Proximity Placement Group. @@ -12341,6 +12569,12 @@ type UpdateDomain struct { Name *string `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for UpdateDomain. +func (ud UpdateDomain) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpdateDomainListResult ... type UpdateDomainListResult struct { autorest.Response `json:"-"` @@ -12544,6 +12778,12 @@ type UpgradeOperationHistoricalStatusInfo struct { Location *string `json:"location,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeOperationHistoricalStatusInfo. +func (uohsi UpgradeOperationHistoricalStatusInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpgradeOperationHistoricalStatusInfoProperties describes each OS upgrade on the Virtual Machine Scale // Set. type UpgradeOperationHistoricalStatusInfoProperties struct { @@ -12561,6 +12801,12 @@ type UpgradeOperationHistoricalStatusInfoProperties struct { RollbackInfo *RollbackStatusInfo `json:"rollbackInfo,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeOperationHistoricalStatusInfoProperties. +func (uohsip UpgradeOperationHistoricalStatusInfoProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpgradeOperationHistoryStatus information about the current running state of the overall upgrade. type UpgradeOperationHistoryStatus struct { // Code - READ-ONLY; Code indicating the current status of the upgrade. Possible values include: 'UpgradeStateRollingForward', 'UpgradeStateCancelled', 'UpgradeStateCompleted', 'UpgradeStateFaulted' @@ -12571,6 +12817,12 @@ type UpgradeOperationHistoryStatus struct { EndTime *date.Time `json:"endTime,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeOperationHistoryStatus. +func (uohs UpgradeOperationHistoryStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpgradePolicy describes an upgrade policy - automatic, manual, or rolling. type UpgradePolicy struct { // Mode - Specifies the mode of an upgrade to virtual machines in the scale set.

    Possible values are:

    **Manual** - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.

    **Automatic** - All virtual machines in the scale set are automatically updated at the same time. Possible values include: 'UpgradeModeAutomatic', 'UpgradeModeManual', 'UpgradeModeRolling' @@ -12826,6 +13078,12 @@ type VirtualMachineAssessPatchesResult struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineAssessPatchesResult. +func (vmapr VirtualMachineAssessPatchesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineCaptureParameters capture Virtual Machine parameters. type VirtualMachineCaptureParameters struct { // VhdPrefix - The captured virtual hard disk's name prefix. @@ -13363,6 +13621,12 @@ type VirtualMachineHealthStatus struct { Status *InstanceViewStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineHealthStatus. +func (vmhs VirtualMachineHealthStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineIdentity identity for the virtual machine. type VirtualMachineIdentity struct { // PrincipalID - READ-ONLY; The principal id of virtual machine identity. This property will only be provided for a system assigned identity. @@ -13395,6 +13659,12 @@ type VirtualMachineIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineIdentityUserAssignedIdentitiesValue. +func (vmiAiv VirtualMachineIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineImage describes a Virtual Machine Image. type VirtualMachineImage struct { autorest.Response `json:"-"` @@ -15164,6 +15434,12 @@ type VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue. +func (vmssiAiv VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetInstanceView the instance view of a virtual machine scale set. type VirtualMachineScaleSetInstanceView struct { autorest.Response `json:"-"` @@ -15193,6 +15469,12 @@ type VirtualMachineScaleSetInstanceViewStatusesSummary struct { StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetInstanceViewStatusesSummary. +func (vmssivss VirtualMachineScaleSetInstanceViewStatusesSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetIPConfiguration describes a virtual machine scale set network profile's IP // configuration. type VirtualMachineScaleSetIPConfiguration struct { @@ -16514,6 +16796,12 @@ type VirtualMachineScaleSetSku struct { Capacity *VirtualMachineScaleSetSkuCapacity `json:"capacity,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetSku. +func (vmsss VirtualMachineScaleSetSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetSkuCapacity describes scaling information of a sku. type VirtualMachineScaleSetSkuCapacity struct { // Minimum - READ-ONLY; The minimum capacity. @@ -16526,6 +16814,12 @@ type VirtualMachineScaleSetSkuCapacity struct { ScaleType VirtualMachineScaleSetSkuScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetSkuCapacity. +func (vmsssc VirtualMachineScaleSetSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetsPerformMaintenanceFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type VirtualMachineScaleSetsPerformMaintenanceFuture struct { @@ -17661,6 +17955,12 @@ type VirtualMachineScaleSetVMExtensionsSummary struct { StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetVMExtensionsSummary. +func (vmssves VirtualMachineScaleSetVMExtensionsSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetVMExtensionsUpdateFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type VirtualMachineScaleSetVMExtensionsUpdateFuture struct { @@ -18923,6 +19223,12 @@ type VirtualMachineSoftwarePatchProperties struct { AssessmentState PatchAssessmentState `json:"assessmentState,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineSoftwarePatchProperties. +func (vmspp VirtualMachineSoftwarePatchProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachinesPerformMaintenanceFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type VirtualMachinesPerformMaintenanceFuture struct { @@ -19234,6 +19540,12 @@ type VirtualMachineStatusCodeCount struct { Count *int32 `json:"count,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineStatusCodeCount. +func (vmscc VirtualMachineStatusCodeCount) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachinesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type VirtualMachinesUpdateFuture struct { diff --git a/services/preview/confidentialledger/mgmt/2020-12-01-preview/confidentialledger/CHANGELOG.md b/services/preview/confidentialledger/mgmt/2020-12-01-preview/confidentialledger/CHANGELOG.md index 197b82420285..57f2c4e22a10 100644 --- a/services/preview/confidentialledger/mgmt/2020-12-01-preview/confidentialledger/CHANGELOG.md +++ b/services/preview/confidentialledger/mgmt/2020-12-01-preview/confidentialledger/CHANGELOG.md @@ -1,31 +1,10 @@ # Change History -## Breaking Changes - -### Removed Constants - -1. CreatedByType.Application -1. CreatedByType.Key -1. CreatedByType.ManagedIdentity -1. CreatedByType.User -1. LedgerRoleName.Administrator -1. LedgerRoleName.Contributor -1. LedgerRoleName.Reader -1. LedgerType.Private -1. LedgerType.Public -1. LedgerType.Unknown - ## Additive Changes -### New Constants +### New Funcs -1. CreatedByType.CreatedByTypeApplication -1. CreatedByType.CreatedByTypeKey -1. CreatedByType.CreatedByTypeManagedIdentity -1. CreatedByType.CreatedByTypeUser -1. LedgerRoleName.LedgerRoleNameAdministrator -1. LedgerRoleName.LedgerRoleNameContributor -1. LedgerRoleName.LedgerRoleNameReader -1. LedgerType.LedgerTypePrivate -1. LedgerType.LedgerTypePublic -1. LedgerType.LedgerTypeUnknown +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorDetail.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ResourceProviderOperationList.MarshalJSON() ([]byte, error) diff --git a/services/preview/confidentialledger/mgmt/2020-12-01-preview/confidentialledger/_meta.json b/services/preview/confidentialledger/mgmt/2020-12-01-preview/confidentialledger/_meta.json index 37e0bd16ba54..101734a9a8ba 100644 --- a/services/preview/confidentialledger/mgmt/2020-12-01-preview/confidentialledger/_meta.json +++ b/services/preview/confidentialledger/mgmt/2020-12-01-preview/confidentialledger/_meta.json @@ -2,9 +2,9 @@ "commit": "e5839301dfd424559851119c99ef0a2699fbd228", "readme": "/_/azure-rest-api-specs/specification/confidentialledger/resource-manager/readme.md", "tag": "package-2020-12-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-12-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/confidentialledger/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-12-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/confidentialledger/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix" } diff --git a/services/preview/confidentialledger/mgmt/2020-12-01-preview/confidentialledger/models.go b/services/preview/confidentialledger/mgmt/2020-12-01-preview/confidentialledger/models.go index 45eff9fdff23..d975111e40b6 100644 --- a/services/preview/confidentialledger/mgmt/2020-12-01-preview/confidentialledger/models.go +++ b/services/preview/confidentialledger/mgmt/2020-12-01-preview/confidentialledger/models.go @@ -46,6 +46,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetail the error detail. type ErrorDetail struct { // Code - READ-ONLY; The error code. @@ -60,6 +66,12 @@ type ErrorDetail struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetail. +func (ed ErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.). type ErrorResponse struct { @@ -438,6 +450,12 @@ type Resource struct { SystemData *SystemData `json:"systemData,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceProviderOperationDefinition describes the Resource Provider Operation. type ResourceProviderOperationDefinition struct { // Name - Resource provider operation name. @@ -469,6 +487,12 @@ type ResourceProviderOperationList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceProviderOperationList. +func (rpol ResourceProviderOperationList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceProviderOperationListIterator provides access to a complete listing of // ResourceProviderOperationDefinition values. type ResourceProviderOperationListIterator struct { diff --git a/services/preview/confluent/mgmt/2020-03-01-preview/confluent/CHANGELOG.md b/services/preview/confluent/mgmt/2020-03-01-preview/confluent/CHANGELOG.md index 52911e4cc5e4..c0cb3d541873 100644 --- a/services/preview/confluent/mgmt/2020-03-01-preview/confluent/CHANGELOG.md +++ b/services/preview/confluent/mgmt/2020-03-01-preview/confluent/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. ErrorResponseBody.MarshalJSON() ([]byte, error) +1. ResourceProviderDefaultErrorResponse.MarshalJSON() ([]byte, error) diff --git a/services/preview/confluent/mgmt/2020-03-01-preview/confluent/_meta.json b/services/preview/confluent/mgmt/2020-03-01-preview/confluent/_meta.json index 22a13f245649..8dffb3cdf8f9 100644 --- a/services/preview/confluent/mgmt/2020-03-01-preview/confluent/_meta.json +++ b/services/preview/confluent/mgmt/2020-03-01-preview/confluent/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/confluent/resource-manager/readme.md", "tag": "package-2020-03-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-03-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/confluent/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-03-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/confluent/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/confluent/mgmt/2020-03-01-preview/confluent/models.go b/services/preview/confluent/mgmt/2020-03-01-preview/confluent/models.go index e5ab979945c1..51b8dd037932 100644 --- a/services/preview/confluent/mgmt/2020-03-01-preview/confluent/models.go +++ b/services/preview/confluent/mgmt/2020-03-01-preview/confluent/models.go @@ -233,6 +233,12 @@ type ErrorResponseBody struct { Details *[]ErrorResponseBody `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponseBody. +func (erb ErrorResponseBody) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OfferDetail confluent Offer detail type OfferDetail struct { // PublisherID - Publisher Id @@ -878,6 +884,12 @@ type ResourceProviderDefaultErrorResponse struct { Error *ErrorResponseBody `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceProviderDefaultErrorResponse. +func (rpder ResourceProviderDefaultErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UserDetail subscriber detail type UserDetail struct { // FirstName - First name diff --git a/services/preview/confluent/mgmt/2021-03-01-preview/confluent/CHANGELOG.md b/services/preview/confluent/mgmt/2021-03-01-preview/confluent/CHANGELOG.md index 52911e4cc5e4..c0cb3d541873 100644 --- a/services/preview/confluent/mgmt/2021-03-01-preview/confluent/CHANGELOG.md +++ b/services/preview/confluent/mgmt/2021-03-01-preview/confluent/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. ErrorResponseBody.MarshalJSON() ([]byte, error) +1. ResourceProviderDefaultErrorResponse.MarshalJSON() ([]byte, error) diff --git a/services/preview/confluent/mgmt/2021-03-01-preview/confluent/_meta.json b/services/preview/confluent/mgmt/2021-03-01-preview/confluent/_meta.json index 676de79ae367..ce023d7db3fc 100644 --- a/services/preview/confluent/mgmt/2021-03-01-preview/confluent/_meta.json +++ b/services/preview/confluent/mgmt/2021-03-01-preview/confluent/_meta.json @@ -2,9 +2,9 @@ "commit": "225e4a77704766b9b6529c40c2677b22b58da9b9", "readme": "/_/azure-rest-api-specs/specification/confluent/resource-manager/readme.md", "tag": "package-2021-03-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2021-03-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/confluent/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2021-03-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/confluent/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix" } diff --git a/services/preview/confluent/mgmt/2021-03-01-preview/confluent/models.go b/services/preview/confluent/mgmt/2021-03-01-preview/confluent/models.go index 58d654d7aee7..6e8da5bf5ea1 100644 --- a/services/preview/confluent/mgmt/2021-03-01-preview/confluent/models.go +++ b/services/preview/confluent/mgmt/2021-03-01-preview/confluent/models.go @@ -295,6 +295,12 @@ type ErrorResponseBody struct { Details *[]ErrorResponseBody `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponseBody. +func (erb ErrorResponseBody) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OfferDetail confluent Offer detail type OfferDetail struct { // PublisherID - Publisher Id @@ -893,6 +899,12 @@ type ResourceProviderDefaultErrorResponse struct { Error *ErrorResponseBody `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceProviderDefaultErrorResponse. +func (rpder ResourceProviderDefaultErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SystemData metadata pertaining to creation and last modification of the resource. type SystemData struct { // CreatedBy - The identity that created the resource. diff --git a/services/preview/consumption/mgmt/2017-04-24-preview/consumption/CHANGELOG.md b/services/preview/consumption/mgmt/2017-04-24-preview/consumption/CHANGELOG.md index 52911e4cc5e4..8e5150edd81b 100644 --- a/services/preview/consumption/mgmt/2017-04-24-preview/consumption/CHANGELOG.md +++ b/services/preview/consumption/mgmt/2017-04-24-preview/consumption/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. MeterDetails.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. UsageDetailsListResult.MarshalJSON() ([]byte, error) diff --git a/services/preview/consumption/mgmt/2017-04-24-preview/consumption/_meta.json b/services/preview/consumption/mgmt/2017-04-24-preview/consumption/_meta.json index 3dfa1700d97e..de42dee5ee2f 100644 --- a/services/preview/consumption/mgmt/2017-04-24-preview/consumption/_meta.json +++ b/services/preview/consumption/mgmt/2017-04-24-preview/consumption/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/consumption/resource-manager/readme.md", "tag": "package-2017-04-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-04-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/consumption/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-04-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/consumption/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/consumption/mgmt/2017-04-24-preview/consumption/models.go b/services/preview/consumption/mgmt/2017-04-24-preview/consumption/models.go index 3a9b1108a4f5..44cc2c8ddf93 100644 --- a/services/preview/consumption/mgmt/2017-04-24-preview/consumption/models.go +++ b/services/preview/consumption/mgmt/2017-04-24-preview/consumption/models.go @@ -30,6 +30,12 @@ type ErrorDetails struct { Target *string `json:"target,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse error response indicates that the service is not able to process the incoming request. The // reason is provided in the error message. type ErrorResponse struct { @@ -55,6 +61,12 @@ type MeterDetails struct { PretaxStandardRate *decimal.Decimal `json:"pretaxStandardRate,omitempty"` } +// MarshalJSON is the custom marshaler for MeterDetails. +func (md MeterDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation a Consumption REST API operation. type Operation struct { // Name - READ-ONLY; Operation name: {provider}/{resource}/{operation}. @@ -82,6 +94,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of listing consumption operations. It contains a list of operations and a URL // link to get the next set of results. type OperationListResult struct { @@ -92,6 +110,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -392,6 +416,12 @@ type UsageDetailsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for UsageDetailsListResult. +func (udlr UsageDetailsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageDetailsListResultIterator provides access to a complete listing of UsageDetail values. type UsageDetailsListResultIterator struct { i int diff --git a/services/preview/consumption/mgmt/2017-12-30-preview/consumption/CHANGELOG.md b/services/preview/consumption/mgmt/2017-12-30-preview/consumption/CHANGELOG.md index 52911e4cc5e4..2a1f53abf241 100644 --- a/services/preview/consumption/mgmt/2017-12-30-preview/consumption/CHANGELOG.md +++ b/services/preview/consumption/mgmt/2017-12-30-preview/consumption/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. BudgetsListResult.MarshalJSON() ([]byte, error) +1. CurrentSpend.MarshalJSON() ([]byte, error) +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) diff --git a/services/preview/consumption/mgmt/2017-12-30-preview/consumption/_meta.json b/services/preview/consumption/mgmt/2017-12-30-preview/consumption/_meta.json index 16ecdc2049f6..44a1f90a98ca 100644 --- a/services/preview/consumption/mgmt/2017-12-30-preview/consumption/_meta.json +++ b/services/preview/consumption/mgmt/2017-12-30-preview/consumption/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/consumption/resource-manager/readme.md", "tag": "package-2017-12-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-12-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/consumption/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-12-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/consumption/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/consumption/mgmt/2017-12-30-preview/consumption/models.go b/services/preview/consumption/mgmt/2017-12-30-preview/consumption/models.go index 37971e0747f0..f8268c1d84f9 100644 --- a/services/preview/consumption/mgmt/2017-12-30-preview/consumption/models.go +++ b/services/preview/consumption/mgmt/2017-12-30-preview/consumption/models.go @@ -151,6 +151,12 @@ type BudgetsListResult struct { Value *[]Budget `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for BudgetsListResult. +func (blr BudgetsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BudgetTimePeriod the start and end date for a budget. type BudgetTimePeriod struct { // StartDate - The start date for the budget. @@ -167,6 +173,12 @@ type CurrentSpend struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for CurrentSpend. +func (cs CurrentSpend) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetails the details of the error. type ErrorDetails struct { // Code - READ-ONLY; Error code. @@ -175,6 +187,12 @@ type ErrorDetails struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse error response indicates that the service is not able to process the incoming request. The // reason is provided in the error message. type ErrorResponse struct { @@ -223,6 +241,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of listing consumption operations. It contains a list of operations and a URL // link to get the next set of results. type OperationListResult struct { @@ -233,6 +257,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int diff --git a/services/preview/containerinstance/mgmt/2017-08-01-preview/containerinstance/_meta.json b/services/preview/containerinstance/mgmt/2017-08-01-preview/containerinstance/_meta.json index 8dc851af3e41..0bda477bc4cb 100644 --- a/services/preview/containerinstance/mgmt/2017-08-01-preview/containerinstance/_meta.json +++ b/services/preview/containerinstance/mgmt/2017-08-01-preview/containerinstance/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerinstance/resource-manager/readme.md", "tag": "package-2017-08-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-08-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerinstance/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-08-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerinstance/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/containerinstance/mgmt/2017-10-01-preview/containerinstance/CHANGELOG.md b/services/preview/containerinstance/mgmt/2017-10-01-preview/containerinstance/CHANGELOG.md index 52911e4cc5e4..d6841f1e1548 100644 --- a/services/preview/containerinstance/mgmt/2017-10-01-preview/containerinstance/CHANGELOG.md +++ b/services/preview/containerinstance/mgmt/2017-10-01-preview/containerinstance/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. ContainerGroupPropertiesInstanceView.MarshalJSON() ([]byte, error) +1. ContainerPropertiesInstanceView.MarshalJSON() ([]byte, error) diff --git a/services/preview/containerinstance/mgmt/2017-10-01-preview/containerinstance/_meta.json b/services/preview/containerinstance/mgmt/2017-10-01-preview/containerinstance/_meta.json index 71eaae08636c..8d947638abc0 100644 --- a/services/preview/containerinstance/mgmt/2017-10-01-preview/containerinstance/_meta.json +++ b/services/preview/containerinstance/mgmt/2017-10-01-preview/containerinstance/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerinstance/resource-manager/readme.md", "tag": "package-2017-10-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-10-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerinstance/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-10-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerinstance/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/containerinstance/mgmt/2017-10-01-preview/containerinstance/models.go b/services/preview/containerinstance/mgmt/2017-10-01-preview/containerinstance/models.go index 40e3c8d80c20..a1f572ca424c 100644 --- a/services/preview/containerinstance/mgmt/2017-10-01-preview/containerinstance/models.go +++ b/services/preview/containerinstance/mgmt/2017-10-01-preview/containerinstance/models.go @@ -399,6 +399,12 @@ type ContainerGroupPropertiesInstanceView struct { State *string `json:"state,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerGroupPropertiesInstanceView. +func (cgV ContainerGroupPropertiesInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerPort the port exposed on the container instance. type ContainerPort struct { // Protocol - The protocol associated with the port. Possible values include: 'ContainerNetworkProtocolTCP', 'ContainerNetworkProtocolUDP' @@ -461,6 +467,12 @@ type ContainerPropertiesInstanceView struct { Events *[]Event `json:"events,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerPropertiesInstanceView. +func (cpV ContainerPropertiesInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerState the container instance state. type ContainerState struct { // State - The state of the container instance. diff --git a/services/preview/containerinstance/mgmt/2017-12-01-preview/containerinstance/CHANGELOG.md b/services/preview/containerinstance/mgmt/2017-12-01-preview/containerinstance/CHANGELOG.md index 52911e4cc5e4..561c5545ab95 100644 --- a/services/preview/containerinstance/mgmt/2017-12-01-preview/containerinstance/CHANGELOG.md +++ b/services/preview/containerinstance/mgmt/2017-12-01-preview/containerinstance/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. ContainerGroupPropertiesInstanceView.MarshalJSON() ([]byte, error) +1. ContainerPropertiesInstanceView.MarshalJSON() ([]byte, error) +1. Usage.MarshalJSON() ([]byte, error) +1. UsageListResult.MarshalJSON() ([]byte, error) +1. UsageName.MarshalJSON() ([]byte, error) diff --git a/services/preview/containerinstance/mgmt/2017-12-01-preview/containerinstance/_meta.json b/services/preview/containerinstance/mgmt/2017-12-01-preview/containerinstance/_meta.json index 1da0ef2421b8..9e7d45972765 100644 --- a/services/preview/containerinstance/mgmt/2017-12-01-preview/containerinstance/_meta.json +++ b/services/preview/containerinstance/mgmt/2017-12-01-preview/containerinstance/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerinstance/resource-manager/readme.md", "tag": "package-2017-12-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-12-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerinstance/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-12-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerinstance/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/containerinstance/mgmt/2017-12-01-preview/containerinstance/models.go b/services/preview/containerinstance/mgmt/2017-12-01-preview/containerinstance/models.go index 47a376f734a5..51c4ae8962ef 100644 --- a/services/preview/containerinstance/mgmt/2017-12-01-preview/containerinstance/models.go +++ b/services/preview/containerinstance/mgmt/2017-12-01-preview/containerinstance/models.go @@ -399,6 +399,12 @@ type ContainerGroupPropertiesInstanceView struct { State *string `json:"state,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerGroupPropertiesInstanceView. +func (cgV ContainerGroupPropertiesInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerPort the port exposed on the container instance. type ContainerPort struct { // Protocol - The protocol associated with the port. Possible values include: 'ContainerNetworkProtocolTCP', 'ContainerNetworkProtocolUDP' @@ -461,6 +467,12 @@ type ContainerPropertiesInstanceView struct { Events *[]Event `json:"events,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerPropertiesInstanceView. +func (cpV ContainerPropertiesInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerState the container instance state. type ContainerState struct { // State - The state of the container instance. @@ -638,6 +650,12 @@ type Usage struct { Name *UsageName `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for Usage. +func (u Usage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageListResult the response containing the usage data type UsageListResult struct { autorest.Response `json:"-"` @@ -645,6 +663,12 @@ type UsageListResult struct { Value *[]Usage `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for UsageListResult. +func (ulr UsageListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageName the name object of the resource type UsageName struct { // Value - READ-ONLY; The name of the resource @@ -653,6 +677,12 @@ type UsageName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for UsageName. +func (u UsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Volume the properties of the volume. type Volume struct { // Name - The name of the volume. diff --git a/services/preview/containerinstance/mgmt/2018-02-01-preview/containerinstance/CHANGELOG.md b/services/preview/containerinstance/mgmt/2018-02-01-preview/containerinstance/CHANGELOG.md index 52911e4cc5e4..561c5545ab95 100644 --- a/services/preview/containerinstance/mgmt/2018-02-01-preview/containerinstance/CHANGELOG.md +++ b/services/preview/containerinstance/mgmt/2018-02-01-preview/containerinstance/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. ContainerGroupPropertiesInstanceView.MarshalJSON() ([]byte, error) +1. ContainerPropertiesInstanceView.MarshalJSON() ([]byte, error) +1. Usage.MarshalJSON() ([]byte, error) +1. UsageListResult.MarshalJSON() ([]byte, error) +1. UsageName.MarshalJSON() ([]byte, error) diff --git a/services/preview/containerinstance/mgmt/2018-02-01-preview/containerinstance/_meta.json b/services/preview/containerinstance/mgmt/2018-02-01-preview/containerinstance/_meta.json index 0fa80d294671..b369281ab36e 100644 --- a/services/preview/containerinstance/mgmt/2018-02-01-preview/containerinstance/_meta.json +++ b/services/preview/containerinstance/mgmt/2018-02-01-preview/containerinstance/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerinstance/resource-manager/readme.md", "tag": "package-2018-02-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-02-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerinstance/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-02-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerinstance/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/containerinstance/mgmt/2018-02-01-preview/containerinstance/models.go b/services/preview/containerinstance/mgmt/2018-02-01-preview/containerinstance/models.go index 49ee7158da41..a9923d9502b4 100644 --- a/services/preview/containerinstance/mgmt/2018-02-01-preview/containerinstance/models.go +++ b/services/preview/containerinstance/mgmt/2018-02-01-preview/containerinstance/models.go @@ -425,6 +425,12 @@ type ContainerGroupPropertiesInstanceView struct { State *string `json:"state,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerGroupPropertiesInstanceView. +func (cgV ContainerGroupPropertiesInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type ContainerGroupsCreateOrUpdateFuture struct { @@ -530,6 +536,12 @@ type ContainerPropertiesInstanceView struct { Events *[]Event `json:"events,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerPropertiesInstanceView. +func (cpV ContainerPropertiesInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerState the container instance state. type ContainerState struct { // State - The state of the container instance. @@ -729,6 +741,12 @@ type Usage struct { Name *UsageName `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for Usage. +func (u Usage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageListResult the response containing the usage data type UsageListResult struct { autorest.Response `json:"-"` @@ -736,6 +754,12 @@ type UsageListResult struct { Value *[]Usage `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for UsageListResult. +func (ulr UsageListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageName the name object of the resource type UsageName struct { // Value - READ-ONLY; The name of the resource @@ -744,6 +768,12 @@ type UsageName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for UsageName. +func (u UsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Volume the properties of the volume. type Volume struct { // Name - The name of the volume. diff --git a/services/preview/containerregistry/mgmt/2016-06-27-preview/containerregistry/_meta.json b/services/preview/containerregistry/mgmt/2016-06-27-preview/containerregistry/_meta.json index 273294bfe64b..468941e5c878 100644 --- a/services/preview/containerregistry/mgmt/2016-06-27-preview/containerregistry/_meta.json +++ b/services/preview/containerregistry/mgmt/2016-06-27-preview/containerregistry/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerregistry/resource-manager/readme.md", "tag": "package-2016-06-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-06-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerregistry/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-06-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerregistry/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/containerregistry/mgmt/2017-06-01-preview/containerregistry/CHANGELOG.md b/services/preview/containerregistry/mgmt/2017-06-01-preview/containerregistry/CHANGELOG.md index 52911e4cc5e4..44f48f68ff1d 100644 --- a/services/preview/containerregistry/mgmt/2017-06-01-preview/containerregistry/CHANGELOG.md +++ b/services/preview/containerregistry/mgmt/2017-06-01-preview/containerregistry/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. ReplicationProperties.MarshalJSON() ([]byte, error) +1. Status.MarshalJSON() ([]byte, error) diff --git a/services/preview/containerregistry/mgmt/2017-06-01-preview/containerregistry/_meta.json b/services/preview/containerregistry/mgmt/2017-06-01-preview/containerregistry/_meta.json index ef9f09589861..4da1bdbd48b1 100644 --- a/services/preview/containerregistry/mgmt/2017-06-01-preview/containerregistry/_meta.json +++ b/services/preview/containerregistry/mgmt/2017-06-01-preview/containerregistry/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerregistry/resource-manager/readme.md", "tag": "package-2017-06-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-06-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerregistry/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-06-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerregistry/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/containerregistry/mgmt/2017-06-01-preview/containerregistry/models.go b/services/preview/containerregistry/mgmt/2017-06-01-preview/containerregistry/models.go index d429d57d3550..9fe655d6a8cc 100644 --- a/services/preview/containerregistry/mgmt/2017-06-01-preview/containerregistry/models.go +++ b/services/preview/containerregistry/mgmt/2017-06-01-preview/containerregistry/models.go @@ -1320,6 +1320,12 @@ type ReplicationProperties struct { Status *Status `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for ReplicationProperties. +func (rp ReplicationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReplicationsCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ReplicationsCreateFuture struct { @@ -1534,6 +1540,12 @@ type Status struct { Timestamp *date.Time `json:"timestamp,omitempty"` } +// MarshalJSON is the custom marshaler for Status. +func (s Status) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageAccountProperties the properties of a storage account for a container registry. Only applicable // to Basic SKU. type StorageAccountProperties struct { diff --git a/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/CHANGELOG.md b/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/CHANGELOG.md index 52911e4cc5e4..2ca630d29da8 100644 --- a/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/CHANGELOG.md +++ b/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. ProxyResource.MarshalJSON() ([]byte, error) +1. ReplicationProperties.MarshalJSON() ([]byte, error) +1. Status.MarshalJSON() ([]byte, error) diff --git a/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/_meta.json b/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/_meta.json index 36d34b79fa31..09c1dd3f5a01 100644 --- a/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/_meta.json +++ b/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerregistry/resource-manager/readme.md", "tag": "package-2018-02-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-02-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerregistry/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-02-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerregistry/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/models.go b/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/models.go index 44408a12461a..5ff664e860c3 100644 --- a/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/models.go +++ b/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/models.go @@ -2495,6 +2495,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QuarantinePolicy an object that represents quarantine policy for a container registry. type QuarantinePolicy struct { // Status - The value that indicates whether the policy is enabled or not. Possible values include: 'PolicyStatusEnabled', 'PolicyStatusDisabled' @@ -3630,6 +3636,12 @@ type ReplicationProperties struct { Status *Status `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for ReplicationProperties. +func (rp ReplicationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReplicationsCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ReplicationsCreateFuture struct { @@ -3888,6 +3900,12 @@ type Status struct { Timestamp *date.Time `json:"timestamp,omitempty"` } +// MarshalJSON is the custom marshaler for Status. +func (s Status) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageAccountProperties the properties of a storage account for a container registry. Only applicable // to Classic SKU. type StorageAccountProperties struct { diff --git a/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/CHANGELOG.md b/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/CHANGELOG.md index 52911e4cc5e4..2ca630d29da8 100644 --- a/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/CHANGELOG.md +++ b/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. ProxyResource.MarshalJSON() ([]byte, error) +1. ReplicationProperties.MarshalJSON() ([]byte, error) +1. Status.MarshalJSON() ([]byte, error) diff --git a/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/_meta.json b/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/_meta.json index 2035f24f4e5f..9c0624b26662 100644 --- a/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/_meta.json +++ b/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerregistry/resource-manager/readme.md", "tag": "package-2019-06-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-06-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerregistry/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-06-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerregistry/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/models.go b/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/models.go index 01eaca13279f..cafb3b509280 100644 --- a/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/models.go +++ b/services/preview/containerregistry/mgmt/2019-06-01-preview/containerregistry/models.go @@ -2187,6 +2187,12 @@ type ProxyResource struct { SystemData *SystemData `json:"systemData,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QuarantinePolicy the quarantine policy for a container registry. type QuarantinePolicy struct { // Status - The value that indicates whether the policy is enabled or not. Possible values include: 'Enabled', 'Disabled' @@ -3179,6 +3185,12 @@ type ReplicationProperties struct { Status *Status `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for ReplicationProperties. +func (rp ReplicationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReplicationsCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ReplicationsCreateFuture struct { @@ -4558,6 +4570,12 @@ type Status struct { Timestamp *date.Time `json:"timestamp,omitempty"` } +// MarshalJSON is the custom marshaler for Status. +func (s Status) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageAccountProperties the properties of a storage account for a container registry. Only applicable // to Classic SKU. type StorageAccountProperties struct { diff --git a/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/CHANGELOG.md b/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/CHANGELOG.md index 52911e4cc5e4..d87381e9f3bd 100644 --- a/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/CHANGELOG.md +++ b/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Status.MarshalJSON() ([]byte, error) diff --git a/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/_meta.json b/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/_meta.json index 3f54433f3d99..6142322170d0 100644 --- a/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/_meta.json +++ b/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerregistry/resource-manager/readme.md", "tag": "package-2019-12-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-12-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerregistry/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-12-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerregistry/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/models.go b/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/models.go index 0286b02bf766..4218f9802d6e 100644 --- a/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/models.go +++ b/services/preview/containerregistry/mgmt/2019-12-01-preview/containerregistry/models.go @@ -4043,6 +4043,12 @@ type ProxyResource struct { SystemData *SystemData `json:"systemData,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QuarantinePolicy the quarantine policy for a container registry. type QuarantinePolicy struct { // Status - The value that indicates whether the policy is enabled or not. Possible values include: 'PolicyStatusEnabled', 'PolicyStatusDisabled' @@ -6522,6 +6528,12 @@ type Status struct { Timestamp *date.Time `json:"timestamp,omitempty"` } +// MarshalJSON is the custom marshaler for Status. +func (s Status) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageAccountProperties the properties of a storage account for a container registry. Only applicable // to Classic SKU. type StorageAccountProperties struct { diff --git a/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/CHANGELOG.md b/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/CHANGELOG.md index 52911e4cc5e4..eceb30e16b09 100644 --- a/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/CHANGELOG.md +++ b/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/CHANGELOG.md @@ -1,2 +1,13 @@ # Change History +## Additive Changes + +### New Funcs + +1. ActivationProperties.MarshalJSON() ([]byte, error) +1. LoginServerProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Status.MarshalJSON() ([]byte, error) +1. StatusDetailProperties.MarshalJSON() ([]byte, error) +1. TLSCertificateProperties.MarshalJSON() ([]byte, error) +1. TLSProperties.MarshalJSON() ([]byte, error) diff --git a/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/_meta.json b/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/_meta.json index 7e0718582ceb..8b4e8bfe53df 100644 --- a/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/_meta.json +++ b/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerregistry/resource-manager/readme.md", "tag": "package-2020-11-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-11-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerregistry/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-11-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerregistry/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/models.go b/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/models.go index 100ca56a0afc..9b628495e992 100644 --- a/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/models.go +++ b/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/models.go @@ -26,6 +26,12 @@ type ActivationProperties struct { Status ActivationStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for ActivationProperties. +func (ap ActivationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ActiveDirectoryObject the Active Directory Object that will be used for authenticating the token of a // container registry. type ActiveDirectoryObject struct { @@ -3168,6 +3174,12 @@ type LoginServerProperties struct { TLS *TLSProperties `json:"tls,omitempty"` } +// MarshalJSON is the custom marshaler for LoginServerProperties. +func (lsp LoginServerProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NetworkRuleSet the network rule set for a container registry. type NetworkRuleSet struct { // DefaultAction - The default action of allow or deny when no other rules match. Possible values include: 'DefaultActionAllow', 'DefaultActionDeny' @@ -4573,6 +4585,12 @@ type ProxyResource struct { SystemData *SystemData `json:"systemData,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QuarantinePolicy the quarantine policy for a container registry. type QuarantinePolicy struct { // Status - The value that indicates whether the policy is enabled or not. Possible values include: 'PolicyStatusEnabled', 'PolicyStatusDisabled' @@ -7069,6 +7087,12 @@ type Status struct { Timestamp *date.Time `json:"timestamp,omitempty"` } +// MarshalJSON is the custom marshaler for Status. +func (s Status) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StatusDetailProperties the status detail properties of the connected registry. type StatusDetailProperties struct { // Type - READ-ONLY; The component of the connected registry corresponding to the status. @@ -7083,6 +7107,12 @@ type StatusDetailProperties struct { CorrelationID *string `json:"correlationId,omitempty"` } +// MarshalJSON is the custom marshaler for StatusDetailProperties. +func (sdp StatusDetailProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageAccountProperties the properties of a storage account for a container registry. Only applicable // to Classic SKU. type StorageAccountProperties struct { @@ -8852,6 +8882,12 @@ type TLSCertificateProperties struct { Location *string `json:"location,omitempty"` } +// MarshalJSON is the custom marshaler for TLSCertificateProperties. +func (TCP TLSCertificateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TLSProperties the TLS properties of the connected registry login server. type TLSProperties struct { // Status - READ-ONLY; Indicates whether HTTPS is enabled for the login server. Possible values include: 'TLSStatusEnabled', 'TLSStatusDisabled' @@ -8860,6 +8896,12 @@ type TLSProperties struct { Certificate *TLSCertificateProperties `json:"certificate,omitempty"` } +// MarshalJSON is the custom marshaler for TLSProperties. +func (tp TLSProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Token an object that represents a token for a container registry. type Token struct { autorest.Response `json:"-"` diff --git a/services/preview/containerregistry/runtime/2019-07/containerregistry/_meta.json b/services/preview/containerregistry/runtime/2019-07/containerregistry/_meta.json index 760328369ba0..5670068219f2 100644 --- a/services/preview/containerregistry/runtime/2019-07/containerregistry/_meta.json +++ b/services/preview/containerregistry/runtime/2019-07/containerregistry/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerregistry/data-plane/readme.md", "tag": "package-2019-07", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerregistry/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerregistry/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/containerregistry/runtime/2019-08-15-preview/containerregistry/_meta.json b/services/preview/containerregistry/runtime/2019-08-15-preview/containerregistry/_meta.json index 8bb6b82ce1f9..70f8146ccfb4 100644 --- a/services/preview/containerregistry/runtime/2019-08-15-preview/containerregistry/_meta.json +++ b/services/preview/containerregistry/runtime/2019-08-15-preview/containerregistry/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerregistry/data-plane/readme.md", "tag": "package-2019-08", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerregistry/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerregistry/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/containerservice/mgmt/2015-11-01-preview/containerservice/_meta.json b/services/preview/containerservice/mgmt/2015-11-01-preview/containerservice/_meta.json index 4891f865e520..8321470f30f7 100644 --- a/services/preview/containerservice/mgmt/2015-11-01-preview/containerservice/_meta.json +++ b/services/preview/containerservice/mgmt/2015-11-01-preview/containerservice/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-container-service-2015-11-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-container-service-2015-11-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-container-service-2015-11-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/containerservice/mgmt/2018-08-01-preview/containerservice/CHANGELOG.md b/services/preview/containerservice/mgmt/2018-08-01-preview/containerservice/CHANGELOG.md index 52911e4cc5e4..64928cff9f6a 100644 --- a/services/preview/containerservice/mgmt/2018-08-01-preview/containerservice/CHANGELOG.md +++ b/services/preview/containerservice/mgmt/2018-08-01-preview/containerservice/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. CredentialResult.MarshalJSON() ([]byte, error) +1. CredentialResults.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OperationValueDisplay.MarshalJSON() ([]byte, error) diff --git a/services/preview/containerservice/mgmt/2018-08-01-preview/containerservice/_meta.json b/services/preview/containerservice/mgmt/2018-08-01-preview/containerservice/_meta.json index e527dc4e38e0..5eb4f5555e7e 100644 --- a/services/preview/containerservice/mgmt/2018-08-01-preview/containerservice/_meta.json +++ b/services/preview/containerservice/mgmt/2018-08-01-preview/containerservice/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "tag": "package-2018-08-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-08-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-08-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/containerservice/mgmt/2018-08-01-preview/containerservice/models.go b/services/preview/containerservice/mgmt/2018-08-01-preview/containerservice/models.go index db00cef049e3..b54914805639 100644 --- a/services/preview/containerservice/mgmt/2018-08-01-preview/containerservice/models.go +++ b/services/preview/containerservice/mgmt/2018-08-01-preview/containerservice/models.go @@ -289,6 +289,12 @@ type CredentialResult struct { Value *[]byte `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResult. +func (cr CredentialResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CredentialResults the list of credential result response. type CredentialResults struct { autorest.Response `json:"-"` @@ -296,6 +302,12 @@ type CredentialResults struct { Kubeconfigs *[]CredentialResult `json:"kubeconfigs,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResults. +func (cr CredentialResults) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CustomProfile properties to configure a custom container service cluster. type CustomProfile struct { // Orchestrator - The name of the custom orchestrator to use. @@ -2045,6 +2057,12 @@ type OperationListResult struct { Value *[]OperationValue `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationValue describes the properties of a Compute Operation value. type OperationValue struct { // Origin - READ-ONLY; The origin of the compute operation. @@ -2118,6 +2136,12 @@ type OperationValueDisplay struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationValueDisplay. +func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OrchestratorProfile contains information about orchestrator. type OrchestratorProfile struct { // OrchestratorType - Orchestrator type. diff --git a/services/preview/containerservice/mgmt/2018-09-30-preview/containerservice/CHANGELOG.md b/services/preview/containerservice/mgmt/2018-09-30-preview/containerservice/CHANGELOG.md index 52911e4cc5e4..64928cff9f6a 100644 --- a/services/preview/containerservice/mgmt/2018-09-30-preview/containerservice/CHANGELOG.md +++ b/services/preview/containerservice/mgmt/2018-09-30-preview/containerservice/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. CredentialResult.MarshalJSON() ([]byte, error) +1. CredentialResults.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OperationValueDisplay.MarshalJSON() ([]byte, error) diff --git a/services/preview/containerservice/mgmt/2018-09-30-preview/containerservice/_meta.json b/services/preview/containerservice/mgmt/2018-09-30-preview/containerservice/_meta.json index 5b9bdfd83fca..ae7df0d2100e 100644 --- a/services/preview/containerservice/mgmt/2018-09-30-preview/containerservice/_meta.json +++ b/services/preview/containerservice/mgmt/2018-09-30-preview/containerservice/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "tag": "package-2018-09-30-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-09-30-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-09-30-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/containerservice/mgmt/2018-09-30-preview/containerservice/models.go b/services/preview/containerservice/mgmt/2018-09-30-preview/containerservice/models.go index a7a8590f8aa9..0c26da06d4cd 100644 --- a/services/preview/containerservice/mgmt/2018-09-30-preview/containerservice/models.go +++ b/services/preview/containerservice/mgmt/2018-09-30-preview/containerservice/models.go @@ -289,6 +289,12 @@ type CredentialResult struct { Value *[]byte `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResult. +func (cr CredentialResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CredentialResults the list of credential result response. type CredentialResults struct { autorest.Response `json:"-"` @@ -296,6 +302,12 @@ type CredentialResults struct { Kubeconfigs *[]CredentialResult `json:"kubeconfigs,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResults. +func (cr CredentialResults) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CustomProfile properties to configure a custom container service cluster. type CustomProfile struct { // Orchestrator - The name of the custom orchestrator to use. @@ -2066,6 +2078,12 @@ type OperationListResult struct { Value *[]OperationValue `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationValue describes the properties of a Compute Operation value. type OperationValue struct { // Origin - READ-ONLY; The origin of the compute operation. @@ -2139,6 +2157,12 @@ type OperationValueDisplay struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationValueDisplay. +func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OrchestratorProfile contains information about orchestrator. type OrchestratorProfile struct { // OrchestratorType - Orchestrator type. diff --git a/services/preview/containerservice/mgmt/2019-02-01-preview/containerservice/CHANGELOG.md b/services/preview/containerservice/mgmt/2019-02-01-preview/containerservice/CHANGELOG.md index 52911e4cc5e4..5e6d22160d6d 100644 --- a/services/preview/containerservice/mgmt/2019-02-01-preview/containerservice/CHANGELOG.md +++ b/services/preview/containerservice/mgmt/2019-02-01-preview/containerservice/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. CredentialResult.MarshalJSON() ([]byte, error) +1. CredentialResults.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OperationValueDisplay.MarshalJSON() ([]byte, error) +1. SubResource.MarshalJSON() ([]byte, error) diff --git a/services/preview/containerservice/mgmt/2019-02-01-preview/containerservice/_meta.json b/services/preview/containerservice/mgmt/2019-02-01-preview/containerservice/_meta.json index 6157879b602a..ab10f997ce89 100644 --- a/services/preview/containerservice/mgmt/2019-02-01-preview/containerservice/_meta.json +++ b/services/preview/containerservice/mgmt/2019-02-01-preview/containerservice/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "tag": "package-2019-02", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/containerservice/mgmt/2019-02-01-preview/containerservice/models.go b/services/preview/containerservice/mgmt/2019-02-01-preview/containerservice/models.go index 52b2dc3ebe84..fa61cb7fd402 100644 --- a/services/preview/containerservice/mgmt/2019-02-01-preview/containerservice/models.go +++ b/services/preview/containerservice/mgmt/2019-02-01-preview/containerservice/models.go @@ -610,6 +610,12 @@ type CredentialResult struct { Value *[]byte `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResult. +func (cr CredentialResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CredentialResults the list of credential result response. type CredentialResults struct { autorest.Response `json:"-"` @@ -617,6 +623,12 @@ type CredentialResults struct { Kubeconfigs *[]CredentialResult `json:"kubeconfigs,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResults. +func (cr CredentialResults) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CustomProfile properties to configure a custom container service cluster. type CustomProfile struct { // Orchestrator - The name of the custom orchestrator to use. @@ -2499,6 +2511,12 @@ type OperationListResult struct { Value *[]OperationValue `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationValue describes the properties of a Compute Operation value. type OperationValue struct { // Origin - READ-ONLY; The origin of the compute operation. @@ -2572,6 +2590,12 @@ type OperationValueDisplay struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationValueDisplay. +func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OrchestratorProfile contains information about orchestrator. type OrchestratorProfile struct { // OrchestratorType - Orchestrator type. @@ -2802,6 +2826,12 @@ type SubResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for SubResource. +func (sr SubResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TagsObject tags object for patch operations. type TagsObject struct { // Tags - Resource tags. diff --git a/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/CHANGELOG.md b/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/CHANGELOG.md index 52911e4cc5e4..5e6d22160d6d 100644 --- a/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/CHANGELOG.md +++ b/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. CredentialResult.MarshalJSON() ([]byte, error) +1. CredentialResults.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OperationValueDisplay.MarshalJSON() ([]byte, error) +1. SubResource.MarshalJSON() ([]byte, error) diff --git a/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/_meta.json b/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/_meta.json index f929a0a342b1..c19953796d81 100644 --- a/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/_meta.json +++ b/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "tag": "package-2019-09-30-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-09-30-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-09-30-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/models.go b/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/models.go index 66ffbc750399..c66516d5bde5 100644 --- a/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/models.go +++ b/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/models.go @@ -790,6 +790,12 @@ type CredentialResult struct { Value *[]byte `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResult. +func (cr CredentialResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CredentialResults the list of credential result response. type CredentialResults struct { autorest.Response `json:"-"` @@ -797,6 +803,12 @@ type CredentialResults struct { Kubeconfigs *[]CredentialResult `json:"kubeconfigs,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResults. +func (cr CredentialResults) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CustomProfile properties to configure a custom container service cluster. type CustomProfile struct { // Orchestrator - The name of the custom orchestrator to use. @@ -2868,6 +2880,12 @@ type OperationListResult struct { Value *[]OperationValue `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationValue describes the properties of a Compute Operation value. type OperationValue struct { // Origin - READ-ONLY; The origin of the compute operation. @@ -2941,6 +2959,12 @@ type OperationValueDisplay struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationValueDisplay. +func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OrchestratorProfile contains information about orchestrator. type OrchestratorProfile struct { // OrchestratorType - Orchestrator type. @@ -3181,6 +3205,12 @@ type SubResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for SubResource. +func (sr SubResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TagsObject tags object for patch operations. type TagsObject struct { // Tags - Resource tags. diff --git a/services/preview/containerservice/mgmt/2019-10-27-preview/containerservice/CHANGELOG.md b/services/preview/containerservice/mgmt/2019-10-27-preview/containerservice/CHANGELOG.md index 52911e4cc5e4..5e6d22160d6d 100644 --- a/services/preview/containerservice/mgmt/2019-10-27-preview/containerservice/CHANGELOG.md +++ b/services/preview/containerservice/mgmt/2019-10-27-preview/containerservice/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. CredentialResult.MarshalJSON() ([]byte, error) +1. CredentialResults.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OperationValueDisplay.MarshalJSON() ([]byte, error) +1. SubResource.MarshalJSON() ([]byte, error) diff --git a/services/preview/containerservice/mgmt/2019-10-27-preview/containerservice/_meta.json b/services/preview/containerservice/mgmt/2019-10-27-preview/containerservice/_meta.json index 9e4ba5f61ea3..26e636e794b2 100644 --- a/services/preview/containerservice/mgmt/2019-10-27-preview/containerservice/_meta.json +++ b/services/preview/containerservice/mgmt/2019-10-27-preview/containerservice/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "tag": "package-2019-10-27-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-10-27-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-10-27-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerservice/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/containerservice/mgmt/2019-10-27-preview/containerservice/models.go b/services/preview/containerservice/mgmt/2019-10-27-preview/containerservice/models.go index 9143b9dda3bc..4e08e90b97ae 100644 --- a/services/preview/containerservice/mgmt/2019-10-27-preview/containerservice/models.go +++ b/services/preview/containerservice/mgmt/2019-10-27-preview/containerservice/models.go @@ -790,6 +790,12 @@ type CredentialResult struct { Value *[]byte `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResult. +func (cr CredentialResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CredentialResults the list of credential result response. type CredentialResults struct { autorest.Response `json:"-"` @@ -797,6 +803,12 @@ type CredentialResults struct { Kubeconfigs *[]CredentialResult `json:"kubeconfigs,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResults. +func (cr CredentialResults) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CustomProfile properties to configure a custom container service cluster. type CustomProfile struct { // Orchestrator - The name of the custom orchestrator to use. @@ -2937,6 +2949,12 @@ type OperationListResult struct { Value *[]OperationValue `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationValue describes the properties of a Compute Operation value. type OperationValue struct { // Origin - READ-ONLY; The origin of the compute operation. @@ -3010,6 +3028,12 @@ type OperationValueDisplay struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationValueDisplay. +func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OrchestratorProfile contains information about orchestrator. type OrchestratorProfile struct { // OrchestratorType - Orchestrator type. @@ -3250,6 +3274,12 @@ type SubResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for SubResource. +func (sr SubResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TagsObject tags object for patch operations. type TagsObject struct { // Tags - Resource tags. diff --git a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/CHANGELOG.md b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/CHANGELOG.md index 52911e4cc5e4..8e91082d3113 100644 --- a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/CHANGELOG.md +++ b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/CHANGELOG.md @@ -1,2 +1,41 @@ # Change History +## Additive Changes + +### New Funcs + +1. ARMProxyResource.MarshalJSON() ([]byte, error) +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. CassandraKeyspaceListResult.MarshalJSON() ([]byte, error) +1. CassandraTableListResult.MarshalJSON() ([]byte, error) +1. DatabaseAccountConnectionString.MarshalJSON() ([]byte, error) +1. DatabaseAccountListKeysResult.MarshalJSON() ([]byte, error) +1. DatabaseAccountListReadOnlyKeysResult.MarshalJSON() ([]byte, error) +1. DatabaseAccountsListResult.MarshalJSON() ([]byte, error) +1. ExtendedResourceProperties.MarshalJSON() ([]byte, error) +1. GremlinDatabaseListResult.MarshalJSON() ([]byte, error) +1. GremlinGraphListResult.MarshalJSON() ([]byte, error) +1. MetricAvailability.MarshalJSON() ([]byte, error) +1. MetricDefinitionsListResult.MarshalJSON() ([]byte, error) +1. MetricListResult.MarshalJSON() ([]byte, error) +1. MetricName.MarshalJSON() ([]byte, error) +1. MetricValue.MarshalJSON() ([]byte, error) +1. MongoDBCollectionListResult.MarshalJSON() ([]byte, error) +1. MongoDBDatabaseListResult.MarshalJSON() ([]byte, error) +1. NotebookWorkspaceConnectionInfoResult.MarshalJSON() ([]byte, error) +1. NotebookWorkspaceCreateUpdateParameters.MarshalJSON() ([]byte, error) +1. NotebookWorkspaceProperties.MarshalJSON() ([]byte, error) +1. PartitionMetricListResult.MarshalJSON() ([]byte, error) +1. PartitionUsagesResult.MarshalJSON() ([]byte, error) +1. PercentileMetricListResult.MarshalJSON() ([]byte, error) +1. PercentileMetricValue.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. SQLContainerListResult.MarshalJSON() ([]byte, error) +1. SQLDatabaseListResult.MarshalJSON() ([]byte, error) +1. SQLStoredProcedureListResult.MarshalJSON() ([]byte, error) +1. SQLTriggerListResult.MarshalJSON() ([]byte, error) +1. SQLUserDefinedFunctionListResult.MarshalJSON() ([]byte, error) +1. TableListResult.MarshalJSON() ([]byte, error) +1. UsagesResult.MarshalJSON() ([]byte, error) diff --git a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/_meta.json b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/_meta.json index df210f160607..0b7ad3559ce5 100644 --- a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/_meta.json +++ b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md", "tag": "package-2019-08-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-08-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-08-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/models.go b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/models.go index b1bea5e307a8..6d7147db6f47 100644 --- a/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/models.go +++ b/services/preview/cosmos-db/mgmt/2019-08-01-preview/documentdb/models.go @@ -31,6 +31,12 @@ type ARMProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ARMProxyResource. +func (apr ARMProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ARMResourceProperties the core properties of ARM resources. type ARMResourceProperties struct { // ID - READ-ONLY; The unique resource identifier of the ARM resource. @@ -68,6 +74,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Capability cosmos DB capability object type Capability struct { // Name - Name of the Cosmos DB capability. For example, "name": "EnableCassandra". Current values also include "EnableTable" and "EnableGremlin". @@ -328,6 +340,12 @@ type CassandraKeyspaceListResult struct { Value *[]CassandraKeyspaceGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CassandraKeyspaceListResult. +func (cklr CassandraKeyspaceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CassandraKeyspaceResource cosmos DB Cassandra keyspace resource object type CassandraKeyspaceResource struct { // ID - Name of the Cosmos DB Cassandra keyspace @@ -859,6 +877,12 @@ type CassandraTableListResult struct { Value *[]CassandraTableGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CassandraTableListResult. +func (ctlr CassandraTableListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CassandraTableResource cosmos DB Cassandra table resource object type CassandraTableResource struct { // ID - Name of the Cosmos DB Cassandra table @@ -932,6 +956,12 @@ type DatabaseAccountConnectionString struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountConnectionString. +func (dacs DatabaseAccountConnectionString) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountCreateUpdateParameters parameters to create and update Cosmos DB database accounts. type DatabaseAccountCreateUpdateParameters struct { // Kind - Indicates the type of database account. This can only be set at database account creation. Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse' @@ -1281,6 +1311,12 @@ type DatabaseAccountListKeysResult struct { SecondaryReadonlyMasterKey *string `json:"secondaryReadonlyMasterKey,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountListKeysResult. +func (dalkr DatabaseAccountListKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountListReadOnlyKeysResult the read-only access keys for the given database account. type DatabaseAccountListReadOnlyKeysResult struct { autorest.Response `json:"-"` @@ -1290,6 +1326,12 @@ type DatabaseAccountListReadOnlyKeysResult struct { SecondaryReadonlyMasterKey *string `json:"secondaryReadonlyMasterKey,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountListReadOnlyKeysResult. +func (dalrokr DatabaseAccountListReadOnlyKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountRegenerateKeyParameters parameters to regenerate the keys within the database account. type DatabaseAccountRegenerateKeyParameters struct { // KeyKind - The access key to regenerate. Possible values include: 'Primary', 'Secondary', 'PrimaryReadonly', 'SecondaryReadonly' @@ -1421,6 +1463,12 @@ type DatabaseAccountsListResult struct { Value *[]DatabaseAccountGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountsListResult. +func (dalr DatabaseAccountsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountsOfflineRegionFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type DatabaseAccountsOfflineRegionFuture struct { @@ -1691,6 +1739,12 @@ type ExtendedResourceProperties struct { Etag *string `json:"_etag,omitempty"` } +// MarshalJSON is the custom marshaler for ExtendedResourceProperties. +func (erp ExtendedResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FailoverPolicies the list of new failover policies for the failover priority change. type FailoverPolicies struct { // FailoverPolicies - List of failover policies. @@ -1972,6 +2026,12 @@ type GremlinDatabaseListResult struct { Value *[]GremlinDatabaseGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for GremlinDatabaseListResult. +func (gdlr GremlinDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GremlinDatabaseResource cosmos DB Gremlin database resource object type GremlinDatabaseResource struct { // ID - Name of the Cosmos DB Gremlin database @@ -2255,6 +2315,12 @@ type GremlinGraphListResult struct { Value *[]GremlinGraphGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for GremlinGraphListResult. +func (gglr GremlinGraphListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GremlinGraphResource cosmos DB Gremlin graph resource object type GremlinGraphResource struct { // ID - Name of the Cosmos DB Gremlin graph @@ -2617,6 +2683,12 @@ type MetricAvailability struct { Retention *string `json:"retention,omitempty"` } +// MarshalJSON is the custom marshaler for MetricAvailability. +func (ma MetricAvailability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricDefinition the definition of a metric. type MetricDefinition struct { // MetricAvailabilities - READ-ONLY; The list of metric availabilities for the account. @@ -2647,6 +2719,12 @@ type MetricDefinitionsListResult struct { Value *[]MetricDefinition `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MetricDefinitionsListResult. +func (mdlr MetricDefinitionsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricListResult the response to a list metrics request. type MetricListResult struct { autorest.Response `json:"-"` @@ -2654,6 +2732,12 @@ type MetricListResult struct { Value *[]Metric `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MetricListResult. +func (mlr MetricListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricName a metric name. type MetricName struct { // Value - READ-ONLY; The name of the metric. @@ -2662,6 +2746,12 @@ type MetricName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for MetricName. +func (mn MetricName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricValue represents metrics values. type MetricValue struct { // Count - READ-ONLY; The number of values for the metric. @@ -2678,6 +2768,12 @@ type MetricValue struct { Total *float64 `json:"total,omitempty"` } +// MarshalJSON is the custom marshaler for MetricValue. +func (mv MetricValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MongoDBCollectionCreateUpdateParameters parameters to create and update Cosmos DB MongoDB collection. type MongoDBCollectionCreateUpdateParameters struct { // MongoDBCollectionCreateUpdateProperties - Properties to create and update Azure Cosmos DB MongoDB collection. @@ -2942,6 +3038,12 @@ type MongoDBCollectionListResult struct { Value *[]MongoDBCollectionGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MongoDBCollectionListResult. +func (mdclr MongoDBCollectionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MongoDBCollectionResource cosmos DB MongoDB collection resource object type MongoDBCollectionResource struct { // ID - Name of the Cosmos DB MongoDB collection @@ -3220,6 +3322,12 @@ type MongoDBDatabaseListResult struct { Value *[]MongoDBDatabaseGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MongoDBDatabaseListResult. +func (mddlr MongoDBDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MongoDBDatabaseResource cosmos DB MongoDB database resource object type MongoDBDatabaseResource struct { // ID - Name of the Cosmos DB MongoDB database @@ -3576,6 +3684,12 @@ type NotebookWorkspaceConnectionInfoResult struct { NotebookServerEndpoint *string `json:"notebookServerEndpoint,omitempty"` } +// MarshalJSON is the custom marshaler for NotebookWorkspaceConnectionInfoResult. +func (nwcir NotebookWorkspaceConnectionInfoResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NotebookWorkspaceCreateUpdateParameters parameters to create a notebook workspace resource type NotebookWorkspaceCreateUpdateParameters struct { // ID - READ-ONLY; The unique resource identifier of the database account. @@ -3586,6 +3700,12 @@ type NotebookWorkspaceCreateUpdateParameters struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for NotebookWorkspaceCreateUpdateParameters. +func (nwcup NotebookWorkspaceCreateUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NotebookWorkspaceListResult a list of notebook workspace resources type NotebookWorkspaceListResult struct { autorest.Response `json:"-"` @@ -3601,6 +3721,12 @@ type NotebookWorkspaceProperties struct { Status *string `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for NotebookWorkspaceProperties. +func (nwp NotebookWorkspaceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NotebookWorkspacesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type NotebookWorkspacesCreateOrUpdateFuture struct { @@ -3971,6 +4097,12 @@ type PartitionMetricListResult struct { Value *[]PartitionMetric `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PartitionMetricListResult. +func (pmlr PartitionMetricListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PartitionUsage the partition level usage data for a usage request. type PartitionUsage struct { // PartitionID - READ-ONLY; The partition id (GUID identifier) of the usages. @@ -4005,6 +4137,12 @@ type PartitionUsagesResult struct { Value *[]PartitionUsage `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PartitionUsagesResult. +func (pur PartitionUsagesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PercentileMetric percentile Metric data type PercentileMetric struct { // StartTime - READ-ONLY; The start time for the metric (ISO-8601 format). @@ -4037,6 +4175,12 @@ type PercentileMetricListResult struct { Value *[]PercentileMetric `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PercentileMetricListResult. +func (pmlr PercentileMetricListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PercentileMetricValue represents percentile metrics values. type PercentileMetricValue struct { // P10 - READ-ONLY; The 10th percentile value for the metric. @@ -4067,6 +4211,12 @@ type PercentileMetricValue struct { Total *float64 `json:"total,omitempty"` } +// MarshalJSON is the custom marshaler for PercentileMetricValue. +func (pmv PercentileMetricValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection a private endpoint connection type PrivateEndpointConnection struct { autorest.Response `json:"-"` @@ -4335,6 +4485,12 @@ type PrivateLinkResourceProperties struct { RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. +func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkServiceConnectionStateProperty connection State of the Private Endpoint Connection. type PrivateLinkServiceConnectionStateProperty struct { // Status - The private link service connection status. @@ -4368,6 +4524,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegionForOnlineOffline cosmos DB region to online or offline. type RegionForOnlineOffline struct { // Region - Cosmos DB region, with spaces between words and each word capitalized. @@ -4384,6 +4546,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SpatialSpec ... type SpatialSpec struct { // Path - The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*) @@ -4669,6 +4837,12 @@ type SQLContainerListResult struct { Value *[]SQLContainerGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLContainerListResult. +func (sclr SQLContainerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLContainerResource cosmos DB SQL container resource object type SQLContainerResource struct { // ID - Name of the Cosmos DB SQL container @@ -4947,6 +5121,12 @@ type SQLDatabaseListResult struct { Value *[]SQLDatabaseGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLDatabaseListResult. +func (sdlr SQLDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLDatabaseResource cosmos DB SQL database resource object type SQLDatabaseResource struct { // ID - Name of the Cosmos DB SQL database @@ -5698,6 +5878,12 @@ type SQLStoredProcedureListResult struct { Value *[]SQLStoredProcedureGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLStoredProcedureListResult. +func (ssplr SQLStoredProcedureListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLStoredProcedureResource cosmos DB SQL storedProcedure resource object type SQLStoredProcedureResource struct { // ID - Name of the Cosmos DB SQL storedProcedure @@ -5973,6 +6159,12 @@ type SQLTriggerListResult struct { Value *[]SQLTriggerGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLTriggerListResult. +func (stlr SQLTriggerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLTriggerResource cosmos DB SQL trigger resource object type SQLTriggerResource struct { // ID - Name of the Cosmos DB SQL trigger @@ -6245,6 +6437,12 @@ type SQLUserDefinedFunctionListResult struct { Value *[]SQLUserDefinedFunctionGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLUserDefinedFunctionListResult. +func (sudflr SQLUserDefinedFunctionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLUserDefinedFunctionResource cosmos DB SQL userDefinedFunction resource object type SQLUserDefinedFunctionResource struct { // ID - Name of the Cosmos DB SQL userDefinedFunction @@ -6505,6 +6703,12 @@ type TableListResult struct { Value *[]TableGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for TableListResult. +func (tlr TableListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TableResource cosmos DB table resource object type TableResource struct { // ID - Name of the Cosmos DB table @@ -6959,6 +7163,12 @@ type UsagesResult struct { Value *[]Usage `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for UsagesResult. +func (ur UsagesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkRule virtual Network ACL Rule object type VirtualNetworkRule struct { // ID - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. diff --git a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/CHANGELOG.md b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/CHANGELOG.md index 52911e4cc5e4..8e91082d3113 100644 --- a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/CHANGELOG.md +++ b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/CHANGELOG.md @@ -1,2 +1,41 @@ # Change History +## Additive Changes + +### New Funcs + +1. ARMProxyResource.MarshalJSON() ([]byte, error) +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. CassandraKeyspaceListResult.MarshalJSON() ([]byte, error) +1. CassandraTableListResult.MarshalJSON() ([]byte, error) +1. DatabaseAccountConnectionString.MarshalJSON() ([]byte, error) +1. DatabaseAccountListKeysResult.MarshalJSON() ([]byte, error) +1. DatabaseAccountListReadOnlyKeysResult.MarshalJSON() ([]byte, error) +1. DatabaseAccountsListResult.MarshalJSON() ([]byte, error) +1. ExtendedResourceProperties.MarshalJSON() ([]byte, error) +1. GremlinDatabaseListResult.MarshalJSON() ([]byte, error) +1. GremlinGraphListResult.MarshalJSON() ([]byte, error) +1. MetricAvailability.MarshalJSON() ([]byte, error) +1. MetricDefinitionsListResult.MarshalJSON() ([]byte, error) +1. MetricListResult.MarshalJSON() ([]byte, error) +1. MetricName.MarshalJSON() ([]byte, error) +1. MetricValue.MarshalJSON() ([]byte, error) +1. MongoDBCollectionListResult.MarshalJSON() ([]byte, error) +1. MongoDBDatabaseListResult.MarshalJSON() ([]byte, error) +1. NotebookWorkspaceConnectionInfoResult.MarshalJSON() ([]byte, error) +1. NotebookWorkspaceCreateUpdateParameters.MarshalJSON() ([]byte, error) +1. NotebookWorkspaceProperties.MarshalJSON() ([]byte, error) +1. PartitionMetricListResult.MarshalJSON() ([]byte, error) +1. PartitionUsagesResult.MarshalJSON() ([]byte, error) +1. PercentileMetricListResult.MarshalJSON() ([]byte, error) +1. PercentileMetricValue.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. SQLContainerListResult.MarshalJSON() ([]byte, error) +1. SQLDatabaseListResult.MarshalJSON() ([]byte, error) +1. SQLStoredProcedureListResult.MarshalJSON() ([]byte, error) +1. SQLTriggerListResult.MarshalJSON() ([]byte, error) +1. SQLUserDefinedFunctionListResult.MarshalJSON() ([]byte, error) +1. TableListResult.MarshalJSON() ([]byte, error) +1. UsagesResult.MarshalJSON() ([]byte, error) diff --git a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/_meta.json b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/_meta.json index 0a24e3d2bebc..e86745cf1212 100644 --- a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/_meta.json +++ b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md", "tag": "package-2019-12", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/models.go b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/models.go index 2d3dde1e8a3b..c1c397f09fe3 100644 --- a/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/models.go +++ b/services/preview/cosmos-db/mgmt/2019-12-12-preview/documentdb/models.go @@ -31,6 +31,12 @@ type ARMProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ARMProxyResource. +func (apr ARMProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ARMResourceProperties the core properties of ARM resources. type ARMResourceProperties struct { // ID - READ-ONLY; The unique resource identifier of the ARM resource. @@ -74,6 +80,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Capability cosmos DB capability object type Capability struct { // Name - Name of the Cosmos DB capability. For example, "name": "EnableCassandra". Current values also include "EnableTable" and "EnableGremlin". @@ -322,6 +334,12 @@ type CassandraKeyspaceListResult struct { Value *[]CassandraKeyspaceGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CassandraKeyspaceListResult. +func (cklr CassandraKeyspaceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CassandraKeyspaceResource cosmos DB Cassandra keyspace resource object type CassandraKeyspaceResource struct { // ID - Name of the Cosmos DB Cassandra keyspace @@ -841,6 +859,12 @@ type CassandraTableListResult struct { Value *[]CassandraTableGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CassandraTableListResult. +func (ctlr CassandraTableListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CassandraTableResource cosmos DB Cassandra table resource object type CassandraTableResource struct { // ID - Name of the Cosmos DB Cassandra table @@ -971,6 +995,12 @@ type DatabaseAccountConnectionString struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountConnectionString. +func (dacs DatabaseAccountConnectionString) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountCreateUpdateParameters parameters to create and update Cosmos DB database accounts. type DatabaseAccountCreateUpdateParameters struct { // Kind - Indicates the type of database account. This can only be set at database account creation. Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse' @@ -1327,6 +1357,12 @@ type DatabaseAccountListKeysResult struct { SecondaryReadonlyMasterKey *string `json:"secondaryReadonlyMasterKey,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountListKeysResult. +func (dalkr DatabaseAccountListKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountListReadOnlyKeysResult the read-only access keys for the given database account. type DatabaseAccountListReadOnlyKeysResult struct { autorest.Response `json:"-"` @@ -1336,6 +1372,12 @@ type DatabaseAccountListReadOnlyKeysResult struct { SecondaryReadonlyMasterKey *string `json:"secondaryReadonlyMasterKey,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountListReadOnlyKeysResult. +func (dalrokr DatabaseAccountListReadOnlyKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountRegenerateKeyParameters parameters to regenerate the keys within the database account. type DatabaseAccountRegenerateKeyParameters struct { // KeyKind - The access key to regenerate. Possible values include: 'Primary', 'Secondary', 'PrimaryReadonly', 'SecondaryReadonly' @@ -1467,6 +1509,12 @@ type DatabaseAccountsListResult struct { Value *[]DatabaseAccountGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountsListResult. +func (dalr DatabaseAccountsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountsOfflineRegionFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type DatabaseAccountsOfflineRegionFuture struct { @@ -1739,6 +1787,12 @@ type ExtendedResourceProperties struct { Etag *string `json:"_etag,omitempty"` } +// MarshalJSON is the custom marshaler for ExtendedResourceProperties. +func (erp ExtendedResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FailoverPolicies the list of new failover policies for the failover priority change. type FailoverPolicies struct { // FailoverPolicies - List of failover policies. @@ -2008,6 +2062,12 @@ type GremlinDatabaseListResult struct { Value *[]GremlinDatabaseGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for GremlinDatabaseListResult. +func (gdlr GremlinDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GremlinDatabaseResource cosmos DB Gremlin database resource object type GremlinDatabaseResource struct { // ID - Name of the Cosmos DB Gremlin database @@ -2279,6 +2339,12 @@ type GremlinGraphListResult struct { Value *[]GremlinGraphGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for GremlinGraphListResult. +func (gglr GremlinGraphListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GremlinGraphResource cosmos DB Gremlin graph resource object type GremlinGraphResource struct { // ID - Name of the Cosmos DB Gremlin graph @@ -2641,6 +2707,12 @@ type MetricAvailability struct { Retention *string `json:"retention,omitempty"` } +// MarshalJSON is the custom marshaler for MetricAvailability. +func (ma MetricAvailability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricDefinition the definition of a metric. type MetricDefinition struct { // MetricAvailabilities - READ-ONLY; The list of metric availabilities for the account. @@ -2671,6 +2743,12 @@ type MetricDefinitionsListResult struct { Value *[]MetricDefinition `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MetricDefinitionsListResult. +func (mdlr MetricDefinitionsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricListResult the response to a list metrics request. type MetricListResult struct { autorest.Response `json:"-"` @@ -2678,6 +2756,12 @@ type MetricListResult struct { Value *[]Metric `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MetricListResult. +func (mlr MetricListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricName a metric name. type MetricName struct { // Value - READ-ONLY; The name of the metric. @@ -2686,6 +2770,12 @@ type MetricName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for MetricName. +func (mn MetricName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricValue represents metrics values. type MetricValue struct { // Count - READ-ONLY; The number of values for the metric. @@ -2702,6 +2792,12 @@ type MetricValue struct { Total *float64 `json:"total,omitempty"` } +// MarshalJSON is the custom marshaler for MetricValue. +func (mv MetricValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MongoDBCollectionCreateUpdateParameters parameters to create and update Cosmos DB MongoDB collection. type MongoDBCollectionCreateUpdateParameters struct { // MongoDBCollectionCreateUpdateProperties - Properties to create and update Azure Cosmos DB MongoDB collection. @@ -2954,6 +3050,12 @@ type MongoDBCollectionListResult struct { Value *[]MongoDBCollectionGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MongoDBCollectionListResult. +func (mdclr MongoDBCollectionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MongoDBCollectionResource cosmos DB MongoDB collection resource object type MongoDBCollectionResource struct { // ID - Name of the Cosmos DB MongoDB collection @@ -3220,6 +3322,12 @@ type MongoDBDatabaseListResult struct { Value *[]MongoDBDatabaseGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MongoDBDatabaseListResult. +func (mddlr MongoDBDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MongoDBDatabaseResource cosmos DB MongoDB database resource object type MongoDBDatabaseResource struct { // ID - Name of the Cosmos DB MongoDB database @@ -3576,6 +3684,12 @@ type NotebookWorkspaceConnectionInfoResult struct { NotebookServerEndpoint *string `json:"notebookServerEndpoint,omitempty"` } +// MarshalJSON is the custom marshaler for NotebookWorkspaceConnectionInfoResult. +func (nwcir NotebookWorkspaceConnectionInfoResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NotebookWorkspaceCreateUpdateParameters parameters to create a notebook workspace resource type NotebookWorkspaceCreateUpdateParameters struct { // ID - READ-ONLY; The unique resource identifier of the database account. @@ -3586,6 +3700,12 @@ type NotebookWorkspaceCreateUpdateParameters struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for NotebookWorkspaceCreateUpdateParameters. +func (nwcup NotebookWorkspaceCreateUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NotebookWorkspaceListResult a list of notebook workspace resources type NotebookWorkspaceListResult struct { autorest.Response `json:"-"` @@ -3601,6 +3721,12 @@ type NotebookWorkspaceProperties struct { Status *string `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for NotebookWorkspaceProperties. +func (nwp NotebookWorkspaceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NotebookWorkspacesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type NotebookWorkspacesCreateOrUpdateFuture struct { @@ -3971,6 +4097,12 @@ type PartitionMetricListResult struct { Value *[]PartitionMetric `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PartitionMetricListResult. +func (pmlr PartitionMetricListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PartitionUsage the partition level usage data for a usage request. type PartitionUsage struct { // PartitionID - READ-ONLY; The partition id (GUID identifier) of the usages. @@ -4005,6 +4137,12 @@ type PartitionUsagesResult struct { Value *[]PartitionUsage `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PartitionUsagesResult. +func (pur PartitionUsagesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PercentileMetric percentile Metric data type PercentileMetric struct { // StartTime - READ-ONLY; The start time for the metric (ISO-8601 format). @@ -4037,6 +4175,12 @@ type PercentileMetricListResult struct { Value *[]PercentileMetric `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PercentileMetricListResult. +func (pmlr PercentileMetricListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PercentileMetricValue represents percentile metrics values. type PercentileMetricValue struct { // P10 - READ-ONLY; The 10th percentile value for the metric. @@ -4067,6 +4211,12 @@ type PercentileMetricValue struct { Total *float64 `json:"total,omitempty"` } +// MarshalJSON is the custom marshaler for PercentileMetricValue. +func (pmv PercentileMetricValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection a private endpoint connection type PrivateEndpointConnection struct { autorest.Response `json:"-"` @@ -4335,6 +4485,12 @@ type PrivateLinkResourceProperties struct { RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. +func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkServiceConnectionStateProperty connection State of the Private Endpoint Connection. type PrivateLinkServiceConnectionStateProperty struct { // Status - The private link service connection status. @@ -4390,6 +4546,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegionForOnlineOffline cosmos DB region to online or offline. type RegionForOnlineOffline struct { // Region - Cosmos DB region, with spaces between words and each word capitalized. @@ -4406,6 +4568,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SpatialSpec ... type SpatialSpec struct { // Path - The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*) @@ -4679,6 +4847,12 @@ type SQLContainerListResult struct { Value *[]SQLContainerGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLContainerListResult. +func (sclr SQLContainerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLContainerResource cosmos DB SQL container resource object type SQLContainerResource struct { // ID - Name of the Cosmos DB SQL container @@ -4945,6 +5119,12 @@ type SQLDatabaseListResult struct { Value *[]SQLDatabaseGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLDatabaseListResult. +func (sdlr SQLDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLDatabaseResource cosmos DB SQL database resource object type SQLDatabaseResource struct { // ID - Name of the Cosmos DB SQL database @@ -5684,6 +5864,12 @@ type SQLStoredProcedureListResult struct { Value *[]SQLStoredProcedureGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLStoredProcedureListResult. +func (ssplr SQLStoredProcedureListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLStoredProcedureResource cosmos DB SQL storedProcedure resource object type SQLStoredProcedureResource struct { // ID - Name of the Cosmos DB SQL storedProcedure @@ -5947,6 +6133,12 @@ type SQLTriggerListResult struct { Value *[]SQLTriggerGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLTriggerListResult. +func (stlr SQLTriggerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLTriggerResource cosmos DB SQL trigger resource object type SQLTriggerResource struct { // ID - Name of the Cosmos DB SQL trigger @@ -6207,6 +6399,12 @@ type SQLUserDefinedFunctionListResult struct { Value *[]SQLUserDefinedFunctionGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLUserDefinedFunctionListResult. +func (sudflr SQLUserDefinedFunctionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLUserDefinedFunctionResource cosmos DB SQL userDefinedFunction resource object type SQLUserDefinedFunctionResource struct { // ID - Name of the Cosmos DB SQL userDefinedFunction @@ -6455,6 +6653,12 @@ type TableListResult struct { Value *[]TableGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for TableListResult. +func (tlr TableListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TableResource cosmos DB table resource object type TableResource struct { // ID - Name of the Cosmos DB table @@ -6928,6 +7132,12 @@ type UsagesResult struct { Value *[]Usage `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for UsagesResult. +func (ur UsagesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkRule virtual Network ACL Rule object type VirtualNetworkRule struct { // ID - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. diff --git a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/CHANGELOG.md b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/CHANGELOG.md index 52911e4cc5e4..8e91082d3113 100644 --- a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/CHANGELOG.md +++ b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/CHANGELOG.md @@ -1,2 +1,41 @@ # Change History +## Additive Changes + +### New Funcs + +1. ARMProxyResource.MarshalJSON() ([]byte, error) +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. CassandraKeyspaceListResult.MarshalJSON() ([]byte, error) +1. CassandraTableListResult.MarshalJSON() ([]byte, error) +1. DatabaseAccountConnectionString.MarshalJSON() ([]byte, error) +1. DatabaseAccountListKeysResult.MarshalJSON() ([]byte, error) +1. DatabaseAccountListReadOnlyKeysResult.MarshalJSON() ([]byte, error) +1. DatabaseAccountsListResult.MarshalJSON() ([]byte, error) +1. ExtendedResourceProperties.MarshalJSON() ([]byte, error) +1. GremlinDatabaseListResult.MarshalJSON() ([]byte, error) +1. GremlinGraphListResult.MarshalJSON() ([]byte, error) +1. MetricAvailability.MarshalJSON() ([]byte, error) +1. MetricDefinitionsListResult.MarshalJSON() ([]byte, error) +1. MetricListResult.MarshalJSON() ([]byte, error) +1. MetricName.MarshalJSON() ([]byte, error) +1. MetricValue.MarshalJSON() ([]byte, error) +1. MongoDBCollectionListResult.MarshalJSON() ([]byte, error) +1. MongoDBDatabaseListResult.MarshalJSON() ([]byte, error) +1. NotebookWorkspaceConnectionInfoResult.MarshalJSON() ([]byte, error) +1. NotebookWorkspaceCreateUpdateParameters.MarshalJSON() ([]byte, error) +1. NotebookWorkspaceProperties.MarshalJSON() ([]byte, error) +1. PartitionMetricListResult.MarshalJSON() ([]byte, error) +1. PartitionUsagesResult.MarshalJSON() ([]byte, error) +1. PercentileMetricListResult.MarshalJSON() ([]byte, error) +1. PercentileMetricValue.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. SQLContainerListResult.MarshalJSON() ([]byte, error) +1. SQLDatabaseListResult.MarshalJSON() ([]byte, error) +1. SQLStoredProcedureListResult.MarshalJSON() ([]byte, error) +1. SQLTriggerListResult.MarshalJSON() ([]byte, error) +1. SQLUserDefinedFunctionListResult.MarshalJSON() ([]byte, error) +1. TableListResult.MarshalJSON() ([]byte, error) +1. UsagesResult.MarshalJSON() ([]byte, error) diff --git a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/_meta.json b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/_meta.json index 7d3e9c3a6c42..9530d086ea88 100644 --- a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/_meta.json +++ b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md", "tag": "package-2020-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/models.go b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/models.go index 9ec4553cff7b..003f9a7cd49a 100644 --- a/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/models.go +++ b/services/preview/cosmos-db/mgmt/2020-03-01-preview/documentdb/models.go @@ -31,6 +31,12 @@ type ARMProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ARMProxyResource. +func (apr ARMProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ARMResourceProperties the core properties of ARM resources. type ARMResourceProperties struct { // ID - READ-ONLY; The unique resource identifier of the ARM resource. @@ -74,6 +80,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Capability cosmos DB capability object type Capability struct { // Name - Name of the Cosmos DB capability. For example, "name": "EnableCassandra". Current values also include "EnableTable" and "EnableGremlin". @@ -329,6 +341,12 @@ type CassandraKeyspaceListResult struct { Value *[]CassandraKeyspaceGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CassandraKeyspaceListResult. +func (cklr CassandraKeyspaceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CassandraKeyspaceResource cosmos DB Cassandra keyspace resource object type CassandraKeyspaceResource struct { // ID - Name of the Cosmos DB Cassandra keyspace @@ -1027,6 +1045,12 @@ type CassandraTableListResult struct { Value *[]CassandraTableGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CassandraTableListResult. +func (ctlr CassandraTableListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CassandraTableResource cosmos DB Cassandra table resource object type CassandraTableResource struct { // ID - Name of the Cosmos DB Cassandra table @@ -1157,6 +1181,12 @@ type DatabaseAccountConnectionString struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountConnectionString. +func (dacs DatabaseAccountConnectionString) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountCreateUpdateParameters parameters to create and update Cosmos DB database accounts. type DatabaseAccountCreateUpdateParameters struct { // Kind - Indicates the type of database account. This can only be set at database account creation. Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse' @@ -1522,6 +1552,12 @@ type DatabaseAccountListKeysResult struct { SecondaryReadonlyMasterKey *string `json:"secondaryReadonlyMasterKey,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountListKeysResult. +func (dalkr DatabaseAccountListKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountListReadOnlyKeysResult the read-only access keys for the given database account. type DatabaseAccountListReadOnlyKeysResult struct { autorest.Response `json:"-"` @@ -1531,6 +1567,12 @@ type DatabaseAccountListReadOnlyKeysResult struct { SecondaryReadonlyMasterKey *string `json:"secondaryReadonlyMasterKey,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountListReadOnlyKeysResult. +func (dalrokr DatabaseAccountListReadOnlyKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountRegenerateKeyParameters parameters to regenerate the keys within the database account. type DatabaseAccountRegenerateKeyParameters struct { // KeyKind - The access key to regenerate. Possible values include: 'Primary', 'Secondary', 'PrimaryReadonly', 'SecondaryReadonly' @@ -1662,6 +1704,12 @@ type DatabaseAccountsListResult struct { Value *[]DatabaseAccountGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountsListResult. +func (dalr DatabaseAccountsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountsOfflineRegionFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type DatabaseAccountsOfflineRegionFuture struct { @@ -1936,6 +1984,12 @@ type ExtendedResourceProperties struct { Etag *string `json:"_etag,omitempty"` } +// MarshalJSON is the custom marshaler for ExtendedResourceProperties. +func (erp ExtendedResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FailoverPolicies the list of new failover policies for the failover priority change. type FailoverPolicies struct { // FailoverPolicies - List of failover policies. @@ -2212,6 +2266,12 @@ type GremlinDatabaseListResult struct { Value *[]GremlinDatabaseGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for GremlinDatabaseListResult. +func (gdlr GremlinDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GremlinDatabaseResource cosmos DB Gremlin database resource object type GremlinDatabaseResource struct { // ID - Name of the Cosmos DB Gremlin database @@ -2490,6 +2550,12 @@ type GremlinGraphListResult struct { Value *[]GremlinGraphGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for GremlinGraphListResult. +func (gglr GremlinGraphListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GremlinGraphResource cosmos DB Gremlin graph resource object type GremlinGraphResource struct { // ID - Name of the Cosmos DB Gremlin graph @@ -3024,6 +3090,12 @@ type MetricAvailability struct { Retention *string `json:"retention,omitempty"` } +// MarshalJSON is the custom marshaler for MetricAvailability. +func (ma MetricAvailability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricDefinition the definition of a metric. type MetricDefinition struct { // MetricAvailabilities - READ-ONLY; The list of metric availabilities for the account. @@ -3054,6 +3126,12 @@ type MetricDefinitionsListResult struct { Value *[]MetricDefinition `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MetricDefinitionsListResult. +func (mdlr MetricDefinitionsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricListResult the response to a list metrics request. type MetricListResult struct { autorest.Response `json:"-"` @@ -3061,6 +3139,12 @@ type MetricListResult struct { Value *[]Metric `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MetricListResult. +func (mlr MetricListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricName a metric name. type MetricName struct { // Value - READ-ONLY; The name of the metric. @@ -3069,6 +3153,12 @@ type MetricName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for MetricName. +func (mn MetricName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricValue represents metrics values. type MetricValue struct { // Count - READ-ONLY; The number of values for the metric. @@ -3085,6 +3175,12 @@ type MetricValue struct { Total *float64 `json:"total,omitempty"` } +// MarshalJSON is the custom marshaler for MetricValue. +func (mv MetricValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MongoDBCollectionCreateUpdateParameters parameters to create and update Cosmos DB MongoDB collection. type MongoDBCollectionCreateUpdateParameters struct { // MongoDBCollectionCreateUpdateProperties - Properties to create and update Azure Cosmos DB MongoDB collection. @@ -3344,6 +3440,12 @@ type MongoDBCollectionListResult struct { Value *[]MongoDBCollectionGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MongoDBCollectionListResult. +func (mdclr MongoDBCollectionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MongoDBCollectionResource cosmos DB MongoDB collection resource object type MongoDBCollectionResource struct { // ID - Name of the Cosmos DB MongoDB collection @@ -3617,6 +3719,12 @@ type MongoDBDatabaseListResult struct { Value *[]MongoDBDatabaseGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MongoDBDatabaseListResult. +func (mddlr MongoDBDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MongoDBDatabaseResource cosmos DB MongoDB database resource object type MongoDBDatabaseResource struct { // ID - Name of the Cosmos DB MongoDB database @@ -4145,6 +4253,12 @@ type NotebookWorkspaceConnectionInfoResult struct { NotebookServerEndpoint *string `json:"notebookServerEndpoint,omitempty"` } +// MarshalJSON is the custom marshaler for NotebookWorkspaceConnectionInfoResult. +func (nwcir NotebookWorkspaceConnectionInfoResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NotebookWorkspaceCreateUpdateParameters parameters to create a notebook workspace resource type NotebookWorkspaceCreateUpdateParameters struct { // ID - READ-ONLY; The unique resource identifier of the database account. @@ -4155,6 +4269,12 @@ type NotebookWorkspaceCreateUpdateParameters struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for NotebookWorkspaceCreateUpdateParameters. +func (nwcup NotebookWorkspaceCreateUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NotebookWorkspaceListResult a list of notebook workspace resources type NotebookWorkspaceListResult struct { autorest.Response `json:"-"` @@ -4170,6 +4290,12 @@ type NotebookWorkspaceProperties struct { Status *string `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for NotebookWorkspaceProperties. +func (nwp NotebookWorkspaceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NotebookWorkspacesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type NotebookWorkspacesCreateOrUpdateFuture struct { @@ -4546,6 +4672,12 @@ type PartitionMetricListResult struct { Value *[]PartitionMetric `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PartitionMetricListResult. +func (pmlr PartitionMetricListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PartitionUsage the partition level usage data for a usage request. type PartitionUsage struct { // PartitionID - READ-ONLY; The partition id (GUID identifier) of the usages. @@ -4580,6 +4712,12 @@ type PartitionUsagesResult struct { Value *[]PartitionUsage `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PartitionUsagesResult. +func (pur PartitionUsagesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PercentileMetric percentile Metric data type PercentileMetric struct { // StartTime - READ-ONLY; The start time for the metric (ISO-8601 format). @@ -4612,6 +4750,12 @@ type PercentileMetricListResult struct { Value *[]PercentileMetric `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PercentileMetricListResult. +func (pmlr PercentileMetricListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PercentileMetricValue represents percentile metrics values. type PercentileMetricValue struct { // P10 - READ-ONLY; The 10th percentile value for the metric. @@ -4642,6 +4786,12 @@ type PercentileMetricValue struct { Total *float64 `json:"total,omitempty"` } +// MarshalJSON is the custom marshaler for PercentileMetricValue. +func (pmv PercentileMetricValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection a private endpoint connection type PrivateEndpointConnection struct { autorest.Response `json:"-"` @@ -4910,6 +5060,12 @@ type PrivateLinkResourceProperties struct { RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. +func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkServiceConnectionStateProperty connection State of the Private Endpoint Connection. type PrivateLinkServiceConnectionStateProperty struct { // Status - The private link service connection status. @@ -4965,6 +5121,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegionForOnlineOffline cosmos DB region to online or offline. type RegionForOnlineOffline struct { // Region - Cosmos DB region, with spaces between words and each word capitalized. @@ -4981,6 +5143,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SpatialSpec ... type SpatialSpec struct { // Path - The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*) @@ -5261,6 +5429,12 @@ type SQLContainerListResult struct { Value *[]SQLContainerGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLContainerListResult. +func (sclr SQLContainerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLContainerResource cosmos DB SQL container resource object type SQLContainerResource struct { // ID - Name of the Cosmos DB SQL container @@ -5534,6 +5708,12 @@ type SQLDatabaseListResult struct { Value *[]SQLDatabaseGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLDatabaseListResult. +func (sdlr SQLDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLDatabaseResource cosmos DB SQL database resource object type SQLDatabaseResource struct { // ID - Name of the Cosmos DB SQL database @@ -6445,6 +6625,12 @@ type SQLStoredProcedureListResult struct { Value *[]SQLStoredProcedureGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLStoredProcedureListResult. +func (ssplr SQLStoredProcedureListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLStoredProcedureResource cosmos DB SQL storedProcedure resource object type SQLStoredProcedureResource struct { // ID - Name of the Cosmos DB SQL storedProcedure @@ -6708,6 +6894,12 @@ type SQLTriggerListResult struct { Value *[]SQLTriggerGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLTriggerListResult. +func (stlr SQLTriggerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLTriggerResource cosmos DB SQL trigger resource object type SQLTriggerResource struct { // ID - Name of the Cosmos DB SQL trigger @@ -6968,6 +7160,12 @@ type SQLUserDefinedFunctionListResult struct { Value *[]SQLUserDefinedFunctionGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLUserDefinedFunctionListResult. +func (sudflr SQLUserDefinedFunctionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLUserDefinedFunctionResource cosmos DB SQL userDefinedFunction resource object type SQLUserDefinedFunctionResource struct { // ID - Name of the Cosmos DB SQL userDefinedFunction @@ -7223,6 +7421,12 @@ type TableListResult struct { Value *[]TableGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for TableListResult. +func (tlr TableListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TableResource cosmos DB table resource object type TableResource struct { // ID - Name of the Cosmos DB table @@ -7782,6 +7986,12 @@ type UsagesResult struct { Value *[]Usage `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for UsagesResult. +func (ur UsagesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkRule virtual Network ACL Rule object type VirtualNetworkRule struct { // ID - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. diff --git a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/CHANGELOG.md b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/CHANGELOG.md index 52911e4cc5e4..8e91082d3113 100644 --- a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/CHANGELOG.md +++ b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/CHANGELOG.md @@ -1,2 +1,41 @@ # Change History +## Additive Changes + +### New Funcs + +1. ARMProxyResource.MarshalJSON() ([]byte, error) +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. CassandraKeyspaceListResult.MarshalJSON() ([]byte, error) +1. CassandraTableListResult.MarshalJSON() ([]byte, error) +1. DatabaseAccountConnectionString.MarshalJSON() ([]byte, error) +1. DatabaseAccountListKeysResult.MarshalJSON() ([]byte, error) +1. DatabaseAccountListReadOnlyKeysResult.MarshalJSON() ([]byte, error) +1. DatabaseAccountsListResult.MarshalJSON() ([]byte, error) +1. ExtendedResourceProperties.MarshalJSON() ([]byte, error) +1. GremlinDatabaseListResult.MarshalJSON() ([]byte, error) +1. GremlinGraphListResult.MarshalJSON() ([]byte, error) +1. MetricAvailability.MarshalJSON() ([]byte, error) +1. MetricDefinitionsListResult.MarshalJSON() ([]byte, error) +1. MetricListResult.MarshalJSON() ([]byte, error) +1. MetricName.MarshalJSON() ([]byte, error) +1. MetricValue.MarshalJSON() ([]byte, error) +1. MongoDBCollectionListResult.MarshalJSON() ([]byte, error) +1. MongoDBDatabaseListResult.MarshalJSON() ([]byte, error) +1. NotebookWorkspaceConnectionInfoResult.MarshalJSON() ([]byte, error) +1. NotebookWorkspaceCreateUpdateParameters.MarshalJSON() ([]byte, error) +1. NotebookWorkspaceProperties.MarshalJSON() ([]byte, error) +1. PartitionMetricListResult.MarshalJSON() ([]byte, error) +1. PartitionUsagesResult.MarshalJSON() ([]byte, error) +1. PercentileMetricListResult.MarshalJSON() ([]byte, error) +1. PercentileMetricValue.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. SQLContainerListResult.MarshalJSON() ([]byte, error) +1. SQLDatabaseListResult.MarshalJSON() ([]byte, error) +1. SQLStoredProcedureListResult.MarshalJSON() ([]byte, error) +1. SQLTriggerListResult.MarshalJSON() ([]byte, error) +1. SQLUserDefinedFunctionListResult.MarshalJSON() ([]byte, error) +1. TableListResult.MarshalJSON() ([]byte, error) +1. UsagesResult.MarshalJSON() ([]byte, error) diff --git a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/_meta.json b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/_meta.json index d05a97ab8c2a..b13c33ab47bb 100644 --- a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/_meta.json +++ b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md", "tag": "package-2020-04", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/models.go b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/models.go index 88502aa8898e..6983edc38f76 100644 --- a/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/models.go +++ b/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb/models.go @@ -37,6 +37,12 @@ type ARMProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ARMProxyResource. +func (apr ARMProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ARMResourceProperties the core properties of ARM resources. type ARMResourceProperties struct { // ID - READ-ONLY; The unique resource identifier of the ARM resource. @@ -108,6 +114,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Capability cosmos DB capability object type Capability struct { // Name - Name of the Cosmos DB capability. For example, "name": "EnableCassandra". Current values also include "EnableTable" and "EnableGremlin". @@ -365,6 +377,12 @@ type CassandraKeyspaceListResult struct { Value *[]CassandraKeyspaceGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CassandraKeyspaceListResult. +func (cklr CassandraKeyspaceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CassandraKeyspaceResource cosmos DB Cassandra keyspace resource object type CassandraKeyspaceResource struct { // ID - Name of the Cosmos DB Cassandra keyspace @@ -1070,6 +1088,12 @@ type CassandraTableListResult struct { Value *[]CassandraTableGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CassandraTableListResult. +func (ctlr CassandraTableListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CassandraTableResource cosmos DB Cassandra table resource object type CassandraTableResource struct { // ID - Name of the Cosmos DB Cassandra table @@ -1168,6 +1192,12 @@ type DatabaseAccountConnectionString struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountConnectionString. +func (dacs DatabaseAccountConnectionString) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountCreateUpdateParameters parameters to create and update Cosmos DB database accounts. type DatabaseAccountCreateUpdateParameters struct { // Kind - Indicates the type of database account. This can only be set at database account creation. Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse' @@ -1561,6 +1591,12 @@ type DatabaseAccountListKeysResult struct { SecondaryReadonlyMasterKey *string `json:"secondaryReadonlyMasterKey,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountListKeysResult. +func (dalkr DatabaseAccountListKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountListReadOnlyKeysResult the read-only access keys for the given database account. type DatabaseAccountListReadOnlyKeysResult struct { autorest.Response `json:"-"` @@ -1570,6 +1606,12 @@ type DatabaseAccountListReadOnlyKeysResult struct { SecondaryReadonlyMasterKey *string `json:"secondaryReadonlyMasterKey,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountListReadOnlyKeysResult. +func (dalrokr DatabaseAccountListReadOnlyKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountRegenerateKeyParameters parameters to regenerate the keys within the database account. type DatabaseAccountRegenerateKeyParameters struct { // KeyKind - The access key to regenerate. Possible values include: 'Primary', 'Secondary', 'PrimaryReadonly', 'SecondaryReadonly' @@ -1701,6 +1743,12 @@ type DatabaseAccountsListResult struct { Value *[]DatabaseAccountGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountsListResult. +func (dalr DatabaseAccountsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountsOfflineRegionFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type DatabaseAccountsOfflineRegionFuture struct { @@ -1983,6 +2031,12 @@ type ExtendedResourceProperties struct { Etag *string `json:"_etag,omitempty"` } +// MarshalJSON is the custom marshaler for ExtendedResourceProperties. +func (erp ExtendedResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FailoverPolicies the list of new failover policies for the failover priority change. type FailoverPolicies struct { // FailoverPolicies - List of failover policies. @@ -2261,6 +2315,12 @@ type GremlinDatabaseListResult struct { Value *[]GremlinDatabaseGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for GremlinDatabaseListResult. +func (gdlr GremlinDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GremlinDatabaseResource cosmos DB Gremlin database resource object type GremlinDatabaseResource struct { // ID - Name of the Cosmos DB Gremlin database @@ -2541,6 +2601,12 @@ type GremlinGraphListResult struct { Value *[]GremlinGraphGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for GremlinGraphListResult. +func (gglr GremlinGraphListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GremlinGraphResource cosmos DB Gremlin graph resource object type GremlinGraphResource struct { // ID - Name of the Cosmos DB Gremlin graph @@ -3081,6 +3147,12 @@ type MetricAvailability struct { Retention *string `json:"retention,omitempty"` } +// MarshalJSON is the custom marshaler for MetricAvailability. +func (ma MetricAvailability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricDefinition the definition of a metric. type MetricDefinition struct { // MetricAvailabilities - READ-ONLY; The list of metric availabilities for the account. @@ -3111,6 +3183,12 @@ type MetricDefinitionsListResult struct { Value *[]MetricDefinition `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MetricDefinitionsListResult. +func (mdlr MetricDefinitionsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricListResult the response to a list metrics request. type MetricListResult struct { autorest.Response `json:"-"` @@ -3118,6 +3196,12 @@ type MetricListResult struct { Value *[]Metric `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MetricListResult. +func (mlr MetricListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricName a metric name. type MetricName struct { // Value - READ-ONLY; The name of the metric. @@ -3126,6 +3210,12 @@ type MetricName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for MetricName. +func (mn MetricName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricValue represents metrics values. type MetricValue struct { // Count - READ-ONLY; The number of values for the metric. @@ -3142,6 +3232,12 @@ type MetricValue struct { Total *float64 `json:"total,omitempty"` } +// MarshalJSON is the custom marshaler for MetricValue. +func (mv MetricValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MongoDBCollectionCreateUpdateParameters parameters to create and update Cosmos DB MongoDB collection. type MongoDBCollectionCreateUpdateParameters struct { // MongoDBCollectionCreateUpdateProperties - Properties to create and update Azure Cosmos DB MongoDB collection. @@ -3408,6 +3504,12 @@ type MongoDBCollectionListResult struct { Value *[]MongoDBCollectionGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MongoDBCollectionListResult. +func (mdclr MongoDBCollectionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MongoDBCollectionResource cosmos DB MongoDB collection resource object type MongoDBCollectionResource struct { // ID - Name of the Cosmos DB MongoDB collection @@ -3688,6 +3790,12 @@ type MongoDBDatabaseListResult struct { Value *[]MongoDBDatabaseGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MongoDBDatabaseListResult. +func (mddlr MongoDBDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MongoDBDatabaseResource cosmos DB MongoDB database resource object type MongoDBDatabaseResource struct { // ID - Name of the Cosmos DB MongoDB database @@ -4216,6 +4324,12 @@ type NotebookWorkspaceConnectionInfoResult struct { NotebookServerEndpoint *string `json:"notebookServerEndpoint,omitempty"` } +// MarshalJSON is the custom marshaler for NotebookWorkspaceConnectionInfoResult. +func (nwcir NotebookWorkspaceConnectionInfoResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NotebookWorkspaceCreateUpdateParameters parameters to create a notebook workspace resource type NotebookWorkspaceCreateUpdateParameters struct { // ID - READ-ONLY; The unique resource identifier of the database account. @@ -4226,6 +4340,12 @@ type NotebookWorkspaceCreateUpdateParameters struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for NotebookWorkspaceCreateUpdateParameters. +func (nwcup NotebookWorkspaceCreateUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NotebookWorkspaceListResult a list of notebook workspace resources type NotebookWorkspaceListResult struct { autorest.Response `json:"-"` @@ -4241,6 +4361,12 @@ type NotebookWorkspaceProperties struct { Status *string `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for NotebookWorkspaceProperties. +func (nwp NotebookWorkspaceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NotebookWorkspacesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type NotebookWorkspacesCreateOrUpdateFuture struct { @@ -4619,6 +4745,12 @@ type PartitionMetricListResult struct { Value *[]PartitionMetric `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PartitionMetricListResult. +func (pmlr PartitionMetricListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PartitionUsage the partition level usage data for a usage request. type PartitionUsage struct { // PartitionID - READ-ONLY; The partition id (GUID identifier) of the usages. @@ -4653,6 +4785,12 @@ type PartitionUsagesResult struct { Value *[]PartitionUsage `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PartitionUsagesResult. +func (pur PartitionUsagesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PercentileMetric percentile Metric data type PercentileMetric struct { // StartTime - READ-ONLY; The start time for the metric (ISO-8601 format). @@ -4685,6 +4823,12 @@ type PercentileMetricListResult struct { Value *[]PercentileMetric `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PercentileMetricListResult. +func (pmlr PercentileMetricListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PercentileMetricValue represents percentile metrics values. type PercentileMetricValue struct { // P10 - READ-ONLY; The 10th percentile value for the metric. @@ -4715,6 +4859,12 @@ type PercentileMetricValue struct { Total *float64 `json:"total,omitempty"` } +// MarshalJSON is the custom marshaler for PercentileMetricValue. +func (pmv PercentileMetricValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection a private endpoint connection type PrivateEndpointConnection struct { autorest.Response `json:"-"` @@ -4983,6 +5133,12 @@ type PrivateLinkResourceProperties struct { RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. +func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkServiceConnectionStateProperty connection State of the Private Endpoint Connection. type PrivateLinkServiceConnectionStateProperty struct { // Status - The private link service connection status. @@ -5016,6 +5172,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegionForOnlineOffline cosmos DB region to online or offline. type RegionForOnlineOffline struct { // Region - Cosmos DB region, with spaces between words and each word capitalized. @@ -5032,6 +5194,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SpatialSpec ... type SpatialSpec struct { // Path - The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*) @@ -5319,6 +5487,12 @@ type SQLContainerListResult struct { Value *[]SQLContainerGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLContainerListResult. +func (sclr SQLContainerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLContainerResource cosmos DB SQL container resource object type SQLContainerResource struct { // ID - Name of the Cosmos DB SQL container @@ -5596,6 +5770,12 @@ type SQLDatabaseListResult struct { Value *[]SQLDatabaseGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLDatabaseListResult. +func (sdlr SQLDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLDatabaseResource cosmos DB SQL database resource object type SQLDatabaseResource struct { // ID - Name of the Cosmos DB SQL database @@ -6507,6 +6687,12 @@ type SQLStoredProcedureListResult struct { Value *[]SQLStoredProcedureGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLStoredProcedureListResult. +func (ssplr SQLStoredProcedureListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLStoredProcedureResource cosmos DB SQL storedProcedure resource object type SQLStoredProcedureResource struct { // ID - Name of the Cosmos DB SQL storedProcedure @@ -6770,6 +6956,12 @@ type SQLTriggerListResult struct { Value *[]SQLTriggerGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLTriggerListResult. +func (stlr SQLTriggerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLTriggerResource cosmos DB SQL trigger resource object type SQLTriggerResource struct { // ID - Name of the Cosmos DB SQL trigger @@ -7030,6 +7222,12 @@ type SQLUserDefinedFunctionListResult struct { Value *[]SQLUserDefinedFunctionGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLUserDefinedFunctionListResult. +func (sudflr SQLUserDefinedFunctionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLUserDefinedFunctionResource cosmos DB SQL userDefinedFunction resource object type SQLUserDefinedFunctionResource struct { // ID - Name of the Cosmos DB SQL userDefinedFunction @@ -7287,6 +7485,12 @@ type TableListResult struct { Value *[]TableGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for TableListResult. +func (tlr TableListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TableResource cosmos DB table resource object type TableResource struct { // ID - Name of the Cosmos DB table @@ -7846,6 +8050,12 @@ type UsagesResult struct { Value *[]Usage `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for UsagesResult. +func (ur UsagesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkRule virtual Network ACL Rule object type VirtualNetworkRule struct { // ID - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. diff --git a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/CHANGELOG.md b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/CHANGELOG.md index 52911e4cc5e4..27fc82a9b2f9 100644 --- a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/CHANGELOG.md +++ b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/CHANGELOG.md @@ -1,2 +1,54 @@ # Change History +## Additive Changes + +### New Funcs + +1. ARMProxyResource.MarshalJSON() ([]byte, error) +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. CassandraKeyspaceListResult.MarshalJSON() ([]byte, error) +1. CassandraTableListResult.MarshalJSON() ([]byte, error) +1. DatabaseAccountConnectionString.MarshalJSON() ([]byte, error) +1. DatabaseAccountListKeysResult.MarshalJSON() ([]byte, error) +1. DatabaseAccountListReadOnlyKeysResult.MarshalJSON() ([]byte, error) +1. DatabaseAccountsListResult.MarshalJSON() ([]byte, error) +1. ExtendedResourceProperties.MarshalJSON() ([]byte, error) +1. GremlinDatabaseListResult.MarshalJSON() ([]byte, error) +1. GremlinGraphListResult.MarshalJSON() ([]byte, error) +1. ManagedServiceIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. MetricAvailability.MarshalJSON() ([]byte, error) +1. MetricDefinitionsListResult.MarshalJSON() ([]byte, error) +1. MetricListResult.MarshalJSON() ([]byte, error) +1. MetricName.MarshalJSON() ([]byte, error) +1. MetricValue.MarshalJSON() ([]byte, error) +1. MongoDBCollectionListResult.MarshalJSON() ([]byte, error) +1. MongoDBDatabaseListResult.MarshalJSON() ([]byte, error) +1. NotebookWorkspaceConnectionInfoResult.MarshalJSON() ([]byte, error) +1. NotebookWorkspaceCreateUpdateParameters.MarshalJSON() ([]byte, error) +1. NotebookWorkspaceProperties.MarshalJSON() ([]byte, error) +1. PartitionMetricListResult.MarshalJSON() ([]byte, error) +1. PartitionUsagesResult.MarshalJSON() ([]byte, error) +1. PercentileMetricListResult.MarshalJSON() ([]byte, error) +1. PercentileMetricValue.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. RestorableDatabaseAccountsListResult.MarshalJSON() ([]byte, error) +1. RestorableLocationResource.MarshalJSON() ([]byte, error) +1. RestorableMongodbCollectionPropertiesResource.MarshalJSON() ([]byte, error) +1. RestorableMongodbCollectionsListResult.MarshalJSON() ([]byte, error) +1. RestorableMongodbDatabasePropertiesResource.MarshalJSON() ([]byte, error) +1. RestorableMongodbDatabasesListResult.MarshalJSON() ([]byte, error) +1. RestorableMongodbResourcesListResult.MarshalJSON() ([]byte, error) +1. RestorableSQLContainersListResult.MarshalJSON() ([]byte, error) +1. RestorableSQLDatabasesListResult.MarshalJSON() ([]byte, error) +1. RestorableSQLResourcesListResult.MarshalJSON() ([]byte, error) +1. SQLContainerListResult.MarshalJSON() ([]byte, error) +1. SQLDatabaseListResult.MarshalJSON() ([]byte, error) +1. SQLRoleAssignmentListResult.MarshalJSON() ([]byte, error) +1. SQLRoleDefinitionListResult.MarshalJSON() ([]byte, error) +1. SQLStoredProcedureListResult.MarshalJSON() ([]byte, error) +1. SQLTriggerListResult.MarshalJSON() ([]byte, error) +1. SQLUserDefinedFunctionListResult.MarshalJSON() ([]byte, error) +1. TableListResult.MarshalJSON() ([]byte, error) +1. UsagesResult.MarshalJSON() ([]byte, error) diff --git a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/_meta.json b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/_meta.json index 97a7631330ef..87529ee08b8c 100644 --- a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/_meta.json +++ b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/_meta.json @@ -2,9 +2,9 @@ "commit": "d4bad535d456ee82c7fd17d1ec2b8802a0b83205", "readme": "/_/azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md", "tag": "package-2020-06-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-06-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-06-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/models.go b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/models.go index f89133bc668a..1bd116467bd4 100644 --- a/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/models.go +++ b/services/preview/cosmos-db/mgmt/2020-06-01-preview/documentdb/models.go @@ -37,6 +37,12 @@ type ARMProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ARMProxyResource. +func (apr ARMProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ARMResourceProperties the core properties of ARM resources. type ARMResourceProperties struct { // ID - READ-ONLY; The unique resource identifier of the ARM resource. @@ -112,6 +118,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicBackupPolicy the object representing the policy for taking backups on an account. type BasicBackupPolicy interface { AsPeriodicModeBackupPolicy() (*PeriodicModeBackupPolicy, bool) @@ -479,6 +491,12 @@ type CassandraKeyspaceListResult struct { Value *[]CassandraKeyspaceGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CassandraKeyspaceListResult. +func (cklr CassandraKeyspaceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CassandraKeyspaceResource cosmos DB Cassandra keyspace resource object type CassandraKeyspaceResource struct { // ID - Name of the Cosmos DB Cassandra keyspace @@ -1038,6 +1056,12 @@ type CassandraTableListResult struct { Value *[]CassandraTableGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CassandraTableListResult. +func (ctlr CassandraTableListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CassandraTableResource cosmos DB Cassandra table resource object type CassandraTableResource struct { // ID - Name of the Cosmos DB Cassandra table @@ -1172,6 +1196,12 @@ type DatabaseAccountConnectionString struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountConnectionString. +func (dacs DatabaseAccountConnectionString) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountCreateUpdateParameters parameters to create and update Cosmos DB database accounts. type DatabaseAccountCreateUpdateParameters struct { // Kind - Indicates the type of database account. This can only be set at database account creation. Possible values include: 'DatabaseAccountKindGlobalDocumentDB', 'DatabaseAccountKindMongoDB', 'DatabaseAccountKindParse' @@ -2211,6 +2241,12 @@ type DatabaseAccountListKeysResult struct { SecondaryReadonlyMasterKey *string `json:"secondaryReadonlyMasterKey,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountListKeysResult. +func (dalkr DatabaseAccountListKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountListReadOnlyKeysResult the read-only access keys for the given database account. type DatabaseAccountListReadOnlyKeysResult struct { autorest.Response `json:"-"` @@ -2220,6 +2256,12 @@ type DatabaseAccountListReadOnlyKeysResult struct { SecondaryReadonlyMasterKey *string `json:"secondaryReadonlyMasterKey,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountListReadOnlyKeysResult. +func (dalrokr DatabaseAccountListReadOnlyKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountRegenerateKeyParameters parameters to regenerate the keys within the database account. type DatabaseAccountRegenerateKeyParameters struct { // KeyKind - The access key to regenerate. Possible values include: 'Primary', 'Secondary', 'PrimaryReadonly', 'SecondaryReadonly' @@ -2351,6 +2393,12 @@ type DatabaseAccountsListResult struct { Value *[]DatabaseAccountGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountsListResult. +func (dalr DatabaseAccountsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountsOfflineRegionFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type DatabaseAccountsOfflineRegionFuture struct { @@ -3161,6 +3209,12 @@ type ExtendedResourceProperties struct { Etag *string `json:"_etag,omitempty"` } +// MarshalJSON is the custom marshaler for ExtendedResourceProperties. +func (erp ExtendedResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FailoverPolicies the list of new failover policies for the failover priority change. type FailoverPolicies struct { // FailoverPolicies - List of failover policies. @@ -3465,6 +3519,12 @@ type GremlinDatabaseListResult struct { Value *[]GremlinDatabaseGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for GremlinDatabaseListResult. +func (gdlr GremlinDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GremlinDatabaseResource cosmos DB Gremlin database resource object type GremlinDatabaseResource struct { // ID - Name of the Cosmos DB Gremlin database @@ -3771,6 +3831,12 @@ type GremlinGraphListResult struct { Value *[]GremlinGraphGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for GremlinGraphListResult. +func (gglr GremlinGraphListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GremlinGraphResource cosmos DB Gremlin graph resource object type GremlinGraphResource struct { // ID - Name of the Cosmos DB Gremlin graph @@ -4138,6 +4204,12 @@ type ManagedServiceIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedServiceIdentityUserAssignedIdentitiesValue. +func (msiAiv ManagedServiceIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Metric metric data type Metric struct { // StartTime - READ-ONLY; The start time for the metric (ISO-8601 format). @@ -4171,6 +4243,12 @@ type MetricAvailability struct { Retention *string `json:"retention,omitempty"` } +// MarshalJSON is the custom marshaler for MetricAvailability. +func (ma MetricAvailability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricDefinition the definition of a metric. type MetricDefinition struct { // MetricAvailabilities - READ-ONLY; The list of metric availabilities for the account. @@ -4201,6 +4279,12 @@ type MetricDefinitionsListResult struct { Value *[]MetricDefinition `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MetricDefinitionsListResult. +func (mdlr MetricDefinitionsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricListResult the response to a list metrics request. type MetricListResult struct { autorest.Response `json:"-"` @@ -4208,6 +4292,12 @@ type MetricListResult struct { Value *[]Metric `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MetricListResult. +func (mlr MetricListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricName a metric name. type MetricName struct { // Value - READ-ONLY; The name of the metric. @@ -4216,6 +4306,12 @@ type MetricName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for MetricName. +func (mn MetricName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricValue represents metrics values. type MetricValue struct { // Count - READ-ONLY; The number of values for the metric. @@ -4232,6 +4328,12 @@ type MetricValue struct { Total *float64 `json:"total,omitempty"` } +// MarshalJSON is the custom marshaler for MetricValue. +func (mv MetricValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MongoDBCollectionCreateUpdateParameters parameters to create and update Cosmos DB MongoDB collection. type MongoDBCollectionCreateUpdateParameters struct { // MongoDBCollectionCreateUpdateProperties - Properties to create and update Azure Cosmos DB MongoDB collection. @@ -4524,6 +4626,12 @@ type MongoDBCollectionListResult struct { Value *[]MongoDBCollectionGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MongoDBCollectionListResult. +func (mdclr MongoDBCollectionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MongoDBCollectionResource cosmos DB MongoDB collection resource object type MongoDBCollectionResource struct { // ID - Name of the Cosmos DB MongoDB collection @@ -4830,6 +4938,12 @@ type MongoDBDatabaseListResult struct { Value *[]MongoDBDatabaseGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MongoDBDatabaseListResult. +func (mddlr MongoDBDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MongoDBDatabaseResource cosmos DB MongoDB database resource object type MongoDBDatabaseResource struct { // ID - Name of the Cosmos DB MongoDB database @@ -5186,6 +5300,12 @@ type NotebookWorkspaceConnectionInfoResult struct { NotebookServerEndpoint *string `json:"notebookServerEndpoint,omitempty"` } +// MarshalJSON is the custom marshaler for NotebookWorkspaceConnectionInfoResult. +func (nwcir NotebookWorkspaceConnectionInfoResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NotebookWorkspaceCreateUpdateParameters parameters to create a notebook workspace resource type NotebookWorkspaceCreateUpdateParameters struct { // ID - READ-ONLY; The unique resource identifier of the database account. @@ -5196,6 +5316,12 @@ type NotebookWorkspaceCreateUpdateParameters struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for NotebookWorkspaceCreateUpdateParameters. +func (nwcup NotebookWorkspaceCreateUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NotebookWorkspaceListResult a list of notebook workspace resources type NotebookWorkspaceListResult struct { autorest.Response `json:"-"` @@ -5211,6 +5337,12 @@ type NotebookWorkspaceProperties struct { Status *string `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for NotebookWorkspaceProperties. +func (nwp NotebookWorkspaceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NotebookWorkspacesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type NotebookWorkspacesCreateOrUpdateFuture struct { @@ -5589,6 +5721,12 @@ type PartitionMetricListResult struct { Value *[]PartitionMetric `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PartitionMetricListResult. +func (pmlr PartitionMetricListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PartitionUsage the partition level usage data for a usage request. type PartitionUsage struct { // PartitionID - READ-ONLY; The partition id (GUID identifier) of the usages. @@ -5623,6 +5761,12 @@ type PartitionUsagesResult struct { Value *[]PartitionUsage `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PartitionUsagesResult. +func (pur PartitionUsagesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PercentileMetric percentile Metric data type PercentileMetric struct { // StartTime - READ-ONLY; The start time for the metric (ISO-8601 format). @@ -5655,6 +5799,12 @@ type PercentileMetricListResult struct { Value *[]PercentileMetric `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PercentileMetricListResult. +func (pmlr PercentileMetricListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PercentileMetricValue represents percentile metrics values. type PercentileMetricValue struct { // P10 - READ-ONLY; The 10th percentile value for the metric. @@ -5685,6 +5835,12 @@ type PercentileMetricValue struct { Total *float64 `json:"total,omitempty"` } +// MarshalJSON is the custom marshaler for PercentileMetricValue. +func (pmv PercentileMetricValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PeriodicModeBackupPolicy the object representing periodic mode backup policy. type PeriodicModeBackupPolicy struct { // PeriodicModeProperties - Configuration values for periodic mode backup @@ -6010,6 +6166,12 @@ type PrivateLinkResourceProperties struct { RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. +func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkServiceConnectionStateProperty connection State of the Private Endpoint Connection. type PrivateLinkServiceConnectionStateProperty struct { // Status - The private link service connection status. @@ -6043,6 +6205,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegionForOnlineOffline cosmos DB region to online or offline. type RegionForOnlineOffline struct { // Region - Cosmos DB region, with spaces between words and each word capitalized. @@ -6059,6 +6227,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorableDatabaseAccountGetResult a Azure Cosmos DB restorable database account. type RestorableDatabaseAccountGetResult struct { autorest.Response `json:"-"` @@ -6209,6 +6383,12 @@ type RestorableDatabaseAccountsListResult struct { Value *[]RestorableDatabaseAccountGetResult `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableDatabaseAccountsListResult. +func (rdalr RestorableDatabaseAccountsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorableLocationResource properties of the regional restorable account. type RestorableLocationResource struct { // LocationName - READ-ONLY; The location of the regional restorable account. @@ -6221,6 +6401,12 @@ type RestorableLocationResource struct { DeletionTime *date.Time `json:"deletionTime,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableLocationResource. +func (rlr RestorableLocationResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorableMongodbCollectionGetResult an Azure Cosmos DB restorable MongoDB collection type RestorableMongodbCollectionGetResult struct { // RestorableMongodbCollectionProperties - The properties of a restorable MongoDB collection. @@ -6352,6 +6538,12 @@ type RestorableMongodbCollectionPropertiesResource struct { OwnerResourceID *string `json:"ownerResourceId,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableMongodbCollectionPropertiesResource. +func (rmcp RestorableMongodbCollectionPropertiesResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorableMongodbCollectionsListResult the List operation response, that contains the restorable MongoDB // collections and their properties. type RestorableMongodbCollectionsListResult struct { @@ -6360,6 +6552,12 @@ type RestorableMongodbCollectionsListResult struct { Value *[]RestorableMongodbCollectionGetResult `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableMongodbCollectionsListResult. +func (rmclr RestorableMongodbCollectionsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorableMongodbDatabaseGetResult an Azure Cosmos DB restorable MongoDB database type RestorableMongodbDatabaseGetResult struct { // RestorableMongodbDatabaseProperties - The properties of a restorable MongoDB database. @@ -6491,6 +6689,12 @@ type RestorableMongodbDatabasePropertiesResource struct { OwnerResourceID *string `json:"ownerResourceId,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableMongodbDatabasePropertiesResource. +func (rmdp RestorableMongodbDatabasePropertiesResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorableMongodbDatabasesListResult the List operation response, that contains the restorable MongoDB // databases and their properties. type RestorableMongodbDatabasesListResult struct { @@ -6499,6 +6703,12 @@ type RestorableMongodbDatabasesListResult struct { Value *[]RestorableMongodbDatabaseGetResult `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableMongodbDatabasesListResult. +func (rmdlr RestorableMongodbDatabasesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorableMongodbResourcesListResult the List operation response, that contains the restorable MongoDB // resources. type RestorableMongodbResourcesListResult struct { @@ -6507,6 +6717,12 @@ type RestorableMongodbResourcesListResult struct { Value *[]DatabaseRestoreResource `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableMongodbResourcesListResult. +func (rmrlr RestorableMongodbResourcesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorableSQLContainerGetResult an Azure Cosmos DB restorable SQL container type RestorableSQLContainerGetResult struct { // RestorableSQLContainerProperties - The properties of a restorable SQL container. @@ -6704,6 +6920,12 @@ type RestorableSQLContainersListResult struct { Value *[]RestorableSQLContainerGetResult `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableSQLContainersListResult. +func (rsclr RestorableSQLContainersListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorableSQLDatabaseGetResult an Azure Cosmos DB restorable SQL database type RestorableSQLDatabaseGetResult struct { // RestorableSQLDatabaseProperties - The properties of a restorable SQL database. @@ -6880,6 +7102,12 @@ type RestorableSQLDatabasesListResult struct { Value *[]RestorableSQLDatabaseGetResult `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableSQLDatabasesListResult. +func (rsdlr RestorableSQLDatabasesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorableSQLResourcesListResult the List operation response, that contains the restorable SQL // resources. type RestorableSQLResourcesListResult struct { @@ -6888,6 +7116,12 @@ type RestorableSQLResourcesListResult struct { Value *[]DatabaseRestoreResource `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableSQLResourcesListResult. +func (rsrlr RestorableSQLResourcesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestoreParameters parameters to indicate the information about the restore. type RestoreParameters struct { // RestoreMode - Describes the mode of the restore. Possible values include: 'PointInTime' @@ -7546,6 +7780,12 @@ type SQLContainerListResult struct { Value *[]SQLContainerGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLContainerListResult. +func (sclr SQLContainerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLContainerResource cosmos DB SQL container resource object type SQLContainerResource struct { // ID - Name of the Cosmos DB SQL container @@ -7847,6 +8087,12 @@ type SQLDatabaseListResult struct { Value *[]SQLDatabaseGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLDatabaseListResult. +func (sdlr SQLDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLDatabaseResource cosmos DB SQL database resource object type SQLDatabaseResource struct { // ID - Name of the Cosmos DB SQL database @@ -8619,6 +8865,12 @@ type SQLRoleAssignmentListResult struct { Value *[]SQLRoleAssignmentGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLRoleAssignmentListResult. +func (sralr SQLRoleAssignmentListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLRoleAssignmentResource azure Cosmos DB SQL Role Assignment resource object. type SQLRoleAssignmentResource struct { // RoleDefinitionID - The unique identifier for the associated Role Definition. @@ -8749,6 +9001,12 @@ type SQLRoleDefinitionListResult struct { Value *[]SQLRoleDefinitionGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLRoleDefinitionListResult. +func (srdlr SQLRoleDefinitionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLRoleDefinitionResource azure Cosmos DB SQL Role Definition resource object. type SQLRoleDefinitionResource struct { // RoleName - A user-friendly name for the Role Definition. Must be unique for the database account. @@ -9034,6 +9292,12 @@ type SQLStoredProcedureListResult struct { Value *[]SQLStoredProcedureGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLStoredProcedureListResult. +func (ssplr SQLStoredProcedureListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLStoredProcedureResource cosmos DB SQL storedProcedure resource object type SQLStoredProcedureResource struct { // ID - Name of the Cosmos DB SQL storedProcedure @@ -9323,6 +9587,12 @@ type SQLTriggerListResult struct { Value *[]SQLTriggerGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLTriggerListResult. +func (stlr SQLTriggerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLTriggerResource cosmos DB SQL trigger resource object type SQLTriggerResource struct { // ID - Name of the Cosmos DB SQL trigger @@ -9609,6 +9879,12 @@ type SQLUserDefinedFunctionListResult struct { Value *[]SQLUserDefinedFunctionGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLUserDefinedFunctionListResult. +func (sudflr SQLUserDefinedFunctionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLUserDefinedFunctionResource cosmos DB SQL userDefinedFunction resource object type SQLUserDefinedFunctionResource struct { // ID - Name of the Cosmos DB SQL userDefinedFunction @@ -9908,6 +10184,12 @@ type TableListResult struct { Value *[]TableGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for TableListResult. +func (tlr TableListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TableResource cosmos DB table resource object type TableResource struct { // ID - Name of the Cosmos DB table @@ -10407,6 +10689,12 @@ type UsagesResult struct { Value *[]Usage `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for UsagesResult. +func (ur UsagesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkRule virtual Network ACL Rule object type VirtualNetworkRule struct { // ID - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. diff --git a/services/preview/cosmos-db/mgmt/2020-09-01-preview/documentdb/CHANGELOG.md b/services/preview/cosmos-db/mgmt/2020-09-01-preview/documentdb/CHANGELOG.md index 52911e4cc5e4..8e91082d3113 100644 --- a/services/preview/cosmos-db/mgmt/2020-09-01-preview/documentdb/CHANGELOG.md +++ b/services/preview/cosmos-db/mgmt/2020-09-01-preview/documentdb/CHANGELOG.md @@ -1,2 +1,41 @@ # Change History +## Additive Changes + +### New Funcs + +1. ARMProxyResource.MarshalJSON() ([]byte, error) +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. CassandraKeyspaceListResult.MarshalJSON() ([]byte, error) +1. CassandraTableListResult.MarshalJSON() ([]byte, error) +1. DatabaseAccountConnectionString.MarshalJSON() ([]byte, error) +1. DatabaseAccountListKeysResult.MarshalJSON() ([]byte, error) +1. DatabaseAccountListReadOnlyKeysResult.MarshalJSON() ([]byte, error) +1. DatabaseAccountsListResult.MarshalJSON() ([]byte, error) +1. ExtendedResourceProperties.MarshalJSON() ([]byte, error) +1. GremlinDatabaseListResult.MarshalJSON() ([]byte, error) +1. GremlinGraphListResult.MarshalJSON() ([]byte, error) +1. MetricAvailability.MarshalJSON() ([]byte, error) +1. MetricDefinitionsListResult.MarshalJSON() ([]byte, error) +1. MetricListResult.MarshalJSON() ([]byte, error) +1. MetricName.MarshalJSON() ([]byte, error) +1. MetricValue.MarshalJSON() ([]byte, error) +1. MongoDBCollectionListResult.MarshalJSON() ([]byte, error) +1. MongoDBDatabaseListResult.MarshalJSON() ([]byte, error) +1. NotebookWorkspaceConnectionInfoResult.MarshalJSON() ([]byte, error) +1. NotebookWorkspaceCreateUpdateParameters.MarshalJSON() ([]byte, error) +1. NotebookWorkspaceProperties.MarshalJSON() ([]byte, error) +1. PartitionMetricListResult.MarshalJSON() ([]byte, error) +1. PartitionUsagesResult.MarshalJSON() ([]byte, error) +1. PercentileMetricListResult.MarshalJSON() ([]byte, error) +1. PercentileMetricValue.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. SQLContainerListResult.MarshalJSON() ([]byte, error) +1. SQLDatabaseListResult.MarshalJSON() ([]byte, error) +1. SQLStoredProcedureListResult.MarshalJSON() ([]byte, error) +1. SQLTriggerListResult.MarshalJSON() ([]byte, error) +1. SQLUserDefinedFunctionListResult.MarshalJSON() ([]byte, error) +1. TableListResult.MarshalJSON() ([]byte, error) +1. UsagesResult.MarshalJSON() ([]byte, error) diff --git a/services/preview/cosmos-db/mgmt/2020-09-01-preview/documentdb/_meta.json b/services/preview/cosmos-db/mgmt/2020-09-01-preview/documentdb/_meta.json index ace9d0430316..a965a4ac99dc 100644 --- a/services/preview/cosmos-db/mgmt/2020-09-01-preview/documentdb/_meta.json +++ b/services/preview/cosmos-db/mgmt/2020-09-01-preview/documentdb/_meta.json @@ -2,9 +2,9 @@ "commit": "2601b21eccaab01da2feb65d232ab6c3cb9c1c45", "readme": "/_/azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md", "tag": "package-2020-09", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/cosmos-db/mgmt/2020-09-01-preview/documentdb/models.go b/services/preview/cosmos-db/mgmt/2020-09-01-preview/documentdb/models.go index a3a138642931..1bf24383a13e 100644 --- a/services/preview/cosmos-db/mgmt/2020-09-01-preview/documentdb/models.go +++ b/services/preview/cosmos-db/mgmt/2020-09-01-preview/documentdb/models.go @@ -37,6 +37,12 @@ type ARMProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ARMProxyResource. +func (apr ARMProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ARMResourceProperties the core properties of ARM resources. type ARMResourceProperties struct { // ID - READ-ONLY; The unique resource identifier of the ARM resource. @@ -108,6 +114,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicBackupPolicy the object representing the policy for taking backups on an account. type BasicBackupPolicy interface { AsPeriodicModeBackupPolicy() (*PeriodicModeBackupPolicy, bool) @@ -449,6 +461,12 @@ type CassandraKeyspaceListResult struct { Value *[]CassandraKeyspaceGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CassandraKeyspaceListResult. +func (cklr CassandraKeyspaceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CassandraKeyspaceResource cosmos DB Cassandra keyspace resource object type CassandraKeyspaceResource struct { // ID - Name of the Cosmos DB Cassandra keyspace @@ -1154,6 +1172,12 @@ type CassandraTableListResult struct { Value *[]CassandraTableGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CassandraTableListResult. +func (ctlr CassandraTableListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CassandraTableResource cosmos DB Cassandra table resource object type CassandraTableResource struct { // ID - Name of the Cosmos DB Cassandra table @@ -1288,6 +1312,12 @@ type DatabaseAccountConnectionString struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountConnectionString. +func (dacs DatabaseAccountConnectionString) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountCreateUpdateParameters parameters to create and update Cosmos DB database accounts. type DatabaseAccountCreateUpdateParameters struct { // Kind - Indicates the type of database account. This can only be set at database account creation. Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse' @@ -2110,6 +2140,12 @@ type DatabaseAccountListKeysResult struct { SecondaryReadonlyMasterKey *string `json:"secondaryReadonlyMasterKey,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountListKeysResult. +func (dalkr DatabaseAccountListKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountListReadOnlyKeysResult the read-only access keys for the given database account. type DatabaseAccountListReadOnlyKeysResult struct { autorest.Response `json:"-"` @@ -2119,6 +2155,12 @@ type DatabaseAccountListReadOnlyKeysResult struct { SecondaryReadonlyMasterKey *string `json:"secondaryReadonlyMasterKey,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountListReadOnlyKeysResult. +func (dalrokr DatabaseAccountListReadOnlyKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountRegenerateKeyParameters parameters to regenerate the keys within the database account. type DatabaseAccountRegenerateKeyParameters struct { // KeyKind - The access key to regenerate. Possible values include: 'Primary', 'Secondary', 'PrimaryReadonly', 'SecondaryReadonly' @@ -2250,6 +2292,12 @@ type DatabaseAccountsListResult struct { Value *[]DatabaseAccountGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountsListResult. +func (dalr DatabaseAccountsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountsOfflineRegionFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type DatabaseAccountsOfflineRegionFuture struct { @@ -2715,6 +2763,12 @@ type ExtendedResourceProperties struct { Etag *string `json:"_etag,omitempty"` } +// MarshalJSON is the custom marshaler for ExtendedResourceProperties. +func (erp ExtendedResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FailoverPolicies the list of new failover policies for the failover priority change. type FailoverPolicies struct { // FailoverPolicies - List of failover policies. @@ -2993,6 +3047,12 @@ type GremlinDatabaseListResult struct { Value *[]GremlinDatabaseGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for GremlinDatabaseListResult. +func (gdlr GremlinDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GremlinDatabaseResource cosmos DB Gremlin database resource object type GremlinDatabaseResource struct { // ID - Name of the Cosmos DB Gremlin database @@ -3273,6 +3333,12 @@ type GremlinGraphListResult struct { Value *[]GremlinGraphGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for GremlinGraphListResult. +func (gglr GremlinGraphListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GremlinGraphResource cosmos DB Gremlin graph resource object type GremlinGraphResource struct { // ID - Name of the Cosmos DB Gremlin graph @@ -3813,6 +3879,12 @@ type MetricAvailability struct { Retention *string `json:"retention,omitempty"` } +// MarshalJSON is the custom marshaler for MetricAvailability. +func (ma MetricAvailability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricDefinition the definition of a metric. type MetricDefinition struct { // MetricAvailabilities - READ-ONLY; The list of metric availabilities for the account. @@ -3843,6 +3915,12 @@ type MetricDefinitionsListResult struct { Value *[]MetricDefinition `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MetricDefinitionsListResult. +func (mdlr MetricDefinitionsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricListResult the response to a list metrics request. type MetricListResult struct { autorest.Response `json:"-"` @@ -3850,6 +3928,12 @@ type MetricListResult struct { Value *[]Metric `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MetricListResult. +func (mlr MetricListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricName a metric name. type MetricName struct { // Value - READ-ONLY; The name of the metric. @@ -3858,6 +3942,12 @@ type MetricName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for MetricName. +func (mn MetricName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricValue represents metrics values. type MetricValue struct { // Count - READ-ONLY; The number of values for the metric. @@ -3874,6 +3964,12 @@ type MetricValue struct { Total *float64 `json:"total,omitempty"` } +// MarshalJSON is the custom marshaler for MetricValue. +func (mv MetricValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MongoDBCollectionCreateUpdateParameters parameters to create and update Cosmos DB MongoDB collection. type MongoDBCollectionCreateUpdateParameters struct { // MongoDBCollectionCreateUpdateProperties - Properties to create and update Azure Cosmos DB MongoDB collection. @@ -4140,6 +4236,12 @@ type MongoDBCollectionListResult struct { Value *[]MongoDBCollectionGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MongoDBCollectionListResult. +func (mdclr MongoDBCollectionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MongoDBCollectionResource cosmos DB MongoDB collection resource object type MongoDBCollectionResource struct { // ID - Name of the Cosmos DB MongoDB collection @@ -4420,6 +4522,12 @@ type MongoDBDatabaseListResult struct { Value *[]MongoDBDatabaseGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MongoDBDatabaseListResult. +func (mddlr MongoDBDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MongoDBDatabaseResource cosmos DB MongoDB database resource object type MongoDBDatabaseResource struct { // ID - Name of the Cosmos DB MongoDB database @@ -4948,6 +5056,12 @@ type NotebookWorkspaceConnectionInfoResult struct { NotebookServerEndpoint *string `json:"notebookServerEndpoint,omitempty"` } +// MarshalJSON is the custom marshaler for NotebookWorkspaceConnectionInfoResult. +func (nwcir NotebookWorkspaceConnectionInfoResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NotebookWorkspaceCreateUpdateParameters parameters to create a notebook workspace resource type NotebookWorkspaceCreateUpdateParameters struct { // ID - READ-ONLY; The unique resource identifier of the database account. @@ -4958,6 +5072,12 @@ type NotebookWorkspaceCreateUpdateParameters struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for NotebookWorkspaceCreateUpdateParameters. +func (nwcup NotebookWorkspaceCreateUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NotebookWorkspaceListResult a list of notebook workspace resources type NotebookWorkspaceListResult struct { autorest.Response `json:"-"` @@ -4973,6 +5093,12 @@ type NotebookWorkspaceProperties struct { Status *string `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for NotebookWorkspaceProperties. +func (nwp NotebookWorkspaceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NotebookWorkspacesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type NotebookWorkspacesCreateOrUpdateFuture struct { @@ -5351,6 +5477,12 @@ type PartitionMetricListResult struct { Value *[]PartitionMetric `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PartitionMetricListResult. +func (pmlr PartitionMetricListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PartitionUsage the partition level usage data for a usage request. type PartitionUsage struct { // PartitionID - READ-ONLY; The partition id (GUID identifier) of the usages. @@ -5385,6 +5517,12 @@ type PartitionUsagesResult struct { Value *[]PartitionUsage `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PartitionUsagesResult. +func (pur PartitionUsagesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PercentileMetric percentile Metric data type PercentileMetric struct { // StartTime - READ-ONLY; The start time for the metric (ISO-8601 format). @@ -5417,6 +5555,12 @@ type PercentileMetricListResult struct { Value *[]PercentileMetric `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PercentileMetricListResult. +func (pmlr PercentileMetricListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PercentileMetricValue represents percentile metrics values. type PercentileMetricValue struct { // P10 - READ-ONLY; The 10th percentile value for the metric. @@ -5447,6 +5591,12 @@ type PercentileMetricValue struct { Total *float64 `json:"total,omitempty"` } +// MarshalJSON is the custom marshaler for PercentileMetricValue. +func (pmv PercentileMetricValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PeriodicModeBackupPolicy the object representing periodic mode backup policy. type PeriodicModeBackupPolicy struct { // PeriodicModeProperties - Configuration values for periodic mode backup @@ -5764,6 +5914,12 @@ type PrivateLinkResourceProperties struct { RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. +func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkServiceConnectionStateProperty connection State of the Private Endpoint Connection. type PrivateLinkServiceConnectionStateProperty struct { // Status - The private link service connection status. @@ -5797,6 +5953,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegionForOnlineOffline cosmos DB region to online or offline. type RegionForOnlineOffline struct { // Region - Cosmos DB region, with spaces between words and each word capitalized. @@ -5813,6 +5975,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SpatialSpec ... type SpatialSpec struct { // Path - The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*) @@ -6100,6 +6268,12 @@ type SQLContainerListResult struct { Value *[]SQLContainerGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLContainerListResult. +func (sclr SQLContainerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLContainerResource cosmos DB SQL container resource object type SQLContainerResource struct { // ID - Name of the Cosmos DB SQL container @@ -6377,6 +6551,12 @@ type SQLDatabaseListResult struct { Value *[]SQLDatabaseGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLDatabaseListResult. +func (sdlr SQLDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLDatabaseResource cosmos DB SQL database resource object type SQLDatabaseResource struct { // ID - Name of the Cosmos DB SQL database @@ -7288,6 +7468,12 @@ type SQLStoredProcedureListResult struct { Value *[]SQLStoredProcedureGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLStoredProcedureListResult. +func (ssplr SQLStoredProcedureListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLStoredProcedureResource cosmos DB SQL storedProcedure resource object type SQLStoredProcedureResource struct { // ID - Name of the Cosmos DB SQL storedProcedure @@ -7551,6 +7737,12 @@ type SQLTriggerListResult struct { Value *[]SQLTriggerGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLTriggerListResult. +func (stlr SQLTriggerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLTriggerResource cosmos DB SQL trigger resource object type SQLTriggerResource struct { // ID - Name of the Cosmos DB SQL trigger @@ -7811,6 +8003,12 @@ type SQLUserDefinedFunctionListResult struct { Value *[]SQLUserDefinedFunctionGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLUserDefinedFunctionListResult. +func (sudflr SQLUserDefinedFunctionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLUserDefinedFunctionResource cosmos DB SQL userDefinedFunction resource object type SQLUserDefinedFunctionResource struct { // ID - Name of the Cosmos DB SQL userDefinedFunction @@ -8068,6 +8266,12 @@ type TableListResult struct { Value *[]TableGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for TableListResult. +func (tlr TableListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TableResource cosmos DB table resource object type TableResource struct { // ID - Name of the Cosmos DB table @@ -8627,6 +8831,12 @@ type UsagesResult struct { Value *[]Usage `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for UsagesResult. +func (ur UsagesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkRule virtual Network ACL Rule object type VirtualNetworkRule struct { // ID - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. diff --git a/services/preview/cosmos-db/mgmt/2021-03-01-preview/documentdb/CHANGELOG.md b/services/preview/cosmos-db/mgmt/2021-03-01-preview/documentdb/CHANGELOG.md index 52911e4cc5e4..ec330200d3bf 100644 --- a/services/preview/cosmos-db/mgmt/2021-03-01-preview/documentdb/CHANGELOG.md +++ b/services/preview/cosmos-db/mgmt/2021-03-01-preview/documentdb/CHANGELOG.md @@ -1,2 +1,56 @@ # Change History +## Additive Changes + +### New Funcs + +1. ARMProxyResource.MarshalJSON() ([]byte, error) +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. CassandraKeyspaceListResult.MarshalJSON() ([]byte, error) +1. CassandraTableListResult.MarshalJSON() ([]byte, error) +1. DatabaseAccountConnectionString.MarshalJSON() ([]byte, error) +1. DatabaseAccountListKeysResult.MarshalJSON() ([]byte, error) +1. DatabaseAccountListReadOnlyKeysResult.MarshalJSON() ([]byte, error) +1. DatabaseAccountsListResult.MarshalJSON() ([]byte, error) +1. ExtendedResourceProperties.MarshalJSON() ([]byte, error) +1. GremlinDatabaseListResult.MarshalJSON() ([]byte, error) +1. GremlinGraphListResult.MarshalJSON() ([]byte, error) +1. ListBackups.MarshalJSON() ([]byte, error) +1. ListDataCenters.MarshalJSON() ([]byte, error) +1. ManagedServiceIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. MetricAvailability.MarshalJSON() ([]byte, error) +1. MetricDefinitionsListResult.MarshalJSON() ([]byte, error) +1. MetricListResult.MarshalJSON() ([]byte, error) +1. MetricName.MarshalJSON() ([]byte, error) +1. MetricValue.MarshalJSON() ([]byte, error) +1. MongoDBCollectionListResult.MarshalJSON() ([]byte, error) +1. MongoDBDatabaseListResult.MarshalJSON() ([]byte, error) +1. NotebookWorkspaceConnectionInfoResult.MarshalJSON() ([]byte, error) +1. NotebookWorkspaceCreateUpdateParameters.MarshalJSON() ([]byte, error) +1. NotebookWorkspaceProperties.MarshalJSON() ([]byte, error) +1. PartitionMetricListResult.MarshalJSON() ([]byte, error) +1. PartitionUsagesResult.MarshalJSON() ([]byte, error) +1. PercentileMetricListResult.MarshalJSON() ([]byte, error) +1. PercentileMetricValue.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. RestorableDatabaseAccountsListResult.MarshalJSON() ([]byte, error) +1. RestorableLocationResource.MarshalJSON() ([]byte, error) +1. RestorableMongodbCollectionPropertiesResource.MarshalJSON() ([]byte, error) +1. RestorableMongodbCollectionsListResult.MarshalJSON() ([]byte, error) +1. RestorableMongodbDatabasePropertiesResource.MarshalJSON() ([]byte, error) +1. RestorableMongodbDatabasesListResult.MarshalJSON() ([]byte, error) +1. RestorableMongodbResourcesListResult.MarshalJSON() ([]byte, error) +1. RestorableSQLContainersListResult.MarshalJSON() ([]byte, error) +1. RestorableSQLDatabasesListResult.MarshalJSON() ([]byte, error) +1. RestorableSQLResourcesListResult.MarshalJSON() ([]byte, error) +1. SQLContainerListResult.MarshalJSON() ([]byte, error) +1. SQLDatabaseListResult.MarshalJSON() ([]byte, error) +1. SQLRoleAssignmentListResult.MarshalJSON() ([]byte, error) +1. SQLRoleDefinitionListResult.MarshalJSON() ([]byte, error) +1. SQLStoredProcedureListResult.MarshalJSON() ([]byte, error) +1. SQLTriggerListResult.MarshalJSON() ([]byte, error) +1. SQLUserDefinedFunctionListResult.MarshalJSON() ([]byte, error) +1. TableListResult.MarshalJSON() ([]byte, error) +1. UsagesResult.MarshalJSON() ([]byte, error) diff --git a/services/preview/cosmos-db/mgmt/2021-03-01-preview/documentdb/_meta.json b/services/preview/cosmos-db/mgmt/2021-03-01-preview/documentdb/_meta.json index 1996d8eee819..1ea53720548b 100644 --- a/services/preview/cosmos-db/mgmt/2021-03-01-preview/documentdb/_meta.json +++ b/services/preview/cosmos-db/mgmt/2021-03-01-preview/documentdb/_meta.json @@ -2,9 +2,9 @@ "commit": "fbdca24500e7218ef975ca2947651d6d84933ef9", "readme": "/_/azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md", "tag": "package-2021-03-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2021-03-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2021-03-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/cosmos-db/mgmt/2021-03-01-preview/documentdb/models.go b/services/preview/cosmos-db/mgmt/2021-03-01-preview/documentdb/models.go index 2e3139cc1087..4b2cafdaf2c2 100644 --- a/services/preview/cosmos-db/mgmt/2021-03-01-preview/documentdb/models.go +++ b/services/preview/cosmos-db/mgmt/2021-03-01-preview/documentdb/models.go @@ -37,6 +37,12 @@ type ARMProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ARMProxyResource. +func (apr ARMProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ARMResourceProperties the core properties of ARM resources. type ARMResourceProperties struct { // ID - READ-ONLY; The unique resource identifier of the ARM resource. @@ -112,6 +118,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicBackupPolicy the object representing the policy for taking backups on an account. type BasicBackupPolicy interface { AsPeriodicModeBackupPolicy() (*PeriodicModeBackupPolicy, bool) @@ -832,6 +844,12 @@ type CassandraKeyspaceListResult struct { Value *[]CassandraKeyspaceGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CassandraKeyspaceListResult. +func (cklr CassandraKeyspaceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CassandraKeyspaceResource cosmos DB Cassandra keyspace resource object type CassandraKeyspaceResource struct { // ID - Name of the Cosmos DB Cassandra keyspace @@ -1563,6 +1581,12 @@ type CassandraTableListResult struct { Value *[]CassandraTableGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CassandraTableListResult. +func (ctlr CassandraTableListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CassandraTableResource cosmos DB Cassandra table resource object type CassandraTableResource struct { // ID - Name of the Cosmos DB Cassandra table @@ -1868,6 +1892,12 @@ type DatabaseAccountConnectionString struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountConnectionString. +func (dacs DatabaseAccountConnectionString) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountCreateUpdateParameters parameters to create and update Cosmos DB database accounts. type DatabaseAccountCreateUpdateParameters struct { // Kind - Indicates the type of database account. This can only be set at database account creation. Possible values include: 'DatabaseAccountKindGlobalDocumentDB', 'DatabaseAccountKindMongoDB', 'DatabaseAccountKindParse' @@ -2963,6 +2993,12 @@ type DatabaseAccountListKeysResult struct { SecondaryReadonlyMasterKey *string `json:"secondaryReadonlyMasterKey,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountListKeysResult. +func (dalkr DatabaseAccountListKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountListReadOnlyKeysResult the read-only access keys for the given database account. type DatabaseAccountListReadOnlyKeysResult struct { autorest.Response `json:"-"` @@ -2972,6 +3008,12 @@ type DatabaseAccountListReadOnlyKeysResult struct { SecondaryReadonlyMasterKey *string `json:"secondaryReadonlyMasterKey,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountListReadOnlyKeysResult. +func (dalrokr DatabaseAccountListReadOnlyKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountRegenerateKeyParameters parameters to regenerate the keys within the database account. type DatabaseAccountRegenerateKeyParameters struct { // KeyKind - The access key to regenerate. Possible values include: 'Primary', 'Secondary', 'PrimaryReadonly', 'SecondaryReadonly' @@ -3103,6 +3145,12 @@ type DatabaseAccountsListResult struct { Value *[]DatabaseAccountGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountsListResult. +func (dalr DatabaseAccountsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountsOfflineRegionFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type DatabaseAccountsOfflineRegionFuture struct { @@ -4017,6 +4065,12 @@ type ExtendedResourceProperties struct { Etag *string `json:"_etag,omitempty"` } +// MarshalJSON is the custom marshaler for ExtendedResourceProperties. +func (erp ExtendedResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FailoverPolicies the list of new failover policies for the failover priority change. type FailoverPolicies struct { // FailoverPolicies - List of failover policies. @@ -4321,6 +4375,12 @@ type GremlinDatabaseListResult struct { Value *[]GremlinDatabaseGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for GremlinDatabaseListResult. +func (gdlr GremlinDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GremlinDatabaseResource cosmos DB Gremlin database resource object type GremlinDatabaseResource struct { // ID - Name of the Cosmos DB Gremlin database @@ -4627,6 +4687,12 @@ type GremlinGraphListResult struct { Value *[]GremlinGraphGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for GremlinGraphListResult. +func (gglr GremlinGraphListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GremlinGraphResource cosmos DB Gremlin graph resource object type GremlinGraphResource struct { // ID - Name of the Cosmos DB Gremlin graph @@ -5108,6 +5174,12 @@ type ListBackups struct { Value *[]BackupResource `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ListBackups. +func (lb ListBackups) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListClusters list of managed Cassandra clusters. type ListClusters struct { autorest.Response `json:"-"` @@ -5122,6 +5194,12 @@ type ListDataCenters struct { Value *[]DataCenterResource `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ListDataCenters. +func (ldc ListDataCenters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Location a region in which the Azure Cosmos DB database account is deployed. type Location struct { // ID - READ-ONLY; The unique identifier of the region within the database account. Example: <accountName>-<locationName>. @@ -5187,6 +5265,12 @@ type ManagedServiceIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedServiceIdentityUserAssignedIdentitiesValue. +func (msiAiv ManagedServiceIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Metric metric data type Metric struct { // StartTime - READ-ONLY; The start time for the metric (ISO-8601 format). @@ -5220,6 +5304,12 @@ type MetricAvailability struct { Retention *string `json:"retention,omitempty"` } +// MarshalJSON is the custom marshaler for MetricAvailability. +func (ma MetricAvailability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricDefinition the definition of a metric. type MetricDefinition struct { // MetricAvailabilities - READ-ONLY; The list of metric availabilities for the account. @@ -5250,6 +5340,12 @@ type MetricDefinitionsListResult struct { Value *[]MetricDefinition `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MetricDefinitionsListResult. +func (mdlr MetricDefinitionsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricListResult the response to a list metrics request. type MetricListResult struct { autorest.Response `json:"-"` @@ -5257,6 +5353,12 @@ type MetricListResult struct { Value *[]Metric `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MetricListResult. +func (mlr MetricListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricName a metric name. type MetricName struct { // Value - READ-ONLY; The name of the metric. @@ -5265,6 +5367,12 @@ type MetricName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for MetricName. +func (mn MetricName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricValue represents metrics values. type MetricValue struct { // Count - READ-ONLY; The number of values for the metric. @@ -5281,6 +5389,12 @@ type MetricValue struct { Total *float64 `json:"total,omitempty"` } +// MarshalJSON is the custom marshaler for MetricValue. +func (mv MetricValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MongoDBCollectionCreateUpdateParameters parameters to create and update Cosmos DB MongoDB collection. type MongoDBCollectionCreateUpdateParameters struct { // MongoDBCollectionCreateUpdateProperties - Properties to create and update Azure Cosmos DB MongoDB collection. @@ -5573,6 +5687,12 @@ type MongoDBCollectionListResult struct { Value *[]MongoDBCollectionGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MongoDBCollectionListResult. +func (mdclr MongoDBCollectionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MongoDBCollectionResource cosmos DB MongoDB collection resource object type MongoDBCollectionResource struct { // ID - Name of the Cosmos DB MongoDB collection @@ -5879,6 +5999,12 @@ type MongoDBDatabaseListResult struct { Value *[]MongoDBDatabaseGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MongoDBDatabaseListResult. +func (mddlr MongoDBDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MongoDBDatabaseResource cosmos DB MongoDB database resource object type MongoDBDatabaseResource struct { // ID - Name of the Cosmos DB MongoDB database @@ -6407,6 +6533,12 @@ type NotebookWorkspaceConnectionInfoResult struct { NotebookServerEndpoint *string `json:"notebookServerEndpoint,omitempty"` } +// MarshalJSON is the custom marshaler for NotebookWorkspaceConnectionInfoResult. +func (nwcir NotebookWorkspaceConnectionInfoResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NotebookWorkspaceCreateUpdateParameters parameters to create a notebook workspace resource type NotebookWorkspaceCreateUpdateParameters struct { // ID - READ-ONLY; The unique resource identifier of the database account. @@ -6417,6 +6549,12 @@ type NotebookWorkspaceCreateUpdateParameters struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for NotebookWorkspaceCreateUpdateParameters. +func (nwcup NotebookWorkspaceCreateUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NotebookWorkspaceListResult a list of notebook workspace resources type NotebookWorkspaceListResult struct { autorest.Response `json:"-"` @@ -6432,6 +6570,12 @@ type NotebookWorkspaceProperties struct { Status *string `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for NotebookWorkspaceProperties. +func (nwp NotebookWorkspaceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NotebookWorkspacesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type NotebookWorkspacesCreateOrUpdateFuture struct { @@ -6810,6 +6954,12 @@ type PartitionMetricListResult struct { Value *[]PartitionMetric `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PartitionMetricListResult. +func (pmlr PartitionMetricListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PartitionUsage the partition level usage data for a usage request. type PartitionUsage struct { // PartitionID - READ-ONLY; The partition id (GUID identifier) of the usages. @@ -6844,6 +6994,12 @@ type PartitionUsagesResult struct { Value *[]PartitionUsage `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PartitionUsagesResult. +func (pur PartitionUsagesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PercentileMetric percentile Metric data type PercentileMetric struct { // StartTime - READ-ONLY; The start time for the metric (ISO-8601 format). @@ -6876,6 +7032,12 @@ type PercentileMetricListResult struct { Value *[]PercentileMetric `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PercentileMetricListResult. +func (pmlr PercentileMetricListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PercentileMetricValue represents percentile metrics values. type PercentileMetricValue struct { // P10 - READ-ONLY; The 10th percentile value for the metric. @@ -6906,6 +7068,12 @@ type PercentileMetricValue struct { Total *float64 `json:"total,omitempty"` } +// MarshalJSON is the custom marshaler for PercentileMetricValue. +func (pmv PercentileMetricValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PeriodicModeBackupPolicy the object representing periodic mode backup policy. type PeriodicModeBackupPolicy struct { // PeriodicModeProperties - Configuration values for periodic mode backup @@ -7233,6 +7401,12 @@ type PrivateLinkResourceProperties struct { RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. +func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkServiceConnectionStateProperty connection State of the Private Endpoint Connection. type PrivateLinkServiceConnectionStateProperty struct { // Status - The private link service connection status. @@ -7266,6 +7440,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegionForOnlineOffline cosmos DB region to online or offline. type RegionForOnlineOffline struct { // Region - Cosmos DB region, with spaces between words and each word capitalized. @@ -7290,6 +7470,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorableDatabaseAccountGetResult a Azure Cosmos DB restorable database account. type RestorableDatabaseAccountGetResult struct { autorest.Response `json:"-"` @@ -7414,6 +7600,12 @@ type RestorableDatabaseAccountsListResult struct { Value *[]RestorableDatabaseAccountGetResult `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableDatabaseAccountsListResult. +func (rdalr RestorableDatabaseAccountsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorableLocationResource properties of the regional restorable account. type RestorableLocationResource struct { // LocationName - READ-ONLY; The location of the regional restorable account. @@ -7426,6 +7618,12 @@ type RestorableLocationResource struct { DeletionTime *date.Time `json:"deletionTime,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableLocationResource. +func (rlr RestorableLocationResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorableMongodbCollectionGetResult an Azure Cosmos DB MongoDB collection event type RestorableMongodbCollectionGetResult struct { // RestorableMongodbCollectionProperties - The properties of a MongoDB collection event. @@ -7519,6 +7717,12 @@ type RestorableMongodbCollectionPropertiesResource struct { OwnerResourceID *string `json:"ownerResourceId,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableMongodbCollectionPropertiesResource. +func (rmcp RestorableMongodbCollectionPropertiesResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorableMongodbCollectionsListResult the List operation response, that contains the MongoDB collection // events and their properties. type RestorableMongodbCollectionsListResult struct { @@ -7527,6 +7731,12 @@ type RestorableMongodbCollectionsListResult struct { Value *[]RestorableMongodbCollectionGetResult `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableMongodbCollectionsListResult. +func (rmclr RestorableMongodbCollectionsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorableMongodbDatabaseGetResult an Azure Cosmos DB MongoDB database event type RestorableMongodbDatabaseGetResult struct { // RestorableMongodbDatabaseProperties - The properties of a MongoDB database event. @@ -7619,6 +7829,12 @@ type RestorableMongodbDatabasePropertiesResource struct { OwnerResourceID *string `json:"ownerResourceId,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableMongodbDatabasePropertiesResource. +func (rmdp RestorableMongodbDatabasePropertiesResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorableMongodbDatabasesListResult the List operation response, that contains the MongoDB database // events and their properties. type RestorableMongodbDatabasesListResult struct { @@ -7627,6 +7843,12 @@ type RestorableMongodbDatabasesListResult struct { Value *[]RestorableMongodbDatabaseGetResult `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableMongodbDatabasesListResult. +func (rmdlr RestorableMongodbDatabasesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorableMongodbResourcesListResult the List operation response, that contains the restorable MongoDB // resources. type RestorableMongodbResourcesListResult struct { @@ -7635,6 +7857,12 @@ type RestorableMongodbResourcesListResult struct { Value *[]DatabaseRestoreResource `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableMongodbResourcesListResult. +func (rmrlr RestorableMongodbResourcesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorableSQLContainerGetResult an Azure Cosmos DB SQL container event type RestorableSQLContainerGetResult struct { // RestorableSQLContainerProperties - The properties of a SQL container event. @@ -7799,6 +8027,12 @@ type RestorableSQLContainersListResult struct { Value *[]RestorableSQLContainerGetResult `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableSQLContainersListResult. +func (rsclr RestorableSQLContainersListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorableSQLDatabaseGetResult an Azure Cosmos DB SQL database event type RestorableSQLDatabaseGetResult struct { // RestorableSQLDatabaseProperties - The properties of a SQL database event. @@ -7937,6 +8171,12 @@ type RestorableSQLDatabasesListResult struct { Value *[]RestorableSQLDatabaseGetResult `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableSQLDatabasesListResult. +func (rsdlr RestorableSQLDatabasesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorableSQLResourcesListResult the List operation response, that contains the restorable SQL // resources. type RestorableSQLResourcesListResult struct { @@ -7945,6 +8185,12 @@ type RestorableSQLResourcesListResult struct { Value *[]DatabaseRestoreResource `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableSQLResourcesListResult. +func (rsrlr RestorableSQLResourcesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestoreParameters parameters to indicate the information about the restore. type RestoreParameters struct { // RestoreMode - Describes the mode of the restore. Possible values include: 'PointInTime' @@ -8642,6 +8888,12 @@ type SQLContainerListResult struct { Value *[]SQLContainerGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLContainerListResult. +func (sclr SQLContainerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLContainerResource cosmos DB SQL container resource object type SQLContainerResource struct { // ID - Name of the Cosmos DB SQL container @@ -8945,6 +9197,12 @@ type SQLDatabaseListResult struct { Value *[]SQLDatabaseGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLDatabaseListResult. +func (sdlr SQLDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLDatabaseResource cosmos DB SQL database resource object type SQLDatabaseResource struct { // ID - Name of the Cosmos DB SQL database @@ -9889,6 +10147,12 @@ type SQLRoleAssignmentListResult struct { Value *[]SQLRoleAssignmentGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLRoleAssignmentListResult. +func (sralr SQLRoleAssignmentListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLRoleAssignmentResource azure Cosmos DB SQL Role Assignment resource object. type SQLRoleAssignmentResource struct { // RoleDefinitionID - The unique identifier for the associated Role Definition. @@ -10019,6 +10283,12 @@ type SQLRoleDefinitionListResult struct { Value *[]SQLRoleDefinitionGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLRoleDefinitionListResult. +func (srdlr SQLRoleDefinitionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLRoleDefinitionResource azure Cosmos DB SQL Role Definition resource object. type SQLRoleDefinitionResource struct { // RoleName - A user-friendly name for the Role Definition. Must be unique for the database account. @@ -10304,6 +10574,12 @@ type SQLStoredProcedureListResult struct { Value *[]SQLStoredProcedureGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLStoredProcedureListResult. +func (ssplr SQLStoredProcedureListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLStoredProcedureResource cosmos DB SQL storedProcedure resource object type SQLStoredProcedureResource struct { // ID - Name of the Cosmos DB SQL storedProcedure @@ -10593,6 +10869,12 @@ type SQLTriggerListResult struct { Value *[]SQLTriggerGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLTriggerListResult. +func (stlr SQLTriggerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLTriggerResource cosmos DB SQL trigger resource object type SQLTriggerResource struct { // ID - Name of the Cosmos DB SQL trigger @@ -10879,6 +11161,12 @@ type SQLUserDefinedFunctionListResult struct { Value *[]SQLUserDefinedFunctionGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLUserDefinedFunctionListResult. +func (sudflr SQLUserDefinedFunctionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLUserDefinedFunctionResource cosmos DB SQL userDefinedFunction resource object type SQLUserDefinedFunctionResource struct { // ID - Name of the Cosmos DB SQL userDefinedFunction @@ -11178,6 +11466,12 @@ type TableListResult struct { Value *[]TableGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for TableListResult. +func (tlr TableListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TableResource cosmos DB table resource object type TableResource struct { // ID - Name of the Cosmos DB table @@ -11763,6 +12057,12 @@ type UsagesResult struct { Value *[]Usage `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for UsagesResult. +func (ur UsagesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkRule virtual Network ACL Rule object type VirtualNetworkRule struct { // ID - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. diff --git a/services/preview/cosmos-db/mgmt/2021-04-01-preview/documentdb/CHANGELOG.md b/services/preview/cosmos-db/mgmt/2021-04-01-preview/documentdb/CHANGELOG.md index 52911e4cc5e4..927f8fca0485 100644 --- a/services/preview/cosmos-db/mgmt/2021-04-01-preview/documentdb/CHANGELOG.md +++ b/services/preview/cosmos-db/mgmt/2021-04-01-preview/documentdb/CHANGELOG.md @@ -1,2 +1,76 @@ # Change History +## Breaking Changes + +### Removed Constants + +1. Type.TypeTypeBackupPolicy +1. Type.TypeTypeContinuous +1. Type.TypeTypePeriodic + +## Additive Changes + +### New Constants + +1. Type.TypeBackupPolicy +1. Type.TypeContinuous +1. Type.TypePeriodic + +### New Funcs + +1. ARMProxyResource.MarshalJSON() ([]byte, error) +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. CassandraKeyspaceListResult.MarshalJSON() ([]byte, error) +1. CassandraTableListResult.MarshalJSON() ([]byte, error) +1. DataTransferRegionalServiceResource.MarshalJSON() ([]byte, error) +1. DatabaseAccountConnectionString.MarshalJSON() ([]byte, error) +1. DatabaseAccountListKeysResult.MarshalJSON() ([]byte, error) +1. DatabaseAccountListReadOnlyKeysResult.MarshalJSON() ([]byte, error) +1. DatabaseAccountsListResult.MarshalJSON() ([]byte, error) +1. ExtendedResourceProperties.MarshalJSON() ([]byte, error) +1. GremlinDatabaseListResult.MarshalJSON() ([]byte, error) +1. GremlinGraphListResult.MarshalJSON() ([]byte, error) +1. ListBackups.MarshalJSON() ([]byte, error) +1. ListDataCenters.MarshalJSON() ([]byte, error) +1. LocationListResult.MarshalJSON() ([]byte, error) +1. LocationProperties.MarshalJSON() ([]byte, error) +1. ManagedServiceIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. MetricAvailability.MarshalJSON() ([]byte, error) +1. MetricDefinitionsListResult.MarshalJSON() ([]byte, error) +1. MetricListResult.MarshalJSON() ([]byte, error) +1. MetricName.MarshalJSON() ([]byte, error) +1. MetricValue.MarshalJSON() ([]byte, error) +1. MongoDBCollectionListResult.MarshalJSON() ([]byte, error) +1. MongoDBDatabaseListResult.MarshalJSON() ([]byte, error) +1. NotebookWorkspaceConnectionInfoResult.MarshalJSON() ([]byte, error) +1. NotebookWorkspaceCreateUpdateParameters.MarshalJSON() ([]byte, error) +1. NotebookWorkspaceProperties.MarshalJSON() ([]byte, error) +1. PartitionMetricListResult.MarshalJSON() ([]byte, error) +1. PartitionUsagesResult.MarshalJSON() ([]byte, error) +1. PercentileMetricListResult.MarshalJSON() ([]byte, error) +1. PercentileMetricValue.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. RegionalServiceResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. RestorableDatabaseAccountsListResult.MarshalJSON() ([]byte, error) +1. RestorableLocationResource.MarshalJSON() ([]byte, error) +1. RestorableMongodbCollectionPropertiesResource.MarshalJSON() ([]byte, error) +1. RestorableMongodbCollectionsListResult.MarshalJSON() ([]byte, error) +1. RestorableMongodbDatabasePropertiesResource.MarshalJSON() ([]byte, error) +1. RestorableMongodbDatabasesListResult.MarshalJSON() ([]byte, error) +1. RestorableMongodbResourcesListResult.MarshalJSON() ([]byte, error) +1. RestorableSQLContainersListResult.MarshalJSON() ([]byte, error) +1. RestorableSQLDatabasesListResult.MarshalJSON() ([]byte, error) +1. RestorableSQLResourcesListResult.MarshalJSON() ([]byte, error) +1. SQLContainerListResult.MarshalJSON() ([]byte, error) +1. SQLDatabaseListResult.MarshalJSON() ([]byte, error) +1. SQLDedicatedGatewayRegionalServiceResource.MarshalJSON() ([]byte, error) +1. SQLRoleAssignmentListResult.MarshalJSON() ([]byte, error) +1. SQLRoleDefinitionListResult.MarshalJSON() ([]byte, error) +1. SQLStoredProcedureListResult.MarshalJSON() ([]byte, error) +1. SQLTriggerListResult.MarshalJSON() ([]byte, error) +1. SQLUserDefinedFunctionListResult.MarshalJSON() ([]byte, error) +1. ServiceResourceListResult.MarshalJSON() ([]byte, error) +1. TableListResult.MarshalJSON() ([]byte, error) +1. UsagesResult.MarshalJSON() ([]byte, error) diff --git a/services/preview/cosmos-db/mgmt/2021-04-01-preview/documentdb/_meta.json b/services/preview/cosmos-db/mgmt/2021-04-01-preview/documentdb/_meta.json index 1d5ac31a9c5a..fa70c4c89de3 100644 --- a/services/preview/cosmos-db/mgmt/2021-04-01-preview/documentdb/_meta.json +++ b/services/preview/cosmos-db/mgmt/2021-04-01-preview/documentdb/_meta.json @@ -2,9 +2,9 @@ "commit": "c2ea3a3ccd14293b4bd1d17e684ef9129f0dc604", "readme": "/_/azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md", "tag": "package-2021-04-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2021-04-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2021-04-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix" } diff --git a/services/preview/cosmos-db/mgmt/2021-04-01-preview/documentdb/enums.go b/services/preview/cosmos-db/mgmt/2021-04-01-preview/documentdb/enums.go index 39b197a84930..d0389dbaecce 100644 --- a/services/preview/cosmos-db/mgmt/2021-04-01-preview/documentdb/enums.go +++ b/services/preview/cosmos-db/mgmt/2021-04-01-preview/documentdb/enums.go @@ -642,17 +642,17 @@ func PossibleTriggerTypeValues() []TriggerType { type Type string const ( - // TypeTypeBackupPolicy ... - TypeTypeBackupPolicy Type = "BackupPolicy" - // TypeTypeContinuous ... - TypeTypeContinuous Type = "Continuous" - // TypeTypePeriodic ... - TypeTypePeriodic Type = "Periodic" + // TypeBackupPolicy ... + TypeBackupPolicy Type = "BackupPolicy" + // TypeContinuous ... + TypeContinuous Type = "Continuous" + // TypePeriodic ... + TypePeriodic Type = "Periodic" ) // PossibleTypeValues returns an array of possible values for the Type const type. func PossibleTypeValues() []Type { - return []Type{TypeTypeBackupPolicy, TypeTypeContinuous, TypeTypePeriodic} + return []Type{TypeBackupPolicy, TypeContinuous, TypePeriodic} } // UnitType enumerates the values for unit type. diff --git a/services/preview/cosmos-db/mgmt/2021-04-01-preview/documentdb/models.go b/services/preview/cosmos-db/mgmt/2021-04-01-preview/documentdb/models.go index f6ac4f941e4c..4e1f78563627 100644 --- a/services/preview/cosmos-db/mgmt/2021-04-01-preview/documentdb/models.go +++ b/services/preview/cosmos-db/mgmt/2021-04-01-preview/documentdb/models.go @@ -37,6 +37,12 @@ type ARMProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ARMProxyResource. +func (apr ARMProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ARMResourceProperties the core properties of ARM resources. type ARMResourceProperties struct { // ID - READ-ONLY; The unique resource identifier of the ARM resource. @@ -112,6 +118,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BackupInformation backup information of a resource. type BackupInformation struct { autorest.Response `json:"-"` @@ -127,7 +139,7 @@ type BasicBackupPolicy interface { // BackupPolicy the object representing the policy for taking backups on an account. type BackupPolicy struct { - // Type - Possible values include: 'TypeTypeBackupPolicy', 'TypeTypePeriodic', 'TypeTypeContinuous' + // Type - Possible values include: 'TypeBackupPolicy', 'TypePeriodic', 'TypeContinuous' Type Type `json:"type,omitempty"` } @@ -139,11 +151,11 @@ func unmarshalBasicBackupPolicy(body []byte) (BasicBackupPolicy, error) { } switch m["type"] { - case string(TypeTypePeriodic): + case string(TypePeriodic): var pmbp PeriodicModeBackupPolicy err := json.Unmarshal(body, &pmbp) return pmbp, err - case string(TypeTypeContinuous): + case string(TypeContinuous): var cmbp ContinuousModeBackupPolicy err := json.Unmarshal(body, &cmbp) return cmbp, err @@ -174,7 +186,7 @@ func unmarshalBasicBackupPolicyArray(body []byte) ([]BasicBackupPolicy, error) { // MarshalJSON is the custom marshaler for BackupPolicy. func (bp BackupPolicy) MarshalJSON() ([]byte, error) { - bp.Type = TypeTypeBackupPolicy + bp.Type = TypeBackupPolicy objectMap := make(map[string]interface{}) if bp.Type != "" { objectMap["type"] = bp.Type @@ -838,6 +850,12 @@ type CassandraKeyspaceListResult struct { Value *[]CassandraKeyspaceGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CassandraKeyspaceListResult. +func (cklr CassandraKeyspaceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CassandraKeyspaceResource cosmos DB Cassandra keyspace resource object type CassandraKeyspaceResource struct { // ID - Name of the Cosmos DB Cassandra keyspace @@ -1569,6 +1587,12 @@ type CassandraTableListResult struct { Value *[]CassandraTableGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CassandraTableListResult. +func (ctlr CassandraTableListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CassandraTableResource cosmos DB Cassandra table resource object type CassandraTableResource struct { // ID - Name of the Cosmos DB Cassandra table @@ -1821,13 +1845,13 @@ type ContinuousBackupRestoreLocation struct { // ContinuousModeBackupPolicy the object representing continuous mode backup policy. type ContinuousModeBackupPolicy struct { - // Type - Possible values include: 'TypeTypeBackupPolicy', 'TypeTypePeriodic', 'TypeTypeContinuous' + // Type - Possible values include: 'TypeBackupPolicy', 'TypePeriodic', 'TypeContinuous' Type Type `json:"type,omitempty"` } // MarshalJSON is the custom marshaler for ContinuousModeBackupPolicy. func (cmbp ContinuousModeBackupPolicy) MarshalJSON() ([]byte, error) { - cmbp.Type = TypeTypeContinuous + cmbp.Type = TypeContinuous objectMap := make(map[string]interface{}) if cmbp.Type != "" { objectMap["type"] = cmbp.Type @@ -1886,6 +1910,12 @@ type DatabaseAccountConnectionString struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountConnectionString. +func (dacs DatabaseAccountConnectionString) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountCreateUpdateParameters parameters to create and update Cosmos DB database accounts. type DatabaseAccountCreateUpdateParameters struct { // Kind - Indicates the type of database account. This can only be set at database account creation. Possible values include: 'DatabaseAccountKindGlobalDocumentDB', 'DatabaseAccountKindMongoDB', 'DatabaseAccountKindParse' @@ -3009,6 +3039,12 @@ type DatabaseAccountListKeysResult struct { SecondaryReadonlyMasterKey *string `json:"secondaryReadonlyMasterKey,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountListKeysResult. +func (dalkr DatabaseAccountListKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountListReadOnlyKeysResult the read-only access keys for the given database account. type DatabaseAccountListReadOnlyKeysResult struct { autorest.Response `json:"-"` @@ -3018,6 +3054,12 @@ type DatabaseAccountListReadOnlyKeysResult struct { SecondaryReadonlyMasterKey *string `json:"secondaryReadonlyMasterKey,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountListReadOnlyKeysResult. +func (dalrokr DatabaseAccountListReadOnlyKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountRegenerateKeyParameters parameters to regenerate the keys within the database account. type DatabaseAccountRegenerateKeyParameters struct { // KeyKind - The access key to regenerate. Possible values include: 'KeyKindPrimary', 'KeyKindSecondary', 'KeyKindPrimaryReadonly', 'KeyKindSecondaryReadonly' @@ -3149,6 +3191,12 @@ type DatabaseAccountsListResult struct { Value *[]DatabaseAccountGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseAccountsListResult. +func (dalr DatabaseAccountsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseAccountsOfflineRegionFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type DatabaseAccountsOfflineRegionFuture struct { @@ -3707,6 +3755,12 @@ type DataTransferRegionalServiceResource struct { Status ServiceStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for DataTransferRegionalServiceResource. +func (dtrsr DataTransferRegionalServiceResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DataTransferServiceResource describes the service response property. type DataTransferServiceResource struct { Properties *DataTransferServiceResourceProperties `json:"properties,omitempty"` @@ -4241,6 +4295,12 @@ type ExtendedResourceProperties struct { Etag *string `json:"_etag,omitempty"` } +// MarshalJSON is the custom marshaler for ExtendedResourceProperties. +func (erp ExtendedResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FailoverPolicies the list of new failover policies for the failover priority change. type FailoverPolicies struct { // FailoverPolicies - List of failover policies. @@ -4545,6 +4605,12 @@ type GremlinDatabaseListResult struct { Value *[]GremlinDatabaseGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for GremlinDatabaseListResult. +func (gdlr GremlinDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GremlinDatabaseResource cosmos DB Gremlin database resource object type GremlinDatabaseResource struct { // ID - Name of the Cosmos DB Gremlin database @@ -4851,6 +4917,12 @@ type GremlinGraphListResult struct { Value *[]GremlinGraphGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for GremlinGraphListResult. +func (gglr GremlinGraphListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GremlinGraphResource cosmos DB Gremlin graph resource object type GremlinGraphResource struct { // ID - Name of the Cosmos DB Gremlin graph @@ -5332,6 +5404,12 @@ type ListBackups struct { Value *[]BackupResource `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ListBackups. +func (lb ListBackups) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListClusters list of managed Cassandra clusters. type ListClusters struct { autorest.Response `json:"-"` @@ -5346,6 +5424,12 @@ type ListDataCenters struct { Value *[]DataCenterResource `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ListDataCenters. +func (ldc ListDataCenters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Location a region in which the Azure Cosmos DB database account is deployed. type Location struct { // ID - READ-ONLY; The unique identifier of the region within the database account. Example: <accountName>-<locationName>. @@ -5408,6 +5492,12 @@ type LocationListResult struct { Value *[]LocationGetResult `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for LocationListResult. +func (llr LocationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LocationProperties cosmos DB location metadata type LocationProperties struct { // Status - READ-ONLY; The current status of location in Azure. @@ -5420,6 +5510,12 @@ type LocationProperties struct { BackupStorageRedundancies *[]BackupStorageRedundancy `json:"backupStorageRedundancies,omitempty"` } +// MarshalJSON is the custom marshaler for LocationProperties. +func (lp LocationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedServiceIdentity identity for the resource. type ManagedServiceIdentity struct { // PrincipalID - READ-ONLY; The principal id of the system assigned identity. This property will only be provided for a system assigned identity. @@ -5452,6 +5548,12 @@ type ManagedServiceIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedServiceIdentityUserAssignedIdentitiesValue. +func (msiAiv ManagedServiceIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Metric metric data type Metric struct { // StartTime - READ-ONLY; The start time for the metric (ISO-8601 format). @@ -5485,6 +5587,12 @@ type MetricAvailability struct { Retention *string `json:"retention,omitempty"` } +// MarshalJSON is the custom marshaler for MetricAvailability. +func (ma MetricAvailability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricDefinition the definition of a metric. type MetricDefinition struct { // MetricAvailabilities - READ-ONLY; The list of metric availabilities for the account. @@ -5515,6 +5623,12 @@ type MetricDefinitionsListResult struct { Value *[]MetricDefinition `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MetricDefinitionsListResult. +func (mdlr MetricDefinitionsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricListResult the response to a list metrics request. type MetricListResult struct { autorest.Response `json:"-"` @@ -5522,6 +5636,12 @@ type MetricListResult struct { Value *[]Metric `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MetricListResult. +func (mlr MetricListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricName a metric name. type MetricName struct { // Value - READ-ONLY; The name of the metric. @@ -5530,6 +5650,12 @@ type MetricName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for MetricName. +func (mn MetricName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricValue represents metrics values. type MetricValue struct { // Count - READ-ONLY; The number of values for the metric. @@ -5546,6 +5672,12 @@ type MetricValue struct { Total *float64 `json:"total,omitempty"` } +// MarshalJSON is the custom marshaler for MetricValue. +func (mv MetricValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MongoDBCollectionCreateUpdateParameters parameters to create and update Cosmos DB MongoDB collection. type MongoDBCollectionCreateUpdateParameters struct { // MongoDBCollectionCreateUpdateProperties - Properties to create and update Azure Cosmos DB MongoDB collection. @@ -5838,6 +5970,12 @@ type MongoDBCollectionListResult struct { Value *[]MongoDBCollectionGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MongoDBCollectionListResult. +func (mdclr MongoDBCollectionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MongoDBCollectionResource cosmos DB MongoDB collection resource object type MongoDBCollectionResource struct { // ID - Name of the Cosmos DB MongoDB collection @@ -6144,6 +6282,12 @@ type MongoDBDatabaseListResult struct { Value *[]MongoDBDatabaseGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MongoDBDatabaseListResult. +func (mddlr MongoDBDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MongoDBDatabaseResource cosmos DB MongoDB database resource object type MongoDBDatabaseResource struct { // ID - Name of the Cosmos DB MongoDB database @@ -6672,6 +6816,12 @@ type NotebookWorkspaceConnectionInfoResult struct { NotebookServerEndpoint *string `json:"notebookServerEndpoint,omitempty"` } +// MarshalJSON is the custom marshaler for NotebookWorkspaceConnectionInfoResult. +func (nwcir NotebookWorkspaceConnectionInfoResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NotebookWorkspaceCreateUpdateParameters parameters to create a notebook workspace resource type NotebookWorkspaceCreateUpdateParameters struct { // ID - READ-ONLY; The unique resource identifier of the database account. @@ -6682,6 +6832,12 @@ type NotebookWorkspaceCreateUpdateParameters struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for NotebookWorkspaceCreateUpdateParameters. +func (nwcup NotebookWorkspaceCreateUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NotebookWorkspaceListResult a list of notebook workspace resources type NotebookWorkspaceListResult struct { autorest.Response `json:"-"` @@ -6697,6 +6853,12 @@ type NotebookWorkspaceProperties struct { Status *string `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for NotebookWorkspaceProperties. +func (nwp NotebookWorkspaceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NotebookWorkspacesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type NotebookWorkspacesCreateOrUpdateFuture struct { @@ -7075,6 +7237,12 @@ type PartitionMetricListResult struct { Value *[]PartitionMetric `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PartitionMetricListResult. +func (pmlr PartitionMetricListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PartitionUsage the partition level usage data for a usage request. type PartitionUsage struct { // PartitionID - READ-ONLY; The partition id (GUID identifier) of the usages. @@ -7109,6 +7277,12 @@ type PartitionUsagesResult struct { Value *[]PartitionUsage `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PartitionUsagesResult. +func (pur PartitionUsagesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PercentileMetric percentile Metric data type PercentileMetric struct { // StartTime - READ-ONLY; The start time for the metric (ISO-8601 format). @@ -7141,6 +7315,12 @@ type PercentileMetricListResult struct { Value *[]PercentileMetric `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PercentileMetricListResult. +func (pmlr PercentileMetricListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PercentileMetricValue represents percentile metrics values. type PercentileMetricValue struct { // P10 - READ-ONLY; The 10th percentile value for the metric. @@ -7171,17 +7351,23 @@ type PercentileMetricValue struct { Total *float64 `json:"total,omitempty"` } +// MarshalJSON is the custom marshaler for PercentileMetricValue. +func (pmv PercentileMetricValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PeriodicModeBackupPolicy the object representing periodic mode backup policy. type PeriodicModeBackupPolicy struct { // PeriodicModeProperties - Configuration values for periodic mode backup PeriodicModeProperties *PeriodicModeProperties `json:"periodicModeProperties,omitempty"` - // Type - Possible values include: 'TypeTypeBackupPolicy', 'TypeTypePeriodic', 'TypeTypeContinuous' + // Type - Possible values include: 'TypeBackupPolicy', 'TypePeriodic', 'TypeContinuous' Type Type `json:"type,omitempty"` } // MarshalJSON is the custom marshaler for PeriodicModeBackupPolicy. func (pmbp PeriodicModeBackupPolicy) MarshalJSON() ([]byte, error) { - pmbp.Type = TypeTypePeriodic + pmbp.Type = TypePeriodic objectMap := make(map[string]interface{}) if pmbp.PeriodicModeProperties != nil { objectMap["periodicModeProperties"] = pmbp.PeriodicModeProperties @@ -7498,6 +7684,12 @@ type PrivateLinkResourceProperties struct { RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. +func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkServiceConnectionStateProperty connection State of the Private Endpoint Connection. type PrivateLinkServiceConnectionStateProperty struct { // Status - The private link service connection status. @@ -7531,6 +7723,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegionalServiceResource resource for a regional service location. type RegionalServiceResource struct { // Name - READ-ONLY; The regional service name. @@ -7541,6 +7739,12 @@ type RegionalServiceResource struct { Status ServiceStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for RegionalServiceResource. +func (rsr RegionalServiceResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegionForOnlineOffline cosmos DB region to online or offline. type RegionForOnlineOffline struct { // Region - Cosmos DB region, with spaces between words and each word capitalized. @@ -7565,6 +7769,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorableDatabaseAccountGetResult a Azure Cosmos DB restorable database account. type RestorableDatabaseAccountGetResult struct { autorest.Response `json:"-"` @@ -7689,6 +7899,12 @@ type RestorableDatabaseAccountsListResult struct { Value *[]RestorableDatabaseAccountGetResult `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableDatabaseAccountsListResult. +func (rdalr RestorableDatabaseAccountsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorableLocationResource properties of the regional restorable account. type RestorableLocationResource struct { // LocationName - READ-ONLY; The location of the regional restorable account. @@ -7701,6 +7917,12 @@ type RestorableLocationResource struct { DeletionTime *date.Time `json:"deletionTime,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableLocationResource. +func (rlr RestorableLocationResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorableMongodbCollectionGetResult an Azure Cosmos DB MongoDB collection event type RestorableMongodbCollectionGetResult struct { // RestorableMongodbCollectionProperties - The properties of a MongoDB collection event. @@ -7794,6 +8016,12 @@ type RestorableMongodbCollectionPropertiesResource struct { OwnerResourceID *string `json:"ownerResourceId,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableMongodbCollectionPropertiesResource. +func (rmcp RestorableMongodbCollectionPropertiesResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorableMongodbCollectionsListResult the List operation response, that contains the MongoDB collection // events and their properties. type RestorableMongodbCollectionsListResult struct { @@ -7802,6 +8030,12 @@ type RestorableMongodbCollectionsListResult struct { Value *[]RestorableMongodbCollectionGetResult `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableMongodbCollectionsListResult. +func (rmclr RestorableMongodbCollectionsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorableMongodbDatabaseGetResult an Azure Cosmos DB MongoDB database event type RestorableMongodbDatabaseGetResult struct { // RestorableMongodbDatabaseProperties - The properties of a MongoDB database event. @@ -7894,6 +8128,12 @@ type RestorableMongodbDatabasePropertiesResource struct { OwnerResourceID *string `json:"ownerResourceId,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableMongodbDatabasePropertiesResource. +func (rmdp RestorableMongodbDatabasePropertiesResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorableMongodbDatabasesListResult the List operation response, that contains the MongoDB database // events and their properties. type RestorableMongodbDatabasesListResult struct { @@ -7902,6 +8142,12 @@ type RestorableMongodbDatabasesListResult struct { Value *[]RestorableMongodbDatabaseGetResult `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableMongodbDatabasesListResult. +func (rmdlr RestorableMongodbDatabasesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorableMongodbResourcesListResult the List operation response, that contains the restorable MongoDB // resources. type RestorableMongodbResourcesListResult struct { @@ -7910,6 +8156,12 @@ type RestorableMongodbResourcesListResult struct { Value *[]DatabaseRestoreResource `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableMongodbResourcesListResult. +func (rmrlr RestorableMongodbResourcesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorableSQLContainerGetResult an Azure Cosmos DB SQL container event type RestorableSQLContainerGetResult struct { // RestorableSQLContainerProperties - The properties of a SQL container event. @@ -8074,6 +8326,12 @@ type RestorableSQLContainersListResult struct { Value *[]RestorableSQLContainerGetResult `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableSQLContainersListResult. +func (rsclr RestorableSQLContainersListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorableSQLDatabaseGetResult an Azure Cosmos DB SQL database event type RestorableSQLDatabaseGetResult struct { // RestorableSQLDatabaseProperties - The properties of a SQL database event. @@ -8212,6 +8470,12 @@ type RestorableSQLDatabasesListResult struct { Value *[]RestorableSQLDatabaseGetResult `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableSQLDatabasesListResult. +func (rsdlr RestorableSQLDatabasesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorableSQLResourcesListResult the List operation response, that contains the restorable SQL // resources. type RestorableSQLResourcesListResult struct { @@ -8220,6 +8484,12 @@ type RestorableSQLResourcesListResult struct { Value *[]DatabaseRestoreResource `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableSQLResourcesListResult. +func (rsrlr RestorableSQLResourcesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestoreParameters parameters to indicate the information about the restore. type RestoreParameters struct { // RestoreMode - Describes the mode of the restore. Possible values include: 'RestoreModePointInTime' @@ -8775,6 +9045,12 @@ type ServiceResourceListResult struct { Value *[]ServiceResource `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceResourceListResult. +func (srlr ServiceResourceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicServiceResourceProperties services response resource. type BasicServiceResourceProperties interface { AsDataTransferServiceResourceProperties() (*DataTransferServiceResourceProperties, bool) @@ -9263,6 +9539,12 @@ type SQLContainerListResult struct { Value *[]SQLContainerGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLContainerListResult. +func (sclr SQLContainerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLContainerResource cosmos DB SQL container resource object type SQLContainerResource struct { // ID - Name of the Cosmos DB SQL container @@ -9566,6 +9848,12 @@ type SQLDatabaseListResult struct { Value *[]SQLDatabaseGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLDatabaseListResult. +func (sdlr SQLDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLDatabaseResource cosmos DB SQL database resource object type SQLDatabaseResource struct { // ID - Name of the Cosmos DB SQL database @@ -9584,6 +9872,12 @@ type SQLDedicatedGatewayRegionalServiceResource struct { Status ServiceStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for SQLDedicatedGatewayRegionalServiceResource. +func (sdgrsr SQLDedicatedGatewayRegionalServiceResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLDedicatedGatewayServiceResource describes the service response property for SqlDedicatedGateway. type SQLDedicatedGatewayServiceResource struct { Properties *SQLDedicatedGatewayServiceResourceProperties `json:"properties,omitempty"` @@ -10722,6 +11016,12 @@ type SQLRoleAssignmentListResult struct { Value *[]SQLRoleAssignmentGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLRoleAssignmentListResult. +func (sralr SQLRoleAssignmentListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLRoleAssignmentResource azure Cosmos DB SQL Role Assignment resource object. type SQLRoleAssignmentResource struct { // RoleDefinitionID - The unique identifier for the associated Role Definition. @@ -10852,6 +11152,12 @@ type SQLRoleDefinitionListResult struct { Value *[]SQLRoleDefinitionGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLRoleDefinitionListResult. +func (srdlr SQLRoleDefinitionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLRoleDefinitionResource azure Cosmos DB SQL Role Definition resource object. type SQLRoleDefinitionResource struct { // RoleName - A user-friendly name for the Role Definition. Must be unique for the database account. @@ -11137,6 +11443,12 @@ type SQLStoredProcedureListResult struct { Value *[]SQLStoredProcedureGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLStoredProcedureListResult. +func (ssplr SQLStoredProcedureListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLStoredProcedureResource cosmos DB SQL storedProcedure resource object type SQLStoredProcedureResource struct { // ID - Name of the Cosmos DB SQL storedProcedure @@ -11426,6 +11738,12 @@ type SQLTriggerListResult struct { Value *[]SQLTriggerGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLTriggerListResult. +func (stlr SQLTriggerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLTriggerResource cosmos DB SQL trigger resource object type SQLTriggerResource struct { // ID - Name of the Cosmos DB SQL trigger @@ -11712,6 +12030,12 @@ type SQLUserDefinedFunctionListResult struct { Value *[]SQLUserDefinedFunctionGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SQLUserDefinedFunctionListResult. +func (sudflr SQLUserDefinedFunctionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLUserDefinedFunctionResource cosmos DB SQL userDefinedFunction resource object type SQLUserDefinedFunctionResource struct { // ID - Name of the Cosmos DB SQL userDefinedFunction @@ -12011,6 +12335,12 @@ type TableListResult struct { Value *[]TableGetResults `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for TableListResult. +func (tlr TableListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TableResource cosmos DB table resource object type TableResource struct { // ID - Name of the Cosmos DB table @@ -12596,6 +12926,12 @@ type UsagesResult struct { Value *[]Usage `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for UsagesResult. +func (ur UsagesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkRule virtual Network ACL Rule object type VirtualNetworkRule struct { // ID - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. diff --git a/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/CHANGELOG.md b/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/CHANGELOG.md index 52911e4cc5e4..737b435cb579 100644 --- a/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/CHANGELOG.md +++ b/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/CHANGELOG.md @@ -1,2 +1,17 @@ # Change History +## Additive Changes + +### New Funcs + +1. AlertDefinition.MarshalJSON() ([]byte, error) +1. AlertListResult.MarshalJSON() ([]byte, error) +1. ConnectorCollectionErrorInfo.MarshalJSON() ([]byte, error) +1. ConnectorDefinitionListResult.MarshalJSON() ([]byte, error) +1. DimensionsListResult.MarshalJSON() ([]byte, error) +1. ErrorBase.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. QueryResult.MarshalJSON() ([]byte, error) +1. ReportExecutionListResult.MarshalJSON() ([]byte, error) +1. ReportListResult.MarshalJSON() ([]byte, error) diff --git a/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/_meta.json b/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/_meta.json index e7d9a980b5b8..22b72b867974 100644 --- a/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/_meta.json +++ b/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cost-management/resource-manager/readme.md", "tag": "package-2018-08-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-08-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cost-management/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-08-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cost-management/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/models.go b/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/models.go index 979e7bb9939a..5d97dc9dc18f 100644 --- a/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/models.go +++ b/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/models.go @@ -102,6 +102,12 @@ type AlertDefinition struct { Criteria AlertCriteria `json:"criteria,omitempty"` } +// MarshalJSON is the custom marshaler for AlertDefinition. +func (ad AlertDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AlertListResult result of listing alerts. It contains a list of available alerts in the scope provided. type AlertListResult struct { autorest.Response `json:"-"` @@ -111,6 +117,12 @@ type AlertListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for AlertListResult. +func (alr AlertListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AlertListResultIterator provides access to a complete listing of Alert values. type AlertListResultIterator struct { i int @@ -318,6 +330,12 @@ type ConnectorCollectionErrorInfo struct { ErrorStartTime *date.Time `json:"errorStartTime,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectorCollectionErrorInfo. +func (ccei ConnectorCollectionErrorInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectorCollectionInfo collection and ingestion information type ConnectorCollectionInfo struct { // LastRun - READ-ONLY; Last time the data acquisition process completed (even if no new data was found) @@ -462,6 +480,12 @@ type ConnectorDefinitionListResult struct { Value *[]ConnectorDefinition `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectorDefinitionListResult. +func (cdlr ConnectorDefinitionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectorProperties the properties of a Connector type ConnectorProperties struct { // DisplayName - Connector DisplayName (defaults to Name) @@ -604,6 +628,12 @@ type DimensionsListResult struct { Value *[]Dimension `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for DimensionsListResult. +func (dlr DimensionsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorBase the details of the error. type ErrorBase struct { // Code - READ-ONLY; A machine readable error code. @@ -614,6 +644,12 @@ type ErrorBase struct { Target *string `json:"target,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorBase. +func (eb ErrorBase) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetails the details of the error. type ErrorDetails struct { // Code - READ-ONLY; A machine readable error code. @@ -672,6 +708,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of listing CostManagement operations. It contains a list of operations and a // URL link to get the next set of results. type OperationListResult struct { @@ -682,6 +724,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -935,6 +983,12 @@ type QueryResult struct { Value *[]Query `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for QueryResult. +func (qr QueryResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Report a report resource. type Report struct { autorest.Response `json:"-"` @@ -1194,6 +1248,12 @@ type ReportExecutionListResult struct { Value *[]ReportExecution `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ReportExecutionListResult. +func (relr ReportExecutionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReportExecutionProperties the properties of the report execution. type ReportExecutionProperties struct { // ExecutionType - The type of the report execution. Possible values include: 'OnDemand', 'Scheduled' @@ -1243,6 +1303,12 @@ type ReportListResult struct { Value *[]Report `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ReportListResult. +func (rlr ReportListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReportProperties the properties of the report. type ReportProperties struct { // Schedule - Has schedule information for the report. diff --git a/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/CHANGELOG.md b/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/CHANGELOG.md index 52911e4cc5e4..40f3a57548d3 100644 --- a/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/CHANGELOG.md +++ b/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/CHANGELOG.md @@ -1,2 +1,18 @@ # Change History +## Additive Changes + +### New Funcs + +1. ConnectorCollectionErrorInfo.MarshalJSON() ([]byte, error) +1. ConnectorDefinitionListResult.MarshalJSON() ([]byte, error) +1. DimensionsListResult.MarshalJSON() ([]byte, error) +1. ErrorBase.MarshalJSON() ([]byte, error) +1. ExternalBillingAccountDefinitionListResult.MarshalJSON() ([]byte, error) +1. ExternalBillingAccountProperties.MarshalJSON() ([]byte, error) +1. ExternalSubscriptionDefinitionListResult.MarshalJSON() ([]byte, error) +1. ExternalSubscriptionProperties.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. QueryResult.MarshalJSON() ([]byte, error) +1. ShowbackRuleListResult.MarshalJSON() ([]byte, error) diff --git a/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/_meta.json b/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/_meta.json index ef2e43f00cbe..33930aca6c74 100644 --- a/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/_meta.json +++ b/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cost-management/resource-manager/readme.md", "tag": "package-preview-2019-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-preview-2019-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cost-management/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-preview-2019-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cost-management/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/models.go b/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/models.go index 692bd7132d81..b14c0a4aabac 100644 --- a/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/models.go +++ b/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/models.go @@ -43,6 +43,12 @@ type ConnectorCollectionErrorInfo struct { ErrorStartTime *date.Time `json:"errorStartTime,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectorCollectionErrorInfo. +func (ccei ConnectorCollectionErrorInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectorCollectionInfo collection and ingestion information type ConnectorCollectionInfo struct { // LastChecked - READ-ONLY; Last time the data acquisition process initiated connecting to the external provider @@ -159,6 +165,12 @@ type ConnectorDefinitionListResult struct { Value *[]ConnectorDefinition `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectorDefinitionListResult. +func (cdlr ConnectorDefinitionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectorProperties the properties of a Connector type ConnectorProperties struct { // DisplayName - Connector DisplayName @@ -657,6 +669,12 @@ type DimensionsListResult struct { Value *[]Dimension `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for DimensionsListResult. +func (dlr DimensionsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorBase the details of the error. type ErrorBase struct { // Code - READ-ONLY; A machine readable error code. @@ -667,6 +685,12 @@ type ErrorBase struct { Target *string `json:"target,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorBase. +func (eb ErrorBase) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetails the details of the error. type ErrorDetails struct { // Code - READ-ONLY; A machine readable error code. @@ -790,6 +814,12 @@ type ExternalBillingAccountDefinitionListResult struct { Value *[]ExternalBillingAccountDefinition `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ExternalBillingAccountDefinitionListResult. +func (ebadlr ExternalBillingAccountDefinitionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExternalBillingAccountProperties the properties of a ExternalBillingAccount type ExternalBillingAccountProperties struct { // DisplayName - READ-ONLY; ExternalBillingAccount DisplayName @@ -802,6 +832,12 @@ type ExternalBillingAccountProperties struct { CollectionInfo *ConnectorCollectionInfo `json:"collectionInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ExternalBillingAccountProperties. +func (ebap ExternalBillingAccountProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExternalSubscriptionDefinition the ExternalSubscription model definition type ExternalSubscriptionDefinition struct { autorest.Response `json:"-"` @@ -894,6 +930,12 @@ type ExternalSubscriptionDefinitionListResult struct { Value *[]ExternalSubscriptionDefinition `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ExternalSubscriptionDefinitionListResult. +func (esdlr ExternalSubscriptionDefinitionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExternalSubscriptionIDListRequest the list of ExternalSubscriptionIds operation request. type ExternalSubscriptionIDListRequest struct { // Value - The list of ExternalSubscriptionIds. @@ -916,6 +958,12 @@ type ExternalSubscriptionProperties struct { CollectionInfo *ConnectorCollectionInfo `json:"collectionInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ExternalSubscriptionProperties. +func (esp ExternalSubscriptionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Markup the Markup model definition type Markup struct { Percentage *string `json:"percentage,omitempty"` @@ -948,6 +996,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of listing cost management operations. It contains a list of operations and a // URL link to get the next set of results. type OperationListResult struct { @@ -958,6 +1012,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -1211,6 +1271,12 @@ type QueryResult struct { Value *[]Query `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for QueryResult. +func (qr QueryResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReportConfigAggregation the aggregation expression to be used in the report. type ReportConfigAggregation struct { // Name - The name of the column to aggregate. @@ -1432,6 +1498,12 @@ type ShowbackRuleListResult struct { Value *[]ShowbackRule `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ShowbackRuleListResult. +func (srlr ShowbackRuleListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicShowbackRuleProperties the properties of a showback rule. type BasicShowbackRuleProperties interface { AsCustomPriceDetailsKind() (*CustomPriceDetailsKind, bool) diff --git a/services/preview/customerlockbox/mgmt/2018-02-28-preview/customerlockbox/CHANGELOG.md b/services/preview/customerlockbox/mgmt/2018-02-28-preview/customerlockbox/CHANGELOG.md index 52911e4cc5e4..565feda91239 100644 --- a/services/preview/customerlockbox/mgmt/2018-02-28-preview/customerlockbox/CHANGELOG.md +++ b/services/preview/customerlockbox/mgmt/2018-02-28-preview/customerlockbox/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. Operation.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. RequestListResult.MarshalJSON() ([]byte, error) diff --git a/services/preview/customerlockbox/mgmt/2018-02-28-preview/customerlockbox/_meta.json b/services/preview/customerlockbox/mgmt/2018-02-28-preview/customerlockbox/_meta.json index 814f61a7e76c..75a948d0bdc9 100644 --- a/services/preview/customerlockbox/mgmt/2018-02-28-preview/customerlockbox/_meta.json +++ b/services/preview/customerlockbox/mgmt/2018-02-28-preview/customerlockbox/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/customerlockbox/resource-manager/readme.md", "tag": "package-2018-02-28-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-02-28-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/customerlockbox/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-02-28-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/customerlockbox/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/customerlockbox/mgmt/2018-02-28-preview/customerlockbox/models.go b/services/preview/customerlockbox/mgmt/2018-02-28-preview/customerlockbox/models.go index 5c7cab1ec9aa..77d6cf31b9cc 100644 --- a/services/preview/customerlockbox/mgmt/2018-02-28-preview/customerlockbox/models.go +++ b/services/preview/customerlockbox/mgmt/2018-02-28-preview/customerlockbox/models.go @@ -130,6 +130,12 @@ type Operation struct { Origin *string `json:"origin,omitempty"` } +// MarshalJSON is the custom marshaler for Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationDisplay contains the localized display information for this particular operation / action. type OperationDisplay struct { // Provider - READ-ONLY; The localized friendly form of the resource provider name. @@ -142,6 +148,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of the request to list Customer Lockbox operations. It contains a list of // operations. type OperationListResult struct { @@ -152,6 +164,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -311,6 +329,12 @@ type RequestListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RequestListResult. +func (rlr RequestListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RequestListResultIterator provides access to a complete listing of LockboxRequestResponse values. type RequestListResultIterator struct { i int diff --git a/services/preview/customproviders/mgmt/2018-09-01-preview/customproviders/CHANGELOG.md b/services/preview/customproviders/mgmt/2018-09-01-preview/customproviders/CHANGELOG.md index 52911e4cc5e4..1540c4b3b6e5 100644 --- a/services/preview/customproviders/mgmt/2018-09-01-preview/customproviders/CHANGELOG.md +++ b/services/preview/customproviders/mgmt/2018-09-01-preview/customproviders/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. ErrorDefinition.MarshalJSON() ([]byte, error) diff --git a/services/preview/customproviders/mgmt/2018-09-01-preview/customproviders/_meta.json b/services/preview/customproviders/mgmt/2018-09-01-preview/customproviders/_meta.json index 8939a86fbbc2..d652f14a7fa3 100644 --- a/services/preview/customproviders/mgmt/2018-09-01-preview/customproviders/_meta.json +++ b/services/preview/customproviders/mgmt/2018-09-01-preview/customproviders/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/customproviders/resource-manager/readme.md", "tag": "package-2018-09-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-09-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/customproviders/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-09-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/customproviders/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/customproviders/mgmt/2018-09-01-preview/customproviders/models.go b/services/preview/customproviders/mgmt/2018-09-01-preview/customproviders/models.go index d646c4abec36..6a787934cec5 100644 --- a/services/preview/customproviders/mgmt/2018-09-01-preview/customproviders/models.go +++ b/services/preview/customproviders/mgmt/2018-09-01-preview/customproviders/models.go @@ -605,6 +605,12 @@ type ErrorDefinition struct { Details *[]ErrorDefinition `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDefinition. +func (ed ErrorDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse error response. type ErrorResponse struct { // Error - The error details. diff --git a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/CHANGELOG.md b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/CHANGELOG.md index 52911e4cc5e4..e35b7f4a29bd 100644 --- a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/CHANGELOG.md +++ b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/CHANGELOG.md @@ -1,2 +1,39 @@ # Change History +## Additive Changes + +### New Funcs + +1. ARMBaseModel.MarshalJSON() ([]byte, error) +1. AlertErrorDetails.MarshalJSON() ([]byte, error) +1. AlertList.MarshalJSON() ([]byte, error) +1. BandwidthSchedulesList.MarshalJSON() ([]byte, error) +1. ContainerList.MarshalJSON() ([]byte, error) +1. DeviceList.MarshalJSON() ([]byte, error) +1. Ipv4Config.MarshalJSON() ([]byte, error) +1. Ipv6Config.MarshalJSON() ([]byte, error) +1. JobErrorDetails.MarshalJSON() ([]byte, error) +1. JobErrorItem.MarshalJSON() ([]byte, error) +1. NetworkAdapterPosition.MarshalJSON() ([]byte, error) +1. NetworkSettingsProperties.MarshalJSON() ([]byte, error) +1. NodeList.MarshalJSON() ([]byte, error) +1. NodeProperties.MarshalJSON() ([]byte, error) +1. OrderList.MarshalJSON() ([]byte, error) +1. ResourceTypeSku.MarshalJSON() ([]byte, error) +1. RoleList.MarshalJSON() ([]byte, error) +1. SKUCapability.MarshalJSON() ([]byte, error) +1. ShareList.MarshalJSON() ([]byte, error) +1. SkuCost.MarshalJSON() ([]byte, error) +1. SkuInformation.MarshalJSON() ([]byte, error) +1. SkuInformationList.MarshalJSON() ([]byte, error) +1. SkuList.MarshalJSON() ([]byte, error) +1. SkuLocationInfo.MarshalJSON() ([]byte, error) +1. SkuRestriction.MarshalJSON() ([]byte, error) +1. SkuRestrictionInfo.MarshalJSON() ([]byte, error) +1. SkuType.MarshalJSON() ([]byte, error) +1. StorageAccountCredentialList.MarshalJSON() ([]byte, error) +1. StorageAccountList.MarshalJSON() ([]byte, error) +1. TriggerList.MarshalJSON() ([]byte, error) +1. UpdateDownloadProgress.MarshalJSON() ([]byte, error) +1. UpdateInstallProgress.MarshalJSON() ([]byte, error) +1. UserList.MarshalJSON() ([]byte, error) diff --git a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/_meta.json b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/_meta.json index 3f8d4003c91e..451880c1ba63 100644 --- a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/_meta.json +++ b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/databoxedge/resource-manager/readme.md", "tag": "package-2020-05-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-05-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/databoxedge/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-05-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/databoxedge/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/models.go b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/models.go index 58ef484f62ef..d49931c0f841 100644 --- a/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/models.go +++ b/services/preview/databoxedge/mgmt/2020-05-01-preview/databoxedge/models.go @@ -118,6 +118,12 @@ type AlertErrorDetails struct { Occurrences *int32 `json:"occurrences,omitempty"` } +// MarshalJSON is the custom marshaler for AlertErrorDetails. +func (aed AlertErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AlertList collection of alerts. type AlertList struct { autorest.Response `json:"-"` @@ -127,6 +133,12 @@ type AlertList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for AlertList. +func (al AlertList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AlertListIterator provides access to a complete listing of Alert values. type AlertListIterator struct { i int @@ -311,6 +323,12 @@ type ARMBaseModel struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ARMBaseModel. +func (abm ARMBaseModel) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AsymmetricEncryptedSecret represent the secrets intended for encryption with asymmetric key pair. type AsymmetricEncryptedSecret struct { // Value - The value of the secret. @@ -511,6 +529,12 @@ type BandwidthSchedulesList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for BandwidthSchedulesList. +func (bsl BandwidthSchedulesList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BandwidthSchedulesListIterator provides access to a complete listing of BandwidthSchedule values. type BandwidthSchedulesListIterator struct { i int @@ -780,6 +804,12 @@ type ContainerList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerList. +func (cl ContainerList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerListIterator provides access to a complete listing of Container values. type ContainerListIterator struct { i int @@ -1301,6 +1331,12 @@ type DeviceList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DeviceList. +func (dl DeviceList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeviceListIterator provides access to a complete listing of Device values. type DeviceListIterator struct { i int @@ -2054,6 +2090,12 @@ type Ipv4Config struct { Gateway *string `json:"gateway,omitempty"` } +// MarshalJSON is the custom marshaler for Ipv4Config. +func (i4c Ipv4Config) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Ipv6Config details related to the IPv6 address configuration. type Ipv6Config struct { // IPAddress - READ-ONLY; The IPv6 address of the network adapter. @@ -2064,6 +2106,12 @@ type Ipv6Config struct { Gateway *string `json:"gateway,omitempty"` } +// MarshalJSON is the custom marshaler for Ipv6Config. +func (i6c Ipv6Config) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Job a device job. type Job struct { autorest.Response `json:"-"` @@ -2199,6 +2247,12 @@ type JobErrorDetails struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for JobErrorDetails. +func (jed JobErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobErrorItem the job error items. type JobErrorItem struct { // Recommendations - READ-ONLY; The recommended actions. @@ -2209,6 +2263,12 @@ type JobErrorItem struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for JobErrorItem. +func (jei JobErrorItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobProperties the properties for the job. type JobProperties struct { // JobType - READ-ONLY; The type of the job. Possible values include: 'JobTypeInvalid', 'JobTypeScanForUpdates', 'JobTypeDownloadUpdates', 'JobTypeInstallUpdates', 'JobTypeRefreshShare', 'JobTypeRefreshContainer' @@ -2351,6 +2411,12 @@ type NetworkAdapterPosition struct { Port *int32 `json:"port,omitempty"` } +// MarshalJSON is the custom marshaler for NetworkAdapterPosition. +func (nap NetworkAdapterPosition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NetworkSettings the network settings of a device. type NetworkSettings struct { autorest.Response `json:"-"` @@ -2427,6 +2493,12 @@ type NetworkSettingsProperties struct { NetworkAdapters *[]NetworkAdapter `json:"networkAdapters,omitempty"` } +// MarshalJSON is the custom marshaler for NetworkSettingsProperties. +func (nsp NetworkSettingsProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Node represents a single node in a Data box Edge/Gateway device // Gateway devices, standalone Edge devices and a single node cluster Edge device will all have 1 node // Multi-node Edge devices will have more than 1 nodes @@ -2505,6 +2577,12 @@ type NodeList struct { Value *[]Node `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for NodeList. +func (nl NodeList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NodeProperties this class represents the nodes in a highly available cluster type NodeProperties struct { // NodeStatus - READ-ONLY; The current status of the individual node. Possible values include: 'NodeStatusUnknown', 'NodeStatusUp', 'NodeStatusDown', 'NodeStatusRebooting', 'NodeStatusShuttingDown' @@ -2523,6 +2601,12 @@ type NodeProperties struct { NodeInstanceID *string `json:"nodeInstanceId,omitempty"` } +// MarshalJSON is the custom marshaler for NodeProperties. +func (np NodeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation operations. type Operation struct { // Name - Name of the operation. @@ -2863,6 +2947,12 @@ type OrderList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OrderList. +func (ol OrderList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OrderListIterator provides access to a complete listing of Order values. type OrderListIterator struct { i int @@ -3321,6 +3411,12 @@ type ResourceTypeSku struct { Restrictions *[]SkuRestriction `json:"restrictions,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceTypeSku. +func (rts ResourceTypeSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicRole compute role. type BasicRole interface { AsIoTRole() (*IoTRole, bool) @@ -3411,6 +3507,12 @@ type RoleList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RoleList. +func (rl RoleList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UnmarshalJSON is the custom unmarshaler for RoleList struct. func (rl *RoleList) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -3870,6 +3972,12 @@ type ShareList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ShareList. +func (sl ShareList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ShareListIterator provides access to a complete listing of Share values. type ShareListIterator struct { i int @@ -4209,6 +4317,12 @@ type SKUCapability struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SKUCapability. +func (sc SKUCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuCost the metadata for retrieving price info. type SkuCost struct { // MeterID - READ-ONLY; Used for querying price from commerce. @@ -4219,6 +4333,12 @@ type SkuCost struct { ExtendedUnit *string `json:"extendedUnit,omitempty"` } +// MarshalJSON is the custom marshaler for SkuCost. +func (sc SkuCost) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuInformation sku information type SkuInformation struct { // ResourceType - READ-ONLY; The resource type. @@ -4247,6 +4367,12 @@ type SkuInformation struct { Capabilities *[]SKUCapability `json:"capabilities,omitempty"` } +// MarshalJSON is the custom marshaler for SkuInformation. +func (si SkuInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuInformationList list of SKU Information objects type SkuInformationList struct { autorest.Response `json:"-"` @@ -4256,6 +4382,12 @@ type SkuInformationList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SkuInformationList. +func (sil SkuInformationList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuList list of SKU Information objects. type SkuList struct { autorest.Response `json:"-"` @@ -4265,6 +4397,12 @@ type SkuList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SkuList. +func (sl SkuList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuLocationInfo the location info. type SkuLocationInfo struct { // Location - READ-ONLY; The location. @@ -4275,6 +4413,12 @@ type SkuLocationInfo struct { Sites *[]string `json:"sites,omitempty"` } +// MarshalJSON is the custom marshaler for SkuLocationInfo. +func (sli SkuLocationInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuRestriction the restrictions because of which SKU cannot be used. type SkuRestriction struct { // Type - READ-ONLY; The type of the restriction. @@ -4287,6 +4431,12 @@ type SkuRestriction struct { RestrictionInfo *SkuRestrictionInfo `json:"restrictionInfo,omitempty"` } +// MarshalJSON is the custom marshaler for SkuRestriction. +func (sr SkuRestriction) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuRestrictionInfo the restriction info with locations and zones. type SkuRestrictionInfo struct { // Locations - READ-ONLY; The locations. @@ -4295,6 +4445,12 @@ type SkuRestrictionInfo struct { Zones *[]string `json:"zones,omitempty"` } +// MarshalJSON is the custom marshaler for SkuRestrictionInfo. +func (sri SkuRestrictionInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuType the Sku information. type SkuType struct { // ResourceType - READ-ONLY; The type of the resource. @@ -4327,6 +4483,12 @@ type SkuType struct { Availability SkuAvailability `json:"availability,omitempty"` } +// MarshalJSON is the custom marshaler for SkuType. +func (st SkuType) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageAccount represents a Storage Account on the Data Box Edge/Gateway device. type StorageAccount struct { autorest.Response `json:"-"` @@ -4482,6 +4644,12 @@ type StorageAccountCredentialList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for StorageAccountCredentialList. +func (sacl StorageAccountCredentialList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageAccountCredentialListIterator provides access to a complete listing of StorageAccountCredential // values. type StorageAccountCredentialListIterator struct { @@ -4742,6 +4910,12 @@ type StorageAccountList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for StorageAccountList. +func (sal StorageAccountList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageAccountListIterator provides access to a complete listing of StorageAccount values. type StorageAccountListIterator struct { i int @@ -5124,6 +5298,12 @@ type TriggerList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for TriggerList. +func (tl TriggerList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UnmarshalJSON is the custom unmarshaler for TriggerList struct. func (tl *TriggerList) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -5419,6 +5599,12 @@ type UpdateDownloadProgress struct { NumberOfUpdatesDownloaded *int32 `json:"numberOfUpdatesDownloaded,omitempty"` } +// MarshalJSON is the custom marshaler for UpdateDownloadProgress. +func (UDP UpdateDownloadProgress) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpdateInstallProgress progress details during installation of updates. type UpdateInstallProgress struct { // PercentComplete - READ-ONLY; Percentage completed. @@ -5429,6 +5615,12 @@ type UpdateInstallProgress struct { NumberOfUpdatesInstalled *int32 `json:"numberOfUpdatesInstalled,omitempty"` } +// MarshalJSON is the custom marshaler for UpdateInstallProgress. +func (uip UpdateInstallProgress) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpdateSummary details about ongoing updates and availability of updates on the device. type UpdateSummary struct { autorest.Response `json:"-"` @@ -5717,6 +5909,12 @@ type UserList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for UserList. +func (ul UserList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UserListIterator provides access to a complete listing of User values. type UserListIterator struct { i int diff --git a/services/preview/datadog/mgmt/2020-02-01-preview/datadog/_meta.json b/services/preview/datadog/mgmt/2020-02-01-preview/datadog/_meta.json index 8276be60bbd0..14d61d3cb1c3 100644 --- a/services/preview/datadog/mgmt/2020-02-01-preview/datadog/_meta.json +++ b/services/preview/datadog/mgmt/2020-02-01-preview/datadog/_meta.json @@ -2,9 +2,9 @@ "commit": "d9506558e6389e62926ae385f1d625a1376a0f9d", "readme": "/_/azure-rest-api-specs/specification/datadog/resource-manager/readme.md", "tag": "package-2020-02-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-02-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datadog/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-02-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datadog/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/CHANGELOG.md b/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/CHANGELOG.md index 52911e4cc5e4..34afe0d06c08 100644 --- a/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/CHANGELOG.md +++ b/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/CHANGELOG.md @@ -1,2 +1,13 @@ # Change History +## Additive Changes + +### New Funcs + +1. IntegrationRuntimeNodeIPAddress.MarshalJSON() ([]byte, error) +1. LinkedIntegrationRuntime.MarshalJSON() ([]byte, error) +1. ManagedIntegrationRuntimeError.MarshalJSON() ([]byte, error) +1. ManagedIntegrationRuntimeOperationResult.MarshalJSON() ([]byte, error) +1. ManagedIntegrationRuntimeStatusTypeProperties.MarshalJSON() ([]byte, error) +1. PipelineRunInvokedBy.MarshalJSON() ([]byte, error) +1. SubResource.MarshalJSON() ([]byte, error) diff --git a/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/_meta.json b/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/_meta.json index 075b3a23474f..bf20ad5e4a23 100644 --- a/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/_meta.json +++ b/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/datafactory/resource-manager/readme.md", "tag": "package-2017-09-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-09-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datafactory/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-09-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datafactory/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/models.go b/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/models.go index 6d0e5b82304c..7a99c26e23f4 100644 --- a/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/models.go +++ b/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/models.go @@ -52940,6 +52940,12 @@ type IntegrationRuntimeNodeIPAddress struct { IPAddress *string `json:"ipAddress,omitempty"` } +// MarshalJSON is the custom marshaler for IntegrationRuntimeNodeIPAddress. +func (irnia IntegrationRuntimeNodeIPAddress) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IntegrationRuntimeNodeMonitoringData monitoring data for integration runtime node. type IntegrationRuntimeNodeMonitoringData struct { // AdditionalProperties - Unmatched properties from the message are deserialized this collection @@ -55359,6 +55365,12 @@ type LinkedIntegrationRuntime struct { CreateTime *date.Time `json:"createTime,omitempty"` } +// MarshalJSON is the custom marshaler for LinkedIntegrationRuntime. +func (lir LinkedIntegrationRuntime) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LinkedIntegrationRuntimeKey the base definition of a secret type. type LinkedIntegrationRuntimeKey struct { // Key - Type of the secret. @@ -58474,6 +58486,12 @@ type ManagedIntegrationRuntimeError struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedIntegrationRuntimeError. +func (mire ManagedIntegrationRuntimeError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedIntegrationRuntimeNode properties of integration runtime node. type ManagedIntegrationRuntimeNode struct { // NodeID - READ-ONLY; The managed integration runtime node id. @@ -58509,6 +58527,12 @@ type ManagedIntegrationRuntimeOperationResult struct { ActivityID *string `json:"activityId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedIntegrationRuntimeOperationResult. +func (miror ManagedIntegrationRuntimeOperationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedIntegrationRuntimeStatus managed integration runtime status. type ManagedIntegrationRuntimeStatus struct { // ManagedIntegrationRuntimeStatusTypeProperties - Managed integration runtime status type properties. @@ -58634,6 +58658,12 @@ type ManagedIntegrationRuntimeStatusTypeProperties struct { LastOperation *ManagedIntegrationRuntimeOperationResult `json:"lastOperation,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedIntegrationRuntimeStatusTypeProperties. +func (mirstp ManagedIntegrationRuntimeStatusTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedIntegrationRuntimeTypeProperties managed integration runtime type properties. type ManagedIntegrationRuntimeTypeProperties struct { // ComputeProperties - The compute resource for managed integration runtime. @@ -71549,6 +71579,12 @@ type PipelineRunInvokedBy struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for PipelineRunInvokedBy. +func (prib PipelineRunInvokedBy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PipelineRunQueryFilter query filter option for listing pipeline runs. type PipelineRunQueryFilter struct { // Operand - Parameter name to be used for filter. Possible values include: 'PipelineName', 'Status', 'RunStart', 'RunEnd' @@ -94036,6 +94072,12 @@ type SubResource struct { Etag *string `json:"etag,omitempty"` } +// MarshalJSON is the custom marshaler for SubResource. +func (sr SubResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SybaseLinkedService linked service for Sybase data source. type SybaseLinkedService struct { // SybaseLinkedServiceTypeProperties - Sybase linked service properties. diff --git a/services/preview/datalake/analytics/2015-10-01-preview/catalog/_meta.json b/services/preview/datalake/analytics/2015-10-01-preview/catalog/_meta.json index 6aef9d3270bd..ab864de3b6e7 100644 --- a/services/preview/datalake/analytics/2015-10-01-preview/catalog/_meta.json +++ b/services/preview/datalake/analytics/2015-10-01-preview/catalog/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/datalake-analytics/data-plane/readme.md", "tag": "package-catalog-2015-10-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-catalog-2015-10-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datalake-analytics/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-catalog-2015-10-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datalake-analytics/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/datalake/analytics/2015-11-01-preview/job/CHANGELOG.md b/services/preview/datalake/analytics/2015-11-01-preview/job/CHANGELOG.md index 52911e4cc5e4..bed104d486f0 100644 --- a/services/preview/datalake/analytics/2015-11-01-preview/job/CHANGELOG.md +++ b/services/preview/datalake/analytics/2015-11-01-preview/job/CHANGELOG.md @@ -1,2 +1,13 @@ # Change History +## Additive Changes + +### New Funcs + +1. DataPath.MarshalJSON() ([]byte, error) +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. InfoListResult.MarshalJSON() ([]byte, error) +1. InnerError.MarshalJSON() ([]byte, error) +1. StateAuditRecord.MarshalJSON() ([]byte, error) +1. Statistics.MarshalJSON() ([]byte, error) +1. StatisticsVertexStage.MarshalJSON() ([]byte, error) diff --git a/services/preview/datalake/analytics/2015-11-01-preview/job/_meta.json b/services/preview/datalake/analytics/2015-11-01-preview/job/_meta.json index 603d6e4bb453..d064d2c3380f 100644 --- a/services/preview/datalake/analytics/2015-11-01-preview/job/_meta.json +++ b/services/preview/datalake/analytics/2015-11-01-preview/job/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/datalake-analytics/data-plane/readme.md", "tag": "package-job-2015-11-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-job-2015-11-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datalake-analytics/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-job-2015-11-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datalake-analytics/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/datalake/analytics/2015-11-01-preview/job/models.go b/services/preview/datalake/analytics/2015-11-01-preview/job/models.go index b1fd85f876a6..ecd5f4872bf4 100644 --- a/services/preview/datalake/analytics/2015-11-01-preview/job/models.go +++ b/services/preview/datalake/analytics/2015-11-01-preview/job/models.go @@ -31,6 +31,12 @@ type DataPath struct { Paths *[]string `json:"paths,omitempty"` } +// MarshalJSON is the custom marshaler for DataPath. +func (dp DataPath) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetails the Data Lake Analytics job error details. type ErrorDetails struct { // Description - READ-ONLY; Gets the error message description @@ -63,6 +69,12 @@ type ErrorDetails struct { StartOffset *int32 `json:"startOffset,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HiveJobProperties ... type HiveJobProperties struct { // StatementInfo - Gets or sets the statement information for each statement in the script @@ -157,6 +169,12 @@ type InfoListResult struct { Count *int64 `json:"count,omitempty"` } +// MarshalJSON is the custom marshaler for InfoListResult. +func (ilr InfoListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InfoListResultIterator provides access to a complete listing of Information values. type InfoListResultIterator struct { i int @@ -556,6 +574,12 @@ type InnerError struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for InnerError. +func (ie InnerError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicProperties the common Data Lake Analytics job properties. type BasicProperties interface { AsUSQLJobProperties() (*USQLJobProperties, bool) @@ -673,6 +697,12 @@ type StateAuditRecord struct { Details *string `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for StateAuditRecord. +func (sar StateAuditRecord) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Statistics the Data Lake Analytics U-SQL job execution statistics. type Statistics struct { autorest.Response `json:"-"` @@ -682,6 +712,12 @@ type Statistics struct { Stages *[]StatisticsVertexStage `json:"stages,omitempty"` } +// MarshalJSON is the custom marshaler for Statistics. +func (s Statistics) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StatisticsVertexStage the Data Lake Analytics U-SQL job statistics vertex stage information. type StatisticsVertexStage struct { // DataRead - READ-ONLY; Gets the amount of data read, in bytes. @@ -726,6 +762,12 @@ type StatisticsVertexStage struct { TotalSucceededTime *string `json:"totalSucceededTime,omitempty"` } +// MarshalJSON is the custom marshaler for StatisticsVertexStage. +func (svs StatisticsVertexStage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // USQLJobProperties ... type USQLJobProperties struct { // Resources - Gets or sets the list of resources that are required by the job diff --git a/services/preview/datalake/analytics/2016-03-20-preview/job/CHANGELOG.md b/services/preview/datalake/analytics/2016-03-20-preview/job/CHANGELOG.md index 52911e4cc5e4..3c156d8cc69d 100644 --- a/services/preview/datalake/analytics/2016-03-20-preview/job/CHANGELOG.md +++ b/services/preview/datalake/analytics/2016-03-20-preview/job/CHANGELOG.md @@ -1,2 +1,14 @@ # Change History +## Additive Changes + +### New Funcs + +1. DataPath.MarshalJSON() ([]byte, error) +1. Diagnostics.MarshalJSON() ([]byte, error) +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. InfoListResult.MarshalJSON() ([]byte, error) +1. InnerError.MarshalJSON() ([]byte, error) +1. StateAuditRecord.MarshalJSON() ([]byte, error) +1. Statistics.MarshalJSON() ([]byte, error) +1. StatisticsVertexStage.MarshalJSON() ([]byte, error) diff --git a/services/preview/datalake/analytics/2016-03-20-preview/job/_meta.json b/services/preview/datalake/analytics/2016-03-20-preview/job/_meta.json index 8bb36fce21f8..be5212673992 100644 --- a/services/preview/datalake/analytics/2016-03-20-preview/job/_meta.json +++ b/services/preview/datalake/analytics/2016-03-20-preview/job/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/datalake-analytics/data-plane/readme.md", "tag": "package-job-2016-03-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-job-2016-03-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datalake-analytics/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-job-2016-03-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datalake-analytics/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/datalake/analytics/2016-03-20-preview/job/models.go b/services/preview/datalake/analytics/2016-03-20-preview/job/models.go index 98849cd7ecd8..ee8dcdba46fd 100644 --- a/services/preview/datalake/analytics/2016-03-20-preview/job/models.go +++ b/services/preview/datalake/analytics/2016-03-20-preview/job/models.go @@ -31,6 +31,12 @@ type DataPath struct { Paths *[]string `json:"paths,omitempty"` } +// MarshalJSON is the custom marshaler for DataPath. +func (dp DataPath) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Diagnostics ... type Diagnostics struct { // ColumnNumber - READ-ONLY; the column where the error occurred. @@ -47,6 +53,12 @@ type Diagnostics struct { Start *int32 `json:"start,omitempty"` } +// MarshalJSON is the custom marshaler for Diagnostics. +func (d Diagnostics) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetails the Data Lake Analytics job error details. type ErrorDetails struct { // Description - READ-ONLY; the error message description @@ -79,6 +91,12 @@ type ErrorDetails struct { StartOffset *int32 `json:"startOffset,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HiveJobProperties ... type HiveJobProperties struct { // LogsLocation - READ-ONLY; the Hive logs location @@ -144,6 +162,12 @@ type InfoListResult struct { Count *int64 `json:"count,omitempty"` } +// MarshalJSON is the custom marshaler for InfoListResult. +func (ilr InfoListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InfoListResultIterator provides access to a complete listing of Information values. type InfoListResultIterator struct { i int @@ -568,6 +592,12 @@ type InnerError struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for InnerError. +func (ie InnerError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicProperties the common Data Lake Analytics job properties. type BasicProperties interface { AsUSQLJobProperties() (*USQLJobProperties, bool) @@ -684,6 +714,12 @@ type StateAuditRecord struct { Details *string `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for StateAuditRecord. +func (sar StateAuditRecord) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Statistics the Data Lake Analytics job execution statistics. type Statistics struct { autorest.Response `json:"-"` @@ -695,6 +731,12 @@ type Statistics struct { Stages *[]StatisticsVertexStage `json:"stages,omitempty"` } +// MarshalJSON is the custom marshaler for Statistics. +func (s Statistics) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StatisticsVertexStage the Data Lake Analytics job statistics vertex stage information. type StatisticsVertexStage struct { // DataRead - READ-ONLY; the amount of data read, in bytes. @@ -739,6 +781,12 @@ type StatisticsVertexStage struct { TotalSucceededTime *string `json:"totalSucceededTime,omitempty"` } +// MarshalJSON is the custom marshaler for StatisticsVertexStage. +func (svs StatisticsVertexStage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // USQLJobProperties ... type USQLJobProperties struct { // Resources - the list of resources that are required by the job diff --git a/services/preview/datalake/analytics/2017-09-01-preview/job/CHANGELOG.md b/services/preview/datalake/analytics/2017-09-01-preview/job/CHANGELOG.md index 52911e4cc5e4..e24138bc6176 100644 --- a/services/preview/datalake/analytics/2017-09-01-preview/job/CHANGELOG.md +++ b/services/preview/datalake/analytics/2017-09-01-preview/job/CHANGELOG.md @@ -1,2 +1,20 @@ # Change History +## Additive Changes + +### New Funcs + +1. DataPath.MarshalJSON() ([]byte, error) +1. Diagnostics.MarshalJSON() ([]byte, error) +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. InfoListResult.MarshalJSON() ([]byte, error) +1. InnerError.MarshalJSON() ([]byte, error) +1. PipelineInformation.MarshalJSON() ([]byte, error) +1. PipelineInformationListResult.MarshalJSON() ([]byte, error) +1. PipelineRunInformation.MarshalJSON() ([]byte, error) +1. RecurrenceInformation.MarshalJSON() ([]byte, error) +1. RecurrenceInformationListResult.MarshalJSON() ([]byte, error) +1. ResourceUsageStatistics.MarshalJSON() ([]byte, error) +1. StateAuditRecord.MarshalJSON() ([]byte, error) +1. Statistics.MarshalJSON() ([]byte, error) +1. StatisticsVertex.MarshalJSON() ([]byte, error) diff --git a/services/preview/datalake/analytics/2017-09-01-preview/job/_meta.json b/services/preview/datalake/analytics/2017-09-01-preview/job/_meta.json index a55bd0ef09c5..dadfca5eebe9 100644 --- a/services/preview/datalake/analytics/2017-09-01-preview/job/_meta.json +++ b/services/preview/datalake/analytics/2017-09-01-preview/job/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/datalake-analytics/data-plane/readme.md", "tag": "package-job-2017-09-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-job-2017-09-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datalake-analytics/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-job-2017-09-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datalake-analytics/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/datalake/analytics/2017-09-01-preview/job/models.go b/services/preview/datalake/analytics/2017-09-01-preview/job/models.go index 20e510ccbfdb..73317331b13a 100644 --- a/services/preview/datalake/analytics/2017-09-01-preview/job/models.go +++ b/services/preview/datalake/analytics/2017-09-01-preview/job/models.go @@ -616,6 +616,12 @@ type DataPath struct { Paths *[]string `json:"paths,omitempty"` } +// MarshalJSON is the custom marshaler for DataPath. +func (dp DataPath) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Diagnostics error diagnostic information for failed jobs. type Diagnostics struct { // Message - READ-ONLY; The error message. @@ -632,6 +638,12 @@ type Diagnostics struct { End *int32 `json:"end,omitempty"` } +// MarshalJSON is the custom marshaler for Diagnostics. +func (d Diagnostics) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetails the Data Lake Analytics job error details. type ErrorDetails struct { // ErrorID - READ-ONLY; The specific identifier for the type of error encountered in the job. @@ -664,6 +676,12 @@ type ErrorDetails struct { InnerError *InnerError `json:"innerError,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HiveJobProperties hive job properties used when retrieving Hive jobs. type HiveJobProperties struct { // LogsLocation - READ-ONLY; The Hive logs location. @@ -732,6 +750,12 @@ type InfoListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for InfoListResult. +func (ilr InfoListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InfoListResultIterator provides access to a complete listing of InformationBasic values. type InfoListResultIterator struct { i int @@ -1243,6 +1267,12 @@ type InnerError struct { InnerError *InnerError `json:"innerError,omitempty"` } +// MarshalJSON is the custom marshaler for InnerError. +func (ie InnerError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PipelineInformation job Pipeline Information, showing the relationship of jobs and recurrences of those // jobs in a pipeline. type PipelineInformation struct { @@ -1273,6 +1303,12 @@ type PipelineInformation struct { Recurrences *[]uuid.UUID `json:"recurrences,omitempty"` } +// MarshalJSON is the custom marshaler for PipelineInformation. +func (pi PipelineInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PipelineInformationListResult list of job pipeline information items. type PipelineInformationListResult struct { autorest.Response `json:"-"` @@ -1282,6 +1318,12 @@ type PipelineInformationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PipelineInformationListResult. +func (pilr PipelineInformationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PipelineInformationListResultIterator provides access to a complete listing of PipelineInformation // values. type PipelineInformationListResultIterator struct { @@ -1441,6 +1483,12 @@ type PipelineRunInformation struct { LastSubmitTime *date.Time `json:"lastSubmitTime,omitempty"` } +// MarshalJSON is the custom marshaler for PipelineRunInformation. +func (pri PipelineRunInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicProperties the common Data Lake Analytics job properties. type BasicProperties interface { AsUSQLJobProperties() (*USQLJobProperties, bool) @@ -1568,6 +1616,12 @@ type RecurrenceInformation struct { LastSubmitTime *date.Time `json:"lastSubmitTime,omitempty"` } +// MarshalJSON is the custom marshaler for RecurrenceInformation. +func (ri RecurrenceInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RecurrenceInformationListResult list of job recurrence information items. type RecurrenceInformationListResult struct { autorest.Response `json:"-"` @@ -1577,6 +1631,12 @@ type RecurrenceInformationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RecurrenceInformationListResult. +func (rilr RecurrenceInformationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RecurrenceInformationListResultIterator provides access to a complete listing of RecurrenceInformation // values. type RecurrenceInformationListResultIterator struct { @@ -1765,6 +1825,12 @@ type ResourceUsageStatistics struct { Maximum *int64 `json:"maximum,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceUsageStatistics. +func (rus ResourceUsageStatistics) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ScopeJobProperties scope job properties used when submitting and retrieving Scope jobs. (Only for use // internally with Scope job type.) type ScopeJobProperties struct { @@ -1858,6 +1924,12 @@ type StateAuditRecord struct { Details *string `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for StateAuditRecord. +func (sar StateAuditRecord) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Statistics the Data Lake Analytics job execution statistics. type Statistics struct { autorest.Response `json:"-"` @@ -1869,6 +1941,12 @@ type Statistics struct { Stages *[]StatisticsVertexStage `json:"stages,omitempty"` } +// MarshalJSON is the custom marshaler for Statistics. +func (s Statistics) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StatisticsVertex the detailed information for a vertex. type StatisticsVertex struct { // Name - READ-ONLY; The name of the vertex. @@ -1883,6 +1961,12 @@ type StatisticsVertex struct { PeakMemUsage *int64 `json:"peakMemUsage,omitempty"` } +// MarshalJSON is the custom marshaler for StatisticsVertex. +func (sv StatisticsVertex) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StatisticsVertexStage the Data Lake Analytics job statistics vertex stage information. type StatisticsVertexStage struct { // DataRead - READ-ONLY; The amount of data read, in bytes. diff --git a/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account/CHANGELOG.md b/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account/CHANGELOG.md index 52911e4cc5e4..d9717a6e40af 100644 --- a/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account/CHANGELOG.md +++ b/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account/CHANGELOG.md @@ -1,2 +1,18 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureAsyncOperationResult.MarshalJSON() ([]byte, error) +1. BlobContainer.MarshalJSON() ([]byte, error) +1. BlobContainerProperties.MarshalJSON() ([]byte, error) +1. DataLakeAnalyticsAccountListDataLakeStoreResult.MarshalJSON() ([]byte, error) +1. DataLakeAnalyticsAccountListResult.MarshalJSON() ([]byte, error) +1. DataLakeAnalyticsAccountListStorageAccountsResult.MarshalJSON() ([]byte, error) +1. Error.MarshalJSON() ([]byte, error) +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. InnerError.MarshalJSON() ([]byte, error) +1. ListBlobContainersResult.MarshalJSON() ([]byte, error) +1. ListSasTokensResult.MarshalJSON() ([]byte, error) +1. SasTokenInfo.MarshalJSON() ([]byte, error) diff --git a/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account/_meta.json b/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account/_meta.json index e2a23c089afa..78ced1260c28 100644 --- a/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account/_meta.json +++ b/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/datalake-analytics/resource-manager/readme.md", "tag": "package-2015-10-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2015-10-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datalake-analytics/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2015-10-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datalake-analytics/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account/models.go b/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account/models.go index 166c4a745d71..e66cb7e049d2 100644 --- a/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account/models.go +++ b/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account/models.go @@ -45,6 +45,12 @@ type AzureAsyncOperationResult struct { Error *Error `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for AzureAsyncOperationResult. +func (aaor AzureAsyncOperationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BlobContainer azure Storage blob container information. type BlobContainer struct { autorest.Response `json:"-"` @@ -58,12 +64,24 @@ type BlobContainer struct { Properties *BlobContainerProperties `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for BlobContainer. +func (bc BlobContainer) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BlobContainerProperties azure Storage blob container properties information. type BlobContainerProperties struct { // LastModifiedTime - READ-ONLY; the last modified time of the blob container. LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"` } +// MarshalJSON is the custom marshaler for BlobContainerProperties. +func (bcp BlobContainerProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CreateFuture an abstraction for monitoring and retrieving the results of a long-running operation. type CreateFuture struct { azure.FutureAPI @@ -153,6 +171,12 @@ type DataLakeAnalyticsAccountListDataLakeStoreResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DataLakeAnalyticsAccountListDataLakeStoreResult. +func (dlaaldlsr DataLakeAnalyticsAccountListDataLakeStoreResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DataLakeAnalyticsAccountListDataLakeStoreResultIterator provides access to a complete listing of // DataLakeStoreAccountInfo values. type DataLakeAnalyticsAccountListDataLakeStoreResultIterator struct { @@ -313,6 +337,12 @@ type DataLakeAnalyticsAccountListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DataLakeAnalyticsAccountListResult. +func (dlaalr DataLakeAnalyticsAccountListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DataLakeAnalyticsAccountListResultIterator provides access to a complete listing of // DataLakeAnalyticsAccount values. type DataLakeAnalyticsAccountListResultIterator struct { @@ -475,6 +505,12 @@ type DataLakeAnalyticsAccountListStorageAccountsResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DataLakeAnalyticsAccountListStorageAccountsResult. +func (dlaalsar DataLakeAnalyticsAccountListStorageAccountsResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DataLakeAnalyticsAccountListStorageAccountsResultIterator provides access to a complete listing of // StorageAccountInfo values. type DataLakeAnalyticsAccountListStorageAccountsResultIterator struct { @@ -737,6 +773,12 @@ type Error struct { InnerError *InnerError `json:"innerError,omitempty"` } +// MarshalJSON is the custom marshaler for Error. +func (e Error) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetails generic resource error details information. type ErrorDetails struct { // Code - READ-ONLY; the HTTP status code or error code associated with this error @@ -747,6 +789,12 @@ type ErrorDetails struct { Target *string `json:"target,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InnerError generic resource inner error information. type InnerError struct { // Trace - READ-ONLY; the stack trace for the error @@ -755,6 +803,12 @@ type InnerError struct { Context *string `json:"context,omitempty"` } +// MarshalJSON is the custom marshaler for InnerError. +func (ie InnerError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListBlobContainersResult the list of blob containers associated with the storage account attached to the // Data Lake Analytics account. type ListBlobContainersResult struct { @@ -765,6 +819,12 @@ type ListBlobContainersResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListBlobContainersResult. +func (lbcr ListBlobContainersResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListBlobContainersResultIterator provides access to a complete listing of BlobContainer values. type ListBlobContainersResultIterator struct { i int @@ -925,6 +985,12 @@ type ListSasTokensResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListSasTokensResult. +func (lstr ListSasTokensResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListSasTokensResultIterator provides access to a complete listing of SasTokenInfo values. type ListSasTokensResultIterator struct { i int @@ -1081,6 +1147,12 @@ type SasTokenInfo struct { AccessToken *string `json:"accessToken,omitempty"` } +// MarshalJSON is the custom marshaler for SasTokenInfo. +func (sti SasTokenInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageAccountInfo azure Storage account information. type StorageAccountInfo struct { autorest.Response `json:"-"` diff --git a/services/preview/datalake/store/2015-10-01-preview/filesystem/CHANGELOG.md b/services/preview/datalake/store/2015-10-01-preview/filesystem/CHANGELOG.md index 52911e4cc5e4..fef0b261e5ed 100644 --- a/services/preview/datalake/store/2015-10-01-preview/filesystem/CHANGELOG.md +++ b/services/preview/datalake/store/2015-10-01-preview/filesystem/CHANGELOG.md @@ -1,2 +1,14 @@ # Change History +## Additive Changes + +### New Funcs + +1. AdlsError.MarshalJSON() ([]byte, error) +1. ContentSummary.MarshalJSON() ([]byte, error) +1. ContentSummaryResult.MarshalJSON() ([]byte, error) +1. FileOperationResult.MarshalJSON() ([]byte, error) +1. FileStatusProperties.MarshalJSON() ([]byte, error) +1. FileStatusResult.MarshalJSON() ([]byte, error) +1. FileStatuses.MarshalJSON() ([]byte, error) +1. FileStatusesResult.MarshalJSON() ([]byte, error) diff --git a/services/preview/datalake/store/2015-10-01-preview/filesystem/_meta.json b/services/preview/datalake/store/2015-10-01-preview/filesystem/_meta.json index ead11320b973..248ecf418610 100644 --- a/services/preview/datalake/store/2015-10-01-preview/filesystem/_meta.json +++ b/services/preview/datalake/store/2015-10-01-preview/filesystem/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/datalake-store/data-plane/readme.md", "tag": "package-2015-10-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2015-10-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datalake-store/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2015-10-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datalake-store/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/datalake/store/2015-10-01-preview/filesystem/models.go b/services/preview/datalake/store/2015-10-01-preview/filesystem/models.go index 7fbc57c34154..bd45304d95e2 100644 --- a/services/preview/datalake/store/2015-10-01-preview/filesystem/models.go +++ b/services/preview/datalake/store/2015-10-01-preview/filesystem/models.go @@ -212,6 +212,12 @@ type AdlsError struct { RemoteException BasicAdlsRemoteException `json:"RemoteException,omitempty"` } +// MarshalJSON is the custom marshaler for AdlsError. +func (ae AdlsError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UnmarshalJSON is the custom unmarshaler for AdlsError struct. func (ae *AdlsError) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -938,6 +944,12 @@ type ContentSummary struct { SpaceConsumed *int64 `json:"spaceConsumed,omitempty"` } +// MarshalJSON is the custom marshaler for ContentSummary. +func (cs ContentSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContentSummaryResult data Lake Store filesystem content summary information response. type ContentSummaryResult struct { autorest.Response `json:"-"` @@ -945,6 +957,12 @@ type ContentSummaryResult struct { ContentSummary *ContentSummary `json:"ContentSummary,omitempty"` } +// MarshalJSON is the custom marshaler for ContentSummaryResult. +func (csr ContentSummaryResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FileOperationResult the result of the request or operation. type FileOperationResult struct { autorest.Response `json:"-"` @@ -952,12 +970,24 @@ type FileOperationResult struct { OperationResult *bool `json:"boolean,omitempty"` } +// MarshalJSON is the custom marshaler for FileOperationResult. +func (forVar FileOperationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FileStatuses data Lake Store file status list information. type FileStatuses struct { // FileStatus - READ-ONLY; the object containing the list of properties of the files. FileStatus *[]FileStatusProperties `json:"FileStatus,omitempty"` } +// MarshalJSON is the custom marshaler for FileStatuses. +func (fs FileStatuses) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FileStatusesResult data Lake Store filesystem file status list information response. type FileStatusesResult struct { autorest.Response `json:"-"` @@ -965,6 +995,12 @@ type FileStatusesResult struct { FileStatuses *FileStatuses `json:"FileStatuses,omitempty"` } +// MarshalJSON is the custom marshaler for FileStatusesResult. +func (fsr FileStatusesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FileStatusProperties data Lake Store file or directory information. type FileStatusProperties struct { // AccessTime - READ-ONLY; the last access time as ticks since the epoch. @@ -991,6 +1027,12 @@ type FileStatusProperties struct { Type FileType `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for FileStatusProperties. +func (fsp FileStatusProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FileStatusResult data Lake Store filesystem file status information response. type FileStatusResult struct { autorest.Response `json:"-"` @@ -998,6 +1040,12 @@ type FileStatusResult struct { FileStatus *FileStatusProperties `json:"FileStatus,omitempty"` } +// MarshalJSON is the custom marshaler for FileStatusResult. +func (fsr FileStatusResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReadCloser ... type ReadCloser struct { autorest.Response `json:"-"` diff --git a/services/preview/datalake/store/mgmt/2015-10-01-preview/account/CHANGELOG.md b/services/preview/datalake/store/mgmt/2015-10-01-preview/account/CHANGELOG.md index 52911e4cc5e4..622b20a8909d 100644 --- a/services/preview/datalake/store/mgmt/2015-10-01-preview/account/CHANGELOG.md +++ b/services/preview/datalake/store/mgmt/2015-10-01-preview/account/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureAsyncOperationResult.MarshalJSON() ([]byte, error) +1. DataLakeStoreAccountListResult.MarshalJSON() ([]byte, error) +1. DataLakeStoreFirewallRuleListResult.MarshalJSON() ([]byte, error) +1. Error.MarshalJSON() ([]byte, error) +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. InnerError.MarshalJSON() ([]byte, error) diff --git a/services/preview/datalake/store/mgmt/2015-10-01-preview/account/_meta.json b/services/preview/datalake/store/mgmt/2015-10-01-preview/account/_meta.json index 94ed035567d8..c4eca28c2c19 100644 --- a/services/preview/datalake/store/mgmt/2015-10-01-preview/account/_meta.json +++ b/services/preview/datalake/store/mgmt/2015-10-01-preview/account/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/datalake-store/resource-manager/readme.md", "tag": "package-2015-10-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2015-10-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datalake-store/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2015-10-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datalake-store/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/datalake/store/mgmt/2015-10-01-preview/account/models.go b/services/preview/datalake/store/mgmt/2015-10-01-preview/account/models.go index 446551eab502..0b388d01186a 100644 --- a/services/preview/datalake/store/mgmt/2015-10-01-preview/account/models.go +++ b/services/preview/datalake/store/mgmt/2015-10-01-preview/account/models.go @@ -34,6 +34,12 @@ type AzureAsyncOperationResult struct { Error *Error `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for AzureAsyncOperationResult. +func (aaor AzureAsyncOperationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CreateFuture an abstraction for monitoring and retrieving the results of a long-running operation. type CreateFuture struct { azure.FutureAPI @@ -127,6 +133,12 @@ type DataLakeStoreAccountListResult struct { Count *int64 `json:"count,omitempty"` } +// MarshalJSON is the custom marshaler for DataLakeStoreAccountListResult. +func (dlsalr DataLakeStoreAccountListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DataLakeStoreAccountListResultIterator provides access to a complete listing of DataLakeStoreAccount // values. type DataLakeStoreAccountListResultIterator struct { @@ -329,6 +341,12 @@ type DataLakeStoreFirewallRuleListResult struct { Count *int64 `json:"count,omitempty"` } +// MarshalJSON is the custom marshaler for DataLakeStoreFirewallRuleListResult. +func (dlsfrlr DataLakeStoreFirewallRuleListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DataLakeStoreFirewallRuleListResultIterator provides access to a complete listing of FirewallRule // values. type DataLakeStoreFirewallRuleListResultIterator struct { @@ -557,6 +575,12 @@ type Error struct { InnerError *InnerError `json:"innerError,omitempty"` } +// MarshalJSON is the custom marshaler for Error. +func (e Error) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetails data Lake Store error details information type ErrorDetails struct { // Code - READ-ONLY; the HTTP status code or error code associated with this error @@ -567,6 +591,12 @@ type ErrorDetails struct { Target *string `json:"target,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FirewallRule data Lake Store firewall rule information type FirewallRule struct { autorest.Response `json:"-"` @@ -616,6 +646,12 @@ type InnerError struct { Context *string `json:"context,omitempty"` } +// MarshalJSON is the custom marshaler for InnerError. +func (ie InnerError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // KeyVaultMetaInfo ... type KeyVaultMetaInfo struct { // KeyVaultResourceID - The resource identifier for the user managed Key Vault being used to encrypt. diff --git a/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/CHANGELOG.md b/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/CHANGELOG.md index 52911e4cc5e4..dcb18cb90bad 100644 --- a/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/CHANGELOG.md +++ b/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/CHANGELOG.md @@ -1,2 +1,19 @@ # Change History +## Additive Changes + +### New Funcs + +1. DataItemMigrationSummaryResult.MarshalJSON() ([]byte, error) +1. DatabaseSummaryResult.MarshalJSON() ([]byte, error) +1. DatabaseTable.MarshalJSON() ([]byte, error) +1. MigrationTableMetadata.MarshalJSON() ([]byte, error) +1. MigrationValidationDatabaseLevelResult.MarshalJSON() ([]byte, error) +1. MigrationValidationDatabaseSummaryResult.MarshalJSON() ([]byte, error) +1. ProjectMetadata.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ResourceSku.MarshalJSON() ([]byte, error) +1. ResourceSkuCapabilities.MarshalJSON() ([]byte, error) +1. ResourceSkuCapacity.MarshalJSON() ([]byte, error) +1. ResourceSkuCosts.MarshalJSON() ([]byte, error) +1. ResourceSkuRestrictions.MarshalJSON() ([]byte, error) diff --git a/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/_meta.json b/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/_meta.json index 54d972ee6620..745833a2170c 100644 --- a/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/_meta.json +++ b/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/datamigration/resource-manager/readme.md", "tag": "package-2017-11-15-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-11-15-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datamigration/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-11-15-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datamigration/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/models.go b/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/models.go index 19017a99e895..ad47b9222998 100644 --- a/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/models.go +++ b/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/models.go @@ -659,6 +659,12 @@ type DatabaseSummaryResult struct { ResultPrefix *string `json:"resultPrefix,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseSummaryResult. +func (dsr DatabaseSummaryResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseTable table properties type DatabaseTable struct { // HasRows - READ-ONLY; Indicates whether table is empty or not @@ -667,6 +673,12 @@ type DatabaseTable struct { Name *string `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseTable. +func (dt DatabaseTable) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DataIntegrityValidationResult results for checksum based Data Integrity validation results type DataIntegrityValidationResult struct { // FailedObjects - List of failed table names of source and target pair @@ -709,6 +721,12 @@ type DataItemMigrationSummaryResult struct { ResultPrefix *string `json:"resultPrefix,omitempty"` } +// MarshalJSON is the custom marshaler for DataItemMigrationSummaryResult. +func (dimsr DataItemMigrationSummaryResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Error migration Task errors type Error struct { // Message - READ-ONLY; Error description @@ -1409,6 +1427,12 @@ type MigrationTableMetadata struct { TargetTableName *string `json:"targetTableName,omitempty"` } +// MarshalJSON is the custom marshaler for MigrationTableMetadata. +func (mtm MigrationTableMetadata) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MigrationValidationDatabaseLevelResult database level validation results type MigrationValidationDatabaseLevelResult struct { // ID - READ-ONLY; Result identifier @@ -1433,6 +1457,12 @@ type MigrationValidationDatabaseLevelResult struct { Status ValidationStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for MigrationValidationDatabaseLevelResult. +func (mvdlr MigrationValidationDatabaseLevelResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MigrationValidationDatabaseSummaryResult migration Validation Database level summary result type MigrationValidationDatabaseSummaryResult struct { // ID - READ-ONLY; Result identifier @@ -1451,6 +1481,12 @@ type MigrationValidationDatabaseSummaryResult struct { Status ValidationStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for MigrationValidationDatabaseSummaryResult. +func (mvdsr MigrationValidationDatabaseSummaryResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MigrationValidationOptions types of validations to run after the migration type MigrationValidationOptions struct { // EnableSchemaValidation - Allows to compare the schema information between source and target. @@ -1791,6 +1827,12 @@ type ProjectMetadata struct { SelectedMigrationTables *[]MigrationTableMetadata `json:"selectedMigrationTables,omitempty"` } +// MarshalJSON is the custom marshaler for ProjectMetadata. +func (pm ProjectMetadata) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProjectProperties project-specific properties type ProjectProperties struct { // SourcePlatform - Source platform for the project. Possible values include: 'SQL', 'Unknown' @@ -2321,6 +2363,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSku describes an available DMS SKU. type ResourceSku struct { // ResourceType - READ-ONLY; The type of resource the SKU applies to. @@ -2349,6 +2397,12 @@ type ResourceSku struct { Restrictions *[]ResourceSkuRestrictions `json:"restrictions,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSku. +func (rs ResourceSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCapabilities describes The SKU capabilities object. type ResourceSkuCapabilities struct { // Name - READ-ONLY; An invariant to describe the feature. @@ -2357,6 +2411,12 @@ type ResourceSkuCapabilities struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapabilities. +func (rsc ResourceSkuCapabilities) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCapacity describes scaling information of a SKU. type ResourceSkuCapacity struct { // Minimum - READ-ONLY; The minimum capacity. @@ -2369,6 +2429,12 @@ type ResourceSkuCapacity struct { ScaleType ResourceSkuCapacityScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapacity. +func (rsc ResourceSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCosts describes metadata for retrieving price info. type ResourceSkuCosts struct { // MeterID - READ-ONLY; Used for querying price from commerce. @@ -2379,6 +2445,12 @@ type ResourceSkuCosts struct { ExtendedUnit *string `json:"extendedUnit,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCosts. +func (rsc ResourceSkuCosts) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuRestrictions describes scaling information of a SKU. type ResourceSkuRestrictions struct { // Type - READ-ONLY; The type of restrictions. Possible values include: 'Location' @@ -2389,6 +2461,12 @@ type ResourceSkuRestrictions struct { ReasonCode ResourceSkuRestrictionsReasonCode `json:"reasonCode,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuRestrictions. +func (rsr ResourceSkuRestrictions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkusResult the DMS List SKUs operation response. type ResourceSkusResult struct { autorest.Response `json:"-"` diff --git a/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/CHANGELOG.md b/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/CHANGELOG.md index 52911e4cc5e4..1b96d14302a7 100644 --- a/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/CHANGELOG.md +++ b/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/CHANGELOG.md @@ -1,2 +1,23 @@ # Change History +## Additive Changes + +### New Funcs + +1. ConnectToTargetSQLMITaskOutput.MarshalJSON() ([]byte, error) +1. DataItemMigrationSummaryResult.MarshalJSON() ([]byte, error) +1. DatabaseSummaryResult.MarshalJSON() ([]byte, error) +1. DatabaseTable.MarshalJSON() ([]byte, error) +1. MigrationEligibilityInfo.MarshalJSON() ([]byte, error) +1. MigrationTableMetadata.MarshalJSON() ([]byte, error) +1. MigrationValidationDatabaseLevelResult.MarshalJSON() ([]byte, error) +1. MigrationValidationDatabaseSummaryResult.MarshalJSON() ([]byte, error) +1. ProjectMetadata.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ResourceSku.MarshalJSON() ([]byte, error) +1. ResourceSkuCapabilities.MarshalJSON() ([]byte, error) +1. ResourceSkuCapacity.MarshalJSON() ([]byte, error) +1. ResourceSkuCosts.MarshalJSON() ([]byte, error) +1. ResourceSkuRestrictions.MarshalJSON() ([]byte, error) +1. StartMigrationScenarioServerRoleResult.MarshalJSON() ([]byte, error) +1. ValidateMigrationInputSQLServerSQLMITaskOutput.MarshalJSON() ([]byte, error) diff --git a/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/_meta.json b/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/_meta.json index 28364972e9ce..109282037e7a 100644 --- a/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/_meta.json +++ b/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/datamigration/resource-manager/readme.md", "tag": "package-2018-03-31-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-03-31-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datamigration/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-03-31-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datamigration/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/models.go b/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/models.go index 265dc815e6e0..f94f78225110 100644 --- a/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/models.go +++ b/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/models.go @@ -766,6 +766,12 @@ type ConnectToTargetSQLMITaskOutput struct { ValidationErrors *[]ReportableException `json:"validationErrors,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectToTargetSQLMITaskOutput. +func (cttsmto ConnectToTargetSQLMITaskOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectToTargetSQLMITaskProperties properties for the task that validates connection to Azure SQL // Database Managed Instance type ConnectToTargetSQLMITaskProperties struct { @@ -960,6 +966,12 @@ type DatabaseSummaryResult struct { ResultPrefix *string `json:"resultPrefix,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseSummaryResult. +func (dsr DatabaseSummaryResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseTable table properties type DatabaseTable struct { // HasRows - READ-ONLY; Indicates whether table is empty or not @@ -968,6 +980,12 @@ type DatabaseTable struct { Name *string `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseTable. +func (dt DatabaseTable) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DataIntegrityValidationResult results for checksum based Data Integrity validation results type DataIntegrityValidationResult struct { // FailedObjects - List of failed table names of source and target pair @@ -1010,6 +1028,12 @@ type DataItemMigrationSummaryResult struct { ResultPrefix *string `json:"resultPrefix,omitempty"` } +// MarshalJSON is the custom marshaler for DataItemMigrationSummaryResult. +func (dimsr DataItemMigrationSummaryResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Error migration Task errors type Error struct { // Message - READ-ONLY; Error description @@ -2373,6 +2397,12 @@ type MigrationEligibilityInfo struct { ValidationMessages *[]string `json:"validationMessages,omitempty"` } +// MarshalJSON is the custom marshaler for MigrationEligibilityInfo. +func (mei MigrationEligibilityInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MigrationReportResult migration validation report result, contains the url for downloading the generated // report. type MigrationReportResult struct { @@ -2390,6 +2420,12 @@ type MigrationTableMetadata struct { TargetTableName *string `json:"targetTableName,omitempty"` } +// MarshalJSON is the custom marshaler for MigrationTableMetadata. +func (mtm MigrationTableMetadata) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MigrationValidationDatabaseLevelResult database level validation results type MigrationValidationDatabaseLevelResult struct { // ID - READ-ONLY; Result identifier @@ -2414,6 +2450,12 @@ type MigrationValidationDatabaseLevelResult struct { Status ValidationStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for MigrationValidationDatabaseLevelResult. +func (mvdlr MigrationValidationDatabaseLevelResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MigrationValidationDatabaseSummaryResult migration Validation Database level summary result type MigrationValidationDatabaseSummaryResult struct { // ID - READ-ONLY; Result identifier @@ -2432,6 +2474,12 @@ type MigrationValidationDatabaseSummaryResult struct { Status ValidationStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for MigrationValidationDatabaseSummaryResult. +func (mvdsr MigrationValidationDatabaseSummaryResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MigrationValidationOptions types of validations to run after the migration type MigrationValidationOptions struct { // EnableSchemaValidation - Allows to compare the schema information between source and target. @@ -2772,6 +2820,12 @@ type ProjectMetadata struct { SelectedMigrationTables *[]MigrationTableMetadata `json:"selectedMigrationTables,omitempty"` } +// MarshalJSON is the custom marshaler for ProjectMetadata. +func (pm ProjectMetadata) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProjectProperties project-specific properties type ProjectProperties struct { // SourcePlatform - Source platform for the project. Possible values include: 'SQL', 'Unknown' @@ -3332,6 +3386,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSku describes an available DMS SKU. type ResourceSku struct { // ResourceType - READ-ONLY; The type of resource the SKU applies to. @@ -3360,6 +3420,12 @@ type ResourceSku struct { Restrictions *[]ResourceSkuRestrictions `json:"restrictions,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSku. +func (rs ResourceSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCapabilities describes The SKU capabilities object. type ResourceSkuCapabilities struct { // Name - READ-ONLY; An invariant to describe the feature. @@ -3368,6 +3434,12 @@ type ResourceSkuCapabilities struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapabilities. +func (rsc ResourceSkuCapabilities) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCapacity describes scaling information of a SKU. type ResourceSkuCapacity struct { // Minimum - READ-ONLY; The minimum capacity. @@ -3380,6 +3452,12 @@ type ResourceSkuCapacity struct { ScaleType ResourceSkuCapacityScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapacity. +func (rsc ResourceSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCosts describes metadata for retrieving price info. type ResourceSkuCosts struct { // MeterID - READ-ONLY; Used for querying price from commerce. @@ -3390,6 +3468,12 @@ type ResourceSkuCosts struct { ExtendedUnit *string `json:"extendedUnit,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCosts. +func (rsc ResourceSkuCosts) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuRestrictions describes scaling information of a SKU. type ResourceSkuRestrictions struct { // Type - READ-ONLY; The type of restrictions. Possible values include: 'Location' @@ -3400,6 +3484,12 @@ type ResourceSkuRestrictions struct { ReasonCode ResourceSkuRestrictionsReasonCode `json:"reasonCode,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuRestrictions. +func (rsr ResourceSkuRestrictions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkusResult the DMS List SKUs operation response. type ResourceSkusResult struct { autorest.Response `json:"-"` @@ -4569,6 +4659,12 @@ type StartMigrationScenarioServerRoleResult struct { ExceptionsAndWarnings *[]ReportableException `json:"exceptionsAndWarnings,omitempty"` } +// MarshalJSON is the custom marshaler for StartMigrationScenarioServerRoleResult. +func (smssrr StartMigrationScenarioServerRoleResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TaskList oData page of tasks type TaskList struct { autorest.Response `json:"-"` @@ -4784,6 +4880,12 @@ type ValidateMigrationInputSQLServerSQLMITaskOutput struct { BackupStorageAccountErrors *[]ReportableException `json:"backupStorageAccountErrors,omitempty"` } +// MarshalJSON is the custom marshaler for ValidateMigrationInputSQLServerSQLMITaskOutput. +func (vmisssmto ValidateMigrationInputSQLServerSQLMITaskOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ValidateMigrationInputSQLServerSQLMITaskProperties properties for task that validates migration input // for SQL to Azure SQL Database Managed Instance type ValidateMigrationInputSQLServerSQLMITaskProperties struct { diff --git a/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/CHANGELOG.md b/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/CHANGELOG.md index 52911e4cc5e4..a031c54c5b02 100644 --- a/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/CHANGELOG.md +++ b/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/CHANGELOG.md @@ -1,2 +1,41 @@ # Change History +## Additive Changes + +### New Funcs + +1. ConnectToSourceNonSQLTaskOutput.MarshalJSON() ([]byte, error) +1. ConnectToSourceOracleSyncTaskOutput.MarshalJSON() ([]byte, error) +1. ConnectToSourcePostgreSQLSyncTaskOutput.MarshalJSON() ([]byte, error) +1. ConnectToTargetAzureDbForMySQLTaskOutput.MarshalJSON() ([]byte, error) +1. ConnectToTargetAzureDbForPostgreSQLSyncTaskOutput.MarshalJSON() ([]byte, error) +1. ConnectToTargetSQLMISyncTaskOutput.MarshalJSON() ([]byte, error) +1. ConnectToTargetSQLMITaskOutput.MarshalJSON() ([]byte, error) +1. DataItemMigrationSummaryResult.MarshalJSON() ([]byte, error) +1. DatabaseBackupInfo.MarshalJSON() ([]byte, error) +1. DatabaseSummaryResult.MarshalJSON() ([]byte, error) +1. DatabaseTable.MarshalJSON() ([]byte, error) +1. GetUserTablesOracleTaskOutput.MarshalJSON() ([]byte, error) +1. GetUserTablesPostgreSQLTaskOutput.MarshalJSON() ([]byte, error) +1. InstallOCIDriverTaskOutput.MarshalJSON() ([]byte, error) +1. MigrateSyncCompleteCommandOutput.MarshalJSON() ([]byte, error) +1. MigrationEligibilityInfo.MarshalJSON() ([]byte, error) +1. MigrationTableMetadata.MarshalJSON() ([]byte, error) +1. MigrationValidationDatabaseLevelResult.MarshalJSON() ([]byte, error) +1. MigrationValidationDatabaseSummaryResult.MarshalJSON() ([]byte, error) +1. NonSQLDataMigrationTableResult.MarshalJSON() ([]byte, error) +1. OracleOCIDriverInfo.MarshalJSON() ([]byte, error) +1. ProjectMetadata.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ResourceSku.MarshalJSON() ([]byte, error) +1. ResourceSkuCapabilities.MarshalJSON() ([]byte, error) +1. ResourceSkuCapacity.MarshalJSON() ([]byte, error) +1. ResourceSkuCosts.MarshalJSON() ([]byte, error) +1. ResourceSkuRestrictions.MarshalJSON() ([]byte, error) +1. ServerProperties.MarshalJSON() ([]byte, error) +1. StartMigrationScenarioServerRoleResult.MarshalJSON() ([]byte, error) +1. SyncMigrationDatabaseErrorEvent.MarshalJSON() ([]byte, error) +1. UploadOCIDriverTaskOutput.MarshalJSON() ([]byte, error) +1. ValidateMigrationInputSQLServerSQLMISyncTaskOutput.MarshalJSON() ([]byte, error) +1. ValidateOracleAzureDbPostgreSQLSyncTaskOutput.MarshalJSON() ([]byte, error) +1. ValidateSyncMigrationInputSQLServerTaskOutput.MarshalJSON() ([]byte, error) diff --git a/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/_meta.json b/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/_meta.json index c114bf089f1e..f14d3c5e337d 100644 --- a/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/_meta.json +++ b/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/datamigration/resource-manager/readme.md", "tag": "package-2018-07-15-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-07-15-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datamigration/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-07-15-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datamigration/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/models.go b/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/models.go index 136bfe81618e..c12362de9328 100644 --- a/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/models.go +++ b/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/models.go @@ -1331,6 +1331,12 @@ type ConnectToSourceNonSQLTaskOutput struct { ValidationErrors *[]ReportableException `json:"validationErrors,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectToSourceNonSQLTaskOutput. +func (ctsnsto ConnectToSourceNonSQLTaskOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectToSourceOracleSyncTaskInput input for the task that validates Oracle database connection type ConnectToSourceOracleSyncTaskInput struct { // SourceConnectionInfo - Information for connecting to Oracle source @@ -1349,6 +1355,12 @@ type ConnectToSourceOracleSyncTaskOutput struct { ValidationErrors *[]ReportableException `json:"validationErrors,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectToSourceOracleSyncTaskOutput. +func (ctsosto ConnectToSourceOracleSyncTaskOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectToSourceOracleSyncTaskProperties properties for the task that validates Oracle database // connection type ConnectToSourceOracleSyncTaskProperties struct { @@ -1673,6 +1685,12 @@ type ConnectToSourcePostgreSQLSyncTaskOutput struct { ValidationErrors *[]ReportableException `json:"validationErrors,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectToSourcePostgreSQLSyncTaskOutput. +func (ctspssto ConnectToSourcePostgreSQLSyncTaskOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectToSourcePostgreSQLSyncTaskProperties properties for the task that validates connection to // PostgreSQL server and source server requirements for online migration type ConnectToSourcePostgreSQLSyncTaskProperties struct { @@ -2972,6 +2990,12 @@ type ConnectToTargetAzureDbForMySQLTaskOutput struct { ValidationErrors *[]ReportableException `json:"validationErrors,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectToTargetAzureDbForMySQLTaskOutput. +func (cttadfmsto ConnectToTargetAzureDbForMySQLTaskOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectToTargetAzureDbForMySQLTaskProperties properties for the task that validates connection to Azure // Database for MySQL and target server requirements type ConnectToTargetAzureDbForMySQLTaskProperties struct { @@ -3298,6 +3322,12 @@ type ConnectToTargetAzureDbForPostgreSQLSyncTaskOutput struct { ValidationErrors *[]ReportableException `json:"validationErrors,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectToTargetAzureDbForPostgreSQLSyncTaskOutput. +func (cttadfpssto ConnectToTargetAzureDbForPostgreSQLSyncTaskOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectToTargetAzureDbForPostgreSQLSyncTaskProperties properties for the task that validates connection // to Azure Database For PostgreSQL server and target server requirements for online migration type ConnectToTargetAzureDbForPostgreSQLSyncTaskProperties struct { @@ -4288,6 +4318,12 @@ type ConnectToTargetSQLMISyncTaskOutput struct { ValidationErrors *[]ReportableException `json:"validationErrors,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectToTargetSQLMISyncTaskOutput. +func (cttsmsto ConnectToTargetSQLMISyncTaskOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectToTargetSQLMISyncTaskProperties properties for the task that validates connection to Azure SQL // Database Managed Instance type ConnectToTargetSQLMISyncTaskProperties struct { @@ -4620,6 +4656,12 @@ type ConnectToTargetSQLMITaskOutput struct { ValidationErrors *[]ReportableException `json:"validationErrors,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectToTargetSQLMITaskOutput. +func (cttsmto ConnectToTargetSQLMITaskOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectToTargetSQLMITaskProperties properties for the task that validates connection to Azure SQL // Database Managed Instance type ConnectToTargetSQLMITaskProperties struct { @@ -5291,6 +5333,12 @@ type DatabaseBackupInfo struct { BackupFinishDate *date.Time `json:"backupFinishDate,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseBackupInfo. +func (dbi DatabaseBackupInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseFileInfo database file specific information type DatabaseFileInfo struct { // DatabaseName - Name of the database @@ -5374,6 +5422,12 @@ type DatabaseSummaryResult struct { ResultPrefix *string `json:"resultPrefix,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseSummaryResult. +func (dsr DatabaseSummaryResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseTable table properties type DatabaseTable struct { // HasRows - READ-ONLY; Indicates whether table is empty or not @@ -5382,6 +5436,12 @@ type DatabaseTable struct { Name *string `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseTable. +func (dt DatabaseTable) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DataIntegrityValidationResult results for checksum based Data Integrity validation results type DataIntegrityValidationResult struct { // FailedObjects - List of failed table names of source and target pair @@ -5424,6 +5484,12 @@ type DataItemMigrationSummaryResult struct { ResultPrefix *string `json:"resultPrefix,omitempty"` } +// MarshalJSON is the custom marshaler for DataItemMigrationSummaryResult. +func (dimsr DataItemMigrationSummaryResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Error migration Task errors type Error struct { // Message - READ-ONLY; Error description @@ -6024,6 +6090,12 @@ type GetUserTablesOracleTaskOutput struct { ValidationErrors *[]ReportableException `json:"validationErrors,omitempty"` } +// MarshalJSON is the custom marshaler for GetUserTablesOracleTaskOutput. +func (gutoto GetUserTablesOracleTaskOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GetUserTablesOracleTaskProperties properties for the task that collects user tables for the given list // of Oracle schemas type GetUserTablesOracleTaskProperties struct { @@ -6346,6 +6418,12 @@ type GetUserTablesPostgreSQLTaskOutput struct { ValidationErrors *[]ReportableException `json:"validationErrors,omitempty"` } +// MarshalJSON is the custom marshaler for GetUserTablesPostgreSQLTaskOutput. +func (gutpsto GetUserTablesPostgreSQLTaskOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GetUserTablesPostgreSQLTaskProperties properties for the task that collects user tables for the given // list of databases type GetUserTablesPostgreSQLTaskProperties struct { @@ -7320,6 +7398,12 @@ type InstallOCIDriverTaskOutput struct { ValidationErrors *[]ReportableException `json:"validationErrors,omitempty"` } +// MarshalJSON is the custom marshaler for InstallOCIDriverTaskOutput. +func (iodto InstallOCIDriverTaskOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InstallOCIDriverTaskProperties properties for the task that installs an OCI driver. type InstallOCIDriverTaskProperties struct { Input *InstallOCIDriverTaskInput `json:"input,omitempty"` @@ -14618,6 +14702,12 @@ type MigrateSyncCompleteCommandOutput struct { Errors *[]ReportableException `json:"errors,omitempty"` } +// MarshalJSON is the custom marshaler for MigrateSyncCompleteCommandOutput. +func (mscco MigrateSyncCompleteCommandOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MigrateSyncCompleteCommandProperties properties for the command that completes sync migration for a // database. type MigrateSyncCompleteCommandProperties struct { @@ -14689,6 +14779,12 @@ type MigrationEligibilityInfo struct { ValidationMessages *[]string `json:"validationMessages,omitempty"` } +// MarshalJSON is the custom marshaler for MigrationEligibilityInfo. +func (mei MigrationEligibilityInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MigrationReportResult migration validation report result, contains the url for downloading the generated // report. type MigrationReportResult struct { @@ -14706,6 +14802,12 @@ type MigrationTableMetadata struct { TargetTableName *string `json:"targetTableName,omitempty"` } +// MarshalJSON is the custom marshaler for MigrationTableMetadata. +func (mtm MigrationTableMetadata) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MigrationValidationDatabaseLevelResult database level validation results type MigrationValidationDatabaseLevelResult struct { // ID - READ-ONLY; Result identifier @@ -14730,6 +14832,12 @@ type MigrationValidationDatabaseLevelResult struct { Status ValidationStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for MigrationValidationDatabaseLevelResult. +func (mvdlr MigrationValidationDatabaseLevelResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MigrationValidationDatabaseSummaryResult migration Validation Database level summary result type MigrationValidationDatabaseSummaryResult struct { // ID - READ-ONLY; Result identifier @@ -14748,6 +14856,12 @@ type MigrationValidationDatabaseSummaryResult struct { Status ValidationStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for MigrationValidationDatabaseSummaryResult. +func (mvdsr MigrationValidationDatabaseSummaryResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MigrationValidationOptions types of validations to run after the migration type MigrationValidationOptions struct { // EnableSchemaValidation - Allows to compare the schema information between source and target. @@ -15908,6 +16022,12 @@ type NonSQLDataMigrationTableResult struct { Errors *[]Error `json:"errors,omitempty"` } +// MarshalJSON is the custom marshaler for NonSQLDataMigrationTableResult. +func (nsdmtr NonSQLDataMigrationTableResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NonSQLMigrationTaskInput base class for non sql migration task input type NonSQLMigrationTaskInput struct { // TargetConnectionInfo - Information for connecting to target @@ -16045,6 +16165,12 @@ type OracleOCIDriverInfo struct { SupportedOracleVersions *[]string `json:"supportedOracleVersions,omitempty"` } +// MarshalJSON is the custom marshaler for OracleOCIDriverInfo. +func (oodi OracleOCIDriverInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OrphanedUserInfo information of orphaned users on the SQL server database. type OrphanedUserInfo struct { // Name - Name of the orphaned user @@ -16480,6 +16606,12 @@ type ProjectMetadata struct { SelectedMigrationTables *[]MigrationTableMetadata `json:"selectedMigrationTables,omitempty"` } +// MarshalJSON is the custom marshaler for ProjectMetadata. +func (pm ProjectMetadata) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProjectProperties project-specific properties type ProjectProperties struct { // SourcePlatform - Source platform for the project. Possible values include: 'ProjectSourcePlatformSQL', 'ProjectSourcePlatformMySQL', 'ProjectSourcePlatformPostgreSQL', 'ProjectSourcePlatformMongoDb', 'ProjectSourcePlatformUnknown' @@ -17398,6 +17530,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSku describes an available DMS SKU. type ResourceSku struct { // ResourceType - READ-ONLY; The type of resource the SKU applies to. @@ -17426,6 +17564,12 @@ type ResourceSku struct { Restrictions *[]ResourceSkuRestrictions `json:"restrictions,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSku. +func (rs ResourceSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCapabilities describes The SKU capabilities object. type ResourceSkuCapabilities struct { // Name - READ-ONLY; An invariant to describe the feature. @@ -17434,6 +17578,12 @@ type ResourceSkuCapabilities struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapabilities. +func (rsc ResourceSkuCapabilities) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCapacity describes scaling information of a SKU. type ResourceSkuCapacity struct { // Minimum - READ-ONLY; The minimum capacity. @@ -17446,6 +17596,12 @@ type ResourceSkuCapacity struct { ScaleType ResourceSkuCapacityScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCapacity. +func (rsc ResourceSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuCosts describes metadata for retrieving price info. type ResourceSkuCosts struct { // MeterID - READ-ONLY; Used for querying price from commerce. @@ -17456,6 +17612,12 @@ type ResourceSkuCosts struct { ExtendedUnit *string `json:"extendedUnit,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuCosts. +func (rsc ResourceSkuCosts) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuRestrictions describes scaling information of a SKU. type ResourceSkuRestrictions struct { // Type - READ-ONLY; The type of restrictions. Possible values include: 'Location' @@ -17466,6 +17628,12 @@ type ResourceSkuRestrictions struct { ReasonCode ResourceSkuRestrictionsReasonCode `json:"reasonCode,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuRestrictions. +func (rsr ResourceSkuRestrictions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkusResult the DMS List SKUs operation response. type ResourceSkusResult struct { autorest.Response `json:"-"` @@ -17698,6 +17866,12 @@ type ServerProperties struct { ServerDatabaseCount *int32 `json:"serverDatabaseCount,omitempty"` } +// MarshalJSON is the custom marshaler for ServerProperties. +func (sp ServerProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Service a Database Migration Service resource type Service struct { autorest.Response `json:"-"` @@ -18729,6 +18903,12 @@ type StartMigrationScenarioServerRoleResult struct { ExceptionsAndWarnings *[]ReportableException `json:"exceptionsAndWarnings,omitempty"` } +// MarshalJSON is the custom marshaler for StartMigrationScenarioServerRoleResult. +func (smssrr StartMigrationScenarioServerRoleResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncMigrationDatabaseErrorEvent database migration errors for online migration type SyncMigrationDatabaseErrorEvent struct { // TimestampString - READ-ONLY; String value of timestamp. @@ -18739,6 +18919,12 @@ type SyncMigrationDatabaseErrorEvent struct { EventText *string `json:"eventText,omitempty"` } +// MarshalJSON is the custom marshaler for SyncMigrationDatabaseErrorEvent. +func (smdee SyncMigrationDatabaseErrorEvent) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TaskList oData page of tasks type TaskList struct { autorest.Response `json:"-"` @@ -18938,6 +19124,12 @@ type UploadOCIDriverTaskOutput struct { ValidationErrors *[]ReportableException `json:"validationErrors,omitempty"` } +// MarshalJSON is the custom marshaler for UploadOCIDriverTaskOutput. +func (uodto UploadOCIDriverTaskOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UploadOCIDriverTaskProperties properties for the task that uploads an OCI driver. type UploadOCIDriverTaskProperties struct { Input *UploadOCIDriverTaskInput `json:"input,omitempty"` @@ -19568,6 +19760,12 @@ type ValidateMigrationInputSQLServerSQLMISyncTaskOutput struct { ValidationErrors *[]ReportableException `json:"validationErrors,omitempty"` } +// MarshalJSON is the custom marshaler for ValidateMigrationInputSQLServerSQLMISyncTaskOutput. +func (vmisssmsto ValidateMigrationInputSQLServerSQLMISyncTaskOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ValidateMigrationInputSQLServerSQLMISyncTaskProperties properties for task that validates migration // input for SQL to Azure SQL Database Managed Instance sync scenario type ValidateMigrationInputSQLServerSQLMISyncTaskProperties struct { @@ -20830,6 +21028,12 @@ type ValidateOracleAzureDbPostgreSQLSyncTaskOutput struct { ValidationErrors *[]ReportableException `json:"validationErrors,omitempty"` } +// MarshalJSON is the custom marshaler for ValidateOracleAzureDbPostgreSQLSyncTaskOutput. +func (voadpssto ValidateOracleAzureDbPostgreSQLSyncTaskOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ValidateSyncMigrationInputSQLServerTaskInput input for task that validates migration input for SQL sync // migrations type ValidateSyncMigrationInputSQLServerTaskInput struct { @@ -20852,6 +21056,12 @@ type ValidateSyncMigrationInputSQLServerTaskOutput struct { ValidationErrors *[]ReportableException `json:"validationErrors,omitempty"` } +// MarshalJSON is the custom marshaler for ValidateSyncMigrationInputSQLServerTaskOutput. +func (vsmissto ValidateSyncMigrationInputSQLServerTaskOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ValidationError description about the errors happen while performing migration validation type ValidationError struct { // Text - Error Text diff --git a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/CHANGELOG.md b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/CHANGELOG.md index 52911e4cc5e4..00993a7a48d6 100644 --- a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/CHANGELOG.md +++ b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountProperties.MarshalJSON() ([]byte, error) +1. ConsumerSourceDataSetProperties.MarshalJSON() ([]byte, error) +1. ProviderShareSubscriptionProperties.MarshalJSON() ([]byte, error) +1. ProxyDto.MarshalJSON() ([]byte, error) +1. SynchronizationDetails.MarshalJSON() ([]byte, error) diff --git a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/_meta.json b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/_meta.json index ba6994a676bb..e7e3c6b1887e 100644 --- a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/_meta.json +++ b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/datashare/resource-manager/readme.md", "tag": "package-2018-11-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-11-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datashare/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-11-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datashare/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/models.go b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/models.go index d4f77187aab3..dfd633466ddd 100644 --- a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/models.go +++ b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/models.go @@ -306,6 +306,12 @@ type AccountProperties struct { UserName *string `json:"userName,omitempty"` } +// MarshalJSON is the custom marshaler for AccountProperties. +func (ap AccountProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountsCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type AccountsCreateFuture struct { @@ -3608,6 +3614,12 @@ type ConsumerSourceDataSetProperties struct { DataSetType DataSetType `json:"dataSetType,omitempty"` } +// MarshalJSON is the custom marshaler for ConsumerSourceDataSetProperties. +func (csdsp ConsumerSourceDataSetProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicDataSet a DataSet data transfer object. type BasicDataSet interface { AsADLSGen1FileDataSet() (*ADLSGen1FileDataSet, bool) @@ -6037,6 +6049,12 @@ type ProviderShareSubscriptionProperties struct { ShareSubscriptionStatus ShareSubscriptionStatus `json:"shareSubscriptionStatus,omitempty"` } +// MarshalJSON is the custom marshaler for ProviderShareSubscriptionProperties. +func (pssp ProviderShareSubscriptionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProviderShareSubscriptionsRevokeFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type ProviderShareSubscriptionsRevokeFuture struct { @@ -6090,6 +6108,12 @@ type ProxyDto struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyDto. +func (pd ProxyDto) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ScheduledSourceShareSynchronizationSettingProperties a Scheduled source synchronization setting data // transfer object. type ScheduledSourceShareSynchronizationSettingProperties struct { @@ -8593,6 +8617,12 @@ type SynchronizationDetails struct { VCore *int64 `json:"vCore,omitempty"` } +// MarshalJSON is the custom marshaler for SynchronizationDetails. +func (sd SynchronizationDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SynchronizationDetailsList details of synchronization type SynchronizationDetailsList struct { autorest.Response `json:"-"` diff --git a/services/preview/delegatednetwork/mgmt/2020-08-08-preview/delegatednetwork/CHANGELOG.md b/services/preview/delegatednetwork/mgmt/2020-08-08-preview/delegatednetwork/CHANGELOG.md index 52911e4cc5e4..299dd600ea85 100644 --- a/services/preview/delegatednetwork/mgmt/2020-08-08-preview/delegatednetwork/CHANGELOG.md +++ b/services/preview/delegatednetwork/mgmt/2020-08-08-preview/delegatednetwork/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. DelegatedControllerProperties.MarshalJSON() ([]byte, error) +1. ErrorDefinition.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) diff --git a/services/preview/delegatednetwork/mgmt/2020-08-08-preview/delegatednetwork/_meta.json b/services/preview/delegatednetwork/mgmt/2020-08-08-preview/delegatednetwork/_meta.json index c00e07ed2e28..9cb1bb2efee4 100644 --- a/services/preview/delegatednetwork/mgmt/2020-08-08-preview/delegatednetwork/_meta.json +++ b/services/preview/delegatednetwork/mgmt/2020-08-08-preview/delegatednetwork/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/dnc/resource-manager/readme.md", "tag": "package-2020-08-08-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-08-08-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/dnc/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-08-08-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/dnc/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/delegatednetwork/mgmt/2020-08-08-preview/delegatednetwork/models.go b/services/preview/delegatednetwork/mgmt/2020-08-08-preview/delegatednetwork/models.go index 309b54263681..9f8beab8b5d8 100644 --- a/services/preview/delegatednetwork/mgmt/2020-08-08-preview/delegatednetwork/models.go +++ b/services/preview/delegatednetwork/mgmt/2020-08-08-preview/delegatednetwork/models.go @@ -264,6 +264,12 @@ type DelegatedControllerProperties struct { DncEndpoint *string `json:"dncEndpoint,omitempty"` } +// MarshalJSON is the custom marshaler for DelegatedControllerProperties. +func (dcp DelegatedControllerProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DelegatedControllers an array of Delegated controller resources. type DelegatedControllers struct { autorest.Response `json:"-"` @@ -881,6 +887,12 @@ type ErrorDefinition struct { Details *[]ErrorDefinition `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDefinition. +func (ed ErrorDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse error response. type ErrorResponse struct { // Error - Error description @@ -931,6 +943,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (od OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of request to list controller operations.It contains a list of operations and // a URL link to get the next set of results type OperationListResult struct { diff --git a/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/CHANGELOG.md b/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/CHANGELOG.md index 52911e4cc5e4..540dae1008de 100644 --- a/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/CHANGELOG.md +++ b/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. Message.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. RolloutOperationInfo.MarshalJSON() ([]byte, error) +1. RolloutPropertiesModel.MarshalJSON() ([]byte, error) diff --git a/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/_meta.json b/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/_meta.json index 9f21e0986045..8f1e41b5242a 100644 --- a/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/_meta.json +++ b/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/deploymentmanager/resource-manager/readme.md", "tag": "package-2018-09-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-09-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/deploymentmanager/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-09-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/deploymentmanager/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/models.go b/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/models.go index ae5c8d087d0f..531891e5fcc2 100644 --- a/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/models.go +++ b/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager/models.go @@ -308,6 +308,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError the error information object. type CloudError struct { // Error - The properties that define the error. @@ -360,6 +366,12 @@ type Message struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for Message. +func (mVar Message) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation represents an operation that can be performed on the service. type Operation struct { // Name - The name of the operation. @@ -401,6 +413,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -411,6 +429,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceOperation individual resource operation information. type ResourceOperation struct { // ResourceName - Name of the resource as specified in the artifacts. For ARM resources, this is the name of the resource specified in the template. @@ -568,6 +592,12 @@ type RolloutOperationInfo struct { Error *CloudErrorBody `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for RolloutOperationInfo. +func (roi RolloutOperationInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RolloutProperties the properties that define a rollout. type RolloutProperties struct { // BuildVersion - The version of the build being deployed. @@ -618,6 +648,12 @@ type RolloutPropertiesModel struct { Services *[]Service `json:"services,omitempty"` } +// MarshalJSON is the custom marshaler for RolloutPropertiesModel. +func (rpm RolloutPropertiesModel) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RolloutRequest defines the PUT rollout request body. type RolloutRequest struct { autorest.Response `json:"-"` diff --git a/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/CHANGELOG.md b/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/CHANGELOG.md index 52911e4cc5e4..540dae1008de 100644 --- a/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/CHANGELOG.md +++ b/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. Message.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. RolloutOperationInfo.MarshalJSON() ([]byte, error) +1. RolloutPropertiesModel.MarshalJSON() ([]byte, error) diff --git a/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/_meta.json b/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/_meta.json index 7d83aa6df59d..8db2200c3d12 100644 --- a/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/_meta.json +++ b/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/deploymentmanager/resource-manager/readme.md", "tag": "package-2019-11-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-11-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/deploymentmanager/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-11-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/deploymentmanager/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/models.go b/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/models.go index dd01c5f97228..5c53c631e417 100644 --- a/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/models.go +++ b/services/preview/deploymentmanager/mgmt/2019-11-01-preview/deploymentmanager/models.go @@ -360,6 +360,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError the error information object. type CloudError struct { // Error - The properties that define the error. @@ -602,6 +608,12 @@ type Message struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for Message. +func (mVar Message) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation represents an operation that can be performed on the service. type Operation struct { // Name - The name of the operation. @@ -650,6 +662,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -660,6 +678,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceOperation individual resource operation information. type ResourceOperation struct { // ResourceName - Name of the resource as specified in the artifacts. For ARM resources, this is the name of the resource specified in the template. @@ -1134,6 +1158,12 @@ type RolloutOperationInfo struct { Error *CloudErrorBody `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for RolloutOperationInfo. +func (roi RolloutOperationInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RolloutProperties the properties that define a rollout. type RolloutProperties struct { // BuildVersion - The version of the build being deployed. @@ -1184,6 +1214,12 @@ type RolloutPropertiesModel struct { Services *[]Service `json:"services,omitempty"` } +// MarshalJSON is the custom marshaler for RolloutPropertiesModel. +func (rpm RolloutPropertiesModel) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RolloutRequest defines the PUT rollout request body. type RolloutRequest struct { autorest.Response `json:"-"` diff --git a/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/CHANGELOG.md b/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/CHANGELOG.md index 52911e4cc5e4..4a0e9bec8e2f 100644 --- a/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/CHANGELOG.md +++ b/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/_meta.json b/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/_meta.json index 08b365052eed..052f78b75e19 100644 --- a/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/_meta.json +++ b/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/desktopvirtualization/resource-manager/readme.md", "tag": "package-2019-01-23-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-01-23-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/desktopvirtualization/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-01-23-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/desktopvirtualization/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/models.go b/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/models.go index 85bee8143d3e..32e309599e34 100644 --- a/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/models.go +++ b/services/preview/desktopvirtualization/mgmt/2019-01-23-preview/desktopvirtualization/models.go @@ -794,6 +794,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError error response of an operation failure type CloudError struct { // Code - Error code @@ -1447,6 +1453,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegistrationInfo represents a RegistrationInfo definition. type RegistrationInfo struct { // ExpirationTime - Expiration time of registration token. @@ -1473,6 +1485,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceProviderOperation supported operation of this resource provider. type ResourceProviderOperation struct { // Name - Operation name, in format of {provider}/{resource}/{operation} diff --git a/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/CHANGELOG.md b/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/CHANGELOG.md index 52911e4cc5e4..4a0e9bec8e2f 100644 --- a/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/CHANGELOG.md +++ b/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/_meta.json b/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/_meta.json index a0120edd0f8b..be4eaa6689af 100644 --- a/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/_meta.json +++ b/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/desktopvirtualization/resource-manager/readme.md", "tag": "package-2019-09-24-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-09-24-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/desktopvirtualization/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-09-24-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/desktopvirtualization/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/models.go b/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/models.go index ac19943e5555..811018c1b536 100644 --- a/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/models.go +++ b/services/preview/desktopvirtualization/mgmt/2019-09-24-preview/desktopvirtualization/models.go @@ -794,6 +794,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError error response of an operation failure type CloudError struct { // Code - Error code @@ -1447,6 +1453,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegistrationInfo represents a RegistrationInfo definition. type RegistrationInfo struct { // ExpirationTime - Expiration time of registration token. @@ -1473,6 +1485,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceProviderOperation supported operation of this resource provider. type ResourceProviderOperation struct { // Name - Operation name, in format of {provider}/{resource}/{operation} diff --git a/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/CHANGELOG.md b/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/CHANGELOG.md index 52911e4cc5e4..4a0e9bec8e2f 100644 --- a/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/CHANGELOG.md +++ b/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/_meta.json b/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/_meta.json index 99ce008c39e1..02f49372f54d 100644 --- a/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/_meta.json +++ b/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/desktopvirtualization/resource-manager/readme.md", "tag": "package-2019-12-10-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-12-10-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/desktopvirtualization/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-12-10-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/desktopvirtualization/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/models.go b/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/models.go index e4f1b0c40408..dd9aeb7a3a4f 100644 --- a/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/models.go +++ b/services/preview/desktopvirtualization/mgmt/2019-12-10-preview/desktopvirtualization/models.go @@ -794,6 +794,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError error response of an operation failure type CloudError struct { // Code - Error code @@ -1449,6 +1455,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegistrationInfo represents a RegistrationInfo definition. type RegistrationInfo struct { // ExpirationTime - Expiration time of registration token. @@ -1477,6 +1489,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceProviderOperation supported operation of this resource provider. type ResourceProviderOperation struct { // Name - Operation name, in format of {provider}/{resource}/{operation} diff --git a/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/CHANGELOG.md b/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/CHANGELOG.md index 52911e4cc5e4..4a0e9bec8e2f 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/CHANGELOG.md +++ b/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/_meta.json b/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/_meta.json index f9a49d08b0f6..87167aa4095c 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/_meta.json +++ b/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/desktopvirtualization/resource-manager/readme.md", "tag": "package-2020-09-21-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-09-21-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/desktopvirtualization/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-09-21-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/desktopvirtualization/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/models.go b/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/models.go index 59f7b7730ed8..656ae4b7adc4 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/models.go +++ b/services/preview/desktopvirtualization/mgmt/2020-09-21-preview/desktopvirtualization/models.go @@ -815,6 +815,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError ... type CloudError struct { Error *CloudErrorProperties `json:"error,omitempty"` @@ -2126,6 +2132,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegistrationInfo represents a RegistrationInfo definition. type RegistrationInfo struct { // ExpirationTime - Expiration time of registration token. @@ -2154,6 +2166,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceProviderOperation supported operation of this resource provider. type ResourceProviderOperation struct { // Name - Operation name, in format of {provider}/{resource}/{operation} diff --git a/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/CHANGELOG.md b/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/CHANGELOG.md index 52911e4cc5e4..4a0e9bec8e2f 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/CHANGELOG.md +++ b/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/_meta.json b/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/_meta.json index f3c568a24358..248b00661ba0 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/_meta.json +++ b/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/desktopvirtualization/resource-manager/readme.md", "tag": "package-2020-10-19-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-10-19-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/desktopvirtualization/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-10-19-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/desktopvirtualization/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/models.go b/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/models.go index 8281a9af96f0..88978ee46e84 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/models.go +++ b/services/preview/desktopvirtualization/mgmt/2020-10-19-preview/desktopvirtualization/models.go @@ -815,6 +815,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError ... type CloudError struct { Error *CloudErrorProperties `json:"error,omitempty"` @@ -2156,6 +2162,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegistrationInfo represents a RegistrationInfo definition. type RegistrationInfo struct { // ExpirationTime - Expiration time of registration token. @@ -2184,6 +2196,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceProviderOperation supported operation of this resource provider. type ResourceProviderOperation struct { // Name - Operation name, in format of {provider}/{resource}/{operation} diff --git a/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/CHANGELOG.md b/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/CHANGELOG.md index 52911e4cc5e4..4a0e9bec8e2f 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/CHANGELOG.md +++ b/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/_meta.json b/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/_meta.json index 31bc25d84a5e..fd608ce05bc4 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/_meta.json +++ b/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/desktopvirtualization/resource-manager/readme.md", "tag": "package-2020-11-02-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-11-02-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/desktopvirtualization/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-11-02-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/desktopvirtualization/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/models.go b/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/models.go index d98cf4731dc3..8b3cca1ab142 100644 --- a/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/models.go +++ b/services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/models.go @@ -815,6 +815,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError ... type CloudError struct { Error *CloudErrorProperties `json:"error,omitempty"` @@ -2163,6 +2169,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegistrationInfo represents a RegistrationInfo definition. type RegistrationInfo struct { // ExpirationTime - Expiration time of registration token. @@ -2191,6 +2203,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceProviderOperation supported operation of this resource provider. type ResourceProviderOperation struct { // Name - Operation name, in format of {provider}/{resource}/{operation} diff --git a/services/preview/deviceupdate/mgmt/2020-03-01-preview/deviceupdate/CHANGELOG.md b/services/preview/deviceupdate/mgmt/2020-03-01-preview/deviceupdate/CHANGELOG.md index 52911e4cc5e4..7ec4be3026e5 100644 --- a/services/preview/deviceupdate/mgmt/2020-03-01-preview/deviceupdate/CHANGELOG.md +++ b/services/preview/deviceupdate/mgmt/2020-03-01-preview/deviceupdate/CHANGELOG.md @@ -1,2 +1,15 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountProperties.MarshalJSON() ([]byte, error) +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorDefinition.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/deviceupdate/mgmt/2020-03-01-preview/deviceupdate/_meta.json b/services/preview/deviceupdate/mgmt/2020-03-01-preview/deviceupdate/_meta.json index ac512f6fe14b..76ae06ee1e06 100644 --- a/services/preview/deviceupdate/mgmt/2020-03-01-preview/deviceupdate/_meta.json +++ b/services/preview/deviceupdate/mgmt/2020-03-01-preview/deviceupdate/_meta.json @@ -2,9 +2,9 @@ "commit": "0f0e41fa4e3679510fcf03ecd60084f1cdbd5805", "readme": "/_/azure-rest-api-specs/specification/deviceupdate/resource-manager/readme.md", "tag": "package-2020-03-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-03-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/deviceupdate/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-03-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/deviceupdate/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/deviceupdate/mgmt/2020-03-01-preview/deviceupdate/models.go b/services/preview/deviceupdate/mgmt/2020-03-01-preview/deviceupdate/models.go index 2604789bf49a..4b1d5dd9005d 100644 --- a/services/preview/deviceupdate/mgmt/2020-03-01-preview/deviceupdate/models.go +++ b/services/preview/deviceupdate/mgmt/2020-03-01-preview/deviceupdate/models.go @@ -287,6 +287,12 @@ type AccountProperties struct { HostName *string `json:"hostName,omitempty"` } +// MarshalJSON is the custom marshaler for AccountProperties. +func (a AccountProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountsCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type AccountsCreateFuture struct { @@ -442,6 +448,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorAdditionalInfo the resource management error additional info. type ErrorAdditionalInfo struct { // Type - READ-ONLY; The additional info type. @@ -450,12 +462,24 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDefinition error response indicates that the service is not able to process the incoming request. type ErrorDefinition struct { // Error - READ-ONLY; Error details. Error *ErrorResponse `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDefinition. +func (ed ErrorDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.) type ErrorResponse struct { @@ -471,6 +495,12 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Instance device Update instance details. type Instance struct { autorest.Response `json:"-"` @@ -875,6 +905,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult a list of REST API operations supported by an Azure Resource Provider. It contains // an URL link to get the next set of results. type OperationListResult struct { @@ -885,6 +921,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -1046,6 +1088,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -1056,6 +1104,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TagUpdate request payload used to update an existing resource's tags. type TagUpdate struct { // Tags - List of key value pairs that describe the resource. This will overwrite the existing tags. diff --git a/services/preview/devops/mgmt/2019-07-01-preview/devops/CHANGELOG.md b/services/preview/devops/mgmt/2019-07-01-preview/devops/CHANGELOG.md index 52911e4cc5e4..1ebf75dd82d8 100644 --- a/services/preview/devops/mgmt/2019-07-01-preview/devops/CHANGELOG.md +++ b/services/preview/devops/mgmt/2019-07-01-preview/devops/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. OperationDisplayValue.MarshalJSON() ([]byte, error) diff --git a/services/preview/devops/mgmt/2019-07-01-preview/devops/_meta.json b/services/preview/devops/mgmt/2019-07-01-preview/devops/_meta.json index 6deaf89ecacc..3f1e036336bf 100644 --- a/services/preview/devops/mgmt/2019-07-01-preview/devops/_meta.json +++ b/services/preview/devops/mgmt/2019-07-01-preview/devops/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/devops/resource-manager/readme.md", "tag": "package-2019-07-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-07-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/devops/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-07-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/devops/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/devops/mgmt/2019-07-01-preview/devops/models.go b/services/preview/devops/mgmt/2019-07-01-preview/devops/models.go index 72cb693c938b..3362f35fad22 100644 --- a/services/preview/devops/mgmt/2019-07-01-preview/devops/models.go +++ b/services/preview/devops/mgmt/2019-07-01-preview/devops/models.go @@ -196,6 +196,12 @@ type OperationDisplayValue struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplayValue. +func (odv OperationDisplayValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of a request to list all operations supported by Microsoft.DevOps resource // provider. type OperationListResult struct { diff --git a/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/_meta.json b/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/_meta.json index 12d909c42c8a..38c70428df12 100644 --- a/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/_meta.json +++ b/services/preview/devtestlabs/mgmt/2015-05-21-preview/dtl/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/devtestlabs/resource-manager/readme.md", "tag": "package-2015-05-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2015-05-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/devtestlabs/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2015-05-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/devtestlabs/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/digitaltwins/2020-05-31-preview/digitaltwins/_meta.json b/services/preview/digitaltwins/2020-05-31-preview/digitaltwins/_meta.json index ab60efaaf29d..e08e5659d66f 100644 --- a/services/preview/digitaltwins/2020-05-31-preview/digitaltwins/_meta.json +++ b/services/preview/digitaltwins/2020-05-31-preview/digitaltwins/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/digitaltwins/data-plane/readme.md", "tag": "package-2020-05-31-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-05-31-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/digitaltwins/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-05-31-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/digitaltwins/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/digitaltwins/mgmt/2020-03-01-preview/digitaltwins/CHANGELOG.md b/services/preview/digitaltwins/mgmt/2020-03-01-preview/digitaltwins/CHANGELOG.md index 52911e4cc5e4..936e5f61ec88 100644 --- a/services/preview/digitaltwins/mgmt/2020-03-01-preview/digitaltwins/CHANGELOG.md +++ b/services/preview/digitaltwins/mgmt/2020-03-01-preview/digitaltwins/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. ErrorDefinition.MarshalJSON() ([]byte, error) +1. ExternalResource.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. Properties.MarshalJSON() ([]byte, error) diff --git a/services/preview/digitaltwins/mgmt/2020-03-01-preview/digitaltwins/_meta.json b/services/preview/digitaltwins/mgmt/2020-03-01-preview/digitaltwins/_meta.json index 5276edc2bebb..035060c74691 100644 --- a/services/preview/digitaltwins/mgmt/2020-03-01-preview/digitaltwins/_meta.json +++ b/services/preview/digitaltwins/mgmt/2020-03-01-preview/digitaltwins/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/digitaltwins/resource-manager/readme.md", "tag": "package-2020-03-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-03-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/digitaltwins/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-03-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/digitaltwins/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/digitaltwins/mgmt/2020-03-01-preview/digitaltwins/models.go b/services/preview/digitaltwins/mgmt/2020-03-01-preview/digitaltwins/models.go index ae1ddeeb602a..1329e0b4975b 100644 --- a/services/preview/digitaltwins/mgmt/2020-03-01-preview/digitaltwins/models.go +++ b/services/preview/digitaltwins/mgmt/2020-03-01-preview/digitaltwins/models.go @@ -828,6 +828,12 @@ type ErrorDefinition struct { Details *[]ErrorDefinition `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDefinition. +func (ed ErrorDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse error response. type ErrorResponse struct { // Error - Error description @@ -969,6 +975,12 @@ type ExternalResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ExternalResource. +func (er ExternalResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation digitalTwins service REST API operation type Operation struct { // Name - READ-ONLY; Operation name: {provider}/{resource}/{read | write | action | delete} @@ -998,6 +1010,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (od OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult a list of DigitalTwins service operations. It contains a list of operations and a // URL link to get the next set of results. type OperationListResult struct { @@ -1194,6 +1212,12 @@ type Properties struct { HostName *string `json:"hostName,omitempty"` } +// MarshalJSON is the custom marshaler for Properties. +func (p Properties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource the common properties of a DigitalTwinsInstance. type Resource struct { // ID - READ-ONLY; The resource identifier. diff --git a/services/preview/dns/mgmt/2015-05-04-preview/dns/CHANGELOG.md b/services/preview/dns/mgmt/2015-05-04-preview/dns/CHANGELOG.md index 52911e4cc5e4..4a0e9bec8e2f 100644 --- a/services/preview/dns/mgmt/2015-05-04-preview/dns/CHANGELOG.md +++ b/services/preview/dns/mgmt/2015-05-04-preview/dns/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/dns/mgmt/2015-05-04-preview/dns/_meta.json b/services/preview/dns/mgmt/2015-05-04-preview/dns/_meta.json index 730eee2ac9e0..5f67678f042e 100644 --- a/services/preview/dns/mgmt/2015-05-04-preview/dns/_meta.json +++ b/services/preview/dns/mgmt/2015-05-04-preview/dns/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/dns/resource-manager/readme.md", "tag": "package-2015-05-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2015-05-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/dns/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2015-05-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/dns/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/dns/mgmt/2015-05-04-preview/dns/models.go b/services/preview/dns/mgmt/2015-05-04-preview/dns/models.go index 896d3383377d..57487777640a 100644 --- a/services/preview/dns/mgmt/2015-05-04-preview/dns/models.go +++ b/services/preview/dns/mgmt/2015-05-04-preview/dns/models.go @@ -42,6 +42,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CnameRecord a CNAME record. type CnameRecord struct { // Cname - Gets or sets the canonical name for this record without a terminating dot. @@ -73,6 +79,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PtrRecord a PTR record. type PtrRecord struct { // Ptrdname - Gets or sets the PTR target domain name for this record without a terminating dot. @@ -309,6 +321,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SoaRecord an SOA record. type SoaRecord struct { // Host - Gets or sets the domain name of the authoritative name server, without a terminating dot. diff --git a/services/preview/dns/mgmt/2018-03-01-preview/dns/CHANGELOG.md b/services/preview/dns/mgmt/2018-03-01-preview/dns/CHANGELOG.md index 52911e4cc5e4..4a0e9bec8e2f 100644 --- a/services/preview/dns/mgmt/2018-03-01-preview/dns/CHANGELOG.md +++ b/services/preview/dns/mgmt/2018-03-01-preview/dns/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/dns/mgmt/2018-03-01-preview/dns/_meta.json b/services/preview/dns/mgmt/2018-03-01-preview/dns/_meta.json index 2ea82ee4e49b..4d65c40981ae 100644 --- a/services/preview/dns/mgmt/2018-03-01-preview/dns/_meta.json +++ b/services/preview/dns/mgmt/2018-03-01-preview/dns/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/dns/resource-manager/readme.md", "tag": "package-2018-03-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-03-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/dns/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-03-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/dns/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/dns/mgmt/2018-03-01-preview/dns/models.go b/services/preview/dns/mgmt/2018-03-01-preview/dns/models.go index e1c51b6265b3..54e542d73dd1 100644 --- a/services/preview/dns/mgmt/2018-03-01-preview/dns/models.go +++ b/services/preview/dns/mgmt/2018-03-01-preview/dns/models.go @@ -43,6 +43,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CaaRecord a CAA record. type CaaRecord struct { // Flags - The flags for this CAA record as an integer between 0 and 255. @@ -102,6 +108,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PtrRecord a PTR record. type PtrRecord struct { // Ptrdname - The PTR target domain name for this PTR record. @@ -451,6 +463,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SoaRecord an SOA record. type SoaRecord struct { // Host - The domain name of the authoritative name server for this SOA record. diff --git a/services/preview/elastic/mgmt/2020-07-01-preview/elastic/CHANGELOG.md b/services/preview/elastic/mgmt/2020-07-01-preview/elastic/CHANGELOG.md index 52911e4cc5e4..386e12526b83 100644 --- a/services/preview/elastic/mgmt/2020-07-01-preview/elastic/CHANGELOG.md +++ b/services/preview/elastic/mgmt/2020-07-01-preview/elastic/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. CloudDeployment.MarshalJSON() ([]byte, error) +1. CloudUser.MarshalJSON() ([]byte, error) +1. DeploymentInfoResponse.MarshalJSON() ([]byte, error) +1. ResourceProviderDefaultErrorResponse.MarshalJSON() ([]byte, error) diff --git a/services/preview/elastic/mgmt/2020-07-01-preview/elastic/_meta.json b/services/preview/elastic/mgmt/2020-07-01-preview/elastic/_meta.json index 7a3074bfb141..816bfdc69949 100644 --- a/services/preview/elastic/mgmt/2020-07-01-preview/elastic/_meta.json +++ b/services/preview/elastic/mgmt/2020-07-01-preview/elastic/_meta.json @@ -2,9 +2,9 @@ "commit": "c2ea3a3ccd14293b4bd1d17e684ef9129f0dc604", "readme": "/_/azure-rest-api-specs/specification/elastic/resource-manager/readme.md", "tag": "package-2020-07-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-07-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/elastic/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-07-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/elastic/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix" } diff --git a/services/preview/elastic/mgmt/2020-07-01-preview/elastic/models.go b/services/preview/elastic/mgmt/2020-07-01-preview/elastic/models.go index bd013ba2a137..61c313082ae6 100644 --- a/services/preview/elastic/mgmt/2020-07-01-preview/elastic/models.go +++ b/services/preview/elastic/mgmt/2020-07-01-preview/elastic/models.go @@ -38,6 +38,12 @@ type CloudDeployment struct { KibanaSsoURL *string `json:"kibanaSsoUrl,omitempty"` } +// MarshalJSON is the custom marshaler for CloudDeployment. +func (cd CloudDeployment) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudUser details of the user's elastic account. type CloudUser struct { // EmailAddress - READ-ONLY; Email of the Elastic User Account. @@ -48,6 +54,12 @@ type CloudUser struct { ElasticCloudSsoDefaultURL *string `json:"elasticCloudSsoDefaultUrl,omitempty"` } +// MarshalJSON is the custom marshaler for CloudUser. +func (cu CloudUser) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CompanyInfo company information of the user to be passed to partners. type CompanyInfo struct { // Domain - Domain of the company @@ -76,6 +88,12 @@ type DeploymentInfoResponse struct { DiskCapacity *string `json:"diskCapacity,omitempty"` } +// MarshalJSON is the custom marshaler for DeploymentInfoResponse. +func (dir DeploymentInfoResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponseBody error response body. type ErrorResponseBody struct { // Code - Error code. @@ -1024,6 +1042,12 @@ type ResourceProviderDefaultErrorResponse struct { Error *ErrorResponseBody `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceProviderDefaultErrorResponse. +func (rpder ResourceProviderDefaultErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSku microsoft.Elastic SKU. type ResourceSku struct { // Name - Name of the SKU. diff --git a/services/preview/engagementfabric/mgmt/2018-09-01/engagementfabric/CHANGELOG.md b/services/preview/engagementfabric/mgmt/2018-09-01/engagementfabric/CHANGELOG.md index 52911e4cc5e4..c3c3f7eefc99 100644 --- a/services/preview/engagementfabric/mgmt/2018-09-01/engagementfabric/CHANGELOG.md +++ b/services/preview/engagementfabric/mgmt/2018-09-01/engagementfabric/CHANGELOG.md @@ -1,2 +1,16 @@ # Change History +## Additive Changes + +### New Funcs + +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) +1. KeyDescription.MarshalJSON() ([]byte, error) +1. KeyDescriptionList.MarshalJSON() ([]byte, error) +1. Operation.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationList.MarshalJSON() ([]byte, error) +1. ProxyOnlyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. SkuDescription.MarshalJSON() ([]byte, error) +1. SkuDescriptionList.MarshalJSON() ([]byte, error) diff --git a/services/preview/engagementfabric/mgmt/2018-09-01/engagementfabric/_meta.json b/services/preview/engagementfabric/mgmt/2018-09-01/engagementfabric/_meta.json index c772e9355236..4cf71e9d62eb 100644 --- a/services/preview/engagementfabric/mgmt/2018-09-01/engagementfabric/_meta.json +++ b/services/preview/engagementfabric/mgmt/2018-09-01/engagementfabric/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/engagementfabric/resource-manager/readme.md", "tag": "package-2018-09-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-09-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/engagementfabric/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-09-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/engagementfabric/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/engagementfabric/mgmt/2018-09-01/engagementfabric/models.go b/services/preview/engagementfabric/mgmt/2018-09-01/engagementfabric/models.go index 5aa993222d29..77f9a846171b 100644 --- a/services/preview/engagementfabric/mgmt/2018-09-01/engagementfabric/models.go +++ b/services/preview/engagementfabric/mgmt/2018-09-01/engagementfabric/models.go @@ -209,6 +209,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError the default error response type CloudError struct { // Error - Content of the error @@ -238,6 +244,12 @@ type KeyDescription struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for KeyDescription. +func (kd KeyDescription) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // KeyDescriptionList the list of the EngagementFabric account keys type KeyDescriptionList struct { autorest.Response `json:"-"` @@ -245,6 +257,12 @@ type KeyDescriptionList struct { Value *[]KeyDescription `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for KeyDescriptionList. +func (kdl KeyDescriptionList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation the EngagementFabric operation type Operation struct { // Name - READ-ONLY; The name of the EngagementFabric operation @@ -253,6 +271,12 @@ type Operation struct { Display *OperationDisplay `json:"display,omitempty"` } +// MarshalJSON is the custom marshaler for Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationDisplay the display information of the EngagementFabric operation type OperationDisplay struct { // Provider - READ-ONLY; The resource provider namespace of the EngagementFabric operation @@ -265,6 +289,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (od OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationList the list of the EngagementFabric operations type OperationList struct { autorest.Response `json:"-"` @@ -272,6 +302,12 @@ type OperationList struct { Value *[]Operation `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationList. +func (ol OperationList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProxyOnlyResource the base model for the proxy-only Azure resource type ProxyOnlyResource struct { // ID - READ-ONLY; The ID of the resource @@ -282,6 +318,12 @@ type ProxyOnlyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyOnlyResource. +func (por ProxyOnlyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegenerateKeyParameter the parameter to regenerate single EngagementFabric account key type RegenerateKeyParameter struct { // Name - The name of key to be regenerated @@ -300,6 +342,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SKU the EngagementFabric SKU type SKU struct { // Name - The name of the SKU @@ -324,6 +372,12 @@ type SkuDescription struct { Restrictions *[]interface{} `json:"restrictions,omitempty"` } +// MarshalJSON is the custom marshaler for SkuDescription. +func (sd SkuDescription) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuDescriptionList the list of the EngagementFabric SKU descriptions type SkuDescriptionList struct { autorest.Response `json:"-"` @@ -331,6 +385,12 @@ type SkuDescriptionList struct { Value *[]SkuDescription `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SkuDescriptionList. +func (sdl SkuDescriptionList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuLocationInfoItem the Locations and zones info for SKU type SkuLocationInfoItem struct { // Location - The available location of the SKU diff --git a/services/preview/enterpriseknowledgegraphservice/2018-12-03/enterpriseknowledgegraphservice/_meta.json b/services/preview/enterpriseknowledgegraphservice/2018-12-03/enterpriseknowledgegraphservice/_meta.json index 0c030225a2ba..4147ab52a78c 100644 --- a/services/preview/enterpriseknowledgegraphservice/2018-12-03/enterpriseknowledgegraphservice/_meta.json +++ b/services/preview/enterpriseknowledgegraphservice/2018-12-03/enterpriseknowledgegraphservice/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/EnterpriseKnowledgeGraph/resource-manager/readme.md", "tag": "package-2018-12-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-12-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/EnterpriseKnowledgeGraph/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-12-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/EnterpriseKnowledgeGraph/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/eventgrid/mgmt/2017-06-15-preview/eventgrid/CHANGELOG.md b/services/preview/eventgrid/mgmt/2017-06-15-preview/eventgrid/CHANGELOG.md index 52911e4cc5e4..3ec88d5f1801 100644 --- a/services/preview/eventgrid/mgmt/2017-06-15-preview/eventgrid/CHANGELOG.md +++ b/services/preview/eventgrid/mgmt/2017-06-15-preview/eventgrid/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. Resource.MarshalJSON() ([]byte, error) +1. TopicProperties.MarshalJSON() ([]byte, error) diff --git a/services/preview/eventgrid/mgmt/2017-06-15-preview/eventgrid/_meta.json b/services/preview/eventgrid/mgmt/2017-06-15-preview/eventgrid/_meta.json index 3c2bf5843774..f149ba50bf52 100644 --- a/services/preview/eventgrid/mgmt/2017-06-15-preview/eventgrid/_meta.json +++ b/services/preview/eventgrid/mgmt/2017-06-15-preview/eventgrid/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/eventgrid/resource-manager/readme.md", "tag": "package-2017-06-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-06-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/eventgrid/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-06-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/eventgrid/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/eventgrid/mgmt/2017-06-15-preview/eventgrid/models.go b/services/preview/eventgrid/mgmt/2017-06-15-preview/eventgrid/models.go index d7e72b7db7d4..2587b594b562 100644 --- a/services/preview/eventgrid/mgmt/2017-06-15-preview/eventgrid/models.go +++ b/services/preview/eventgrid/mgmt/2017-06-15-preview/eventgrid/models.go @@ -483,6 +483,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Topic eventGrid Topic type Topic struct { autorest.Response `json:"-"` @@ -592,6 +598,12 @@ type TopicProperties struct { Endpoint *string `json:"endpoint,omitempty"` } +// MarshalJSON is the custom marshaler for TopicProperties. +func (tp TopicProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TopicRegenerateKeyRequest topic regenerate share access key request type TopicRegenerateKeyRequest struct { // KeyName - Key name to regenerate key1 or key2 diff --git a/services/preview/eventgrid/mgmt/2017-09-15-preview/eventgrid/CHANGELOG.md b/services/preview/eventgrid/mgmt/2017-09-15-preview/eventgrid/CHANGELOG.md index 52911e4cc5e4..3ec88d5f1801 100644 --- a/services/preview/eventgrid/mgmt/2017-09-15-preview/eventgrid/CHANGELOG.md +++ b/services/preview/eventgrid/mgmt/2017-09-15-preview/eventgrid/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. Resource.MarshalJSON() ([]byte, error) +1. TopicProperties.MarshalJSON() ([]byte, error) diff --git a/services/preview/eventgrid/mgmt/2017-09-15-preview/eventgrid/_meta.json b/services/preview/eventgrid/mgmt/2017-09-15-preview/eventgrid/_meta.json index e5c08c54e89d..b48fccc501b1 100644 --- a/services/preview/eventgrid/mgmt/2017-09-15-preview/eventgrid/_meta.json +++ b/services/preview/eventgrid/mgmt/2017-09-15-preview/eventgrid/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/eventgrid/resource-manager/readme.md", "tag": "package-2017-09-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-09-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/eventgrid/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-09-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/eventgrid/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/eventgrid/mgmt/2017-09-15-preview/eventgrid/models.go b/services/preview/eventgrid/mgmt/2017-09-15-preview/eventgrid/models.go index 85369e496638..47db32f3c4d3 100644 --- a/services/preview/eventgrid/mgmt/2017-09-15-preview/eventgrid/models.go +++ b/services/preview/eventgrid/mgmt/2017-09-15-preview/eventgrid/models.go @@ -676,6 +676,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Topic eventGrid Topic type Topic struct { autorest.Response `json:"-"` @@ -785,6 +791,12 @@ type TopicProperties struct { Endpoint *string `json:"endpoint,omitempty"` } +// MarshalJSON is the custom marshaler for TopicProperties. +func (tp TopicProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TopicRegenerateKeyRequest topic regenerate share access key request type TopicRegenerateKeyRequest struct { // KeyName - Key name to regenerate key1 or key2 diff --git a/services/preview/eventgrid/mgmt/2018-05-01-preview/eventgrid/CHANGELOG.md b/services/preview/eventgrid/mgmt/2018-05-01-preview/eventgrid/CHANGELOG.md index 52911e4cc5e4..f817772e217f 100644 --- a/services/preview/eventgrid/mgmt/2018-05-01-preview/eventgrid/CHANGELOG.md +++ b/services/preview/eventgrid/mgmt/2018-05-01-preview/eventgrid/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/eventgrid/mgmt/2018-05-01-preview/eventgrid/_meta.json b/services/preview/eventgrid/mgmt/2018-05-01-preview/eventgrid/_meta.json index cee62b07f6af..dd38f858d744 100644 --- a/services/preview/eventgrid/mgmt/2018-05-01-preview/eventgrid/_meta.json +++ b/services/preview/eventgrid/mgmt/2018-05-01-preview/eventgrid/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/eventgrid/resource-manager/readme.md", "tag": "package-2018-05-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-05-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/eventgrid/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-05-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/eventgrid/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/eventgrid/mgmt/2018-05-01-preview/eventgrid/models.go b/services/preview/eventgrid/mgmt/2018-05-01-preview/eventgrid/models.go index 33c4d06e1d35..62b5210541c7 100644 --- a/services/preview/eventgrid/mgmt/2018-05-01-preview/eventgrid/models.go +++ b/services/preview/eventgrid/mgmt/2018-05-01-preview/eventgrid/models.go @@ -1132,6 +1132,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RetryPolicy information about the retry policy for an event subscription type RetryPolicy struct { // MaxDeliveryAttempts - Maximum number of delivery retry attempts for events. diff --git a/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/CHANGELOG.md b/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/CHANGELOG.md index 52911e4cc5e4..606a85376166 100644 --- a/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/CHANGELOG.md +++ b/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. DomainTopic.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/_meta.json b/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/_meta.json index a1f04824c3a9..450dc1c19e17 100644 --- a/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/_meta.json +++ b/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/eventgrid/resource-manager/readme.md", "tag": "package-2018-09-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-09-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/eventgrid/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-09-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/eventgrid/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/models.go b/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/models.go index 7602713f10a2..c9d06339c200 100644 --- a/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/models.go +++ b/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/models.go @@ -713,6 +713,12 @@ type DomainTopic struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for DomainTopic. +func (dt DomainTopic) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DomainTopicsListResult result of the List Domain Topics operation type DomainTopicsListResult struct { autorest.Response `json:"-"` @@ -2433,6 +2439,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RetryPolicy information about the retry policy for an event subscription type RetryPolicy struct { // MaxDeliveryAttempts - Maximum number of delivery retry attempts for events. diff --git a/services/preview/eventgrid/mgmt/2019-02-01-preview/eventgrid/CHANGELOG.md b/services/preview/eventgrid/mgmt/2019-02-01-preview/eventgrid/CHANGELOG.md index 52911e4cc5e4..f817772e217f 100644 --- a/services/preview/eventgrid/mgmt/2019-02-01-preview/eventgrid/CHANGELOG.md +++ b/services/preview/eventgrid/mgmt/2019-02-01-preview/eventgrid/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/eventgrid/mgmt/2019-02-01-preview/eventgrid/_meta.json b/services/preview/eventgrid/mgmt/2019-02-01-preview/eventgrid/_meta.json index 780026cbf4d3..17667861baed 100644 --- a/services/preview/eventgrid/mgmt/2019-02-01-preview/eventgrid/_meta.json +++ b/services/preview/eventgrid/mgmt/2019-02-01-preview/eventgrid/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/eventgrid/resource-manager/readme.md", "tag": "package-2019-02-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-02-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/eventgrid/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-02-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/eventgrid/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/eventgrid/mgmt/2019-02-01-preview/eventgrid/models.go b/services/preview/eventgrid/mgmt/2019-02-01-preview/eventgrid/models.go index ba3a370558fc..2d6097bb5dde 100644 --- a/services/preview/eventgrid/mgmt/2019-02-01-preview/eventgrid/models.go +++ b/services/preview/eventgrid/mgmt/2019-02-01-preview/eventgrid/models.go @@ -3065,6 +3065,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RetryPolicy information about the retry policy for an event subscription type RetryPolicy struct { // MaxDeliveryAttempts - Maximum number of delivery retry attempts for events. diff --git a/services/preview/eventgrid/mgmt/2020-01-01-preview/eventgrid/CHANGELOG.md b/services/preview/eventgrid/mgmt/2020-01-01-preview/eventgrid/CHANGELOG.md index 52911e4cc5e4..f817772e217f 100644 --- a/services/preview/eventgrid/mgmt/2020-01-01-preview/eventgrid/CHANGELOG.md +++ b/services/preview/eventgrid/mgmt/2020-01-01-preview/eventgrid/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/eventgrid/mgmt/2020-01-01-preview/eventgrid/_meta.json b/services/preview/eventgrid/mgmt/2020-01-01-preview/eventgrid/_meta.json index d34554233cc4..2d0e7fcf489a 100644 --- a/services/preview/eventgrid/mgmt/2020-01-01-preview/eventgrid/_meta.json +++ b/services/preview/eventgrid/mgmt/2020-01-01-preview/eventgrid/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/eventgrid/resource-manager/readme.md", "tag": "package-2020-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/eventgrid/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/eventgrid/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/eventgrid/mgmt/2020-01-01-preview/eventgrid/models.go b/services/preview/eventgrid/mgmt/2020-01-01-preview/eventgrid/models.go index 14feea59d9a7..ddb504006979 100644 --- a/services/preview/eventgrid/mgmt/2020-01-01-preview/eventgrid/models.go +++ b/services/preview/eventgrid/mgmt/2020-01-01-preview/eventgrid/models.go @@ -3227,6 +3227,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RetryPolicy information about the retry policy for an event subscription type RetryPolicy struct { // MaxDeliveryAttempts - Maximum number of delivery retry attempts for events. diff --git a/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/CHANGELOG.md b/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/CHANGELOG.md index 52911e4cc5e4..f817772e217f 100644 --- a/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/CHANGELOG.md +++ b/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/_meta.json b/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/_meta.json index f7d29d3dab1c..c18109016107 100644 --- a/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/_meta.json +++ b/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/eventgrid/resource-manager/readme.md", "tag": "package-2020-04-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-04-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/eventgrid/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-04-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/eventgrid/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/models.go b/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/models.go index 23eeb34c5a9d..1e806b513150 100644 --- a/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/models.go +++ b/services/preview/eventgrid/mgmt/2020-04-01-preview/eventgrid/models.go @@ -5989,6 +5989,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSku describes an EventGrid Resource Sku. type ResourceSku struct { // Name - The Sku name of the resource. The possible values are: Basic or Premium. Possible values include: 'Basic', 'Premium' diff --git a/services/preview/eventgrid/mgmt/2020-10-15-preview/eventgrid/CHANGELOG.md b/services/preview/eventgrid/mgmt/2020-10-15-preview/eventgrid/CHANGELOG.md index 52911e4cc5e4..f817772e217f 100644 --- a/services/preview/eventgrid/mgmt/2020-10-15-preview/eventgrid/CHANGELOG.md +++ b/services/preview/eventgrid/mgmt/2020-10-15-preview/eventgrid/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/eventgrid/mgmt/2020-10-15-preview/eventgrid/_meta.json b/services/preview/eventgrid/mgmt/2020-10-15-preview/eventgrid/_meta.json index ce929e341680..04e168c9d0c1 100644 --- a/services/preview/eventgrid/mgmt/2020-10-15-preview/eventgrid/_meta.json +++ b/services/preview/eventgrid/mgmt/2020-10-15-preview/eventgrid/_meta.json @@ -2,9 +2,9 @@ "commit": "8240593bde5350e6762015523ccd57cb61e32da5", "readme": "/_/azure-rest-api-specs/specification/eventgrid/resource-manager/readme.md", "tag": "package-2020-10-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-10-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/eventgrid/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-10-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/eventgrid/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/eventgrid/mgmt/2020-10-15-preview/eventgrid/models.go b/services/preview/eventgrid/mgmt/2020-10-15-preview/eventgrid/models.go index 8f0edf116f0b..d72a7a4212d1 100644 --- a/services/preview/eventgrid/mgmt/2020-10-15-preview/eventgrid/models.go +++ b/services/preview/eventgrid/mgmt/2020-10-15-preview/eventgrid/models.go @@ -7250,6 +7250,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSku describes an EventGrid Resource Sku. type ResourceSku struct { // Name - The Sku name of the resource. The possible values are: Basic or Premium. Possible values include: 'Basic', 'Premium' diff --git a/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/CHANGELOG.md b/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/CHANGELOG.md index 52911e4cc5e4..da266002f1d2 100644 --- a/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/CHANGELOG.md +++ b/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccessKeys.MarshalJSON() ([]byte, error) +1. ClusterProperties.MarshalJSON() ([]byte, error) +1. MessagingRegionsProperties.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/_meta.json b/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/_meta.json index d48aa9ab1c22..601a71404b69 100644 --- a/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/_meta.json +++ b/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/eventhub/resource-manager/readme.md", "tag": "package-2018-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/eventhub/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/eventhub/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/models.go b/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/models.go index 083748fb805a..0e57751582f2 100644 --- a/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/models.go +++ b/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/models.go @@ -39,6 +39,12 @@ type AccessKeys struct { KeyName *string `json:"keyName,omitempty"` } +// MarshalJSON is the custom marshaler for AccessKeys. +func (ak AccessKeys) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ArmDisasterRecovery single item in List or Get Alias(Disaster Recovery configuration) operation type ArmDisasterRecovery struct { autorest.Response `json:"-"` @@ -890,6 +896,12 @@ type ClusterProperties struct { Status *string `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for ClusterProperties. +func (c ClusterProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ClusterQuotaConfigurationProperties contains all settings for the cluster. type ClusterQuotaConfigurationProperties struct { autorest.Response `json:"-"` @@ -2356,6 +2368,12 @@ type MessagingRegionsProperties struct { FullName *string `json:"fullName,omitempty"` } +// MarshalJSON is the custom marshaler for MessagingRegionsProperties. +func (mr MessagingRegionsProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Model single item in List or Get Event Hub operation type Model struct { autorest.Response `json:"-"` @@ -2637,6 +2655,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of the request to list Event Hub operations. It contains a list of operations // and a URL link to get the next set of results. type OperationListResult struct { @@ -2647,6 +2671,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -3238,6 +3268,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Sku SKU parameters supplied to the create namespace operation type Sku struct { // Name - Name of this SKU. Possible values include: 'Basic', 'Standard' diff --git a/services/preview/extendedlocation/mgmt/2021-03-15-preview/extendedlocation/CHANGELOG.md b/services/preview/extendedlocation/mgmt/2021-03-15-preview/extendedlocation/CHANGELOG.md index 0ab874e98512..59fa833ab1f0 100644 --- a/services/preview/extendedlocation/mgmt/2021-03-15-preview/extendedlocation/CHANGELOG.md +++ b/services/preview/extendedlocation/mgmt/2021-03-15-preview/extendedlocation/CHANGELOG.md @@ -1,21 +1,14 @@ # Change History -## Breaking Changes - -### Removed Constants - -1. CreatedByType.Application -1. CreatedByType.Key -1. CreatedByType.ManagedIdentity -1. CreatedByType.User -1. HostType.Kubernetes - ## Additive Changes -### New Constants +### New Funcs -1. CreatedByType.CreatedByTypeApplication -1. CreatedByType.CreatedByTypeKey -1. CreatedByType.CreatedByTypeManagedIdentity -1. CreatedByType.CreatedByTypeUser -1. HostType.HostTypeKubernetes +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. CustomLocationListResult.MarshalJSON() ([]byte, error) +1. CustomLocationOperationValueDisplay.MarshalJSON() ([]byte, error) +1. EnabledResourceTypesListResult.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorDetail.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/extendedlocation/mgmt/2021-03-15-preview/extendedlocation/_meta.json b/services/preview/extendedlocation/mgmt/2021-03-15-preview/extendedlocation/_meta.json index 1adebdfb7911..f48e27ec19a8 100644 --- a/services/preview/extendedlocation/mgmt/2021-03-15-preview/extendedlocation/_meta.json +++ b/services/preview/extendedlocation/mgmt/2021-03-15-preview/extendedlocation/_meta.json @@ -2,9 +2,9 @@ "commit": "c2ea3a3ccd14293b4bd1d17e684ef9129f0dc604", "readme": "/_/azure-rest-api-specs/specification/extendedlocation/resource-manager/readme.md", "tag": "package-2021-03-15-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2021-03-15-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/extendedlocation/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2021-03-15-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/extendedlocation/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix" } diff --git a/services/preview/extendedlocation/mgmt/2021-03-15-preview/extendedlocation/models.go b/services/preview/extendedlocation/mgmt/2021-03-15-preview/extendedlocation/models.go index d232e114a25b..6c8c07286315 100644 --- a/services/preview/extendedlocation/mgmt/2021-03-15-preview/extendedlocation/models.go +++ b/services/preview/extendedlocation/mgmt/2021-03-15-preview/extendedlocation/models.go @@ -32,6 +32,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CustomLocation custom Locations definition. type CustomLocation struct { autorest.Response `json:"-"` @@ -153,6 +159,12 @@ type CustomLocationListResult struct { Value *[]CustomLocation `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CustomLocationListResult. +func (cllr CustomLocationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CustomLocationListResultIterator provides access to a complete listing of CustomLocation values. type CustomLocationListResultIterator struct { i int @@ -548,6 +560,12 @@ type CustomLocationOperationValueDisplay struct { Resource *string `json:"resource,omitempty"` } +// MarshalJSON is the custom marshaler for CustomLocationOperationValueDisplay. +func (clovd CustomLocationOperationValueDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CustomLocationProperties properties for a custom location. type CustomLocationProperties struct { // Authentication - This is optional input that contains the authentication that should be used to generate the namespace. @@ -767,6 +785,12 @@ type EnabledResourceTypesListResult struct { Value *[]EnabledResourceType `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for EnabledResourceTypesListResult. +func (ertlr EnabledResourceTypesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EnabledResourceTypesListResultIterator provides access to a complete listing of EnabledResourceType // values. type EnabledResourceTypesListResultIterator struct { @@ -926,6 +950,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetail the error detail. type ErrorDetail struct { // Code - READ-ONLY; The error code. @@ -940,6 +970,12 @@ type ErrorDetail struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetail. +func (ed ErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.). type ErrorResponse struct { @@ -1011,6 +1047,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -1021,6 +1063,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SystemData metadata pertaining to creation and last modification of the resource. type SystemData struct { // CreatedBy - The identity that created the resource. diff --git a/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/CHANGELOG.md b/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/CHANGELOG.md index 52911e4cc5e4..24349cd89d28 100644 --- a/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/CHANGELOG.md +++ b/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. CheckNameAvailabilityOutput.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. ValidateCustomDomainOutput.MarshalJSON() ([]byte, error) diff --git a/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/_meta.json b/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/_meta.json index d4380ec750df..741585506daf 100644 --- a/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/_meta.json +++ b/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/frontdoor/resource-manager/readme.md", "tag": "package-2018-08-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-08-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/frontdoor/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-08-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/frontdoor/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/models.go b/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/models.go index a214e51f57f4..9e70e1ad7e8d 100644 --- a/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/models.go +++ b/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/models.go @@ -255,6 +255,12 @@ type CheckNameAvailabilityOutput struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityOutput. +func (cnao CheckNameAvailabilityOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CustomHTTPSConfiguration https settings for a domain type CustomHTTPSConfiguration struct { // CertificateSource - Defines the source of the SSL certificate. Possible values include: 'CertificateSourceAzureKeyVault', 'CertificateSourceFrontDoor' @@ -456,6 +462,12 @@ type ErrorResponse struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FrontDoor front Door represents a collection of backend endpoints to route traffic to along with rules // that specify how traffic is sent there. type FrontDoor struct { @@ -1897,6 +1909,12 @@ type ValidateCustomDomainOutput struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ValidateCustomDomainOutput. +func (vcdo ValidateCustomDomainOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WebApplicationFirewallPolicy1 defines web application firewall policy. type WebApplicationFirewallPolicy1 struct { autorest.Response `json:"-"` diff --git a/services/preview/hanaonazure/mgmt/2017-11-03-preview/hanaonazure/CHANGELOG.md b/services/preview/hanaonazure/mgmt/2017-11-03-preview/hanaonazure/CHANGELOG.md index 52911e4cc5e4..c2e943abe6e7 100644 --- a/services/preview/hanaonazure/mgmt/2017-11-03-preview/hanaonazure/CHANGELOG.md +++ b/services/preview/hanaonazure/mgmt/2017-11-03-preview/hanaonazure/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. Display.MarshalJSON() ([]byte, error) +1. HardwareProfile.MarshalJSON() ([]byte, error) diff --git a/services/preview/hanaonazure/mgmt/2017-11-03-preview/hanaonazure/_meta.json b/services/preview/hanaonazure/mgmt/2017-11-03-preview/hanaonazure/_meta.json index 7e9356d21d94..e3ee1c46fab4 100644 --- a/services/preview/hanaonazure/mgmt/2017-11-03-preview/hanaonazure/_meta.json +++ b/services/preview/hanaonazure/mgmt/2017-11-03-preview/hanaonazure/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/hanaonazure/resource-manager/readme.md", "tag": "package-2017-11", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/hanaonazure/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/hanaonazure/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/hanaonazure/mgmt/2017-11-03-preview/hanaonazure/models.go b/services/preview/hanaonazure/mgmt/2017-11-03-preview/hanaonazure/models.go index 3e257243c956..9aecf6574731 100644 --- a/services/preview/hanaonazure/mgmt/2017-11-03-preview/hanaonazure/models.go +++ b/services/preview/hanaonazure/mgmt/2017-11-03-preview/hanaonazure/models.go @@ -55,6 +55,12 @@ type Display struct { Origin *string `json:"origin,omitempty"` } +// MarshalJSON is the custom marshaler for Display. +func (d Display) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse describes the format of Error response. type ErrorResponse struct { // Code - Error code @@ -564,6 +570,12 @@ type HardwareProfile struct { HanaInstanceSize HanaInstanceSizeNamesEnum `json:"hanaInstanceSize,omitempty"` } +// MarshalJSON is the custom marshaler for HardwareProfile. +func (hp HardwareProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IPAddress specifies the IP address of the network interface. type IPAddress struct { // IPAddress - Specifies the IP address of the network interface. diff --git a/services/preview/hardwaresecuritymodules/mgmt/2018-10-31-preview/hardwaresecuritymodules/CHANGELOG.md b/services/preview/hardwaresecuritymodules/mgmt/2018-10-31-preview/hardwaresecuritymodules/CHANGELOG.md index 52911e4cc5e4..b80d2ee5d9ba 100644 --- a/services/preview/hardwaresecuritymodules/mgmt/2018-10-31-preview/hardwaresecuritymodules/CHANGELOG.md +++ b/services/preview/hardwaresecuritymodules/mgmt/2018-10-31-preview/hardwaresecuritymodules/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. DedicatedHsmError.MarshalJSON() ([]byte, error) +1. Error.MarshalJSON() ([]byte, error) diff --git a/services/preview/hardwaresecuritymodules/mgmt/2018-10-31-preview/hardwaresecuritymodules/_meta.json b/services/preview/hardwaresecuritymodules/mgmt/2018-10-31-preview/hardwaresecuritymodules/_meta.json index 6c9724f0a482..24e83e041923 100644 --- a/services/preview/hardwaresecuritymodules/mgmt/2018-10-31-preview/hardwaresecuritymodules/_meta.json +++ b/services/preview/hardwaresecuritymodules/mgmt/2018-10-31-preview/hardwaresecuritymodules/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/hardwaresecuritymodules/resource-manager/readme.md", "tag": "package-2018-10", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/hardwaresecuritymodules/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/hardwaresecuritymodules/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/hardwaresecuritymodules/mgmt/2018-10-31-preview/hardwaresecuritymodules/models.go b/services/preview/hardwaresecuritymodules/mgmt/2018-10-31-preview/hardwaresecuritymodules/models.go index fccff7af28eb..8b7566537e76 100644 --- a/services/preview/hardwaresecuritymodules/mgmt/2018-10-31-preview/hardwaresecuritymodules/models.go +++ b/services/preview/hardwaresecuritymodules/mgmt/2018-10-31-preview/hardwaresecuritymodules/models.go @@ -240,6 +240,12 @@ type DedicatedHsmError struct { Error *Error `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for DedicatedHsmError. +func (dhe DedicatedHsmError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DedicatedHsmListResult list of dedicated HSMs type DedicatedHsmListResult struct { autorest.Response `json:"-"` @@ -532,6 +538,12 @@ type Error struct { InnerError *Error `json:"innererror,omitempty"` } +// MarshalJSON is the custom marshaler for Error. +func (e Error) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NetworkInterface the network interface definition. type NetworkInterface struct { // ID - READ-ONLY; The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... diff --git a/services/preview/hdinsight/2018-11-01-preview/hdinsight/_meta.json b/services/preview/hdinsight/2018-11-01-preview/hdinsight/_meta.json index a12090c3125e..2e04e5ed85d1 100644 --- a/services/preview/hdinsight/2018-11-01-preview/hdinsight/_meta.json +++ b/services/preview/hdinsight/2018-11-01-preview/hdinsight/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/hdinsight/data-plane/readme.md", "tag": "package-2018-11-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-11-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/hdinsight/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-11-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/hdinsight/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/CHANGELOG.md b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/CHANGELOG.md index 52911e4cc5e4..9f0447ef0b48 100644 --- a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/CHANGELOG.md +++ b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/CHANGELOG.md @@ -1,2 +1,13 @@ # Change History +## Additive Changes + +### New Funcs + +1. ClusterIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. ClusterListRuntimeScriptActionDetailResult.MarshalJSON() ([]byte, error) +1. GatewaySettings.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ScriptActionExecutionHistoryList.MarshalJSON() ([]byte, error) +1. ScriptActionExecutionSummary.MarshalJSON() ([]byte, error) diff --git a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/_meta.json b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/_meta.json index a6f0ab53fa48..bd12693427e4 100644 --- a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/_meta.json +++ b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/hdinsight/resource-manager/readme.md", "tag": "package-2015-03-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2015-03-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/hdinsight/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2015-03-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/hdinsight/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/models.go b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/models.go index 70706323c9ed..d48cffd4b5ab 100644 --- a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/models.go +++ b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/models.go @@ -737,6 +737,12 @@ type ClusterIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ClusterIdentityUserAssignedIdentitiesValue. +func (ciAiv ClusterIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ClusterListPersistedScriptActionsResult the ListPersistedScriptActions operation response. type ClusterListPersistedScriptActionsResult struct { // Value - The list of Persisted Script Actions. @@ -930,6 +936,12 @@ type ClusterListRuntimeScriptActionDetailResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ClusterListRuntimeScriptActionDetailResult. +func (clrsadr ClusterListRuntimeScriptActionDetailResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ClusterMonitoringRequest the Operations Management Suite (OMS) parameters. type ClusterMonitoringRequest struct { // WorkspaceID - The Operations Management Suite (OMS) workspace ID. @@ -1457,6 +1469,12 @@ type GatewaySettings struct { Password *string `json:"restAuthCredential.password,omitempty"` } +// MarshalJSON is the custom marshaler for GatewaySettings. +func (gs GatewaySettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HardwareProfile the hardware profile. type HardwareProfile struct { // VMSize - The size of the VM @@ -1698,6 +1716,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QuotaCapability the regional quota capability. type QuotaCapability struct { // CoresUsed - The number of cores used in the subscription. @@ -1740,6 +1764,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Role describes a role on the cluster. type Role struct { // Name - The name of the role. @@ -1860,6 +1890,12 @@ type ScriptActionExecutionHistoryList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ScriptActionExecutionHistoryList. +func (saehl ScriptActionExecutionHistoryList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ScriptActionExecutionHistoryListIterator provides access to a complete listing of // RuntimeScriptActionDetail values. type ScriptActionExecutionHistoryListIterator struct { @@ -2019,6 +2055,12 @@ type ScriptActionExecutionSummary struct { InstanceCount *int32 `json:"instanceCount,omitempty"` } +// MarshalJSON is the custom marshaler for ScriptActionExecutionSummary. +func (saes ScriptActionExecutionSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ScriptActionPersistedGetResponseSpec the persisted script action for cluster. type ScriptActionPersistedGetResponseSpec struct { // Name - The name of script action. diff --git a/services/preview/healthcareapis/mgmt/2018-08-20-preview/healthcareapis/CHANGELOG.md b/services/preview/healthcareapis/mgmt/2018-08-20-preview/healthcareapis/CHANGELOG.md index 52911e4cc5e4..9b14150093b3 100644 --- a/services/preview/healthcareapis/mgmt/2018-08-20-preview/healthcareapis/CHANGELOG.md +++ b/services/preview/healthcareapis/mgmt/2018-08-20-preview/healthcareapis/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. ErrorDetailsInternal.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) diff --git a/services/preview/healthcareapis/mgmt/2018-08-20-preview/healthcareapis/_meta.json b/services/preview/healthcareapis/mgmt/2018-08-20-preview/healthcareapis/_meta.json index 427506a540eb..90913e727800 100644 --- a/services/preview/healthcareapis/mgmt/2018-08-20-preview/healthcareapis/_meta.json +++ b/services/preview/healthcareapis/mgmt/2018-08-20-preview/healthcareapis/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/healthcareapis/resource-manager/readme.md", "tag": "package-2018-08-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-08-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/healthcareapis/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-08-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/healthcareapis/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/healthcareapis/mgmt/2018-08-20-preview/healthcareapis/models.go b/services/preview/healthcareapis/mgmt/2018-08-20-preview/healthcareapis/models.go index 20e5e74ba9cf..588b75a21e27 100644 --- a/services/preview/healthcareapis/mgmt/2018-08-20-preview/healthcareapis/models.go +++ b/services/preview/healthcareapis/mgmt/2018-08-20-preview/healthcareapis/models.go @@ -43,6 +43,12 @@ type ErrorDetailsInternal struct { Target *string `json:"target,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetailsInternal. +func (edi ErrorDetailsInternal) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation service REST API operation. type Operation struct { // Name - READ-ONLY; Operation name: {provider}/{resource}/{read | write | action | delete} @@ -74,6 +80,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (od OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult a list of service operations. It contains a list of operations and a URL link to get // the next set of results. type OperationListResult struct { diff --git a/services/preview/hybridkubernetes/mgmt/2020-01-01-preview/hybridkubernetes/CHANGELOG.md b/services/preview/hybridkubernetes/mgmt/2020-01-01-preview/hybridkubernetes/CHANGELOG.md index 52911e4cc5e4..0a7745ec649b 100644 --- a/services/preview/hybridkubernetes/mgmt/2020-01-01-preview/hybridkubernetes/CHANGELOG.md +++ b/services/preview/hybridkubernetes/mgmt/2020-01-01-preview/hybridkubernetes/CHANGELOG.md @@ -1,2 +1,15 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. CredentialResult.MarshalJSON() ([]byte, error) +1. CredentialResults.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorDetail.MarshalJSON() ([]byte, error) +1. HybridConnectionConfig.MarshalJSON() ([]byte, error) +1. Operation.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/hybridkubernetes/mgmt/2020-01-01-preview/hybridkubernetes/_meta.json b/services/preview/hybridkubernetes/mgmt/2020-01-01-preview/hybridkubernetes/_meta.json index 5900c4e7bfaa..1e5a177a483f 100644 --- a/services/preview/hybridkubernetes/mgmt/2020-01-01-preview/hybridkubernetes/_meta.json +++ b/services/preview/hybridkubernetes/mgmt/2020-01-01-preview/hybridkubernetes/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/hybridkubernetes/resource-manager/readme.md", "tag": "package-2020-01-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-01-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/hybridkubernetes/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-01-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/hybridkubernetes/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/hybridkubernetes/mgmt/2020-01-01-preview/hybridkubernetes/models.go b/services/preview/hybridkubernetes/mgmt/2020-01-01-preview/hybridkubernetes/models.go index 0cf7e0fcf6d2..bc4d2355ed8d 100644 --- a/services/preview/hybridkubernetes/mgmt/2020-01-01-preview/hybridkubernetes/models.go +++ b/services/preview/hybridkubernetes/mgmt/2020-01-01-preview/hybridkubernetes/models.go @@ -46,6 +46,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectedCluster represents a connected cluster. type ConnectedCluster struct { autorest.Response `json:"-"` @@ -550,6 +556,12 @@ type CredentialResult struct { Value *[]byte `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResult. +func (cr CredentialResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CredentialResults the list of credential result response. type CredentialResults struct { autorest.Response `json:"-"` @@ -559,6 +571,12 @@ type CredentialResults struct { Kubeconfigs *[]CredentialResult `json:"kubeconfigs,omitempty"` } +// MarshalJSON is the custom marshaler for CredentialResults. +func (cr CredentialResults) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorAdditionalInfo the resource management error additional info. type ErrorAdditionalInfo struct { // Type - READ-ONLY; The additional info type. @@ -567,6 +585,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetail the error detail. type ErrorDetail struct { // Code - READ-ONLY; The error code. @@ -581,6 +605,12 @@ type ErrorDetail struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetail. +func (ed ErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.). type ErrorResponse struct { @@ -600,6 +630,12 @@ type HybridConnectionConfig struct { Token *string `json:"token,omitempty"` } +// MarshalJSON is the custom marshaler for HybridConnectionConfig. +func (hcc HybridConnectionConfig) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation the Connected cluster API operation type Operation struct { // Name - READ-ONLY; Operation name: {Microsoft.Kubernetes}/{resource}/{operation} @@ -608,6 +644,12 @@ type Operation struct { Display *OperationDisplay `json:"display,omitempty"` } +// MarshalJSON is the custom marshaler for Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationDisplay the object that represents the operation. type OperationDisplay struct { // Provider - Service provider: Microsoft.connectedClusters @@ -799,6 +841,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -809,6 +857,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource type TrackedResource struct { // Tags - Resource tags. diff --git a/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/CHANGELOG.md b/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/CHANGELOG.md index 52911e4cc5e4..0f7ffcc3394e 100644 --- a/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/CHANGELOG.md +++ b/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/CHANGELOG.md @@ -1,2 +1,17 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. DeviceRegistrationKey.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorDetail.MarshalJSON() ([]byte, error) +1. NetworkFunctionRoleInstanceListResult.MarshalJSON() ([]byte, error) +1. Operation.MarshalJSON() ([]byte, error) +1. OperationList.MarshalJSON() ([]byte, error) +1. PreviewSubscription.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. VendorPropertiesFormat.MarshalJSON() ([]byte, error) diff --git a/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/_meta.json b/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/_meta.json index 40f00a1fc82d..0f6b306a4ce5 100644 --- a/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/_meta.json +++ b/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/_meta.json @@ -2,9 +2,9 @@ "commit": "5d89c9807d3e84a5890b381a68a308198f9ef141", "readme": "/_/azure-rest-api-specs/specification/hybridnetwork/resource-manager/readme.md", "tag": "package-2020-01-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-01-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/hybridnetwork/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-01-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/hybridnetwork/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/models.go b/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/models.go index 8462b669980e..aa5d150d9d04 100644 --- a/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/models.go +++ b/services/preview/hybridnetwork/mgmt/2020-01-01-preview/hybridnetwork/models.go @@ -31,6 +31,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CustomProfile specifies the custom settings for the virtual machine. type CustomProfile struct { // MetadataConfigurationPath - Path for metadata configuration. @@ -397,6 +403,12 @@ type DeviceRegistrationKey struct { RegistrationKey *string `json:"registrationKey,omitempty"` } +// MarshalJSON is the custom marshaler for DeviceRegistrationKey. +func (drk DeviceRegistrationKey) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DevicesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type DevicesCreateOrUpdateFuture struct { @@ -485,6 +497,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetail the error detail. type ErrorDetail struct { // Code - READ-ONLY; The error code. @@ -499,6 +517,12 @@ type ErrorDetail struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetail. +func (ed ErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.). type ErrorResponse struct { @@ -885,6 +909,12 @@ type NetworkFunctionRoleInstanceListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for NetworkFunctionRoleInstanceListResult. +func (nfrilr NetworkFunctionRoleInstanceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NetworkFunctionRoleInstanceListResultIterator provides access to a complete listing of RoleInstance // values. type NetworkFunctionRoleInstanceListResultIterator struct { @@ -1765,6 +1795,12 @@ type Operation struct { Display *OperationDisplay `json:"display,omitempty"` } +// MarshalJSON is the custom marshaler for Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationDisplay the object that represents the operation. type OperationDisplay struct { // Provider - Service provider: Microsoft.HybridNetwork. @@ -1786,6 +1822,12 @@ type OperationList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationList. +func (ol OperationList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListIterator provides access to a complete listing of Operation values. type OperationListIterator struct { i int @@ -1973,6 +2015,12 @@ type PreviewSubscription struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for PreviewSubscription. +func (ps PreviewSubscription) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PreviewSubscriptionsList a list of customer subscriptions which can use a sku. type PreviewSubscriptionsList struct { autorest.Response `json:"-"` @@ -2152,6 +2200,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -2162,6 +2216,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RoleInstance the role instance sub resource. type RoleInstance struct { autorest.Response `json:"-"` @@ -3010,6 +3070,12 @@ type VendorPropertiesFormat struct { Skus *[]SubResource `json:"skus,omitempty"` } +// MarshalJSON is the custom marshaler for VendorPropertiesFormat. +func (vpf VendorPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VendorsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type VendorsCreateOrUpdateFuture struct { diff --git a/services/preview/iothub/mgmt/2018-12-01-preview/devices/CHANGELOG.md b/services/preview/iothub/mgmt/2018-12-01-preview/devices/CHANGELOG.md index 52911e4cc5e4..1ef15e7e7f4e 100644 --- a/services/preview/iothub/mgmt/2018-12-01-preview/devices/CHANGELOG.md +++ b/services/preview/iothub/mgmt/2018-12-01-preview/devices/CHANGELOG.md @@ -1,2 +1,14 @@ # Change History +## Additive Changes + +### New Funcs + +1. CertificatePropertiesWithNonce.MarshalJSON() ([]byte, error) +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. IotHubCapacity.MarshalJSON() ([]byte, error) +1. IotHubQuotaMetricInfo.MarshalJSON() ([]byte, error) +1. JobResponse.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. RegistryStatistics.MarshalJSON() ([]byte, error) diff --git a/services/preview/iothub/mgmt/2018-12-01-preview/devices/_meta.json b/services/preview/iothub/mgmt/2018-12-01-preview/devices/_meta.json index 7dd11b0e770a..ad48d9e19abf 100644 --- a/services/preview/iothub/mgmt/2018-12-01-preview/devices/_meta.json +++ b/services/preview/iothub/mgmt/2018-12-01-preview/devices/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/iothub/resource-manager/readme.md", "tag": "package-2018-12-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-12-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/iothub/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-12-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/iothub/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/iothub/mgmt/2018-12-01-preview/devices/models.go b/services/preview/iothub/mgmt/2018-12-01-preview/devices/models.go index a36f22a870b0..814b77d4454a 100644 --- a/services/preview/iothub/mgmt/2018-12-01-preview/devices/models.go +++ b/services/preview/iothub/mgmt/2018-12-01-preview/devices/models.go @@ -104,6 +104,12 @@ type CertificatePropertiesWithNonce struct { Certificate *string `json:"certificate,omitempty"` } +// MarshalJSON is the custom marshaler for CertificatePropertiesWithNonce. +func (cpwn CertificatePropertiesWithNonce) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificateVerificationDescription the JSON-serialized leaf certificate type CertificateVerificationDescription struct { // Certificate - base-64 representation of X509 certificate .cer file or just .pem file content. @@ -330,6 +336,12 @@ type ErrorDetails struct { Details *string `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EventHubConsumerGroupInfo the properties of the EventHubConsumerGroupInfo object. type EventHubConsumerGroupInfo struct { autorest.Response `json:"-"` @@ -603,6 +615,12 @@ type IotHubCapacity struct { ScaleType IotHubScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for IotHubCapacity. +func (ihc IotHubCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IotHubDescription the description of the IoT hub. type IotHubDescription struct { autorest.Response `json:"-"` @@ -931,6 +949,12 @@ type IotHubQuotaMetricInfo struct { MaxValue *int64 `json:"maxValue,omitempty"` } +// MarshalJSON is the custom marshaler for IotHubQuotaMetricInfo. +func (ihqmi IotHubQuotaMetricInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IotHubQuotaMetricInfoListResult the JSON-serialized array of IotHubQuotaMetricInfo objects with a next // link. type IotHubQuotaMetricInfoListResult struct { @@ -1475,6 +1499,12 @@ type JobResponse struct { ParentJobID *string `json:"parentJobId,omitempty"` } +// MarshalJSON is the custom marshaler for JobResponse. +func (jr JobResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobResponseListResult the JSON-serialized array of JobResponse objects with a next link. type JobResponseListResult struct { autorest.Response `json:"-"` @@ -1696,6 +1726,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationInputs input values. type OperationInputs struct { // Name - The name of the IoT hub to check. @@ -1712,6 +1748,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -1873,6 +1915,12 @@ type RegistryStatistics struct { DisabledDeviceCount *int64 `json:"disabledDeviceCount,omitempty"` } +// MarshalJSON is the custom marshaler for RegistryStatistics. +func (rs RegistryStatistics) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource the common properties of an Azure resource. type Resource struct { // ID - READ-ONLY; The resource identifier. diff --git a/services/preview/iothub/mgmt/2019-03-22-preview/devices/CHANGELOG.md b/services/preview/iothub/mgmt/2019-03-22-preview/devices/CHANGELOG.md index 52911e4cc5e4..1ef15e7e7f4e 100644 --- a/services/preview/iothub/mgmt/2019-03-22-preview/devices/CHANGELOG.md +++ b/services/preview/iothub/mgmt/2019-03-22-preview/devices/CHANGELOG.md @@ -1,2 +1,14 @@ # Change History +## Additive Changes + +### New Funcs + +1. CertificatePropertiesWithNonce.MarshalJSON() ([]byte, error) +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. IotHubCapacity.MarshalJSON() ([]byte, error) +1. IotHubQuotaMetricInfo.MarshalJSON() ([]byte, error) +1. JobResponse.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. RegistryStatistics.MarshalJSON() ([]byte, error) diff --git a/services/preview/iothub/mgmt/2019-03-22-preview/devices/_meta.json b/services/preview/iothub/mgmt/2019-03-22-preview/devices/_meta.json index 5fcf1dee3142..8df86fdbea06 100644 --- a/services/preview/iothub/mgmt/2019-03-22-preview/devices/_meta.json +++ b/services/preview/iothub/mgmt/2019-03-22-preview/devices/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/iothub/resource-manager/readme.md", "tag": "package-preview-2019-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-preview-2019-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/iothub/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-preview-2019-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/iothub/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/iothub/mgmt/2019-03-22-preview/devices/models.go b/services/preview/iothub/mgmt/2019-03-22-preview/devices/models.go index 8fcd28d0dac0..ff8887d49f53 100644 --- a/services/preview/iothub/mgmt/2019-03-22-preview/devices/models.go +++ b/services/preview/iothub/mgmt/2019-03-22-preview/devices/models.go @@ -104,6 +104,12 @@ type CertificatePropertiesWithNonce struct { Certificate *string `json:"certificate,omitempty"` } +// MarshalJSON is the custom marshaler for CertificatePropertiesWithNonce. +func (cpwn CertificatePropertiesWithNonce) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificateVerificationDescription the JSON-serialized leaf certificate type CertificateVerificationDescription struct { // Certificate - base-64 representation of X509 certificate .cer file or just .pem file content. @@ -341,6 +347,12 @@ type ErrorDetails struct { Details *string `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EventHubConsumerGroupInfo the properties of the EventHubConsumerGroupInfo object. type EventHubConsumerGroupInfo struct { autorest.Response `json:"-"` @@ -620,6 +632,12 @@ type IotHubCapacity struct { ScaleType IotHubScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for IotHubCapacity. +func (ihc IotHubCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IotHubDescription the description of the IoT hub. type IotHubDescription struct { autorest.Response `json:"-"` @@ -982,6 +1000,12 @@ type IotHubQuotaMetricInfo struct { MaxValue *int64 `json:"maxValue,omitempty"` } +// MarshalJSON is the custom marshaler for IotHubQuotaMetricInfo. +func (ihqmi IotHubQuotaMetricInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IotHubQuotaMetricInfoListResult the JSON-serialized array of IotHubQuotaMetricInfo objects with a next // link. type IotHubQuotaMetricInfoListResult struct { @@ -1526,6 +1550,12 @@ type JobResponse struct { ParentJobID *string `json:"parentJobId,omitempty"` } +// MarshalJSON is the custom marshaler for JobResponse. +func (jr JobResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobResponseListResult the JSON-serialized array of JobResponse objects with a next link. type JobResponseListResult struct { autorest.Response `json:"-"` @@ -1747,6 +1777,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationInputs input values. type OperationInputs struct { // Name - The name of the IoT hub to check. @@ -1763,6 +1799,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -1924,6 +1966,12 @@ type RegistryStatistics struct { DisabledDeviceCount *int64 `json:"disabledDeviceCount,omitempty"` } +// MarshalJSON is the custom marshaler for RegistryStatistics. +func (rs RegistryStatistics) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource the common properties of an Azure resource. type Resource struct { // ID - READ-ONLY; The resource identifier. diff --git a/services/preview/iothub/mgmt/2019-07-01-preview/devices/CHANGELOG.md b/services/preview/iothub/mgmt/2019-07-01-preview/devices/CHANGELOG.md index 52911e4cc5e4..1ef15e7e7f4e 100644 --- a/services/preview/iothub/mgmt/2019-07-01-preview/devices/CHANGELOG.md +++ b/services/preview/iothub/mgmt/2019-07-01-preview/devices/CHANGELOG.md @@ -1,2 +1,14 @@ # Change History +## Additive Changes + +### New Funcs + +1. CertificatePropertiesWithNonce.MarshalJSON() ([]byte, error) +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. IotHubCapacity.MarshalJSON() ([]byte, error) +1. IotHubQuotaMetricInfo.MarshalJSON() ([]byte, error) +1. JobResponse.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. RegistryStatistics.MarshalJSON() ([]byte, error) diff --git a/services/preview/iothub/mgmt/2019-07-01-preview/devices/_meta.json b/services/preview/iothub/mgmt/2019-07-01-preview/devices/_meta.json index ee22a9487576..85e2350428bb 100644 --- a/services/preview/iothub/mgmt/2019-07-01-preview/devices/_meta.json +++ b/services/preview/iothub/mgmt/2019-07-01-preview/devices/_meta.json @@ -2,9 +2,9 @@ "commit": "8a3d2f1e61ac486406edc077f29060de8c02beea", "readme": "/_/azure-rest-api-specs/specification/iothub/resource-manager/readme.md", "tag": "package-preview-2019-07", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-preview-2019-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/iothub/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-preview-2019-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/iothub/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/iothub/mgmt/2019-07-01-preview/devices/models.go b/services/preview/iothub/mgmt/2019-07-01-preview/devices/models.go index 0dd879f340b6..4ef63aadcf76 100644 --- a/services/preview/iothub/mgmt/2019-07-01-preview/devices/models.go +++ b/services/preview/iothub/mgmt/2019-07-01-preview/devices/models.go @@ -104,6 +104,12 @@ type CertificatePropertiesWithNonce struct { Certificate *string `json:"certificate,omitempty"` } +// MarshalJSON is the custom marshaler for CertificatePropertiesWithNonce. +func (cpwn CertificatePropertiesWithNonce) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificateVerificationDescription the JSON-serialized leaf certificate type CertificateVerificationDescription struct { // Certificate - base-64 representation of X509 certificate .cer file or just .pem file content. @@ -341,6 +347,12 @@ type ErrorDetails struct { Details *string `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EventHubConsumerGroupInfo the properties of the EventHubConsumerGroupInfo object. type EventHubConsumerGroupInfo struct { autorest.Response `json:"-"` @@ -620,6 +632,12 @@ type IotHubCapacity struct { ScaleType IotHubScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for IotHubCapacity. +func (ihc IotHubCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IotHubDescription the description of the IoT hub. type IotHubDescription struct { autorest.Response `json:"-"` @@ -982,6 +1000,12 @@ type IotHubQuotaMetricInfo struct { MaxValue *int64 `json:"maxValue,omitempty"` } +// MarshalJSON is the custom marshaler for IotHubQuotaMetricInfo. +func (ihqmi IotHubQuotaMetricInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IotHubQuotaMetricInfoListResult the JSON-serialized array of IotHubQuotaMetricInfo objects with a next // link. type IotHubQuotaMetricInfoListResult struct { @@ -1526,6 +1550,12 @@ type JobResponse struct { ParentJobID *string `json:"parentJobId,omitempty"` } +// MarshalJSON is the custom marshaler for JobResponse. +func (jr JobResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobResponseListResult the JSON-serialized array of JobResponse objects with a next link. type JobResponseListResult struct { autorest.Response `json:"-"` @@ -1747,6 +1777,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationInputs input values. type OperationInputs struct { // Name - The name of the IoT hub to check. @@ -1763,6 +1799,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -1924,6 +1966,12 @@ type RegistryStatistics struct { DisabledDeviceCount *int64 `json:"disabledDeviceCount,omitempty"` } +// MarshalJSON is the custom marshaler for RegistryStatistics. +func (rs RegistryStatistics) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource the common properties of an Azure resource. type Resource struct { // ID - READ-ONLY; The resource identifier. diff --git a/services/preview/iothub/mgmt/2021-03-03-preview/devices/CHANGELOG.md b/services/preview/iothub/mgmt/2021-03-03-preview/devices/CHANGELOG.md index 0b4132fc139a..7209a9c23cd7 100644 --- a/services/preview/iothub/mgmt/2021-03-03-preview/devices/CHANGELOG.md +++ b/services/preview/iothub/mgmt/2021-03-03-preview/devices/CHANGELOG.md @@ -1,123 +1,16 @@ # Change History -## Breaking Changes - -### Removed Constants - -1. AccessRights.DeviceConnect -1. AccessRights.RegistryRead -1. AccessRights.RegistryReadDeviceConnect -1. AccessRights.RegistryReadRegistryWrite -1. AccessRights.RegistryReadRegistryWriteDeviceConnect -1. AccessRights.RegistryReadRegistryWriteServiceConnect -1. AccessRights.RegistryReadRegistryWriteServiceConnectDeviceConnect -1. AccessRights.RegistryReadServiceConnect -1. AccessRights.RegistryReadServiceConnectDeviceConnect -1. AccessRights.RegistryWrite -1. AccessRights.RegistryWriteDeviceConnect -1. AccessRights.RegistryWriteServiceConnect -1. AccessRights.RegistryWriteServiceConnectDeviceConnect -1. AccessRights.ServiceConnect -1. AccessRights.ServiceConnectDeviceConnect -1. AuthenticationType.IdentityBased -1. AuthenticationType.KeyBased -1. Capabilities.DeviceManagement -1. Capabilities.None -1. DefaultAction.Allow -1. DefaultAction.Deny -1. Encoding.Avro -1. Encoding.AvroDeflate -1. Encoding.JSON -1. EndpointHealthStatus.Dead -1. EndpointHealthStatus.Degraded -1. EndpointHealthStatus.Healthy -1. EndpointHealthStatus.Unhealthy -1. EndpointHealthStatus.Unknown -1. IPFilterActionType.Accept -1. IPFilterActionType.Reject -1. IotHubNameUnavailabilityReason.AlreadyExists -1. IotHubNameUnavailabilityReason.Invalid -1. IotHubReplicaRoleType.Primary -1. IotHubReplicaRoleType.Secondary -1. IotHubSku.B1 -1. IotHubSku.B2 -1. IotHubSku.B3 -1. IotHubSku.F1 -1. IotHubSku.S1 -1. IotHubSku.S2 -1. IotHubSku.S3 -1. IotHubSkuTier.Basic -1. IotHubSkuTier.Free -1. IotHubSkuTier.Standard -1. PrivateLinkServiceConnectionStatus.Approved -1. PrivateLinkServiceConnectionStatus.Disconnected -1. PrivateLinkServiceConnectionStatus.Pending -1. PrivateLinkServiceConnectionStatus.Rejected -1. PublicNetworkAccess.Disabled -1. PublicNetworkAccess.Enabled -1. RouteErrorSeverity.Error -1. RouteErrorSeverity.Warning -1. TestResultStatus.False -1. TestResultStatus.True -1. TestResultStatus.Undefined - ## Additive Changes -### New Constants +### New Funcs -1. AccessRights.AccessRightsDeviceConnect -1. AccessRights.AccessRightsRegistryRead -1. AccessRights.AccessRightsRegistryReadDeviceConnect -1. AccessRights.AccessRightsRegistryReadRegistryWrite -1. AccessRights.AccessRightsRegistryReadRegistryWriteDeviceConnect -1. AccessRights.AccessRightsRegistryReadRegistryWriteServiceConnect -1. AccessRights.AccessRightsRegistryReadRegistryWriteServiceConnectDeviceConnect -1. AccessRights.AccessRightsRegistryReadServiceConnect -1. AccessRights.AccessRightsRegistryReadServiceConnectDeviceConnect -1. AccessRights.AccessRightsRegistryWrite -1. AccessRights.AccessRightsRegistryWriteDeviceConnect -1. AccessRights.AccessRightsRegistryWriteServiceConnect -1. AccessRights.AccessRightsRegistryWriteServiceConnectDeviceConnect -1. AccessRights.AccessRightsServiceConnect -1. AccessRights.AccessRightsServiceConnectDeviceConnect -1. AuthenticationType.AuthenticationTypeIdentityBased -1. AuthenticationType.AuthenticationTypeKeyBased -1. Capabilities.CapabilitiesDeviceManagement -1. Capabilities.CapabilitiesNone -1. DefaultAction.DefaultActionAllow -1. DefaultAction.DefaultActionDeny -1. Encoding.EncodingAvro -1. Encoding.EncodingAvroDeflate -1. Encoding.EncodingJSON -1. EndpointHealthStatus.EndpointHealthStatusDead -1. EndpointHealthStatus.EndpointHealthStatusDegraded -1. EndpointHealthStatus.EndpointHealthStatusHealthy -1. EndpointHealthStatus.EndpointHealthStatusUnhealthy -1. EndpointHealthStatus.EndpointHealthStatusUnknown -1. IPFilterActionType.IPFilterActionTypeAccept -1. IPFilterActionType.IPFilterActionTypeReject -1. IotHubNameUnavailabilityReason.IotHubNameUnavailabilityReasonAlreadyExists -1. IotHubNameUnavailabilityReason.IotHubNameUnavailabilityReasonInvalid -1. IotHubReplicaRoleType.IotHubReplicaRoleTypePrimary -1. IotHubReplicaRoleType.IotHubReplicaRoleTypeSecondary -1. IotHubSku.IotHubSkuB1 -1. IotHubSku.IotHubSkuB2 -1. IotHubSku.IotHubSkuB3 -1. IotHubSku.IotHubSkuF1 -1. IotHubSku.IotHubSkuS1 -1. IotHubSku.IotHubSkuS2 -1. IotHubSku.IotHubSkuS3 -1. IotHubSkuTier.IotHubSkuTierBasic -1. IotHubSkuTier.IotHubSkuTierFree -1. IotHubSkuTier.IotHubSkuTierStandard -1. PrivateLinkServiceConnectionStatus.PrivateLinkServiceConnectionStatusApproved -1. PrivateLinkServiceConnectionStatus.PrivateLinkServiceConnectionStatusDisconnected -1. PrivateLinkServiceConnectionStatus.PrivateLinkServiceConnectionStatusPending -1. PrivateLinkServiceConnectionStatus.PrivateLinkServiceConnectionStatusRejected -1. PublicNetworkAccess.PublicNetworkAccessDisabled -1. PublicNetworkAccess.PublicNetworkAccessEnabled -1. RouteErrorSeverity.RouteErrorSeverityError -1. RouteErrorSeverity.RouteErrorSeverityWarning -1. TestResultStatus.TestResultStatusFalse -1. TestResultStatus.TestResultStatusTrue -1. TestResultStatus.TestResultStatusUndefined +1. ArmUserIdentity.MarshalJSON() ([]byte, error) +1. CertificatePropertiesWithNonce.MarshalJSON() ([]byte, error) +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. IotHubCapacity.MarshalJSON() ([]byte, error) +1. IotHubQuotaMetricInfo.MarshalJSON() ([]byte, error) +1. JobResponse.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. PrivateEndpoint.MarshalJSON() ([]byte, error) +1. RegistryStatistics.MarshalJSON() ([]byte, error) diff --git a/services/preview/iothub/mgmt/2021-03-03-preview/devices/_meta.json b/services/preview/iothub/mgmt/2021-03-03-preview/devices/_meta.json index 0d9448ca9be4..9563c711a1ad 100644 --- a/services/preview/iothub/mgmt/2021-03-03-preview/devices/_meta.json +++ b/services/preview/iothub/mgmt/2021-03-03-preview/devices/_meta.json @@ -2,9 +2,9 @@ "commit": "e5839301dfd424559851119c99ef0a2699fbd228", "readme": "/_/azure-rest-api-specs/specification/iothub/resource-manager/readme.md", "tag": "package-preview-2021-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-preview-2021-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/iothub/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-preview-2021-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/iothub/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix" } diff --git a/services/preview/iothub/mgmt/2021-03-03-preview/devices/models.go b/services/preview/iothub/mgmt/2021-03-03-preview/devices/models.go index d9f8a45f9e98..a042afc6726f 100644 --- a/services/preview/iothub/mgmt/2021-03-03-preview/devices/models.go +++ b/services/preview/iothub/mgmt/2021-03-03-preview/devices/models.go @@ -51,6 +51,12 @@ type ArmUserIdentity struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ArmUserIdentity. +func (aui ArmUserIdentity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificateBodyDescription the JSON-serialized X509 Certificate. type CertificateBodyDescription struct { // Certificate - base-64 representation of the X509 leaf certificate .cer file or just .pem file content. @@ -135,6 +141,12 @@ type CertificatePropertiesWithNonce struct { Certificate *string `json:"certificate,omitempty"` } +// MarshalJSON is the custom marshaler for CertificatePropertiesWithNonce. +func (cpwn CertificatePropertiesWithNonce) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificateVerificationDescription the JSON-serialized leaf certificate type CertificateVerificationDescription struct { // Certificate - base-64 representation of X509 certificate .cer file or just .pem file content. @@ -388,6 +400,12 @@ type ErrorDetails struct { Details *string `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EventHubConsumerGroupBodyDescription the EventHub consumer group. type EventHubConsumerGroupBodyDescription struct { Properties *EventHubConsumerGroupName `json:"properties,omitempty"` @@ -723,6 +741,12 @@ type IotHubCapacity struct { ScaleType IotHubScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for IotHubCapacity. +func (ihc IotHubCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IotHubDescription the description of the IoT hub. type IotHubDescription struct { autorest.Response `json:"-"` @@ -1114,6 +1138,12 @@ type IotHubQuotaMetricInfo struct { MaxValue *int64 `json:"maxValue,omitempty"` } +// MarshalJSON is the custom marshaler for IotHubQuotaMetricInfo. +func (ihqmi IotHubQuotaMetricInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IotHubQuotaMetricInfoListResult the JSON-serialized array of IotHubQuotaMetricInfo objects with a next // link. type IotHubQuotaMetricInfoListResult struct { @@ -1658,6 +1688,12 @@ type JobResponse struct { ParentJobID *string `json:"parentJobId,omitempty"` } +// MarshalJSON is the custom marshaler for JobResponse. +func (jr JobResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobResponseListResult the JSON-serialized array of JobResponse objects with a next link. type JobResponseListResult struct { autorest.Response `json:"-"` @@ -1919,6 +1955,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationInputs input values. type OperationInputs struct { // Name - The name of the IoT hub to check. @@ -1935,6 +1977,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -2091,6 +2139,12 @@ type PrivateEndpoint struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpoint. +func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection the private endpoint connection of an IotHub type PrivateEndpointConnection struct { autorest.Response `json:"-"` @@ -2232,6 +2286,12 @@ type RegistryStatistics struct { DisabledDeviceCount *int64 `json:"disabledDeviceCount,omitempty"` } +// MarshalJSON is the custom marshaler for RegistryStatistics. +func (rs RegistryStatistics) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource the common properties of an Azure resource. type Resource struct { // ID - READ-ONLY; The resource identifier. diff --git a/services/preview/iotspaces/mgmt/2017-10-01-preview/iotspaces/CHANGELOG.md b/services/preview/iotspaces/mgmt/2017-10-01-preview/iotspaces/CHANGELOG.md index 52911e4cc5e4..10f3ee60ca7d 100644 --- a/services/preview/iotspaces/mgmt/2017-10-01-preview/iotspaces/CHANGELOG.md +++ b/services/preview/iotspaces/mgmt/2017-10-01-preview/iotspaces/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) diff --git a/services/preview/iotspaces/mgmt/2017-10-01-preview/iotspaces/_meta.json b/services/preview/iotspaces/mgmt/2017-10-01-preview/iotspaces/_meta.json index bdeb849ea880..1226912829c1 100644 --- a/services/preview/iotspaces/mgmt/2017-10-01-preview/iotspaces/_meta.json +++ b/services/preview/iotspaces/mgmt/2017-10-01-preview/iotspaces/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/iotspaces/resource-manager/readme.md", "tag": "package-2017-10-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-10-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/iotspaces/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-10-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/iotspaces/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/iotspaces/mgmt/2017-10-01-preview/iotspaces/models.go b/services/preview/iotspaces/mgmt/2017-10-01-preview/iotspaces/models.go index f622bb769904..a7516dacc2f0 100644 --- a/services/preview/iotspaces/mgmt/2017-10-01-preview/iotspaces/models.go +++ b/services/preview/iotspaces/mgmt/2017-10-01-preview/iotspaces/models.go @@ -310,6 +310,12 @@ type ErrorDetails struct { Target *string `json:"target,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NameAvailabilityInfo the properties indicating whether a given IoTSpaces service name is available. type NameAvailabilityInfo struct { autorest.Response `json:"-"` @@ -358,6 +364,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (od OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationInputs input values. type OperationInputs struct { // Name - The name of the IoTSpaces service instance to check. diff --git a/services/preview/keyvault/mgmt/2020-04-01-preview/keyvault/CHANGELOG.md b/services/preview/keyvault/mgmt/2020-04-01-preview/keyvault/CHANGELOG.md index 52911e4cc5e4..042e76c26295 100644 --- a/services/preview/keyvault/mgmt/2020-04-01-preview/keyvault/CHANGELOG.md +++ b/services/preview/keyvault/mgmt/2020-04-01-preview/keyvault/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) +1. Error.MarshalJSON() ([]byte, error) +1. ManagedHsmError.MarshalJSON() ([]byte, error) +1. PrivateEndpoint.MarshalJSON() ([]byte, error) diff --git a/services/preview/keyvault/mgmt/2020-04-01-preview/keyvault/_meta.json b/services/preview/keyvault/mgmt/2020-04-01-preview/keyvault/_meta.json index cbfbc813b3a6..7edab3cccf7f 100644 --- a/services/preview/keyvault/mgmt/2020-04-01-preview/keyvault/_meta.json +++ b/services/preview/keyvault/mgmt/2020-04-01-preview/keyvault/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/keyvault/resource-manager/readme.md", "tag": "package-preview-2020-04", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-preview-2020-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/keyvault/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-preview-2020-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/keyvault/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/keyvault/mgmt/2020-04-01-preview/keyvault/models.go b/services/preview/keyvault/mgmt/2020-04-01-preview/keyvault/models.go index 589cad2d0e64..f5cf4c25aecc 100644 --- a/services/preview/keyvault/mgmt/2020-04-01-preview/keyvault/models.go +++ b/services/preview/keyvault/mgmt/2020-04-01-preview/keyvault/models.go @@ -45,6 +45,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from Key Vault resource provider type CloudError struct { Error *CloudErrorBody `json:"error,omitempty"` @@ -269,6 +275,12 @@ type Error struct { InnerError *Error `json:"innererror,omitempty"` } +// MarshalJSON is the custom marshaler for Error. +func (e Error) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IPRule a rule governing the accessibility of a vault from a specific ip address or ip range. type IPRule struct { // Value - An IPv4 address range in CIDR notation, such as '124.56.78.91' (simple IP address) or '124.56.78.0/24' (all addresses that start with 124.56.78). @@ -328,6 +340,12 @@ type ManagedHsmError struct { Error *Error `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedHsmError. +func (mhe ManagedHsmError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedHsmListResult list of managed HSM Pools type ManagedHsmListResult struct { autorest.Response `json:"-"` @@ -987,6 +1005,12 @@ type PrivateEndpoint struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpoint. +func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection private endpoint connection resource. type PrivateEndpointConnection struct { autorest.Response `json:"-"` diff --git a/services/preview/keyvault/v7.2-preview/keyvault/CHANGELOG.md b/services/preview/keyvault/v7.2-preview/keyvault/CHANGELOG.md index 52911e4cc5e4..6c701c1c40af 100644 --- a/services/preview/keyvault/v7.2-preview/keyvault/CHANGELOG.md +++ b/services/preview/keyvault/v7.2-preview/keyvault/CHANGELOG.md @@ -1,2 +1,26 @@ # Change History +## Additive Changes + +### New Funcs + +1. BackupCertificateResult.MarshalJSON() ([]byte, error) +1. BackupKeyResult.MarshalJSON() ([]byte, error) +1. BackupSecretResult.MarshalJSON() ([]byte, error) +1. BackupStorageResult.MarshalJSON() ([]byte, error) +1. CertificateIssuerListResult.MarshalJSON() ([]byte, error) +1. CertificateListResult.MarshalJSON() ([]byte, error) +1. DeletedCertificateListResult.MarshalJSON() ([]byte, error) +1. DeletedKeyListResult.MarshalJSON() ([]byte, error) +1. DeletedSasDefinitionListResult.MarshalJSON() ([]byte, error) +1. DeletedSecretListResult.MarshalJSON() ([]byte, error) +1. DeletedStorageListResult.MarshalJSON() ([]byte, error) +1. Error.MarshalJSON() ([]byte, error) +1. ErrorType.MarshalJSON() ([]byte, error) +1. KeyListResult.MarshalJSON() ([]byte, error) +1. KeyOperationResult.MarshalJSON() ([]byte, error) +1. KeyVerifyResult.MarshalJSON() ([]byte, error) +1. PendingCertificateSigningRequestResult.MarshalJSON() ([]byte, error) +1. SasDefinitionListResult.MarshalJSON() ([]byte, error) +1. SecretListResult.MarshalJSON() ([]byte, error) +1. StorageListResult.MarshalJSON() ([]byte, error) diff --git a/services/preview/keyvault/v7.2-preview/keyvault/_meta.json b/services/preview/keyvault/v7.2-preview/keyvault/_meta.json index 98af94fcab0a..66d16411156a 100644 --- a/services/preview/keyvault/v7.2-preview/keyvault/_meta.json +++ b/services/preview/keyvault/v7.2-preview/keyvault/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/keyvault/data-plane/readme.md", "tag": "package-7.2-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-7.2-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/keyvault/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-7.2-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/keyvault/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/keyvault/v7.2-preview/keyvault/models.go b/services/preview/keyvault/v7.2-preview/keyvault/models.go index 2a4db889d796..6223a58dd85f 100644 --- a/services/preview/keyvault/v7.2-preview/keyvault/models.go +++ b/services/preview/keyvault/v7.2-preview/keyvault/models.go @@ -74,6 +74,12 @@ type BackupCertificateResult struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for BackupCertificateResult. +func (bcr BackupCertificateResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BackupKeyResult the backup key result, containing the backup blob. type BackupKeyResult struct { autorest.Response `json:"-"` @@ -81,6 +87,12 @@ type BackupKeyResult struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for BackupKeyResult. +func (bkr BackupKeyResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BackupSecretResult the backup secret result, containing the backup blob. type BackupSecretResult struct { autorest.Response `json:"-"` @@ -88,6 +100,12 @@ type BackupSecretResult struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for BackupSecretResult. +func (bsr BackupSecretResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BackupStorageResult the backup storage result, containing the backup blob. type BackupStorageResult struct { autorest.Response `json:"-"` @@ -95,6 +113,12 @@ type BackupStorageResult struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for BackupStorageResult. +func (bsr BackupStorageResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificateAttributes the certificate management attributes. type CertificateAttributes struct { // RecoverableDays - READ-ONLY; softDelete data retention days. Value should be >=7 and <=90 when softDelete enabled, otherwise 0. @@ -254,6 +278,12 @@ type CertificateIssuerListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for CertificateIssuerListResult. +func (cilr CertificateIssuerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificateIssuerListResultIterator provides access to a complete listing of CertificateIssuerItem // values. type CertificateIssuerListResultIterator struct { @@ -468,6 +498,12 @@ type CertificateListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for CertificateListResult. +func (clr CertificateListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificateListResultIterator provides access to a complete listing of CertificateItem values. type CertificateListResultIterator struct { i int @@ -903,6 +939,12 @@ type DeletedCertificateListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DeletedCertificateListResult. +func (dclr DeletedCertificateListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeletedCertificateListResultIterator provides access to a complete listing of DeletedCertificateItem // values. type DeletedCertificateListResultIterator struct { @@ -1141,6 +1183,12 @@ type DeletedKeyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DeletedKeyListResult. +func (dklr DeletedKeyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeletedKeyListResultIterator provides access to a complete listing of DeletedKeyItem values. type DeletedKeyListResultIterator struct { i int @@ -1363,6 +1411,12 @@ type DeletedSasDefinitionListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DeletedSasDefinitionListResult. +func (dsdlr DeletedSasDefinitionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeletedSasDefinitionListResultIterator provides access to a complete listing of DeletedSasDefinitionItem // values. type DeletedSasDefinitionListResultIterator struct { @@ -1614,6 +1668,12 @@ type DeletedSecretListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DeletedSecretListResult. +func (dslr DeletedSecretListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeletedSecretListResultIterator provides access to a complete listing of DeletedSecretItem values. type DeletedSecretListResultIterator struct { i int @@ -1836,6 +1896,12 @@ type DeletedStorageListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DeletedStorageListResult. +func (dslr DeletedStorageListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeletedStorageListResultIterator provides access to a complete listing of DeletedStorageAccountItem // values. type DeletedStorageListResultIterator struct { @@ -2013,12 +2079,24 @@ type Error struct { InnerError *Error `json:"innererror,omitempty"` } +// MarshalJSON is the custom marshaler for Error. +func (e Error) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorType the key vault error exception. type ErrorType struct { // Error - READ-ONLY Error *Error `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorType. +func (et ErrorType) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FullBackupFuture an abstraction for monitoring and retrieving the results of a long-running operation. type FullBackupFuture struct { azure.FutureAPI @@ -2475,6 +2553,12 @@ type KeyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for KeyListResult. +func (klr KeyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // KeyListResultIterator provides access to a complete listing of KeyItem values. type KeyListResultIterator struct { i int @@ -2634,6 +2718,12 @@ type KeyOperationResult struct { Result *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for KeyOperationResult. +func (kor KeyOperationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // KeyOperationsParameters the key operations parameters. type KeyOperationsParameters struct { // Algorithm - algorithm identifier. Possible values include: 'RSAOAEP', 'RSAOAEP256', 'RSA15', 'A128GCM', 'A192GCM', 'A256GCM', 'A128KW', 'A192KW', 'A256KW', 'A128CBC', 'A192CBC', 'A256CBC', 'A128CBCPAD', 'A192CBCPAD', 'A256CBCPAD' @@ -2730,6 +2820,12 @@ type KeyVerifyResult struct { Value *bool `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for KeyVerifyResult. +func (kvr KeyVerifyResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LifetimeAction action and its trigger that will be performed by Key Vault over the lifetime of a // certificate. type LifetimeAction struct { @@ -2753,6 +2849,12 @@ type PendingCertificateSigningRequestResult struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PendingCertificateSigningRequestResult. +func (pcsrr PendingCertificateSigningRequestResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Permission role definition permissions. type Permission struct { // Actions - Allowed actions. @@ -3362,6 +3464,12 @@ type SasDefinitionListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SasDefinitionListResult. +func (sdlr SasDefinitionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SasDefinitionListResultIterator provides access to a complete listing of SasDefinitionItem values. type SasDefinitionListResultIterator struct { i int @@ -3669,6 +3777,12 @@ type SecretListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SecretListResult. +func (slr SecretListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SecretListResultIterator provides access to a complete listing of SecretItem values. type SecretListResultIterator struct { i int @@ -4194,6 +4308,12 @@ type StorageListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for StorageListResult. +func (slr StorageListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageListResultIterator provides access to a complete listing of StorageAccountItem values. type StorageListResultIterator struct { i int diff --git a/services/preview/kubernetesconfiguration/mgmt/2019-11-01-preview/kubernetesconfiguration/CHANGELOG.md b/services/preview/kubernetesconfiguration/mgmt/2019-11-01-preview/kubernetesconfiguration/CHANGELOG.md index 52911e4cc5e4..74231721ba02 100644 --- a/services/preview/kubernetesconfiguration/mgmt/2019-11-01-preview/kubernetesconfiguration/CHANGELOG.md +++ b/services/preview/kubernetesconfiguration/mgmt/2019-11-01-preview/kubernetesconfiguration/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. ErrorDefinition.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. SourceControlConfigurationList.MarshalJSON() ([]byte, error) diff --git a/services/preview/kubernetesconfiguration/mgmt/2019-11-01-preview/kubernetesconfiguration/_meta.json b/services/preview/kubernetesconfiguration/mgmt/2019-11-01-preview/kubernetesconfiguration/_meta.json index 9ce7284d6646..440f91c88851 100644 --- a/services/preview/kubernetesconfiguration/mgmt/2019-11-01-preview/kubernetesconfiguration/_meta.json +++ b/services/preview/kubernetesconfiguration/mgmt/2019-11-01-preview/kubernetesconfiguration/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/kubernetesconfiguration/resource-manager/readme.md", "tag": "package-2019-11-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-11-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/kubernetesconfiguration/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-11-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/kubernetesconfiguration/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/kubernetesconfiguration/mgmt/2019-11-01-preview/kubernetesconfiguration/models.go b/services/preview/kubernetesconfiguration/mgmt/2019-11-01-preview/kubernetesconfiguration/models.go index 32370a22a14a..3ceb56756229 100644 --- a/services/preview/kubernetesconfiguration/mgmt/2019-11-01-preview/kubernetesconfiguration/models.go +++ b/services/preview/kubernetesconfiguration/mgmt/2019-11-01-preview/kubernetesconfiguration/models.go @@ -57,6 +57,12 @@ type ErrorDefinition struct { Details *[]ErrorDefinition `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDefinition. +func (ed ErrorDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse error response. type ErrorResponse struct { // Error - Error definition. @@ -81,6 +87,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource the Resource model definition. type Resource struct { // ID - READ-ONLY; Resource Id @@ -91,6 +103,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceProviderOperation supported operation of this resource provider. type ResourceProviderOperation struct { // Name - Operation name, in format of {provider}/{resource}/{operation} @@ -369,6 +387,12 @@ type SourceControlConfigurationList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SourceControlConfigurationList. +func (sccl SourceControlConfigurationList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SourceControlConfigurationListIterator provides access to a complete listing of // SourceControlConfiguration values. type SourceControlConfigurationListIterator struct { diff --git a/services/preview/kubernetesconfiguration/mgmt/2020-07-01-preview/kubernetesconfiguration/CHANGELOG.md b/services/preview/kubernetesconfiguration/mgmt/2020-07-01-preview/kubernetesconfiguration/CHANGELOG.md index 52911e4cc5e4..790fe8c9fac7 100644 --- a/services/preview/kubernetesconfiguration/mgmt/2020-07-01-preview/kubernetesconfiguration/CHANGELOG.md +++ b/services/preview/kubernetesconfiguration/mgmt/2020-07-01-preview/kubernetesconfiguration/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. ExtensionInstancesList.MarshalJSON() ([]byte, error) +1. SourceControlConfigurationList.MarshalJSON() ([]byte, error) +1. SystemData.MarshalJSON() ([]byte, error) diff --git a/services/preview/kubernetesconfiguration/mgmt/2020-07-01-preview/kubernetesconfiguration/_meta.json b/services/preview/kubernetesconfiguration/mgmt/2020-07-01-preview/kubernetesconfiguration/_meta.json index d8666fc13a84..9d35f22367dd 100644 --- a/services/preview/kubernetesconfiguration/mgmt/2020-07-01-preview/kubernetesconfiguration/_meta.json +++ b/services/preview/kubernetesconfiguration/mgmt/2020-07-01-preview/kubernetesconfiguration/_meta.json @@ -2,9 +2,9 @@ "commit": "d9506558e6389e62926ae385f1d625a1376a0f9d", "readme": "/_/azure-rest-api-specs/specification/kubernetesconfiguration/resource-manager/readme.md", "tag": "package-2020-07-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-07-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/kubernetesconfiguration/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-07-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/kubernetesconfiguration/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/kubernetesconfiguration/mgmt/2020-07-01-preview/kubernetesconfiguration/models.go b/services/preview/kubernetesconfiguration/mgmt/2020-07-01-preview/kubernetesconfiguration/models.go index 9a0ce23aca06..3ed9e5e2aea7 100644 --- a/services/preview/kubernetesconfiguration/mgmt/2020-07-01-preview/kubernetesconfiguration/models.go +++ b/services/preview/kubernetesconfiguration/mgmt/2020-07-01-preview/kubernetesconfiguration/models.go @@ -245,6 +245,12 @@ type ExtensionInstancesList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ExtensionInstancesList. +func (eil ExtensionInstancesList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExtensionInstancesListIterator provides access to a complete listing of ExtensionInstance values. type ExtensionInstancesListIterator struct { i int @@ -834,6 +840,12 @@ type SourceControlConfigurationList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SourceControlConfigurationList. +func (sccl SourceControlConfigurationList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SourceControlConfigurationListIterator provides access to a complete listing of // SourceControlConfiguration values. type SourceControlConfigurationListIterator struct { @@ -1104,3 +1116,9 @@ type SystemData struct { // LastModifiedAt - READ-ONLY; The timestamp of resource last modification (UTC) LastModifiedAt *date.Time `json:"lastModifiedAt,omitempty"` } + +// MarshalJSON is the custom marshaler for SystemData. +func (sd SystemData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/preview/kusto/mgmt/2018-09-07-preview/kusto/CHANGELOG.md b/services/preview/kusto/mgmt/2018-09-07-preview/kusto/CHANGELOG.md index 52911e4cc5e4..4a0e9bec8e2f 100644 --- a/services/preview/kusto/mgmt/2018-09-07-preview/kusto/CHANGELOG.md +++ b/services/preview/kusto/mgmt/2018-09-07-preview/kusto/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/kusto/mgmt/2018-09-07-preview/kusto/_meta.json b/services/preview/kusto/mgmt/2018-09-07-preview/kusto/_meta.json index 2015549a5f27..5c3bfc2cc015 100644 --- a/services/preview/kusto/mgmt/2018-09-07-preview/kusto/_meta.json +++ b/services/preview/kusto/mgmt/2018-09-07-preview/kusto/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/azure-kusto/resource-manager/readme.md", "tag": "package-2018-09-07-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-09-07-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/azure-kusto/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-09-07-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/azure-kusto/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/kusto/mgmt/2018-09-07-preview/kusto/models.go b/services/preview/kusto/mgmt/2018-09-07-preview/kusto/models.go index b4e9d22f4ece..6e02bf2765b9 100644 --- a/services/preview/kusto/mgmt/2018-09-07-preview/kusto/models.go +++ b/services/preview/kusto/mgmt/2018-09-07-preview/kusto/models.go @@ -43,6 +43,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureResourceSku ... type AzureResourceSku struct { // ResourceType - Resource Namespace and Type. @@ -1561,6 +1567,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -1571,6 +1583,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource // which has 'tags' and a 'location' type TrackedResource struct { diff --git a/services/preview/logic/mgmt/2015-02-01-preview/logic/CHANGELOG.md b/services/preview/logic/mgmt/2015-02-01-preview/logic/CHANGELOG.md index 52911e4cc5e4..c19570609a7f 100644 --- a/services/preview/logic/mgmt/2015-02-01-preview/logic/CHANGELOG.md +++ b/services/preview/logic/mgmt/2015-02-01-preview/logic/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. WorkflowRunActionProperties.MarshalJSON() ([]byte, error) +1. WorkflowRunTrigger.MarshalJSON() ([]byte, error) +1. WorkflowSecretKeys.MarshalJSON() ([]byte, error) +1. WorkflowTriggerHistoryProperties.MarshalJSON() ([]byte, error) +1. WorkflowTriggerProperties.MarshalJSON() ([]byte, error) diff --git a/services/preview/logic/mgmt/2015-02-01-preview/logic/_meta.json b/services/preview/logic/mgmt/2015-02-01-preview/logic/_meta.json index c4c4b0634c3f..7f6c9b54911c 100644 --- a/services/preview/logic/mgmt/2015-02-01-preview/logic/_meta.json +++ b/services/preview/logic/mgmt/2015-02-01-preview/logic/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/logic/resource-manager/readme.md", "tag": "package-2015-02-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2015-02-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/logic/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2015-02-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/logic/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/logic/mgmt/2015-02-01-preview/logic/models.go b/services/preview/logic/mgmt/2015-02-01-preview/logic/models.go index 4c351b51aa5e..35a3699cafd4 100644 --- a/services/preview/logic/mgmt/2015-02-01-preview/logic/models.go +++ b/services/preview/logic/mgmt/2015-02-01-preview/logic/models.go @@ -1066,6 +1066,12 @@ type WorkflowRunActionProperties struct { OutputsLink *ContentLink `json:"outputsLink,omitempty"` } +// MarshalJSON is the custom marshaler for WorkflowRunActionProperties. +func (wrap WorkflowRunActionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WorkflowRunFilter ... type WorkflowRunFilter struct { // Status - Gets or sets the status of workflow run. Possible values include: 'WorkflowStatusNotSpecified', 'WorkflowStatusPaused', 'WorkflowStatusRunning', 'WorkflowStatusWaiting', 'WorkflowStatusSucceeded', 'WorkflowStatusSkipped', 'WorkflowStatusSuspended', 'WorkflowStatusCancelled', 'WorkflowStatusFailed', 'WorkflowStatusFaulted', 'WorkflowStatusTimedOut', 'WorkflowStatusAborted' @@ -1285,6 +1291,12 @@ type WorkflowRunTrigger struct { Error interface{} `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for WorkflowRunTrigger. +func (wrt WorkflowRunTrigger) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WorkflowSecretKeys ... type WorkflowSecretKeys struct { autorest.Response `json:"-"` @@ -1294,6 +1306,12 @@ type WorkflowSecretKeys struct { SecondarySecretKey *string `json:"secondarySecretKey,omitempty"` } +// MarshalJSON is the custom marshaler for WorkflowSecretKeys. +func (wsk WorkflowSecretKeys) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WorkflowsRunFuture an abstraction for monitoring and retrieving the results of a long-running operation. type WorkflowsRunFuture struct { azure.FutureAPI @@ -1684,6 +1702,12 @@ type WorkflowTriggerHistoryProperties struct { Run *ResourceReference `json:"run,omitempty"` } +// MarshalJSON is the custom marshaler for WorkflowTriggerHistoryProperties. +func (wthp WorkflowTriggerHistoryProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WorkflowTriggerListResult ... type WorkflowTriggerListResult struct { autorest.Response `json:"-"` @@ -1865,6 +1889,12 @@ type WorkflowTriggerProperties struct { Workflow *ResourceReference `json:"workflow,omitempty"` } +// MarshalJSON is the custom marshaler for WorkflowTriggerProperties. +func (wtp WorkflowTriggerProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WorkflowTriggerRecurrence ... type WorkflowTriggerRecurrence struct { // Frequency - Gets or sets the frequency. Possible values include: 'Second', 'Minute', 'Hour', 'Day', 'Week', 'Month', 'Year' diff --git a/services/preview/logic/mgmt/2015-08-01-preview/logic/_meta.json b/services/preview/logic/mgmt/2015-08-01-preview/logic/_meta.json index ce8c621d4bd2..fcff522214fc 100644 --- a/services/preview/logic/mgmt/2015-08-01-preview/logic/_meta.json +++ b/services/preview/logic/mgmt/2015-08-01-preview/logic/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/logic/resource-manager/readme.md", "tag": "package-2015-08-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2015-08-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/logic/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2015-08-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/logic/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/logic/mgmt/2018-07-01-preview/logic/CHANGELOG.md b/services/preview/logic/mgmt/2018-07-01-preview/logic/CHANGELOG.md index 52911e4cc5e4..a5c7313295f6 100644 --- a/services/preview/logic/mgmt/2018-07-01-preview/logic/CHANGELOG.md +++ b/services/preview/logic/mgmt/2018-07-01-preview/logic/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. SubResource.MarshalJSON() ([]byte, error) +1. WorkflowTriggerProperties.MarshalJSON() ([]byte, error) diff --git a/services/preview/logic/mgmt/2018-07-01-preview/logic/_meta.json b/services/preview/logic/mgmt/2018-07-01-preview/logic/_meta.json index 3c1f838bc97b..efd795aad8b2 100644 --- a/services/preview/logic/mgmt/2018-07-01-preview/logic/_meta.json +++ b/services/preview/logic/mgmt/2018-07-01-preview/logic/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/logic/resource-manager/readme.md", "tag": "package-2018-07-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-07-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/logic/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-07-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/logic/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/logic/mgmt/2018-07-01-preview/logic/models.go b/services/preview/logic/mgmt/2018-07-01-preview/logic/models.go index 0e603c69a218..80db17b67ac4 100644 --- a/services/preview/logic/mgmt/2018-07-01-preview/logic/models.go +++ b/services/preview/logic/mgmt/2018-07-01-preview/logic/models.go @@ -3510,6 +3510,12 @@ type SubResource struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for SubResource. +func (sr SubResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackingEvent ... type TrackingEvent struct { // EventLevel - Possible values include: 'LogAlways', 'Critical', 'Error', 'Warning', 'Informational', 'Verbose' @@ -5230,6 +5236,12 @@ type WorkflowTriggerProperties struct { Workflow *ResourceReference `json:"workflow,omitempty"` } +// MarshalJSON is the custom marshaler for WorkflowTriggerProperties. +func (wtp WorkflowTriggerProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WorkflowTriggerRecurrence the workflow trigger recurrence. type WorkflowTriggerRecurrence struct { // Frequency - The frequency. Possible values include: 'RecurrenceFrequencyNotSpecified', 'RecurrenceFrequencySecond', 'RecurrenceFrequencyMinute', 'RecurrenceFrequencyHour', 'RecurrenceFrequencyDay', 'RecurrenceFrequencyWeek', 'RecurrenceFrequencyMonth', 'RecurrenceFrequencyYear' diff --git a/services/preview/logz/mgmt/2020-10-01-preview/logz/CHANGELOG.md b/services/preview/logz/mgmt/2020-10-01-preview/logz/CHANGELOG.md new file mode 100644 index 000000000000..52911e4cc5e4 --- /dev/null +++ b/services/preview/logz/mgmt/2020-10-01-preview/logz/CHANGELOG.md @@ -0,0 +1,2 @@ +# Change History + diff --git a/services/preview/logz/mgmt/2020-10-01-preview/logz/_meta.json b/services/preview/logz/mgmt/2020-10-01-preview/logz/_meta.json new file mode 100644 index 000000000000..854acc7cea71 --- /dev/null +++ b/services/preview/logz/mgmt/2020-10-01-preview/logz/_meta.json @@ -0,0 +1,11 @@ +{ + "commit": "394395ed0bdc1c5c05cb37a031379ca03bfebbb5", + "readme": "/_/azure-rest-api-specs/specification/logz/resource-manager/readme.md", + "tag": "package-2020-10-01-preview", + "use": "@microsoft.azure/autorest.go@2.1.183", + "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-10-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/logz/resource-manager/readme.md", + "additional_properties": { + "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix" + } +} \ No newline at end of file diff --git a/services/preview/logz/mgmt/2020-10-01-preview/logz/client.go b/services/preview/logz/mgmt/2020-10-01-preview/logz/client.go new file mode 100644 index 000000000000..be10d37f71c1 --- /dev/null +++ b/services/preview/logz/mgmt/2020-10-01-preview/logz/client.go @@ -0,0 +1,41 @@ +// Package logz implements the Azure ARM Logz service API version 2020-10-01-preview. +// +// +package logz + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/Azure/go-autorest/autorest" +) + +const ( + // DefaultBaseURI is the default URI used for the service Logz + DefaultBaseURI = "https://management.azure.com" +) + +// BaseClient is the base client for Logz. +type BaseClient struct { + autorest.Client + BaseURI string + SubscriptionID string +} + +// New creates an instance of the BaseClient client. +func New(subscriptionID string) BaseClient { + return NewWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with +// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { + return BaseClient{ + Client: autorest.NewClientWithUserAgent(UserAgent()), + BaseURI: baseURI, + SubscriptionID: subscriptionID, + } +} diff --git a/services/preview/logz/mgmt/2020-10-01-preview/logz/enums.go b/services/preview/logz/mgmt/2020-10-01-preview/logz/enums.go new file mode 100644 index 000000000000..4dd0f5ce1618 --- /dev/null +++ b/services/preview/logz/mgmt/2020-10-01-preview/logz/enums.go @@ -0,0 +1,181 @@ +package logz + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CreatedByType enumerates the values for created by type. +type CreatedByType string + +const ( + // CreatedByTypeApplication ... + CreatedByTypeApplication CreatedByType = "Application" + // CreatedByTypeKey ... + CreatedByTypeKey CreatedByType = "Key" + // CreatedByTypeManagedIdentity ... + CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" + // CreatedByTypeUser ... + CreatedByTypeUser CreatedByType = "User" +) + +// PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type. +func PossibleCreatedByTypeValues() []CreatedByType { + return []CreatedByType{CreatedByTypeApplication, CreatedByTypeKey, CreatedByTypeManagedIdentity, CreatedByTypeUser} +} + +// LiftrResourceCategories enumerates the values for liftr resource categories. +type LiftrResourceCategories string + +const ( + // LiftrResourceCategoriesMonitorLogs ... + LiftrResourceCategoriesMonitorLogs LiftrResourceCategories = "MonitorLogs" + // LiftrResourceCategoriesUnknown ... + LiftrResourceCategoriesUnknown LiftrResourceCategories = "Unknown" +) + +// PossibleLiftrResourceCategoriesValues returns an array of possible values for the LiftrResourceCategories const type. +func PossibleLiftrResourceCategoriesValues() []LiftrResourceCategories { + return []LiftrResourceCategories{LiftrResourceCategoriesMonitorLogs, LiftrResourceCategoriesUnknown} +} + +// ManagedIdentityTypes enumerates the values for managed identity types. +type ManagedIdentityTypes string + +const ( + // ManagedIdentityTypesSystemAssigned ... + ManagedIdentityTypesSystemAssigned ManagedIdentityTypes = "SystemAssigned" + // ManagedIdentityTypesUserAssigned ... + ManagedIdentityTypesUserAssigned ManagedIdentityTypes = "UserAssigned" +) + +// PossibleManagedIdentityTypesValues returns an array of possible values for the ManagedIdentityTypes const type. +func PossibleManagedIdentityTypesValues() []ManagedIdentityTypes { + return []ManagedIdentityTypes{ManagedIdentityTypesSystemAssigned, ManagedIdentityTypesUserAssigned} +} + +// MarketplaceSubscriptionStatus enumerates the values for marketplace subscription status. +type MarketplaceSubscriptionStatus string + +const ( + // MarketplaceSubscriptionStatusActive ... + MarketplaceSubscriptionStatusActive MarketplaceSubscriptionStatus = "Active" + // MarketplaceSubscriptionStatusSuspended ... + MarketplaceSubscriptionStatusSuspended MarketplaceSubscriptionStatus = "Suspended" +) + +// PossibleMarketplaceSubscriptionStatusValues returns an array of possible values for the MarketplaceSubscriptionStatus const type. +func PossibleMarketplaceSubscriptionStatusValues() []MarketplaceSubscriptionStatus { + return []MarketplaceSubscriptionStatus{MarketplaceSubscriptionStatusActive, MarketplaceSubscriptionStatusSuspended} +} + +// MonitoringStatus enumerates the values for monitoring status. +type MonitoringStatus string + +const ( + // MonitoringStatusDisabled ... + MonitoringStatusDisabled MonitoringStatus = "Disabled" + // MonitoringStatusEnabled ... + MonitoringStatusEnabled MonitoringStatus = "Enabled" +) + +// PossibleMonitoringStatusValues returns an array of possible values for the MonitoringStatus const type. +func PossibleMonitoringStatusValues() []MonitoringStatus { + return []MonitoringStatus{MonitoringStatusDisabled, MonitoringStatusEnabled} +} + +// ProvisioningState enumerates the values for provisioning state. +type ProvisioningState string + +const ( + // ProvisioningStateAccepted ... + ProvisioningStateAccepted ProvisioningState = "Accepted" + // ProvisioningStateCanceled ... + ProvisioningStateCanceled ProvisioningState = "Canceled" + // ProvisioningStateCreating ... + ProvisioningStateCreating ProvisioningState = "Creating" + // ProvisioningStateDeleted ... + ProvisioningStateDeleted ProvisioningState = "Deleted" + // ProvisioningStateDeleting ... + ProvisioningStateDeleting ProvisioningState = "Deleting" + // ProvisioningStateFailed ... + ProvisioningStateFailed ProvisioningState = "Failed" + // ProvisioningStateNotSpecified ... + ProvisioningStateNotSpecified ProvisioningState = "NotSpecified" + // ProvisioningStateSucceeded ... + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + // ProvisioningStateUpdating ... + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +// PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type. +func PossibleProvisioningStateValues() []ProvisioningState { + return []ProvisioningState{ProvisioningStateAccepted, ProvisioningStateCanceled, ProvisioningStateCreating, ProvisioningStateDeleted, ProvisioningStateDeleting, ProvisioningStateFailed, ProvisioningStateNotSpecified, ProvisioningStateSucceeded, ProvisioningStateUpdating} +} + +// SingleSignOnStates enumerates the values for single sign on states. +type SingleSignOnStates string + +const ( + // SingleSignOnStatesDisable ... + SingleSignOnStatesDisable SingleSignOnStates = "Disable" + // SingleSignOnStatesEnable ... + SingleSignOnStatesEnable SingleSignOnStates = "Enable" + // SingleSignOnStatesExisting ... + SingleSignOnStatesExisting SingleSignOnStates = "Existing" + // SingleSignOnStatesInitial ... + SingleSignOnStatesInitial SingleSignOnStates = "Initial" +) + +// PossibleSingleSignOnStatesValues returns an array of possible values for the SingleSignOnStates const type. +func PossibleSingleSignOnStatesValues() []SingleSignOnStates { + return []SingleSignOnStates{SingleSignOnStatesDisable, SingleSignOnStatesEnable, SingleSignOnStatesExisting, SingleSignOnStatesInitial} +} + +// TagAction enumerates the values for tag action. +type TagAction string + +const ( + // TagActionExclude ... + TagActionExclude TagAction = "Exclude" + // TagActionInclude ... + TagActionInclude TagAction = "Include" +) + +// PossibleTagActionValues returns an array of possible values for the TagAction const type. +func PossibleTagActionValues() []TagAction { + return []TagAction{TagActionExclude, TagActionInclude} +} + +// UserRole enumerates the values for user role. +type UserRole string + +const ( + // UserRoleAdmin ... + UserRoleAdmin UserRole = "Admin" + // UserRoleNone ... + UserRoleNone UserRole = "None" + // UserRoleUser ... + UserRoleUser UserRole = "User" +) + +// PossibleUserRoleValues returns an array of possible values for the UserRole const type. +func PossibleUserRoleValues() []UserRole { + return []UserRole{UserRoleAdmin, UserRoleNone, UserRoleUser} +} + +// VMHostUpdateStates enumerates the values for vm host update states. +type VMHostUpdateStates string + +const ( + // VMHostUpdateStatesDelete ... + VMHostUpdateStatesDelete VMHostUpdateStates = "Delete" + // VMHostUpdateStatesInstall ... + VMHostUpdateStatesInstall VMHostUpdateStates = "Install" +) + +// PossibleVMHostUpdateStatesValues returns an array of possible values for the VMHostUpdateStates const type. +func PossibleVMHostUpdateStatesValues() []VMHostUpdateStates { + return []VMHostUpdateStates{VMHostUpdateStatesDelete, VMHostUpdateStatesInstall} +} diff --git a/services/preview/logz/mgmt/2020-10-01-preview/logz/logzapi/interfaces.go b/services/preview/logz/mgmt/2020-10-01-preview/logz/logzapi/interfaces.go new file mode 100644 index 000000000000..82b2bfae531f --- /dev/null +++ b/services/preview/logz/mgmt/2020-10-01-preview/logz/logzapi/interfaces.go @@ -0,0 +1,101 @@ +package logzapi + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/azure-sdk-for-go/services/preview/logz/mgmt/2020-10-01-preview/logz" + "github.com/Azure/go-autorest/autorest" +) + +// MonitorsClientAPI contains the set of methods on the MonitorsClient type. +type MonitorsClientAPI interface { + Create(ctx context.Context, resourceGroupName string, monitorName string, body *logz.MonitorResource) (result logz.MonitorsCreateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, monitorName string) (result logz.MonitorsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, monitorName string) (result logz.MonitorResource, err error) + ListByResourceGroup(ctx context.Context, resourceGroupName string) (result logz.MonitorResourceListResponsePage, err error) + ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result logz.MonitorResourceListResponseIterator, err error) + ListBySubscription(ctx context.Context) (result logz.MonitorResourceListResponsePage, err error) + ListBySubscriptionComplete(ctx context.Context) (result logz.MonitorResourceListResponseIterator, err error) + ListMonitoredResources(ctx context.Context, resourceGroupName string, monitorName string) (result logz.MonitoredResourceListResponsePage, err error) + ListMonitoredResourcesComplete(ctx context.Context, resourceGroupName string, monitorName string) (result logz.MonitoredResourceListResponseIterator, err error) + ListUserRoles(ctx context.Context, resourceGroupName string, monitorName string, body *logz.UserRoleRequest) (result logz.UserRoleListResponsePage, err error) + ListUserRolesComplete(ctx context.Context, resourceGroupName string, monitorName string, body *logz.UserRoleRequest) (result logz.UserRoleListResponseIterator, err error) + Update(ctx context.Context, resourceGroupName string, monitorName string, body *logz.MonitorResourceUpdateParameters) (result logz.MonitorResource, err error) +} + +var _ MonitorsClientAPI = (*logz.MonitorsClient)(nil) + +// OperationsClientAPI contains the set of methods on the OperationsClient type. +type OperationsClientAPI interface { + List(ctx context.Context) (result logz.OperationListResultPage, err error) + ListComplete(ctx context.Context) (result logz.OperationListResultIterator, err error) +} + +var _ OperationsClientAPI = (*logz.OperationsClient)(nil) + +// TagRulesClientAPI contains the set of methods on the TagRulesClient type. +type TagRulesClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, monitorName string, ruleSetName string, body *logz.MonitoringTagRules) (result logz.MonitoringTagRules, err error) + Delete(ctx context.Context, resourceGroupName string, monitorName string, ruleSetName string) (result autorest.Response, err error) + Get(ctx context.Context, resourceGroupName string, monitorName string, ruleSetName string) (result logz.MonitoringTagRules, err error) + List(ctx context.Context, resourceGroupName string, monitorName string) (result logz.MonitoringTagRulesListResponsePage, err error) + ListComplete(ctx context.Context, resourceGroupName string, monitorName string) (result logz.MonitoringTagRulesListResponseIterator, err error) +} + +var _ TagRulesClientAPI = (*logz.TagRulesClient)(nil) + +// SingleSignOnClientAPI contains the set of methods on the SingleSignOnClient type. +type SingleSignOnClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, monitorName string, configurationName string, body *logz.SingleSignOnResource) (result logz.SingleSignOnCreateOrUpdateFuture, err error) + Get(ctx context.Context, resourceGroupName string, monitorName string, configurationName string) (result logz.SingleSignOnResource, err error) + List(ctx context.Context, resourceGroupName string, monitorName string) (result logz.SingleSignOnResourceListResponsePage, err error) + ListComplete(ctx context.Context, resourceGroupName string, monitorName string) (result logz.SingleSignOnResourceListResponseIterator, err error) +} + +var _ SingleSignOnClientAPI = (*logz.SingleSignOnClient)(nil) + +// SubAccountClientAPI contains the set of methods on the SubAccountClient type. +type SubAccountClientAPI interface { + Create(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string, body *logz.MonitorResource) (result logz.SubAccountCreateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string) (result logz.SubAccountDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string) (result logz.MonitorResource, err error) + List(ctx context.Context, resourceGroupName string, monitorName string) (result logz.MonitorResourceListResponsePage, err error) + ListComplete(ctx context.Context, resourceGroupName string, monitorName string) (result logz.MonitorResourceListResponseIterator, err error) + ListMonitoredResources(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string) (result logz.MonitoredResourceListResponsePage, err error) + ListMonitoredResourcesComplete(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string) (result logz.MonitoredResourceListResponseIterator, err error) + ListVMHosts(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string) (result logz.VMResourcesListResponsePage, err error) + ListVMHostsComplete(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string) (result logz.VMResourcesListResponseIterator, err error) + ListVMHostUpdate(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string, body *logz.VMHostUpdateRequest) (result logz.VMResourcesListResponsePage, err error) + ListVMHostUpdateComplete(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string, body *logz.VMHostUpdateRequest) (result logz.VMResourcesListResponseIterator, err error) + Update(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string, body *logz.MonitorResourceUpdateParameters) (result logz.MonitorResource, err error) + VMHostPayload(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string) (result logz.VMExtensionPayload, err error) +} + +var _ SubAccountClientAPI = (*logz.SubAccountClient)(nil) + +// SubAccountTagRulesClientAPI contains the set of methods on the SubAccountTagRulesClient type. +type SubAccountTagRulesClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string, ruleSetName string, body *logz.MonitoringTagRules) (result logz.MonitoringTagRules, err error) + Delete(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string, ruleSetName string) (result autorest.Response, err error) + Get(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string, ruleSetName string) (result logz.MonitoringTagRules, err error) + List(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string) (result logz.MonitoringTagRulesListResponsePage, err error) + ListComplete(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string) (result logz.MonitoringTagRulesListResponseIterator, err error) +} + +var _ SubAccountTagRulesClientAPI = (*logz.SubAccountTagRulesClient)(nil) + +// MonitorClientAPI contains the set of methods on the MonitorClient type. +type MonitorClientAPI interface { + ListVMHosts(ctx context.Context, resourceGroupName string, monitorName string) (result logz.VMResourcesListResponsePage, err error) + ListVMHostsComplete(ctx context.Context, resourceGroupName string, monitorName string) (result logz.VMResourcesListResponseIterator, err error) + ListVMHostUpdate(ctx context.Context, resourceGroupName string, monitorName string, body *logz.VMHostUpdateRequest) (result logz.VMResourcesListResponsePage, err error) + ListVMHostUpdateComplete(ctx context.Context, resourceGroupName string, monitorName string, body *logz.VMHostUpdateRequest) (result logz.VMResourcesListResponseIterator, err error) + VMHostPayload(ctx context.Context, resourceGroupName string, monitorName string) (result logz.VMExtensionPayload, err error) +} + +var _ MonitorClientAPI = (*logz.MonitorClient)(nil) diff --git a/services/preview/logz/mgmt/2020-10-01-preview/logz/models.go b/services/preview/logz/mgmt/2020-10-01-preview/logz/models.go new file mode 100644 index 000000000000..0ea8ac2e03a0 --- /dev/null +++ b/services/preview/logz/mgmt/2020-10-01-preview/logz/models.go @@ -0,0 +1,1737 @@ +package logz + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "encoding/json" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/date" + "github.com/Azure/go-autorest/autorest/to" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// The package's fully qualified name. +const fqdn = "github.com/Azure/azure-sdk-for-go/services/preview/logz/mgmt/2020-10-01-preview/logz" + +// ErrorAdditionalInfo the resource management error additional info. +type ErrorAdditionalInfo struct { + // Type - READ-ONLY; The additional info type. + Type *string `json:"type,omitempty"` + // Info - READ-ONLY; The additional info. + Info interface{} `json:"info,omitempty"` +} + +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// ErrorDetail the error detail. +type ErrorDetail struct { + // Code - READ-ONLY; The error code. + Code *string `json:"code,omitempty"` + // Message - READ-ONLY; The error message. + Message *string `json:"message,omitempty"` + // Target - READ-ONLY; The error target. + Target *string `json:"target,omitempty"` + // Details - READ-ONLY; The error details. + Details *[]ErrorDetail `json:"details,omitempty"` + // AdditionalInfo - READ-ONLY; The error additional info. + AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` +} + +// MarshalJSON is the custom marshaler for ErrorDetail. +func (ed ErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// ErrorResponse common error response for all Azure Resource Manager APIs to return error details for +// failed operations. (This also follows the OData error response format.). +type ErrorResponse struct { + // Error - The error object. + Error *ErrorDetail `json:"error,omitempty"` +} + +// FilteringTag the definition of a filtering tag. Filtering tags are used for capturing resources and +// include/exclude them from being monitored. +type FilteringTag struct { + // Name - The name (also known as the key) of the tag. + Name *string `json:"name,omitempty"` + // Value - The value of the tag. + Value *string `json:"value,omitempty"` + // Action - Possible values include: 'TagActionInclude', 'TagActionExclude' + Action TagAction `json:"action,omitempty"` +} + +// IdentityProperties ... +type IdentityProperties struct { + // PrincipalID - READ-ONLY; The identity ID. + PrincipalID *string `json:"principalId,omitempty"` + // TenantID - READ-ONLY; The tenant ID of resource. + TenantID *string `json:"tenantId,omitempty"` + // Type - Possible values include: 'ManagedIdentityTypesSystemAssigned', 'ManagedIdentityTypesUserAssigned' + Type ManagedIdentityTypes `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for IdentityProperties. +func (IP IdentityProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if IP.Type != "" { + objectMap["type"] = IP.Type + } + return json.Marshal(objectMap) +} + +// LogRules set of rules for sending logs for the Monitor resource. +type LogRules struct { + // SendAadLogs - Flag specifying if AAD logs should be sent for the Monitor resource. + SendAadLogs *bool `json:"sendAadLogs,omitempty"` + // SendSubscriptionLogs - Flag specifying if subscription logs should be sent for the Monitor resource. + SendSubscriptionLogs *bool `json:"sendSubscriptionLogs,omitempty"` + // SendActivityLogs - Flag specifying if activity logs from Azure resources should be sent for the Monitor resource. + SendActivityLogs *bool `json:"sendActivityLogs,omitempty"` + // FilteringTags - List of filtering tags to be used for capturing logs. This only takes effect if SendActivityLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags. + FilteringTags *[]FilteringTag `json:"filteringTags,omitempty"` +} + +// MonitoredResource the properties of a resource currently being monitored by the Logz monitor resource. +type MonitoredResource struct { + // ID - The ARM id of the resource. + ID *string `json:"id,omitempty"` + // SendingMetrics - Flag indicating if resource is sending metrics to Logz. + SendingMetrics *bool `json:"sendingMetrics,omitempty"` + // ReasonForMetricsStatus - Reason for why the resource is sending metrics (or why it is not sending). + ReasonForMetricsStatus *string `json:"reasonForMetricsStatus,omitempty"` + // SendingLogs - Flag indicating if resource is sending logs to Logz. + SendingLogs *bool `json:"sendingLogs,omitempty"` + SystemData *SystemData `json:"systemData,omitempty"` + // ReasonForLogsStatus - Reason for why the resource is sending logs (or why it is not sending). + ReasonForLogsStatus *string `json:"reasonForLogsStatus,omitempty"` +} + +// MonitoredResourceListResponse response of a list operation. +type MonitoredResourceListResponse struct { + autorest.Response `json:"-"` + // Value - Results of a list operation. + Value *[]MonitoredResource `json:"value,omitempty"` + // NextLink - Link to the next set of results, if any. + NextLink *string `json:"nextLink,omitempty"` +} + +// MonitoredResourceListResponseIterator provides access to a complete listing of MonitoredResource values. +type MonitoredResourceListResponseIterator struct { + i int + page MonitoredResourceListResponsePage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *MonitoredResourceListResponseIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/MonitoredResourceListResponseIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *MonitoredResourceListResponseIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter MonitoredResourceListResponseIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter MonitoredResourceListResponseIterator) Response() MonitoredResourceListResponse { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter MonitoredResourceListResponseIterator) Value() MonitoredResource { + if !iter.page.NotDone() { + return MonitoredResource{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the MonitoredResourceListResponseIterator type. +func NewMonitoredResourceListResponseIterator(page MonitoredResourceListResponsePage) MonitoredResourceListResponseIterator { + return MonitoredResourceListResponseIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (mrlr MonitoredResourceListResponse) IsEmpty() bool { + return mrlr.Value == nil || len(*mrlr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (mrlr MonitoredResourceListResponse) hasNextLink() bool { + return mrlr.NextLink != nil && len(*mrlr.NextLink) != 0 +} + +// monitoredResourceListResponsePreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (mrlr MonitoredResourceListResponse) monitoredResourceListResponsePreparer(ctx context.Context) (*http.Request, error) { + if !mrlr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(mrlr.NextLink))) +} + +// MonitoredResourceListResponsePage contains a page of MonitoredResource values. +type MonitoredResourceListResponsePage struct { + fn func(context.Context, MonitoredResourceListResponse) (MonitoredResourceListResponse, error) + mrlr MonitoredResourceListResponse +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *MonitoredResourceListResponsePage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/MonitoredResourceListResponsePage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.mrlr) + if err != nil { + return err + } + page.mrlr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *MonitoredResourceListResponsePage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page MonitoredResourceListResponsePage) NotDone() bool { + return !page.mrlr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page MonitoredResourceListResponsePage) Response() MonitoredResourceListResponse { + return page.mrlr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page MonitoredResourceListResponsePage) Values() []MonitoredResource { + if page.mrlr.IsEmpty() { + return nil + } + return *page.mrlr.Value +} + +// Creates a new instance of the MonitoredResourceListResponsePage type. +func NewMonitoredResourceListResponsePage(cur MonitoredResourceListResponse, getNextPage func(context.Context, MonitoredResourceListResponse) (MonitoredResourceListResponse, error)) MonitoredResourceListResponsePage { + return MonitoredResourceListResponsePage{ + fn: getNextPage, + mrlr: cur, + } +} + +// MonitoringTagRules capture logs and metrics of Azure resources based on ARM tags. +type MonitoringTagRules struct { + autorest.Response `json:"-"` + // Name - READ-ONLY; Name of the rule set. + Name *string `json:"name,omitempty"` + // ID - READ-ONLY; The id of the rule set. + ID *string `json:"id,omitempty"` + // Type - READ-ONLY; The type of the rule set. + Type *string `json:"type,omitempty"` + // SystemData - READ-ONLY; The system metadata relating to this resource + SystemData *SystemData `json:"systemData,omitempty"` + Properties *MonitoringTagRulesProperties `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for MonitoringTagRules. +func (mtr MonitoringTagRules) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if mtr.Properties != nil { + objectMap["properties"] = mtr.Properties + } + return json.Marshal(objectMap) +} + +// MonitoringTagRulesListResponse response of a list operation. +type MonitoringTagRulesListResponse struct { + autorest.Response `json:"-"` + // Value - Results of a list operation. + Value *[]MonitoringTagRules `json:"value,omitempty"` + // NextLink - Link to the next set of results, if any. + NextLink *string `json:"nextLink,omitempty"` +} + +// MonitoringTagRulesListResponseIterator provides access to a complete listing of MonitoringTagRules +// values. +type MonitoringTagRulesListResponseIterator struct { + i int + page MonitoringTagRulesListResponsePage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *MonitoringTagRulesListResponseIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/MonitoringTagRulesListResponseIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *MonitoringTagRulesListResponseIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter MonitoringTagRulesListResponseIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter MonitoringTagRulesListResponseIterator) Response() MonitoringTagRulesListResponse { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter MonitoringTagRulesListResponseIterator) Value() MonitoringTagRules { + if !iter.page.NotDone() { + return MonitoringTagRules{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the MonitoringTagRulesListResponseIterator type. +func NewMonitoringTagRulesListResponseIterator(page MonitoringTagRulesListResponsePage) MonitoringTagRulesListResponseIterator { + return MonitoringTagRulesListResponseIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (mtrlr MonitoringTagRulesListResponse) IsEmpty() bool { + return mtrlr.Value == nil || len(*mtrlr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (mtrlr MonitoringTagRulesListResponse) hasNextLink() bool { + return mtrlr.NextLink != nil && len(*mtrlr.NextLink) != 0 +} + +// monitoringTagRulesListResponsePreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (mtrlr MonitoringTagRulesListResponse) monitoringTagRulesListResponsePreparer(ctx context.Context) (*http.Request, error) { + if !mtrlr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(mtrlr.NextLink))) +} + +// MonitoringTagRulesListResponsePage contains a page of MonitoringTagRules values. +type MonitoringTagRulesListResponsePage struct { + fn func(context.Context, MonitoringTagRulesListResponse) (MonitoringTagRulesListResponse, error) + mtrlr MonitoringTagRulesListResponse +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *MonitoringTagRulesListResponsePage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/MonitoringTagRulesListResponsePage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.mtrlr) + if err != nil { + return err + } + page.mtrlr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *MonitoringTagRulesListResponsePage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page MonitoringTagRulesListResponsePage) NotDone() bool { + return !page.mtrlr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page MonitoringTagRulesListResponsePage) Response() MonitoringTagRulesListResponse { + return page.mtrlr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page MonitoringTagRulesListResponsePage) Values() []MonitoringTagRules { + if page.mtrlr.IsEmpty() { + return nil + } + return *page.mtrlr.Value +} + +// Creates a new instance of the MonitoringTagRulesListResponsePage type. +func NewMonitoringTagRulesListResponsePage(cur MonitoringTagRulesListResponse, getNextPage func(context.Context, MonitoringTagRulesListResponse) (MonitoringTagRulesListResponse, error)) MonitoringTagRulesListResponsePage { + return MonitoringTagRulesListResponsePage{ + fn: getNextPage, + mtrlr: cur, + } +} + +// MonitoringTagRulesProperties definition of the properties for a TagRules resource. +type MonitoringTagRulesProperties struct { + // ProvisioningState - Possible values include: 'ProvisioningStateAccepted', 'ProvisioningStateCreating', 'ProvisioningStateUpdating', 'ProvisioningStateDeleting', 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled', 'ProvisioningStateDeleted', 'ProvisioningStateNotSpecified' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + LogRules *LogRules `json:"logRules,omitempty"` + SystemData *SystemData `json:"systemData,omitempty"` +} + +// MonitorProperties properties specific to the monitor resource. +type MonitorProperties struct { + // ProvisioningState - Possible values include: 'ProvisioningStateAccepted', 'ProvisioningStateCreating', 'ProvisioningStateUpdating', 'ProvisioningStateDeleting', 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled', 'ProvisioningStateDeleted', 'ProvisioningStateNotSpecified' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // MonitoringStatus - Possible values include: 'MonitoringStatusEnabled', 'MonitoringStatusDisabled' + MonitoringStatus MonitoringStatus `json:"monitoringStatus,omitempty"` + // MarketplaceSubscriptionStatus - Possible values include: 'MarketplaceSubscriptionStatusActive', 'MarketplaceSubscriptionStatusSuspended' + MarketplaceSubscriptionStatus MarketplaceSubscriptionStatus `json:"marketplaceSubscriptionStatus,omitempty"` + LogzOrganizationProperties *OrganizationProperties `json:"logzOrganizationProperties,omitempty"` + UserInfo *UserInfo `json:"userInfo,omitempty"` + PlanData *PlanData `json:"planData,omitempty"` + // LiftrResourceCategory - Possible values include: 'LiftrResourceCategoriesUnknown', 'LiftrResourceCategoriesMonitorLogs' + LiftrResourceCategory LiftrResourceCategories `json:"liftrResourceCategory,omitempty"` + // LiftrResourcePreference - READ-ONLY; The priority of the resource. + LiftrResourcePreference *int32 `json:"liftrResourcePreference,omitempty"` +} + +// MarshalJSON is the custom marshaler for MonitorProperties. +func (mp MonitorProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if mp.ProvisioningState != "" { + objectMap["provisioningState"] = mp.ProvisioningState + } + if mp.MonitoringStatus != "" { + objectMap["monitoringStatus"] = mp.MonitoringStatus + } + if mp.MarketplaceSubscriptionStatus != "" { + objectMap["marketplaceSubscriptionStatus"] = mp.MarketplaceSubscriptionStatus + } + if mp.LogzOrganizationProperties != nil { + objectMap["logzOrganizationProperties"] = mp.LogzOrganizationProperties + } + if mp.UserInfo != nil { + objectMap["userInfo"] = mp.UserInfo + } + if mp.PlanData != nil { + objectMap["planData"] = mp.PlanData + } + if mp.LiftrResourceCategory != "" { + objectMap["liftrResourceCategory"] = mp.LiftrResourceCategory + } + return json.Marshal(objectMap) +} + +// MonitorResource ... +type MonitorResource struct { + autorest.Response `json:"-"` + // ID - READ-ONLY; ARM id of the monitor resource. + ID *string `json:"id,omitempty"` + // SystemData - READ-ONLY; The system metadata relating to this resource + SystemData *SystemData `json:"systemData,omitempty"` + // Name - READ-ONLY; Name of the monitor resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the monitor resource. + Type *string `json:"type,omitempty"` + Properties *MonitorProperties `json:"properties,omitempty"` + Identity *IdentityProperties `json:"identity,omitempty"` + Tags map[string]*string `json:"tags"` + Location *string `json:"location,omitempty"` +} + +// MarshalJSON is the custom marshaler for MonitorResource. +func (mr MonitorResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if mr.Properties != nil { + objectMap["properties"] = mr.Properties + } + if mr.Identity != nil { + objectMap["identity"] = mr.Identity + } + if mr.Tags != nil { + objectMap["tags"] = mr.Tags + } + if mr.Location != nil { + objectMap["location"] = mr.Location + } + return json.Marshal(objectMap) +} + +// MonitorResourceListResponse response of a list operation. +type MonitorResourceListResponse struct { + autorest.Response `json:"-"` + // Value - Results of a list operation. + Value *[]MonitorResource `json:"value,omitempty"` + // NextLink - Link to the next set of results, if any. + NextLink *string `json:"nextLink,omitempty"` +} + +// MonitorResourceListResponseIterator provides access to a complete listing of MonitorResource values. +type MonitorResourceListResponseIterator struct { + i int + page MonitorResourceListResponsePage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *MonitorResourceListResponseIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/MonitorResourceListResponseIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *MonitorResourceListResponseIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter MonitorResourceListResponseIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter MonitorResourceListResponseIterator) Response() MonitorResourceListResponse { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter MonitorResourceListResponseIterator) Value() MonitorResource { + if !iter.page.NotDone() { + return MonitorResource{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the MonitorResourceListResponseIterator type. +func NewMonitorResourceListResponseIterator(page MonitorResourceListResponsePage) MonitorResourceListResponseIterator { + return MonitorResourceListResponseIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (mrlr MonitorResourceListResponse) IsEmpty() bool { + return mrlr.Value == nil || len(*mrlr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (mrlr MonitorResourceListResponse) hasNextLink() bool { + return mrlr.NextLink != nil && len(*mrlr.NextLink) != 0 +} + +// monitorResourceListResponsePreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (mrlr MonitorResourceListResponse) monitorResourceListResponsePreparer(ctx context.Context) (*http.Request, error) { + if !mrlr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(mrlr.NextLink))) +} + +// MonitorResourceListResponsePage contains a page of MonitorResource values. +type MonitorResourceListResponsePage struct { + fn func(context.Context, MonitorResourceListResponse) (MonitorResourceListResponse, error) + mrlr MonitorResourceListResponse +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *MonitorResourceListResponsePage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/MonitorResourceListResponsePage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.mrlr) + if err != nil { + return err + } + page.mrlr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *MonitorResourceListResponsePage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page MonitorResourceListResponsePage) NotDone() bool { + return !page.mrlr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page MonitorResourceListResponsePage) Response() MonitorResourceListResponse { + return page.mrlr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page MonitorResourceListResponsePage) Values() []MonitorResource { + if page.mrlr.IsEmpty() { + return nil + } + return *page.mrlr.Value +} + +// Creates a new instance of the MonitorResourceListResponsePage type. +func NewMonitorResourceListResponsePage(cur MonitorResourceListResponse, getNextPage func(context.Context, MonitorResourceListResponse) (MonitorResourceListResponse, error)) MonitorResourceListResponsePage { + return MonitorResourceListResponsePage{ + fn: getNextPage, + mrlr: cur, + } +} + +// MonitorResourceUpdateParameters the parameters for a PATCH request to a monitor resource. +type MonitorResourceUpdateParameters struct { + Properties *MonitorUpdateProperties `json:"properties,omitempty"` + // Tags - The new tags of the monitor resource. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for MonitorResourceUpdateParameters. +func (mrup MonitorResourceUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if mrup.Properties != nil { + objectMap["properties"] = mrup.Properties + } + if mrup.Tags != nil { + objectMap["tags"] = mrup.Tags + } + return json.Marshal(objectMap) +} + +// MonitorsCreateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type MonitorsCreateFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(MonitorsClient) (MonitorResource, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *MonitorsCreateFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for MonitorsCreateFuture.Result. +func (future *MonitorsCreateFuture) result(client MonitorsClient) (mr MonitorResource, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.MonitorsCreateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + mr.Response.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("logz.MonitorsCreateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if mr.Response.Response, err = future.GetResult(sender); err == nil && mr.Response.Response.StatusCode != http.StatusNoContent { + mr, err = client.CreateResponder(mr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.MonitorsCreateFuture", "Result", mr.Response.Response, "Failure responding to request") + } + } + return +} + +// MonitorsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type MonitorsDeleteFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(MonitorsClient) (autorest.Response, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *MonitorsDeleteFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for MonitorsDeleteFuture.Result. +func (future *MonitorsDeleteFuture) result(client MonitorsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.MonitorsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + ar.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("logz.MonitorsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// MonitorUpdateProperties the set of properties that can be update in a PATCH request to a monitor +// resource. +type MonitorUpdateProperties struct { + // MonitoringStatus - Possible values include: 'MonitoringStatusEnabled', 'MonitoringStatusDisabled' + MonitoringStatus MonitoringStatus `json:"monitoringStatus,omitempty"` +} + +// OperationDisplay the object that represents the operation. +type OperationDisplay struct { + // Provider - Service provider, i.e., Microsoft.Logz. + Provider *string `json:"provider,omitempty"` + // Resource - Type on which the operation is performed, e.g., 'monitors'. + Resource *string `json:"resource,omitempty"` + // Operation - Operation type, e.g., read, write, delete, etc. + Operation *string `json:"operation,omitempty"` + // Description - Description of the operation, e.g., 'Write monitors'. + Description *string `json:"description,omitempty"` +} + +// OperationListResult result of GET request to list the Microsoft.Logz operations. +type OperationListResult struct { + autorest.Response `json:"-"` + // Value - List of operations supported by the Microsoft.Logz provider. + Value *[]OperationResult `json:"value,omitempty"` + // NextLink - URL to get the next set of operation list results if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// OperationListResultIterator provides access to a complete listing of OperationResult values. +type OperationListResultIterator struct { + i int + page OperationListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *OperationListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter OperationListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter OperationListResultIterator) Response() OperationListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter OperationListResultIterator) Value() OperationResult { + if !iter.page.NotDone() { + return OperationResult{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the OperationListResultIterator type. +func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator { + return OperationListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (olr OperationListResult) IsEmpty() bool { + return olr.Value == nil || len(*olr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (olr OperationListResult) hasNextLink() bool { + return olr.NextLink != nil && len(*olr.NextLink) != 0 +} + +// operationListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (olr OperationListResult) operationListResultPreparer(ctx context.Context) (*http.Request, error) { + if !olr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(olr.NextLink))) +} + +// OperationListResultPage contains a page of OperationResult values. +type OperationListResultPage struct { + fn func(context.Context, OperationListResult) (OperationListResult, error) + olr OperationListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.olr) + if err != nil { + return err + } + page.olr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *OperationListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page OperationListResultPage) NotDone() bool { + return !page.olr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page OperationListResultPage) Response() OperationListResult { + return page.olr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page OperationListResultPage) Values() []OperationResult { + if page.olr.IsEmpty() { + return nil + } + return *page.olr.Value +} + +// Creates a new instance of the OperationListResultPage type. +func NewOperationListResultPage(cur OperationListResult, getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage { + return OperationListResultPage{ + fn: getNextPage, + olr: cur, + } +} + +// OperationResult a Microsoft.Logz REST API operation. +type OperationResult struct { + // Name - Operation name, i.e., {provider}/{resource}/{operation}. + Name *string `json:"name,omitempty"` + // IsDataAction - Indicates whether the operation is a data action + IsDataAction *bool `json:"isDataAction,omitempty"` + Display *OperationDisplay `json:"display,omitempty"` + // Origin - Origin of the operation + Origin *string `json:"origin,omitempty"` +} + +// OrganizationProperties ... +type OrganizationProperties struct { + // CompanyName - Name of the Logz organization. + CompanyName *string `json:"companyName,omitempty"` + // ID - READ-ONLY; Id of the Logz organization. + ID *string `json:"id,omitempty"` + // EnterpriseAppID - The Id of the Enterprise App used for Single sign on. + EnterpriseAppID *string `json:"enterpriseAppId,omitempty"` + // SingleSignOnURL - The login URL specific to this Logz Organization. + SingleSignOnURL *string `json:"singleSignOnUrl,omitempty"` +} + +// MarshalJSON is the custom marshaler for OrganizationProperties. +func (op OrganizationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if op.CompanyName != nil { + objectMap["companyName"] = op.CompanyName + } + if op.EnterpriseAppID != nil { + objectMap["enterpriseAppId"] = op.EnterpriseAppID + } + if op.SingleSignOnURL != nil { + objectMap["singleSignOnUrl"] = op.SingleSignOnURL + } + return json.Marshal(objectMap) +} + +// PlanData ... +type PlanData struct { + // UsageType - different usage type like PAYG/COMMITTED. this could be enum + UsageType *string `json:"usageType,omitempty"` + // BillingCycle - different billing cycles like MONTHLY/WEEKLY. this could be enum + BillingCycle *string `json:"billingCycle,omitempty"` + // PlanDetails - plan id as published by Logz + PlanDetails *string `json:"planDetails,omitempty"` + // EffectiveDate - date when plan was applied + EffectiveDate *date.Time `json:"effectiveDate,omitempty"` +} + +// SingleSignOnCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type SingleSignOnCreateOrUpdateFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(SingleSignOnClient) (SingleSignOnResource, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *SingleSignOnCreateOrUpdateFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for SingleSignOnCreateOrUpdateFuture.Result. +func (future *SingleSignOnCreateOrUpdateFuture) result(client SingleSignOnClient) (ssor SingleSignOnResource, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SingleSignOnCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + ssor.Response.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("logz.SingleSignOnCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if ssor.Response.Response, err = future.GetResult(sender); err == nil && ssor.Response.Response.StatusCode != http.StatusNoContent { + ssor, err = client.CreateOrUpdateResponder(ssor.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SingleSignOnCreateOrUpdateFuture", "Result", ssor.Response.Response, "Failure responding to request") + } + } + return +} + +// SingleSignOnProperties ... +type SingleSignOnProperties struct { + // SingleSignOnState - Possible values include: 'SingleSignOnStatesInitial', 'SingleSignOnStatesEnable', 'SingleSignOnStatesDisable', 'SingleSignOnStatesExisting' + SingleSignOnState SingleSignOnStates `json:"singleSignOnState,omitempty"` + // EnterpriseAppID - The Id of the Enterprise App used for Single sign-on. + EnterpriseAppID *string `json:"enterpriseAppId,omitempty"` + // SingleSignOnURL - The login URL specific to this Logz Organization. + SingleSignOnURL *string `json:"singleSignOnUrl,omitempty"` + // ProvisioningState - Possible values include: 'ProvisioningStateAccepted', 'ProvisioningStateCreating', 'ProvisioningStateUpdating', 'ProvisioningStateDeleting', 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled', 'ProvisioningStateDeleted', 'ProvisioningStateNotSpecified' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` +} + +// SingleSignOnResource ... +type SingleSignOnResource struct { + autorest.Response `json:"-"` + // ID - READ-ONLY; ARM id of the resource. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Name of the configuration. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. + Type *string `json:"type,omitempty"` + SystemData *SystemData `json:"systemData,omitempty"` + Properties *SingleSignOnProperties `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for SingleSignOnResource. +func (ssor SingleSignOnResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ssor.SystemData != nil { + objectMap["systemData"] = ssor.SystemData + } + if ssor.Properties != nil { + objectMap["properties"] = ssor.Properties + } + return json.Marshal(objectMap) +} + +// SingleSignOnResourceListResponse response of a list operation. +type SingleSignOnResourceListResponse struct { + autorest.Response `json:"-"` + // Value - Results of a list operation. + Value *[]SingleSignOnResource `json:"value,omitempty"` + // NextLink - Link to the next set of results, if any. + NextLink *string `json:"nextLink,omitempty"` +} + +// SingleSignOnResourceListResponseIterator provides access to a complete listing of SingleSignOnResource +// values. +type SingleSignOnResourceListResponseIterator struct { + i int + page SingleSignOnResourceListResponsePage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *SingleSignOnResourceListResponseIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SingleSignOnResourceListResponseIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *SingleSignOnResourceListResponseIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter SingleSignOnResourceListResponseIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter SingleSignOnResourceListResponseIterator) Response() SingleSignOnResourceListResponse { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter SingleSignOnResourceListResponseIterator) Value() SingleSignOnResource { + if !iter.page.NotDone() { + return SingleSignOnResource{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the SingleSignOnResourceListResponseIterator type. +func NewSingleSignOnResourceListResponseIterator(page SingleSignOnResourceListResponsePage) SingleSignOnResourceListResponseIterator { + return SingleSignOnResourceListResponseIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (ssorlr SingleSignOnResourceListResponse) IsEmpty() bool { + return ssorlr.Value == nil || len(*ssorlr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (ssorlr SingleSignOnResourceListResponse) hasNextLink() bool { + return ssorlr.NextLink != nil && len(*ssorlr.NextLink) != 0 +} + +// singleSignOnResourceListResponsePreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (ssorlr SingleSignOnResourceListResponse) singleSignOnResourceListResponsePreparer(ctx context.Context) (*http.Request, error) { + if !ssorlr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(ssorlr.NextLink))) +} + +// SingleSignOnResourceListResponsePage contains a page of SingleSignOnResource values. +type SingleSignOnResourceListResponsePage struct { + fn func(context.Context, SingleSignOnResourceListResponse) (SingleSignOnResourceListResponse, error) + ssorlr SingleSignOnResourceListResponse +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *SingleSignOnResourceListResponsePage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SingleSignOnResourceListResponsePage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.ssorlr) + if err != nil { + return err + } + page.ssorlr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *SingleSignOnResourceListResponsePage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page SingleSignOnResourceListResponsePage) NotDone() bool { + return !page.ssorlr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page SingleSignOnResourceListResponsePage) Response() SingleSignOnResourceListResponse { + return page.ssorlr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page SingleSignOnResourceListResponsePage) Values() []SingleSignOnResource { + if page.ssorlr.IsEmpty() { + return nil + } + return *page.ssorlr.Value +} + +// Creates a new instance of the SingleSignOnResourceListResponsePage type. +func NewSingleSignOnResourceListResponsePage(cur SingleSignOnResourceListResponse, getNextPage func(context.Context, SingleSignOnResourceListResponse) (SingleSignOnResourceListResponse, error)) SingleSignOnResourceListResponsePage { + return SingleSignOnResourceListResponsePage{ + fn: getNextPage, + ssorlr: cur, + } +} + +// SubAccountCreateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type SubAccountCreateFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(SubAccountClient) (MonitorResource, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *SubAccountCreateFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for SubAccountCreateFuture.Result. +func (future *SubAccountCreateFuture) result(client SubAccountClient) (mr MonitorResource, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SubAccountCreateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + mr.Response.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("logz.SubAccountCreateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if mr.Response.Response, err = future.GetResult(sender); err == nil && mr.Response.Response.StatusCode != http.StatusNoContent { + mr, err = client.CreateResponder(mr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SubAccountCreateFuture", "Result", mr.Response.Response, "Failure responding to request") + } + } + return +} + +// SubAccountDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type SubAccountDeleteFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(SubAccountClient) (autorest.Response, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *SubAccountDeleteFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for SubAccountDeleteFuture.Result. +func (future *SubAccountDeleteFuture) result(client SubAccountClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SubAccountDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + ar.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("logz.SubAccountDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// SystemData metadata pertaining to creation and last modification of the resource. +type SystemData struct { + // CreatedBy - The identity that created the resource. + CreatedBy *string `json:"createdBy,omitempty"` + // CreatedByType - The type of identity that created the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey' + CreatedByType CreatedByType `json:"createdByType,omitempty"` + // CreatedAt - The timestamp of resource creation (UTC). + CreatedAt *date.Time `json:"createdAt,omitempty"` + // LastModifiedBy - The identity that last modified the resource. + LastModifiedBy *string `json:"lastModifiedBy,omitempty"` + // LastModifiedByType - The type of identity that last modified the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey' + LastModifiedByType CreatedByType `json:"lastModifiedByType,omitempty"` + // LastModifiedAt - The timestamp of resource last modification (UTC) + LastModifiedAt *date.Time `json:"lastModifiedAt,omitempty"` +} + +// UserInfo ... +type UserInfo struct { + // FirstName - First Name of the user + FirstName *string `json:"firstName,omitempty"` + // LastName - Last Name of the user + LastName *string `json:"lastName,omitempty"` + // EmailAddress - Email of the user used by Logz for contacting them if needed + EmailAddress *string `json:"emailAddress,omitempty"` + // PhoneNumber - Phone number of the user used by Logz for contacting them if needed + PhoneNumber *string `json:"phoneNumber,omitempty"` +} + +// UserRoleListResponse response for list of user's role for Logz.io account. +type UserRoleListResponse struct { + autorest.Response `json:"-"` + // Value - List of user roles for Logz.io account. + Value *[]UserRoleResponse `json:"value,omitempty"` + // NextLink - Link to the next set of results, if any. + NextLink *string `json:"nextLink,omitempty"` +} + +// UserRoleListResponseIterator provides access to a complete listing of UserRoleResponse values. +type UserRoleListResponseIterator struct { + i int + page UserRoleListResponsePage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *UserRoleListResponseIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/UserRoleListResponseIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *UserRoleListResponseIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter UserRoleListResponseIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter UserRoleListResponseIterator) Response() UserRoleListResponse { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter UserRoleListResponseIterator) Value() UserRoleResponse { + if !iter.page.NotDone() { + return UserRoleResponse{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the UserRoleListResponseIterator type. +func NewUserRoleListResponseIterator(page UserRoleListResponsePage) UserRoleListResponseIterator { + return UserRoleListResponseIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (urlr UserRoleListResponse) IsEmpty() bool { + return urlr.Value == nil || len(*urlr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (urlr UserRoleListResponse) hasNextLink() bool { + return urlr.NextLink != nil && len(*urlr.NextLink) != 0 +} + +// userRoleListResponsePreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (urlr UserRoleListResponse) userRoleListResponsePreparer(ctx context.Context) (*http.Request, error) { + if !urlr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(urlr.NextLink))) +} + +// UserRoleListResponsePage contains a page of UserRoleResponse values. +type UserRoleListResponsePage struct { + fn func(context.Context, UserRoleListResponse) (UserRoleListResponse, error) + urlr UserRoleListResponse +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *UserRoleListResponsePage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/UserRoleListResponsePage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.urlr) + if err != nil { + return err + } + page.urlr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *UserRoleListResponsePage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page UserRoleListResponsePage) NotDone() bool { + return !page.urlr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page UserRoleListResponsePage) Response() UserRoleListResponse { + return page.urlr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page UserRoleListResponsePage) Values() []UserRoleResponse { + if page.urlr.IsEmpty() { + return nil + } + return *page.urlr.Value +} + +// Creates a new instance of the UserRoleListResponsePage type. +func NewUserRoleListResponsePage(cur UserRoleListResponse, getNextPage func(context.Context, UserRoleListResponse) (UserRoleListResponse, error)) UserRoleListResponsePage { + return UserRoleListResponsePage{ + fn: getNextPage, + urlr: cur, + } +} + +// UserRoleRequest request for checking user's role for Logz.io account. +type UserRoleRequest struct { + // EmailAddress - Email of the user used by Logz for contacting them if needed + EmailAddress *string `json:"emailAddress,omitempty"` +} + +// UserRoleResponse response for checking user's role for Logz.io account. +type UserRoleResponse struct { + // Role - Possible values include: 'UserRoleNone', 'UserRoleUser', 'UserRoleAdmin' + Role UserRole `json:"role,omitempty"` +} + +// VMExtensionPayload response of payload to be passed while installing VM agent. +type VMExtensionPayload struct { + autorest.Response `json:"-"` + // APIKey - API Key corresponding to the resource. + APIKey *string `json:"apiKey,omitempty"` + // Region - Logz.io region where the resource has been created. + Region *string `json:"region,omitempty"` +} + +// VMHostUpdateRequest request of a list VM Host Update Operation. +type VMHostUpdateRequest struct { + // VMResourceIds - Request of a list vm host update operation. + VMResourceIds *[]VMResources `json:"vmResourceIds,omitempty"` + // State - Specifies the state of the operation - install/ delete. Possible values include: 'VMHostUpdateStatesInstall', 'VMHostUpdateStatesDelete' + State VMHostUpdateStates `json:"state,omitempty"` +} + +// VMResources VM Resource Ids +type VMResources struct { + // ID - Request of a list vm host update operation. + ID *string `json:"id,omitempty"` + // AgentVersion - Version of the Logz agent installed on the VM. + AgentVersion *string `json:"agentVersion,omitempty"` +} + +// VMResourcesListResponse response of a list VM Host Update Operation. +type VMResourcesListResponse struct { + autorest.Response `json:"-"` + // Value - Response of a list vm host update operation. + Value *[]VMResources `json:"value,omitempty"` + // NextLink - Link to the next set of results, if any. + NextLink *string `json:"nextLink,omitempty"` +} + +// VMResourcesListResponseIterator provides access to a complete listing of VMResources values. +type VMResourcesListResponseIterator struct { + i int + page VMResourcesListResponsePage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *VMResourcesListResponseIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VMResourcesListResponseIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *VMResourcesListResponseIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter VMResourcesListResponseIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter VMResourcesListResponseIterator) Response() VMResourcesListResponse { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter VMResourcesListResponseIterator) Value() VMResources { + if !iter.page.NotDone() { + return VMResources{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the VMResourcesListResponseIterator type. +func NewVMResourcesListResponseIterator(page VMResourcesListResponsePage) VMResourcesListResponseIterator { + return VMResourcesListResponseIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (vrlr VMResourcesListResponse) IsEmpty() bool { + return vrlr.Value == nil || len(*vrlr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (vrlr VMResourcesListResponse) hasNextLink() bool { + return vrlr.NextLink != nil && len(*vrlr.NextLink) != 0 +} + +// vMResourcesListResponsePreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (vrlr VMResourcesListResponse) vMResourcesListResponsePreparer(ctx context.Context) (*http.Request, error) { + if !vrlr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(vrlr.NextLink))) +} + +// VMResourcesListResponsePage contains a page of VMResources values. +type VMResourcesListResponsePage struct { + fn func(context.Context, VMResourcesListResponse) (VMResourcesListResponse, error) + vrlr VMResourcesListResponse +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *VMResourcesListResponsePage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/VMResourcesListResponsePage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.vrlr) + if err != nil { + return err + } + page.vrlr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *VMResourcesListResponsePage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page VMResourcesListResponsePage) NotDone() bool { + return !page.vrlr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page VMResourcesListResponsePage) Response() VMResourcesListResponse { + return page.vrlr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page VMResourcesListResponsePage) Values() []VMResources { + if page.vrlr.IsEmpty() { + return nil + } + return *page.vrlr.Value +} + +// Creates a new instance of the VMResourcesListResponsePage type. +func NewVMResourcesListResponsePage(cur VMResourcesListResponse, getNextPage func(context.Context, VMResourcesListResponse) (VMResourcesListResponse, error)) VMResourcesListResponsePage { + return VMResourcesListResponsePage{ + fn: getNextPage, + vrlr: cur, + } +} diff --git a/services/preview/logz/mgmt/2020-10-01-preview/logz/monitor.go b/services/preview/logz/mgmt/2020-10-01-preview/logz/monitor.go new file mode 100644 index 000000000000..5e9cf8b4fcd2 --- /dev/null +++ b/services/preview/logz/mgmt/2020-10-01-preview/logz/monitor.go @@ -0,0 +1,380 @@ +package logz + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// MonitorClient is the client for the Monitor methods of the Logz service. +type MonitorClient struct { + BaseClient +} + +// NewMonitorClient creates an instance of the MonitorClient client. +func NewMonitorClient(subscriptionID string) MonitorClient { + return NewMonitorClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewMonitorClientWithBaseURI creates an instance of the MonitorClient client using a custom endpoint. Use this when +// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewMonitorClientWithBaseURI(baseURI string, subscriptionID string) MonitorClient { + return MonitorClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// ListVMHosts sends the list vm hosts request. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// monitorName - monitor resource name +func (client MonitorClient) ListVMHosts(ctx context.Context, resourceGroupName string, monitorName string) (result VMResourcesListResponsePage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/MonitorClient.ListVMHosts") + defer func() { + sc := -1 + if result.vrlr.Response.Response != nil { + sc = result.vrlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("logz.MonitorClient", "ListVMHosts", err.Error()) + } + + result.fn = client.listVMHostsNextResults + req, err := client.ListVMHostsPreparer(ctx, resourceGroupName, monitorName) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.MonitorClient", "ListVMHosts", nil, "Failure preparing request") + return + } + + resp, err := client.ListVMHostsSender(req) + if err != nil { + result.vrlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "logz.MonitorClient", "ListVMHosts", resp, "Failure sending request") + return + } + + result.vrlr, err = client.ListVMHostsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.MonitorClient", "ListVMHosts", resp, "Failure responding to request") + return + } + if result.vrlr.hasNextLink() && result.vrlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListVMHostsPreparer prepares the ListVMHosts request. +func (client MonitorClient) ListVMHostsPreparer(ctx context.Context, resourceGroupName string, monitorName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "monitorName": autorest.Encode("path", monitorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-10-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/listVMHosts", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListVMHostsSender sends the ListVMHosts request. The method will close the +// http.Response Body if it receives an error. +func (client MonitorClient) ListVMHostsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListVMHostsResponder handles the response to the ListVMHosts request. The method always +// closes the http.Response Body. +func (client MonitorClient) ListVMHostsResponder(resp *http.Response) (result VMResourcesListResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listVMHostsNextResults retrieves the next set of results, if any. +func (client MonitorClient) listVMHostsNextResults(ctx context.Context, lastResults VMResourcesListResponse) (result VMResourcesListResponse, err error) { + req, err := lastResults.vMResourcesListResponsePreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "logz.MonitorClient", "listVMHostsNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListVMHostsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "logz.MonitorClient", "listVMHostsNextResults", resp, "Failure sending next results request") + } + result, err = client.ListVMHostsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.MonitorClient", "listVMHostsNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListVMHostsComplete enumerates all values, automatically crossing page boundaries as required. +func (client MonitorClient) ListVMHostsComplete(ctx context.Context, resourceGroupName string, monitorName string) (result VMResourcesListResponseIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/MonitorClient.ListVMHosts") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListVMHosts(ctx, resourceGroupName, monitorName) + return +} + +// ListVMHostUpdate sends the list vm host update request. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// monitorName - monitor resource name +// body - request body to update the collection for agent installed in the given monitor. +func (client MonitorClient) ListVMHostUpdate(ctx context.Context, resourceGroupName string, monitorName string, body *VMHostUpdateRequest) (result VMResourcesListResponsePage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/MonitorClient.ListVMHostUpdate") + defer func() { + sc := -1 + if result.vrlr.Response.Response != nil { + sc = result.vrlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("logz.MonitorClient", "ListVMHostUpdate", err.Error()) + } + + result.fn = client.listVMHostUpdateNextResults + req, err := client.ListVMHostUpdatePreparer(ctx, resourceGroupName, monitorName, body) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.MonitorClient", "ListVMHostUpdate", nil, "Failure preparing request") + return + } + + resp, err := client.ListVMHostUpdateSender(req) + if err != nil { + result.vrlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "logz.MonitorClient", "ListVMHostUpdate", resp, "Failure sending request") + return + } + + result.vrlr, err = client.ListVMHostUpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.MonitorClient", "ListVMHostUpdate", resp, "Failure responding to request") + return + } + if result.vrlr.hasNextLink() && result.vrlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListVMHostUpdatePreparer prepares the ListVMHostUpdate request. +func (client MonitorClient) ListVMHostUpdatePreparer(ctx context.Context, resourceGroupName string, monitorName string, body *VMHostUpdateRequest) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "monitorName": autorest.Encode("path", monitorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-10-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/vmHostUpdate", pathParameters), + autorest.WithQueryParameters(queryParameters)) + if body != nil { + preparer = autorest.DecoratePreparer(preparer, + autorest.WithJSON(body)) + } + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListVMHostUpdateSender sends the ListVMHostUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client MonitorClient) ListVMHostUpdateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListVMHostUpdateResponder handles the response to the ListVMHostUpdate request. The method always +// closes the http.Response Body. +func (client MonitorClient) ListVMHostUpdateResponder(resp *http.Response) (result VMResourcesListResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listVMHostUpdateNextResults retrieves the next set of results, if any. +func (client MonitorClient) listVMHostUpdateNextResults(ctx context.Context, lastResults VMResourcesListResponse) (result VMResourcesListResponse, err error) { + req, err := lastResults.vMResourcesListResponsePreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "logz.MonitorClient", "listVMHostUpdateNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListVMHostUpdateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "logz.MonitorClient", "listVMHostUpdateNextResults", resp, "Failure sending next results request") + } + result, err = client.ListVMHostUpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.MonitorClient", "listVMHostUpdateNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListVMHostUpdateComplete enumerates all values, automatically crossing page boundaries as required. +func (client MonitorClient) ListVMHostUpdateComplete(ctx context.Context, resourceGroupName string, monitorName string, body *VMHostUpdateRequest) (result VMResourcesListResponseIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/MonitorClient.ListVMHostUpdate") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListVMHostUpdate(ctx, resourceGroupName, monitorName, body) + return +} + +// VMHostPayload sends the vm host payload request. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// monitorName - monitor resource name +func (client MonitorClient) VMHostPayload(ctx context.Context, resourceGroupName string, monitorName string) (result VMExtensionPayload, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/MonitorClient.VMHostPayload") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("logz.MonitorClient", "VMHostPayload", err.Error()) + } + + req, err := client.VMHostPayloadPreparer(ctx, resourceGroupName, monitorName) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.MonitorClient", "VMHostPayload", nil, "Failure preparing request") + return + } + + resp, err := client.VMHostPayloadSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "logz.MonitorClient", "VMHostPayload", resp, "Failure sending request") + return + } + + result, err = client.VMHostPayloadResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.MonitorClient", "VMHostPayload", resp, "Failure responding to request") + return + } + + return +} + +// VMHostPayloadPreparer prepares the VMHostPayload request. +func (client MonitorClient) VMHostPayloadPreparer(ctx context.Context, resourceGroupName string, monitorName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "monitorName": autorest.Encode("path", monitorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-10-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/vmHostPayload", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// VMHostPayloadSender sends the VMHostPayload request. The method will close the +// http.Response Body if it receives an error. +func (client MonitorClient) VMHostPayloadSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// VMHostPayloadResponder handles the response to the VMHostPayload request. The method always +// closes the http.Response Body. +func (client MonitorClient) VMHostPayloadResponder(resp *http.Response) (result VMExtensionPayload, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/preview/logz/mgmt/2020-10-01-preview/logz/monitors.go b/services/preview/logz/mgmt/2020-10-01-preview/logz/monitors.go new file mode 100644 index 000000000000..0088a2d280a5 --- /dev/null +++ b/services/preview/logz/mgmt/2020-10-01-preview/logz/monitors.go @@ -0,0 +1,928 @@ +package logz + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// MonitorsClient is the client for the Monitors methods of the Logz service. +type MonitorsClient struct { + BaseClient +} + +// NewMonitorsClient creates an instance of the MonitorsClient client. +func NewMonitorsClient(subscriptionID string) MonitorsClient { + return NewMonitorsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewMonitorsClientWithBaseURI creates an instance of the MonitorsClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewMonitorsClientWithBaseURI(baseURI string, subscriptionID string) MonitorsClient { + return MonitorsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Create sends the create request. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// monitorName - monitor resource name +func (client MonitorsClient) Create(ctx context.Context, resourceGroupName string, monitorName string, body *MonitorResource) (result MonitorsCreateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/MonitorsClient.Create") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: body, + Constraints: []validation.Constraint{{Target: "body", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "body.Properties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "body.Properties.UserInfo", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "body.Properties.UserInfo.FirstName", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "body.Properties.UserInfo.FirstName", Name: validation.MaxLength, Rule: 50, Chain: nil}}}, + {Target: "body.Properties.UserInfo.LastName", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "body.Properties.UserInfo.LastName", Name: validation.MaxLength, Rule: 50, Chain: nil}}}, + {Target: "body.Properties.UserInfo.EmailAddress", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "body.Properties.UserInfo.EmailAddress", Name: validation.Pattern, Rule: `^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\.)+[A-Za-z]{2,}$`, Chain: nil}}}, + {Target: "body.Properties.UserInfo.PhoneNumber", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "body.Properties.UserInfo.PhoneNumber", Name: validation.MaxLength, Rule: 40, Chain: nil}}}, + }}, + {Target: "body.Properties.PlanData", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "body.Properties.PlanData.UsageType", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "body.Properties.PlanData.UsageType", Name: validation.MaxLength, Rule: 50, Chain: nil}}}, + {Target: "body.Properties.PlanData.BillingCycle", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "body.Properties.PlanData.BillingCycle", Name: validation.MaxLength, Rule: 50, Chain: nil}}}, + {Target: "body.Properties.PlanData.PlanDetails", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "body.Properties.PlanData.PlanDetails", Name: validation.MaxLength, Rule: 50, Chain: nil}}}, + }}, + }}, + {Target: "body.Location", Name: validation.Null, Rule: true, Chain: nil}, + }}}}}); err != nil { + return result, validation.NewError("logz.MonitorsClient", "Create", err.Error()) + } + + req, err := client.CreatePreparer(ctx, resourceGroupName, monitorName, body) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.MonitorsClient", "Create", nil, "Failure preparing request") + return + } + + result, err = client.CreateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.MonitorsClient", "Create", nil, "Failure sending request") + return + } + + return +} + +// CreatePreparer prepares the Create request. +func (client MonitorsClient) CreatePreparer(ctx context.Context, resourceGroupName string, monitorName string, body *MonitorResource) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "monitorName": autorest.Encode("path", monitorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-10-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + body.ID = nil + body.SystemData = nil + body.Name = nil + body.Type = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + if body != nil { + preparer = autorest.DecoratePreparer(preparer, + autorest.WithJSON(body)) + } + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateSender sends the Create request. The method will close the +// http.Response Body if it receives an error. +func (client MonitorsClient) CreateSender(req *http.Request) (future MonitorsCreateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// CreateResponder handles the response to the Create request. The method always +// closes the http.Response Body. +func (client MonitorsClient) CreateResponder(resp *http.Response) (result MonitorResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete sends the delete request. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// monitorName - monitor resource name +func (client MonitorsClient) Delete(ctx context.Context, resourceGroupName string, monitorName string) (result MonitorsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/MonitorsClient.Delete") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("logz.MonitorsClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, monitorName) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.MonitorsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.MonitorsClient", "Delete", nil, "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client MonitorsClient) DeletePreparer(ctx context.Context, resourceGroupName string, monitorName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "monitorName": autorest.Encode("path", monitorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-10-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client MonitorsClient) DeleteSender(req *http.Request) (future MonitorsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client MonitorsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get sends the get request. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// monitorName - monitor resource name +func (client MonitorsClient) Get(ctx context.Context, resourceGroupName string, monitorName string) (result MonitorResource, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/MonitorsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("logz.MonitorsClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, monitorName) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.MonitorsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "logz.MonitorsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.MonitorsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client MonitorsClient) GetPreparer(ctx context.Context, resourceGroupName string, monitorName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "monitorName": autorest.Encode("path", monitorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-10-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client MonitorsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client MonitorsClient) GetResponder(resp *http.Response) (result MonitorResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByResourceGroup sends the list by resource group request. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +func (client MonitorsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result MonitorResourceListResponsePage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/MonitorsClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.mrlr.Response.Response != nil { + sc = result.mrlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("logz.MonitorsClient", "ListByResourceGroup", err.Error()) + } + + result.fn = client.listByResourceGroupNextResults + req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.MonitorsClient", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.mrlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "logz.MonitorsClient", "ListByResourceGroup", resp, "Failure sending request") + return + } + + result.mrlr, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.MonitorsClient", "ListByResourceGroup", resp, "Failure responding to request") + return + } + if result.mrlr.hasNextLink() && result.mrlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByResourceGroupPreparer prepares the ListByResourceGroup request. +func (client MonitorsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-10-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the +// http.Response Body if it receives an error. +func (client MonitorsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (client MonitorsClient) ListByResourceGroupResponder(resp *http.Response) (result MonitorResourceListResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByResourceGroupNextResults retrieves the next set of results, if any. +func (client MonitorsClient) listByResourceGroupNextResults(ctx context.Context, lastResults MonitorResourceListResponse) (result MonitorResourceListResponse, err error) { + req, err := lastResults.monitorResourceListResponsePreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "logz.MonitorsClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "logz.MonitorsClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.MonitorsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. +func (client MonitorsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result MonitorResourceListResponseIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/MonitorsClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) + return +} + +// ListBySubscription sends the list by subscription request. +func (client MonitorsClient) ListBySubscription(ctx context.Context) (result MonitorResourceListResponsePage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/MonitorsClient.ListBySubscription") + defer func() { + sc := -1 + if result.mrlr.Response.Response != nil { + sc = result.mrlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("logz.MonitorsClient", "ListBySubscription", err.Error()) + } + + result.fn = client.listBySubscriptionNextResults + req, err := client.ListBySubscriptionPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.MonitorsClient", "ListBySubscription", nil, "Failure preparing request") + return + } + + resp, err := client.ListBySubscriptionSender(req) + if err != nil { + result.mrlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "logz.MonitorsClient", "ListBySubscription", resp, "Failure sending request") + return + } + + result.mrlr, err = client.ListBySubscriptionResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.MonitorsClient", "ListBySubscription", resp, "Failure responding to request") + return + } + if result.mrlr.hasNextLink() && result.mrlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListBySubscriptionPreparer prepares the ListBySubscription request. +func (client MonitorsClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-10-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Logz/monitors", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListBySubscriptionSender sends the ListBySubscription request. The method will close the +// http.Response Body if it receives an error. +func (client MonitorsClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always +// closes the http.Response Body. +func (client MonitorsClient) ListBySubscriptionResponder(resp *http.Response) (result MonitorResourceListResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listBySubscriptionNextResults retrieves the next set of results, if any. +func (client MonitorsClient) listBySubscriptionNextResults(ctx context.Context, lastResults MonitorResourceListResponse) (result MonitorResourceListResponse, err error) { + req, err := lastResults.monitorResourceListResponsePreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "logz.MonitorsClient", "listBySubscriptionNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListBySubscriptionSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "logz.MonitorsClient", "listBySubscriptionNextResults", resp, "Failure sending next results request") + } + result, err = client.ListBySubscriptionResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.MonitorsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required. +func (client MonitorsClient) ListBySubscriptionComplete(ctx context.Context) (result MonitorResourceListResponseIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/MonitorsClient.ListBySubscription") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListBySubscription(ctx) + return +} + +// ListMonitoredResources sends the list monitored resources request. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// monitorName - monitor resource name +func (client MonitorsClient) ListMonitoredResources(ctx context.Context, resourceGroupName string, monitorName string) (result MonitoredResourceListResponsePage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/MonitorsClient.ListMonitoredResources") + defer func() { + sc := -1 + if result.mrlr.Response.Response != nil { + sc = result.mrlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("logz.MonitorsClient", "ListMonitoredResources", err.Error()) + } + + result.fn = client.listMonitoredResourcesNextResults + req, err := client.ListMonitoredResourcesPreparer(ctx, resourceGroupName, monitorName) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.MonitorsClient", "ListMonitoredResources", nil, "Failure preparing request") + return + } + + resp, err := client.ListMonitoredResourcesSender(req) + if err != nil { + result.mrlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "logz.MonitorsClient", "ListMonitoredResources", resp, "Failure sending request") + return + } + + result.mrlr, err = client.ListMonitoredResourcesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.MonitorsClient", "ListMonitoredResources", resp, "Failure responding to request") + return + } + if result.mrlr.hasNextLink() && result.mrlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListMonitoredResourcesPreparer prepares the ListMonitoredResources request. +func (client MonitorsClient) ListMonitoredResourcesPreparer(ctx context.Context, resourceGroupName string, monitorName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "monitorName": autorest.Encode("path", monitorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-10-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/listMonitoredResources", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListMonitoredResourcesSender sends the ListMonitoredResources request. The method will close the +// http.Response Body if it receives an error. +func (client MonitorsClient) ListMonitoredResourcesSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListMonitoredResourcesResponder handles the response to the ListMonitoredResources request. The method always +// closes the http.Response Body. +func (client MonitorsClient) ListMonitoredResourcesResponder(resp *http.Response) (result MonitoredResourceListResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listMonitoredResourcesNextResults retrieves the next set of results, if any. +func (client MonitorsClient) listMonitoredResourcesNextResults(ctx context.Context, lastResults MonitoredResourceListResponse) (result MonitoredResourceListResponse, err error) { + req, err := lastResults.monitoredResourceListResponsePreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "logz.MonitorsClient", "listMonitoredResourcesNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListMonitoredResourcesSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "logz.MonitorsClient", "listMonitoredResourcesNextResults", resp, "Failure sending next results request") + } + result, err = client.ListMonitoredResourcesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.MonitorsClient", "listMonitoredResourcesNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListMonitoredResourcesComplete enumerates all values, automatically crossing page boundaries as required. +func (client MonitorsClient) ListMonitoredResourcesComplete(ctx context.Context, resourceGroupName string, monitorName string) (result MonitoredResourceListResponseIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/MonitorsClient.ListMonitoredResources") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListMonitoredResources(ctx, resourceGroupName, monitorName) + return +} + +// ListUserRoles sends the list user roles request. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// monitorName - monitor resource name +func (client MonitorsClient) ListUserRoles(ctx context.Context, resourceGroupName string, monitorName string, body *UserRoleRequest) (result UserRoleListResponsePage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/MonitorsClient.ListUserRoles") + defer func() { + sc := -1 + if result.urlr.Response.Response != nil { + sc = result.urlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: body, + Constraints: []validation.Constraint{{Target: "body", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "body.EmailAddress", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "body.EmailAddress", Name: validation.Pattern, Rule: `^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\.)+[A-Za-z]{2,}$`, Chain: nil}}}, + }}}}}); err != nil { + return result, validation.NewError("logz.MonitorsClient", "ListUserRoles", err.Error()) + } + + result.fn = client.listUserRolesNextResults + req, err := client.ListUserRolesPreparer(ctx, resourceGroupName, monitorName, body) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.MonitorsClient", "ListUserRoles", nil, "Failure preparing request") + return + } + + resp, err := client.ListUserRolesSender(req) + if err != nil { + result.urlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "logz.MonitorsClient", "ListUserRoles", resp, "Failure sending request") + return + } + + result.urlr, err = client.ListUserRolesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.MonitorsClient", "ListUserRoles", resp, "Failure responding to request") + return + } + if result.urlr.hasNextLink() && result.urlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListUserRolesPreparer prepares the ListUserRoles request. +func (client MonitorsClient) ListUserRolesPreparer(ctx context.Context, resourceGroupName string, monitorName string, body *UserRoleRequest) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "monitorName": autorest.Encode("path", monitorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-10-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/listUserRoles", pathParameters), + autorest.WithQueryParameters(queryParameters)) + if body != nil { + preparer = autorest.DecoratePreparer(preparer, + autorest.WithJSON(body)) + } + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListUserRolesSender sends the ListUserRoles request. The method will close the +// http.Response Body if it receives an error. +func (client MonitorsClient) ListUserRolesSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListUserRolesResponder handles the response to the ListUserRoles request. The method always +// closes the http.Response Body. +func (client MonitorsClient) ListUserRolesResponder(resp *http.Response) (result UserRoleListResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listUserRolesNextResults retrieves the next set of results, if any. +func (client MonitorsClient) listUserRolesNextResults(ctx context.Context, lastResults UserRoleListResponse) (result UserRoleListResponse, err error) { + req, err := lastResults.userRoleListResponsePreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "logz.MonitorsClient", "listUserRolesNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListUserRolesSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "logz.MonitorsClient", "listUserRolesNextResults", resp, "Failure sending next results request") + } + result, err = client.ListUserRolesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.MonitorsClient", "listUserRolesNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListUserRolesComplete enumerates all values, automatically crossing page boundaries as required. +func (client MonitorsClient) ListUserRolesComplete(ctx context.Context, resourceGroupName string, monitorName string, body *UserRoleRequest) (result UserRoleListResponseIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/MonitorsClient.ListUserRoles") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListUserRoles(ctx, resourceGroupName, monitorName, body) + return +} + +// Update sends the update request. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// monitorName - monitor resource name +func (client MonitorsClient) Update(ctx context.Context, resourceGroupName string, monitorName string, body *MonitorResourceUpdateParameters) (result MonitorResource, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/MonitorsClient.Update") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("logz.MonitorsClient", "Update", err.Error()) + } + + req, err := client.UpdatePreparer(ctx, resourceGroupName, monitorName, body) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.MonitorsClient", "Update", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "logz.MonitorsClient", "Update", resp, "Failure sending request") + return + } + + result, err = client.UpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.MonitorsClient", "Update", resp, "Failure responding to request") + return + } + + return +} + +// UpdatePreparer prepares the Update request. +func (client MonitorsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, monitorName string, body *MonitorResourceUpdateParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "monitorName": autorest.Encode("path", monitorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-10-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + if body != nil { + preparer = autorest.DecoratePreparer(preparer, + autorest.WithJSON(body)) + } + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateSender sends the Update request. The method will close the +// http.Response Body if it receives an error. +func (client MonitorsClient) UpdateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateResponder handles the response to the Update request. The method always +// closes the http.Response Body. +func (client MonitorsClient) UpdateResponder(resp *http.Response) (result MonitorResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/preview/logz/mgmt/2020-10-01-preview/logz/operations.go b/services/preview/logz/mgmt/2020-10-01-preview/logz/operations.go new file mode 100644 index 000000000000..7b83f1243095 --- /dev/null +++ b/services/preview/logz/mgmt/2020-10-01-preview/logz/operations.go @@ -0,0 +1,134 @@ +package logz + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// OperationsClient is the client for the Operations methods of the Logz service. +type OperationsClient struct { + BaseClient +} + +// NewOperationsClient creates an instance of the OperationsClient client. +func NewOperationsClient(subscriptionID string) OperationsClient { + return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient { + return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List sends the list request. +func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List") + defer func() { + sc := -1 + if result.olr.Response.Response != nil { + sc = result.olr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.OperationsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.olr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "logz.OperationsClient", "List", resp, "Failure sending request") + return + } + + result.olr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.OperationsClient", "List", resp, "Failure responding to request") + return + } + if result.olr.hasNextLink() && result.olr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) { + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPath("/providers/Microsoft.Logz/operations")) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client OperationsClient) listNextResults(ctx context.Context, lastResults OperationListResult) (result OperationListResult, err error) { + req, err := lastResults.operationListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "logz.OperationsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "logz.OperationsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} diff --git a/services/preview/logz/mgmt/2020-10-01-preview/logz/singlesignon.go b/services/preview/logz/mgmt/2020-10-01-preview/logz/singlesignon.go new file mode 100644 index 000000000000..0679148e2004 --- /dev/null +++ b/services/preview/logz/mgmt/2020-10-01-preview/logz/singlesignon.go @@ -0,0 +1,344 @@ +package logz + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// SingleSignOnClient is the client for the SingleSignOn methods of the Logz service. +type SingleSignOnClient struct { + BaseClient +} + +// NewSingleSignOnClient creates an instance of the SingleSignOnClient client. +func NewSingleSignOnClient(subscriptionID string) SingleSignOnClient { + return NewSingleSignOnClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewSingleSignOnClientWithBaseURI creates an instance of the SingleSignOnClient client using a custom endpoint. Use +// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewSingleSignOnClientWithBaseURI(baseURI string, subscriptionID string) SingleSignOnClient { + return SingleSignOnClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate sends the create or update request. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// monitorName - monitor resource name +func (client SingleSignOnClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, monitorName string, configurationName string, body *SingleSignOnResource) (result SingleSignOnCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SingleSignOnClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("logz.SingleSignOnClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, monitorName, configurationName, body) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SingleSignOnClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SingleSignOnClient", "CreateOrUpdate", nil, "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client SingleSignOnClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, monitorName string, configurationName string, body *SingleSignOnResource) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "configurationName": autorest.Encode("path", configurationName), + "monitorName": autorest.Encode("path", monitorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-10-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + body.ID = nil + body.Name = nil + body.Type = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/singleSignOnConfigurations/{configurationName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + if body != nil { + preparer = autorest.DecoratePreparer(preparer, + autorest.WithJSON(body)) + } + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client SingleSignOnClient) CreateOrUpdateSender(req *http.Request) (future SingleSignOnCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client SingleSignOnClient) CreateOrUpdateResponder(resp *http.Response) (result SingleSignOnResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Get sends the get request. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// monitorName - monitor resource name +func (client SingleSignOnClient) Get(ctx context.Context, resourceGroupName string, monitorName string, configurationName string) (result SingleSignOnResource, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SingleSignOnClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("logz.SingleSignOnClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, monitorName, configurationName) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SingleSignOnClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "logz.SingleSignOnClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SingleSignOnClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client SingleSignOnClient) GetPreparer(ctx context.Context, resourceGroupName string, monitorName string, configurationName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "configurationName": autorest.Encode("path", configurationName), + "monitorName": autorest.Encode("path", monitorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-10-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/singleSignOnConfigurations/{configurationName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client SingleSignOnClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client SingleSignOnClient) GetResponder(resp *http.Response) (result SingleSignOnResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List sends the list request. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// monitorName - monitor resource name +func (client SingleSignOnClient) List(ctx context.Context, resourceGroupName string, monitorName string) (result SingleSignOnResourceListResponsePage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SingleSignOnClient.List") + defer func() { + sc := -1 + if result.ssorlr.Response.Response != nil { + sc = result.ssorlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("logz.SingleSignOnClient", "List", err.Error()) + } + + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, monitorName) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SingleSignOnClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.ssorlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "logz.SingleSignOnClient", "List", resp, "Failure sending request") + return + } + + result.ssorlr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SingleSignOnClient", "List", resp, "Failure responding to request") + return + } + if result.ssorlr.hasNextLink() && result.ssorlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client SingleSignOnClient) ListPreparer(ctx context.Context, resourceGroupName string, monitorName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "monitorName": autorest.Encode("path", monitorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-10-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/singleSignOnConfigurations", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client SingleSignOnClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client SingleSignOnClient) ListResponder(resp *http.Response) (result SingleSignOnResourceListResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client SingleSignOnClient) listNextResults(ctx context.Context, lastResults SingleSignOnResourceListResponse) (result SingleSignOnResourceListResponse, err error) { + req, err := lastResults.singleSignOnResourceListResponsePreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "logz.SingleSignOnClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "logz.SingleSignOnClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SingleSignOnClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client SingleSignOnClient) ListComplete(ctx context.Context, resourceGroupName string, monitorName string) (result SingleSignOnResourceListResponseIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SingleSignOnClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, monitorName) + return +} diff --git a/services/preview/logz/mgmt/2020-10-01-preview/logz/subaccount.go b/services/preview/logz/mgmt/2020-10-01-preview/logz/subaccount.go new file mode 100644 index 000000000000..2a732175c7fb --- /dev/null +++ b/services/preview/logz/mgmt/2020-10-01-preview/logz/subaccount.go @@ -0,0 +1,1037 @@ +package logz + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// SubAccountClient is the client for the SubAccount methods of the Logz service. +type SubAccountClient struct { + BaseClient +} + +// NewSubAccountClient creates an instance of the SubAccountClient client. +func NewSubAccountClient(subscriptionID string) SubAccountClient { + return NewSubAccountClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewSubAccountClientWithBaseURI creates an instance of the SubAccountClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewSubAccountClientWithBaseURI(baseURI string, subscriptionID string) SubAccountClient { + return SubAccountClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Create sends the create request. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// monitorName - monitor resource name +// subAccountName - sub Account resource name +func (client SubAccountClient) Create(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string, body *MonitorResource) (result SubAccountCreateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SubAccountClient.Create") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: body, + Constraints: []validation.Constraint{{Target: "body", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "body.Properties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "body.Properties.UserInfo", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "body.Properties.UserInfo.FirstName", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "body.Properties.UserInfo.FirstName", Name: validation.MaxLength, Rule: 50, Chain: nil}}}, + {Target: "body.Properties.UserInfo.LastName", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "body.Properties.UserInfo.LastName", Name: validation.MaxLength, Rule: 50, Chain: nil}}}, + {Target: "body.Properties.UserInfo.EmailAddress", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "body.Properties.UserInfo.EmailAddress", Name: validation.Pattern, Rule: `^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\.)+[A-Za-z]{2,}$`, Chain: nil}}}, + {Target: "body.Properties.UserInfo.PhoneNumber", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "body.Properties.UserInfo.PhoneNumber", Name: validation.MaxLength, Rule: 40, Chain: nil}}}, + }}, + {Target: "body.Properties.PlanData", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "body.Properties.PlanData.UsageType", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "body.Properties.PlanData.UsageType", Name: validation.MaxLength, Rule: 50, Chain: nil}}}, + {Target: "body.Properties.PlanData.BillingCycle", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "body.Properties.PlanData.BillingCycle", Name: validation.MaxLength, Rule: 50, Chain: nil}}}, + {Target: "body.Properties.PlanData.PlanDetails", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "body.Properties.PlanData.PlanDetails", Name: validation.MaxLength, Rule: 50, Chain: nil}}}, + }}, + }}, + {Target: "body.Location", Name: validation.Null, Rule: true, Chain: nil}, + }}}}}); err != nil { + return result, validation.NewError("logz.SubAccountClient", "Create", err.Error()) + } + + req, err := client.CreatePreparer(ctx, resourceGroupName, monitorName, subAccountName, body) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SubAccountClient", "Create", nil, "Failure preparing request") + return + } + + result, err = client.CreateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SubAccountClient", "Create", nil, "Failure sending request") + return + } + + return +} + +// CreatePreparer prepares the Create request. +func (client SubAccountClient) CreatePreparer(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string, body *MonitorResource) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "monitorName": autorest.Encode("path", monitorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subAccountName": autorest.Encode("path", subAccountName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-10-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + body.ID = nil + body.SystemData = nil + body.Name = nil + body.Type = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/accounts/{subAccountName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + if body != nil { + preparer = autorest.DecoratePreparer(preparer, + autorest.WithJSON(body)) + } + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateSender sends the Create request. The method will close the +// http.Response Body if it receives an error. +func (client SubAccountClient) CreateSender(req *http.Request) (future SubAccountCreateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// CreateResponder handles the response to the Create request. The method always +// closes the http.Response Body. +func (client SubAccountClient) CreateResponder(resp *http.Response) (result MonitorResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete sends the delete request. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// monitorName - monitor resource name +// subAccountName - sub Account resource name +func (client SubAccountClient) Delete(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string) (result SubAccountDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SubAccountClient.Delete") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("logz.SubAccountClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, monitorName, subAccountName) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SubAccountClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SubAccountClient", "Delete", nil, "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client SubAccountClient) DeletePreparer(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "monitorName": autorest.Encode("path", monitorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subAccountName": autorest.Encode("path", subAccountName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-10-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/accounts/{subAccountName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client SubAccountClient) DeleteSender(req *http.Request) (future SubAccountDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client SubAccountClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get sends the get request. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// monitorName - monitor resource name +// subAccountName - sub Account resource name +func (client SubAccountClient) Get(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string) (result MonitorResource, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SubAccountClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("logz.SubAccountClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, monitorName, subAccountName) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SubAccountClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "logz.SubAccountClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SubAccountClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client SubAccountClient) GetPreparer(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "monitorName": autorest.Encode("path", monitorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subAccountName": autorest.Encode("path", subAccountName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-10-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/accounts/{subAccountName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client SubAccountClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client SubAccountClient) GetResponder(resp *http.Response) (result MonitorResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List sends the list request. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// monitorName - monitor resource name +func (client SubAccountClient) List(ctx context.Context, resourceGroupName string, monitorName string) (result MonitorResourceListResponsePage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SubAccountClient.List") + defer func() { + sc := -1 + if result.mrlr.Response.Response != nil { + sc = result.mrlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("logz.SubAccountClient", "List", err.Error()) + } + + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, monitorName) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SubAccountClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.mrlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "logz.SubAccountClient", "List", resp, "Failure sending request") + return + } + + result.mrlr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SubAccountClient", "List", resp, "Failure responding to request") + return + } + if result.mrlr.hasNextLink() && result.mrlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client SubAccountClient) ListPreparer(ctx context.Context, resourceGroupName string, monitorName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "monitorName": autorest.Encode("path", monitorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-10-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/accounts", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client SubAccountClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client SubAccountClient) ListResponder(resp *http.Response) (result MonitorResourceListResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client SubAccountClient) listNextResults(ctx context.Context, lastResults MonitorResourceListResponse) (result MonitorResourceListResponse, err error) { + req, err := lastResults.monitorResourceListResponsePreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "logz.SubAccountClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "logz.SubAccountClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SubAccountClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client SubAccountClient) ListComplete(ctx context.Context, resourceGroupName string, monitorName string) (result MonitorResourceListResponseIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SubAccountClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, monitorName) + return +} + +// ListMonitoredResources sends the list monitored resources request. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// monitorName - monitor resource name +// subAccountName - sub Account resource name +func (client SubAccountClient) ListMonitoredResources(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string) (result MonitoredResourceListResponsePage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SubAccountClient.ListMonitoredResources") + defer func() { + sc := -1 + if result.mrlr.Response.Response != nil { + sc = result.mrlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("logz.SubAccountClient", "ListMonitoredResources", err.Error()) + } + + result.fn = client.listMonitoredResourcesNextResults + req, err := client.ListMonitoredResourcesPreparer(ctx, resourceGroupName, monitorName, subAccountName) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SubAccountClient", "ListMonitoredResources", nil, "Failure preparing request") + return + } + + resp, err := client.ListMonitoredResourcesSender(req) + if err != nil { + result.mrlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "logz.SubAccountClient", "ListMonitoredResources", resp, "Failure sending request") + return + } + + result.mrlr, err = client.ListMonitoredResourcesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SubAccountClient", "ListMonitoredResources", resp, "Failure responding to request") + return + } + if result.mrlr.hasNextLink() && result.mrlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListMonitoredResourcesPreparer prepares the ListMonitoredResources request. +func (client SubAccountClient) ListMonitoredResourcesPreparer(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "monitorName": autorest.Encode("path", monitorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subAccountName": autorest.Encode("path", subAccountName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-10-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/accounts/{subAccountName}/listMonitoredResources", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListMonitoredResourcesSender sends the ListMonitoredResources request. The method will close the +// http.Response Body if it receives an error. +func (client SubAccountClient) ListMonitoredResourcesSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListMonitoredResourcesResponder handles the response to the ListMonitoredResources request. The method always +// closes the http.Response Body. +func (client SubAccountClient) ListMonitoredResourcesResponder(resp *http.Response) (result MonitoredResourceListResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listMonitoredResourcesNextResults retrieves the next set of results, if any. +func (client SubAccountClient) listMonitoredResourcesNextResults(ctx context.Context, lastResults MonitoredResourceListResponse) (result MonitoredResourceListResponse, err error) { + req, err := lastResults.monitoredResourceListResponsePreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "logz.SubAccountClient", "listMonitoredResourcesNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListMonitoredResourcesSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "logz.SubAccountClient", "listMonitoredResourcesNextResults", resp, "Failure sending next results request") + } + result, err = client.ListMonitoredResourcesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SubAccountClient", "listMonitoredResourcesNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListMonitoredResourcesComplete enumerates all values, automatically crossing page boundaries as required. +func (client SubAccountClient) ListMonitoredResourcesComplete(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string) (result MonitoredResourceListResponseIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SubAccountClient.ListMonitoredResources") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListMonitoredResources(ctx, resourceGroupName, monitorName, subAccountName) + return +} + +// ListVMHosts sends the list vm hosts request. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// monitorName - monitor resource name +// subAccountName - sub Account resource name +func (client SubAccountClient) ListVMHosts(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string) (result VMResourcesListResponsePage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SubAccountClient.ListVMHosts") + defer func() { + sc := -1 + if result.vrlr.Response.Response != nil { + sc = result.vrlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("logz.SubAccountClient", "ListVMHosts", err.Error()) + } + + result.fn = client.listVMHostsNextResults + req, err := client.ListVMHostsPreparer(ctx, resourceGroupName, monitorName, subAccountName) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SubAccountClient", "ListVMHosts", nil, "Failure preparing request") + return + } + + resp, err := client.ListVMHostsSender(req) + if err != nil { + result.vrlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "logz.SubAccountClient", "ListVMHosts", resp, "Failure sending request") + return + } + + result.vrlr, err = client.ListVMHostsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SubAccountClient", "ListVMHosts", resp, "Failure responding to request") + return + } + if result.vrlr.hasNextLink() && result.vrlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListVMHostsPreparer prepares the ListVMHosts request. +func (client SubAccountClient) ListVMHostsPreparer(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "monitorName": autorest.Encode("path", monitorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subAccountName": autorest.Encode("path", subAccountName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-10-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/accounts/{subAccountName}/listVMHosts", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListVMHostsSender sends the ListVMHosts request. The method will close the +// http.Response Body if it receives an error. +func (client SubAccountClient) ListVMHostsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListVMHostsResponder handles the response to the ListVMHosts request. The method always +// closes the http.Response Body. +func (client SubAccountClient) ListVMHostsResponder(resp *http.Response) (result VMResourcesListResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listVMHostsNextResults retrieves the next set of results, if any. +func (client SubAccountClient) listVMHostsNextResults(ctx context.Context, lastResults VMResourcesListResponse) (result VMResourcesListResponse, err error) { + req, err := lastResults.vMResourcesListResponsePreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "logz.SubAccountClient", "listVMHostsNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListVMHostsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "logz.SubAccountClient", "listVMHostsNextResults", resp, "Failure sending next results request") + } + result, err = client.ListVMHostsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SubAccountClient", "listVMHostsNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListVMHostsComplete enumerates all values, automatically crossing page boundaries as required. +func (client SubAccountClient) ListVMHostsComplete(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string) (result VMResourcesListResponseIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SubAccountClient.ListVMHosts") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListVMHosts(ctx, resourceGroupName, monitorName, subAccountName) + return +} + +// ListVMHostUpdate sends the list vm host update request. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// monitorName - monitor resource name +// subAccountName - sub Account resource name +// body - request body to update the collection for agent installed in the given monitor. +func (client SubAccountClient) ListVMHostUpdate(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string, body *VMHostUpdateRequest) (result VMResourcesListResponsePage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SubAccountClient.ListVMHostUpdate") + defer func() { + sc := -1 + if result.vrlr.Response.Response != nil { + sc = result.vrlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("logz.SubAccountClient", "ListVMHostUpdate", err.Error()) + } + + result.fn = client.listVMHostUpdateNextResults + req, err := client.ListVMHostUpdatePreparer(ctx, resourceGroupName, monitorName, subAccountName, body) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SubAccountClient", "ListVMHostUpdate", nil, "Failure preparing request") + return + } + + resp, err := client.ListVMHostUpdateSender(req) + if err != nil { + result.vrlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "logz.SubAccountClient", "ListVMHostUpdate", resp, "Failure sending request") + return + } + + result.vrlr, err = client.ListVMHostUpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SubAccountClient", "ListVMHostUpdate", resp, "Failure responding to request") + return + } + if result.vrlr.hasNextLink() && result.vrlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListVMHostUpdatePreparer prepares the ListVMHostUpdate request. +func (client SubAccountClient) ListVMHostUpdatePreparer(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string, body *VMHostUpdateRequest) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "monitorName": autorest.Encode("path", monitorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subAccountName": autorest.Encode("path", subAccountName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-10-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/accounts/{subAccountName}/vmHostUpdate", pathParameters), + autorest.WithQueryParameters(queryParameters)) + if body != nil { + preparer = autorest.DecoratePreparer(preparer, + autorest.WithJSON(body)) + } + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListVMHostUpdateSender sends the ListVMHostUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client SubAccountClient) ListVMHostUpdateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListVMHostUpdateResponder handles the response to the ListVMHostUpdate request. The method always +// closes the http.Response Body. +func (client SubAccountClient) ListVMHostUpdateResponder(resp *http.Response) (result VMResourcesListResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listVMHostUpdateNextResults retrieves the next set of results, if any. +func (client SubAccountClient) listVMHostUpdateNextResults(ctx context.Context, lastResults VMResourcesListResponse) (result VMResourcesListResponse, err error) { + req, err := lastResults.vMResourcesListResponsePreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "logz.SubAccountClient", "listVMHostUpdateNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListVMHostUpdateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "logz.SubAccountClient", "listVMHostUpdateNextResults", resp, "Failure sending next results request") + } + result, err = client.ListVMHostUpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SubAccountClient", "listVMHostUpdateNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListVMHostUpdateComplete enumerates all values, automatically crossing page boundaries as required. +func (client SubAccountClient) ListVMHostUpdateComplete(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string, body *VMHostUpdateRequest) (result VMResourcesListResponseIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SubAccountClient.ListVMHostUpdate") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListVMHostUpdate(ctx, resourceGroupName, monitorName, subAccountName, body) + return +} + +// Update sends the update request. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// monitorName - monitor resource name +// subAccountName - sub Account resource name +func (client SubAccountClient) Update(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string, body *MonitorResourceUpdateParameters) (result MonitorResource, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SubAccountClient.Update") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("logz.SubAccountClient", "Update", err.Error()) + } + + req, err := client.UpdatePreparer(ctx, resourceGroupName, monitorName, subAccountName, body) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SubAccountClient", "Update", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "logz.SubAccountClient", "Update", resp, "Failure sending request") + return + } + + result, err = client.UpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SubAccountClient", "Update", resp, "Failure responding to request") + return + } + + return +} + +// UpdatePreparer prepares the Update request. +func (client SubAccountClient) UpdatePreparer(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string, body *MonitorResourceUpdateParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "monitorName": autorest.Encode("path", monitorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subAccountName": autorest.Encode("path", subAccountName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-10-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/accounts/{subAccountName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + if body != nil { + preparer = autorest.DecoratePreparer(preparer, + autorest.WithJSON(body)) + } + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateSender sends the Update request. The method will close the +// http.Response Body if it receives an error. +func (client SubAccountClient) UpdateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateResponder handles the response to the Update request. The method always +// closes the http.Response Body. +func (client SubAccountClient) UpdateResponder(resp *http.Response) (result MonitorResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// VMHostPayload sends the vm host payload request. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// monitorName - monitor resource name +// subAccountName - sub Account resource name +func (client SubAccountClient) VMHostPayload(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string) (result VMExtensionPayload, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SubAccountClient.VMHostPayload") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("logz.SubAccountClient", "VMHostPayload", err.Error()) + } + + req, err := client.VMHostPayloadPreparer(ctx, resourceGroupName, monitorName, subAccountName) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SubAccountClient", "VMHostPayload", nil, "Failure preparing request") + return + } + + resp, err := client.VMHostPayloadSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "logz.SubAccountClient", "VMHostPayload", resp, "Failure sending request") + return + } + + result, err = client.VMHostPayloadResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SubAccountClient", "VMHostPayload", resp, "Failure responding to request") + return + } + + return +} + +// VMHostPayloadPreparer prepares the VMHostPayload request. +func (client SubAccountClient) VMHostPayloadPreparer(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "monitorName": autorest.Encode("path", monitorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subAccountName": autorest.Encode("path", subAccountName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-10-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/accounts/{subAccountName}/vmHostPayload", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// VMHostPayloadSender sends the VMHostPayload request. The method will close the +// http.Response Body if it receives an error. +func (client SubAccountClient) VMHostPayloadSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// VMHostPayloadResponder handles the response to the VMHostPayload request. The method always +// closes the http.Response Body. +func (client SubAccountClient) VMHostPayloadResponder(resp *http.Response) (result VMExtensionPayload, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/preview/logz/mgmt/2020-10-01-preview/logz/subaccounttagrules.go b/services/preview/logz/mgmt/2020-10-01-preview/logz/subaccounttagrules.go new file mode 100644 index 000000000000..5e76443f5c7d --- /dev/null +++ b/services/preview/logz/mgmt/2020-10-01-preview/logz/subaccounttagrules.go @@ -0,0 +1,438 @@ +package logz + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// SubAccountTagRulesClient is the client for the SubAccountTagRules methods of the Logz service. +type SubAccountTagRulesClient struct { + BaseClient +} + +// NewSubAccountTagRulesClient creates an instance of the SubAccountTagRulesClient client. +func NewSubAccountTagRulesClient(subscriptionID string) SubAccountTagRulesClient { + return NewSubAccountTagRulesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewSubAccountTagRulesClientWithBaseURI creates an instance of the SubAccountTagRulesClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewSubAccountTagRulesClientWithBaseURI(baseURI string, subscriptionID string) SubAccountTagRulesClient { + return SubAccountTagRulesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate sends the create or update request. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// monitorName - monitor resource name +// subAccountName - sub Account resource name +func (client SubAccountTagRulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string, ruleSetName string, body *MonitoringTagRules) (result MonitoringTagRules, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SubAccountTagRulesClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("logz.SubAccountTagRulesClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, monitorName, subAccountName, ruleSetName, body) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SubAccountTagRulesClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + resp, err := client.CreateOrUpdateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "logz.SubAccountTagRulesClient", "CreateOrUpdate", resp, "Failure sending request") + return + } + + result, err = client.CreateOrUpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SubAccountTagRulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client SubAccountTagRulesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string, ruleSetName string, body *MonitoringTagRules) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "monitorName": autorest.Encode("path", monitorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "ruleSetName": autorest.Encode("path", ruleSetName), + "subAccountName": autorest.Encode("path", subAccountName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-10-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + body.Name = nil + body.ID = nil + body.Type = nil + body.SystemData = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/accounts/{subAccountName}/tagRules/{ruleSetName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + if body != nil { + preparer = autorest.DecoratePreparer(preparer, + autorest.WithJSON(body)) + } + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client SubAccountTagRulesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client SubAccountTagRulesClient) CreateOrUpdateResponder(resp *http.Response) (result MonitoringTagRules, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete sends the delete request. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// monitorName - monitor resource name +// subAccountName - sub Account resource name +func (client SubAccountTagRulesClient) Delete(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string, ruleSetName string) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SubAccountTagRulesClient.Delete") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("logz.SubAccountTagRulesClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, monitorName, subAccountName, ruleSetName) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SubAccountTagRulesClient", "Delete", nil, "Failure preparing request") + return + } + + resp, err := client.DeleteSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "logz.SubAccountTagRulesClient", "Delete", resp, "Failure sending request") + return + } + + result, err = client.DeleteResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SubAccountTagRulesClient", "Delete", resp, "Failure responding to request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client SubAccountTagRulesClient) DeletePreparer(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string, ruleSetName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "monitorName": autorest.Encode("path", monitorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "ruleSetName": autorest.Encode("path", ruleSetName), + "subAccountName": autorest.Encode("path", subAccountName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-10-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/accounts/{subAccountName}/tagRules/{ruleSetName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client SubAccountTagRulesClient) DeleteSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client SubAccountTagRulesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get sends the get request. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// monitorName - monitor resource name +// subAccountName - sub Account resource name +func (client SubAccountTagRulesClient) Get(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string, ruleSetName string) (result MonitoringTagRules, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SubAccountTagRulesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("logz.SubAccountTagRulesClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, monitorName, subAccountName, ruleSetName) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SubAccountTagRulesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "logz.SubAccountTagRulesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SubAccountTagRulesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client SubAccountTagRulesClient) GetPreparer(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string, ruleSetName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "monitorName": autorest.Encode("path", monitorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "ruleSetName": autorest.Encode("path", ruleSetName), + "subAccountName": autorest.Encode("path", subAccountName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-10-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/accounts/{subAccountName}/tagRules/{ruleSetName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client SubAccountTagRulesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client SubAccountTagRulesClient) GetResponder(resp *http.Response) (result MonitoringTagRules, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List sends the list request. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// monitorName - monitor resource name +// subAccountName - sub Account resource name +func (client SubAccountTagRulesClient) List(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string) (result MonitoringTagRulesListResponsePage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SubAccountTagRulesClient.List") + defer func() { + sc := -1 + if result.mtrlr.Response.Response != nil { + sc = result.mtrlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("logz.SubAccountTagRulesClient", "List", err.Error()) + } + + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, monitorName, subAccountName) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SubAccountTagRulesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.mtrlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "logz.SubAccountTagRulesClient", "List", resp, "Failure sending request") + return + } + + result.mtrlr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SubAccountTagRulesClient", "List", resp, "Failure responding to request") + return + } + if result.mtrlr.hasNextLink() && result.mtrlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client SubAccountTagRulesClient) ListPreparer(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "monitorName": autorest.Encode("path", monitorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subAccountName": autorest.Encode("path", subAccountName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-10-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/accounts/{subAccountName}/tagRules", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client SubAccountTagRulesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client SubAccountTagRulesClient) ListResponder(resp *http.Response) (result MonitoringTagRulesListResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client SubAccountTagRulesClient) listNextResults(ctx context.Context, lastResults MonitoringTagRulesListResponse) (result MonitoringTagRulesListResponse, err error) { + req, err := lastResults.monitoringTagRulesListResponsePreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "logz.SubAccountTagRulesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "logz.SubAccountTagRulesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.SubAccountTagRulesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client SubAccountTagRulesClient) ListComplete(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string) (result MonitoringTagRulesListResponseIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SubAccountTagRulesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, monitorName, subAccountName) + return +} diff --git a/services/preview/logz/mgmt/2020-10-01-preview/logz/tagrules.go b/services/preview/logz/mgmt/2020-10-01-preview/logz/tagrules.go new file mode 100644 index 000000000000..3557d41088cd --- /dev/null +++ b/services/preview/logz/mgmt/2020-10-01-preview/logz/tagrules.go @@ -0,0 +1,429 @@ +package logz + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// TagRulesClient is the client for the TagRules methods of the Logz service. +type TagRulesClient struct { + BaseClient +} + +// NewTagRulesClient creates an instance of the TagRulesClient client. +func NewTagRulesClient(subscriptionID string) TagRulesClient { + return NewTagRulesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewTagRulesClientWithBaseURI creates an instance of the TagRulesClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewTagRulesClientWithBaseURI(baseURI string, subscriptionID string) TagRulesClient { + return TagRulesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate sends the create or update request. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// monitorName - monitor resource name +func (client TagRulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, monitorName string, ruleSetName string, body *MonitoringTagRules) (result MonitoringTagRules, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/TagRulesClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("logz.TagRulesClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, monitorName, ruleSetName, body) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.TagRulesClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + resp, err := client.CreateOrUpdateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "logz.TagRulesClient", "CreateOrUpdate", resp, "Failure sending request") + return + } + + result, err = client.CreateOrUpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.TagRulesClient", "CreateOrUpdate", resp, "Failure responding to request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client TagRulesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, monitorName string, ruleSetName string, body *MonitoringTagRules) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "monitorName": autorest.Encode("path", monitorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "ruleSetName": autorest.Encode("path", ruleSetName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-10-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + body.Name = nil + body.ID = nil + body.Type = nil + body.SystemData = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/tagRules/{ruleSetName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + if body != nil { + preparer = autorest.DecoratePreparer(preparer, + autorest.WithJSON(body)) + } + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client TagRulesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client TagRulesClient) CreateOrUpdateResponder(resp *http.Response) (result MonitoringTagRules, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete sends the delete request. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// monitorName - monitor resource name +func (client TagRulesClient) Delete(ctx context.Context, resourceGroupName string, monitorName string, ruleSetName string) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/TagRulesClient.Delete") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("logz.TagRulesClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, monitorName, ruleSetName) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.TagRulesClient", "Delete", nil, "Failure preparing request") + return + } + + resp, err := client.DeleteSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "logz.TagRulesClient", "Delete", resp, "Failure sending request") + return + } + + result, err = client.DeleteResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.TagRulesClient", "Delete", resp, "Failure responding to request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client TagRulesClient) DeletePreparer(ctx context.Context, resourceGroupName string, monitorName string, ruleSetName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "monitorName": autorest.Encode("path", monitorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "ruleSetName": autorest.Encode("path", ruleSetName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-10-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/tagRules/{ruleSetName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client TagRulesClient) DeleteSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client TagRulesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get sends the get request. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// monitorName - monitor resource name +func (client TagRulesClient) Get(ctx context.Context, resourceGroupName string, monitorName string, ruleSetName string) (result MonitoringTagRules, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/TagRulesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("logz.TagRulesClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, monitorName, ruleSetName) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.TagRulesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "logz.TagRulesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.TagRulesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client TagRulesClient) GetPreparer(ctx context.Context, resourceGroupName string, monitorName string, ruleSetName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "monitorName": autorest.Encode("path", monitorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "ruleSetName": autorest.Encode("path", ruleSetName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-10-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/tagRules/{ruleSetName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client TagRulesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client TagRulesClient) GetResponder(resp *http.Response) (result MonitoringTagRules, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List sends the list request. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// monitorName - monitor resource name +func (client TagRulesClient) List(ctx context.Context, resourceGroupName string, monitorName string) (result MonitoringTagRulesListResponsePage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/TagRulesClient.List") + defer func() { + sc := -1 + if result.mtrlr.Response.Response != nil { + sc = result.mtrlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("logz.TagRulesClient", "List", err.Error()) + } + + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, monitorName) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.TagRulesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.mtrlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "logz.TagRulesClient", "List", resp, "Failure sending request") + return + } + + result.mtrlr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.TagRulesClient", "List", resp, "Failure responding to request") + return + } + if result.mtrlr.hasNextLink() && result.mtrlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client TagRulesClient) ListPreparer(ctx context.Context, resourceGroupName string, monitorName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "monitorName": autorest.Encode("path", monitorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2020-10-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/tagRules", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client TagRulesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client TagRulesClient) ListResponder(resp *http.Response) (result MonitoringTagRulesListResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client TagRulesClient) listNextResults(ctx context.Context, lastResults MonitoringTagRulesListResponse) (result MonitoringTagRulesListResponse, err error) { + req, err := lastResults.monitoringTagRulesListResponsePreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "logz.TagRulesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "logz.TagRulesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "logz.TagRulesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client TagRulesClient) ListComplete(ctx context.Context, resourceGroupName string, monitorName string) (result MonitoringTagRulesListResponseIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/TagRulesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, monitorName) + return +} diff --git a/services/preview/logz/mgmt/2020-10-01-preview/logz/version.go b/services/preview/logz/mgmt/2020-10-01-preview/logz/version.go new file mode 100644 index 000000000000..5b2fc19cb681 --- /dev/null +++ b/services/preview/logz/mgmt/2020-10-01-preview/logz/version.go @@ -0,0 +1,19 @@ +package logz + +import "github.com/Azure/azure-sdk-for-go/version" + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// UserAgent returns the UserAgent string to use when sending http.Requests. +func UserAgent() string { + return "Azure-SDK-For-Go/" + Version() + " logz/2020-10-01-preview" +} + +// Version returns the semantic version (see http://semver.org) of the client. +func Version() string { + return version.Number +} diff --git a/services/preview/machinelearning/mgmt/2016-05-01-preview/commitmentplans/CHANGELOG.md b/services/preview/machinelearning/mgmt/2016-05-01-preview/commitmentplans/CHANGELOG.md index 52911e4cc5e4..144136df4ddc 100644 --- a/services/preview/machinelearning/mgmt/2016-05-01-preview/commitmentplans/CHANGELOG.md +++ b/services/preview/machinelearning/mgmt/2016-05-01-preview/commitmentplans/CHANGELOG.md @@ -1,2 +1,16 @@ # Change History +## Additive Changes + +### New Funcs + +1. CatalogSku.MarshalJSON() ([]byte, error) +1. CommitmentAssociationProperties.MarshalJSON() ([]byte, error) +1. OperationDisplayInfo.MarshalJSON() ([]byte, error) +1. OperationEntityListResult.MarshalJSON() ([]byte, error) +1. PlanQuantity.MarshalJSON() ([]byte, error) +1. SkuCapability.MarshalJSON() ([]byte, error) +1. SkuCapacity.MarshalJSON() ([]byte, error) +1. SkuCost.MarshalJSON() ([]byte, error) +1. SkuListResult.MarshalJSON() ([]byte, error) +1. SkuRestrictions.MarshalJSON() ([]byte, error) diff --git a/services/preview/machinelearning/mgmt/2016-05-01-preview/commitmentplans/_meta.json b/services/preview/machinelearning/mgmt/2016-05-01-preview/commitmentplans/_meta.json index c69fcd3f6ecc..b56680a80cd4 100644 --- a/services/preview/machinelearning/mgmt/2016-05-01-preview/commitmentplans/_meta.json +++ b/services/preview/machinelearning/mgmt/2016-05-01-preview/commitmentplans/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/machinelearning/resource-manager/readme.md", "tag": "package-commitmentPlans-2016-05-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-commitmentPlans-2016-05-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/machinelearning/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-commitmentPlans-2016-05-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/machinelearning/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/machinelearning/mgmt/2016-05-01-preview/commitmentplans/models.go b/services/preview/machinelearning/mgmt/2016-05-01-preview/commitmentplans/models.go index 4a7d6541328a..efc91de4462f 100644 --- a/services/preview/machinelearning/mgmt/2016-05-01-preview/commitmentplans/models.go +++ b/services/preview/machinelearning/mgmt/2016-05-01-preview/commitmentplans/models.go @@ -39,6 +39,12 @@ type CatalogSku struct { Restrictions *[]SkuRestrictions `json:"restrictions,omitempty"` } +// MarshalJSON is the custom marshaler for CatalogSku. +func (cs CatalogSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CommitmentAssociation represents the association between a commitment plan and some other resource, such // as a Machine Learning web service. type CommitmentAssociation struct { @@ -247,6 +253,12 @@ type CommitmentAssociationProperties struct { CreationDate *date.Time `json:"creationDate,omitempty"` } +// MarshalJSON is the custom marshaler for CommitmentAssociationProperties. +func (capVar CommitmentAssociationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CommitmentPlan an Azure ML commitment plan resource. type CommitmentPlan struct { autorest.Response `json:"-"` @@ -464,6 +476,12 @@ type OperationDisplayInfo struct { Resource *string `json:"resource,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplayInfo. +func (odi OperationDisplayInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationEntity an API operation. type OperationEntity struct { // Name - READ-ONLY; Operation name: {provider}/{resource}/{operation}. @@ -488,6 +506,12 @@ type OperationEntityListResult struct { Value *[]OperationEntity `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationEntityListResult. +func (oelr OperationEntityListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PatchPayload the properties of a commitment plan which may be updated via PATCH. type PatchPayload struct { // Tags - User-defined tags for the commitment plan. @@ -520,6 +544,12 @@ type PlanQuantity struct { OverageMeter *string `json:"overageMeter,omitempty"` } +// MarshalJSON is the custom marshaler for PlanQuantity. +func (pq PlanQuantity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PlanUsageHistory represents historical information about usage of the Azure resources associated with a // commitment plan. type PlanUsageHistory struct { @@ -799,6 +829,12 @@ type SkuCapability struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SkuCapability. +func (sc SkuCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuCapacity describes scaling information of a SKU. type SkuCapacity struct { // Minimum - READ-ONLY; The minimum capacity. @@ -811,6 +847,12 @@ type SkuCapacity struct { ScaleType SkuCapacityScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for SkuCapacity. +func (sc SkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuCost describes metadata for SKU cost info. type SkuCost struct { // MeterID - READ-ONLY; The meter used for this part of a SKU's cost. @@ -821,6 +863,12 @@ type SkuCost struct { ExtendedUnit *string `json:"extendedUnit,omitempty"` } +// MarshalJSON is the custom marshaler for SkuCost. +func (sc SkuCost) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuListResult the list of commitment plan SKUs. type SkuListResult struct { autorest.Response `json:"-"` @@ -828,6 +876,12 @@ type SkuListResult struct { Value *[]CatalogSku `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SkuListResult. +func (slr SkuListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuRestrictions describes restrictions which would prevent a SKU from being used. type SkuRestrictions struct { // Type - READ-ONLY; The type of restrictions. Possible values include: 'Location', 'Zone' @@ -837,3 +891,9 @@ type SkuRestrictions struct { // ReasonCode - READ-ONLY; The reason for restriction. Possible values include: 'QuotaID', 'NotAvailableForSubscription' ReasonCode ResourceSkuRestrictionsReasonCode `json:"reasonCode,omitempty"` } + +// MarshalJSON is the custom marshaler for SkuRestrictions. +func (sr SkuRestrictions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/preview/machinelearning/mgmt/2016-05-01-preview/webservices/_meta.json b/services/preview/machinelearning/mgmt/2016-05-01-preview/webservices/_meta.json index afced0646c5b..fb067bd7f6e1 100644 --- a/services/preview/machinelearning/mgmt/2016-05-01-preview/webservices/_meta.json +++ b/services/preview/machinelearning/mgmt/2016-05-01-preview/webservices/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/machinelearning/resource-manager/readme.md", "tag": "package-webservices-2016-05-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-webservices-2016-05-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/machinelearning/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-webservices-2016-05-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/machinelearning/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/machinelearning/mgmt/2017-05-01-preview/experimentation/_meta.json b/services/preview/machinelearning/mgmt/2017-05-01-preview/experimentation/_meta.json index 3393155e5713..280adf5939c0 100644 --- a/services/preview/machinelearning/mgmt/2017-05-01-preview/experimentation/_meta.json +++ b/services/preview/machinelearning/mgmt/2017-05-01-preview/experimentation/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/machinelearningexperimentation/resource-manager/readme.md", "tag": "package-2017-05-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-05-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/machinelearningexperimentation/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-05-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/machinelearningexperimentation/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/machinelearning/mgmt/2017-08-01-preview/compute/CHANGELOG.md b/services/preview/machinelearning/mgmt/2017-08-01-preview/compute/CHANGELOG.md index 52911e4cc5e4..99ea2ae5a6b1 100644 --- a/services/preview/machinelearning/mgmt/2017-08-01-preview/compute/CHANGELOG.md +++ b/services/preview/machinelearning/mgmt/2017-08-01-preview/compute/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. CheckSystemServicesUpdatesAvailableResponse.MarshalJSON() ([]byte, error) +1. ContainerRegistryCredentials.MarshalJSON() ([]byte, error) +1. ContainerServiceCredentials.MarshalJSON() ([]byte, error) +1. StorageAccountCredentials.MarshalJSON() ([]byte, error) +1. UpdateSystemServicesResponse.MarshalJSON() ([]byte, error) diff --git a/services/preview/machinelearning/mgmt/2017-08-01-preview/compute/_meta.json b/services/preview/machinelearning/mgmt/2017-08-01-preview/compute/_meta.json index eb5a66e6daa0..0c24935d4d1b 100644 --- a/services/preview/machinelearning/mgmt/2017-08-01-preview/compute/_meta.json +++ b/services/preview/machinelearning/mgmt/2017-08-01-preview/compute/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/machinelearningcompute/resource-manager/readme.md", "tag": "package-2017-08-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-08-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/machinelearningcompute/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-08-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/machinelearningcompute/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/machinelearning/mgmt/2017-08-01-preview/compute/models.go b/services/preview/machinelearning/mgmt/2017-08-01-preview/compute/models.go index 32531982405c..2e064e6b9ff1 100644 --- a/services/preview/machinelearning/mgmt/2017-08-01-preview/compute/models.go +++ b/services/preview/machinelearning/mgmt/2017-08-01-preview/compute/models.go @@ -105,6 +105,12 @@ type CheckSystemServicesUpdatesAvailableResponse struct { UpdatesAvailable UpdatesAvailable `json:"updatesAvailable,omitempty"` } +// MarshalJSON is the custom marshaler for CheckSystemServicesUpdatesAvailableResponse. +func (cssuar CheckSystemServicesUpdatesAvailableResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerRegistryCredentials information about the Azure Container Registry which contains the images // deployed to the cluster. type ContainerRegistryCredentials struct { @@ -118,6 +124,12 @@ type ContainerRegistryCredentials struct { Username *string `json:"username,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerRegistryCredentials. +func (crc ContainerRegistryCredentials) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerRegistryProperties properties of Azure Container Registry. type ContainerRegistryProperties struct { // ResourceID - ARM resource ID of the Azure Container Registry used to store Docker images for web services in the cluster. If not provided one will be created. This cannot be changed once the cluster is created. @@ -135,6 +147,12 @@ type ContainerServiceCredentials struct { ImagePullSecretName *string `json:"imagePullSecretName,omitempty"` } +// MarshalJSON is the custom marshaler for ContainerServiceCredentials. +func (csc ContainerServiceCredentials) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetail error detail information. type ErrorDetail struct { // Code - Error code. @@ -821,6 +839,12 @@ type StorageAccountCredentials struct { SecondaryKey *string `json:"secondaryKey,omitempty"` } +// MarshalJSON is the custom marshaler for StorageAccountCredentials. +func (sac StorageAccountCredentials) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageAccountProperties properties of Storage Account. type StorageAccountProperties struct { // ResourceID - ARM resource ID of the Azure Storage Account to store CLI specific files. If not provided one will be created. This cannot be changed once the cluster is created. @@ -856,3 +880,9 @@ type UpdateSystemServicesResponse struct { // UpdateCompletedOn - READ-ONLY; The date and time when the last system services update completed. UpdateCompletedOn *date.Time `json:"updateCompletedOn,omitempty"` } + +// MarshalJSON is the custom marshaler for UpdateSystemServicesResponse. +func (ussr UpdateSystemServicesResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/CHANGELOG.md b/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/CHANGELOG.md index 52911e4cc5e4..4f8aac3b8d4a 100644 --- a/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/CHANGELOG.md +++ b/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. ListWorkspaceKeysResult.MarshalJSON() ([]byte, error) +1. Password.MarshalJSON() ([]byte, error) +1. SystemService.MarshalJSON() ([]byte, error) diff --git a/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/_meta.json b/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/_meta.json index a254bfb1dc31..851ad591b0c1 100644 --- a/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/_meta.json +++ b/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/machinelearningservices/resource-manager/readme.md", "tag": "package-2018-03-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-03-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/machinelearningservices/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-03-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/machinelearningservices/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/models.go b/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/models.go index b7f433d48909..52cd85cff88f 100644 --- a/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/models.go +++ b/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/models.go @@ -822,6 +822,12 @@ type ListWorkspaceKeysResult struct { ContainerRegistryCredentials *RegistryListCredentialsResult `json:"containerRegistryCredentials,omitempty"` } +// MarshalJSON is the custom marshaler for ListWorkspaceKeysResult. +func (lwkr ListWorkspaceKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MachineLearningComputeCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type MachineLearningComputeCreateOrUpdateFuture struct { @@ -1134,6 +1140,12 @@ type Password struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for Password. +func (p Password) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegistryListCredentialsResult ... type RegistryListCredentialsResult struct { // Location - READ-ONLY @@ -1223,6 +1235,12 @@ type SystemService struct { Version *string `json:"version,omitempty"` } +// MarshalJSON is the custom marshaler for SystemService. +func (ss SystemService) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachine a Machine Learning compute based on Azure Virtual Machines. type VirtualMachine struct { Properties *VirtualMachineProperties `json:"properties,omitempty"` diff --git a/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/CHANGELOG.md b/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/CHANGELOG.md index 52911e4cc5e4..8c60247dcea4 100644 --- a/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/CHANGELOG.md +++ b/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/CHANGELOG.md @@ -1,2 +1,27 @@ # Change History +## Additive Changes + +### New Funcs + +1. AmlComputeNodeInformation.MarshalJSON() ([]byte, error) +1. ComputeInstanceConnectivityEndpoints.MarshalJSON() ([]byte, error) +1. ComputeInstanceCreatedBy.MarshalJSON() ([]byte, error) +1. Error.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. ListAmlUserFeatureResult.MarshalJSON() ([]byte, error) +1. ListUsagesResult.MarshalJSON() ([]byte, error) +1. ListWorkspaceKeysResult.MarshalJSON() ([]byte, error) +1. ListWorkspaceQuotas.MarshalJSON() ([]byte, error) +1. NodeStateCounts.MarshalJSON() ([]byte, error) +1. Password.MarshalJSON() ([]byte, error) +1. PrivateEndpoint.MarshalJSON() ([]byte, error) +1. ResourceName.MarshalJSON() ([]byte, error) +1. ResourceQuota.MarshalJSON() ([]byte, error) +1. ResourceSkuLocationInfo.MarshalJSON() ([]byte, error) +1. ResourceSkuZoneDetails.MarshalJSON() ([]byte, error) +1. SystemService.MarshalJSON() ([]byte, error) +1. UpdateWorkspaceQuotasResult.MarshalJSON() ([]byte, error) +1. Usage.MarshalJSON() ([]byte, error) +1. UsageName.MarshalJSON() ([]byte, error) +1. VirtualMachineSize.MarshalJSON() ([]byte, error) diff --git a/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/_meta.json b/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/_meta.json index 2596b6c3656e..8203c41cb607 100644 --- a/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/_meta.json +++ b/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/machinelearningservices/resource-manager/readme.md", "tag": "package-2020-02-18-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-02-18-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/machinelearningservices/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-02-18-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/machinelearningservices/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/models.go b/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/models.go index c04e5ad06542..ad0511731168 100644 --- a/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/models.go +++ b/services/preview/machinelearningservices/mgmt/2020-02-18-preview/machinelearningservices/models.go @@ -333,6 +333,12 @@ type AmlComputeNodeInformation struct { RunID *string `json:"runId,omitempty"` } +// MarshalJSON is the custom marshaler for AmlComputeNodeInformation. +func (acni AmlComputeNodeInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AmlComputeNodesInformation compute node information related to a AmlCompute. type AmlComputeNodesInformation struct { autorest.Response `json:"-"` @@ -776,6 +782,12 @@ type ComputeInstanceConnectivityEndpoints struct { PrivateIPAddress *string `json:"privateIpAddress,omitempty"` } +// MarshalJSON is the custom marshaler for ComputeInstanceConnectivityEndpoints. +func (cice ComputeInstanceConnectivityEndpoints) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ComputeInstanceCreatedBy describes information on user who created this ComputeInstance. type ComputeInstanceCreatedBy struct { // UserName - READ-ONLY; Name of the user. @@ -786,6 +798,12 @@ type ComputeInstanceCreatedBy struct { UserID *string `json:"userId,omitempty"` } +// MarshalJSON is the custom marshaler for ComputeInstanceCreatedBy. +func (cicb ComputeInstanceCreatedBy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ComputeInstanceProperties compute Instance properties type ComputeInstanceProperties struct { // VMSize - Virtual Machine Size @@ -1529,6 +1547,12 @@ type Error struct { Error *ErrorResponse `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for Error. +func (e Error) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetail error detail information. type ErrorDetail struct { // Code - Error code. @@ -1547,6 +1571,12 @@ type ErrorResponse struct { Details *[]ErrorDetail `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HDInsight a HDInsight compute. type HDInsight struct { Properties *HDInsightProperties `json:"properties,omitempty"` @@ -1690,6 +1720,12 @@ type ListAmlUserFeatureResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListAmlUserFeatureResult. +func (laufr ListAmlUserFeatureResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListAmlUserFeatureResultIterator provides access to a complete listing of AmlUserFeature values. type ListAmlUserFeatureResultIterator struct { i int @@ -1849,6 +1885,12 @@ type ListUsagesResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListUsagesResult. +func (lur ListUsagesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListUsagesResultIterator provides access to a complete listing of Usage values. type ListUsagesResultIterator struct { i int @@ -2012,6 +2054,12 @@ type ListWorkspaceKeysResult struct { ContainerRegistryCredentials *RegistryListCredentialsResult `json:"containerRegistryCredentials,omitempty"` } +// MarshalJSON is the custom marshaler for ListWorkspaceKeysResult. +func (lwkr ListWorkspaceKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListWorkspaceQuotas the List WorkspaceQuotasByVMFamily operation response. type ListWorkspaceQuotas struct { autorest.Response `json:"-"` @@ -2021,6 +2069,12 @@ type ListWorkspaceQuotas struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListWorkspaceQuotas. +func (lwq ListWorkspaceQuotas) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListWorkspaceQuotasIterator provides access to a complete listing of ResourceQuota values. type ListWorkspaceQuotasIterator struct { i int @@ -2310,6 +2364,12 @@ type NodeStateCounts struct { PreemptedNodeCount *int32 `json:"preemptedNodeCount,omitempty"` } +// MarshalJSON is the custom marshaler for NodeStateCounts. +func (nsc NodeStateCounts) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation azure Machine Learning workspace REST API operation type Operation struct { // Name - Operation name: {provider}/{resource}/{operation} @@ -2505,6 +2565,12 @@ type Password struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for Password. +func (p Password) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PersonalComputeInstanceSettings settings for a personal compute instance. type PersonalComputeInstanceSettings struct { // AssignedUser - A user explicitly assigned to a personal compute instance. @@ -2517,6 +2583,12 @@ type PrivateEndpoint struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpoint. +func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection the Private Endpoint Connection resource. type PrivateEndpointConnection struct { autorest.Response `json:"-"` @@ -2907,6 +2979,12 @@ type ResourceName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceName. +func (rn ResourceName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceQuota the quota assigned to a resource. type ResourceQuota struct { // ID - READ-ONLY; Specifies the resource ID. @@ -2921,6 +2999,12 @@ type ResourceQuota struct { Unit QuotaUnit `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceQuota. +func (rq ResourceQuota) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuLocationInfo ... type ResourceSkuLocationInfo struct { // Location - READ-ONLY; Location of the SKU @@ -2931,6 +3015,12 @@ type ResourceSkuLocationInfo struct { ZoneDetails *[]ResourceSkuZoneDetails `json:"zoneDetails,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuLocationInfo. +func (rsli ResourceSkuLocationInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceSkuZoneDetails describes The zonal capabilities of a SKU. type ResourceSkuZoneDetails struct { // Name - READ-ONLY; The set of zones that the SKU is available in with the specified capabilities. @@ -2939,6 +3029,12 @@ type ResourceSkuZoneDetails struct { Capabilities *[]SKUCapability `json:"capabilities,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceSkuZoneDetails. +func (rszd ResourceSkuZoneDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Restriction the restriction because of which SKU cannot be used. type Restriction struct { // Type - READ-ONLY; The type of restrictions. As of now only possible value for this is location. @@ -3172,6 +3268,12 @@ type SystemService struct { Version *string `json:"version,omitempty"` } +// MarshalJSON is the custom marshaler for SystemService. +func (ss SystemService) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpdateWorkspaceQuotas the properties for update Quota response. type UpdateWorkspaceQuotas struct { // ID - READ-ONLY; Specifies the resource ID. @@ -3207,6 +3309,12 @@ type UpdateWorkspaceQuotasResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for UpdateWorkspaceQuotasResult. +func (uwqr UpdateWorkspaceQuotasResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage describes AML Resource Usage. type Usage struct { // ID - READ-ONLY; Specifies the resource ID. @@ -3223,6 +3331,12 @@ type Usage struct { Name *UsageName `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for Usage. +func (u Usage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageName the Usage Names. type UsageName struct { // Value - READ-ONLY; The name of the resource. @@ -3231,6 +3345,12 @@ type UsageName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for UsageName. +func (un UsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UserAccountCredentials settings for user account that gets created on each on the nodes of a compute. type UserAccountCredentials struct { // AdminUserName - Name of the administrator user account which can be used to SSH to nodes. @@ -3416,6 +3536,12 @@ type VirtualMachineSize struct { PremiumIO *bool `json:"premiumIO,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineSize. +func (vms VirtualMachineSize) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineSizeListResult the List Virtual Machine size operation response. type VirtualMachineSizeListResult struct { autorest.Response `json:"-"` diff --git a/services/preview/maintenance/mgmt/2018-06-01-preview/maintenance/CHANGELOG.md b/services/preview/maintenance/mgmt/2018-06-01-preview/maintenance/CHANGELOG.md index 52911e4cc5e4..f817772e217f 100644 --- a/services/preview/maintenance/mgmt/2018-06-01-preview/maintenance/CHANGELOG.md +++ b/services/preview/maintenance/mgmt/2018-06-01-preview/maintenance/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/maintenance/mgmt/2018-06-01-preview/maintenance/_meta.json b/services/preview/maintenance/mgmt/2018-06-01-preview/maintenance/_meta.json index 073a926cd3f7..72d0bac59365 100644 --- a/services/preview/maintenance/mgmt/2018-06-01-preview/maintenance/_meta.json +++ b/services/preview/maintenance/mgmt/2018-06-01-preview/maintenance/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/maintenance/resource-manager/readme.md", "tag": "package-2018-06-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-06-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/maintenance/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-06-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/maintenance/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/maintenance/mgmt/2018-06-01-preview/maintenance/models.go b/services/preview/maintenance/mgmt/2018-06-01-preview/maintenance/models.go index 1715e7ee94b5..601942c18b19 100755 --- a/services/preview/maintenance/mgmt/2018-06-01-preview/maintenance/models.go +++ b/services/preview/maintenance/mgmt/2018-06-01-preview/maintenance/models.go @@ -395,6 +395,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Update maintenance update on a resource type Update struct { // MaintenanceScope - The impact area. Possible values include: 'ScopeAll', 'ScopeHost', 'ScopeResource', 'ScopeInResource' diff --git a/services/preview/managednetwork/mgmt/2019-06-01-preview/managednetwork/CHANGELOG.md b/services/preview/managednetwork/mgmt/2019-06-01-preview/managednetwork/CHANGELOG.md index 52911e4cc5e4..7167594bf169 100644 --- a/services/preview/managednetwork/mgmt/2019-06-01-preview/managednetwork/CHANGELOG.md +++ b/services/preview/managednetwork/mgmt/2019-06-01-preview/managednetwork/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. ConnectivityCollection.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. ResourceProperties.MarshalJSON() ([]byte, error) diff --git a/services/preview/managednetwork/mgmt/2019-06-01-preview/managednetwork/_meta.json b/services/preview/managednetwork/mgmt/2019-06-01-preview/managednetwork/_meta.json index 7b3cf487bf81..20ac679d7448 100644 --- a/services/preview/managednetwork/mgmt/2019-06-01-preview/managednetwork/_meta.json +++ b/services/preview/managednetwork/mgmt/2019-06-01-preview/managednetwork/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/managednetwork/resource-manager/readme.md", "tag": "package-2019-06-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-06-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/managednetwork/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-06-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/managednetwork/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/managednetwork/mgmt/2019-06-01-preview/managednetwork/models.go b/services/preview/managednetwork/mgmt/2019-06-01-preview/managednetwork/models.go index 0681f23a52ec..e679e2720322 100644 --- a/services/preview/managednetwork/mgmt/2019-06-01-preview/managednetwork/models.go +++ b/services/preview/managednetwork/mgmt/2019-06-01-preview/managednetwork/models.go @@ -28,6 +28,12 @@ type ConnectivityCollection struct { Peerings *[]PeeringPolicy `json:"peerings,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectivityCollection. +func (cc ConnectivityCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse the error response that indicates why an operation has failed. type ErrorResponse struct { // Code - READ-ONLY; The error code. @@ -36,6 +42,12 @@ type ErrorResponse struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Group the Managed Network Group resource type Group struct { autorest.Response `json:"-"` @@ -1376,6 +1388,12 @@ type ResourceProperties struct { Etag *string `json:"etag,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceProperties. +func (rp ResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Scope scope of a Managed Network type Scope struct { // ManagementGroups - The collection of management groups covered by the Managed Network diff --git a/services/preview/managedservices/mgmt/2018-06-01/managedservices/CHANGELOG.md b/services/preview/managedservices/mgmt/2018-06-01/managedservices/CHANGELOG.md index 52911e4cc5e4..a235d8f6b210 100644 --- a/services/preview/managedservices/mgmt/2018-06-01/managedservices/CHANGELOG.md +++ b/services/preview/managedservices/mgmt/2018-06-01/managedservices/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. Operation.MarshalJSON() ([]byte, error) +1. OperationList.MarshalJSON() ([]byte, error) +1. RegistrationAssignmentList.MarshalJSON() ([]byte, error) +1. RegistrationDefinitionList.MarshalJSON() ([]byte, error) diff --git a/services/preview/managedservices/mgmt/2018-06-01/managedservices/_meta.json b/services/preview/managedservices/mgmt/2018-06-01/managedservices/_meta.json index 43e73d31b13b..1e4832ca5a08 100644 --- a/services/preview/managedservices/mgmt/2018-06-01/managedservices/_meta.json +++ b/services/preview/managedservices/mgmt/2018-06-01/managedservices/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/managedservices/resource-manager/readme.md", "tag": "package-2018-06-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-06-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/managedservices/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-06-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/managedservices/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/managedservices/mgmt/2018-06-01/managedservices/models.go b/services/preview/managedservices/mgmt/2018-06-01/managedservices/models.go index eee01748ba43..0644ae0ac6c5 100644 --- a/services/preview/managedservices/mgmt/2018-06-01/managedservices/models.go +++ b/services/preview/managedservices/mgmt/2018-06-01/managedservices/models.go @@ -57,6 +57,12 @@ type Operation struct { Display *OperationDisplay `json:"display,omitempty"` } +// MarshalJSON is the custom marshaler for Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationDisplay the object that represents the operation. type OperationDisplay struct { // Provider - Service provider: Microsoft.ManagedServices @@ -76,6 +82,12 @@ type OperationList struct { Value *[]Operation `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationList. +func (ol OperationList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Plan plan details for the managed services. type Plan struct { // Name - The plan name. @@ -119,6 +131,12 @@ type RegistrationAssignmentList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RegistrationAssignmentList. +func (ral RegistrationAssignmentList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegistrationAssignmentListIterator provides access to a complete listing of RegistrationAssignment // values. type RegistrationAssignmentListIterator struct { @@ -373,6 +391,12 @@ type RegistrationDefinitionList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RegistrationDefinitionList. +func (rdl RegistrationDefinitionList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegistrationDefinitionListIterator provides access to a complete listing of RegistrationDefinition // values. type RegistrationDefinitionListIterator struct { diff --git a/services/preview/managedservices/mgmt/2019-04-01/managedservices/CHANGELOG.md b/services/preview/managedservices/mgmt/2019-04-01/managedservices/CHANGELOG.md index 52911e4cc5e4..a235d8f6b210 100644 --- a/services/preview/managedservices/mgmt/2019-04-01/managedservices/CHANGELOG.md +++ b/services/preview/managedservices/mgmt/2019-04-01/managedservices/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. Operation.MarshalJSON() ([]byte, error) +1. OperationList.MarshalJSON() ([]byte, error) +1. RegistrationAssignmentList.MarshalJSON() ([]byte, error) +1. RegistrationDefinitionList.MarshalJSON() ([]byte, error) diff --git a/services/preview/managedservices/mgmt/2019-04-01/managedservices/_meta.json b/services/preview/managedservices/mgmt/2019-04-01/managedservices/_meta.json index b79b159c3e29..2daf885f86c0 100644 --- a/services/preview/managedservices/mgmt/2019-04-01/managedservices/_meta.json +++ b/services/preview/managedservices/mgmt/2019-04-01/managedservices/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/managedservices/resource-manager/readme.md", "tag": "package-2019-04-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-04-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/managedservices/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-04-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/managedservices/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/managedservices/mgmt/2019-04-01/managedservices/models.go b/services/preview/managedservices/mgmt/2019-04-01/managedservices/models.go index 2428118a3757..39efb926c035 100644 --- a/services/preview/managedservices/mgmt/2019-04-01/managedservices/models.go +++ b/services/preview/managedservices/mgmt/2019-04-01/managedservices/models.go @@ -58,6 +58,12 @@ type Operation struct { Display *OperationDisplay `json:"display,omitempty"` } +// MarshalJSON is the custom marshaler for Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationDisplay the object that represents the operation. type OperationDisplay struct { // Provider - Service provider: Microsoft.ManagedServices @@ -77,6 +83,12 @@ type OperationList struct { Value *[]Operation `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationList. +func (ol OperationList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Plan plan details for the managed services. type Plan struct { // Name - The plan name. @@ -120,6 +132,12 @@ type RegistrationAssignmentList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RegistrationAssignmentList. +func (ral RegistrationAssignmentList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegistrationAssignmentListIterator provides access to a complete listing of RegistrationAssignment // values. type RegistrationAssignmentListIterator struct { @@ -454,6 +472,12 @@ type RegistrationDefinitionList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RegistrationDefinitionList. +func (rdl RegistrationDefinitionList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegistrationDefinitionListIterator provides access to a complete listing of RegistrationDefinition // values. type RegistrationDefinitionListIterator struct { diff --git a/services/preview/managementpartner/mgmt/2018-02-01/managementpartner/_meta.json b/services/preview/managementpartner/mgmt/2018-02-01/managementpartner/_meta.json index 9e3520f22a38..0f363864ca2d 100644 --- a/services/preview/managementpartner/mgmt/2018-02-01/managementpartner/_meta.json +++ b/services/preview/managementpartner/mgmt/2018-02-01/managementpartner/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/managementpartner/resource-manager/readme.md", "tag": "package-2018-02", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/managementpartner/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/managementpartner/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/maps/mgmt/2020-02-01-preview/maps/CHANGELOG.md b/services/preview/maps/mgmt/2020-02-01-preview/maps/CHANGELOG.md index 52911e4cc5e4..f41eaeae9eaf 100644 --- a/services/preview/maps/mgmt/2020-02-01-preview/maps/CHANGELOG.md +++ b/services/preview/maps/mgmt/2020-02-01-preview/maps/CHANGELOG.md @@ -1,2 +1,17 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountKeys.MarshalJSON() ([]byte, error) +1. Accounts.MarshalJSON() ([]byte, error) +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. CreatorList.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorDetail.MarshalJSON() ([]byte, error) +1. Operations.MarshalJSON() ([]byte, error) +1. OperationsValueItemDisplay.MarshalJSON() ([]byte, error) +1. PrivateAtlasList.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/maps/mgmt/2020-02-01-preview/maps/_meta.json b/services/preview/maps/mgmt/2020-02-01-preview/maps/_meta.json index 61bcde5d0e74..e10d7d87e5b1 100644 --- a/services/preview/maps/mgmt/2020-02-01-preview/maps/_meta.json +++ b/services/preview/maps/mgmt/2020-02-01-preview/maps/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/maps/resource-manager/readme.md", "tag": "package-preview-2020-02", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-preview-2020-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/maps/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-preview-2020-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/maps/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/maps/mgmt/2020-02-01-preview/maps/models.go b/services/preview/maps/mgmt/2020-02-01-preview/maps/models.go index ca8780a4e227..3ef9465117d8 100644 --- a/services/preview/maps/mgmt/2020-02-01-preview/maps/models.go +++ b/services/preview/maps/mgmt/2020-02-01-preview/maps/models.go @@ -85,6 +85,12 @@ type AccountKeys struct { SecondaryKey *string `json:"secondaryKey,omitempty"` } +// MarshalJSON is the custom marshaler for AccountKeys. +func (ak AccountKeys) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountProperties additional Map account properties type AccountProperties struct { // XMsClientID - A unique identifier for the maps account @@ -98,6 +104,12 @@ type Accounts struct { Value *[]Account `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for Accounts. +func (a Accounts) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountUpdateParameters parameters used to update an existing Maps Account. type AccountUpdateParameters struct { // Tags - Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. @@ -130,6 +142,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Creator an Azure resource which represents Maps Creator product and provides ability to manage private // location data. type Creator struct { @@ -190,6 +208,12 @@ type CreatorList struct { Value *[]Creator `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CreatorList. +func (cl CreatorList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CreatorProperties creator resource properties type CreatorProperties struct { // ProvisioningState - The state of the resource provisioning, terminal states: Succeeded, Failed, Canceled @@ -219,6 +243,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetail the error detail. type ErrorDetail struct { // Code - READ-ONLY; The error code. @@ -233,6 +263,12 @@ type ErrorDetail struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetail. +func (ed ErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.). type ErrorResponse struct { @@ -253,6 +289,12 @@ type Operations struct { Value *[]OperationsValueItem `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for Operations. +func (o Operations) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationsValueItem ... type OperationsValueItem struct { // Name - READ-ONLY; Operation name: {provider}/{resource}/{operation}. @@ -284,6 +326,12 @@ type OperationsValueItemDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationsValueItemDisplay. +func (oI OperationsValueItemDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateAtlas an Azure resource which represents which will provision the ability to create private // location data. type PrivateAtlas struct { @@ -344,6 +392,12 @@ type PrivateAtlasList struct { Value *[]PrivateAtlas `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateAtlasList. +func (pal PrivateAtlasList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateAtlasProperties private Atlas resource properties type PrivateAtlasProperties struct { // ProvisioningState - The state of the resource provisioning, terminal states: Succeeded, Failed, Canceled @@ -376,6 +430,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -386,6 +446,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Sku the SKU of the Maps Account. type Sku struct { // Name - The name of the SKU, in standard format (such as S0). diff --git a/services/preview/mediaservices/mgmt/2018-03-30-preview/media/CHANGELOG.md b/services/preview/mediaservices/mgmt/2018-03-30-preview/media/CHANGELOG.md index 52911e4cc5e4..072f817e93dc 100644 --- a/services/preview/mediaservices/mgmt/2018-03-30-preview/media/CHANGELOG.md +++ b/services/preview/mediaservices/mgmt/2018-03-30-preview/media/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. JobError.MarshalJSON() ([]byte, error) +1. JobErrorDetail.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/mediaservices/mgmt/2018-03-30-preview/media/_meta.json b/services/preview/mediaservices/mgmt/2018-03-30-preview/media/_meta.json index e3f4cb99c83b..c90c8d565bdf 100644 --- a/services/preview/mediaservices/mgmt/2018-03-30-preview/media/_meta.json +++ b/services/preview/mediaservices/mgmt/2018-03-30-preview/media/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/mediaservices/resource-manager/readme.md", "tag": "package-2018-03-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-03-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/mediaservices/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-03-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/mediaservices/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/mediaservices/mgmt/2018-03-30-preview/media/models.go b/services/preview/mediaservices/mgmt/2018-03-30-preview/media/models.go index c6b9a0b46aca..ab46fe5b9948 100644 --- a/services/preview/mediaservices/mgmt/2018-03-30-preview/media/models.go +++ b/services/preview/mediaservices/mgmt/2018-03-30-preview/media/models.go @@ -3937,6 +3937,12 @@ type JobError struct { Details *[]JobErrorDetail `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for JobError. +func (je JobError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobErrorDetail details of JobOutput errors. type JobErrorDetail struct { // Code - READ-ONLY; Code describing the error detail. @@ -3945,6 +3951,12 @@ type JobErrorDetail struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for JobErrorDetail. +func (jed JobErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicJobInput base class for inputs to a Job. type BasicJobInput interface { AsJobInputClip() (*JobInputClip, bool) @@ -6926,6 +6938,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Rectangle describes the properties of a rectangular window applied to the input media before processing // it. type Rectangle struct { @@ -6949,6 +6967,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Service a Media Services account. type Service struct { autorest.Response `json:"-"` diff --git a/services/preview/mediaservices/mgmt/2018-06-01-preview/media/CHANGELOG.md b/services/preview/mediaservices/mgmt/2018-06-01-preview/media/CHANGELOG.md index 52911e4cc5e4..072f817e93dc 100644 --- a/services/preview/mediaservices/mgmt/2018-06-01-preview/media/CHANGELOG.md +++ b/services/preview/mediaservices/mgmt/2018-06-01-preview/media/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. JobError.MarshalJSON() ([]byte, error) +1. JobErrorDetail.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/mediaservices/mgmt/2018-06-01-preview/media/_meta.json b/services/preview/mediaservices/mgmt/2018-06-01-preview/media/_meta.json index fb16b4e0862f..b7b010a4b8da 100644 --- a/services/preview/mediaservices/mgmt/2018-06-01-preview/media/_meta.json +++ b/services/preview/mediaservices/mgmt/2018-06-01-preview/media/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/mediaservices/resource-manager/readme.md", "tag": "package-2018-06-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-06-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/mediaservices/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-06-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/mediaservices/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/mediaservices/mgmt/2018-06-01-preview/media/models.go b/services/preview/mediaservices/mgmt/2018-06-01-preview/media/models.go index a020b6ef272e..217ba0e01a6d 100644 --- a/services/preview/mediaservices/mgmt/2018-06-01-preview/media/models.go +++ b/services/preview/mediaservices/mgmt/2018-06-01-preview/media/models.go @@ -3937,6 +3937,12 @@ type JobError struct { Details *[]JobErrorDetail `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for JobError. +func (je JobError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobErrorDetail details of JobOutput errors. type JobErrorDetail struct { // Code - READ-ONLY; Code describing the error detail. @@ -3945,6 +3951,12 @@ type JobErrorDetail struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for JobErrorDetail. +func (jed JobErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicJobInput base class for inputs to a Job. type BasicJobInput interface { AsJobInputClip() (*JobInputClip, bool) @@ -6942,6 +6954,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Rectangle describes the properties of a rectangular window applied to the input media before processing // it. type Rectangle struct { @@ -6965,6 +6983,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Service a Media Services account. type Service struct { autorest.Response `json:"-"` diff --git a/services/preview/mediaservices/mgmt/2019-05-01-preview/media/CHANGELOG.md b/services/preview/mediaservices/mgmt/2019-05-01-preview/media/CHANGELOG.md index 52911e4cc5e4..ddaa9897da98 100644 --- a/services/preview/mediaservices/mgmt/2019-05-01-preview/media/CHANGELOG.md +++ b/services/preview/mediaservices/mgmt/2019-05-01-preview/media/CHANGELOG.md @@ -1,2 +1,16 @@ # Change History +## Additive Changes + +### New Funcs + +1. AssetStreamingLocator.MarshalJSON() ([]byte, error) +1. JobError.MarshalJSON() ([]byte, error) +1. JobErrorDetail.MarshalJSON() ([]byte, error) +1. ListStreamingLocatorsResponse.MarshalJSON() ([]byte, error) +1. Metric.MarshalJSON() ([]byte, error) +1. MetricDimension.MarshalJSON() ([]byte, error) +1. MetricProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ServiceSpecification.MarshalJSON() ([]byte, error) diff --git a/services/preview/mediaservices/mgmt/2019-05-01-preview/media/_meta.json b/services/preview/mediaservices/mgmt/2019-05-01-preview/media/_meta.json index 8d40d8d2a266..ba13baf6dc9c 100644 --- a/services/preview/mediaservices/mgmt/2019-05-01-preview/media/_meta.json +++ b/services/preview/mediaservices/mgmt/2019-05-01-preview/media/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/mediaservices/resource-manager/readme.md", "tag": "package-2019-05-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-05-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/mediaservices/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-05-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/mediaservices/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/mediaservices/mgmt/2019-05-01-preview/media/models.go b/services/preview/mediaservices/mgmt/2019-05-01-preview/media/models.go index 81b14c3eca0e..90375a7f63e7 100644 --- a/services/preview/mediaservices/mgmt/2019-05-01-preview/media/models.go +++ b/services/preview/mediaservices/mgmt/2019-05-01-preview/media/models.go @@ -961,6 +961,12 @@ type AssetStreamingLocator struct { DefaultContentKeyPolicyName *string `json:"defaultContentKeyPolicyName,omitempty"` } +// MarshalJSON is the custom marshaler for AssetStreamingLocator. +func (asl AssetStreamingLocator) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicAudio defines the common properties for all audio codecs. type BasicAudio interface { AsAacAudio() (*AacAudio, bool) @@ -4641,6 +4647,12 @@ type JobError struct { Details *[]JobErrorDetail `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for JobError. +func (je JobError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobErrorDetail details of JobOutput errors. type JobErrorDetail struct { // Code - READ-ONLY; Code describing the error detail. @@ -4649,6 +4661,12 @@ type JobErrorDetail struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for JobErrorDetail. +func (jed JobErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicJobInput base class for inputs to a Job. type BasicJobInput interface { AsJobInputClip() (*JobInputClip, bool) @@ -5977,6 +5995,12 @@ type ListStreamingLocatorsResponse struct { StreamingLocators *[]AssetStreamingLocator `json:"streamingLocators,omitempty"` } +// MarshalJSON is the custom marshaler for ListStreamingLocatorsResponse. +func (lslr ListStreamingLocatorsResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LiveEvent the Live Event. type LiveEvent struct { autorest.Response `json:"-"` @@ -7004,6 +7028,12 @@ type Metric struct { Dimensions *[]MetricDimension `json:"dimensions,omitempty"` } +// MarshalJSON is the custom marshaler for Metric. +func (mVar Metric) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricDimension a metric dimension. type MetricDimension struct { // Name - READ-ONLY; The metric dimension name. @@ -7014,12 +7044,24 @@ type MetricDimension struct { ToBeExportedForShoebox *bool `json:"toBeExportedForShoebox,omitempty"` } +// MarshalJSON is the custom marshaler for MetricDimension. +func (md MetricDimension) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricProperties metric properties. type MetricProperties struct { // ServiceSpecification - READ-ONLY; The service specifications. ServiceSpecification *ServiceSpecification `json:"serviceSpecification,omitempty"` } +// MarshalJSON is the custom marshaler for MetricProperties. +func (mp MetricProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Mp4Format describes the properties for an output ISO MP4 file. type Mp4Format struct { // OutputFiles - The list of output files to produce. Each entry in the list is a set of audio and video layer labels to be muxed together . @@ -7958,6 +8000,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Rectangle describes the properties of a rectangular window applied to the input media before processing // it. type Rectangle struct { @@ -7981,6 +8029,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Service a Media Services account. type Service struct { autorest.Response `json:"-"` @@ -8264,6 +8318,12 @@ type ServiceSpecification struct { MetricSpecifications *[]Metric `json:"metricSpecifications,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceSpecification. +func (ss ServiceSpecification) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StandardEncoderPreset describes all the settings to be used when encoding the input video with the // Standard Encoder. type StandardEncoderPreset struct { diff --git a/services/preview/migrate/mgmt/2018-09-01-preview/migrate/CHANGELOG.md b/services/preview/migrate/mgmt/2018-09-01-preview/migrate/CHANGELOG.md index 52911e4cc5e4..7383554db4d1 100644 --- a/services/preview/migrate/mgmt/2018-09-01-preview/migrate/CHANGELOG.md +++ b/services/preview/migrate/mgmt/2018-09-01-preview/migrate/CHANGELOG.md @@ -1,2 +1,35 @@ # Change History +## Additive Changes + +### New Funcs + +1. ApplyClause.MarshalJSON() ([]byte, error) +1. EdmReferentialConstraintPropertyPair.MarshalJSON() ([]byte, error) +1. FilterClause.MarshalJSON() ([]byte, error) +1. IEdmEntityContainer.MarshalJSON() ([]byte, error) +1. IEdmEntityContainerElement.MarshalJSON() ([]byte, error) +1. IEdmExpression.MarshalJSON() ([]byte, error) +1. IEdmModel.MarshalJSON() ([]byte, error) +1. IEdmNavigationProperty.MarshalJSON() ([]byte, error) +1. IEdmNavigationPropertyBinding.MarshalJSON() ([]byte, error) +1. IEdmNavigationSource.MarshalJSON() ([]byte, error) +1. IEdmPathExpression.MarshalJSON() ([]byte, error) +1. IEdmProperty.MarshalJSON() ([]byte, error) +1. IEdmReferentialConstraint.MarshalJSON() ([]byte, error) +1. IEdmSchemaElement.MarshalJSON() ([]byte, error) +1. IEdmStructuralProperty.MarshalJSON() ([]byte, error) +1. IEdmStructuredType.MarshalJSON() ([]byte, error) +1. IEdmTerm.MarshalJSON() ([]byte, error) +1. IEdmType.MarshalJSON() ([]byte, error) +1. IEdmTypeReference.MarshalJSON() ([]byte, error) +1. IEdmVocabularyAnnotation.MarshalJSON() ([]byte, error) +1. ODataPath.MarshalJSON() ([]byte, error) +1. ODataQueryContext.MarshalJSON() ([]byte, error) +1. ODataQueryOptions1.MarshalJSON() ([]byte, error) +1. ODataRawQueryOptions.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. RangeVariable.MarshalJSON() ([]byte, error) +1. SelectExpandClause.MarshalJSON() ([]byte, error) +1. SingleValueNode.MarshalJSON() ([]byte, error) +1. TransformationNode.MarshalJSON() ([]byte, error) diff --git a/services/preview/migrate/mgmt/2018-09-01-preview/migrate/_meta.json b/services/preview/migrate/mgmt/2018-09-01-preview/migrate/_meta.json index f8d87596e57f..a5fd70f03352 100644 --- a/services/preview/migrate/mgmt/2018-09-01-preview/migrate/_meta.json +++ b/services/preview/migrate/mgmt/2018-09-01-preview/migrate/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/migrateprojects/resource-manager/readme.md", "tag": "package-2018-09", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/migrateprojects/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/migrateprojects/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/migrate/mgmt/2018-09-01-preview/migrate/models.go b/services/preview/migrate/mgmt/2018-09-01-preview/migrate/models.go index d85f4d0bbe0f..7760a1ef222a 100644 --- a/services/preview/migrate/mgmt/2018-09-01-preview/migrate/models.go +++ b/services/preview/migrate/mgmt/2018-09-01-preview/migrate/models.go @@ -21,6 +21,12 @@ type ApplyClause struct { Transformations *[]TransformationNode `json:"transformations,omitempty"` } +// MarshalJSON is the custom marshaler for ApplyClause. +func (ac ApplyClause) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AssessmentDetails assessment properties that can be shared by various publishers. type AssessmentDetails struct { // AssessmentID - Gets or sets the id of the assessment done on the machine. @@ -652,6 +658,12 @@ type EdmReferentialConstraintPropertyPair struct { PrincipalProperty *IEdmStructuralProperty `json:"principalProperty,omitempty"` } +// MarshalJSON is the custom marshaler for EdmReferentialConstraintPropertyPair. +func (ercpp EdmReferentialConstraintPropertyPair) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Event migrateEvent REST resource. type Event struct { autorest.Response `json:"-"` @@ -861,6 +873,12 @@ type FilterClause struct { ItemType *IEdmTypeReference `json:"itemType,omitempty"` } +// MarshalJSON is the custom marshaler for FilterClause. +func (fc FilterClause) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FilterQueryOption ... type FilterQueryOption struct { // Context - READ-ONLY @@ -893,6 +911,12 @@ type IEdmEntityContainer struct { Name *string `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for IEdmEntityContainer. +func (ieec IEdmEntityContainer) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IEdmEntityContainerElement ... type IEdmEntityContainerElement struct { // ContainerElementKind - READ-ONLY; Possible values include: 'ContainerElementKindNone', 'ContainerElementKindEntitySet', 'ContainerElementKindActionImport', 'ContainerElementKindFunctionImport', 'ContainerElementKindSingleton' @@ -903,12 +927,24 @@ type IEdmEntityContainerElement struct { Name *string `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for IEdmEntityContainerElement. +func (ieece IEdmEntityContainerElement) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IEdmExpression ... type IEdmExpression struct { // ExpressionKind - READ-ONLY; Possible values include: 'ExpressionKindNone', 'ExpressionKindBinaryConstant', 'ExpressionKindBooleanConstant', 'ExpressionKindDateTimeOffsetConstant', 'ExpressionKindDecimalConstant', 'ExpressionKindFloatingConstant', 'ExpressionKindGUIDConstant', 'ExpressionKindIntegerConstant', 'ExpressionKindStringConstant', 'ExpressionKindDurationConstant', 'ExpressionKindNull', 'ExpressionKindRecord', 'ExpressionKindCollection', 'ExpressionKindPath', 'ExpressionKindIf', 'ExpressionKindCast', 'ExpressionKindIsType', 'ExpressionKindFunctionApplication', 'ExpressionKindLabeledExpressionReference', 'ExpressionKindLabeled', 'ExpressionKindPropertyPath', 'ExpressionKindNavigationPropertyPath', 'ExpressionKindDateConstant', 'ExpressionKindTimeOfDayConstant', 'ExpressionKindEnumMember', 'ExpressionKindAnnotationPath' ExpressionKind ExpressionKind `json:"expressionKind,omitempty"` } +// MarshalJSON is the custom marshaler for IEdmExpression. +func (iee IEdmExpression) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IEdmModel ... type IEdmModel struct { // SchemaElements - READ-ONLY @@ -925,6 +961,12 @@ type IEdmModel struct { EntityContainer *IEdmEntityContainer `json:"entityContainer,omitempty"` } +// MarshalJSON is the custom marshaler for IEdmModel. +func (iem IEdmModel) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IEdmNavigationProperty ... type IEdmNavigationProperty struct { // Partner - READ-ONLY @@ -945,6 +987,12 @@ type IEdmNavigationProperty struct { Name *string `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for IEdmNavigationProperty. +func (ienp IEdmNavigationProperty) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IEdmNavigationPropertyBinding ... type IEdmNavigationPropertyBinding struct { // NavigationProperty - READ-ONLY @@ -955,6 +1003,12 @@ type IEdmNavigationPropertyBinding struct { Path *IEdmPathExpression `json:"path,omitempty"` } +// MarshalJSON is the custom marshaler for IEdmNavigationPropertyBinding. +func (ienpb IEdmNavigationPropertyBinding) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IEdmNavigationSource ... type IEdmNavigationSource struct { // NavigationPropertyBindings - READ-ONLY @@ -967,6 +1021,12 @@ type IEdmNavigationSource struct { Name *string `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for IEdmNavigationSource. +func (iens IEdmNavigationSource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IEdmPathExpression ... type IEdmPathExpression struct { // PathSegments - READ-ONLY @@ -977,6 +1037,12 @@ type IEdmPathExpression struct { ExpressionKind ExpressionKind1 `json:"expressionKind,omitempty"` } +// MarshalJSON is the custom marshaler for IEdmPathExpression. +func (iepe IEdmPathExpression) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IEdmProperty ... type IEdmProperty struct { // PropertyKind - READ-ONLY; Possible values include: 'PropertyKindNone', 'PropertyKindStructural', 'PropertyKindNavigation' @@ -989,12 +1055,24 @@ type IEdmProperty struct { Name *string `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for IEdmProperty. +func (iep IEdmProperty) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IEdmReferentialConstraint ... type IEdmReferentialConstraint struct { // PropertyPairs - READ-ONLY PropertyPairs *[]EdmReferentialConstraintPropertyPair `json:"propertyPairs,omitempty"` } +// MarshalJSON is the custom marshaler for IEdmReferentialConstraint. +func (ierc IEdmReferentialConstraint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IEdmSchemaElement ... type IEdmSchemaElement struct { // SchemaElementKind - READ-ONLY; Possible values include: 'SchemaElementKindNone', 'SchemaElementKindTypeDefinition', 'SchemaElementKindTerm', 'SchemaElementKindAction', 'SchemaElementKindEntityContainer', 'SchemaElementKindFunction' @@ -1005,6 +1083,12 @@ type IEdmSchemaElement struct { Name *string `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for IEdmSchemaElement. +func (iese IEdmSchemaElement) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IEdmStructuralProperty ... type IEdmStructuralProperty struct { // DefaultValueString - READ-ONLY @@ -1019,6 +1103,12 @@ type IEdmStructuralProperty struct { Name *string `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for IEdmStructuralProperty. +func (iesp IEdmStructuralProperty) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IEdmStructuredType ... type IEdmStructuredType struct { // IsAbstract - READ-ONLY @@ -1033,6 +1123,12 @@ type IEdmStructuredType struct { TypeKind TypeKind1 `json:"typeKind,omitempty"` } +// MarshalJSON is the custom marshaler for IEdmStructuredType. +func (iest IEdmStructuredType) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IEdmTerm ... type IEdmTerm struct { // Type - READ-ONLY @@ -1049,12 +1145,24 @@ type IEdmTerm struct { Name *string `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for IEdmTerm. +func (iet IEdmTerm) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IEdmType ... type IEdmType struct { // TypeKind - READ-ONLY; Possible values include: 'TypeKindNone', 'TypeKindPrimitive', 'TypeKindEntity', 'TypeKindComplex', 'TypeKindCollection', 'TypeKindEntityReference', 'TypeKindEnum', 'TypeKindTypeDefinition', 'TypeKindUntyped', 'TypeKindPath' TypeKind TypeKind `json:"typeKind,omitempty"` } +// MarshalJSON is the custom marshaler for IEdmType. +func (iet IEdmType) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IEdmTypeReference ... type IEdmTypeReference struct { // IsNullable - READ-ONLY @@ -1063,6 +1171,12 @@ type IEdmTypeReference struct { Definition *IEdmType `json:"definition,omitempty"` } +// MarshalJSON is the custom marshaler for IEdmTypeReference. +func (ietr IEdmTypeReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IEdmVocabularyAnnotation ... type IEdmVocabularyAnnotation struct { // Qualifier - READ-ONLY @@ -1075,6 +1189,12 @@ type IEdmVocabularyAnnotation struct { Value *IEdmExpression `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for IEdmVocabularyAnnotation. +func (ieva IEdmVocabularyAnnotation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Machine machine REST resource. type Machine struct { autorest.Response `json:"-"` @@ -1299,6 +1419,12 @@ type ODataPath struct { Path *[]ODataPathSegment `json:"path,omitempty"` } +// MarshalJSON is the custom marshaler for ODataPath. +func (odp ODataPath) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ODataPathSegment ... type ODataPathSegment struct { // EdmType - READ-ONLY @@ -1333,18 +1459,36 @@ type ODataQueryContext struct { RequestContainer interface{} `json:"requestContainer,omitempty"` } +// MarshalJSON is the custom marshaler for ODataQueryContext. +func (odqc ODataQueryContext) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ODataQueryOptions1 ... type ODataQueryOptions1 struct { // Filter - READ-ONLY Filter *FilterQueryOption `json:"filter,omitempty"` } +// MarshalJSON is the custom marshaler for ODataQueryOptions1. +func (odqo ODataQueryOptions1) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ODataRawQueryOptions ... type ODataRawQueryOptions struct { // Filter - READ-ONLY Filter *string `json:"filter,omitempty"` } +// MarshalJSON is the custom marshaler for ODataRawQueryOptions. +func (odrqo ODataRawQueryOptions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation a REST API operation supported by the provider. type Operation struct { // Name - READ-ONLY; Name of the operation. @@ -1376,6 +1520,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (od OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationResultList list of API operations. type OperationResultList struct { autorest.Response `json:"-"` @@ -1560,6 +1710,12 @@ type RangeVariable struct { Kind *int32 `json:"kind,omitempty"` } +// MarshalJSON is the custom marshaler for RangeVariable. +func (rv RangeVariable) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RefreshSummaryInput class representing the refresh summary input. type RefreshSummaryInput struct { // Goal - Gets or sets the goal for which summary needs to be refreshed. Possible values include: 'Servers', 'Databases' @@ -1594,6 +1750,12 @@ type SelectExpandClause struct { AllSelected *bool `json:"allSelected,omitempty"` } +// MarshalJSON is the custom marshaler for SelectExpandClause. +func (sec SelectExpandClause) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServersProjectSummary class representing the servers project summary. type ServersProjectSummary struct { // DiscoveredCount - Gets or sets the count of entities discovered. @@ -1739,6 +1901,12 @@ type SingleValueNode struct { Kind Kind `json:"kind,omitempty"` } +// MarshalJSON is the custom marshaler for SingleValueNode. +func (svn SingleValueNode) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Solution solution REST Resource. type Solution struct { autorest.Response `json:"-"` @@ -1991,3 +2159,9 @@ type TransformationNode struct { // Kind - READ-ONLY; Possible values include: 'Aggregate', 'GroupBy', 'Filter', 'Compute' Kind Kind1 `json:"kind,omitempty"` } + +// MarshalJSON is the custom marshaler for TransformationNode. +func (tn TransformationNode) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/preview/mixedreality/mgmt/2019-02-28/mixedreality/CHANGELOG.md b/services/preview/mixedreality/mgmt/2019-02-28/mixedreality/CHANGELOG.md index 52911e4cc5e4..cfa0277890ee 100644 --- a/services/preview/mixedreality/mgmt/2019-02-28/mixedreality/CHANGELOG.md +++ b/services/preview/mixedreality/mgmt/2019-02-28/mixedreality/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. SpatialAnchorsAccountKeys.MarshalJSON() ([]byte, error) +1. SpatialAnchorsAccountProperties.MarshalJSON() ([]byte, error) diff --git a/services/preview/mixedreality/mgmt/2019-02-28/mixedreality/_meta.json b/services/preview/mixedreality/mgmt/2019-02-28/mixedreality/_meta.json index cfae9d1a27e9..ccc2dd248bf8 100644 --- a/services/preview/mixedreality/mgmt/2019-02-28/mixedreality/_meta.json +++ b/services/preview/mixedreality/mgmt/2019-02-28/mixedreality/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/mixedreality/resource-manager/readme.md", "tag": "package-2019-02-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-02-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/mixedreality/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-02-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/mixedreality/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/mixedreality/mgmt/2019-02-28/mixedreality/models.go b/services/preview/mixedreality/mgmt/2019-02-28/mixedreality/models.go index 30c342eb10cb..ba3865922f69 100644 --- a/services/preview/mixedreality/mgmt/2019-02-28/mixedreality/models.go +++ b/services/preview/mixedreality/mgmt/2019-02-28/mixedreality/models.go @@ -30,6 +30,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CheckNameAvailabilityRequest check Name Availability Request type CheckNameAvailabilityRequest struct { // Name - Resource Name To Verify @@ -287,6 +293,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -297,6 +309,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceModelWithAllowedPropertySet the resource model definition containing the full set of allowed // properties for a resource. Except properties bag, there cannot be a top level property outside of this // set. @@ -540,6 +558,12 @@ type SpatialAnchorsAccountKeys struct { SecondaryKey *string `json:"secondaryKey,omitempty"` } +// MarshalJSON is the custom marshaler for SpatialAnchorsAccountKeys. +func (saak SpatialAnchorsAccountKeys) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SpatialAnchorsAccountList result of the request to get resource collection. It contains a list of // resources and a URL link to get the next set of results. type SpatialAnchorsAccountList struct { @@ -708,6 +732,12 @@ type SpatialAnchorsAccountProperties struct { AccountDomain *string `json:"accountDomain,omitempty"` } +// MarshalJSON is the custom marshaler for SpatialAnchorsAccountProperties. +func (saap SpatialAnchorsAccountProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource // which has 'tags' and a 'location' type TrackedResource struct { diff --git a/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/CHANGELOG.md b/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/CHANGELOG.md index 52911e4cc5e4..8b7ea7f9dcaf 100644 --- a/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/CHANGELOG.md +++ b/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountKeys.MarshalJSON() ([]byte, error) +1. AccountProperties.MarshalJSON() ([]byte, error) +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/_meta.json b/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/_meta.json index 42a44716cb1d..078f5ab085ff 100644 --- a/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/_meta.json +++ b/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/mixedreality/resource-manager/readme.md", "tag": "package-2020-05", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/mixedreality/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/mixedreality/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/models.go b/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/models.go index a5368522eab6..a5c70aa0f2fe 100644 --- a/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/models.go +++ b/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/models.go @@ -33,6 +33,12 @@ type AccountKeys struct { SecondaryKey *string `json:"secondaryKey,omitempty"` } +// MarshalJSON is the custom marshaler for AccountKeys. +func (ak AccountKeys) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountProperties common Properties shared by Mixed Reality Accounts type AccountProperties struct { // AccountID - READ-ONLY; unique id of certain account. @@ -41,6 +47,12 @@ type AccountProperties struct { AccountDomain *string `json:"accountDomain,omitempty"` } +// MarshalJSON is the custom marshaler for AccountProperties. +func (ap AccountProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureEntityResource the resource model definition for an Azure Resource Manager resource with an etag. type AzureEntityResource struct { // Etag - READ-ONLY; Resource Etag. @@ -53,6 +65,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CheckNameAvailabilityRequest check Name Availability Request type CheckNameAvailabilityRequest struct { // Name - Resource Name To Verify @@ -313,6 +331,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RemoteRenderingAccount remoteRenderingAccount Response. type RemoteRenderingAccount struct { autorest.Response `json:"-"` @@ -617,6 +641,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceModelWithAllowedPropertySet the resource model definition containing the full set of allowed // properties for a resource. Except properties bag, there cannot be a top level property outside of this // set. diff --git a/services/preview/mixedreality/mgmt/2021-03-01-preview/mixedreality/CHANGELOG.md b/services/preview/mixedreality/mgmt/2021-03-01-preview/mixedreality/CHANGELOG.md index 52911e4cc5e4..86ab7158e529 100644 --- a/services/preview/mixedreality/mgmt/2021-03-01-preview/mixedreality/CHANGELOG.md +++ b/services/preview/mixedreality/mgmt/2021-03-01-preview/mixedreality/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountKeys.MarshalJSON() ([]byte, error) +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/mixedreality/mgmt/2021-03-01-preview/mixedreality/_meta.json b/services/preview/mixedreality/mgmt/2021-03-01-preview/mixedreality/_meta.json index 9be9a557916c..559c5f841ed6 100644 --- a/services/preview/mixedreality/mgmt/2021-03-01-preview/mixedreality/_meta.json +++ b/services/preview/mixedreality/mgmt/2021-03-01-preview/mixedreality/_meta.json @@ -2,9 +2,9 @@ "commit": "92ab22b49bd085116af0c61fada2c6c360702e9e", "readme": "/_/azure-rest-api-specs/specification/mixedreality/resource-manager/readme.md", "tag": "package-2021-03-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2021-03-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/mixedreality/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2021-03-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/mixedreality/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/mixedreality/mgmt/2021-03-01-preview/mixedreality/models.go b/services/preview/mixedreality/mgmt/2021-03-01-preview/mixedreality/models.go index 3bca8ff4aa22..cc36dd747e0d 100644 --- a/services/preview/mixedreality/mgmt/2021-03-01-preview/mixedreality/models.go +++ b/services/preview/mixedreality/mgmt/2021-03-01-preview/mixedreality/models.go @@ -34,6 +34,12 @@ type AccountKeys struct { SecondaryKey *string `json:"secondaryKey,omitempty"` } +// MarshalJSON is the custom marshaler for AccountKeys. +func (ak AccountKeys) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountProperties common Properties shared by Mixed Reality Accounts type AccountProperties struct { // StorageAccountName - The name of the storage account associated with this accountId @@ -65,6 +71,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CheckNameAvailabilityRequest check Name Availability Request type CheckNameAvailabilityRequest struct { // Name - Resource Name To Verify @@ -680,6 +692,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RemoteRenderingAccount remoteRenderingAccount Response. type RemoteRenderingAccount struct { autorest.Response `json:"-"` @@ -1022,6 +1040,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceModelWithAllowedPropertySet the resource model definition containing the full set of allowed // properties for a resource. Except properties bag, there cannot be a top level property outside of this // set. diff --git a/services/preview/monitor/2018-09-01-preview/monitor/_meta.json b/services/preview/monitor/2018-09-01-preview/monitor/_meta.json index 6a1f6941e26e..fca8aad71c7a 100644 --- a/services/preview/monitor/2018-09-01-preview/monitor/_meta.json +++ b/services/preview/monitor/2018-09-01-preview/monitor/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/monitor/data-plane/readme.md", "tag": "package-2018-09-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-09-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/monitor/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-09-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/monitor/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/monitor/mgmt/2017-05-01-preview/insights/CHANGELOG.md b/services/preview/monitor/mgmt/2017-05-01-preview/insights/CHANGELOG.md index 52911e4cc5e4..ceed4a081085 100644 --- a/services/preview/monitor/mgmt/2017-05-01-preview/insights/CHANGELOG.md +++ b/services/preview/monitor/mgmt/2017-05-01-preview/insights/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. Incident.MarshalJSON() ([]byte, error) +1. ProxyOnlyResource.MarshalJSON() ([]byte, error) diff --git a/services/preview/monitor/mgmt/2017-05-01-preview/insights/_meta.json b/services/preview/monitor/mgmt/2017-05-01-preview/insights/_meta.json index 323b8504b576..d2c98b619728 100644 --- a/services/preview/monitor/mgmt/2017-05-01-preview/insights/_meta.json +++ b/services/preview/monitor/mgmt/2017-05-01-preview/insights/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/monitor/resource-manager/readme.md", "tag": "package-2017-09", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/monitor/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/monitor/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/monitor/mgmt/2017-05-01-preview/insights/models.go b/services/preview/monitor/mgmt/2017-05-01-preview/insights/models.go index 790c070c1995..f992c8054196 100644 --- a/services/preview/monitor/mgmt/2017-05-01-preview/insights/models.go +++ b/services/preview/monitor/mgmt/2017-05-01-preview/insights/models.go @@ -1704,6 +1704,12 @@ type Incident struct { ResolvedTime *date.Time `json:"resolvedTime,omitempty"` } +// MarshalJSON is the custom marshaler for Incident. +func (i Incident) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IncidentListResult the List incidents operation response. type IncidentListResult struct { autorest.Response `json:"-"` @@ -2280,6 +2286,12 @@ type ProxyOnlyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyOnlyResource. +func (por ProxyOnlyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Recurrence the repeating times at which this profile begins. This element is not used if the FixedDate // element is used. type Recurrence struct { diff --git a/services/preview/monitor/mgmt/2018-03-01/insights/CHANGELOG.md b/services/preview/monitor/mgmt/2018-03-01/insights/CHANGELOG.md index 52911e4cc5e4..ceed4a081085 100644 --- a/services/preview/monitor/mgmt/2018-03-01/insights/CHANGELOG.md +++ b/services/preview/monitor/mgmt/2018-03-01/insights/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. Incident.MarshalJSON() ([]byte, error) +1. ProxyOnlyResource.MarshalJSON() ([]byte, error) diff --git a/services/preview/monitor/mgmt/2018-03-01/insights/_meta.json b/services/preview/monitor/mgmt/2018-03-01/insights/_meta.json index ece12e98e2c2..9bbcce398b18 100644 --- a/services/preview/monitor/mgmt/2018-03-01/insights/_meta.json +++ b/services/preview/monitor/mgmt/2018-03-01/insights/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/monitor/resource-manager/readme.md", "tag": "package-2018-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/monitor/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/monitor/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/monitor/mgmt/2018-03-01/insights/models.go b/services/preview/monitor/mgmt/2018-03-01/insights/models.go index fa54ccbf93bb..f9cabd91d30a 100644 --- a/services/preview/monitor/mgmt/2018-03-01/insights/models.go +++ b/services/preview/monitor/mgmt/2018-03-01/insights/models.go @@ -2088,6 +2088,12 @@ type Incident struct { ResolvedTime *date.Time `json:"resolvedTime,omitempty"` } +// MarshalJSON is the custom marshaler for Incident. +func (i Incident) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IncidentListResult the List incidents operation response. type IncidentListResult struct { autorest.Response `json:"-"` @@ -4150,6 +4156,12 @@ type ProxyOnlyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyOnlyResource. +func (por ProxyOnlyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Recurrence the repeating times at which this profile begins. This element is not used if the FixedDate // element is used. type Recurrence struct { diff --git a/services/preview/monitor/mgmt/2018-09-01/insights/CHANGELOG.md b/services/preview/monitor/mgmt/2018-09-01/insights/CHANGELOG.md index 52911e4cc5e4..ceed4a081085 100644 --- a/services/preview/monitor/mgmt/2018-09-01/insights/CHANGELOG.md +++ b/services/preview/monitor/mgmt/2018-09-01/insights/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. Incident.MarshalJSON() ([]byte, error) +1. ProxyOnlyResource.MarshalJSON() ([]byte, error) diff --git a/services/preview/monitor/mgmt/2018-09-01/insights/_meta.json b/services/preview/monitor/mgmt/2018-09-01/insights/_meta.json index a6b36639daea..6b4e664824ef 100644 --- a/services/preview/monitor/mgmt/2018-09-01/insights/_meta.json +++ b/services/preview/monitor/mgmt/2018-09-01/insights/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/monitor/resource-manager/readme.md", "tag": "package-2018-09", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/monitor/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/monitor/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/monitor/mgmt/2018-09-01/insights/models.go b/services/preview/monitor/mgmt/2018-09-01/insights/models.go index b88cc6b7f566..9776717b154a 100644 --- a/services/preview/monitor/mgmt/2018-09-01/insights/models.go +++ b/services/preview/monitor/mgmt/2018-09-01/insights/models.go @@ -2098,6 +2098,12 @@ type Incident struct { ResolvedTime *date.Time `json:"resolvedTime,omitempty"` } +// MarshalJSON is the custom marshaler for Incident. +func (i Incident) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IncidentListResult the List incidents operation response. type IncidentListResult struct { autorest.Response `json:"-"` @@ -4185,6 +4191,12 @@ type ProxyOnlyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyOnlyResource. +func (por ProxyOnlyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Recurrence the repeating times at which this profile begins. This element is not used if the FixedDate // element is used. type Recurrence struct { diff --git a/services/preview/monitor/mgmt/2018-11-01-preview/insights/CHANGELOG.md b/services/preview/monitor/mgmt/2018-11-01-preview/insights/CHANGELOG.md index 52911e4cc5e4..fc07d62d1f84 100644 --- a/services/preview/monitor/mgmt/2018-11-01-preview/insights/CHANGELOG.md +++ b/services/preview/monitor/mgmt/2018-11-01-preview/insights/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. Incident.MarshalJSON() ([]byte, error) +1. ProxyOnlyResource.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) diff --git a/services/preview/monitor/mgmt/2018-11-01-preview/insights/_meta.json b/services/preview/monitor/mgmt/2018-11-01-preview/insights/_meta.json index 38922474b245..1eddc5cacde6 100644 --- a/services/preview/monitor/mgmt/2018-11-01-preview/insights/_meta.json +++ b/services/preview/monitor/mgmt/2018-11-01-preview/insights/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/monitor/resource-manager/readme.md", "tag": "package-2018-11-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-11-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/monitor/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-11-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/monitor/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/monitor/mgmt/2018-11-01-preview/insights/models.go b/services/preview/monitor/mgmt/2018-11-01-preview/insights/models.go index 641efb8d980f..22dd267978f9 100644 --- a/services/preview/monitor/mgmt/2018-11-01-preview/insights/models.go +++ b/services/preview/monitor/mgmt/2018-11-01-preview/insights/models.go @@ -2112,6 +2112,12 @@ type Incident struct { ResolvedTime *date.Time `json:"resolvedTime,omitempty"` } +// MarshalJSON is the custom marshaler for Incident. +func (i Incident) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IncidentListResult the List incidents operation response. type IncidentListResult struct { autorest.Response `json:"-"` @@ -4199,6 +4205,12 @@ type ProxyOnlyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyOnlyResource. +func (por ProxyOnlyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProxyResource an azure resource object type ProxyResource struct { // ID - READ-ONLY; Azure resource Id @@ -4209,6 +4221,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Recurrence the repeating times at which this profile begins. This element is not used if the FixedDate // element is used. type Recurrence struct { diff --git a/services/preview/monitor/mgmt/2019-03-01/insights/CHANGELOG.md b/services/preview/monitor/mgmt/2019-03-01/insights/CHANGELOG.md index 52911e4cc5e4..fc07d62d1f84 100644 --- a/services/preview/monitor/mgmt/2019-03-01/insights/CHANGELOG.md +++ b/services/preview/monitor/mgmt/2019-03-01/insights/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. Incident.MarshalJSON() ([]byte, error) +1. ProxyOnlyResource.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) diff --git a/services/preview/monitor/mgmt/2019-03-01/insights/_meta.json b/services/preview/monitor/mgmt/2019-03-01/insights/_meta.json index 1798476f7491..d1366ff05ffc 100644 --- a/services/preview/monitor/mgmt/2019-03-01/insights/_meta.json +++ b/services/preview/monitor/mgmt/2019-03-01/insights/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/monitor/resource-manager/readme.md", "tag": "package-2019-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/monitor/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/monitor/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/monitor/mgmt/2019-03-01/insights/models.go b/services/preview/monitor/mgmt/2019-03-01/insights/models.go index d6b076c0bf81..57c922b5a0fd 100644 --- a/services/preview/monitor/mgmt/2019-03-01/insights/models.go +++ b/services/preview/monitor/mgmt/2019-03-01/insights/models.go @@ -2131,6 +2131,12 @@ type Incident struct { ResolvedTime *date.Time `json:"resolvedTime,omitempty"` } +// MarshalJSON is the custom marshaler for Incident. +func (i Incident) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IncidentListResult the List incidents operation response. type IncidentListResult struct { autorest.Response `json:"-"` @@ -4247,6 +4253,12 @@ type ProxyOnlyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyOnlyResource. +func (por ProxyOnlyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProxyResource an azure resource object type ProxyResource struct { // ID - READ-ONLY; Azure resource Id @@ -4257,6 +4269,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Recurrence the repeating times at which this profile begins. This element is not used if the FixedDate // element is used. type Recurrence struct { diff --git a/services/preview/monitor/mgmt/2019-06-01/insights/CHANGELOG.md b/services/preview/monitor/mgmt/2019-06-01/insights/CHANGELOG.md index 52911e4cc5e4..fc07d62d1f84 100644 --- a/services/preview/monitor/mgmt/2019-06-01/insights/CHANGELOG.md +++ b/services/preview/monitor/mgmt/2019-06-01/insights/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. Incident.MarshalJSON() ([]byte, error) +1. ProxyOnlyResource.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) diff --git a/services/preview/monitor/mgmt/2019-06-01/insights/_meta.json b/services/preview/monitor/mgmt/2019-06-01/insights/_meta.json index 6ca1024a99f1..6f0033ab28c5 100644 --- a/services/preview/monitor/mgmt/2019-06-01/insights/_meta.json +++ b/services/preview/monitor/mgmt/2019-06-01/insights/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/monitor/resource-manager/readme.md", "tag": "package-2019-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/monitor/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/monitor/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/monitor/mgmt/2019-06-01/insights/models.go b/services/preview/monitor/mgmt/2019-06-01/insights/models.go index ca685f4ebf6f..66f6ec4f5f19 100644 --- a/services/preview/monitor/mgmt/2019-06-01/insights/models.go +++ b/services/preview/monitor/mgmt/2019-06-01/insights/models.go @@ -2131,6 +2131,12 @@ type Incident struct { ResolvedTime *date.Time `json:"resolvedTime,omitempty"` } +// MarshalJSON is the custom marshaler for Incident. +func (i Incident) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IncidentListResult the List incidents operation response. type IncidentListResult struct { autorest.Response `json:"-"` @@ -4247,6 +4253,12 @@ type ProxyOnlyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyOnlyResource. +func (por ProxyOnlyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProxyResource an azure resource object type ProxyResource struct { // ID - READ-ONLY; Azure resource Id @@ -4257,6 +4269,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Recurrence the repeating times at which this profile begins. This element is not used if the FixedDate // element is used. type Recurrence struct { diff --git a/services/preview/monitor/mgmt/2019-11-01-preview/insights/CHANGELOG.md b/services/preview/monitor/mgmt/2019-11-01-preview/insights/CHANGELOG.md index 52911e4cc5e4..f74d32eea86b 100644 --- a/services/preview/monitor/mgmt/2019-11-01-preview/insights/CHANGELOG.md +++ b/services/preview/monitor/mgmt/2019-11-01-preview/insights/CHANGELOG.md @@ -1,2 +1,15 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureMonitorPrivateLinkScopeProperties.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. Incident.MarshalJSON() ([]byte, error) +1. PrivateEndpointConnectionListResult.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceListResult.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceProperties.MarshalJSON() ([]byte, error) +1. ProxyOnlyResource.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. ScopedResourceListResult.MarshalJSON() ([]byte, error) diff --git a/services/preview/monitor/mgmt/2019-11-01-preview/insights/_meta.json b/services/preview/monitor/mgmt/2019-11-01-preview/insights/_meta.json index cf4073b7e715..cec0288a0cd2 100644 --- a/services/preview/monitor/mgmt/2019-11-01-preview/insights/_meta.json +++ b/services/preview/monitor/mgmt/2019-11-01-preview/insights/_meta.json @@ -2,9 +2,9 @@ "commit": "4c93f28f89435f6d244f4db61bbf810b5d20f09f", "readme": "/_/azure-rest-api-specs/specification/monitor/resource-manager/readme.md", "tag": "package-2019-11", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/monitor/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/monitor/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/monitor/mgmt/2019-11-01-preview/insights/models.go b/services/preview/monitor/mgmt/2019-11-01-preview/insights/models.go index 74985b8a2b4a..ebc7fdbddcab 100644 --- a/services/preview/monitor/mgmt/2019-11-01-preview/insights/models.go +++ b/services/preview/monitor/mgmt/2019-11-01-preview/insights/models.go @@ -1527,6 +1527,12 @@ type AzureMonitorPrivateLinkScopeProperties struct { PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` } +// MarshalJSON is the custom marshaler for AzureMonitorPrivateLinkScopeProperties. +func (amplsp AzureMonitorPrivateLinkScopeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Baseline the baseline values for a single sensitivity value. type Baseline struct { // Sensitivity - the sensitivity of the baseline. Possible values include: 'SensitivityLow', 'SensitivityMedium', 'SensitivityHigh' @@ -2151,6 +2157,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse describes the format of Error response. type ErrorResponse struct { // Code - Error code @@ -2435,6 +2447,12 @@ type Incident struct { ResolvedTime *date.Time `json:"resolvedTime,omitempty"` } +// MarshalJSON is the custom marshaler for Incident. +func (i Incident) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IncidentListResult the List incidents operation response. type IncidentListResult struct { autorest.Response `json:"-"` @@ -4827,6 +4845,12 @@ type PrivateEndpointConnectionListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpointConnectionListResult. +func (peclr PrivateEndpointConnectionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnectionListResultIterator provides access to a complete listing of // PrivateEndpointConnection values. type PrivateEndpointConnectionListResultIterator struct { @@ -5168,6 +5192,12 @@ type PrivateLinkResourceListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceListResult. +func (plrlr PrivateLinkResourceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkResourceListResultIterator provides access to a complete listing of PrivateLinkResource // values. type PrivateLinkResourceListResultIterator struct { @@ -5327,6 +5357,12 @@ type PrivateLinkResourceProperties struct { RequiredMembers *[]string `json:"requiredMembers,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. +func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkScopedResourcesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type PrivateLinkScopedResourcesCreateOrUpdateFuture struct { @@ -5502,6 +5538,12 @@ type ProxyOnlyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyOnlyResource. +func (por ProxyOnlyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProxyResource an azure resource object type ProxyResource struct { // ID - READ-ONLY; Azure resource Id @@ -5512,6 +5554,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Recurrence the repeating times at which this profile begins. This element is not used if the FixedDate // element is used. type Recurrence struct { @@ -6258,6 +6306,12 @@ type ScopedResourceListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ScopedResourceListResult. +func (srlr ScopedResourceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ScopedResourceListResultIterator provides access to a complete listing of ScopedResource values. type ScopedResourceListResultIterator struct { i int diff --git a/services/preview/msi/mgmt/2015-08-31-preview/msi/CHANGELOG.md b/services/preview/msi/mgmt/2015-08-31-preview/msi/CHANGELOG.md index 52911e4cc5e4..cc54c27f7b8f 100644 --- a/services/preview/msi/mgmt/2015-08-31-preview/msi/CHANGELOG.md +++ b/services/preview/msi/mgmt/2015-08-31-preview/msi/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. IdentityProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/msi/mgmt/2015-08-31-preview/msi/_meta.json b/services/preview/msi/mgmt/2015-08-31-preview/msi/_meta.json index 571dc311bd23..07c3d71b46cb 100644 --- a/services/preview/msi/mgmt/2015-08-31-preview/msi/_meta.json +++ b/services/preview/msi/mgmt/2015-08-31-preview/msi/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/msi/resource-manager/readme.md", "tag": "package-2015-08-31-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2015-08-31-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/msi/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2015-08-31-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/msi/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/msi/mgmt/2015-08-31-preview/msi/models.go b/services/preview/msi/mgmt/2015-08-31-preview/msi/models.go index 1f3bd663d9d8..90298e09d782 100644 --- a/services/preview/msi/mgmt/2015-08-31-preview/msi/models.go +++ b/services/preview/msi/mgmt/2015-08-31-preview/msi/models.go @@ -31,6 +31,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from the ManagedServiceIdentity service. type CloudError struct { // Error - A list of additional details about the error. @@ -159,6 +165,12 @@ type IdentityProperties struct { ClientSecretURL *string `json:"clientSecretUrl,omitempty"` } +// MarshalJSON is the custom marshaler for IdentityProperties. +func (IP IdentityProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation operation supported by the Microsoft.ManagedIdentity REST API. type Operation struct { // Name - The name of the REST Operation. This is of the format {provider}/{resource}/{operation}. @@ -349,6 +361,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -359,6 +377,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SystemAssignedIdentity describes a system assigned identity resource. type SystemAssignedIdentity struct { autorest.Response `json:"-"` diff --git a/services/preview/mysql/mgmt/2017-12-01-preview/mysql/CHANGELOG.md b/services/preview/mysql/mgmt/2017-12-01-preview/mysql/CHANGELOG.md index 52911e4cc5e4..d91ad45505a7 100644 --- a/services/preview/mysql/mgmt/2017-12-01-preview/mysql/CHANGELOG.md +++ b/services/preview/mysql/mgmt/2017-12-01-preview/mysql/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ServerPrivateEndpointConnection.MarshalJSON() ([]byte, error) +1. VirtualNetworkRuleListResult.MarshalJSON() ([]byte, error) diff --git a/services/preview/mysql/mgmt/2017-12-01-preview/mysql/_meta.json b/services/preview/mysql/mgmt/2017-12-01-preview/mysql/_meta.json index fcf5146228f9..7e353d4c3412 100644 --- a/services/preview/mysql/mgmt/2017-12-01-preview/mysql/_meta.json +++ b/services/preview/mysql/mgmt/2017-12-01-preview/mysql/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/mysql/resource-manager/readme.md", "tag": "package-2017-12-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-12-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/mysql/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-12-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/mysql/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/mysql/mgmt/2017-12-01-preview/mysql/models.go b/services/preview/mysql/mgmt/2017-12-01-preview/mysql/models.go index 4b03348f2ffa..2dc6f979e1e0 100644 --- a/services/preview/mysql/mgmt/2017-12-01-preview/mysql/models.go +++ b/services/preview/mysql/mgmt/2017-12-01-preview/mysql/models.go @@ -33,6 +33,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from the Batch service. type CloudError struct { Error *CloudErrorBody `json:"error,omitempty"` @@ -694,6 +700,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (od OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult a list of resource provider operations. type OperationListResult struct { autorest.Response `json:"-"` @@ -797,6 +809,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -807,6 +825,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceIdentity azure Active Directory identity configuration for a resource. type ResourceIdentity struct { // PrincipalID - READ-ONLY; The Azure Active Directory principal id. @@ -1238,6 +1262,12 @@ type ServerPrivateEndpointConnection struct { Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for ServerPrivateEndpointConnection. +func (spec ServerPrivateEndpointConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerProperties the properties of a server. type ServerProperties struct { // AdministratorLogin - The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). @@ -2230,6 +2260,12 @@ type VirtualNetworkRuleListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkRuleListResult. +func (vnrlr VirtualNetworkRuleListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkRuleListResultIterator provides access to a complete listing of VirtualNetworkRule values. type VirtualNetworkRuleListResultIterator struct { i int diff --git a/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/CHANGELOG.md b/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/CHANGELOG.md index 52911e4cc5e4..1dbddff25896 100644 --- a/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/CHANGELOG.md +++ b/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/CHANGELOG.md @@ -1,2 +1,22 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. CapabilitiesListResult.MarshalJSON() ([]byte, error) +1. CapabilityProperties.MarshalJSON() ([]byte, error) +1. DelegatedSubnetUsage.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ServerEditionCapability.MarshalJSON() ([]byte, error) +1. ServerKeyListResult.MarshalJSON() ([]byte, error) +1. ServerVersionCapability.MarshalJSON() ([]byte, error) +1. StorageEditionCapability.MarshalJSON() ([]byte, error) +1. StorageMBCapability.MarshalJSON() ([]byte, error) +1. VcoreCapability.MarshalJSON() ([]byte, error) +1. VirtualNetworkSubnetUsageResult.MarshalJSON() ([]byte, error) diff --git a/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/_meta.json b/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/_meta.json index 03e18c6bcbca..151c0d2b3ebb 100644 --- a/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/_meta.json +++ b/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/mysql/resource-manager/readme.md", "tag": "package-2020-07-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-07-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/mysql/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-07-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/mysql/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/models.go b/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/models.go index a340cb513be5..dbbd2e780c42 100644 --- a/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/models.go +++ b/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/models.go @@ -32,6 +32,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CapabilitiesListResult location capability type CapabilitiesListResult struct { autorest.Response `json:"-"` @@ -41,6 +47,12 @@ type CapabilitiesListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for CapabilitiesListResult. +func (clr CapabilitiesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CapabilitiesListResultIterator provides access to a complete listing of CapabilityProperties values. type CapabilitiesListResultIterator struct { i int @@ -199,6 +211,12 @@ type CapabilityProperties struct { SupportedFlexibleServerEditions *[]ServerEditionCapability `json:"supportedFlexibleServerEditions,omitempty"` } +// MarshalJSON is the custom marshaler for CapabilityProperties. +func (cp CapabilityProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from the Batch service. type CloudError struct { // Error - The resource management error response. @@ -848,6 +866,12 @@ type DelegatedSubnetUsage struct { Usage *int64 `json:"usage,omitempty"` } +// MarshalJSON is the custom marshaler for DelegatedSubnetUsage. +func (dsu DelegatedSubnetUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorAdditionalInfo the resource management error additional info. type ErrorAdditionalInfo struct { // Type - READ-ONLY; The additional info type. @@ -856,6 +880,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.) type ErrorResponse struct { @@ -871,6 +901,12 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FirewallRule represents a server firewall rule. type FirewallRule struct { autorest.Response `json:"-"` @@ -1276,6 +1312,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (od OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult a list of resource provider operations. type OperationListResult struct { autorest.Response `json:"-"` @@ -1311,6 +1353,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -1321,6 +1369,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceModelWithAllowedPropertySet the resource model definition containing the full set of allowed // properties for a resource. Except properties bag, there cannot be a top level property outside of this // set. @@ -1553,6 +1607,12 @@ type ServerEditionCapability struct { SupportedServerVersions *[]ServerVersionCapability `json:"supportedServerVersions,omitempty"` } +// MarshalJSON is the custom marshaler for ServerEditionCapability. +func (sec ServerEditionCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerForUpdate parameters allowed to update for a server. type ServerForUpdate struct { // Sku - The SKU (pricing tier) of the server. @@ -1713,6 +1773,12 @@ type ServerKeyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ServerKeyListResult. +func (sklr ServerKeyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerKeyListResultIterator provides access to a complete listing of ServerKey values. type ServerKeyListResultIterator struct { i int @@ -2483,6 +2549,12 @@ type ServerVersionCapability struct { SupportedVcores *[]VcoreCapability `json:"supportedVcores,omitempty"` } +// MarshalJSON is the custom marshaler for ServerVersionCapability. +func (svc ServerVersionCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Sku billing information related properties of a server. type Sku struct { // Name - The name of the sku, e.g. Standard_D32s_v3. @@ -2505,6 +2577,12 @@ type StorageEditionCapability struct { MaxBackupRetentionDays *int64 `json:"maxBackupRetentionDays,omitempty"` } +// MarshalJSON is the custom marshaler for StorageEditionCapability. +func (sec StorageEditionCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageMBCapability storage size in MB capability type StorageMBCapability struct { // Name - READ-ONLY; storage MB name @@ -2513,6 +2591,12 @@ type StorageMBCapability struct { StorageSizeMB *int64 `json:"storageSizeMB,omitempty"` } +// MarshalJSON is the custom marshaler for StorageMBCapability. +func (smc StorageMBCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageProfile storage Profile properties of a server type StorageProfile struct { // BackupRetentionDays - Backup retention days for the server. @@ -2564,6 +2648,12 @@ type VcoreCapability struct { SupportedMemoryPerVcoreMB *int64 `json:"supportedMemoryPerVcoreMB,omitempty"` } +// MarshalJSON is the custom marshaler for VcoreCapability. +func (vc VcoreCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkSubnetUsageParameter virtual network subnet usage parameter type VirtualNetworkSubnetUsageParameter struct { // VirtualNetworkArmResourceID - Virtual network resource id. @@ -2576,3 +2666,9 @@ type VirtualNetworkSubnetUsageResult struct { // DelegatedSubnetsUsage - READ-ONLY; A list of delegated subnet usage DelegatedSubnetsUsage *[]DelegatedSubnetUsage `json:"delegatedSubnetsUsage,omitempty"` } + +// MarshalJSON is the custom marshaler for VirtualNetworkSubnetUsageResult. +func (vnsur VirtualNetworkSubnetUsageResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/preview/netapp/mgmt/2017-08-15/netapp/_meta.json b/services/preview/netapp/mgmt/2017-08-15/netapp/_meta.json index 25c884aa9276..dd66156f6e6c 100644 --- a/services/preview/netapp/mgmt/2017-08-15/netapp/_meta.json +++ b/services/preview/netapp/mgmt/2017-08-15/netapp/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", "tag": "package-2017-08-15", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-08-15 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-08-15 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/netapp/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/network/mgmt/2015-05-01-preview/network/_meta.json b/services/preview/network/mgmt/2015-05-01-preview/network/_meta.json index ab3a5e0cce22..3ca30fee56ef 100644 --- a/services/preview/network/mgmt/2015-05-01-preview/network/_meta.json +++ b/services/preview/network/mgmt/2015-05-01-preview/network/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "tag": "package-2015-05-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2015-05-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2015-05-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/operationalinsights/mgmt/2015-11-01-preview/operationalinsights/_meta.json b/services/preview/operationalinsights/mgmt/2015-11-01-preview/operationalinsights/_meta.json index 6b58b52071b8..b0b1655a53d0 100644 --- a/services/preview/operationalinsights/mgmt/2015-11-01-preview/operationalinsights/_meta.json +++ b/services/preview/operationalinsights/mgmt/2015-11-01-preview/operationalinsights/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/operationalinsights/resource-manager/readme.md", "tag": "package-2015-11-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2015-11-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/operationalinsights/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2015-11-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/operationalinsights/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/CHANGELOG.md b/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/CHANGELOG.md index 52911e4cc5e4..04bdac2bf50a 100644 --- a/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/CHANGELOG.md +++ b/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. MachineReferenceWithHintsProperties.MarshalJSON() ([]byte, error) +1. ProcessReferenceProperties.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. Summary.MarshalJSON() ([]byte, error) diff --git a/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/_meta.json b/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/_meta.json index 33e8a829cce2..1ed901ce0756 100644 --- a/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/_meta.json +++ b/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/service-map/resource-manager/readme.md", "tag": "package-2015-11-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2015-11-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/service-map/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2015-11-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/service-map/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/models.go b/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/models.go index 21e6e4fc9d13..765b12385e4d 100644 --- a/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/models.go +++ b/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap/models.go @@ -2560,6 +2560,12 @@ type MachineReferenceWithHintsProperties struct { OsFamilyHint OperatingSystemFamily `json:"osFamilyHint,omitempty"` } +// MarshalJSON is the custom marshaler for MachineReferenceWithHintsProperties. +func (mrwh MachineReferenceWithHintsProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MachineResourcesConfiguration describes the resources of a machine. type MachineResourcesConfiguration struct { // PhysicalMemory - Physical memory in megabytes (MB). @@ -4178,6 +4184,12 @@ type ProcessReferenceProperties struct { Machine *MachineReference `json:"machine,omitempty"` } +// MarshalJSON is the custom marshaler for ProcessReferenceProperties. +func (pr ProcessReferenceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProcessUser describes the user under which a process is running. type ProcessUser struct { // UserName - User name under which the process is running. @@ -4347,6 +4359,12 @@ type Resource struct { Name *string `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicResourceReference represents a reference to another resource. type BasicResourceReference interface { AsMachineReference() (*MachineReference, bool) @@ -4547,6 +4565,12 @@ type Summary struct { Name *string `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for Summary. +func (s Summary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SummaryProperties base for all summaries. type SummaryProperties struct { // StartTime - Summary interval start time. diff --git a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/CHANGELOG.md b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/CHANGELOG.md index 52911e4cc5e4..c2b5891f3634 100644 --- a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/CHANGELOG.md +++ b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. AvailableServiceTier.MarshalJSON() ([]byte, error) +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/_meta.json b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/_meta.json index d80c3ef37641..d60db768fc0a 100644 --- a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/_meta.json +++ b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/_meta.json @@ -2,9 +2,9 @@ "commit": "0b17e6a5e811fd7b122d383b4942441d95e5e8cf", "readme": "/_/azure-rest-api-specs/specification/operationalinsights/resource-manager/readme.md", "tag": "package-2020-03-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-03-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/operationalinsights/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-03-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/operationalinsights/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/models.go b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/models.go index 8cdca231ee1b..fc48e5f066d0 100644 --- a/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/models.go +++ b/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights/models.go @@ -38,6 +38,12 @@ type AvailableServiceTier struct { LastSkuUpdate *string `json:"lastSkuUpdate,omitempty"` } +// MarshalJSON is the custom marshaler for AvailableServiceTier. +func (astVar AvailableServiceTier) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureEntityResource the resource model definition for an Azure Resource Manager resource with an etag. type AzureEntityResource struct { // Etag - READ-ONLY; Resource Etag. @@ -50,6 +56,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Cluster the top level Log Analytics cluster resource container. type Cluster struct { autorest.Response `json:"-"` @@ -1101,6 +1113,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorContract contains details when the response code indicates an error. type ErrorContract struct { // Error - The details of the error. @@ -1122,6 +1140,12 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Identity identity for the resource. type Identity struct { // PrincipalID - READ-ONLY; The principal ID of resource identity. @@ -1751,6 +1775,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -1761,6 +1791,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SavedSearch value object for saved search results. type SavedSearch struct { autorest.Response `json:"-"` diff --git a/services/preview/operationsmanagement/mgmt/2015-11-01-preview/operationsmanagement/_meta.json b/services/preview/operationsmanagement/mgmt/2015-11-01-preview/operationsmanagement/_meta.json index a737cfd06822..259ec517e030 100644 --- a/services/preview/operationsmanagement/mgmt/2015-11-01-preview/operationsmanagement/_meta.json +++ b/services/preview/operationsmanagement/mgmt/2015-11-01-preview/operationsmanagement/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/operationsmanagement/resource-manager/readme.md", "tag": "package-2015-11-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2015-11-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/operationsmanagement/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2015-11-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/operationsmanagement/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/peering/mgmt/2019-08-01-preview/peering/CHANGELOG.md b/services/preview/peering/mgmt/2019-08-01-preview/peering/CHANGELOG.md index 52911e4cc5e4..dd2e4a49828f 100644 --- a/services/preview/peering/mgmt/2019-08-01-preview/peering/CHANGELOG.md +++ b/services/preview/peering/mgmt/2019-08-01-preview/peering/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. Operation.MarshalJSON() ([]byte, error) +1. OperationDisplayInfo.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/peering/mgmt/2019-08-01-preview/peering/_meta.json b/services/preview/peering/mgmt/2019-08-01-preview/peering/_meta.json index 76f4b00192a3..bd2585cd55d5 100644 --- a/services/preview/peering/mgmt/2019-08-01-preview/peering/_meta.json +++ b/services/preview/peering/mgmt/2019-08-01-preview/peering/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/peering/resource-manager/readme.md", "tag": "package-2019-08-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-08-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/peering/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-08-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/peering/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/peering/mgmt/2019-08-01-preview/peering/models.go b/services/preview/peering/mgmt/2019-08-01-preview/peering/models.go index 374e59e964f6..e7a17c651052 100644 --- a/services/preview/peering/mgmt/2019-08-01-preview/peering/models.go +++ b/services/preview/peering/mgmt/2019-08-01-preview/peering/models.go @@ -162,6 +162,12 @@ type ErrorResponse struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExchangeConnection the properties that define an exchange connection. type ExchangeConnection struct { // PeeringDBFacilityID - The PeeringDB.com ID of the facility at which the connection has to be set up. @@ -781,6 +787,12 @@ type Operation struct { IsDataAction *bool `json:"isDataAction,omitempty"` } +// MarshalJSON is the custom marshaler for Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationDisplayInfo the information related to the operation. type OperationDisplayInfo struct { // Provider - READ-ONLY; The name of the resource provider. @@ -793,6 +805,12 @@ type OperationDisplayInfo struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplayInfo. +func (odi OperationDisplayInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult the paginated list of peering API operations. type OperationListResult struct { autorest.Response `json:"-"` @@ -1253,6 +1271,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceTags the resource tags. type ResourceTags struct { // Tags - Gets or sets the tags, a dictionary of descriptors arm object diff --git a/services/preview/peering/mgmt/2019-09-01-preview/peering/CHANGELOG.md b/services/preview/peering/mgmt/2019-09-01-preview/peering/CHANGELOG.md index 52911e4cc5e4..e15e4e247ae9 100644 --- a/services/preview/peering/mgmt/2019-09-01-preview/peering/CHANGELOG.md +++ b/services/preview/peering/mgmt/2019-09-01-preview/peering/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. Operation.MarshalJSON() ([]byte, error) +1. OperationDisplayInfo.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ServicePrefixEvent.MarshalJSON() ([]byte, error) diff --git a/services/preview/peering/mgmt/2019-09-01-preview/peering/_meta.json b/services/preview/peering/mgmt/2019-09-01-preview/peering/_meta.json index abf92d90faff..a7ee0817b010 100644 --- a/services/preview/peering/mgmt/2019-09-01-preview/peering/_meta.json +++ b/services/preview/peering/mgmt/2019-09-01-preview/peering/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/peering/resource-manager/readme.md", "tag": "package-2019-09-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-09-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/peering/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-09-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/peering/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/peering/mgmt/2019-09-01-preview/peering/models.go b/services/preview/peering/mgmt/2019-09-01-preview/peering/models.go index 11106568653d..04636df0e459 100644 --- a/services/preview/peering/mgmt/2019-09-01-preview/peering/models.go +++ b/services/preview/peering/mgmt/2019-09-01-preview/peering/models.go @@ -162,6 +162,12 @@ type ErrorResponse struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExchangeConnection the properties that define an exchange connection. type ExchangeConnection struct { // PeeringDBFacilityID - The PeeringDB.com ID of the facility at which the connection has to be set up. @@ -783,6 +789,12 @@ type Operation struct { IsDataAction *bool `json:"isDataAction,omitempty"` } +// MarshalJSON is the custom marshaler for Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationDisplayInfo the information related to the operation. type OperationDisplayInfo struct { // Provider - READ-ONLY; The name of the resource provider. @@ -795,6 +807,12 @@ type OperationDisplayInfo struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplayInfo. +func (odi OperationDisplayInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult the paginated list of peering API operations. type OperationListResult struct { autorest.Response `json:"-"` @@ -1290,6 +1308,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceTags the resource tags. type ResourceTags struct { // Tags - Gets or sets the tags, a dictionary of descriptors arm object @@ -1893,6 +1917,12 @@ type ServicePrefixEvent struct { EventDescription *string `json:"eventDescription,omitempty"` } +// MarshalJSON is the custom marshaler for ServicePrefixEvent. +func (spe ServicePrefixEvent) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServicePrefixListResult the paginated list of peering service prefixes. type ServicePrefixListResult struct { autorest.Response `json:"-"` diff --git a/services/preview/peering/mgmt/2020-01-01-preview/peering/CHANGELOG.md b/services/preview/peering/mgmt/2020-01-01-preview/peering/CHANGELOG.md index 52911e4cc5e4..9fd3f6255ee1 100644 --- a/services/preview/peering/mgmt/2020-01-01-preview/peering/CHANGELOG.md +++ b/services/preview/peering/mgmt/2020-01-01-preview/peering/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. Operation.MarshalJSON() ([]byte, error) +1. OperationDisplayInfo.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ServiceCountry.MarshalJSON() ([]byte, error) +1. ServicePrefixEvent.MarshalJSON() ([]byte, error) diff --git a/services/preview/peering/mgmt/2020-01-01-preview/peering/_meta.json b/services/preview/peering/mgmt/2020-01-01-preview/peering/_meta.json index 16898cf01e08..b0200cdbff5e 100644 --- a/services/preview/peering/mgmt/2020-01-01-preview/peering/_meta.json +++ b/services/preview/peering/mgmt/2020-01-01-preview/peering/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/peering/resource-manager/readme.md", "tag": "package-2020-01-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-01-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/peering/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-01-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/peering/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/peering/mgmt/2020-01-01-preview/peering/models.go b/services/preview/peering/mgmt/2020-01-01-preview/peering/models.go index 7cfc28e5953c..51142897fb5e 100644 --- a/services/preview/peering/mgmt/2020-01-01-preview/peering/models.go +++ b/services/preview/peering/mgmt/2020-01-01-preview/peering/models.go @@ -170,6 +170,12 @@ type ErrorResponse struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExchangeConnection the properties that define an exchange connection. type ExchangeConnection struct { // PeeringDBFacilityID - The PeeringDB.com ID of the facility at which the connection has to be set up. @@ -791,6 +797,12 @@ type Operation struct { IsDataAction *bool `json:"isDataAction,omitempty"` } +// MarshalJSON is the custom marshaler for Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationDisplayInfo the information related to the operation. type OperationDisplayInfo struct { // Provider - READ-ONLY; The name of the resource provider. @@ -803,6 +815,12 @@ type OperationDisplayInfo struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplayInfo. +func (odi OperationDisplayInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult the paginated list of peering API operations. type OperationListResult struct { autorest.Response `json:"-"` @@ -1804,6 +1822,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceTags the resource tags. type ResourceTags struct { // Tags - Gets or sets the tags, a dictionary of descriptors arm object @@ -1944,6 +1968,12 @@ type ServiceCountry struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceCountry. +func (sc ServiceCountry) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceCountryListResult the paginated list of peering service countries. type ServiceCountryListResult struct { autorest.Response `json:"-"` @@ -2590,6 +2620,12 @@ type ServicePrefixEvent struct { EventDescription *string `json:"eventDescription,omitempty"` } +// MarshalJSON is the custom marshaler for ServicePrefixEvent. +func (spe ServicePrefixEvent) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServicePrefixListResult the paginated list of peering service prefixes. type ServicePrefixListResult struct { autorest.Response `json:"-"` diff --git a/services/preview/policyinsights/mgmt/2018-07-01-preview/policyinsights/CHANGELOG.md b/services/preview/policyinsights/mgmt/2018-07-01-preview/policyinsights/CHANGELOG.md index 52911e4cc5e4..404c4cbf479a 100644 --- a/services/preview/policyinsights/mgmt/2018-07-01-preview/policyinsights/CHANGELOG.md +++ b/services/preview/policyinsights/mgmt/2018-07-01-preview/policyinsights/CHANGELOG.md @@ -1,2 +1,16 @@ # Change History +## Additive Changes + +### New Funcs + +1. ErrorDefinition.MarshalJSON() ([]byte, error) +1. PolicyDetails.MarshalJSON() ([]byte, error) +1. PolicyTrackedResource.MarshalJSON() ([]byte, error) +1. PolicyTrackedResourcesQueryResults.MarshalJSON() ([]byte, error) +1. QueryFailureError.MarshalJSON() ([]byte, error) +1. RemediationDeployment.MarshalJSON() ([]byte, error) +1. RemediationDeploymentsListResult.MarshalJSON() ([]byte, error) +1. RemediationListResult.MarshalJSON() ([]byte, error) +1. TrackedResourceModificationDetails.MarshalJSON() ([]byte, error) +1. TypedErrorInfo.MarshalJSON() ([]byte, error) diff --git a/services/preview/policyinsights/mgmt/2018-07-01-preview/policyinsights/_meta.json b/services/preview/policyinsights/mgmt/2018-07-01-preview/policyinsights/_meta.json index 20e2d85086ad..6a2f6e5a9944 100644 --- a/services/preview/policyinsights/mgmt/2018-07-01-preview/policyinsights/_meta.json +++ b/services/preview/policyinsights/mgmt/2018-07-01-preview/policyinsights/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/policyinsights/resource-manager/readme.md", "tag": "package-2018-07", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/policyinsights/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/policyinsights/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/policyinsights/mgmt/2018-07-01-preview/policyinsights/models.go b/services/preview/policyinsights/mgmt/2018-07-01-preview/policyinsights/models.go index 1e90fb74ffec..49bef811771a 100644 --- a/services/preview/policyinsights/mgmt/2018-07-01-preview/policyinsights/models.go +++ b/services/preview/policyinsights/mgmt/2018-07-01-preview/policyinsights/models.go @@ -33,6 +33,12 @@ type ErrorDefinition struct { AdditionalInfo *[]TypedErrorInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDefinition. +func (ed ErrorDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse error response. type ErrorResponse struct { // Error - The error details. @@ -132,6 +138,12 @@ type PolicyDetails struct { PolicyDefinitionReferenceID *string `json:"policyDefinitionReferenceId,omitempty"` } +// MarshalJSON is the custom marshaler for PolicyDetails. +func (pd PolicyDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PolicyEvaluationDetails policy evaluation details. type PolicyEvaluationDetails struct { // EvaluatedExpressions - Details of the evaluated expressions. @@ -1376,6 +1388,12 @@ type PolicyTrackedResource struct { LastUpdateUtc *date.Time `json:"lastUpdateUtc,omitempty"` } +// MarshalJSON is the custom marshaler for PolicyTrackedResource. +func (ptr PolicyTrackedResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PolicyTrackedResourcesQueryResults query results. type PolicyTrackedResourcesQueryResults struct { autorest.Response `json:"-"` @@ -1385,6 +1403,12 @@ type PolicyTrackedResourcesQueryResults struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PolicyTrackedResourcesQueryResults. +func (ptrqr PolicyTrackedResourcesQueryResults) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PolicyTrackedResourcesQueryResultsIterator provides access to a complete listing of // PolicyTrackedResource values. type PolicyTrackedResourcesQueryResultsIterator struct { @@ -1550,6 +1574,12 @@ type QueryFailureError struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for QueryFailureError. +func (qf QueryFailureError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Remediation the remediation definition. type Remediation struct { autorest.Response `json:"-"` @@ -1641,6 +1671,12 @@ type RemediationDeployment struct { LastUpdatedOn *date.Time `json:"lastUpdatedOn,omitempty"` } +// MarshalJSON is the custom marshaler for RemediationDeployment. +func (rd RemediationDeployment) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RemediationDeploymentsListResult list of deployments for a remediation. type RemediationDeploymentsListResult struct { autorest.Response `json:"-"` @@ -1650,6 +1686,12 @@ type RemediationDeploymentsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RemediationDeploymentsListResult. +func (rdlr RemediationDeploymentsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RemediationDeploymentsListResultIterator provides access to a complete listing of RemediationDeployment // values. type RemediationDeploymentsListResultIterator struct { @@ -1827,6 +1869,12 @@ type RemediationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RemediationListResult. +func (rlr RemediationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RemediationListResultIterator provides access to a complete listing of Remediation values. type RemediationListResultIterator struct { i int @@ -2063,6 +2111,12 @@ type TrackedResourceModificationDetails struct { DeploymentTime *date.Time `json:"deploymentTime,omitempty"` } +// MarshalJSON is the custom marshaler for TrackedResourceModificationDetails. +func (trmd TrackedResourceModificationDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TypedErrorInfo scenario specific error details. type TypedErrorInfo struct { // Type - READ-ONLY; The type of included error details. @@ -2070,3 +2124,9 @@ type TypedErrorInfo struct { // Info - READ-ONLY; The scenario specific error details. Info interface{} `json:"info,omitempty"` } + +// MarshalJSON is the custom marshaler for TypedErrorInfo. +func (tei TypedErrorInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/preview/policyinsights/mgmt/2019-10-01-preview/policyinsights/CHANGELOG.md b/services/preview/policyinsights/mgmt/2019-10-01-preview/policyinsights/CHANGELOG.md index 52911e4cc5e4..497852d98186 100644 --- a/services/preview/policyinsights/mgmt/2019-10-01-preview/policyinsights/CHANGELOG.md +++ b/services/preview/policyinsights/mgmt/2019-10-01-preview/policyinsights/CHANGELOG.md @@ -1,2 +1,20 @@ # Change History +## Additive Changes + +### New Funcs + +1. ErrorDefinition.MarshalJSON() ([]byte, error) +1. PolicyDetails.MarshalJSON() ([]byte, error) +1. PolicyMetadataCollection.MarshalJSON() ([]byte, error) +1. PolicyMetadataProperties.MarshalJSON() ([]byte, error) +1. PolicyMetadataSlimProperties.MarshalJSON() ([]byte, error) +1. PolicyTrackedResource.MarshalJSON() ([]byte, error) +1. PolicyTrackedResourcesQueryResults.MarshalJSON() ([]byte, error) +1. QueryFailureError.MarshalJSON() ([]byte, error) +1. RemediationDeployment.MarshalJSON() ([]byte, error) +1. RemediationDeploymentSummary.MarshalJSON() ([]byte, error) +1. RemediationDeploymentsListResult.MarshalJSON() ([]byte, error) +1. RemediationListResult.MarshalJSON() ([]byte, error) +1. TrackedResourceModificationDetails.MarshalJSON() ([]byte, error) +1. TypedErrorInfo.MarshalJSON() ([]byte, error) diff --git a/services/preview/policyinsights/mgmt/2019-10-01-preview/policyinsights/_meta.json b/services/preview/policyinsights/mgmt/2019-10-01-preview/policyinsights/_meta.json index f20470a6b737..cfea58362c0c 100644 --- a/services/preview/policyinsights/mgmt/2019-10-01-preview/policyinsights/_meta.json +++ b/services/preview/policyinsights/mgmt/2019-10-01-preview/policyinsights/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/policyinsights/resource-manager/readme.md", "tag": "package-2019-10", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/policyinsights/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/policyinsights/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/policyinsights/mgmt/2019-10-01-preview/policyinsights/models.go b/services/preview/policyinsights/mgmt/2019-10-01-preview/policyinsights/models.go index 1afdc9f2b2e3..6a043e44d224 100644 --- a/services/preview/policyinsights/mgmt/2019-10-01-preview/policyinsights/models.go +++ b/services/preview/policyinsights/mgmt/2019-10-01-preview/policyinsights/models.go @@ -294,6 +294,12 @@ type ErrorDefinition struct { AdditionalInfo *[]TypedErrorInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDefinition. +func (ed ErrorDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse error response. type ErrorResponse struct { // Error - The error details. @@ -423,6 +429,12 @@ type PolicyDetails struct { PolicyDefinitionReferenceID *string `json:"policyDefinitionReferenceId,omitempty"` } +// MarshalJSON is the custom marshaler for PolicyDetails. +func (pd PolicyDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PolicyEvaluationDetails policy evaluation details. type PolicyEvaluationDetails struct { // EvaluatedExpressions - Details of the evaluated expressions. @@ -1160,6 +1172,12 @@ type PolicyMetadataCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PolicyMetadataCollection. +func (pmc PolicyMetadataCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PolicyMetadataCollectionIterator provides access to a complete listing of SlimPolicyMetadata values. type PolicyMetadataCollectionIterator struct { i int @@ -1330,6 +1348,12 @@ type PolicyMetadataProperties struct { Metadata interface{} `json:"metadata,omitempty"` } +// MarshalJSON is the custom marshaler for PolicyMetadataProperties. +func (pmp PolicyMetadataProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PolicyMetadataSlimProperties the properties of the policy metadata, excluding properties containing // large strings type PolicyMetadataSlimProperties struct { @@ -1347,6 +1371,12 @@ type PolicyMetadataSlimProperties struct { Metadata interface{} `json:"metadata,omitempty"` } +// MarshalJSON is the custom marshaler for PolicyMetadataSlimProperties. +func (pmsp PolicyMetadataSlimProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PolicyState policy state record. type PolicyState struct { // AdditionalProperties - Unmatched properties from the message are deserialized this collection @@ -2107,6 +2137,12 @@ type PolicyTrackedResource struct { LastUpdateUtc *date.Time `json:"lastUpdateUtc,omitempty"` } +// MarshalJSON is the custom marshaler for PolicyTrackedResource. +func (ptr PolicyTrackedResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PolicyTrackedResourcesQueryResults query results. type PolicyTrackedResourcesQueryResults struct { autorest.Response `json:"-"` @@ -2116,6 +2152,12 @@ type PolicyTrackedResourcesQueryResults struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PolicyTrackedResourcesQueryResults. +func (ptrqr PolicyTrackedResourcesQueryResults) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PolicyTrackedResourcesQueryResultsIterator provides access to a complete listing of // PolicyTrackedResource values. type PolicyTrackedResourcesQueryResultsIterator struct { @@ -2281,6 +2323,12 @@ type QueryFailureError struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for QueryFailureError. +func (qf QueryFailureError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Remediation the remediation definition. type Remediation struct { autorest.Response `json:"-"` @@ -2372,6 +2420,12 @@ type RemediationDeployment struct { LastUpdatedOn *date.Time `json:"lastUpdatedOn,omitempty"` } +// MarshalJSON is the custom marshaler for RemediationDeployment. +func (rd RemediationDeployment) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RemediationDeploymentsListResult list of deployments for a remediation. type RemediationDeploymentsListResult struct { autorest.Response `json:"-"` @@ -2381,6 +2435,12 @@ type RemediationDeploymentsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RemediationDeploymentsListResult. +func (rdlr RemediationDeploymentsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RemediationDeploymentsListResultIterator provides access to a complete listing of RemediationDeployment // values. type RemediationDeploymentsListResultIterator struct { @@ -2543,6 +2603,12 @@ type RemediationDeploymentSummary struct { FailedDeployments *int32 `json:"failedDeployments,omitempty"` } +// MarshalJSON is the custom marshaler for RemediationDeploymentSummary. +func (rds RemediationDeploymentSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RemediationFilters the filters that will be applied to determine which resources to remediate. type RemediationFilters struct { // Locations - The resource locations that will be remediated. @@ -2558,6 +2624,12 @@ type RemediationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RemediationListResult. +func (rlr RemediationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RemediationListResultIterator provides access to a complete listing of Remediation values. type RemediationListResultIterator struct { i int @@ -2869,6 +2941,12 @@ type TrackedResourceModificationDetails struct { DeploymentTime *date.Time `json:"deploymentTime,omitempty"` } +// MarshalJSON is the custom marshaler for TrackedResourceModificationDetails. +func (trmd TrackedResourceModificationDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TypedErrorInfo scenario specific error details. type TypedErrorInfo struct { // Type - READ-ONLY; The type of included error details. @@ -2876,3 +2954,9 @@ type TypedErrorInfo struct { // Info - READ-ONLY; The scenario specific error details. Info interface{} `json:"info,omitempty"` } + +// MarshalJSON is the custom marshaler for TypedErrorInfo. +func (tei TypedErrorInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/CHANGELOG.md b/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/CHANGELOG.md index 52911e4cc5e4..1f0d9f1fed54 100644 --- a/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/CHANGELOG.md +++ b/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/CHANGELOG.md @@ -1,2 +1,24 @@ # Change History +## Additive Changes + +### New Funcs + +1. CheckRestrictionsResult.MarshalJSON() ([]byte, error) +1. ErrorDefinition.MarshalJSON() ([]byte, error) +1. FieldRestriction.MarshalJSON() ([]byte, error) +1. PolicyDetails.MarshalJSON() ([]byte, error) +1. PolicyEvaluationResult.MarshalJSON() ([]byte, error) +1. PolicyMetadataCollection.MarshalJSON() ([]byte, error) +1. PolicyMetadataProperties.MarshalJSON() ([]byte, error) +1. PolicyMetadataSlimProperties.MarshalJSON() ([]byte, error) +1. PolicyReference.MarshalJSON() ([]byte, error) +1. PolicyTrackedResource.MarshalJSON() ([]byte, error) +1. PolicyTrackedResourcesQueryResults.MarshalJSON() ([]byte, error) +1. QueryFailureError.MarshalJSON() ([]byte, error) +1. RemediationDeployment.MarshalJSON() ([]byte, error) +1. RemediationDeploymentSummary.MarshalJSON() ([]byte, error) +1. RemediationDeploymentsListResult.MarshalJSON() ([]byte, error) +1. RemediationListResult.MarshalJSON() ([]byte, error) +1. TrackedResourceModificationDetails.MarshalJSON() ([]byte, error) +1. TypedErrorInfo.MarshalJSON() ([]byte, error) diff --git a/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/_meta.json b/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/_meta.json index 4bf1f1f80a03..48902135d954 100644 --- a/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/_meta.json +++ b/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/policyinsights/resource-manager/readme.md", "tag": "package-2020-07", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/policyinsights/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/policyinsights/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/models.go b/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/models.go index bf9396a730d7..1c7db7d62ad8 100644 --- a/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/models.go +++ b/services/preview/policyinsights/mgmt/2020-07-01-preview/policyinsights/models.go @@ -48,6 +48,12 @@ type CheckRestrictionsResult struct { ContentEvaluationResult *CheckRestrictionsResultContentEvaluationResult `json:"contentEvaluationResult,omitempty"` } +// MarshalJSON is the custom marshaler for CheckRestrictionsResult. +func (crr CheckRestrictionsResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CheckRestrictionsResultContentEvaluationResult evaluation results for the provided partial resource // content. type CheckRestrictionsResultContentEvaluationResult struct { @@ -329,6 +335,12 @@ type ErrorDefinition struct { AdditionalInfo *[]TypedErrorInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDefinition. +func (ed ErrorDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse error response. type ErrorResponse struct { // Error - The error details. @@ -389,6 +401,12 @@ type FieldRestriction struct { Policy *PolicyReference `json:"policy,omitempty"` } +// MarshalJSON is the custom marshaler for FieldRestriction. +func (fr FieldRestriction) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FieldRestrictions the restrictions that will be placed on a field in the resource by policy. type FieldRestrictions struct { // Field - READ-ONLY; The name of the field. This can be a top-level property like 'name' or 'type' or an Azure Policy field alias. @@ -495,6 +513,12 @@ type PolicyDetails struct { PolicyDefinitionReferenceID *string `json:"policyDefinitionReferenceId,omitempty"` } +// MarshalJSON is the custom marshaler for PolicyDetails. +func (pd PolicyDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PolicyEvaluationDetails policy evaluation details. type PolicyEvaluationDetails struct { // EvaluatedExpressions - Details of the evaluated expressions. @@ -514,6 +538,12 @@ type PolicyEvaluationResult struct { EvaluationDetails *PolicyEvaluationDetails `json:"evaluationDetails,omitempty"` } +// MarshalJSON is the custom marshaler for PolicyEvaluationResult. +func (per PolicyEvaluationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PolicyEvent policy event record. type PolicyEvent struct { // AdditionalProperties - Unmatched properties from the message are deserialized this collection @@ -1243,6 +1273,12 @@ type PolicyMetadataCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PolicyMetadataCollection. +func (pmc PolicyMetadataCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PolicyMetadataCollectionIterator provides access to a complete listing of SlimPolicyMetadata values. type PolicyMetadataCollectionIterator struct { i int @@ -1413,6 +1449,12 @@ type PolicyMetadataProperties struct { Metadata interface{} `json:"metadata,omitempty"` } +// MarshalJSON is the custom marshaler for PolicyMetadataProperties. +func (pmp PolicyMetadataProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PolicyMetadataSlimProperties the properties of the policy metadata, excluding properties containing // large strings type PolicyMetadataSlimProperties struct { @@ -1430,6 +1472,12 @@ type PolicyMetadataSlimProperties struct { Metadata interface{} `json:"metadata,omitempty"` } +// MarshalJSON is the custom marshaler for PolicyMetadataSlimProperties. +func (pmsp PolicyMetadataSlimProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PolicyReference resource identifiers for a policy. type PolicyReference struct { // PolicyDefinitionID - READ-ONLY; The resource identifier of the policy definition. @@ -1442,6 +1490,12 @@ type PolicyReference struct { PolicyAssignmentID *string `json:"policyAssignmentId,omitempty"` } +// MarshalJSON is the custom marshaler for PolicyReference. +func (pr PolicyReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PolicyState policy state record. type PolicyState struct { // AdditionalProperties - Unmatched properties from the message are deserialized this collection @@ -2202,6 +2256,12 @@ type PolicyTrackedResource struct { LastUpdateUtc *date.Time `json:"lastUpdateUtc,omitempty"` } +// MarshalJSON is the custom marshaler for PolicyTrackedResource. +func (ptr PolicyTrackedResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PolicyTrackedResourcesQueryResults query results. type PolicyTrackedResourcesQueryResults struct { autorest.Response `json:"-"` @@ -2211,6 +2271,12 @@ type PolicyTrackedResourcesQueryResults struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PolicyTrackedResourcesQueryResults. +func (ptrqr PolicyTrackedResourcesQueryResults) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PolicyTrackedResourcesQueryResultsIterator provides access to a complete listing of // PolicyTrackedResource values. type PolicyTrackedResourcesQueryResultsIterator struct { @@ -2376,6 +2442,12 @@ type QueryFailureError struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for QueryFailureError. +func (qf QueryFailureError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Remediation the remediation definition. type Remediation struct { autorest.Response `json:"-"` @@ -2467,6 +2539,12 @@ type RemediationDeployment struct { LastUpdatedOn *date.Time `json:"lastUpdatedOn,omitempty"` } +// MarshalJSON is the custom marshaler for RemediationDeployment. +func (rd RemediationDeployment) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RemediationDeploymentsListResult list of deployments for a remediation. type RemediationDeploymentsListResult struct { autorest.Response `json:"-"` @@ -2476,6 +2554,12 @@ type RemediationDeploymentsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RemediationDeploymentsListResult. +func (rdlr RemediationDeploymentsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RemediationDeploymentsListResultIterator provides access to a complete listing of RemediationDeployment // values. type RemediationDeploymentsListResultIterator struct { @@ -2638,6 +2722,12 @@ type RemediationDeploymentSummary struct { FailedDeployments *int32 `json:"failedDeployments,omitempty"` } +// MarshalJSON is the custom marshaler for RemediationDeploymentSummary. +func (rds RemediationDeploymentSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RemediationFilters the filters that will be applied to determine which resources to remediate. type RemediationFilters struct { // Locations - The resource locations that will be remediated. @@ -2653,6 +2743,12 @@ type RemediationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RemediationListResult. +func (rlr RemediationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RemediationListResultIterator provides access to a complete listing of Remediation values. type RemediationListResultIterator struct { i int @@ -2964,6 +3060,12 @@ type TrackedResourceModificationDetails struct { DeploymentTime *date.Time `json:"deploymentTime,omitempty"` } +// MarshalJSON is the custom marshaler for TrackedResourceModificationDetails. +func (trmd TrackedResourceModificationDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TypedErrorInfo scenario specific error details. type TypedErrorInfo struct { // Type - READ-ONLY; The type of included error details. @@ -2971,3 +3073,9 @@ type TypedErrorInfo struct { // Info - READ-ONLY; The scenario specific error details. Info interface{} `json:"info,omitempty"` } + +// MarshalJSON is the custom marshaler for TypedErrorInfo. +func (tei TypedErrorInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/preview/portal/mgmt/2015-08-01-preview/portal/CHANGELOG.md b/services/preview/portal/mgmt/2015-08-01-preview/portal/CHANGELOG.md index 52911e4cc5e4..1540c4b3b6e5 100644 --- a/services/preview/portal/mgmt/2015-08-01-preview/portal/CHANGELOG.md +++ b/services/preview/portal/mgmt/2015-08-01-preview/portal/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. ErrorDefinition.MarshalJSON() ([]byte, error) diff --git a/services/preview/portal/mgmt/2015-08-01-preview/portal/_meta.json b/services/preview/portal/mgmt/2015-08-01-preview/portal/_meta.json index b87e1d4c2dc6..8b7198940944 100644 --- a/services/preview/portal/mgmt/2015-08-01-preview/portal/_meta.json +++ b/services/preview/portal/mgmt/2015-08-01-preview/portal/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/portal/resource-manager/readme.md", "tag": "package-2015-08-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2015-08-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/portal/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2015-08-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/portal/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/portal/mgmt/2015-08-01-preview/portal/models.go b/services/preview/portal/mgmt/2015-08-01-preview/portal/models.go index 0170c3ffab15..bd96ba536944 100644 --- a/services/preview/portal/mgmt/2015-08-01-preview/portal/models.go +++ b/services/preview/portal/mgmt/2015-08-01-preview/portal/models.go @@ -388,6 +388,12 @@ type ErrorDefinition struct { Details *[]ErrorDefinition `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDefinition. +func (ed ErrorDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse error response. type ErrorResponse struct { // Error - The error details. diff --git a/services/preview/portal/mgmt/2018-10-01-preview/portal/CHANGELOG.md b/services/preview/portal/mgmt/2018-10-01-preview/portal/CHANGELOG.md index 52911e4cc5e4..1540c4b3b6e5 100644 --- a/services/preview/portal/mgmt/2018-10-01-preview/portal/CHANGELOG.md +++ b/services/preview/portal/mgmt/2018-10-01-preview/portal/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. ErrorDefinition.MarshalJSON() ([]byte, error) diff --git a/services/preview/portal/mgmt/2018-10-01-preview/portal/_meta.json b/services/preview/portal/mgmt/2018-10-01-preview/portal/_meta.json index 2ae3f892bfe3..cc8af1385db3 100644 --- a/services/preview/portal/mgmt/2018-10-01-preview/portal/_meta.json +++ b/services/preview/portal/mgmt/2018-10-01-preview/portal/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/portal/resource-manager/readme.md", "tag": "package-2018-10-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-10-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/portal/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-10-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/portal/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/portal/mgmt/2018-10-01-preview/portal/models.go b/services/preview/portal/mgmt/2018-10-01-preview/portal/models.go index 9c0fa9a75761..5d6752aee54c 100644 --- a/services/preview/portal/mgmt/2018-10-01-preview/portal/models.go +++ b/services/preview/portal/mgmt/2018-10-01-preview/portal/models.go @@ -388,6 +388,12 @@ type ErrorDefinition struct { Details *[]ErrorDefinition `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDefinition. +func (ed ErrorDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse error response. type ErrorResponse struct { // Error - The error details. diff --git a/services/preview/portal/mgmt/2019-01-01-preview/portal/CHANGELOG.md b/services/preview/portal/mgmt/2019-01-01-preview/portal/CHANGELOG.md index 52911e4cc5e4..0635539f0e7f 100644 --- a/services/preview/portal/mgmt/2019-01-01-preview/portal/CHANGELOG.md +++ b/services/preview/portal/mgmt/2019-01-01-preview/portal/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ErrorDefinition.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/portal/mgmt/2019-01-01-preview/portal/_meta.json b/services/preview/portal/mgmt/2019-01-01-preview/portal/_meta.json index 60d7b90a48c2..8fc1b4e52f36 100644 --- a/services/preview/portal/mgmt/2019-01-01-preview/portal/_meta.json +++ b/services/preview/portal/mgmt/2019-01-01-preview/portal/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/portal/resource-manager/readme.md", "tag": "package-2019-01-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-01-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/portal/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-01-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/portal/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/portal/mgmt/2019-01-01-preview/portal/models.go b/services/preview/portal/mgmt/2019-01-01-preview/portal/models.go index 54e9f5d428da..3aea1c0ca90f 100644 --- a/services/preview/portal/mgmt/2019-01-01-preview/portal/models.go +++ b/services/preview/portal/mgmt/2019-01-01-preview/portal/models.go @@ -30,6 +30,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Configuration tenant configuration. type Configuration struct { autorest.Response `json:"-"` @@ -488,6 +494,12 @@ type ErrorDefinition struct { Details *[]ErrorDefinition `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDefinition. +func (ed ErrorDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse error response. type ErrorResponse struct { // Error - The error details. @@ -558,6 +570,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -568,6 +586,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceProviderOperation supported operations of this resource provider. type ResourceProviderOperation struct { // Name - Operation name, in format of {provider}/{resource}/{operation} diff --git a/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/CHANGELOG.md b/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/CHANGELOG.md index 52911e4cc5e4..d91ad45505a7 100644 --- a/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/CHANGELOG.md +++ b/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ServerPrivateEndpointConnection.MarshalJSON() ([]byte, error) +1. VirtualNetworkRuleListResult.MarshalJSON() ([]byte, error) diff --git a/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/_meta.json b/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/_meta.json index 327b400b6b64..b76edafa6be6 100644 --- a/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/_meta.json +++ b/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/postgresql/resource-manager/readme.md", "tag": "package-2017-12-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-12-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/postgresql/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-12-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/postgresql/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/models.go b/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/models.go index 3e2f8e241232..6ce888e4c7f6 100644 --- a/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/models.go +++ b/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/models.go @@ -33,6 +33,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from the Batch service. type CloudError struct { Error *CloudErrorBody `json:"error,omitempty"` @@ -694,6 +700,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (od OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult a list of resource provider operations. type OperationListResult struct { autorest.Response `json:"-"` @@ -797,6 +809,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -807,6 +825,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceIdentity azure Active Directory identity configuration for a resource. type ResourceIdentity struct { // PrincipalID - READ-ONLY; The Azure Active Directory principal id. @@ -1238,6 +1262,12 @@ type ServerPrivateEndpointConnection struct { Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for ServerPrivateEndpointConnection. +func (spec ServerPrivateEndpointConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerProperties the properties of a server. type ServerProperties struct { // AdministratorLogin - The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). @@ -2230,6 +2260,12 @@ type VirtualNetworkRuleListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkRuleListResult. +func (vnrlr VirtualNetworkRuleListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkRuleListResultIterator provides access to a complete listing of VirtualNetworkRule values. type VirtualNetworkRuleListResultIterator struct { i int diff --git a/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/CHANGELOG.md b/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/CHANGELOG.md index 52911e4cc5e4..15288525920d 100644 --- a/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/CHANGELOG.md +++ b/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/CHANGELOG.md @@ -1,2 +1,21 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. CapabilitiesListResult.MarshalJSON() ([]byte, error) +1. CapabilityProperties.MarshalJSON() ([]byte, error) +1. DelegatedSubnetUsage.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ServerEditionCapability.MarshalJSON() ([]byte, error) +1. ServerVersionCapability.MarshalJSON() ([]byte, error) +1. StorageEditionCapability.MarshalJSON() ([]byte, error) +1. StorageMBCapability.MarshalJSON() ([]byte, error) +1. VcoreCapability.MarshalJSON() ([]byte, error) +1. VirtualNetworkSubnetUsageResult.MarshalJSON() ([]byte, error) diff --git a/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/_meta.json b/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/_meta.json index ac64d9054895..9a29b28ca624 100644 --- a/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/_meta.json +++ b/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/_meta.json @@ -2,9 +2,9 @@ "commit": "80e4e1b77162711ca1123042f50db03ffbf1bb40", "readme": "/_/azure-rest-api-specs/specification/postgresql/resource-manager/readme.md", "tag": "package-2020-02-14-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-02-14-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/postgresql/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-02-14-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/postgresql/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/models.go b/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/models.go index 475ada00a9be..5a3f22d497fb 100644 --- a/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/models.go +++ b/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers/models.go @@ -32,6 +32,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CapabilitiesListResult location capability type CapabilitiesListResult struct { autorest.Response `json:"-"` @@ -41,6 +47,12 @@ type CapabilitiesListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for CapabilitiesListResult. +func (clr CapabilitiesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CapabilitiesListResultIterator provides access to a complete listing of CapabilityProperties values. type CapabilitiesListResultIterator struct { i int @@ -199,6 +211,12 @@ type CapabilityProperties struct { SupportedFlexibleServerEditions *[]ServerEditionCapability `json:"supportedFlexibleServerEditions,omitempty"` } +// MarshalJSON is the custom marshaler for CapabilityProperties. +func (cp CapabilityProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from the Batch service. type CloudError struct { Error *ErrorResponse `json:"error,omitempty"` @@ -515,6 +533,12 @@ type DelegatedSubnetUsage struct { Usage *int64 `json:"usage,omitempty"` } +// MarshalJSON is the custom marshaler for DelegatedSubnetUsage. +func (dsu DelegatedSubnetUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorAdditionalInfo the resource management error additional info. type ErrorAdditionalInfo struct { // Type - READ-ONLY; The additional info type. @@ -523,6 +547,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.) type ErrorResponse struct { @@ -538,6 +568,12 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FirewallRule represents a server firewall rule. type FirewallRule struct { autorest.Response `json:"-"` @@ -945,6 +981,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (od OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult a list of resource provider operations. type OperationListResult struct { autorest.Response `json:"-"` @@ -980,6 +1022,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -990,6 +1038,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceModelWithAllowedPropertySet the resource model definition containing the full set of allowed // properties for a resource. Except properties bag, there cannot be a top level property outside of this // set. @@ -1222,6 +1276,12 @@ type ServerEditionCapability struct { SupportedServerVersions *[]ServerVersionCapability `json:"supportedServerVersions,omitempty"` } +// MarshalJSON is the custom marshaler for ServerEditionCapability. +func (sec ServerEditionCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerForUpdate represents a server to be updated. type ServerForUpdate struct { // Location - The location the resource resides in. @@ -1816,6 +1876,12 @@ type ServerVersionCapability struct { SupportedVcores *[]VcoreCapability `json:"supportedVcores,omitempty"` } +// MarshalJSON is the custom marshaler for ServerVersionCapability. +func (svc ServerVersionCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Sku sku information related properties of a server. type Sku struct { // Name - The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3. @@ -1832,6 +1898,12 @@ type StorageEditionCapability struct { SupportedStorageMB *[]StorageMBCapability `json:"supportedStorageMB,omitempty"` } +// MarshalJSON is the custom marshaler for StorageEditionCapability. +func (sec StorageEditionCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageMBCapability storage size in MB capability type StorageMBCapability struct { // Name - READ-ONLY; storage MB name @@ -1842,6 +1914,12 @@ type StorageMBCapability struct { StorageSizeMB *int64 `json:"storageSizeMB,omitempty"` } +// MarshalJSON is the custom marshaler for StorageMBCapability. +func (smc StorageMBCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageProfile storage Profile properties of a server type StorageProfile struct { // BackupRetentionDays - Backup retention days for the server. @@ -1889,6 +1967,12 @@ type VcoreCapability struct { SupportedMemoryPerVcoreMB *int64 `json:"supportedMemoryPerVcoreMB,omitempty"` } +// MarshalJSON is the custom marshaler for VcoreCapability. +func (vc VcoreCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkSubnetUsageParameter virtual network subnet usage parameter type VirtualNetworkSubnetUsageParameter struct { // VirtualNetworkArmResourceID - Virtual network resource id. @@ -1901,3 +1985,9 @@ type VirtualNetworkSubnetUsageResult struct { // DelegatedSubnetsUsage - READ-ONLY DelegatedSubnetsUsage *[]DelegatedSubnetUsage `json:"delegatedSubnetsUsage,omitempty"` } + +// MarshalJSON is the custom marshaler for VirtualNetworkSubnetUsageResult. +func (vnsur VirtualNetworkSubnetUsageResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/CHANGELOG.md b/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/CHANGELOG.md index 52911e4cc5e4..15288525920d 100644 --- a/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/CHANGELOG.md +++ b/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/CHANGELOG.md @@ -1,2 +1,21 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. CapabilitiesListResult.MarshalJSON() ([]byte, error) +1. CapabilityProperties.MarshalJSON() ([]byte, error) +1. DelegatedSubnetUsage.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ServerEditionCapability.MarshalJSON() ([]byte, error) +1. ServerVersionCapability.MarshalJSON() ([]byte, error) +1. StorageEditionCapability.MarshalJSON() ([]byte, error) +1. StorageMBCapability.MarshalJSON() ([]byte, error) +1. VcoreCapability.MarshalJSON() ([]byte, error) +1. VirtualNetworkSubnetUsageResult.MarshalJSON() ([]byte, error) diff --git a/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/_meta.json b/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/_meta.json index f214c68451ac..b1185cc498f5 100644 --- a/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/_meta.json +++ b/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/postgresql/resource-manager/readme.md", "tag": "package-2020-11-05-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-11-05-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/postgresql/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-11-05-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/postgresql/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/models.go b/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/models.go index 39045ec450f9..7d3f2d6e7f6d 100644 --- a/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/models.go +++ b/services/preview/postgresql/mgmt/2020-11-05-preview/postgresqlflexibleservers/models.go @@ -32,6 +32,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CapabilitiesListResult location capability type CapabilitiesListResult struct { autorest.Response `json:"-"` @@ -41,6 +47,12 @@ type CapabilitiesListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for CapabilitiesListResult. +func (clr CapabilitiesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CapabilitiesListResultIterator provides access to a complete listing of CapabilityProperties values. type CapabilitiesListResultIterator struct { i int @@ -199,6 +211,12 @@ type CapabilityProperties struct { SupportedFlexibleServerEditions *[]ServerEditionCapability `json:"supportedFlexibleServerEditions,omitempty"` } +// MarshalJSON is the custom marshaler for CapabilityProperties. +func (cp CapabilityProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from the Batch service. type CloudError struct { Error *ErrorResponse `json:"error,omitempty"` @@ -835,6 +853,12 @@ type DelegatedSubnetUsage struct { Usage *int64 `json:"usage,omitempty"` } +// MarshalJSON is the custom marshaler for DelegatedSubnetUsage. +func (dsu DelegatedSubnetUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorAdditionalInfo the resource management error additional info. type ErrorAdditionalInfo struct { // Type - READ-ONLY; The additional info type. @@ -843,6 +867,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.) type ErrorResponse struct { @@ -858,6 +888,12 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FirewallRule represents a server firewall rule. type FirewallRule struct { autorest.Response `json:"-"` @@ -1265,6 +1301,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (od OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult a list of resource provider operations. type OperationListResult struct { autorest.Response `json:"-"` @@ -1300,6 +1342,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -1310,6 +1358,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceModelWithAllowedPropertySet the resource model definition containing the full set of allowed // properties for a resource. Except properties bag, there cannot be a top level property outside of this // set. @@ -1542,6 +1596,12 @@ type ServerEditionCapability struct { SupportedServerVersions *[]ServerVersionCapability `json:"supportedServerVersions,omitempty"` } +// MarshalJSON is the custom marshaler for ServerEditionCapability. +func (sec ServerEditionCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerForUpdate represents a server to be updated. type ServerForUpdate struct { // Location - The location the resource resides in. @@ -2126,6 +2186,12 @@ type ServerVersionCapability struct { SupportedVcores *[]VcoreCapability `json:"supportedVcores,omitempty"` } +// MarshalJSON is the custom marshaler for ServerVersionCapability. +func (svc ServerVersionCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Sku sku information related properties of a server. type Sku struct { // Name - The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3. @@ -2142,6 +2208,12 @@ type StorageEditionCapability struct { SupportedStorageMB *[]StorageMBCapability `json:"supportedStorageMB,omitempty"` } +// MarshalJSON is the custom marshaler for StorageEditionCapability. +func (sec StorageEditionCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageMBCapability storage size in MB capability type StorageMBCapability struct { // Name - READ-ONLY; storage MB name @@ -2152,6 +2224,12 @@ type StorageMBCapability struct { StorageSizeMB *int64 `json:"storageSizeMB,omitempty"` } +// MarshalJSON is the custom marshaler for StorageMBCapability. +func (smc StorageMBCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageProfile storage Profile properties of a server type StorageProfile struct { // BackupRetentionDays - Backup retention days for the server. @@ -2199,6 +2277,12 @@ type VcoreCapability struct { SupportedMemoryPerVcoreMB *int64 `json:"supportedMemoryPerVcoreMB,omitempty"` } +// MarshalJSON is the custom marshaler for VcoreCapability. +func (vc VcoreCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkSubnetUsageParameter virtual network subnet usage parameter type VirtualNetworkSubnetUsageParameter struct { // VirtualNetworkArmResourceID - Virtual network resource id. @@ -2211,3 +2295,9 @@ type VirtualNetworkSubnetUsageResult struct { // DelegatedSubnetsUsage - READ-ONLY DelegatedSubnetsUsage *[]DelegatedSubnetUsage `json:"delegatedSubnetsUsage,omitempty"` } + +// MarshalJSON is the custom marshaler for VirtualNetworkSubnetUsageResult. +func (vnsur VirtualNetworkSubnetUsageResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/preview/powerplatform/mgmt/2020-10-30/powerplatform/CHANGELOG.md b/services/preview/powerplatform/mgmt/2020-10-30/powerplatform/CHANGELOG.md index 52911e4cc5e4..b5fbfe738a05 100644 --- a/services/preview/powerplatform/mgmt/2020-10-30/powerplatform/CHANGELOG.md +++ b/services/preview/powerplatform/mgmt/2020-10-30/powerplatform/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. PrivateEndpoint.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/powerplatform/mgmt/2020-10-30/powerplatform/_meta.json b/services/preview/powerplatform/mgmt/2020-10-30/powerplatform/_meta.json index 0ba04a50742f..0241e641f13f 100644 --- a/services/preview/powerplatform/mgmt/2020-10-30/powerplatform/_meta.json +++ b/services/preview/powerplatform/mgmt/2020-10-30/powerplatform/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/powerplatform/resource-manager/readme.md", "tag": "package-2020-10-30-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-10-30-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/powerplatform/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-10-30-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/powerplatform/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/powerplatform/mgmt/2020-10-30/powerplatform/models.go b/services/preview/powerplatform/mgmt/2020-10-30/powerplatform/models.go index 122aaf40b737..93a96810a5ea 100644 --- a/services/preview/powerplatform/mgmt/2020-10-30/powerplatform/models.go +++ b/services/preview/powerplatform/mgmt/2020-10-30/powerplatform/models.go @@ -302,6 +302,12 @@ type PrivateEndpoint struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpoint. +func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection a private endpoint connection type PrivateEndpointConnection struct { autorest.Response `json:"-"` @@ -638,6 +644,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource the core properties of ARM resources type Resource struct { // ID - READ-ONLY; ARM resource id of the EnterprisePolicy. @@ -650,6 +662,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Subnet a subnet type Subnet struct { autorest.Response `json:"-"` diff --git a/services/preview/provisioningservices/mgmt/2017-08-21-preview/iothub/CHANGELOG.md b/services/preview/provisioningservices/mgmt/2017-08-21-preview/iothub/CHANGELOG.md index 52911e4cc5e4..98d99315ed85 100644 --- a/services/preview/provisioningservices/mgmt/2017-08-21-preview/iothub/CHANGELOG.md +++ b/services/preview/provisioningservices/mgmt/2017-08-21-preview/iothub/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. CertificateProperties.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) diff --git a/services/preview/provisioningservices/mgmt/2017-08-21-preview/iothub/_meta.json b/services/preview/provisioningservices/mgmt/2017-08-21-preview/iothub/_meta.json index 1206c639be53..9b99545499c1 100644 --- a/services/preview/provisioningservices/mgmt/2017-08-21-preview/iothub/_meta.json +++ b/services/preview/provisioningservices/mgmt/2017-08-21-preview/iothub/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/deviceprovisioningservices/resource-manager/readme.md", "tag": "package-2017-08", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/deviceprovisioningservices/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/deviceprovisioningservices/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/provisioningservices/mgmt/2017-08-21-preview/iothub/models.go b/services/preview/provisioningservices/mgmt/2017-08-21-preview/iothub/models.go index 372e3267ffc2..466545b6c9a5 100644 --- a/services/preview/provisioningservices/mgmt/2017-08-21-preview/iothub/models.go +++ b/services/preview/provisioningservices/mgmt/2017-08-21-preview/iothub/models.go @@ -56,6 +56,12 @@ type CertificateProperties struct { Updated *date.TimeRFC1123 `json:"updated,omitempty"` } +// MarshalJSON is the custom marshaler for CertificateProperties. +func (cp CertificateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificateResponse the X509 Certificate. type CertificateResponse struct { autorest.Response `json:"-"` @@ -490,6 +496,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationInputs input values for operation results call. type OperationInputs struct { // Name - The name of the Provisioning Service to check. @@ -506,6 +518,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int diff --git a/services/preview/purview/mgmt/2020-12-01-preview/purview/CHANGELOG.md b/services/preview/purview/mgmt/2020-12-01-preview/purview/CHANGELOG.md index 52911e4cc5e4..06e8eb52a9a4 100644 --- a/services/preview/purview/mgmt/2020-12-01-preview/purview/CHANGELOG.md +++ b/services/preview/purview/mgmt/2020-12-01-preview/purview/CHANGELOG.md @@ -1,2 +1,16 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountEndpoints.MarshalJSON() ([]byte, error) +1. AccountPropertiesEndpoints.MarshalJSON() ([]byte, error) +1. AccountPropertiesManagedResources.MarshalJSON() ([]byte, error) +1. CloudConnectors.MarshalJSON() ([]byte, error) +1. ErrorModel.MarshalJSON() ([]byte, error) +1. ErrorResponseModel.MarshalJSON() ([]byte, error) +1. ErrorResponseModelError.MarshalJSON() ([]byte, error) +1. ManagedResources.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) diff --git a/services/preview/purview/mgmt/2020-12-01-preview/purview/_meta.json b/services/preview/purview/mgmt/2020-12-01-preview/purview/_meta.json index 11c3e6d083e8..6ebb277f2dad 100644 --- a/services/preview/purview/mgmt/2020-12-01-preview/purview/_meta.json +++ b/services/preview/purview/mgmt/2020-12-01-preview/purview/_meta.json @@ -2,9 +2,9 @@ "commit": "138759b8a5987252fd66658078907e1d93969c85", "readme": "/_/azure-rest-api-specs/specification/purview/resource-manager/readme.md", "tag": "package-2020-12-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-12-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/purview/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-12-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/purview/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/purview/mgmt/2020-12-01-preview/purview/models.go b/services/preview/purview/mgmt/2020-12-01-preview/purview/models.go index b9aa58e55481..beb5318e88ee 100644 --- a/services/preview/purview/mgmt/2020-12-01-preview/purview/models.go +++ b/services/preview/purview/mgmt/2020-12-01-preview/purview/models.go @@ -168,6 +168,12 @@ type AccountEndpoints struct { Scan *string `json:"scan,omitempty"` } +// MarshalJSON is the custom marshaler for AccountEndpoints. +func (ae AccountEndpoints) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountList paged list of account resources type AccountList struct { autorest.Response `json:"-"` @@ -376,6 +382,12 @@ type AccountPropertiesEndpoints struct { Scan *string `json:"scan,omitempty"` } +// MarshalJSON is the custom marshaler for AccountPropertiesEndpoints. +func (ap AccountPropertiesEndpoints) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountPropertiesManagedResources gets the resource identifiers of the managed resources. type AccountPropertiesManagedResources struct { // EventHubNamespace - READ-ONLY; Gets the managed event hub namespace resource identifier. @@ -386,6 +398,12 @@ type AccountPropertiesManagedResources struct { StorageAccount *string `json:"storageAccount,omitempty"` } +// MarshalJSON is the custom marshaler for AccountPropertiesManagedResources. +func (apR AccountPropertiesManagedResources) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type AccountsCreateOrUpdateFuture struct { @@ -596,6 +614,12 @@ type CloudConnectors struct { AwsExternalID *string `json:"awsExternalId,omitempty"` } +// MarshalJSON is the custom marshaler for CloudConnectors. +func (cc CloudConnectors) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DefaultAccountPayload payload to get and set the default account in the given scope type DefaultAccountPayload struct { autorest.Response `json:"-"` @@ -758,12 +782,24 @@ type ErrorModel struct { Target *string `json:"target,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorModel. +func (em ErrorModel) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponseModel default error response model type ErrorResponseModel struct { // Error - READ-ONLY; Gets or sets the error. Error *ErrorResponseModelError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponseModel. +func (erm ErrorResponseModel) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponseModelError gets or sets the error. type ErrorResponseModelError struct { // Code - READ-ONLY; Gets or sets the code. @@ -776,6 +812,12 @@ type ErrorResponseModelError struct { Target *string `json:"target,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponseModelError. +func (erm ErrorResponseModelError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Identity the Managed Identity of the resource type Identity struct { // PrincipalID - READ-ONLY; Service principal object Id @@ -805,6 +847,12 @@ type ManagedResources struct { StorageAccount *string `json:"storageAccount,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedResources. +func (mr ManagedResources) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation operation resource type Operation struct { // Display - Properties on the operation @@ -1668,6 +1716,12 @@ type PrivateLinkResourceProperties struct { RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. +func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkServiceConnectionState the private link service connection state. type PrivateLinkServiceConnectionState struct { // ActionsRequired - The required actions. @@ -1688,6 +1742,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackedResource azure ARM Tracked Resource type TrackedResource struct { // ID - READ-ONLY; Gets or sets the identifier. diff --git a/services/preview/qnamaker/cognitiveservices/v5.0-preview.1/qnamaker/_meta.json b/services/preview/qnamaker/cognitiveservices/v5.0-preview.1/qnamaker/_meta.json index 62f84854cd43..12fe9bb9ea1d 100644 --- a/services/preview/qnamaker/cognitiveservices/v5.0-preview.1/qnamaker/_meta.json +++ b/services/preview/qnamaker/cognitiveservices/v5.0-preview.1/qnamaker/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cognitiveservices/data-plane/QnAMaker/readme.md", "tag": "release_5_0_preview.1", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=release_5_0_preview.1 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/QnAMaker/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=release_5_0_preview.1 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cognitiveservices/data-plane/QnAMaker/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/quantum/mgmt/2019-11-04-preview/quantum/CHANGELOG.md b/services/preview/quantum/mgmt/2019-11-04-preview/quantum/CHANGELOG.md index 52911e4cc5e4..9d12de1a1610 100644 --- a/services/preview/quantum/mgmt/2019-11-04-preview/quantum/CHANGELOG.md +++ b/services/preview/quantum/mgmt/2019-11-04-preview/quantum/CHANGELOG.md @@ -1,2 +1,13 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorDetail.MarshalJSON() ([]byte, error) +1. ProviderPropertiesAad.MarshalJSON() ([]byte, error) +1. ProviderPropertiesManagedApplication.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/quantum/mgmt/2019-11-04-preview/quantum/_meta.json b/services/preview/quantum/mgmt/2019-11-04-preview/quantum/_meta.json index 6d0b017ccae3..4ee6f39cc595 100644 --- a/services/preview/quantum/mgmt/2019-11-04-preview/quantum/_meta.json +++ b/services/preview/quantum/mgmt/2019-11-04-preview/quantum/_meta.json @@ -2,9 +2,9 @@ "commit": "138759b8a5987252fd66658078907e1d93969c85", "readme": "/_/azure-rest-api-specs/specification/quantum/resource-manager/readme.md", "tag": "package-2019-11-04-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-11-04-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/quantum/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-11-04-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/quantum/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/quantum/mgmt/2019-11-04-preview/quantum/models.go b/services/preview/quantum/mgmt/2019-11-04-preview/quantum/models.go index 179cc1b6e5bd..8792b16542ad 100644 --- a/services/preview/quantum/mgmt/2019-11-04-preview/quantum/models.go +++ b/services/preview/quantum/mgmt/2019-11-04-preview/quantum/models.go @@ -31,6 +31,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorAdditionalInfo the resource management error additional info. type ErrorAdditionalInfo struct { // Type - READ-ONLY; The additional info type. @@ -39,6 +45,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetail the error detail. type ErrorDetail struct { // Code - READ-ONLY; The error code. @@ -53,6 +65,12 @@ type ErrorDetail struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetail. +func (ed ErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.). type ErrorResponse struct { @@ -512,6 +530,12 @@ type ProviderPropertiesAad struct { TenantID *string `json:"tenantId,omitempty"` } +// MarshalJSON is the custom marshaler for ProviderPropertiesAad. +func (pp ProviderPropertiesAad) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProviderPropertiesManagedApplication provider's Managed-Application info type ProviderPropertiesManagedApplication struct { // PublisherID - READ-ONLY; Provider's publisher id. @@ -520,6 +544,12 @@ type ProviderPropertiesManagedApplication struct { OfferID *string `json:"offerId,omitempty"` } +// MarshalJSON is the custom marshaler for ProviderPropertiesManagedApplication. +func (ppA ProviderPropertiesManagedApplication) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProxyResource the resource model definition for a Azure Resource Manager proxy resource. It will not // have tags and a location type ProxyResource struct { @@ -531,6 +561,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QuotaDimension information about a specific quota dimension. type QuotaDimension struct { // ID - Unique id of this dimension. @@ -561,6 +597,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuDescription information about a specific sku. type SkuDescription struct { // ID - Unique sku id. diff --git a/services/preview/redis/mgmt/2019-07-01-preview/redis/CHANGELOG.md b/services/preview/redis/mgmt/2019-07-01-preview/redis/CHANGELOG.md index 52911e4cc5e4..88ef55f81ac7 100644 --- a/services/preview/redis/mgmt/2019-07-01-preview/redis/CHANGELOG.md +++ b/services/preview/redis/mgmt/2019-07-01-preview/redis/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccessKeys.MarshalJSON() ([]byte, error) +1. ForceRebootResponse.MarshalJSON() ([]byte, error) +1. InstanceDetails.MarshalJSON() ([]byte, error) +1. LinkedServer.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/redis/mgmt/2019-07-01-preview/redis/_meta.json b/services/preview/redis/mgmt/2019-07-01-preview/redis/_meta.json index 1b88d160ed2e..5df1e50475e1 100644 --- a/services/preview/redis/mgmt/2019-07-01-preview/redis/_meta.json +++ b/services/preview/redis/mgmt/2019-07-01-preview/redis/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/redis/resource-manager/readme.md", "tag": "package-2019-07-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-07-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/redis/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-07-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/redis/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/redis/mgmt/2019-07-01-preview/redis/models.go b/services/preview/redis/mgmt/2019-07-01-preview/redis/models.go index 087b2efc8494..c726ad89fa48 100644 --- a/services/preview/redis/mgmt/2019-07-01-preview/redis/models.go +++ b/services/preview/redis/mgmt/2019-07-01-preview/redis/models.go @@ -29,6 +29,12 @@ type AccessKeys struct { SecondaryKey *string `json:"secondaryKey,omitempty"` } +// MarshalJSON is the custom marshaler for AccessKeys. +func (ak AccessKeys) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CheckNameAvailabilityParameters parameters body to pass for resource name availability check. type CheckNameAvailabilityParameters struct { // Name - Resource name. @@ -633,6 +639,12 @@ type ForceRebootResponse struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ForceRebootResponse. +func (frr ForceRebootResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImportDataFuture an abstraction for monitoring and retrieving the results of a long-running operation. type ImportDataFuture struct { azure.FutureAPI @@ -691,12 +703,24 @@ type InstanceDetails struct { IsMaster *bool `json:"isMaster,omitempty"` } +// MarshalJSON is the custom marshaler for InstanceDetails. +func (ID InstanceDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LinkedServer linked server Id type LinkedServer struct { // ID - READ-ONLY; Linked server Id. ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for LinkedServer. +func (ls LinkedServer) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LinkedServerCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type LinkedServerCreateFuture struct { @@ -1756,6 +1780,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RebootParameters specifies which Redis node(s) to reboot. type RebootParameters struct { // RebootType - Which Redis node(s) to reboot. Depending on this value data loss is possible. Possible values include: 'PrimaryNode', 'SecondaryNode', 'AllNodes' @@ -1782,6 +1812,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceType a single Redis item in List or Get Operation. type ResourceType struct { autorest.Response `json:"-"` diff --git a/services/preview/redisenterprise/mgmt/2020-10-01-preview/redisenterprise/CHANGELOG.md b/services/preview/redisenterprise/mgmt/2020-10-01-preview/redisenterprise/CHANGELOG.md index 52911e4cc5e4..54a0d70d0e0f 100644 --- a/services/preview/redisenterprise/mgmt/2020-10-01-preview/redisenterprise/CHANGELOG.md +++ b/services/preview/redisenterprise/mgmt/2020-10-01-preview/redisenterprise/CHANGELOG.md @@ -1,2 +1,15 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccessKeys.MarshalJSON() ([]byte, error) +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorDetail.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. PrivateEndpoint.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/redisenterprise/mgmt/2020-10-01-preview/redisenterprise/_meta.json b/services/preview/redisenterprise/mgmt/2020-10-01-preview/redisenterprise/_meta.json index 4eb07c0daa30..a78458323389 100644 --- a/services/preview/redisenterprise/mgmt/2020-10-01-preview/redisenterprise/_meta.json +++ b/services/preview/redisenterprise/mgmt/2020-10-01-preview/redisenterprise/_meta.json @@ -2,9 +2,9 @@ "commit": "b08824e05817297a4b2874d8db5e6fc8c29349c9", "readme": "/_/azure-rest-api-specs/specification/redisenterprise/resource-manager/readme.md", "tag": "package-2020-10-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-10-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/redisenterprise/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-10-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/redisenterprise/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/redisenterprise/mgmt/2020-10-01-preview/redisenterprise/models.go b/services/preview/redisenterprise/mgmt/2020-10-01-preview/redisenterprise/models.go index 8cd005000a75..78ece7230d99 100644 --- a/services/preview/redisenterprise/mgmt/2020-10-01-preview/redisenterprise/models.go +++ b/services/preview/redisenterprise/mgmt/2020-10-01-preview/redisenterprise/models.go @@ -28,6 +28,12 @@ type AccessKeys struct { SecondaryKey *string `json:"secondaryKey,omitempty"` } +// MarshalJSON is the custom marshaler for AccessKeys. +func (ak AccessKeys) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureEntityResource the resource model definition for an Azure Resource Manager resource with an etag. type AzureEntityResource struct { // Etag - READ-ONLY; Resource Etag. @@ -40,6 +46,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Cluster describes the RedisEnterprise cluster type Cluster struct { autorest.Response `json:"-"` @@ -1076,6 +1088,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetail the error detail. type ErrorDetail struct { // Code - READ-ONLY; The error code. @@ -1090,6 +1108,12 @@ type ErrorDetail struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetail. +func (ed ErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.). type ErrorResponse struct { @@ -1166,6 +1190,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult a list of REST API operations supported by an Azure Resource Provider. It contains // an URL link to get the next set of results. type OperationListResult struct { @@ -1176,6 +1206,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -1349,6 +1385,12 @@ type PrivateEndpoint struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpoint. +func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection the Private Endpoint Connection resource. type PrivateEndpointConnection struct { autorest.Response `json:"-"` @@ -1603,6 +1645,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegenerateKeyParameters specifies which access keys to reset to a new random value. type RegenerateKeyParameters struct { // KeyType - Which access key to regenerate. Possible values include: 'Primary', 'Secondary' @@ -1619,6 +1667,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Sku SKU parameters supplied to the create RedisEnterprise operation. type Sku struct { // Name - The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.). Possible values include: 'EnterpriseE10', 'EnterpriseE20', 'EnterpriseE50', 'EnterpriseE100', 'EnterpriseFlashF300', 'EnterpriseFlashF700', 'EnterpriseFlashF1500' diff --git a/services/preview/reservations/mgmt/2018-06-01/reservations/CHANGELOG.md b/services/preview/reservations/mgmt/2018-06-01/reservations/CHANGELOG.md index 52911e4cc5e4..e92ff0480638 100644 --- a/services/preview/reservations/mgmt/2018-06-01/reservations/CHANGELOG.md +++ b/services/preview/reservations/mgmt/2018-06-01/reservations/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. Catalog.MarshalJSON() ([]byte, error) diff --git a/services/preview/reservations/mgmt/2018-06-01/reservations/_meta.json b/services/preview/reservations/mgmt/2018-06-01/reservations/_meta.json index 5900396b8611..911e95ecfce3 100644 --- a/services/preview/reservations/mgmt/2018-06-01/reservations/_meta.json +++ b/services/preview/reservations/mgmt/2018-06-01/reservations/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/reservations/resource-manager/readme.md", "tag": "package-2018-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/reservations/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/reservations/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/reservations/mgmt/2018-06-01/reservations/models.go b/services/preview/reservations/mgmt/2018-06-01/reservations/models.go index e638d6e219d2..27d9c8b8312f 100644 --- a/services/preview/reservations/mgmt/2018-06-01/reservations/models.go +++ b/services/preview/reservations/mgmt/2018-06-01/reservations/models.go @@ -120,6 +120,12 @@ type Catalog struct { Restrictions *[]SkuRestriction `json:"restrictions,omitempty"` } +// MarshalJSON is the custom marshaler for Catalog. +func (c Catalog) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Error ... type Error struct { Error *ExtendedErrorInfo `json:"error,omitempty"` diff --git a/services/preview/reservations/mgmt/2019-04-01/reservations/_meta.json b/services/preview/reservations/mgmt/2019-04-01/reservations/_meta.json index 0b18e5e03e73..b4a67267aff6 100644 --- a/services/preview/reservations/mgmt/2019-04-01/reservations/_meta.json +++ b/services/preview/reservations/mgmt/2019-04-01/reservations/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/reservations/resource-manager/readme.md", "tag": "package-preview-2019-04", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-preview-2019-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/reservations/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-preview-2019-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/reservations/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/reservations/mgmt/2019-07-19-preview/reservations/CHANGELOG.md b/services/preview/reservations/mgmt/2019-07-19-preview/reservations/CHANGELOG.md index 52911e4cc5e4..2fd3db87541e 100644 --- a/services/preview/reservations/mgmt/2019-07-19-preview/reservations/CHANGELOG.md +++ b/services/preview/reservations/mgmt/2019-07-19-preview/reservations/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. QuotaRequestStatusDetails.MarshalJSON() ([]byte, error) +1. ServiceErrorDetail.MarshalJSON() ([]byte, error) diff --git a/services/preview/reservations/mgmt/2019-07-19-preview/reservations/_meta.json b/services/preview/reservations/mgmt/2019-07-19-preview/reservations/_meta.json index 66a8528b468d..a3837d18911d 100644 --- a/services/preview/reservations/mgmt/2019-07-19-preview/reservations/_meta.json +++ b/services/preview/reservations/mgmt/2019-07-19-preview/reservations/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/reservations/resource-manager/readme.md", "tag": "package-preview-2019-07-19", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-preview-2019-07-19 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/reservations/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-preview-2019-07-19 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/reservations/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/reservations/mgmt/2019-07-19-preview/reservations/models.go b/services/preview/reservations/mgmt/2019-07-19-preview/reservations/models.go index 40391c19a0da..0d984fe67c4c 100644 --- a/services/preview/reservations/mgmt/2019-07-19-preview/reservations/models.go +++ b/services/preview/reservations/mgmt/2019-07-19-preview/reservations/models.go @@ -2040,6 +2040,12 @@ type QuotaRequestStatusDetails struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for QuotaRequestStatusDetails. +func (qrsd QuotaRequestStatusDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QuotaRequestSubmitResponse quota submit request response type QuotaRequestSubmitResponse struct { // ID - READ-ONLY; The quota request Id. @@ -2412,6 +2418,12 @@ type ServiceErrorDetail struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceErrorDetail. +func (sed ServiceErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SetObject ... type SetObject struct { autorest.Response `json:"-"` diff --git a/services/preview/reservations/mgmt/2020-10-25/reservations/CHANGELOG.md b/services/preview/reservations/mgmt/2020-10-25/reservations/CHANGELOG.md index 52911e4cc5e4..2fd3db87541e 100644 --- a/services/preview/reservations/mgmt/2020-10-25/reservations/CHANGELOG.md +++ b/services/preview/reservations/mgmt/2020-10-25/reservations/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. QuotaRequestStatusDetails.MarshalJSON() ([]byte, error) +1. ServiceErrorDetail.MarshalJSON() ([]byte, error) diff --git a/services/preview/reservations/mgmt/2020-10-25/reservations/_meta.json b/services/preview/reservations/mgmt/2020-10-25/reservations/_meta.json index b00ac18657e3..5fc305024de2 100644 --- a/services/preview/reservations/mgmt/2020-10-25/reservations/_meta.json +++ b/services/preview/reservations/mgmt/2020-10-25/reservations/_meta.json @@ -2,9 +2,9 @@ "commit": "12b41f4c0ff9814429a6dcfc4a72d5f9d52d1f62", "readme": "/_/azure-rest-api-specs/specification/reservations/resource-manager/readme.md", "tag": "package-2020-10-25", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-10-25 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/reservations/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-10-25 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/reservations/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/reservations/mgmt/2020-10-25/reservations/models.go b/services/preview/reservations/mgmt/2020-10-25/reservations/models.go index fa75e0d78bb7..96ac35ceb068 100644 --- a/services/preview/reservations/mgmt/2020-10-25/reservations/models.go +++ b/services/preview/reservations/mgmt/2020-10-25/reservations/models.go @@ -2112,6 +2112,12 @@ type QuotaRequestStatusDetails struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for QuotaRequestStatusDetails. +func (qrsd QuotaRequestStatusDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QuotaRequestSubmitResponse response for the quota submission request. type QuotaRequestSubmitResponse struct { // ID - READ-ONLY; The quota request ID. @@ -2484,6 +2490,12 @@ type ServiceErrorDetail struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceErrorDetail. +func (sed ServiceErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SetObject ... type SetObject struct { autorest.Response `json:"-"` diff --git a/services/preview/resourcegraph/mgmt/2018-09-01/resourcegraph/_meta.json b/services/preview/resourcegraph/mgmt/2018-09-01/resourcegraph/_meta.json index d846a3e9cdb0..b231ef3e5d8c 100644 --- a/services/preview/resourcegraph/mgmt/2018-09-01/resourcegraph/_meta.json +++ b/services/preview/resourcegraph/mgmt/2018-09-01/resourcegraph/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/resourcegraph/resource-manager/readme.md", "tag": "package-2018-09-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-09-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resourcegraph/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-09-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resourcegraph/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/resourcegraph/mgmt/2021-03-01-preview/resourcegraph/CHANGELOG.md b/services/preview/resourcegraph/mgmt/2021-03-01-preview/resourcegraph/CHANGELOG.md index 52911e4cc5e4..2d3d11fee25c 100644 --- a/services/preview/resourcegraph/mgmt/2021-03-01-preview/resourcegraph/CHANGELOG.md +++ b/services/preview/resourcegraph/mgmt/2021-03-01-preview/resourcegraph/CHANGELOG.md @@ -1,2 +1,17 @@ # Change History +## Breaking Changes + +### Removed Constants + +1. ResultType.ResultTypeResultTypeFacet +1. ResultType.ResultTypeResultTypeFacetError +1. ResultType.ResultTypeResultTypeFacetResult + +## Additive Changes + +### New Constants + +1. ResultType.ResultTypeFacet +1. ResultType.ResultTypeFacetError +1. ResultType.ResultTypeFacetResult diff --git a/services/preview/resourcegraph/mgmt/2021-03-01-preview/resourcegraph/_meta.json b/services/preview/resourcegraph/mgmt/2021-03-01-preview/resourcegraph/_meta.json index 31a0d50e07bb..600aa1bee0a2 100644 --- a/services/preview/resourcegraph/mgmt/2021-03-01-preview/resourcegraph/_meta.json +++ b/services/preview/resourcegraph/mgmt/2021-03-01-preview/resourcegraph/_meta.json @@ -2,9 +2,9 @@ "commit": "c2ea3a3ccd14293b4bd1d17e684ef9129f0dc604", "readme": "/_/azure-rest-api-specs/specification/resourcegraph/resource-manager/readme.md", "tag": "package-preview-2021-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-preview-2021-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/resourcegraph/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-preview-2021-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/resourcegraph/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix" } diff --git a/services/preview/resourcegraph/mgmt/2021-03-01-preview/resourcegraph/enums.go b/services/preview/resourcegraph/mgmt/2021-03-01-preview/resourcegraph/enums.go index 29b7e03be7be..37c64cea4a0a 100644 --- a/services/preview/resourcegraph/mgmt/2021-03-01-preview/resourcegraph/enums.go +++ b/services/preview/resourcegraph/mgmt/2021-03-01-preview/resourcegraph/enums.go @@ -140,15 +140,15 @@ func PossibleResultTruncatedValues() []ResultTruncated { type ResultType string const ( - // ResultTypeResultTypeFacet ... - ResultTypeResultTypeFacet ResultType = "Facet" - // ResultTypeResultTypeFacetError ... - ResultTypeResultTypeFacetError ResultType = "FacetError" - // ResultTypeResultTypeFacetResult ... - ResultTypeResultTypeFacetResult ResultType = "FacetResult" + // ResultTypeFacet ... + ResultTypeFacet ResultType = "Facet" + // ResultTypeFacetError ... + ResultTypeFacetError ResultType = "FacetError" + // ResultTypeFacetResult ... + ResultTypeFacetResult ResultType = "FacetResult" ) // PossibleResultTypeValues returns an array of possible values for the ResultType const type. func PossibleResultTypeValues() []ResultType { - return []ResultType{ResultTypeResultTypeFacet, ResultTypeResultTypeFacetError, ResultTypeResultTypeFacetResult} + return []ResultType{ResultTypeFacet, ResultTypeFacetError, ResultTypeFacetResult} } diff --git a/services/preview/resourcegraph/mgmt/2021-03-01-preview/resourcegraph/models.go b/services/preview/resourcegraph/mgmt/2021-03-01-preview/resourcegraph/models.go index fa7d12b6c82f..9becc67c0c8b 100644 --- a/services/preview/resourcegraph/mgmt/2021-03-01-preview/resourcegraph/models.go +++ b/services/preview/resourcegraph/mgmt/2021-03-01-preview/resourcegraph/models.go @@ -131,7 +131,7 @@ type BasicFacet interface { type Facet struct { // Expression - Facet expression, same as in the corresponding facet request. Expression *string `json:"expression,omitempty"` - // ResultType - Possible values include: 'ResultTypeResultTypeFacet', 'ResultTypeResultTypeFacetResult', 'ResultTypeResultTypeFacetError' + // ResultType - Possible values include: 'ResultTypeFacet', 'ResultTypeFacetResult', 'ResultTypeFacetError' ResultType ResultType `json:"resultType,omitempty"` } @@ -143,11 +143,11 @@ func unmarshalBasicFacet(body []byte) (BasicFacet, error) { } switch m["resultType"] { - case string(ResultTypeResultTypeFacetResult): + case string(ResultTypeFacetResult): var fr FacetResult err := json.Unmarshal(body, &fr) return fr, err - case string(ResultTypeResultTypeFacetError): + case string(ResultTypeFacetError): var fe FacetError err := json.Unmarshal(body, &fe) return fe, err @@ -178,7 +178,7 @@ func unmarshalBasicFacetArray(body []byte) ([]BasicFacet, error) { // MarshalJSON is the custom marshaler for Facet. func (f Facet) MarshalJSON() ([]byte, error) { - f.ResultType = ResultTypeResultTypeFacet + f.ResultType = ResultTypeFacet objectMap := make(map[string]interface{}) if f.Expression != nil { objectMap["expression"] = f.Expression @@ -215,13 +215,13 @@ type FacetError struct { Errors *[]ErrorDetails `json:"errors,omitempty"` // Expression - Facet expression, same as in the corresponding facet request. Expression *string `json:"expression,omitempty"` - // ResultType - Possible values include: 'ResultTypeResultTypeFacet', 'ResultTypeResultTypeFacetResult', 'ResultTypeResultTypeFacetError' + // ResultType - Possible values include: 'ResultTypeFacet', 'ResultTypeFacetResult', 'ResultTypeFacetError' ResultType ResultType `json:"resultType,omitempty"` } // MarshalJSON is the custom marshaler for FacetError. func (fe FacetError) MarshalJSON() ([]byte, error) { - fe.ResultType = ResultTypeResultTypeFacetError + fe.ResultType = ResultTypeFacetError objectMap := make(map[string]interface{}) if fe.Errors != nil { objectMap["errors"] = fe.Errors @@ -285,13 +285,13 @@ type FacetResult struct { Data interface{} `json:"data,omitempty"` // Expression - Facet expression, same as in the corresponding facet request. Expression *string `json:"expression,omitempty"` - // ResultType - Possible values include: 'ResultTypeResultTypeFacet', 'ResultTypeResultTypeFacetResult', 'ResultTypeResultTypeFacetError' + // ResultType - Possible values include: 'ResultTypeFacet', 'ResultTypeFacetResult', 'ResultTypeFacetError' ResultType ResultType `json:"resultType,omitempty"` } // MarshalJSON is the custom marshaler for FacetResult. func (fr FacetResult) MarshalJSON() ([]byte, error) { - fr.ResultType = ResultTypeResultTypeFacetResult + fr.ResultType = ResultTypeFacetResult objectMap := make(map[string]interface{}) if fr.TotalRecords != nil { objectMap["totalRecords"] = fr.TotalRecords diff --git a/services/preview/resourcemover/mgmt/2019-10-01-preview/resourcemover/CHANGELOG.md b/services/preview/resourcemover/mgmt/2019-10-01-preview/resourcemover/CHANGELOG.md index 52911e4cc5e4..56e0aa29fbd5 100644 --- a/services/preview/resourcemover/mgmt/2019-10-01-preview/resourcemover/CHANGELOG.md +++ b/services/preview/resourcemover/mgmt/2019-10-01-preview/resourcemover/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. AffectedMoveResource.MarshalJSON() ([]byte, error) +1. MoveErrorInfo.MarshalJSON() ([]byte, error) +1. MoveResourceErrorBody.MarshalJSON() ([]byte, error) +1. OperationErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. OperationStatus.MarshalJSON() ([]byte, error) +1. OperationStatusError.MarshalJSON() ([]byte, error) diff --git a/services/preview/resourcemover/mgmt/2019-10-01-preview/resourcemover/_meta.json b/services/preview/resourcemover/mgmt/2019-10-01-preview/resourcemover/_meta.json index 5db71bf130fa..9d6fab7428bd 100644 --- a/services/preview/resourcemover/mgmt/2019-10-01-preview/resourcemover/_meta.json +++ b/services/preview/resourcemover/mgmt/2019-10-01-preview/resourcemover/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/resourcemover/resource-manager/readme.md", "tag": "package-2019-10-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-10-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resourcemover/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-10-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resourcemover/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/resourcemover/mgmt/2019-10-01-preview/resourcemover/models.go b/services/preview/resourcemover/mgmt/2019-10-01-preview/resourcemover/models.go index 27a456ee56f0..b017eacafade 100644 --- a/services/preview/resourcemover/mgmt/2019-10-01-preview/resourcemover/models.go +++ b/services/preview/resourcemover/mgmt/2019-10-01-preview/resourcemover/models.go @@ -29,6 +29,12 @@ type AffectedMoveResource struct { MoveResources *[]AffectedMoveResource `json:"moveResources,omitempty"` } +// MarshalJSON is the custom marshaler for AffectedMoveResource. +func (amr AffectedMoveResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AutomaticResolutionProperties defines the properties for automatic resolution. type AutomaticResolutionProperties struct { // MoveResourceID - Gets the MoveResource ARM ID of @@ -915,6 +921,12 @@ type MoveErrorInfo struct { MoveResources *[]AffectedMoveResource `json:"moveResources,omitempty"` } +// MarshalJSON is the custom marshaler for MoveErrorInfo. +func (mei MoveErrorInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MoveResource defines the move resource. type MoveResource struct { autorest.Response `json:"-"` @@ -1140,6 +1152,12 @@ type MoveResourceErrorBody struct { Details *[]MoveResourceErrorBody `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for MoveResourceErrorBody. +func (mreb MoveResourceErrorBody) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MoveResourceFilter move resource filter. type MoveResourceFilter struct { Properties *MoveResourceFilterProperties `json:"properties,omitempty"` @@ -1684,6 +1702,12 @@ type OperationErrorAdditionalInfo struct { Info *MoveErrorInfo `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for OperationErrorAdditionalInfo. +func (oeai OperationErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationsDiscovery operations discovery class. type OperationsDiscovery struct { // Name - Gets or sets Name of the API. @@ -1748,6 +1772,12 @@ type OperationStatus struct { Properties interface{} `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for OperationStatus. +func (osVar OperationStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationStatusError class for operation status errors. type OperationStatusError struct { // Code - READ-ONLY; The error code. @@ -1760,6 +1790,12 @@ type OperationStatusError struct { AdditionalInfo *[]OperationErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for OperationStatusError. +func (ose OperationStatusError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrepareRequest defines the request body for initiate prepare operation. type PrepareRequest struct { // ValidateOnly - Gets or sets a value indicating whether the operation needs to only run pre-requisite. diff --git a/services/preview/resources/mgmt/2015-10-01-preview/policy/_meta.json b/services/preview/resources/mgmt/2015-10-01-preview/policy/_meta.json index 7885cd07b950..ecf377217244 100644 --- a/services/preview/resources/mgmt/2015-10-01-preview/policy/_meta.json +++ b/services/preview/resources/mgmt/2015-10-01-preview/policy/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "tag": "package-policy-2015-10", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-policy-2015-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-policy-2015-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/resources/mgmt/2016-09-01-preview/managedapplications/_meta.json b/services/preview/resources/mgmt/2016-09-01-preview/managedapplications/_meta.json index 7a984370bd66..475cb13814b0 100644 --- a/services/preview/resources/mgmt/2016-09-01-preview/managedapplications/_meta.json +++ b/services/preview/resources/mgmt/2016-09-01-preview/managedapplications/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "tag": "package-managedapplications-2016-09", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-managedapplications-2016-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-managedapplications-2016-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/resources/mgmt/2017-06-01-preview/policy/_meta.json b/services/preview/resources/mgmt/2017-06-01-preview/policy/_meta.json index 1d7b66ad3073..07e5e5e24561 100644 --- a/services/preview/resources/mgmt/2017-06-01-preview/policy/_meta.json +++ b/services/preview/resources/mgmt/2017-06-01-preview/policy/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "tag": "package-policy-2017-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-policy-2017-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-policy-2017-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/resources/mgmt/2017-08-31-preview/managementgroups/CHANGELOG.md b/services/preview/resources/mgmt/2017-08-31-preview/managementgroups/CHANGELOG.md index 52911e4cc5e4..fa72975a9186 100644 --- a/services/preview/resources/mgmt/2017-08-31-preview/managementgroups/CHANGELOG.md +++ b/services/preview/resources/mgmt/2017-08-31-preview/managementgroups/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) diff --git a/services/preview/resources/mgmt/2017-08-31-preview/managementgroups/_meta.json b/services/preview/resources/mgmt/2017-08-31-preview/managementgroups/_meta.json index 13018fd934f7..b67ceb258027 100644 --- a/services/preview/resources/mgmt/2017-08-31-preview/managementgroups/_meta.json +++ b/services/preview/resources/mgmt/2017-08-31-preview/managementgroups/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/managementgroups/resource-manager/readme.md", "tag": "package-2017-08", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/managementgroups/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/managementgroups/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/resources/mgmt/2017-08-31-preview/managementgroups/models.go b/services/preview/resources/mgmt/2017-08-31-preview/managementgroups/models.go index 2fc521cddcdf..98b55d6a25ac 100644 --- a/services/preview/resources/mgmt/2017-08-31-preview/managementgroups/models.go +++ b/services/preview/resources/mgmt/2017-08-31-preview/managementgroups/models.go @@ -405,6 +405,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result listing operations. It contains a list of operations and a URL link to get // the next set of results. type OperationListResult struct { @@ -415,6 +421,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int diff --git a/services/preview/resources/mgmt/2017-11-01-preview/managementgroups/CHANGELOG.md b/services/preview/resources/mgmt/2017-11-01-preview/managementgroups/CHANGELOG.md index 52911e4cc5e4..fa72975a9186 100644 --- a/services/preview/resources/mgmt/2017-11-01-preview/managementgroups/CHANGELOG.md +++ b/services/preview/resources/mgmt/2017-11-01-preview/managementgroups/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) diff --git a/services/preview/resources/mgmt/2017-11-01-preview/managementgroups/_meta.json b/services/preview/resources/mgmt/2017-11-01-preview/managementgroups/_meta.json index b41352ef516b..6ade3c0f2b03 100644 --- a/services/preview/resources/mgmt/2017-11-01-preview/managementgroups/_meta.json +++ b/services/preview/resources/mgmt/2017-11-01-preview/managementgroups/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/managementgroups/resource-manager/readme.md", "tag": "package-2017-11", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/managementgroups/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/managementgroups/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/resources/mgmt/2017-11-01-preview/managementgroups/models.go b/services/preview/resources/mgmt/2017-11-01-preview/managementgroups/models.go index 39137886343b..af0d348a824b 100644 --- a/services/preview/resources/mgmt/2017-11-01-preview/managementgroups/models.go +++ b/services/preview/resources/mgmt/2017-11-01-preview/managementgroups/models.go @@ -411,6 +411,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult describes the result of the request to list Microsoft.Management operations. type OperationListResult struct { autorest.Response `json:"-"` @@ -420,6 +426,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int diff --git a/services/preview/resources/mgmt/2018-01-01-preview/managementgroups/CHANGELOG.md b/services/preview/resources/mgmt/2018-01-01-preview/managementgroups/CHANGELOG.md index 52911e4cc5e4..27340b4b0b0b 100644 --- a/services/preview/resources/mgmt/2018-01-01-preview/managementgroups/CHANGELOG.md +++ b/services/preview/resources/mgmt/2018-01-01-preview/managementgroups/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) +1. CreateManagementGroupChildInfo.MarshalJSON() ([]byte, error) +1. OperationDisplayProperties.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) diff --git a/services/preview/resources/mgmt/2018-01-01-preview/managementgroups/_meta.json b/services/preview/resources/mgmt/2018-01-01-preview/managementgroups/_meta.json index 602a19bbc9e8..a6e67ed95a86 100644 --- a/services/preview/resources/mgmt/2018-01-01-preview/managementgroups/_meta.json +++ b/services/preview/resources/mgmt/2018-01-01-preview/managementgroups/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/managementgroups/resource-manager/readme.md", "tag": "package-2018-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/managementgroups/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/managementgroups/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/resources/mgmt/2018-01-01-preview/managementgroups/models.go b/services/preview/resources/mgmt/2018-01-01-preview/managementgroups/models.go index 778ef33dfed8..bc57061919bd 100644 --- a/services/preview/resources/mgmt/2018-01-01-preview/managementgroups/models.go +++ b/services/preview/resources/mgmt/2018-01-01-preview/managementgroups/models.go @@ -40,6 +40,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ChildInfo the child information of a management group. type ChildInfo struct { // Type - The fully qualified resource type which includes provider namespace (e.g. /providers/Microsoft.Management/managementGroups). Possible values include: 'Type1ProvidersMicrosoftManagementmanagementGroups', 'Type1Subscriptions' @@ -72,6 +78,12 @@ type CreateManagementGroupChildInfo struct { Children *[]CreateManagementGroupChildInfo `json:"children,omitempty"` } +// MarshalJSON is the custom marshaler for CreateManagementGroupChildInfo. +func (cmgci CreateManagementGroupChildInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CreateManagementGroupDetails the details of a management group used during creation. type CreateManagementGroupDetails struct { // Version - READ-ONLY; The version number of the object. @@ -1005,6 +1017,12 @@ type OperationDisplayProperties struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplayProperties. +func (odp OperationDisplayProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult describes the result of the request to list Microsoft.Management operations. type OperationListResult struct { autorest.Response `json:"-"` @@ -1014,6 +1032,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int diff --git a/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/CHANGELOG.md b/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/CHANGELOG.md index 52911e4cc5e4..db8e13c6c9e7 100644 --- a/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/CHANGELOG.md +++ b/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) +1. CreateManagementGroupChildInfo.MarshalJSON() ([]byte, error) +1. OperationDisplayProperties.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. TenantBackfillStatusResult.MarshalJSON() ([]byte, error) diff --git a/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/_meta.json b/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/_meta.json index e898bf05c95f..7f9e13faa0cc 100644 --- a/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/_meta.json +++ b/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/managementgroups/resource-manager/readme.md", "tag": "package-2018-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/managementgroups/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/managementgroups/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/models.go b/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/models.go index 21839d3e2a57..7302b1699ced 100644 --- a/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/models.go +++ b/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/models.go @@ -40,6 +40,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ChildInfo the child information of a management group. type ChildInfo struct { // Type - The fully qualified resource type which includes provider namespace (e.g. /providers/Microsoft.Management/managementGroups). Possible values include: 'Type1ProvidersMicrosoftManagementmanagementGroups', 'Type1Subscriptions' @@ -72,6 +78,12 @@ type CreateManagementGroupChildInfo struct { Children *[]CreateManagementGroupChildInfo `json:"children,omitempty"` } +// MarshalJSON is the custom marshaler for CreateManagementGroupChildInfo. +func (cmgci CreateManagementGroupChildInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CreateManagementGroupDetails the details of a management group used during creation. type CreateManagementGroupDetails struct { // Version - READ-ONLY; The version number of the object. @@ -1270,6 +1282,12 @@ type OperationDisplayProperties struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplayProperties. +func (odp OperationDisplayProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult describes the result of the request to list Microsoft.Management operations. type OperationListResult struct { autorest.Response `json:"-"` @@ -1279,6 +1297,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -1552,3 +1576,9 @@ type TenantBackfillStatusResult struct { // Status - READ-ONLY; The status of the Tenant Backfill. Possible values include: 'NotStarted', 'NotStartedButGroupsExist', 'Started', 'Failed', 'Cancelled', 'Completed' Status Status `json:"status,omitempty"` } + +// MarshalJSON is the custom marshaler for TenantBackfillStatusResult. +func (tbsr TenantBackfillStatusResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/preview/resources/mgmt/2019-06-01-preview/templatespecs/CHANGELOG.md b/services/preview/resources/mgmt/2019-06-01-preview/templatespecs/CHANGELOG.md index 52911e4cc5e4..4edd964064fa 100644 --- a/services/preview/resources/mgmt/2019-06-01-preview/templatespecs/CHANGELOG.md +++ b/services/preview/resources/mgmt/2019-06-01-preview/templatespecs/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureResourceBase.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. VersionInfo.MarshalJSON() ([]byte, error) diff --git a/services/preview/resources/mgmt/2019-06-01-preview/templatespecs/_meta.json b/services/preview/resources/mgmt/2019-06-01-preview/templatespecs/_meta.json index 1666e3b451ef..5301406c9788 100644 --- a/services/preview/resources/mgmt/2019-06-01-preview/templatespecs/_meta.json +++ b/services/preview/resources/mgmt/2019-06-01-preview/templatespecs/_meta.json @@ -2,9 +2,9 @@ "commit": "b08824e05817297a4b2874d8db5e6fc8c29349c9", "readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "tag": "package-templatespecs-2019-06-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-templatespecs-2019-06-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-templatespecs-2019-06-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/resources/mgmt/2019-06-01-preview/templatespecs/models.go b/services/preview/resources/mgmt/2019-06-01-preview/templatespecs/models.go index 5cf2a00cb319..7c58d7d02004 100644 --- a/services/preview/resources/mgmt/2019-06-01-preview/templatespecs/models.go +++ b/services/preview/resources/mgmt/2019-06-01-preview/templatespecs/models.go @@ -110,6 +110,12 @@ type AzureResourceBase struct { SystemData *SystemData `json:"systemData,omitempty"` } +// MarshalJSON is the custom marshaler for AzureResourceBase. +func (arb AzureResourceBase) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Error template Specs error response. type Error struct { Error *ErrorResponse `json:"error,omitempty"` @@ -123,6 +129,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.) type ErrorResponse struct { @@ -138,6 +150,12 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListResult list of Template Specs. type ListResult struct { autorest.Response `json:"-"` @@ -531,6 +549,12 @@ type VersionInfo struct { TimeModified *date.Time `json:"timeModified,omitempty"` } +// MarshalJSON is the custom marshaler for VersionInfo. +func (vi VersionInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VersionProperties template Spec Version properties. type VersionProperties struct { // Artifacts - An array of Template Spec artifacts. diff --git a/services/preview/resources/mgmt/2020-03-01-preview/policy/CHANGELOG.md b/services/preview/resources/mgmt/2020-03-01-preview/policy/CHANGELOG.md index 52911e4cc5e4..c65d1d4a4010 100644 --- a/services/preview/resources/mgmt/2020-03-01-preview/policy/CHANGELOG.md +++ b/services/preview/resources/mgmt/2020-03-01-preview/policy/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorDetail.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/resources/mgmt/2020-03-01-preview/policy/_meta.json b/services/preview/resources/mgmt/2020-03-01-preview/policy/_meta.json index e995a8c6b007..bd4651f73668 100644 --- a/services/preview/resources/mgmt/2020-03-01-preview/policy/_meta.json +++ b/services/preview/resources/mgmt/2020-03-01-preview/policy/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "tag": "package-policy-2020-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-policy-2020-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-policy-2020-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/resources/mgmt/2020-03-01-preview/policy/models.go b/services/preview/resources/mgmt/2020-03-01-preview/policy/models.go index 17c2ead9d035..a63b42d8fd07 100644 --- a/services/preview/resources/mgmt/2020-03-01-preview/policy/models.go +++ b/services/preview/resources/mgmt/2020-03-01-preview/policy/models.go @@ -355,6 +355,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError common error response for all Azure Resource Manager APIs to return error details for failed // operations. (This also follows the OData error response format.). type CloudError struct { @@ -691,6 +697,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetail the error detail. type ErrorDetail struct { // Code - READ-ONLY; The error code. @@ -705,6 +717,12 @@ type ErrorDetail struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetail. +func (ed ErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Exemption the policy exemption. type Exemption struct { autorest.Response `json:"-"` @@ -1093,6 +1111,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -1103,6 +1127,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SetDefinition the policy set definition. type SetDefinition struct { autorest.Response `json:"-"` diff --git a/services/preview/resources/mgmt/2020-09-01-preview/policy/CHANGELOG.md b/services/preview/resources/mgmt/2020-09-01-preview/policy/CHANGELOG.md index 52911e4cc5e4..785fc1e05519 100644 --- a/services/preview/resources/mgmt/2020-09-01-preview/policy/CHANGELOG.md +++ b/services/preview/resources/mgmt/2020-09-01-preview/policy/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. AliasPathMetadata.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) diff --git a/services/preview/resources/mgmt/2020-09-01-preview/policy/_meta.json b/services/preview/resources/mgmt/2020-09-01-preview/policy/_meta.json index 7f2a08009786..7fe641678045 100644 --- a/services/preview/resources/mgmt/2020-09-01-preview/policy/_meta.json +++ b/services/preview/resources/mgmt/2020-09-01-preview/policy/_meta.json @@ -2,9 +2,9 @@ "commit": "225e4a77704766b9b6529c40c2677b22b58da9b9", "readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "tag": "package-policy-2020-09", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-policy-2020-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-policy-2020-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix" } diff --git a/services/preview/resources/mgmt/2020-09-01-preview/policy/models.go b/services/preview/resources/mgmt/2020-09-01-preview/policy/models.go index 344f2c588bae..52d0aa63f323 100644 --- a/services/preview/resources/mgmt/2020-09-01-preview/policy/models.go +++ b/services/preview/resources/mgmt/2020-09-01-preview/policy/models.go @@ -91,6 +91,12 @@ type AliasPathMetadata struct { Attributes AliasPathAttributes `json:"attributes,omitempty"` } +// MarshalJSON is the custom marshaler for AliasPathMetadata. +func (apm AliasPathMetadata) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AliasPattern the type of the pattern for an alias path. type AliasPattern struct { // Phrase - The alias pattern phrase. @@ -1130,6 +1136,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.) type ErrorResponse struct { @@ -1145,6 +1157,12 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Exemption the policy exemption. type Exemption struct { autorest.Response `json:"-"` diff --git a/services/preview/scheduler/mgmt/2014-08-01-preview/scheduler/CHANGELOG.md b/services/preview/scheduler/mgmt/2014-08-01-preview/scheduler/CHANGELOG.md index 52911e4cc5e4..4bb82b198781 100644 --- a/services/preview/scheduler/mgmt/2014-08-01-preview/scheduler/CHANGELOG.md +++ b/services/preview/scheduler/mgmt/2014-08-01-preview/scheduler/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. JobHistoryDefinition.MarshalJSON() ([]byte, error) +1. JobHistoryDefinitionProperties.MarshalJSON() ([]byte, error) +1. JobStatus.MarshalJSON() ([]byte, error) diff --git a/services/preview/scheduler/mgmt/2014-08-01-preview/scheduler/_meta.json b/services/preview/scheduler/mgmt/2014-08-01-preview/scheduler/_meta.json index 903d090a85f4..aa469cd64219 100644 --- a/services/preview/scheduler/mgmt/2014-08-01-preview/scheduler/_meta.json +++ b/services/preview/scheduler/mgmt/2014-08-01-preview/scheduler/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/scheduler/resource-manager/readme.md", "tag": "package-2014-08-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2014-08-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/scheduler/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2014-08-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/scheduler/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/scheduler/mgmt/2014-08-01-preview/scheduler/models.go b/services/preview/scheduler/mgmt/2014-08-01-preview/scheduler/models.go index 7a2db32f00e9..e260d1443505 100644 --- a/services/preview/scheduler/mgmt/2014-08-01-preview/scheduler/models.go +++ b/services/preview/scheduler/mgmt/2014-08-01-preview/scheduler/models.go @@ -377,6 +377,12 @@ type JobHistoryDefinition struct { Properties *JobHistoryDefinitionProperties `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for JobHistoryDefinition. +func (jhd JobHistoryDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobHistoryDefinitionProperties ... type JobHistoryDefinitionProperties struct { // StartTime - READ-ONLY; Gets the start time for this job. @@ -397,6 +403,12 @@ type JobHistoryDefinitionProperties struct { RepeatCount *int32 `json:"repeatCount,omitempty"` } +// MarshalJSON is the custom marshaler for JobHistoryDefinitionProperties. +func (jhdp JobHistoryDefinitionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobHistoryFilter ... type JobHistoryFilter struct { // Status - Gets or sets the job execution status. Possible values include: 'Completed', 'Failed', 'Postponed' @@ -816,6 +828,12 @@ type JobStatus struct { NextExecutionTime *date.Time `json:"nextExecutionTime,omitempty"` } +// MarshalJSON is the custom marshaler for JobStatus. +func (js JobStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OAuthAuthentication ... type OAuthAuthentication struct { // Secret - Gets or sets the secret. diff --git a/services/preview/security/mgmt/v1.0/security/CHANGELOG.md b/services/preview/security/mgmt/v1.0/security/CHANGELOG.md index 52911e4cc5e4..43af44a736b2 100644 --- a/services/preview/security/mgmt/v1.0/security/CHANGELOG.md +++ b/services/preview/security/mgmt/v1.0/security/CHANGELOG.md @@ -1,2 +1,37 @@ # Change History +## Additive Changes + +### New Funcs + +1. AlertConfidenceReason.MarshalJSON() ([]byte, error) +1. AllowedConnectionsList.MarshalJSON() ([]byte, error) +1. AllowedConnectionsResourceProperties.MarshalJSON() ([]byte, error) +1. AscLocationList.MarshalJSON() ([]byte, error) +1. AzureResourceLink.MarshalJSON() ([]byte, error) +1. CVE.MarshalJSON() ([]byte, error) +1. CVSS.MarshalJSON() ([]byte, error) +1. CloudErrorBody.MarshalJSON() ([]byte, error) +1. ComplianceProperties.MarshalJSON() ([]byte, error) +1. ComplianceSegment.MarshalJSON() ([]byte, error) +1. ConnectableResource.MarshalJSON() ([]byte, error) +1. ConnectedResource.MarshalJSON() ([]byte, error) +1. ContactList.MarshalJSON() ([]byte, error) +1. Location.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ScoreDetails.MarshalJSON() ([]byte, error) +1. SecureScoreControlDefinitionItemProperties.MarshalJSON() ([]byte, error) +1. SecureScoreControlDefinitionList.MarshalJSON() ([]byte, error) +1. SecureScoreControlList.MarshalJSON() ([]byte, error) +1. SecureScoreControlScore.MarshalJSON() ([]byte, error) +1. SecureScoresList.MarshalJSON() ([]byte, error) +1. SubAssessmentList.MarshalJSON() ([]byte, error) +1. SubAssessmentStatus.MarshalJSON() ([]byte, error) +1. TaskList.MarshalJSON() ([]byte, error) +1. TopologyList.MarshalJSON() ([]byte, error) +1. TopologyResourceProperties.MarshalJSON() ([]byte, error) +1. TopologySingleResource.MarshalJSON() ([]byte, error) +1. TopologySingleResourceChild.MarshalJSON() ([]byte, error) +1. TopologySingleResourceParent.MarshalJSON() ([]byte, error) +1. VendorReference.MarshalJSON() ([]byte, error) diff --git a/services/preview/security/mgmt/v1.0/security/_meta.json b/services/preview/security/mgmt/v1.0/security/_meta.json index 6f0fa306955c..bc78a287be13 100644 --- a/services/preview/security/mgmt/v1.0/security/_meta.json +++ b/services/preview/security/mgmt/v1.0/security/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/security/resource-manager/readme.md", "tag": "package-composite-v1", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-composite-v1 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/security/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-composite-v1 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/security/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/security/mgmt/v1.0/security/models.go b/services/preview/security/mgmt/v1.0/security/models.go index d91de3f5202b..ddd586e71223 100644 --- a/services/preview/security/mgmt/v1.0/security/models.go +++ b/services/preview/security/mgmt/v1.0/security/models.go @@ -821,6 +821,12 @@ type AlertConfidenceReason struct { Reason *string `json:"reason,omitempty"` } +// MarshalJSON is the custom marshaler for AlertConfidenceReason. +func (acr AlertConfidenceReason) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AlertEntity changing set of properties depending on the entity type. type AlertEntity struct { // AdditionalProperties - Unmatched properties from the message are deserialized this collection @@ -1396,6 +1402,12 @@ type AllowedConnectionsList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for AllowedConnectionsList. +func (ACL AllowedConnectionsList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AllowedConnectionsListIterator provides access to a complete listing of AllowedConnectionsResource // values. type AllowedConnectionsListIterator struct { @@ -1637,6 +1649,12 @@ type AllowedConnectionsResourceProperties struct { ConnectableResources *[]ConnectableResource `json:"connectableResources,omitempty"` } +// MarshalJSON is the custom marshaler for AllowedConnectionsResourceProperties. +func (acrp AllowedConnectionsResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicAllowlistCustomAlertRule a custom alert rule that checks if a value (depends on the custom alert type) is // allowed. type BasicAllowlistCustomAlertRule interface { @@ -2602,6 +2620,12 @@ type AscLocationList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for AscLocationList. +func (all AscLocationList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AscLocationListIterator provides access to a complete listing of AscLocation values. type AscLocationListIterator struct { i int @@ -4090,6 +4114,12 @@ type AzureResourceLink struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for AzureResourceLink. +func (arl AzureResourceLink) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureTrackedResourceLocation describes an Azure resource with location type AzureTrackedResourceLocation struct { // Location - Location where the resource is stored @@ -4343,6 +4373,12 @@ type CloudErrorBody struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CloudErrorBody. +func (ceb CloudErrorBody) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Compliance compliance of a scope type Compliance struct { autorest.Response `json:"-"` @@ -4596,6 +4632,12 @@ type ComplianceProperties struct { AssessmentResult *[]ComplianceSegment `json:"assessmentResult,omitempty"` } +// MarshalJSON is the custom marshaler for ComplianceProperties. +func (cp ComplianceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ComplianceSegment a segment of a compliance assessment. type ComplianceSegment struct { // SegmentType - READ-ONLY; The segment type, e.g. compliant, non-compliance, insufficient coverage, N/A, etc. @@ -4604,6 +4646,12 @@ type ComplianceSegment struct { Percentage *float64 `json:"percentage,omitempty"` } +// MarshalJSON is the custom marshaler for ComplianceSegment. +func (cs ComplianceSegment) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectableResource describes the allowed inbound and outbound traffic of an Azure resource type ConnectableResource struct { // ID - READ-ONLY; The Azure resource id @@ -4614,6 +4662,12 @@ type ConnectableResource struct { OutboundConnectedResources *[]ConnectedResource `json:"outboundConnectedResources,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectableResource. +func (cr ConnectableResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectedResource describes properties of a connected resource type ConnectedResource struct { // ConnectedResourceID - READ-ONLY; The Azure resource id of the connected resource @@ -4624,6 +4678,12 @@ type ConnectedResource struct { UDPPorts *string `json:"udpPorts,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectedResource. +func (cr ConnectedResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectedWorkspace ... type ConnectedWorkspace struct { // ID - Azure resource ID of the connected OMS workspace @@ -5176,6 +5236,12 @@ type ContactList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ContactList. +func (cl ContactList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContactListIterator provides access to a complete listing of Contact values. type ContactListIterator struct { i int @@ -5741,12 +5807,24 @@ type CVE struct { Link *string `json:"link,omitempty"` } +// MarshalJSON is the custom marshaler for CVE. +func (c CVE) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CVSS CVSS details type CVSS struct { // Base - READ-ONLY; CVSS base Base *float64 `json:"base,omitempty"` } +// MarshalJSON is the custom marshaler for CVSS. +func (c CVSS) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DataExportSetting represents a data export setting type DataExportSetting struct { // DataExportSettingProperties - Data export setting data @@ -9393,6 +9471,12 @@ type Location struct { Location *string `json:"location,omitempty"` } +// MarshalJSON is the custom marshaler for Location. +func (l Location) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MqttC2DMessagesNotInAllowedRange number of cloud to device messages (MQTT protocol) is not in allowed // range. type MqttC2DMessagesNotInAllowedRange struct { @@ -10181,6 +10265,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (od OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationList list of possible operations for Microsoft.Security resource provider type OperationList struct { autorest.Response `json:"-"` @@ -11853,6 +11943,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicResourceDetails details of the resource that was assessed type BasicResourceDetails interface { AsOnPremiseSQLResourceDetails() (*OnPremiseSQLResourceDetails, bool) @@ -12201,6 +12297,12 @@ type ScoreDetails struct { Percentage *float64 `json:"percentage,omitempty"` } +// MarshalJSON is the custom marshaler for ScoreDetails. +func (sd ScoreDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SecureScoreControlDefinitionItem information about the security control. type SecureScoreControlDefinitionItem struct { *SecureScoreControlDefinitionItemProperties `json:"properties,omitempty"` @@ -12286,6 +12388,12 @@ type SecureScoreControlDefinitionItemProperties struct { AssessmentDefinitions *[]AzureResourceLink `json:"assessmentDefinitions,omitempty"` } +// MarshalJSON is the custom marshaler for SecureScoreControlDefinitionItemProperties. +func (sscdip SecureScoreControlDefinitionItemProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SecureScoreControlDefinitionList list of security controls definition type SecureScoreControlDefinitionList struct { autorest.Response `json:"-"` @@ -12295,6 +12403,12 @@ type SecureScoreControlDefinitionList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SecureScoreControlDefinitionList. +func (sscdl SecureScoreControlDefinitionList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SecureScoreControlDefinitionListIterator provides access to a complete listing of // SecureScoreControlDefinitionItem values. type SecureScoreControlDefinitionListIterator struct { @@ -12533,6 +12647,12 @@ type SecureScoreControlList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SecureScoreControlList. +func (sscl SecureScoreControlList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SecureScoreControlListIterator provides access to a complete listing of SecureScoreControlDetails // values. type SecureScoreControlListIterator struct { @@ -12694,6 +12814,12 @@ type SecureScoreControlScore struct { Percentage *float64 `json:"percentage,omitempty"` } +// MarshalJSON is the custom marshaler for SecureScoreControlScore. +func (sscs SecureScoreControlScore) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SecureScoreControlScoreDetails calculation result data in control level type SecureScoreControlScoreDetails struct { // DisplayName - READ-ONLY; User friendly display name of the control @@ -12938,6 +13064,12 @@ type SecureScoresList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SecureScoresList. +func (ssl SecureScoresList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SecureScoresListIterator provides access to a complete listing of SecureScoreItem values. type SecureScoresListIterator struct { i int @@ -13502,6 +13634,12 @@ type SubAssessmentList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SubAssessmentList. +func (sal SubAssessmentList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SubAssessmentListIterator provides access to a complete listing of SubAssessment values. type SubAssessmentListIterator struct { i int @@ -13799,6 +13937,12 @@ type SubAssessmentStatus struct { Severity Severity `json:"severity,omitempty"` } +// MarshalJSON is the custom marshaler for SubAssessmentStatus. +func (sas SubAssessmentStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SuppressionAlertsScope ... type SuppressionAlertsScope struct { // AllOf - All the conditions inside need to be true in order to suppress the alert @@ -13901,6 +14045,12 @@ type TaskList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for TaskList. +func (tl TaskList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TaskListIterator provides access to a complete listing of Task values. type TaskListIterator struct { i int @@ -14757,6 +14907,12 @@ type TopologyList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for TopologyList. +func (tl TopologyList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TopologyListIterator provides access to a complete listing of TopologyResource values. type TopologyListIterator struct { i int @@ -14996,6 +15152,12 @@ type TopologyResourceProperties struct { TopologyResources *[]TopologySingleResource `json:"topologyResources,omitempty"` } +// MarshalJSON is the custom marshaler for TopologyResourceProperties. +func (trp TopologyResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TopologySingleResource ... type TopologySingleResource struct { // ResourceID - READ-ONLY; Azure resource id @@ -15016,18 +15178,36 @@ type TopologySingleResource struct { Children *[]TopologySingleResourceChild `json:"children,omitempty"` } +// MarshalJSON is the custom marshaler for TopologySingleResource. +func (tsr TopologySingleResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TopologySingleResourceChild ... type TopologySingleResourceChild struct { // ResourceID - READ-ONLY; Azure resource id which serves as child resource in topology view ResourceID *string `json:"resourceId,omitempty"` } +// MarshalJSON is the custom marshaler for TopologySingleResourceChild. +func (tsrc TopologySingleResourceChild) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TopologySingleResourceParent ... type TopologySingleResourceParent struct { // ResourceID - READ-ONLY; Azure resource id which serves as parent resource in topology view ResourceID *string `json:"resourceId,omitempty"` } +// MarshalJSON is the custom marshaler for TopologySingleResourceParent. +func (tsrp TopologySingleResourceParent) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackedResource describes an Azure tracked resource. type TrackedResource struct { // ID - READ-ONLY; Resource Id @@ -15481,6 +15661,12 @@ type VendorReference struct { Link *string `json:"link,omitempty"` } +// MarshalJSON is the custom marshaler for VendorReference. +func (vr VendorReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VMRecommendation represents a machine that is part of a VM/server group type VMRecommendation struct { // ConfigurationStatus - Possible values include: 'Configured', 'NotConfigured', 'InProgress', 'Failed', 'NoStatus' diff --git a/services/preview/security/mgmt/v2.0/security/CHANGELOG.md b/services/preview/security/mgmt/v2.0/security/CHANGELOG.md index 52911e4cc5e4..0ddd0317ce49 100644 --- a/services/preview/security/mgmt/v2.0/security/CHANGELOG.md +++ b/services/preview/security/mgmt/v2.0/security/CHANGELOG.md @@ -1,2 +1,41 @@ # Change History +## Additive Changes + +### New Funcs + +1. AlertConfidenceReason.MarshalJSON() ([]byte, error) +1. AllowedConnectionsList.MarshalJSON() ([]byte, error) +1. AllowedConnectionsResourceProperties.MarshalJSON() ([]byte, error) +1. AscLocationList.MarshalJSON() ([]byte, error) +1. AzureResourceLink.MarshalJSON() ([]byte, error) +1. CVE.MarshalJSON() ([]byte, error) +1. CVSS.MarshalJSON() ([]byte, error) +1. CloudErrorBody.MarshalJSON() ([]byte, error) +1. ComplianceProperties.MarshalJSON() ([]byte, error) +1. ComplianceSegment.MarshalJSON() ([]byte, error) +1. ConnectableResource.MarshalJSON() ([]byte, error) +1. ConnectedResource.MarshalJSON() ([]byte, error) +1. ContactList.MarshalJSON() ([]byte, error) +1. IoTSecurityAggregatedAlertProperties.MarshalJSON() ([]byte, error) +1. IoTSecurityAlertedDevice.MarshalJSON() ([]byte, error) +1. IoTSecurityDeviceAlert.MarshalJSON() ([]byte, error) +1. IoTSecurityDeviceRecommendation.MarshalJSON() ([]byte, error) +1. Location.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ScoreDetails.MarshalJSON() ([]byte, error) +1. SecureScoreControlDefinitionItemProperties.MarshalJSON() ([]byte, error) +1. SecureScoreControlDefinitionList.MarshalJSON() ([]byte, error) +1. SecureScoreControlList.MarshalJSON() ([]byte, error) +1. SecureScoreControlScore.MarshalJSON() ([]byte, error) +1. SecureScoresList.MarshalJSON() ([]byte, error) +1. SubAssessmentList.MarshalJSON() ([]byte, error) +1. SubAssessmentStatus.MarshalJSON() ([]byte, error) +1. TaskList.MarshalJSON() ([]byte, error) +1. TopologyList.MarshalJSON() ([]byte, error) +1. TopologyResourceProperties.MarshalJSON() ([]byte, error) +1. TopologySingleResource.MarshalJSON() ([]byte, error) +1. TopologySingleResourceChild.MarshalJSON() ([]byte, error) +1. TopologySingleResourceParent.MarshalJSON() ([]byte, error) +1. VendorReference.MarshalJSON() ([]byte, error) diff --git a/services/preview/security/mgmt/v2.0/security/_meta.json b/services/preview/security/mgmt/v2.0/security/_meta.json index 6e58ecfd9ea2..ea159a9416c6 100644 --- a/services/preview/security/mgmt/v2.0/security/_meta.json +++ b/services/preview/security/mgmt/v2.0/security/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/security/resource-manager/readme.md", "tag": "package-composite-v2", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-composite-v2 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/security/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-composite-v2 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/security/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/security/mgmt/v2.0/security/models.go b/services/preview/security/mgmt/v2.0/security/models.go index 02b7d3248901..3e3bc607845d 100644 --- a/services/preview/security/mgmt/v2.0/security/models.go +++ b/services/preview/security/mgmt/v2.0/security/models.go @@ -821,6 +821,12 @@ type AlertConfidenceReason struct { Reason *string `json:"reason,omitempty"` } +// MarshalJSON is the custom marshaler for AlertConfidenceReason. +func (acr AlertConfidenceReason) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AlertEntity changing set of properties depending on the entity type. type AlertEntity struct { // AdditionalProperties - Unmatched properties from the message are deserialized this collection @@ -1396,6 +1402,12 @@ type AllowedConnectionsList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for AllowedConnectionsList. +func (ACL AllowedConnectionsList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AllowedConnectionsListIterator provides access to a complete listing of AllowedConnectionsResource // values. type AllowedConnectionsListIterator struct { @@ -1637,6 +1649,12 @@ type AllowedConnectionsResourceProperties struct { ConnectableResources *[]ConnectableResource `json:"connectableResources,omitempty"` } +// MarshalJSON is the custom marshaler for AllowedConnectionsResourceProperties. +func (acrp AllowedConnectionsResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicAllowlistCustomAlertRule a custom alert rule that checks if a value (depends on the custom alert type) is // allowed. type BasicAllowlistCustomAlertRule interface { @@ -2602,6 +2620,12 @@ type AscLocationList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for AscLocationList. +func (all AscLocationList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AscLocationListIterator provides access to a complete listing of AscLocation values. type AscLocationListIterator struct { i int @@ -4090,6 +4114,12 @@ type AzureResourceLink struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for AzureResourceLink. +func (arl AzureResourceLink) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureTrackedResourceLocation describes an Azure resource with location type AzureTrackedResourceLocation struct { // Location - Location where the resource is stored @@ -4343,6 +4373,12 @@ type CloudErrorBody struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CloudErrorBody. +func (ceb CloudErrorBody) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Compliance compliance of a scope type Compliance struct { autorest.Response `json:"-"` @@ -4596,6 +4632,12 @@ type ComplianceProperties struct { AssessmentResult *[]ComplianceSegment `json:"assessmentResult,omitempty"` } +// MarshalJSON is the custom marshaler for ComplianceProperties. +func (cp ComplianceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ComplianceSegment a segment of a compliance assessment. type ComplianceSegment struct { // SegmentType - READ-ONLY; The segment type, e.g. compliant, non-compliance, insufficient coverage, N/A, etc. @@ -4604,6 +4646,12 @@ type ComplianceSegment struct { Percentage *float64 `json:"percentage,omitempty"` } +// MarshalJSON is the custom marshaler for ComplianceSegment. +func (cs ComplianceSegment) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectableResource describes the allowed inbound and outbound traffic of an Azure resource type ConnectableResource struct { // ID - READ-ONLY; The Azure resource id @@ -4614,6 +4662,12 @@ type ConnectableResource struct { OutboundConnectedResources *[]ConnectedResource `json:"outboundConnectedResources,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectableResource. +func (cr ConnectableResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectedResource describes properties of a connected resource type ConnectedResource struct { // ConnectedResourceID - READ-ONLY; The Azure resource id of the connected resource @@ -4624,6 +4678,12 @@ type ConnectedResource struct { UDPPorts *string `json:"udpPorts,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectedResource. +func (cr ConnectedResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectedWorkspace ... type ConnectedWorkspace struct { // ID - Azure resource ID of the connected OMS workspace @@ -5176,6 +5236,12 @@ type ContactList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ContactList. +func (cl ContactList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContactListIterator provides access to a complete listing of Contact values. type ContactListIterator struct { i int @@ -5741,12 +5807,24 @@ type CVE struct { Link *string `json:"link,omitempty"` } +// MarshalJSON is the custom marshaler for CVE. +func (c CVE) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CVSS CVSS details type CVSS struct { // Base - READ-ONLY; CVSS base Base *float64 `json:"base,omitempty"` } +// MarshalJSON is the custom marshaler for CVSS. +func (c CVSS) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DataExportSetting represents a data export setting type DataExportSetting struct { // DataExportSettingProperties - Data export setting data @@ -8870,6 +8948,12 @@ type IoTSecurityAggregatedAlertProperties struct { LogAnalyticsQuery *string `json:"logAnalyticsQuery,omitempty"` } +// MarshalJSON is the custom marshaler for IoTSecurityAggregatedAlertProperties. +func (itsaap IoTSecurityAggregatedAlertProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IoTSecurityAggregatedRecommendation security Solution Recommendation Information type IoTSecurityAggregatedRecommendation struct { autorest.Response `json:"-"` @@ -9169,6 +9253,12 @@ type IoTSecurityAlertedDevice struct { AlertsCount *int32 `json:"alertsCount,omitempty"` } +// MarshalJSON is the custom marshaler for IoTSecurityAlertedDevice. +func (itsad IoTSecurityAlertedDevice) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IoTSecurityAlertedDevicesList list of devices with the count of raised alerts type IoTSecurityAlertedDevicesList struct { // Value - List of aggregated alerts data @@ -9197,6 +9287,12 @@ type IoTSecurityDeviceAlert struct { AlertsCount *int32 `json:"alertsCount,omitempty"` } +// MarshalJSON is the custom marshaler for IoTSecurityDeviceAlert. +func (itsda IoTSecurityDeviceAlert) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IoTSecurityDeviceAlertsList list of alerts with the count of raised alerts type IoTSecurityDeviceAlertsList struct { // Value - List of top alerts data @@ -9225,6 +9321,12 @@ type IoTSecurityDeviceRecommendation struct { DevicesCount *int32 `json:"devicesCount,omitempty"` } +// MarshalJSON is the custom marshaler for IoTSecurityDeviceRecommendation. +func (itsdr IoTSecurityDeviceRecommendation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IoTSecurityDeviceRecommendationsList list of recommendations with the count of devices type IoTSecurityDeviceRecommendationsList struct { // Value - List of aggregated recommendation data @@ -10509,6 +10611,12 @@ type Location struct { Location *string `json:"location,omitempty"` } +// MarshalJSON is the custom marshaler for Location. +func (l Location) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MqttC2DMessagesNotInAllowedRange number of cloud to device messages (MQTT protocol) is not in allowed // range. type MqttC2DMessagesNotInAllowedRange struct { @@ -11297,6 +11405,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (od OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationList list of possible operations for Microsoft.Security resource provider type OperationList struct { autorest.Response `json:"-"` @@ -12843,6 +12957,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicResourceDetails details of the resource that was assessed type BasicResourceDetails interface { AsOnPremiseSQLResourceDetails() (*OnPremiseSQLResourceDetails, bool) @@ -13191,6 +13311,12 @@ type ScoreDetails struct { Percentage *float64 `json:"percentage,omitempty"` } +// MarshalJSON is the custom marshaler for ScoreDetails. +func (sd ScoreDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SecureScoreControlDefinitionItem information about the security control. type SecureScoreControlDefinitionItem struct { *SecureScoreControlDefinitionItemProperties `json:"properties,omitempty"` @@ -13276,6 +13402,12 @@ type SecureScoreControlDefinitionItemProperties struct { AssessmentDefinitions *[]AzureResourceLink `json:"assessmentDefinitions,omitempty"` } +// MarshalJSON is the custom marshaler for SecureScoreControlDefinitionItemProperties. +func (sscdip SecureScoreControlDefinitionItemProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SecureScoreControlDefinitionList list of security controls definition type SecureScoreControlDefinitionList struct { autorest.Response `json:"-"` @@ -13285,6 +13417,12 @@ type SecureScoreControlDefinitionList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SecureScoreControlDefinitionList. +func (sscdl SecureScoreControlDefinitionList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SecureScoreControlDefinitionListIterator provides access to a complete listing of // SecureScoreControlDefinitionItem values. type SecureScoreControlDefinitionListIterator struct { @@ -13523,6 +13661,12 @@ type SecureScoreControlList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SecureScoreControlList. +func (sscl SecureScoreControlList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SecureScoreControlListIterator provides access to a complete listing of SecureScoreControlDetails // values. type SecureScoreControlListIterator struct { @@ -13684,6 +13828,12 @@ type SecureScoreControlScore struct { Percentage *float64 `json:"percentage,omitempty"` } +// MarshalJSON is the custom marshaler for SecureScoreControlScore. +func (sscs SecureScoreControlScore) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SecureScoreControlScoreDetails calculation result data in control level type SecureScoreControlScoreDetails struct { // DisplayName - READ-ONLY; User friendly display name of the control @@ -13928,6 +14078,12 @@ type SecureScoresList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SecureScoresList. +func (ssl SecureScoresList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SecureScoresListIterator provides access to a complete listing of SecureScoreItem values. type SecureScoresListIterator struct { i int @@ -14492,6 +14648,12 @@ type SubAssessmentList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SubAssessmentList. +func (sal SubAssessmentList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SubAssessmentListIterator provides access to a complete listing of SubAssessment values. type SubAssessmentListIterator struct { i int @@ -14789,6 +14951,12 @@ type SubAssessmentStatus struct { Severity Severity `json:"severity,omitempty"` } +// MarshalJSON is the custom marshaler for SubAssessmentStatus. +func (sas SubAssessmentStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SuppressionAlertsScope ... type SuppressionAlertsScope struct { // AllOf - All the conditions inside need to be true in order to suppress the alert @@ -14906,6 +15074,12 @@ type TaskList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for TaskList. +func (tl TaskList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TaskListIterator provides access to a complete listing of Task values. type TaskListIterator struct { i int @@ -15762,6 +15936,12 @@ type TopologyList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for TopologyList. +func (tl TopologyList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TopologyListIterator provides access to a complete listing of TopologyResource values. type TopologyListIterator struct { i int @@ -16001,6 +16181,12 @@ type TopologyResourceProperties struct { TopologyResources *[]TopologySingleResource `json:"topologyResources,omitempty"` } +// MarshalJSON is the custom marshaler for TopologyResourceProperties. +func (trp TopologyResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TopologySingleResource ... type TopologySingleResource struct { // ResourceID - READ-ONLY; Azure resource id @@ -16021,18 +16207,36 @@ type TopologySingleResource struct { Children *[]TopologySingleResourceChild `json:"children,omitempty"` } +// MarshalJSON is the custom marshaler for TopologySingleResource. +func (tsr TopologySingleResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TopologySingleResourceChild ... type TopologySingleResourceChild struct { // ResourceID - READ-ONLY; Azure resource id which serves as child resource in topology view ResourceID *string `json:"resourceId,omitempty"` } +// MarshalJSON is the custom marshaler for TopologySingleResourceChild. +func (tsrc TopologySingleResourceChild) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TopologySingleResourceParent ... type TopologySingleResourceParent struct { // ResourceID - READ-ONLY; Azure resource id which serves as parent resource in topology view ResourceID *string `json:"resourceId,omitempty"` } +// MarshalJSON is the custom marshaler for TopologySingleResourceParent. +func (tsrp TopologySingleResourceParent) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackedResource describes an Azure tracked resource. type TrackedResource struct { // ID - READ-ONLY; Resource Id @@ -16517,6 +16721,12 @@ type VendorReference struct { Link *string `json:"link,omitempty"` } +// MarshalJSON is the custom marshaler for VendorReference. +func (vr VendorReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VMRecommendation represents a machine that is part of a VM/server group type VMRecommendation struct { // ConfigurationStatus - Possible values include: 'Configured', 'NotConfigured', 'InProgress', 'Failed', 'NoStatus' diff --git a/services/preview/security/mgmt/v3.0/security/CHANGELOG.md b/services/preview/security/mgmt/v3.0/security/CHANGELOG.md index 52911e4cc5e4..ead67f78da9a 100644 --- a/services/preview/security/mgmt/v3.0/security/CHANGELOG.md +++ b/services/preview/security/mgmt/v3.0/security/CHANGELOG.md @@ -1,2 +1,66 @@ # Change History +## Additive Changes + +### New Funcs + +1. AllowedConnectionsList.MarshalJSON() ([]byte, error) +1. AllowedConnectionsResourceProperties.MarshalJSON() ([]byte, error) +1. AscLocationList.MarshalJSON() ([]byte, error) +1. AssessmentLinks.MarshalJSON() ([]byte, error) +1. AssessmentList.MarshalJSON() ([]byte, error) +1. AssessmentMetadataList.MarshalJSON() ([]byte, error) +1. AzureResourceLink.MarshalJSON() ([]byte, error) +1. CVE.MarshalJSON() ([]byte, error) +1. CVSS.MarshalJSON() ([]byte, error) +1. CloudErrorBody.MarshalJSON() ([]byte, error) +1. ComplianceProperties.MarshalJSON() ([]byte, error) +1. ComplianceResultProperties.MarshalJSON() ([]byte, error) +1. ComplianceSegment.MarshalJSON() ([]byte, error) +1. ConnectableResource.MarshalJSON() ([]byte, error) +1. ConnectedResource.MarshalJSON() ([]byte, error) +1. ContactList.MarshalJSON() ([]byte, error) +1. Firmware.MarshalJSON() ([]byte, error) +1. IPAddress.MarshalJSON() ([]byte, error) +1. IoTSecurityAggregatedAlertProperties.MarshalJSON() ([]byte, error) +1. IoTSecurityAggregatedAlertPropertiesTopDevicesListItem.MarshalJSON() ([]byte, error) +1. IoTSecurityAlertedDevice.MarshalJSON() ([]byte, error) +1. IoTSecurityDeviceAlert.MarshalJSON() ([]byte, error) +1. IoTSecurityDeviceRecommendation.MarshalJSON() ([]byte, error) +1. IotAlertList.MarshalJSON() ([]byte, error) +1. IotAlertListModel.MarshalJSON() ([]byte, error) +1. IotAlertTypeProperties.MarshalJSON() ([]byte, error) +1. IotDefenderSettingsList.MarshalJSON() ([]byte, error) +1. IotRecommendationList.MarshalJSON() ([]byte, error) +1. IotRecommendationListModel.MarshalJSON() ([]byte, error) +1. IotRecommendationTypeProperties.MarshalJSON() ([]byte, error) +1. IotSensorsList.MarshalJSON() ([]byte, error) +1. IotSitesList.MarshalJSON() ([]byte, error) +1. Location.MarshalJSON() ([]byte, error) +1. MacAddress.MarshalJSON() ([]byte, error) +1. OnPremiseIotSensorsList.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. PackageDownloads.MarshalJSON() ([]byte, error) +1. PackageDownloadsCentralManager.MarshalJSON() ([]byte, error) +1. PackageDownloadsCentralManagerFull.MarshalJSON() ([]byte, error) +1. PackageDownloadsCentralManagerFullOvf.MarshalJSON() ([]byte, error) +1. PackageDownloadsSensorFullOvf.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ScoreDetails.MarshalJSON() ([]byte, error) +1. SecureScoreControlDefinitionItemProperties.MarshalJSON() ([]byte, error) +1. SecureScoreControlDefinitionList.MarshalJSON() ([]byte, error) +1. SecureScoreControlList.MarshalJSON() ([]byte, error) +1. SecureScoreControlScore.MarshalJSON() ([]byte, error) +1. SecureScoresList.MarshalJSON() ([]byte, error) +1. Sensor.MarshalJSON() ([]byte, error) +1. ServerVulnerabilityAssessmentProperties.MarshalJSON() ([]byte, error) +1. Site.MarshalJSON() ([]byte, error) +1. SubAssessmentList.MarshalJSON() ([]byte, error) +1. SubAssessmentStatus.MarshalJSON() ([]byte, error) +1. TaskList.MarshalJSON() ([]byte, error) +1. TopologyList.MarshalJSON() ([]byte, error) +1. TopologyResourceProperties.MarshalJSON() ([]byte, error) +1. TopologySingleResource.MarshalJSON() ([]byte, error) +1. TopologySingleResourceChild.MarshalJSON() ([]byte, error) +1. TopologySingleResourceParent.MarshalJSON() ([]byte, error) +1. VendorReference.MarshalJSON() ([]byte, error) diff --git a/services/preview/security/mgmt/v3.0/security/_meta.json b/services/preview/security/mgmt/v3.0/security/_meta.json index 437fc5c10761..fa4db040bff6 100644 --- a/services/preview/security/mgmt/v3.0/security/_meta.json +++ b/services/preview/security/mgmt/v3.0/security/_meta.json @@ -2,9 +2,9 @@ "commit": "3a3a9452f965a227ce43e6b545035b99dd175f23", "readme": "/_/azure-rest-api-specs/specification/security/resource-manager/readme.md", "tag": "package-composite-v3", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-composite-v3 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/security/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-composite-v3 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/security/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/security/mgmt/v3.0/security/models.go b/services/preview/security/mgmt/v3.0/security/models.go index 4989b9e9288d..420ba8ad3050 100644 --- a/services/preview/security/mgmt/v3.0/security/models.go +++ b/services/preview/security/mgmt/v3.0/security/models.go @@ -1741,6 +1741,12 @@ type AllowedConnectionsList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for AllowedConnectionsList. +func (ACL AllowedConnectionsList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AllowedConnectionsListIterator provides access to a complete listing of AllowedConnectionsResource // values. type AllowedConnectionsListIterator struct { @@ -1982,6 +1988,12 @@ type AllowedConnectionsResourceProperties struct { ConnectableResources *[]ConnectableResource `json:"connectableResources,omitempty"` } +// MarshalJSON is the custom marshaler for AllowedConnectionsResourceProperties. +func (acrp AllowedConnectionsResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicAllowlistCustomAlertRule a custom alert rule that checks if a value (depends on the custom alert type) is // allowed. type BasicAllowlistCustomAlertRule interface { @@ -2822,6 +2834,12 @@ type AscLocationList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for AscLocationList. +func (all AscLocationList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AscLocationListIterator provides access to a complete listing of AscLocation values. type AscLocationListIterator struct { i int @@ -3050,6 +3068,12 @@ type AssessmentLinks struct { AzurePortalURI *string `json:"azurePortalUri,omitempty"` } +// MarshalJSON is the custom marshaler for AssessmentLinks. +func (al AssessmentLinks) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AssessmentList page of a security assessments list type AssessmentList struct { autorest.Response `json:"-"` @@ -3059,6 +3083,12 @@ type AssessmentList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for AssessmentList. +func (al AssessmentList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AssessmentListIterator provides access to a complete listing of Assessment values. type AssessmentListIterator struct { i int @@ -3290,6 +3320,12 @@ type AssessmentMetadataList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for AssessmentMetadataList. +func (aml AssessmentMetadataList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AssessmentMetadataListIterator provides access to a complete listing of AssessmentMetadata values. type AssessmentMetadataListIterator struct { i int @@ -5020,6 +5056,12 @@ type AzureResourceLink struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for AzureResourceLink. +func (arl AzureResourceLink) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureTrackedResourceLocation describes an Azure resource with location type AzureTrackedResourceLocation struct { // Location - Location where the resource is stored @@ -5273,6 +5315,12 @@ type CloudErrorBody struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CloudErrorBody. +func (ceb CloudErrorBody) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Compliance compliance of a scope type Compliance struct { autorest.Response `json:"-"` @@ -5526,6 +5574,12 @@ type ComplianceProperties struct { AssessmentResult *[]ComplianceSegment `json:"assessmentResult,omitempty"` } +// MarshalJSON is the custom marshaler for ComplianceProperties. +func (cp ComplianceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ComplianceResult a compliance result type ComplianceResult struct { autorest.Response `json:"-"` @@ -5773,6 +5827,12 @@ type ComplianceResultProperties struct { ResourceStatus ResourceStatus `json:"resourceStatus,omitempty"` } +// MarshalJSON is the custom marshaler for ComplianceResultProperties. +func (crp ComplianceResultProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ComplianceSegment a segment of a compliance assessment. type ComplianceSegment struct { // SegmentType - READ-ONLY; The segment type, e.g. compliant, non-compliance, insufficient coverage, N/A, etc. @@ -5781,6 +5841,12 @@ type ComplianceSegment struct { Percentage *float64 `json:"percentage,omitempty"` } +// MarshalJSON is the custom marshaler for ComplianceSegment. +func (cs ComplianceSegment) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectableResource describes the allowed inbound and outbound traffic of an Azure resource type ConnectableResource struct { // ID - READ-ONLY; The Azure resource id @@ -5791,6 +5857,12 @@ type ConnectableResource struct { OutboundConnectedResources *[]ConnectedResource `json:"outboundConnectedResources,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectableResource. +func (cr ConnectableResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectedResource describes properties of a connected resource type ConnectedResource struct { // ConnectedResourceID - READ-ONLY; The Azure resource id of the connected resource @@ -5801,6 +5873,12 @@ type ConnectedResource struct { UDPPorts *string `json:"udpPorts,omitempty"` } +// MarshalJSON is the custom marshaler for ConnectedResource. +func (cr ConnectedResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectedWorkspace ... type ConnectedWorkspace struct { // ID - Azure resource ID of the connected OMS workspace @@ -6353,6 +6431,12 @@ type ContactList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ContactList. +func (cl ContactList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContactListIterator provides access to a complete listing of Contact values. type ContactListIterator struct { i int @@ -6918,12 +7002,24 @@ type CVE struct { Link *string `json:"link,omitempty"` } +// MarshalJSON is the custom marshaler for CVE. +func (c CVE) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CVSS CVSS details type CVSS struct { // Base - READ-ONLY; CVSS base Base *float64 `json:"base,omitempty"` } +// MarshalJSON is the custom marshaler for CVSS. +func (c CVSS) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DataExportSettingProperties the data export setting properties type DataExportSettingProperties struct { // Enabled - Is the data export setting is enabled @@ -9110,6 +9206,12 @@ type Firmware struct { AdditionalData interface{} `json:"additionalData,omitempty"` } +// MarshalJSON is the custom marshaler for Firmware. +func (f Firmware) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GcpCredentialsDetailsProperties GCP cloud account connector based service to service credentials, the // credentials are composed of the organization ID and a JSON API key (write only) type GcpCredentialsDetailsProperties struct { @@ -10168,6 +10270,12 @@ type IotAlertList struct { TotalCount *int32 `json:"totalCount,omitempty"` } +// MarshalJSON is the custom marshaler for IotAlertList. +func (ial IotAlertList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IotAlertListIterator provides access to a complete listing of IotAlert values. type IotAlertListIterator struct { i int @@ -10240,6 +10348,12 @@ type IotAlertListModel struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for IotAlertListModel. +func (ialm IotAlertListModel) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IotAlertListModelIterator provides access to a complete listing of IotAlertModel values. type IotAlertListModelIterator struct { i int @@ -10679,6 +10793,12 @@ type IotAlertTypeProperties struct { RemediationSteps *[]string `json:"remediationSteps,omitempty"` } +// MarshalJSON is the custom marshaler for IotAlertTypeProperties. +func (iatp IotAlertTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IotDefenderSettingsList list of IoT Defender settings type IotDefenderSettingsList struct { autorest.Response `json:"-"` @@ -10686,6 +10806,12 @@ type IotDefenderSettingsList struct { Value *[]IotDefenderSettingsModel `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for IotDefenderSettingsList. +func (idsl IotDefenderSettingsList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IotDefenderSettingsModel ioT Defender settings type IotDefenderSettingsModel struct { autorest.Response `json:"-"` @@ -10851,6 +10977,12 @@ type IotRecommendationList struct { TotalCount *int32 `json:"totalCount,omitempty"` } +// MarshalJSON is the custom marshaler for IotRecommendationList. +func (irl IotRecommendationList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IotRecommendationListIterator provides access to a complete listing of IotRecommendation values. type IotRecommendationListIterator struct { i int @@ -10923,6 +11055,12 @@ type IotRecommendationListModel struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for IotRecommendationListModel. +func (irlm IotRecommendationListModel) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IotRecommendationListModelIterator provides access to a complete listing of IotRecommendationModel // values. type IotRecommendationListModelIterator struct { @@ -11378,6 +11516,12 @@ type IotRecommendationTypeProperties struct { DataSource *string `json:"dataSource,omitempty"` } +// MarshalJSON is the custom marshaler for IotRecommendationTypeProperties. +func (irtp IotRecommendationTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IoTSecurityAggregatedAlert security Solution Aggregated Alert information type IoTSecurityAggregatedAlert struct { autorest.Response `json:"-"` @@ -11664,6 +11808,12 @@ type IoTSecurityAggregatedAlertProperties struct { TopDevicesList *[]IoTSecurityAggregatedAlertPropertiesTopDevicesListItem `json:"topDevicesList,omitempty"` } +// MarshalJSON is the custom marshaler for IoTSecurityAggregatedAlertProperties. +func (itsaap IoTSecurityAggregatedAlertProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IoTSecurityAggregatedAlertPropertiesTopDevicesListItem ... type IoTSecurityAggregatedAlertPropertiesTopDevicesListItem struct { // DeviceID - READ-ONLY; Name of the device. @@ -11674,6 +11824,12 @@ type IoTSecurityAggregatedAlertPropertiesTopDevicesListItem struct { LastOccurrence *string `json:"lastOccurrence,omitempty"` } +// MarshalJSON is the custom marshaler for IoTSecurityAggregatedAlertPropertiesTopDevicesListItem. +func (itsaapDli IoTSecurityAggregatedAlertPropertiesTopDevicesListItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IoTSecurityAggregatedRecommendation ioT Security solution recommendation information. type IoTSecurityAggregatedRecommendation struct { autorest.Response `json:"-"` @@ -11974,6 +12130,12 @@ type IoTSecurityAlertedDevice struct { AlertsCount *int32 `json:"alertsCount,omitempty"` } +// MarshalJSON is the custom marshaler for IoTSecurityAlertedDevice. +func (itsad IoTSecurityAlertedDevice) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IoTSecurityDeviceAlert statistical information about the number of alerts per alert type during last set // number of days type IoTSecurityDeviceAlert struct { @@ -11985,6 +12147,12 @@ type IoTSecurityDeviceAlert struct { AlertsCount *int32 `json:"alertsCount,omitempty"` } +// MarshalJSON is the custom marshaler for IoTSecurityDeviceAlert. +func (itsda IoTSecurityDeviceAlert) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IoTSecurityDeviceRecommendation statistical information about the number of recommendations per device, // per recommendation type. type IoTSecurityDeviceRecommendation struct { @@ -11996,6 +12164,12 @@ type IoTSecurityDeviceRecommendation struct { DevicesCount *int32 `json:"devicesCount,omitempty"` } +// MarshalJSON is the custom marshaler for IoTSecurityDeviceRecommendation. +func (itsdr IoTSecurityDeviceRecommendation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IoTSecuritySolutionAnalyticsModel security analytics of your IoT Security solution type IoTSecuritySolutionAnalyticsModel struct { autorest.Response `json:"-"` @@ -12494,6 +12668,12 @@ type IotSensorsList struct { Value *[]IotSensorsModel `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for IotSensorsList. +func (isl IotSensorsList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IotSensorsModel ioT sensor model type IotSensorsModel struct { autorest.Response `json:"-"` @@ -12604,6 +12784,12 @@ type IotSitesList struct { Value *[]IotSitesModel `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for IotSitesList. +func (isl IotSitesList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IotSitesModel ioT site model type IotSitesModel struct { autorest.Response `json:"-"` @@ -12691,6 +12877,12 @@ type IPAddress struct { FqdnLastLookupTime *date.Time `json:"fqdnLastLookupTime,omitempty"` } +// MarshalJSON is the custom marshaler for IPAddress. +func (ia IPAddress) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JitNetworkAccessPoliciesList ... type JitNetworkAccessPoliciesList struct { autorest.Response `json:"-"` @@ -13498,6 +13690,12 @@ type Location struct { Location *string `json:"location,omitempty"` } +// MarshalJSON is the custom marshaler for Location. +func (l Location) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LogAnalyticsIdentifier represents a Log Analytics workspace scope identifier. type LogAnalyticsIdentifier struct { // WorkspaceID - READ-ONLY; The LogAnalytics workspace id that stores this alert. @@ -13554,6 +13752,12 @@ type MacAddress struct { RelationToIPStatus RelationToIPStatus `json:"relationToIpStatus,omitempty"` } +// MarshalJSON is the custom marshaler for MacAddress. +func (ma MacAddress) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MqttC2DMessagesNotInAllowedRange number of cloud to device messages (MQTT protocol) is not in allowed // range. type MqttC2DMessagesNotInAllowedRange struct { @@ -14176,6 +14380,12 @@ type OnPremiseIotSensorsList struct { Value *[]OnPremiseIotSensor `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OnPremiseIotSensorsList. +func (opisl OnPremiseIotSensorsList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicOnPremiseResourceDetails details of the On Premise resource that was assessed type BasicOnPremiseResourceDetails interface { AsOnPremiseSQLResourceDetails() (*OnPremiseSQLResourceDetails, bool) @@ -14391,6 +14601,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (od OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationList list of possible operations for Microsoft.Security resource provider type OperationList struct { autorest.Response `json:"-"` @@ -14597,6 +14813,12 @@ type PackageDownloads struct { DeviceInformationUpdateImportTemplate *[]PackageDownloadInfo `json:"deviceInformationUpdateImportTemplate,omitempty"` } +// MarshalJSON is the custom marshaler for PackageDownloads. +func (pd PackageDownloads) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PackageDownloadsCentralManager all downloads for Central Manager type PackageDownloadsCentralManager struct { // Full - READ-ONLY; Contains full package downloads @@ -14605,6 +14827,12 @@ type PackageDownloadsCentralManager struct { Upgrade *[]UpgradePackageDownloadInfo `json:"upgrade,omitempty"` } +// MarshalJSON is the custom marshaler for PackageDownloadsCentralManager. +func (pdM PackageDownloadsCentralManager) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PackageDownloadsCentralManagerFull contains full package downloads type PackageDownloadsCentralManagerFull struct { // Iso - READ-ONLY; Contains all ISO full versions of the Central Manager @@ -14613,6 +14841,12 @@ type PackageDownloadsCentralManagerFull struct { Ovf *PackageDownloadsCentralManagerFullOvf `json:"ovf,omitempty"` } +// MarshalJSON is the custom marshaler for PackageDownloadsCentralManagerFull. +func (pdM PackageDownloadsCentralManagerFull) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PackageDownloadsCentralManagerFullOvf contains all OVF (virtual machine) full versions of the Central // Manager type PackageDownloadsCentralManagerFullOvf struct { @@ -14626,6 +14860,12 @@ type PackageDownloadsCentralManagerFullOvf struct { MediumHighAvailability *[]PackageDownloadInfo `json:"mediumHighAvailability,omitempty"` } +// MarshalJSON is the custom marshaler for PackageDownloadsCentralManagerFullOvf. +func (pdM PackageDownloadsCentralManagerFullOvf) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PackageDownloadsSensor contains all Sensor binary downloads type PackageDownloadsSensor struct { // Full - READ-ONLY; Contains full package downloads @@ -14670,6 +14910,12 @@ type PackageDownloadsSensorFullOvf struct { Line *[]PackageDownloadInfo `json:"line,omitempty"` } +// MarshalJSON is the custom marshaler for PackageDownloadsSensorFullOvf. +func (pd PackageDownloadsSensorFullOvf) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PathRecommendation represents a path that is recommended to be allowed and its properties type PathRecommendation struct { // Path - The full path of the file, or an identifier of the application @@ -16077,6 +16323,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicResourceDetails details of the resource that was assessed type BasicResourceDetails interface { AsOnPremiseSQLResourceDetails() (*OnPremiseSQLResourceDetails, bool) @@ -16511,6 +16763,12 @@ type ScoreDetails struct { Percentage *float64 `json:"percentage,omitempty"` } +// MarshalJSON is the custom marshaler for ScoreDetails. +func (sd ScoreDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SecureScoreControlDefinitionItem information about the security control. type SecureScoreControlDefinitionItem struct { *SecureScoreControlDefinitionItemProperties `json:"properties,omitempty"` @@ -16596,6 +16854,12 @@ type SecureScoreControlDefinitionItemProperties struct { AssessmentDefinitions *[]AzureResourceLink `json:"assessmentDefinitions,omitempty"` } +// MarshalJSON is the custom marshaler for SecureScoreControlDefinitionItemProperties. +func (sscdip SecureScoreControlDefinitionItemProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SecureScoreControlDefinitionList list of security controls definition type SecureScoreControlDefinitionList struct { autorest.Response `json:"-"` @@ -16605,6 +16869,12 @@ type SecureScoreControlDefinitionList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SecureScoreControlDefinitionList. +func (sscdl SecureScoreControlDefinitionList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SecureScoreControlDefinitionListIterator provides access to a complete listing of // SecureScoreControlDefinitionItem values. type SecureScoreControlDefinitionListIterator struct { @@ -16843,6 +17113,12 @@ type SecureScoreControlList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SecureScoreControlList. +func (sscl SecureScoreControlList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SecureScoreControlListIterator provides access to a complete listing of SecureScoreControlDetails // values. type SecureScoreControlListIterator struct { @@ -17004,6 +17280,12 @@ type SecureScoreControlScore struct { Percentage *float64 `json:"percentage,omitempty"` } +// MarshalJSON is the custom marshaler for SecureScoreControlScore. +func (sscs SecureScoreControlScore) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SecureScoreControlScoreDetails calculation result data in control level type SecureScoreControlScoreDetails struct { // DisplayName - READ-ONLY; User friendly display name of the control @@ -17248,6 +17530,12 @@ type SecureScoresList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SecureScoresList. +func (ssl SecureScoresList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SecureScoresListIterator provides access to a complete listing of SecureScoreItem values. type SecureScoresListIterator struct { i int @@ -17420,6 +17708,12 @@ type Sensor struct { Zone *string `json:"zone,omitempty"` } +// MarshalJSON is the custom marshaler for Sensor. +func (s Sensor) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerVulnerabilityAssessment describes the server vulnerability assessment details on a resource type ServerVulnerabilityAssessment struct { autorest.Response `json:"-"` @@ -17498,6 +17792,12 @@ type ServerVulnerabilityAssessmentProperties struct { ProvisioningState ProvisioningState1 `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ServerVulnerabilityAssessmentProperties. +func (svap ServerVulnerabilityAssessmentProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerVulnerabilityAssessmentsList list of server vulnerability assessments type ServerVulnerabilityAssessmentsList struct { autorest.Response `json:"-"` @@ -17871,6 +18171,12 @@ type Site struct { DisplayName *string `json:"displayName,omitempty"` } +// MarshalJSON is the custom marshaler for Site. +func (s Site) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Solution ... type Solution struct { autorest.Response `json:"-"` @@ -18365,6 +18671,12 @@ type SubAssessmentList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SubAssessmentList. +func (sal SubAssessmentList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SubAssessmentListIterator provides access to a complete listing of SubAssessment values. type SubAssessmentListIterator struct { i int @@ -18662,6 +18974,12 @@ type SubAssessmentStatus struct { Severity Severity `json:"severity,omitempty"` } +// MarshalJSON is the custom marshaler for SubAssessmentStatus. +func (sas SubAssessmentStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SuppressionAlertsScope ... type SuppressionAlertsScope struct { // AllOf - All the conditions inside need to be true in order to suppress the alert @@ -18779,6 +19097,12 @@ type TaskList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for TaskList. +func (tl TaskList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TaskListIterator provides access to a complete listing of Task values. type TaskListIterator struct { i int @@ -19635,6 +19959,12 @@ type TopologyList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for TopologyList. +func (tl TopologyList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TopologyListIterator provides access to a complete listing of TopologyResource values. type TopologyListIterator struct { i int @@ -19874,6 +20204,12 @@ type TopologyResourceProperties struct { TopologyResources *[]TopologySingleResource `json:"topologyResources,omitempty"` } +// MarshalJSON is the custom marshaler for TopologyResourceProperties. +func (trp TopologyResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TopologySingleResource ... type TopologySingleResource struct { // ResourceID - READ-ONLY; Azure resource id @@ -19894,18 +20230,36 @@ type TopologySingleResource struct { Children *[]TopologySingleResourceChild `json:"children,omitempty"` } +// MarshalJSON is the custom marshaler for TopologySingleResource. +func (tsr TopologySingleResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TopologySingleResourceChild ... type TopologySingleResourceChild struct { // ResourceID - READ-ONLY; Azure resource id which serves as child resource in topology view ResourceID *string `json:"resourceId,omitempty"` } +// MarshalJSON is the custom marshaler for TopologySingleResourceChild. +func (tsrc TopologySingleResourceChild) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TopologySingleResourceParent ... type TopologySingleResourceParent struct { // ResourceID - READ-ONLY; Azure resource id which serves as parent resource in topology view ResourceID *string `json:"resourceId,omitempty"` } +// MarshalJSON is the custom marshaler for TopologySingleResourceParent. +func (tsrp TopologySingleResourceParent) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackedResource describes an Azure tracked resource. type TrackedResource struct { // ID - READ-ONLY; Resource Id @@ -20447,6 +20801,12 @@ type VendorReference struct { Link *string `json:"link,omitempty"` } +// MarshalJSON is the custom marshaler for VendorReference. +func (vr VendorReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VMRecommendation represents a machine that is part of a machine group type VMRecommendation struct { // ConfigurationStatus - Possible values include: 'Configured', 'NotConfigured', 'InProgress', 'Failed', 'NoStatus' diff --git a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/CHANGELOG.md b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/CHANGELOG.md index fbbc79617be8..51192407ac24 100644 --- a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/CHANGELOG.md +++ b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/CHANGELOG.md @@ -4,298 +4,36 @@ ### Removed Constants +1. ActionType.ActionTypeActionTypeAutomationRuleAction +1. ActionType.ActionTypeActionTypeModifyProperties +1. ActionType.ActionTypeActionTypeRunPlaybook +1. ConditionType.ConditionTypeConditionTypeAutomationRuleCondition +1. ConditionType.ConditionTypeConditionTypeProperty +1. Kind.KindKindAggregations +1. Kind.KindKindCasesAggregation + +## Additive Changes + +### New Constants + 1. ActionType.ActionTypeAutomationRuleAction 1. ActionType.ActionTypeModifyProperties 1. ActionType.ActionTypeRunPlaybook -1. AlertSeverity.High -1. AlertSeverity.Informational -1. AlertSeverity.Low -1. AlertSeverity.Medium -1. AntispamMailDirection.Inbound -1. AntispamMailDirection.Intraorg -1. AntispamMailDirection.Outbound -1. AntispamMailDirection.Unknown -1. AttackTactic.Collection -1. AttackTactic.CommandAndControl -1. AttackTactic.CredentialAccess -1. AttackTactic.DefenseEvasion -1. AttackTactic.Discovery -1. AttackTactic.Execution -1. AttackTactic.Exfiltration -1. AttackTactic.Impact -1. AttackTactic.InitialAccess -1. AttackTactic.LateralMovement -1. AttackTactic.Persistence -1. AttackTactic.PreAttack -1. AttackTactic.PrivilegeEscalation -1. AutomationRulePropertyConditionSupportedOperator.Contains -1. AutomationRulePropertyConditionSupportedOperator.EndsWith -1. AutomationRulePropertyConditionSupportedOperator.Equals -1. AutomationRulePropertyConditionSupportedOperator.NotContains -1. AutomationRulePropertyConditionSupportedOperator.NotEndsWith -1. AutomationRulePropertyConditionSupportedOperator.NotEquals -1. AutomationRulePropertyConditionSupportedOperator.NotStartsWith -1. AutomationRulePropertyConditionSupportedOperator.StartsWith -1. CloseReason.Dismissed -1. CloseReason.FalsePositive -1. CloseReason.Other -1. CloseReason.Resolved -1. CloseReason.TruePositive 1. ConditionType.ConditionTypeAutomationRuleCondition 1. ConditionType.ConditionTypeProperty -1. ConfidenceScoreStatus.Final -1. ConfidenceScoreStatus.InProcess -1. ConfidenceScoreStatus.NotApplicable -1. ConfidenceScoreStatus.NotFinal -1. DataConnectorAuthorizationState.Invalid -1. DataConnectorAuthorizationState.Valid -1. DataTypeState.Disabled -1. DataTypeState.Enabled -1. ElevationToken.Default -1. ElevationToken.Full -1. ElevationToken.Limited -1. EntitiesMatchingMethod.All -1. EntitiesMatchingMethod.Custom -1. EntitiesMatchingMethod.None -1. EntityQueryKind.Expansion -1. EntityQueryKind.Insight -1. EventGroupingAggregationKind.AlertPerResult -1. EventGroupingAggregationKind.SingleAlert -1. GroupingEntityType.Account -1. GroupingEntityType.FileHash -1. GroupingEntityType.Host -1. GroupingEntityType.IP -1. GroupingEntityType.URL -1. IncidentClassificationReason.InaccurateData -1. IncidentClassificationReason.IncorrectAlertLogic -1. IncidentClassificationReason.SuspiciousActivity -1. IncidentClassificationReason.SuspiciousButExpected -1. IncidentLabelType.System -1. IncidentLabelType.User 1. Kind.KindAggregations 1. Kind.KindCasesAggregation -1. KindBasicAlertRule.KindAlertRule -1. KindBasicAlertRule.KindFusion -1. KindBasicAlertRule.KindMLBehaviorAnalytics -1. KindBasicAlertRule.KindMicrosoftSecurityIncidentCreation -1. KindBasicAlertRule.KindScheduled -1. KindBasicAlertRule.KindThreatIntelligence -1. KindBasicEntity.KindAccount -1. KindBasicEntity.KindAzureResource -1. KindBasicEntity.KindBookmark -1. KindBasicEntity.KindCloudApplication -1. KindBasicEntity.KindDNSResolution -1. KindBasicEntity.KindEntity -1. KindBasicEntity.KindFile -1. KindBasicEntity.KindFileHash -1. KindBasicEntity.KindHost -1. KindBasicEntity.KindIP -1. KindBasicEntity.KindIoTDevice -1. KindBasicEntity.KindMailCluster -1. KindBasicEntity.KindMailMessage -1. KindBasicEntity.KindMailbox -1. KindBasicEntity.KindMalware -1. KindBasicEntity.KindProcess -1. KindBasicEntity.KindRegistryKey -1. KindBasicEntity.KindRegistryValue -1. KindBasicEntity.KindSecurityAlert -1. KindBasicEntity.KindSecurityGroup -1. KindBasicEntity.KindSubmissionMail -1. KindBasicEntity.KindURL -1. KindBasicEntityQuery.KindEntityQuery -1. KindBasicEntityQuery.KindExpansion -1. KindBasicSettings.KindEntityAnalytics -1. KindBasicSettings.KindEyesOn -1. KindBasicSettings.KindIPSyncer -1. KindBasicSettings.KindSettings -1. KindBasicSettings.KindUeba -1. KindBasicThreatIntelligenceInformation.KindIndicator -1. KindBasicThreatIntelligenceInformation.KindThreatIntelligenceInformation -1. MicrosoftSecurityProductName.AzureActiveDirectoryIdentityProtection -1. MicrosoftSecurityProductName.AzureAdvancedThreatProtection -1. MicrosoftSecurityProductName.AzureSecurityCenter -1. MicrosoftSecurityProductName.AzureSecurityCenterforIoT -1. MicrosoftSecurityProductName.MicrosoftCloudAppSecurity -1. MicrosoftSecurityProductName.MicrosoftDefenderAdvancedThreatProtection -1. MicrosoftSecurityProductName.Office365AdvancedThreatProtection -1. PollingFrequency.OnceADay -1. PollingFrequency.OnceAMinute -1. PollingFrequency.OnceAnHour -1. RegistryHive.HKEYA -1. RegistryHive.HKEYCLASSESROOT -1. RegistryHive.HKEYCURRENTCONFIG -1. RegistryHive.HKEYCURRENTUSER -1. RegistryHive.HKEYCURRENTUSERLOCALSETTINGS -1. RegistryHive.HKEYLOCALMACHINE -1. RegistryHive.HKEYPERFORMANCEDATA -1. RegistryHive.HKEYPERFORMANCENLSTEXT -1. RegistryHive.HKEYPERFORMANCETEXT -1. RegistryHive.HKEYUSERS -1. RelationTypes.CasesToBookmarks -1. Source.Localfile -1. Source.Remotestorage -1. TemplateStatus.Available -1. TemplateStatus.Installed -1. TemplateStatus.NotAvailable -1. ThreatIntelligenceResourceKind.Indicator -1. ThreatIntelligenceSortingCriteria.Ascending -1. ThreatIntelligenceSortingCriteria.Descending -1. ThreatIntelligenceSortingCriteria.Unsorted -1. TriggerOperator.Equal -1. TriggerOperator.GreaterThan -1. TriggerOperator.LessThan -1. TriggerOperator.NotEqual -1. UebaDataSources.AuditLogs -1. UebaDataSources.AzureActivity -1. UebaDataSources.SecurityEvent -1. UebaDataSources.SigninLogs - -## Additive Changes -### New Constants +### New Funcs -1. ActionType.ActionTypeActionTypeAutomationRuleAction -1. ActionType.ActionTypeActionTypeModifyProperties -1. ActionType.ActionTypeActionTypeRunPlaybook -1. AlertSeverity.AlertSeverityHigh -1. AlertSeverity.AlertSeverityInformational -1. AlertSeverity.AlertSeverityLow -1. AlertSeverity.AlertSeverityMedium -1. AntispamMailDirection.AntispamMailDirectionInbound -1. AntispamMailDirection.AntispamMailDirectionIntraorg -1. AntispamMailDirection.AntispamMailDirectionOutbound -1. AntispamMailDirection.AntispamMailDirectionUnknown -1. AttackTactic.AttackTacticCollection -1. AttackTactic.AttackTacticCommandAndControl -1. AttackTactic.AttackTacticCredentialAccess -1. AttackTactic.AttackTacticDefenseEvasion -1. AttackTactic.AttackTacticDiscovery -1. AttackTactic.AttackTacticExecution -1. AttackTactic.AttackTacticExfiltration -1. AttackTactic.AttackTacticImpact -1. AttackTactic.AttackTacticInitialAccess -1. AttackTactic.AttackTacticLateralMovement -1. AttackTactic.AttackTacticPersistence -1. AttackTactic.AttackTacticPreAttack -1. AttackTactic.AttackTacticPrivilegeEscalation -1. AutomationRulePropertyConditionSupportedOperator.AutomationRulePropertyConditionSupportedOperatorContains -1. AutomationRulePropertyConditionSupportedOperator.AutomationRulePropertyConditionSupportedOperatorEndsWith -1. AutomationRulePropertyConditionSupportedOperator.AutomationRulePropertyConditionSupportedOperatorEquals -1. AutomationRulePropertyConditionSupportedOperator.AutomationRulePropertyConditionSupportedOperatorNotContains -1. AutomationRulePropertyConditionSupportedOperator.AutomationRulePropertyConditionSupportedOperatorNotEndsWith -1. AutomationRulePropertyConditionSupportedOperator.AutomationRulePropertyConditionSupportedOperatorNotEquals -1. AutomationRulePropertyConditionSupportedOperator.AutomationRulePropertyConditionSupportedOperatorNotStartsWith -1. AutomationRulePropertyConditionSupportedOperator.AutomationRulePropertyConditionSupportedOperatorStartsWith -1. CloseReason.CloseReasonDismissed -1. CloseReason.CloseReasonFalsePositive -1. CloseReason.CloseReasonOther -1. CloseReason.CloseReasonResolved -1. CloseReason.CloseReasonTruePositive -1. ConditionType.ConditionTypeConditionTypeAutomationRuleCondition -1. ConditionType.ConditionTypeConditionTypeProperty -1. ConfidenceScoreStatus.ConfidenceScoreStatusFinal -1. ConfidenceScoreStatus.ConfidenceScoreStatusInProcess -1. ConfidenceScoreStatus.ConfidenceScoreStatusNotApplicable -1. ConfidenceScoreStatus.ConfidenceScoreStatusNotFinal -1. DataConnectorAuthorizationState.DataConnectorAuthorizationStateInvalid -1. DataConnectorAuthorizationState.DataConnectorAuthorizationStateValid -1. DataTypeState.DataTypeStateDisabled -1. DataTypeState.DataTypeStateEnabled -1. ElevationToken.ElevationTokenDefault -1. ElevationToken.ElevationTokenFull -1. ElevationToken.ElevationTokenLimited -1. EntitiesMatchingMethod.EntitiesMatchingMethodAll -1. EntitiesMatchingMethod.EntitiesMatchingMethodCustom -1. EntitiesMatchingMethod.EntitiesMatchingMethodNone -1. EntityQueryKind.EntityQueryKindExpansion -1. EntityQueryKind.EntityQueryKindInsight -1. EventGroupingAggregationKind.EventGroupingAggregationKindAlertPerResult -1. EventGroupingAggregationKind.EventGroupingAggregationKindSingleAlert -1. GroupingEntityType.GroupingEntityTypeAccount -1. GroupingEntityType.GroupingEntityTypeFileHash -1. GroupingEntityType.GroupingEntityTypeHost -1. GroupingEntityType.GroupingEntityTypeIP -1. GroupingEntityType.GroupingEntityTypeURL -1. IncidentClassificationReason.IncidentClassificationReasonInaccurateData -1. IncidentClassificationReason.IncidentClassificationReasonIncorrectAlertLogic -1. IncidentClassificationReason.IncidentClassificationReasonSuspiciousActivity -1. IncidentClassificationReason.IncidentClassificationReasonSuspiciousButExpected -1. IncidentLabelType.IncidentLabelTypeSystem -1. IncidentLabelType.IncidentLabelTypeUser -1. Kind.KindKindAggregations -1. Kind.KindKindCasesAggregation -1. KindBasicAlertRule.KindBasicAlertRuleKindAlertRule -1. KindBasicAlertRule.KindBasicAlertRuleKindFusion -1. KindBasicAlertRule.KindBasicAlertRuleKindMLBehaviorAnalytics -1. KindBasicAlertRule.KindBasicAlertRuleKindMicrosoftSecurityIncidentCreation -1. KindBasicAlertRule.KindBasicAlertRuleKindScheduled -1. KindBasicAlertRule.KindBasicAlertRuleKindThreatIntelligence -1. KindBasicEntity.KindBasicEntityKindAccount -1. KindBasicEntity.KindBasicEntityKindAzureResource -1. KindBasicEntity.KindBasicEntityKindBookmark -1. KindBasicEntity.KindBasicEntityKindCloudApplication -1. KindBasicEntity.KindBasicEntityKindDNSResolution -1. KindBasicEntity.KindBasicEntityKindEntity -1. KindBasicEntity.KindBasicEntityKindFile -1. KindBasicEntity.KindBasicEntityKindFileHash -1. KindBasicEntity.KindBasicEntityKindHost -1. KindBasicEntity.KindBasicEntityKindIP -1. KindBasicEntity.KindBasicEntityKindIoTDevice -1. KindBasicEntity.KindBasicEntityKindMailCluster -1. KindBasicEntity.KindBasicEntityKindMailMessage -1. KindBasicEntity.KindBasicEntityKindMailbox -1. KindBasicEntity.KindBasicEntityKindMalware -1. KindBasicEntity.KindBasicEntityKindProcess -1. KindBasicEntity.KindBasicEntityKindRegistryKey -1. KindBasicEntity.KindBasicEntityKindRegistryValue -1. KindBasicEntity.KindBasicEntityKindSecurityAlert -1. KindBasicEntity.KindBasicEntityKindSecurityGroup -1. KindBasicEntity.KindBasicEntityKindSubmissionMail -1. KindBasicEntity.KindBasicEntityKindURL -1. KindBasicEntityQuery.KindBasicEntityQueryKindEntityQuery -1. KindBasicEntityQuery.KindBasicEntityQueryKindExpansion -1. KindBasicSettings.KindBasicSettingsKindEntityAnalytics -1. KindBasicSettings.KindBasicSettingsKindEyesOn -1. KindBasicSettings.KindBasicSettingsKindIPSyncer -1. KindBasicSettings.KindBasicSettingsKindSettings -1. KindBasicSettings.KindBasicSettingsKindUeba -1. KindBasicThreatIntelligenceInformation.KindBasicThreatIntelligenceInformationKindIndicator -1. KindBasicThreatIntelligenceInformation.KindBasicThreatIntelligenceInformationKindThreatIntelligenceInformation -1. MicrosoftSecurityProductName.MicrosoftSecurityProductNameAzureActiveDirectoryIdentityProtection -1. MicrosoftSecurityProductName.MicrosoftSecurityProductNameAzureAdvancedThreatProtection -1. MicrosoftSecurityProductName.MicrosoftSecurityProductNameAzureSecurityCenter -1. MicrosoftSecurityProductName.MicrosoftSecurityProductNameAzureSecurityCenterforIoT -1. MicrosoftSecurityProductName.MicrosoftSecurityProductNameMicrosoftCloudAppSecurity -1. MicrosoftSecurityProductName.MicrosoftSecurityProductNameMicrosoftDefenderAdvancedThreatProtection -1. MicrosoftSecurityProductName.MicrosoftSecurityProductNameOffice365AdvancedThreatProtection -1. PollingFrequency.PollingFrequencyOnceADay -1. PollingFrequency.PollingFrequencyOnceAMinute -1. PollingFrequency.PollingFrequencyOnceAnHour -1. RegistryHive.RegistryHiveHKEYA -1. RegistryHive.RegistryHiveHKEYCLASSESROOT -1. RegistryHive.RegistryHiveHKEYCURRENTCONFIG -1. RegistryHive.RegistryHiveHKEYCURRENTUSER -1. RegistryHive.RegistryHiveHKEYCURRENTUSERLOCALSETTINGS -1. RegistryHive.RegistryHiveHKEYLOCALMACHINE -1. RegistryHive.RegistryHiveHKEYPERFORMANCEDATA -1. RegistryHive.RegistryHiveHKEYPERFORMANCENLSTEXT -1. RegistryHive.RegistryHiveHKEYPERFORMANCETEXT -1. RegistryHive.RegistryHiveHKEYUSERS -1. RelationTypes.RelationTypesCasesToBookmarks -1. Source.SourceLocalfile -1. Source.SourceRemotestorage -1. TemplateStatus.TemplateStatusAvailable -1. TemplateStatus.TemplateStatusInstalled -1. TemplateStatus.TemplateStatusNotAvailable -1. ThreatIntelligenceResourceKind.ThreatIntelligenceResourceKindIndicator -1. ThreatIntelligenceSortingCriteria.ThreatIntelligenceSortingCriteriaAscending -1. ThreatIntelligenceSortingCriteria.ThreatIntelligenceSortingCriteriaDescending -1. ThreatIntelligenceSortingCriteria.ThreatIntelligenceSortingCriteriaUnsorted -1. TriggerOperator.TriggerOperatorEqual -1. TriggerOperator.TriggerOperatorGreaterThan -1. TriggerOperator.TriggerOperatorLessThan -1. TriggerOperator.TriggerOperatorNotEqual -1. UebaDataSources.UebaDataSourcesAuditLogs -1. UebaDataSources.UebaDataSourcesAzureActivity -1. UebaDataSources.UebaDataSourcesSecurityEvent -1. UebaDataSources.UebaDataSourcesSigninLogs +1. CasesAggregationBySeverityProperties.MarshalJSON() ([]byte, error) +1. CasesAggregationByStatusProperties.MarshalJSON() ([]byte, error) +1. CloudErrorBody.MarshalJSON() ([]byte, error) +1. EntityAnalyticsProperties.MarshalJSON() ([]byte, error) +1. EyesOnSettingsProperties.MarshalJSON() ([]byte, error) +1. GeoLocation.MarshalJSON() ([]byte, error) +1. IPSyncerSettingsProperties.MarshalJSON() ([]byte, error) +1. IncidentAdditionalData.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. SecurityAlertPropertiesConfidenceReasonsItem.MarshalJSON() ([]byte, error) +1. ThreatIntelligence.MarshalJSON() ([]byte, error) diff --git a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/_meta.json b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/_meta.json index 865575991776..14dfac6e043f 100644 --- a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/_meta.json +++ b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/_meta.json @@ -2,9 +2,9 @@ "commit": "c2ea3a3ccd14293b4bd1d17e684ef9129f0dc604", "readme": "/_/azure-rest-api-specs/specification/securityinsights/resource-manager/readme.md", "tag": "package-2019-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/securityinsights/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/securityinsights/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix" } diff --git a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/enums.go b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/enums.go index ade5b0a8c01b..1614204c001f 100644 --- a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/enums.go +++ b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/enums.go @@ -10,17 +10,17 @@ package securityinsight type ActionType string const ( - // ActionTypeActionTypeAutomationRuleAction ... - ActionTypeActionTypeAutomationRuleAction ActionType = "AutomationRuleAction" - // ActionTypeActionTypeModifyProperties ... - ActionTypeActionTypeModifyProperties ActionType = "ModifyProperties" - // ActionTypeActionTypeRunPlaybook ... - ActionTypeActionTypeRunPlaybook ActionType = "RunPlaybook" + // ActionTypeAutomationRuleAction ... + ActionTypeAutomationRuleAction ActionType = "AutomationRuleAction" + // ActionTypeModifyProperties ... + ActionTypeModifyProperties ActionType = "ModifyProperties" + // ActionTypeRunPlaybook ... + ActionTypeRunPlaybook ActionType = "RunPlaybook" ) // PossibleActionTypeValues returns an array of possible values for the ActionType const type. func PossibleActionTypeValues() []ActionType { - return []ActionType{ActionTypeActionTypeAutomationRuleAction, ActionTypeActionTypeModifyProperties, ActionTypeActionTypeRunPlaybook} + return []ActionType{ActionTypeAutomationRuleAction, ActionTypeModifyProperties, ActionTypeRunPlaybook} } // AlertRuleKind enumerates the values for alert rule kind. @@ -365,15 +365,15 @@ func PossibleCloseReasonValues() []CloseReason { type ConditionType string const ( - // ConditionTypeConditionTypeAutomationRuleCondition ... - ConditionTypeConditionTypeAutomationRuleCondition ConditionType = "AutomationRuleCondition" - // ConditionTypeConditionTypeProperty ... - ConditionTypeConditionTypeProperty ConditionType = "Property" + // ConditionTypeAutomationRuleCondition ... + ConditionTypeAutomationRuleCondition ConditionType = "AutomationRuleCondition" + // ConditionTypeProperty ... + ConditionTypeProperty ConditionType = "Property" ) // PossibleConditionTypeValues returns an array of possible values for the ConditionType const type. func PossibleConditionTypeValues() []ConditionType { - return []ConditionType{ConditionTypeConditionTypeAutomationRuleCondition, ConditionTypeConditionTypeProperty} + return []ConditionType{ConditionTypeAutomationRuleCondition, ConditionTypeProperty} } // ConfidenceLevel enumerates the values for confidence level. @@ -949,15 +949,15 @@ func PossibleKillChainIntentValues() []KillChainIntent { type Kind string const ( - // KindKindAggregations ... - KindKindAggregations Kind = "Aggregations" - // KindKindCasesAggregation ... - KindKindCasesAggregation Kind = "CasesAggregation" + // KindAggregations ... + KindAggregations Kind = "Aggregations" + // KindCasesAggregation ... + KindCasesAggregation Kind = "CasesAggregation" ) // PossibleKindValues returns an array of possible values for the Kind const type. func PossibleKindValues() []Kind { - return []Kind{KindKindAggregations, KindKindCasesAggregation} + return []Kind{KindAggregations, KindCasesAggregation} } // KindBasicAlertRule enumerates the values for kind basic alert rule. diff --git a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/models.go b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/models.go index 562c9da75175..b5703c18279d 100644 --- a/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/models.go +++ b/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight/models.go @@ -1342,7 +1342,7 @@ type Aggregations struct { Name *string `json:"name,omitempty"` // Type - READ-ONLY; Azure resource type Type *string `json:"type,omitempty"` - // Kind - Possible values include: 'KindKindAggregations', 'KindKindCasesAggregation' + // Kind - Possible values include: 'KindAggregations', 'KindCasesAggregation' Kind Kind `json:"kind,omitempty"` } @@ -1354,7 +1354,7 @@ func unmarshalBasicAggregations(body []byte) (BasicAggregations, error) { } switch m["kind"] { - case string(KindKindCasesAggregation): + case string(KindCasesAggregation): var ca CasesAggregation err := json.Unmarshal(body, &ca) return ca, err @@ -1385,7 +1385,7 @@ func unmarshalBasicAggregationsArray(body []byte) ([]BasicAggregations, error) { // MarshalJSON is the custom marshaler for Aggregations. func (a Aggregations) MarshalJSON() ([]byte, error) { - a.Kind = KindKindAggregations + a.Kind = KindAggregations objectMap := make(map[string]interface{}) if a.Kind != "" { objectMap["kind"] = a.Kind @@ -2589,7 +2589,7 @@ type BasicAutomationRuleAction interface { type AutomationRuleAction struct { // Order - The order of execution of the automation rule action Order *int32 `json:"order,omitempty"` - // ActionType - Possible values include: 'ActionTypeActionTypeAutomationRuleAction', 'ActionTypeActionTypeRunPlaybook', 'ActionTypeActionTypeModifyProperties' + // ActionType - Possible values include: 'ActionTypeAutomationRuleAction', 'ActionTypeRunPlaybook', 'ActionTypeModifyProperties' ActionType ActionType `json:"actionType,omitempty"` } @@ -2601,11 +2601,11 @@ func unmarshalBasicAutomationRuleAction(body []byte) (BasicAutomationRuleAction, } switch m["actionType"] { - case string(ActionTypeActionTypeRunPlaybook): + case string(ActionTypeRunPlaybook): var arrpa AutomationRuleRunPlaybookAction err := json.Unmarshal(body, &arrpa) return arrpa, err - case string(ActionTypeActionTypeModifyProperties): + case string(ActionTypeModifyProperties): var armpa AutomationRuleModifyPropertiesAction err := json.Unmarshal(body, &armpa) return armpa, err @@ -2636,7 +2636,7 @@ func unmarshalBasicAutomationRuleActionArray(body []byte) ([]BasicAutomationRule // MarshalJSON is the custom marshaler for AutomationRuleAction. func (ara AutomationRuleAction) MarshalJSON() ([]byte, error) { - ara.ActionType = ActionTypeActionTypeAutomationRuleAction + ara.ActionType = ActionTypeAutomationRuleAction objectMap := make(map[string]interface{}) if ara.Order != nil { objectMap["order"] = ara.Order @@ -2675,7 +2675,7 @@ type BasicAutomationRuleCondition interface { // AutomationRuleCondition describes an automation rule condition type AutomationRuleCondition struct { - // ConditionType - Possible values include: 'ConditionTypeConditionTypeAutomationRuleCondition', 'ConditionTypeConditionTypeProperty' + // ConditionType - Possible values include: 'ConditionTypeAutomationRuleCondition', 'ConditionTypeProperty' ConditionType ConditionType `json:"conditionType,omitempty"` } @@ -2687,7 +2687,7 @@ func unmarshalBasicAutomationRuleCondition(body []byte) (BasicAutomationRuleCond } switch m["conditionType"] { - case string(ConditionTypeConditionTypeProperty): + case string(ConditionTypeProperty): var arpvc AutomationRulePropertyValuesCondition err := json.Unmarshal(body, &arpvc) return arpvc, err @@ -2718,7 +2718,7 @@ func unmarshalBasicAutomationRuleConditionArray(body []byte) ([]BasicAutomationR // MarshalJSON is the custom marshaler for AutomationRuleCondition. func (arc AutomationRuleCondition) MarshalJSON() ([]byte, error) { - arc.ConditionType = ConditionTypeConditionTypeAutomationRuleCondition + arc.ConditionType = ConditionTypeAutomationRuleCondition objectMap := make(map[string]interface{}) if arc.ConditionType != "" { objectMap["conditionType"] = arc.ConditionType @@ -2748,13 +2748,13 @@ type AutomationRuleModifyPropertiesAction struct { ActionConfiguration *AutomationRuleModifyPropertiesActionActionConfiguration `json:"actionConfiguration,omitempty"` // Order - The order of execution of the automation rule action Order *int32 `json:"order,omitempty"` - // ActionType - Possible values include: 'ActionTypeActionTypeAutomationRuleAction', 'ActionTypeActionTypeRunPlaybook', 'ActionTypeActionTypeModifyProperties' + // ActionType - Possible values include: 'ActionTypeAutomationRuleAction', 'ActionTypeRunPlaybook', 'ActionTypeModifyProperties' ActionType ActionType `json:"actionType,omitempty"` } // MarshalJSON is the custom marshaler for AutomationRuleModifyPropertiesAction. func (armpa AutomationRuleModifyPropertiesAction) MarshalJSON() ([]byte, error) { - armpa.ActionType = ActionTypeActionTypeModifyProperties + armpa.ActionType = ActionTypeModifyProperties objectMap := make(map[string]interface{}) if armpa.ActionConfiguration != nil { objectMap["actionConfiguration"] = armpa.ActionConfiguration @@ -2936,13 +2936,13 @@ func (arp *AutomationRuleProperties) UnmarshalJSON(body []byte) error { type AutomationRulePropertyValuesCondition struct { // ConditionProperties - The configuration of the automation rule condition ConditionProperties *AutomationRulePropertyValuesConditionConditionProperties `json:"conditionProperties,omitempty"` - // ConditionType - Possible values include: 'ConditionTypeConditionTypeAutomationRuleCondition', 'ConditionTypeConditionTypeProperty' + // ConditionType - Possible values include: 'ConditionTypeAutomationRuleCondition', 'ConditionTypeProperty' ConditionType ConditionType `json:"conditionType,omitempty"` } // MarshalJSON is the custom marshaler for AutomationRulePropertyValuesCondition. func (arpvc AutomationRulePropertyValuesCondition) MarshalJSON() ([]byte, error) { - arpvc.ConditionType = ConditionTypeConditionTypeProperty + arpvc.ConditionType = ConditionTypeProperty objectMap := make(map[string]interface{}) if arpvc.ConditionProperties != nil { objectMap["conditionProperties"] = arpvc.ConditionProperties @@ -2985,13 +2985,13 @@ type AutomationRuleRunPlaybookAction struct { ActionConfiguration *AutomationRuleRunPlaybookActionActionConfiguration `json:"actionConfiguration,omitempty"` // Order - The order of execution of the automation rule action Order *int32 `json:"order,omitempty"` - // ActionType - Possible values include: 'ActionTypeActionTypeAutomationRuleAction', 'ActionTypeActionTypeRunPlaybook', 'ActionTypeActionTypeModifyProperties' + // ActionType - Possible values include: 'ActionTypeAutomationRuleAction', 'ActionTypeRunPlaybook', 'ActionTypeModifyProperties' ActionType ActionType `json:"actionType,omitempty"` } // MarshalJSON is the custom marshaler for AutomationRuleRunPlaybookAction. func (arrpa AutomationRuleRunPlaybookAction) MarshalJSON() ([]byte, error) { - arrpa.ActionType = ActionTypeActionTypeRunPlaybook + arrpa.ActionType = ActionTypeRunPlaybook objectMap := make(map[string]interface{}) if arrpa.ActionConfiguration != nil { objectMap["actionConfiguration"] = arrpa.ActionConfiguration @@ -5084,13 +5084,13 @@ type CasesAggregation struct { Name *string `json:"name,omitempty"` // Type - READ-ONLY; Azure resource type Type *string `json:"type,omitempty"` - // Kind - Possible values include: 'KindKindAggregations', 'KindKindCasesAggregation' + // Kind - Possible values include: 'KindAggregations', 'KindCasesAggregation' Kind Kind `json:"kind,omitempty"` } // MarshalJSON is the custom marshaler for CasesAggregation. func (ca CasesAggregation) MarshalJSON() ([]byte, error) { - ca.Kind = KindKindCasesAggregation + ca.Kind = KindCasesAggregation objectMap := make(map[string]interface{}) if ca.CasesAggregationProperties != nil { objectMap["properties"] = ca.CasesAggregationProperties @@ -5190,6 +5190,12 @@ type CasesAggregationBySeverityProperties struct { TotalMediumSeverity *int32 `json:"totalMediumSeverity,omitempty"` } +// MarshalJSON is the custom marshaler for CasesAggregationBySeverityProperties. +func (cabsp CasesAggregationBySeverityProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CasesAggregationByStatusProperties aggregative results of cases by status property bag. type CasesAggregationByStatusProperties struct { // TotalDismissedStatus - READ-ONLY; Total amount of closed cases with status Dismissed @@ -5206,6 +5212,12 @@ type CasesAggregationByStatusProperties struct { TotalTruePositiveStatus *int32 `json:"totalTruePositiveStatus,omitempty"` } +// MarshalJSON is the custom marshaler for CasesAggregationByStatusProperties. +func (cabsp CasesAggregationByStatusProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CasesAggregationProperties aggregative results of cases property bag. type CasesAggregationProperties struct { // AggregationBySeverity - Aggregations results by case severity. @@ -5495,6 +5507,12 @@ type CloudErrorBody struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CloudErrorBody. +func (ceb CloudErrorBody) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ConnectedEntity expansion result connected entities type ConnectedEntity struct { // TargetEntityID - Entity Id of the connected entity @@ -7111,6 +7129,12 @@ type EntityAnalyticsProperties struct { IsEnabled *bool `json:"isEnabled,omitempty"` } +// MarshalJSON is the custom marshaler for EntityAnalyticsProperties. +func (eap EntityAnalyticsProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EntityCommonProperties entity common property bag. type EntityCommonProperties struct { // AdditionalData - READ-ONLY; A bag of custom fields that should be part of the entity and will be presented to the user. @@ -8262,6 +8286,12 @@ type EyesOnSettingsProperties struct { IsEnabled *bool `json:"isEnabled,omitempty"` } +// MarshalJSON is the custom marshaler for EyesOnSettingsProperties. +func (eosp EyesOnSettingsProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FileEntity represents a file entity. type FileEntity struct { // FileEntityProperties - File entity properties @@ -9061,6 +9091,12 @@ type GeoLocation struct { State *string `json:"state,omitempty"` } +// MarshalJSON is the custom marshaler for GeoLocation. +func (gl GeoLocation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GetInsightsError getInsights Query Errors. type GetInsightsError struct { // Kind - the query kind @@ -9709,6 +9745,12 @@ type IncidentAdditionalData struct { Tactics *[]AttackTactic `json:"tactics,omitempty"` } +// MarshalJSON is the custom marshaler for IncidentAdditionalData. +func (iad IncidentAdditionalData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IncidentAlertList list of incident alerts. type IncidentAlertList struct { autorest.Response `json:"-"` @@ -11101,6 +11143,12 @@ type IPSyncerSettingsProperties struct { IsEnabled *bool `json:"isEnabled,omitempty"` } +// MarshalJSON is the custom marshaler for IPSyncerSettingsProperties. +func (issp IPSyncerSettingsProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MailboxEntity represents a mailbox entity. type MailboxEntity struct { // MailboxEntityProperties - Mailbox entity properties @@ -16204,6 +16252,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceWithEtag an azure resource object with an Etag property type ResourceWithEtag struct { // ID - READ-ONLY; Azure resource Id @@ -16944,6 +16998,12 @@ type SecurityAlertPropertiesConfidenceReasonsItem struct { ReasonType *string `json:"reasonType,omitempty"` } +// MarshalJSON is the custom marshaler for SecurityAlertPropertiesConfidenceReasonsItem. +func (sapRi SecurityAlertPropertiesConfidenceReasonsItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SecurityAlertTimelineItem represents security alert timeline item. type SecurityAlertTimelineItem struct { // AzureResourceID - The alert azure resource id. @@ -17673,6 +17733,12 @@ type ThreatIntelligence struct { ThreatType *string `json:"threatType,omitempty"` } +// MarshalJSON is the custom marshaler for ThreatIntelligence. +func (ti ThreatIntelligence) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ThreatIntelligenceAlertRule represents Threat Intelligence alert rule. type ThreatIntelligenceAlertRule struct { // ThreatIntelligenceAlertRuleProperties - Threat Intelligence alert rule properties diff --git a/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/CHANGELOG.md b/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/CHANGELOG.md index 52911e4cc5e4..c7d2d2b1c9f2 100644 --- a/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/CHANGELOG.md +++ b/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/CHANGELOG.md @@ -1,2 +1,14 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccessKeys.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorResponseError.MarshalJSON() ([]byte, error) +1. MessageCountDetails.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. PremiumMessagingRegionsProperties.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/_meta.json b/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/_meta.json index 87028b60210b..7148bb2be4b3 100644 --- a/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/_meta.json +++ b/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/servicebus/resource-manager/readme.md", "tag": "package-2018-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/servicebus/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/servicebus/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/models.go b/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/models.go index c80f2b504ecc..430f3d2fb2df 100644 --- a/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/models.go +++ b/services/preview/servicebus/mgmt/2018-01-01-preview/servicebus/models.go @@ -39,6 +39,12 @@ type AccessKeys struct { KeyName *string `json:"keyName,omitempty"` } +// MarshalJSON is the custom marshaler for AccessKeys. +func (ak AccessKeys) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Action represents the filter actions which are allowed for the transformation of a message that have // been matched by a filter expression. type Action struct { @@ -510,6 +516,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse the resource management error response. type ErrorResponse struct { // Error - The error object. @@ -530,6 +542,12 @@ type ErrorResponseError struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponseError. +func (er ErrorResponseError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Eventhub single item in List or Get Event Hub operation type Eventhub struct { // EventhubProperties - Properties supplied to the Create Or Update Event Hub operation. @@ -1127,6 +1145,12 @@ type MessageCountDetails struct { TransferDeadLetterMessageCount *int64 `json:"transferDeadLetterMessageCount,omitempty"` } +// MarshalJSON is the custom marshaler for MessageCountDetails. +func (mcd MessageCountDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MigrationConfigListResult the result of the List migrationConfigurations operation. type MigrationConfigListResult struct { autorest.Response `json:"-"` @@ -1644,6 +1668,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of the request to list ServiceBus operations. It contains a list of // operations and a URL link to get the next set of results. type OperationListResult struct { @@ -1654,6 +1684,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -2011,6 +2047,12 @@ type PremiumMessagingRegionsProperties struct { FullName *string `json:"fullName,omitempty"` } +// MarshalJSON is the custom marshaler for PremiumMessagingRegionsProperties. +func (pmr PremiumMessagingRegionsProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpoint privateEndpoint information. type PrivateEndpoint struct { // ID - The ARM identifier for Private Endpoint. @@ -2415,6 +2457,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceNamespacePatch the Resource definition. type ResourceNamespacePatch struct { // Location - Resource location diff --git a/services/preview/servicefabric/mgmt/2017-07-01-preview/servicefabric/CHANGELOG.md b/services/preview/servicefabric/mgmt/2017-07-01-preview/servicefabric/CHANGELOG.md index 52911e4cc5e4..fa0ec354fa9f 100644 --- a/services/preview/servicefabric/mgmt/2017-07-01-preview/servicefabric/CHANGELOG.md +++ b/services/preview/servicefabric/mgmt/2017-07-01-preview/servicefabric/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. ApplicationTypeProperties.MarshalJSON() ([]byte, error) diff --git a/services/preview/servicefabric/mgmt/2017-07-01-preview/servicefabric/_meta.json b/services/preview/servicefabric/mgmt/2017-07-01-preview/servicefabric/_meta.json index 9a888aae17d9..e7969c00e617 100644 --- a/services/preview/servicefabric/mgmt/2017-07-01-preview/servicefabric/_meta.json +++ b/services/preview/servicefabric/mgmt/2017-07-01-preview/servicefabric/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/servicefabric/resource-manager/readme.md", "tag": "package-2017-07", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/servicefabric/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/servicefabric/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/servicefabric/mgmt/2017-07-01-preview/servicefabric/models.go b/services/preview/servicefabric/mgmt/2017-07-01-preview/servicefabric/models.go index 2838a3791af8..5764f0308cee 100644 --- a/services/preview/servicefabric/mgmt/2017-07-01-preview/servicefabric/models.go +++ b/services/preview/servicefabric/mgmt/2017-07-01-preview/servicefabric/models.go @@ -294,6 +294,12 @@ type ApplicationTypeProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationTypeProperties. +func (atp ApplicationTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationTypeResource the application type name resource type ApplicationTypeResource struct { *ApplicationTypeProperties `json:"properties,omitempty"` diff --git a/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/CHANGELOG.md b/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/CHANGELOG.md index 52911e4cc5e4..d306fe1ff4c3 100644 --- a/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/CHANGELOG.md +++ b/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. ApplicationTypeResourceProperties.MarshalJSON() ([]byte, error) diff --git a/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/_meta.json b/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/_meta.json index 858e0bb3b4a8..08ec1efeb27a 100644 --- a/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/_meta.json +++ b/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/servicefabric/resource-manager/readme.md", "tag": "package-2018-02", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/servicefabric/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/servicefabric/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/models.go b/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/models.go index e2c3e25e79a4..3f7b7069a6af 100644 --- a/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/models.go +++ b/services/preview/servicefabric/mgmt/2018-02-01-preview/servicefabric/models.go @@ -583,6 +583,12 @@ type ApplicationTypeResourceProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationTypeResourceProperties. +func (atrp ApplicationTypeResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationTypesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ApplicationTypesDeleteFuture struct { diff --git a/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/CHANGELOG.md b/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/CHANGELOG.md index 52911e4cc5e4..d306fe1ff4c3 100644 --- a/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/CHANGELOG.md +++ b/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. ApplicationTypeResourceProperties.MarshalJSON() ([]byte, error) diff --git a/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/_meta.json b/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/_meta.json index 193a416bcf35..3d16bcd9f979 100644 --- a/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/_meta.json +++ b/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/servicefabric/resource-manager/readme.md", "tag": "package-2019-03-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-03-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/servicefabric/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-03-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/servicefabric/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/models.go b/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/models.go index 91fd025f709c..ebf952fee6c3 100644 --- a/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/models.go +++ b/services/preview/servicefabric/mgmt/2019-03-01-preview/servicefabric/models.go @@ -680,6 +680,12 @@ type ApplicationTypeResourceProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationTypeResourceProperties. +func (atrp ApplicationTypeResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationTypesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ApplicationTypesDeleteFuture struct { diff --git a/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/CHANGELOG.md b/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/CHANGELOG.md index 52911e4cc5e4..e6ae4a0732b5 100644 --- a/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/CHANGELOG.md +++ b/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. ProvisionedResourceProperties.MarshalJSON() ([]byte, error) diff --git a/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/_meta.json b/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/_meta.json index eaac420b1d90..62ec0341bb99 100644 --- a/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/_meta.json +++ b/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/servicefabricmesh/resource-manager/readme.md", "tag": "package-2018-07-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-07-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/servicefabricmesh/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-07-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/servicefabricmesh/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/models.go b/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/models.go index 1883be81fd5a..6ae26c7961e1 100644 --- a/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/models.go +++ b/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/models.go @@ -1303,6 +1303,12 @@ type ProvisionedResourceProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ProvisionedResourceProperties. +func (prp ProvisionedResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProxyResource the resource model definition for Azure Resource Manager proxy resource. It will have // everything other than required location and tags. type ProxyResource struct { diff --git a/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/CHANGELOG.md b/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/CHANGELOG.md index 52911e4cc5e4..9140c1ae8bed 100644 --- a/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/CHANGELOG.md +++ b/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. ProvisionedResourceProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/_meta.json b/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/_meta.json index 4846c26dfc6a..053f95d52124 100644 --- a/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/_meta.json +++ b/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/servicefabricmesh/resource-manager/readme.md", "tag": "package-2018-09-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-09-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/servicefabricmesh/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-09-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/servicefabricmesh/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/models.go b/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/models.go index da7fb888c198..4644e8cf10dc 100644 --- a/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/models.go +++ b/services/preview/servicefabricmesh/mgmt/2018-09-01-preview/servicefabricmesh/models.go @@ -2616,6 +2616,12 @@ type ProvisionedResourceProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ProvisionedResourceProperties. +func (prp ProvisionedResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProxyResource the resource model definition for Azure Resource Manager proxy resource. It will have // everything other than required location and tags. type ProxyResource struct { @@ -2627,6 +2633,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReliableCollectionsRef specifying this parameter adds support for reliable collections type ReliableCollectionsRef struct { // Name - Name of ReliableCollection resource. Right now it's not used and you can use any string. @@ -2645,6 +2657,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceLimits this type describes the resource limits for a given container. It describes the most // amount of resources a container is allowed to use before being restarted. type ResourceLimits struct { diff --git a/services/preview/signalr/mgmt/2018-03-01-preview/signalr/CHANGELOG.md b/services/preview/signalr/mgmt/2018-03-01-preview/signalr/CHANGELOG.md index 52911e4cc5e4..f817772e217f 100644 --- a/services/preview/signalr/mgmt/2018-03-01-preview/signalr/CHANGELOG.md +++ b/services/preview/signalr/mgmt/2018-03-01-preview/signalr/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/signalr/mgmt/2018-03-01-preview/signalr/_meta.json b/services/preview/signalr/mgmt/2018-03-01-preview/signalr/_meta.json index e90767eaff70..99302a157700 100644 --- a/services/preview/signalr/mgmt/2018-03-01-preview/signalr/_meta.json +++ b/services/preview/signalr/mgmt/2018-03-01-preview/signalr/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/signalr/resource-manager/readme.md", "tag": "package-2018-03-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-03-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/signalr/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-03-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/signalr/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/signalr/mgmt/2018-03-01-preview/signalr/models.go b/services/preview/signalr/mgmt/2018-03-01-preview/signalr/models.go index b92bdf18df27..96e6d80ec9c7 100644 --- a/services/preview/signalr/mgmt/2018-03-01-preview/signalr/models.go +++ b/services/preview/signalr/mgmt/2018-03-01-preview/signalr/models.go @@ -486,6 +486,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceList object that includes an array of SignalR services and a possible link for next set. type ResourceList struct { autorest.Response `json:"-"` diff --git a/services/preview/signalr/mgmt/2020-07-01-preview/signalr/CHANGELOG.md b/services/preview/signalr/mgmt/2020-07-01-preview/signalr/CHANGELOG.md index 52911e4cc5e4..01d9141d8f96 100644 --- a/services/preview/signalr/mgmt/2020-07-01-preview/signalr/CHANGELOG.md +++ b/services/preview/signalr/mgmt/2020-07-01-preview/signalr/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. UserAssignedIdentityProperty.MarshalJSON() ([]byte, error) diff --git a/services/preview/signalr/mgmt/2020-07-01-preview/signalr/_meta.json b/services/preview/signalr/mgmt/2020-07-01-preview/signalr/_meta.json index 7bf41917204c..28b3980b84c8 100644 --- a/services/preview/signalr/mgmt/2020-07-01-preview/signalr/_meta.json +++ b/services/preview/signalr/mgmt/2020-07-01-preview/signalr/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/signalr/resource-manager/readme.md", "tag": "package-2020-07-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-07-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/signalr/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-07-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/signalr/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/signalr/mgmt/2020-07-01-preview/signalr/models.go b/services/preview/signalr/mgmt/2020-07-01-preview/signalr/models.go index ae773be7f8e3..fed48d35529a 100644 --- a/services/preview/signalr/mgmt/2020-07-01-preview/signalr/models.go +++ b/services/preview/signalr/mgmt/2020-07-01-preview/signalr/models.go @@ -952,6 +952,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegenerateKeyFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type RegenerateKeyFuture struct { @@ -1011,6 +1017,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceList object that includes an array of SignalR services and a possible link for next set. type ResourceList struct { autorest.Response `json:"-"` @@ -1686,3 +1698,9 @@ type UserAssignedIdentityProperty struct { // ClientID - READ-ONLY; Get the client id for the user assigned identity ClientID *string `json:"clientId,omitempty"` } + +// MarshalJSON is the custom marshaler for UserAssignedIdentityProperty. +func (uaip UserAssignedIdentityProperty) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/preview/signalr/mgmt/2021-04-01-preview/signalr/CHANGELOG.md b/services/preview/signalr/mgmt/2021-04-01-preview/signalr/CHANGELOG.md index 4bc39f8fd071..35dd4e58b82b 100644 --- a/services/preview/signalr/mgmt/2021-04-01-preview/signalr/CHANGELOG.md +++ b/services/preview/signalr/mgmt/2021-04-01-preview/signalr/CHANGELOG.md @@ -1,79 +1,11 @@ # Change History -## Breaking Changes - -### Removed Constants - -1. ACLAction.Allow -1. ACLAction.Deny -1. FeatureFlags.EnableConnectivityLogs -1. FeatureFlags.EnableLiveTrace -1. FeatureFlags.EnableMessagingLogs -1. FeatureFlags.ServiceMode -1. KeyType.Primary -1. KeyType.Secondary -1. ManagedIdentityType.None -1. ManagedIdentityType.SystemAssigned -1. ManagedIdentityType.UserAssigned -1. PrivateLinkServiceConnectionStatus.Approved -1. PrivateLinkServiceConnectionStatus.Disconnected -1. PrivateLinkServiceConnectionStatus.Pending -1. PrivateLinkServiceConnectionStatus.Rejected -1. ProvisioningState.Canceled -1. ProvisioningState.Creating -1. ProvisioningState.Deleting -1. ProvisioningState.Failed -1. ProvisioningState.Moving -1. ProvisioningState.Running -1. ProvisioningState.Succeeded -1. ProvisioningState.Unknown -1. ProvisioningState.Updating -1. RequestType.ClientConnection -1. RequestType.RESTAPI -1. RequestType.ServerConnection -1. RequestType.Trace -1. ServiceKind.RawWebSockets -1. ServiceKind.SignalR -1. SkuTier.Basic -1. SkuTier.Free -1. SkuTier.Premium -1. SkuTier.Standard - ## Additive Changes -### New Constants +### New Funcs -1. ACLAction.ACLActionAllow -1. ACLAction.ACLActionDeny -1. FeatureFlags.FeatureFlagsEnableConnectivityLogs -1. FeatureFlags.FeatureFlagsEnableLiveTrace -1. FeatureFlags.FeatureFlagsEnableMessagingLogs -1. FeatureFlags.FeatureFlagsServiceMode -1. KeyType.KeyTypePrimary -1. KeyType.KeyTypeSecondary -1. ManagedIdentityType.ManagedIdentityTypeNone -1. ManagedIdentityType.ManagedIdentityTypeSystemAssigned -1. ManagedIdentityType.ManagedIdentityTypeUserAssigned -1. PrivateLinkServiceConnectionStatus.PrivateLinkServiceConnectionStatusApproved -1. PrivateLinkServiceConnectionStatus.PrivateLinkServiceConnectionStatusDisconnected -1. PrivateLinkServiceConnectionStatus.PrivateLinkServiceConnectionStatusPending -1. PrivateLinkServiceConnectionStatus.PrivateLinkServiceConnectionStatusRejected -1. ProvisioningState.ProvisioningStateCanceled -1. ProvisioningState.ProvisioningStateCreating -1. ProvisioningState.ProvisioningStateDeleting -1. ProvisioningState.ProvisioningStateFailed -1. ProvisioningState.ProvisioningStateMoving -1. ProvisioningState.ProvisioningStateRunning -1. ProvisioningState.ProvisioningStateSucceeded -1. ProvisioningState.ProvisioningStateUnknown -1. ProvisioningState.ProvisioningStateUpdating -1. RequestType.RequestTypeClientConnection -1. RequestType.RequestTypeRESTAPI -1. RequestType.RequestTypeServerConnection -1. RequestType.RequestTypeTrace -1. ServiceKind.ServiceKindRawWebSockets -1. ServiceKind.ServiceKindSignalR -1. SkuTier.SkuTierBasic -1. SkuTier.SkuTierFree -1. SkuTier.SkuTierPremium -1. SkuTier.SkuTierStandard +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorDetail.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. UserAssignedIdentityProperty.MarshalJSON() ([]byte, error) diff --git a/services/preview/signalr/mgmt/2021-04-01-preview/signalr/_meta.json b/services/preview/signalr/mgmt/2021-04-01-preview/signalr/_meta.json index f7cc7736d6f8..5470b59f4a61 100644 --- a/services/preview/signalr/mgmt/2021-04-01-preview/signalr/_meta.json +++ b/services/preview/signalr/mgmt/2021-04-01-preview/signalr/_meta.json @@ -2,9 +2,9 @@ "commit": "ea5bc27ee9cadeb67767d774c82095be2420bcad", "readme": "/_/azure-rest-api-specs/specification/signalr/resource-manager/readme.md", "tag": "package-2021-04-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2021-04-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/signalr/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2021-04-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/signalr/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix" } diff --git a/services/preview/signalr/mgmt/2021-04-01-preview/signalr/models.go b/services/preview/signalr/mgmt/2021-04-01-preview/signalr/models.go index 24d9c686a3d3..061c414f8b02 100644 --- a/services/preview/signalr/mgmt/2021-04-01-preview/signalr/models.go +++ b/services/preview/signalr/mgmt/2021-04-01-preview/signalr/models.go @@ -125,6 +125,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetail the error detail. type ErrorDetail struct { // Code - READ-ONLY; The error code. @@ -139,6 +145,12 @@ type ErrorDetail struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetail. +func (ed ErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.). type ErrorResponse struct { @@ -1121,6 +1133,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegenerateKeyFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type RegenerateKeyFuture struct { @@ -1180,6 +1198,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceList object that includes an array of resources and a possible link for next set. type ResourceList struct { autorest.Response `json:"-"` @@ -2270,3 +2294,9 @@ type UserAssignedIdentityProperty struct { // ClientID - READ-ONLY; Get the client id for the user assigned identity ClientID *string `json:"clientId,omitempty"` } + +// MarshalJSON is the custom marshaler for UserAssignedIdentityProperty. +func (uaip UserAssignedIdentityProperty) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/preview/softwareplan/mgmt/2019-06-01-preview/softwareplan/CHANGELOG.md b/services/preview/softwareplan/mgmt/2019-06-01-preview/softwareplan/CHANGELOG.md index 52911e4cc5e4..3b22578c40e2 100644 --- a/services/preview/softwareplan/mgmt/2019-06-01-preview/softwareplan/CHANGELOG.md +++ b/services/preview/softwareplan/mgmt/2019-06-01-preview/softwareplan/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. HybridUseBenefitProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/softwareplan/mgmt/2019-06-01-preview/softwareplan/_meta.json b/services/preview/softwareplan/mgmt/2019-06-01-preview/softwareplan/_meta.json index 4078a7e6057b..8b9802763129 100644 --- a/services/preview/softwareplan/mgmt/2019-06-01-preview/softwareplan/_meta.json +++ b/services/preview/softwareplan/mgmt/2019-06-01-preview/softwareplan/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/softwareplan/resource-manager/readme.md", "tag": "package-2019-06-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-06-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/softwareplan/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-06-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/softwareplan/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/softwareplan/mgmt/2019-06-01-preview/softwareplan/models.go b/services/preview/softwareplan/mgmt/2019-06-01-preview/softwareplan/models.go index 0ebd1a299e65..58b7ebd24070 100644 --- a/services/preview/softwareplan/mgmt/2019-06-01-preview/softwareplan/models.go +++ b/services/preview/softwareplan/mgmt/2019-06-01-preview/softwareplan/models.go @@ -31,6 +31,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Error error object returned by the RP type Error struct { // Code - Error code. Possible values include: 'InvalidRequestParameter', 'MissingRequestParameter' @@ -307,6 +313,12 @@ type HybridUseBenefitProperties struct { LastUpdatedDate *date.Time `json:"lastUpdatedDate,omitempty"` } +// MarshalJSON is the custom marshaler for HybridUseBenefitProperties. +func (hubp HybridUseBenefitProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationDisplay display fields for an operation. type OperationDisplay struct { // Provider - Resource Provider name @@ -499,6 +511,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -509,6 +527,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Sku the SKU to be applied for this resource type Sku struct { // Name - Name of the SKU to be applied diff --git a/services/preview/sql/mgmt/2015-05-01-preview/sql/CHANGELOG.md b/services/preview/sql/mgmt/2015-05-01-preview/sql/CHANGELOG.md index 52911e4cc5e4..c052b188e5fa 100644 --- a/services/preview/sql/mgmt/2015-05-01-preview/sql/CHANGELOG.md +++ b/services/preview/sql/mgmt/2015-05-01-preview/sql/CHANGELOG.md @@ -1,2 +1,56 @@ # Change History +## Additive Changes + +### New Funcs + +1. CheckNameAvailabilityResponse.MarshalJSON() ([]byte, error) +1. DatabaseBlobAuditingPolicyListResult.MarshalJSON() ([]byte, error) +1. DatabaseUsage.MarshalJSON() ([]byte, error) +1. ElasticPoolActivityProperties.MarshalJSON() ([]byte, error) +1. ElasticPoolDatabaseActivityProperties.MarshalJSON() ([]byte, error) +1. EncryptionProtectorListResult.MarshalJSON() ([]byte, error) +1. FailoverGroupListResult.MarshalJSON() ([]byte, error) +1. ImportExportResponseProperties.MarshalJSON() ([]byte, error) +1. ManagedInstanceListResult.MarshalJSON() ([]byte, error) +1. Metric.MarshalJSON() ([]byte, error) +1. MetricAvailability.MarshalJSON() ([]byte, error) +1. MetricDefinition.MarshalJSON() ([]byte, error) +1. MetricName.MarshalJSON() ([]byte, error) +1. MetricValue.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationImpact.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. PerformanceLevelCapability.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. RecommendedIndexProperties.MarshalJSON() ([]byte, error) +1. RecoverableDatabaseProperties.MarshalJSON() ([]byte, error) +1. ReplicationLinkProperties.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. RestorableDroppedDatabaseProperties.MarshalJSON() ([]byte, error) +1. RestorePointProperties.MarshalJSON() ([]byte, error) +1. ServerKeyListResult.MarshalJSON() ([]byte, error) +1. ServerListResult.MarshalJSON() ([]byte, error) +1. ServerUsage.MarshalJSON() ([]byte, error) +1. ServiceObjectiveProperties.MarshalJSON() ([]byte, error) +1. ServiceTierAdvisorProperties.MarshalJSON() ([]byte, error) +1. SloUsageMetric.MarshalJSON() ([]byte, error) +1. SubscriptionUsageListResult.MarshalJSON() ([]byte, error) +1. SubscriptionUsageProperties.MarshalJSON() ([]byte, error) +1. SyncAgentKeyProperties.MarshalJSON() ([]byte, error) +1. SyncAgentLinkedDatabaseListResult.MarshalJSON() ([]byte, error) +1. SyncAgentLinkedDatabaseProperties.MarshalJSON() ([]byte, error) +1. SyncAgentListResult.MarshalJSON() ([]byte, error) +1. SyncDatabaseIDListResult.MarshalJSON() ([]byte, error) +1. SyncDatabaseIDProperties.MarshalJSON() ([]byte, error) +1. SyncFullSchemaProperties.MarshalJSON() ([]byte, error) +1. SyncFullSchemaPropertiesListResult.MarshalJSON() ([]byte, error) +1. SyncFullSchemaTable.MarshalJSON() ([]byte, error) +1. SyncFullSchemaTableColumn.MarshalJSON() ([]byte, error) +1. SyncGroupListResult.MarshalJSON() ([]byte, error) +1. SyncGroupLogListResult.MarshalJSON() ([]byte, error) +1. SyncGroupLogProperties.MarshalJSON() ([]byte, error) +1. SyncMemberListResult.MarshalJSON() ([]byte, error) +1. TransparentDataEncryptionActivityProperties.MarshalJSON() ([]byte, error) +1. VirtualClusterListResult.MarshalJSON() ([]byte, error) +1. VirtualNetworkRuleListResult.MarshalJSON() ([]byte, error) diff --git a/services/preview/sql/mgmt/2015-05-01-preview/sql/_meta.json b/services/preview/sql/mgmt/2015-05-01-preview/sql/_meta.json index fd555356b41f..9b875701c866 100644 --- a/services/preview/sql/mgmt/2015-05-01-preview/sql/_meta.json +++ b/services/preview/sql/mgmt/2015-05-01-preview/sql/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/sql/resource-manager/readme.md", "tag": "package-2015-05-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2015-05-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/sql/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2015-05-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/sql/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/sql/mgmt/2015-05-01-preview/sql/models.go b/services/preview/sql/mgmt/2015-05-01-preview/sql/models.go index 51eabd03c5d5..ea49f3695935 100644 --- a/services/preview/sql/mgmt/2015-05-01-preview/sql/models.go +++ b/services/preview/sql/mgmt/2015-05-01-preview/sql/models.go @@ -43,6 +43,12 @@ type CheckNameAvailabilityResponse struct { Reason CheckNameAvailabilityReason `json:"reason,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResponse. +func (cnar CheckNameAvailabilityResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Database represents a database. type Database struct { autorest.Response `json:"-"` @@ -248,6 +254,12 @@ type DatabaseBlobAuditingPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseBlobAuditingPolicyListResult. +func (dbaplr DatabaseBlobAuditingPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseBlobAuditingPolicyListResultIterator provides access to a complete listing of // DatabaseBlobAuditingPolicy values. type DatabaseBlobAuditingPolicyListResultIterator struct { @@ -1147,6 +1159,12 @@ type DatabaseUsage struct { NextResetTime *date.Time `json:"nextResetTime,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseUsage. +func (du DatabaseUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseUsageListResult the response to a list database metrics request. type DatabaseUsageListResult struct { autorest.Response `json:"-"` @@ -1712,6 +1730,12 @@ type ElasticPoolActivityProperties struct { RequestedDtuGuarantee *int32 `json:"requestedDtuGuarantee,omitempty"` } +// MarshalJSON is the custom marshaler for ElasticPoolActivityProperties. +func (epap ElasticPoolActivityProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ElasticPoolDatabaseActivity represents the activity on an elastic pool. type ElasticPoolDatabaseActivity struct { // Location - The geo-location where the resource lives @@ -1840,6 +1864,12 @@ type ElasticPoolDatabaseActivityProperties struct { State *string `json:"state,omitempty"` } +// MarshalJSON is the custom marshaler for ElasticPoolDatabaseActivityProperties. +func (epdap ElasticPoolDatabaseActivityProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ElasticPoolDtuCapability the Elastic Pool DTU capability. type ElasticPoolDtuCapability struct { // Limit - READ-ONLY; The DTU limit for the pool. @@ -2257,6 +2287,12 @@ type EncryptionProtectorListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for EncryptionProtectorListResult. +func (eplr EncryptionProtectorListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EncryptionProtectorListResultIterator provides access to a complete listing of EncryptionProtector // values. type EncryptionProtectorListResultIterator struct { @@ -2637,6 +2673,12 @@ type FailoverGroupListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for FailoverGroupListResult. +func (fglr FailoverGroupListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FailoverGroupListResultIterator provides access to a complete listing of FailoverGroup values. type FailoverGroupListResultIterator struct { i int @@ -3431,6 +3473,12 @@ type ImportExportResponseProperties struct { ErrorMessage *string `json:"errorMessage,omitempty"` } +// MarshalJSON is the custom marshaler for ImportExportResponseProperties. +func (ierp ImportExportResponseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImportExtensionProperties represents the properties for an import operation type ImportExtensionProperties struct { // OperationMode - The type of import operation being performed. This is always Import. @@ -3711,6 +3759,12 @@ type ManagedInstanceListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceListResult. +func (milr ManagedInstanceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstanceListResultIterator provides access to a complete listing of ManagedInstance values. type ManagedInstanceListResultIterator struct { i int @@ -4198,6 +4252,12 @@ type Metric struct { MetricValues *[]MetricValue `json:"metricValues,omitempty"` } +// MarshalJSON is the custom marshaler for Metric. +func (mVar Metric) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricAvailability a metric availability value. type MetricAvailability struct { // Retention - READ-ONLY; The length of retention for the database metric. @@ -4206,6 +4266,12 @@ type MetricAvailability struct { TimeGrain *string `json:"timeGrain,omitempty"` } +// MarshalJSON is the custom marshaler for MetricAvailability. +func (ma MetricAvailability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricDefinition a database metric definition. type MetricDefinition struct { // Name - READ-ONLY; The name information for the metric. @@ -4220,6 +4286,12 @@ type MetricDefinition struct { MetricAvailabilities *[]MetricAvailability `json:"metricAvailabilities,omitempty"` } +// MarshalJSON is the custom marshaler for MetricDefinition. +func (md MetricDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricDefinitionListResult the response to a list database metric definitions request. type MetricDefinitionListResult struct { autorest.Response `json:"-"` @@ -4242,6 +4314,12 @@ type MetricName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for MetricName. +func (mn MetricName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricValue represents database metrics. type MetricValue struct { // Count - READ-ONLY; The number of values for the metric. @@ -4258,6 +4336,12 @@ type MetricValue struct { Total *float64 `json:"total,omitempty"` } +// MarshalJSON is the custom marshaler for MetricValue. +func (mv MetricValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation SQL REST API operation definition. type Operation struct { // Name - READ-ONLY; The name of the operation being performed on this particular object. @@ -4288,6 +4372,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (od OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationImpact the impact of an operation, both in absolute and relative terms. type OperationImpact struct { // Name - READ-ONLY; The name of the impact dimension. @@ -4300,6 +4390,12 @@ type OperationImpact struct { ChangeValueRelative *float64 `json:"changeValueRelative,omitempty"` } +// MarshalJSON is the custom marshaler for OperationImpact. +func (oi OperationImpact) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of the request to list SQL operations. type OperationListResult struct { autorest.Response `json:"-"` @@ -4309,6 +4405,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -4486,6 +4588,12 @@ type PerformanceLevelCapability struct { Unit PerformanceLevelUnit `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for PerformanceLevelCapability. +func (plc PerformanceLevelCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProxyResource ARM proxy resource. type ProxyResource struct { // ID - READ-ONLY; Resource ID. @@ -4496,6 +4604,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RecommendedIndex represents a database recommended index. type RecommendedIndex struct { // RecommendedIndexProperties - READ-ONLY; The properties representing the resource. @@ -4593,6 +4707,12 @@ type RecommendedIndexProperties struct { ReportedImpact *[]OperationImpact `json:"reportedImpact,omitempty"` } +// MarshalJSON is the custom marshaler for RecommendedIndexProperties. +func (rip RecommendedIndexProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RecoverableDatabase a recoverable database type RecoverableDatabase struct { autorest.Response `json:"-"` @@ -4685,6 +4805,12 @@ type RecoverableDatabaseProperties struct { LastAvailableBackupDate *date.Time `json:"lastAvailableBackupDate,omitempty"` } +// MarshalJSON is the custom marshaler for RecoverableDatabaseProperties. +func (rdp RecoverableDatabaseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReplicationLink represents a database replication link. type ReplicationLink struct { autorest.Response `json:"-"` @@ -4800,6 +4926,12 @@ type ReplicationLinkProperties struct { ReplicationState ReplicationState `json:"replicationState,omitempty"` } +// MarshalJSON is the custom marshaler for ReplicationLinkProperties. +func (rlp ReplicationLinkProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReplicationLinksFailoverAllowDataLossFuture an abstraction for monitoring and retrieving the results of // a long-running operation. type ReplicationLinksFailoverAllowDataLossFuture struct { @@ -4921,6 +5053,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceIdentity azure Active Directory identity configuration for a resource. type ResourceIdentity struct { // PrincipalID - READ-ONLY; The Azure Active Directory principal id. @@ -5051,6 +5189,12 @@ type RestorableDroppedDatabaseProperties struct { EarliestRestoreDate *date.Time `json:"earliestRestoreDate,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableDroppedDatabaseProperties. +func (rddp RestorableDroppedDatabaseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorePoint a database restore point. type RestorePoint struct { // RestorePointProperties - The properties of the restore point. @@ -5140,6 +5284,12 @@ type RestorePointProperties struct { EarliestRestoreDate *date.Time `json:"earliestRestoreDate,omitempty"` } +// MarshalJSON is the custom marshaler for RestorePointProperties. +func (rpp RestorePointProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Server an Azure SQL Database server. type Server struct { autorest.Response `json:"-"` @@ -5814,6 +5964,12 @@ type ServerKeyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ServerKeyListResult. +func (sklr ServerKeyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerKeyListResultIterator provides access to a complete listing of ServerKey values. type ServerKeyListResultIterator struct { i int @@ -6085,6 +6241,12 @@ type ServerListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ServerListResult. +func (slr ServerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerListResultIterator provides access to a complete listing of Server values. type ServerListResultIterator struct { i int @@ -6458,6 +6620,12 @@ type ServerUsage struct { NextResetTime *date.Time `json:"nextResetTime,omitempty"` } +// MarshalJSON is the custom marshaler for ServerUsage. +func (su ServerUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerUsageListResult represents the response to a list server metrics request. type ServerUsageListResult struct { autorest.Response `json:"-"` @@ -6609,6 +6777,12 @@ type ServiceObjectiveProperties struct { Enabled *bool `json:"enabled,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceObjectiveProperties. +func (sop ServiceObjectiveProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceTierAdvisor represents a Service Tier Advisor. type ServiceTierAdvisor struct { autorest.Response `json:"-"` @@ -6728,6 +6902,12 @@ type ServiceTierAdvisorProperties struct { Confidence *float64 `json:"confidence,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTierAdvisorProperties. +func (stap ServiceTierAdvisorProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Sku an ARM Resource SKU. type Sku struct { // Name - The name of the SKU, typically, a letter + Number code, e.g. P3. @@ -6752,6 +6932,12 @@ type SloUsageMetric struct { InRangeTimeRatio *float64 `json:"inRangeTimeRatio,omitempty"` } +// MarshalJSON is the custom marshaler for SloUsageMetric. +func (sum SloUsageMetric) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SubscriptionUsage usage Metric of a Subscription in a Location. type SubscriptionUsage struct { autorest.Response `json:"-"` @@ -6834,6 +7020,12 @@ type SubscriptionUsageListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SubscriptionUsageListResult. +func (sulr SubscriptionUsageListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SubscriptionUsageListResultIterator provides access to a complete listing of SubscriptionUsage values. type SubscriptionUsageListResultIterator struct { i int @@ -6996,6 +7188,12 @@ type SubscriptionUsageProperties struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for SubscriptionUsageProperties. +func (sup SubscriptionUsageProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncAgent an Azure SQL Database sync agent. type SyncAgent struct { autorest.Response `json:"-"` @@ -7076,6 +7274,12 @@ type SyncAgentKeyProperties struct { SyncAgentKey *string `json:"syncAgentKey,omitempty"` } +// MarshalJSON is the custom marshaler for SyncAgentKeyProperties. +func (sakp SyncAgentKeyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncAgentLinkedDatabase an Azure SQL Database sync agent linked database. type SyncAgentLinkedDatabase struct { // SyncAgentLinkedDatabaseProperties - Resource properties. @@ -7157,6 +7361,12 @@ type SyncAgentLinkedDatabaseListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SyncAgentLinkedDatabaseListResult. +func (saldlr SyncAgentLinkedDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncAgentLinkedDatabaseListResultIterator provides access to a complete listing of // SyncAgentLinkedDatabase values. type SyncAgentLinkedDatabaseListResultIterator struct { @@ -7324,6 +7534,12 @@ type SyncAgentLinkedDatabaseProperties struct { UserName *string `json:"userName,omitempty"` } +// MarshalJSON is the custom marshaler for SyncAgentLinkedDatabaseProperties. +func (saldp SyncAgentLinkedDatabaseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncAgentListResult a list of sync agents. type SyncAgentListResult struct { autorest.Response `json:"-"` @@ -7333,6 +7549,12 @@ type SyncAgentListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SyncAgentListResult. +func (salr SyncAgentListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncAgentListResultIterator provides access to a complete listing of SyncAgent values. type SyncAgentListResultIterator struct { i int @@ -7599,6 +7821,12 @@ type SyncDatabaseIDListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SyncDatabaseIDListResult. +func (sdilr SyncDatabaseIDListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncDatabaseIDListResultIterator provides access to a complete listing of SyncDatabaseIDProperties // values. type SyncDatabaseIDListResultIterator struct { @@ -7756,6 +7984,12 @@ type SyncDatabaseIDProperties struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for SyncDatabaseIDProperties. +func (sdip SyncDatabaseIDProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncFullSchemaProperties properties of the database full schema. type SyncFullSchemaProperties struct { // Tables - READ-ONLY; List of tables in the database full schema. @@ -7764,6 +7998,12 @@ type SyncFullSchemaProperties struct { LastUpdateTime *date.Time `json:"lastUpdateTime,omitempty"` } +// MarshalJSON is the custom marshaler for SyncFullSchemaProperties. +func (sfsp SyncFullSchemaProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncFullSchemaPropertiesListResult a list of sync schema properties. type SyncFullSchemaPropertiesListResult struct { autorest.Response `json:"-"` @@ -7773,6 +8013,12 @@ type SyncFullSchemaPropertiesListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SyncFullSchemaPropertiesListResult. +func (sfsplr SyncFullSchemaPropertiesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncFullSchemaPropertiesListResultIterator provides access to a complete listing of // SyncFullSchemaProperties values. type SyncFullSchemaPropertiesListResultIterator struct { @@ -7938,6 +8184,12 @@ type SyncFullSchemaTable struct { QuotedName *string `json:"quotedName,omitempty"` } +// MarshalJSON is the custom marshaler for SyncFullSchemaTable. +func (sfst SyncFullSchemaTable) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncFullSchemaTableColumn properties of the column in the table of database full schema. type SyncFullSchemaTableColumn struct { // DataSize - READ-ONLY; Data size of the column. @@ -7956,6 +8208,12 @@ type SyncFullSchemaTableColumn struct { QuotedName *string `json:"quotedName,omitempty"` } +// MarshalJSON is the custom marshaler for SyncFullSchemaTableColumn. +func (sfstc SyncFullSchemaTableColumn) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncGroup an Azure SQL Database sync group. type SyncGroup struct { autorest.Response `json:"-"` @@ -8038,6 +8296,12 @@ type SyncGroupListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SyncGroupListResult. +func (sglr SyncGroupListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncGroupListResultIterator provides access to a complete listing of SyncGroup values. type SyncGroupListResultIterator struct { i int @@ -8197,6 +8461,12 @@ type SyncGroupLogListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SyncGroupLogListResult. +func (sgllr SyncGroupLogListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncGroupLogListResultIterator provides access to a complete listing of SyncGroupLogProperties values. type SyncGroupLogListResultIterator struct { i int @@ -8363,6 +8633,12 @@ type SyncGroupLogProperties struct { OperationStatus *string `json:"operationStatus,omitempty"` } +// MarshalJSON is the custom marshaler for SyncGroupLogProperties. +func (sglp SyncGroupLogProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncGroupProperties properties of a sync group. type SyncGroupProperties struct { // Interval - Sync interval of the sync group. @@ -8675,6 +8951,12 @@ type SyncMemberListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SyncMemberListResult. +func (smlr SyncMemberListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncMemberListResultIterator provides access to a complete listing of SyncMember values. type SyncMemberListResultIterator struct { i int @@ -9247,6 +9529,12 @@ type TransparentDataEncryptionActivityProperties struct { PercentComplete *float64 `json:"percentComplete,omitempty"` } +// MarshalJSON is the custom marshaler for TransparentDataEncryptionActivityProperties. +func (tdeap TransparentDataEncryptionActivityProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TransparentDataEncryptionProperties represents the properties of a database transparent data encryption. type TransparentDataEncryptionProperties struct { // Status - The status of the database transparent data encryption. Possible values include: 'TransparentDataEncryptionStatusEnabled', 'TransparentDataEncryptionStatusDisabled' @@ -9369,6 +9657,12 @@ type VirtualClusterListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualClusterListResult. +func (vclr VirtualClusterListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualClusterListResultIterator provides access to a complete listing of VirtualCluster values. type VirtualClusterListResultIterator struct { i int @@ -9753,6 +10047,12 @@ type VirtualNetworkRuleListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkRuleListResult. +func (vnrlr VirtualNetworkRuleListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkRuleListResultIterator provides access to a complete listing of VirtualNetworkRule values. type VirtualNetworkRuleListResultIterator struct { i int diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/CHANGELOG.md b/services/preview/sql/mgmt/2017-03-01-preview/sql/CHANGELOG.md index 52911e4cc5e4..226948edeb15 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/CHANGELOG.md +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/CHANGELOG.md @@ -1,2 +1,90 @@ # Change History +## Additive Changes + +### New Funcs + +1. CheckNameAvailabilityResponse.MarshalJSON() ([]byte, error) +1. DataWarehouseUserActivitiesProperties.MarshalJSON() ([]byte, error) +1. DatabaseBlobAuditingPolicyListResult.MarshalJSON() ([]byte, error) +1. DatabaseOperationListResult.MarshalJSON() ([]byte, error) +1. DatabaseOperationProperties.MarshalJSON() ([]byte, error) +1. DatabaseUsage.MarshalJSON() ([]byte, error) +1. DatabaseVulnerabilityAssessmentListResult.MarshalJSON() ([]byte, error) +1. EditionCapability.MarshalJSON() ([]byte, error) +1. ElasticPoolActivityProperties.MarshalJSON() ([]byte, error) +1. ElasticPoolDatabaseActivityProperties.MarshalJSON() ([]byte, error) +1. ElasticPoolDtuCapability.MarshalJSON() ([]byte, error) +1. ElasticPoolEditionCapability.MarshalJSON() ([]byte, error) +1. ElasticPoolPerDatabaseMaxDtuCapability.MarshalJSON() ([]byte, error) +1. ElasticPoolPerDatabaseMinDtuCapability.MarshalJSON() ([]byte, error) +1. EncryptionProtectorListResult.MarshalJSON() ([]byte, error) +1. ExtendedDatabaseBlobAuditingPolicyListResult.MarshalJSON() ([]byte, error) +1. ExtendedServerBlobAuditingPolicyListResult.MarshalJSON() ([]byte, error) +1. FailoverGroupListResult.MarshalJSON() ([]byte, error) +1. ImportExportResponseProperties.MarshalJSON() ([]byte, error) +1. JobAgentListResult.MarshalJSON() ([]byte, error) +1. JobCredentialListResult.MarshalJSON() ([]byte, error) +1. JobExecutionListResult.MarshalJSON() ([]byte, error) +1. JobExecutionTarget.MarshalJSON() ([]byte, error) +1. JobListResult.MarshalJSON() ([]byte, error) +1. JobStepListResult.MarshalJSON() ([]byte, error) +1. JobTargetGroupListResult.MarshalJSON() ([]byte, error) +1. JobVersion.MarshalJSON() ([]byte, error) +1. JobVersionListResult.MarshalJSON() ([]byte, error) +1. LocationCapabilities.MarshalJSON() ([]byte, error) +1. LogicalServerSecurityAlertPolicyListResult.MarshalJSON() ([]byte, error) +1. ManagedBackupShortTermRetentionPolicyListResult.MarshalJSON() ([]byte, error) +1. ManagedDatabaseListResult.MarshalJSON() ([]byte, error) +1. ManagedInstanceAdministratorListResult.MarshalJSON() ([]byte, error) +1. ManagedInstanceListResult.MarshalJSON() ([]byte, error) +1. MaxSizeCapability.MarshalJSON() ([]byte, error) +1. Metric.MarshalJSON() ([]byte, error) +1. MetricAvailability.MarshalJSON() ([]byte, error) +1. MetricDefinition.MarshalJSON() ([]byte, error) +1. MetricName.MarshalJSON() ([]byte, error) +1. MetricValue.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationImpact.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. PerformanceLevel.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. RecommendedIndexProperties.MarshalJSON() ([]byte, error) +1. RecoverableDatabaseProperties.MarshalJSON() ([]byte, error) +1. ReplicationLinkProperties.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. RestorableDroppedDatabaseProperties.MarshalJSON() ([]byte, error) +1. RestorableDroppedManagedDatabaseListResult.MarshalJSON() ([]byte, error) +1. RestorableDroppedManagedDatabaseProperties.MarshalJSON() ([]byte, error) +1. RestorePointListResult.MarshalJSON() ([]byte, error) +1. RestorePointProperties.MarshalJSON() ([]byte, error) +1. SensitivityLabelListResult.MarshalJSON() ([]byte, error) +1. ServerBlobAuditingPolicyListResult.MarshalJSON() ([]byte, error) +1. ServerDNSAliasListResult.MarshalJSON() ([]byte, error) +1. ServerDNSAliasProperties.MarshalJSON() ([]byte, error) +1. ServerKeyListResult.MarshalJSON() ([]byte, error) +1. ServerListResult.MarshalJSON() ([]byte, error) +1. ServerUsage.MarshalJSON() ([]byte, error) +1. ServerVersionCapability.MarshalJSON() ([]byte, error) +1. ServiceObjectiveProperties.MarshalJSON() ([]byte, error) +1. ServiceTierAdvisorProperties.MarshalJSON() ([]byte, error) +1. SloUsageMetric.MarshalJSON() ([]byte, error) +1. SubscriptionUsageListResult.MarshalJSON() ([]byte, error) +1. SubscriptionUsageProperties.MarshalJSON() ([]byte, error) +1. SyncAgentKeyProperties.MarshalJSON() ([]byte, error) +1. SyncAgentLinkedDatabaseListResult.MarshalJSON() ([]byte, error) +1. SyncAgentLinkedDatabaseProperties.MarshalJSON() ([]byte, error) +1. SyncAgentListResult.MarshalJSON() ([]byte, error) +1. SyncDatabaseIDListResult.MarshalJSON() ([]byte, error) +1. SyncDatabaseIDProperties.MarshalJSON() ([]byte, error) +1. SyncFullSchemaProperties.MarshalJSON() ([]byte, error) +1. SyncFullSchemaPropertiesListResult.MarshalJSON() ([]byte, error) +1. SyncFullSchemaTable.MarshalJSON() ([]byte, error) +1. SyncFullSchemaTableColumn.MarshalJSON() ([]byte, error) +1. SyncGroupListResult.MarshalJSON() ([]byte, error) +1. SyncGroupLogListResult.MarshalJSON() ([]byte, error) +1. SyncGroupLogProperties.MarshalJSON() ([]byte, error) +1. SyncMemberListResult.MarshalJSON() ([]byte, error) +1. TransparentDataEncryptionActivityProperties.MarshalJSON() ([]byte, error) +1. VirtualClusterListResult.MarshalJSON() ([]byte, error) +1. VirtualNetworkRuleListResult.MarshalJSON() ([]byte, error) diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/_meta.json b/services/preview/sql/mgmt/2017-03-01-preview/sql/_meta.json index 25d1fe69098a..43c7e6fa1ac6 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/_meta.json +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/sql/resource-manager/readme.md", "tag": "package-2017-03-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-03-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/sql/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-03-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/sql/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/sql/mgmt/2017-03-01-preview/sql/models.go b/services/preview/sql/mgmt/2017-03-01-preview/sql/models.go index 998a28b1219e..4ff6cc74ad75 100644 --- a/services/preview/sql/mgmt/2017-03-01-preview/sql/models.go +++ b/services/preview/sql/mgmt/2017-03-01-preview/sql/models.go @@ -107,6 +107,12 @@ type CheckNameAvailabilityResponse struct { Reason CheckNameAvailabilityReason `json:"reason,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResponse. +func (cnar CheckNameAvailabilityResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CompleteDatabaseRestoreDefinition contains the information necessary to perform a complete database // restore operation. type CompleteDatabaseRestoreDefinition struct { @@ -421,6 +427,12 @@ type DatabaseBlobAuditingPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseBlobAuditingPolicyListResult. +func (dbaplr DatabaseBlobAuditingPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseBlobAuditingPolicyListResultIterator provides access to a complete listing of // DatabaseBlobAuditingPolicy values. type DatabaseBlobAuditingPolicyListResultIterator struct { @@ -754,6 +766,12 @@ type DatabaseOperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseOperationListResult. +func (dolr DatabaseOperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseOperationListResultIterator provides access to a complete listing of DatabaseOperation values. type DatabaseOperationListResultIterator struct { i int @@ -936,6 +954,12 @@ type DatabaseOperationProperties struct { IsCancellable *bool `json:"isCancellable,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseOperationProperties. +func (dop DatabaseOperationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseProperties represents the properties of a database. type DatabaseProperties struct { // Collation - The collation of the database. If createMode is not Default, this value is ignored. @@ -1583,6 +1607,12 @@ type DatabaseUsage struct { NextResetTime *date.Time `json:"nextResetTime,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseUsage. +func (du DatabaseUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseUsageListResult the response to a list database metrics request. type DatabaseUsageListResult struct { autorest.Response `json:"-"` @@ -1672,6 +1702,12 @@ type DatabaseVulnerabilityAssessmentListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseVulnerabilityAssessmentListResult. +func (dvalr DatabaseVulnerabilityAssessmentListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseVulnerabilityAssessmentListResultIterator provides access to a complete listing of // DatabaseVulnerabilityAssessment values. type DatabaseVulnerabilityAssessmentListResultIterator struct { @@ -2291,6 +2327,12 @@ type DataWarehouseUserActivitiesProperties struct { ActiveQueriesCount *int32 `json:"activeQueriesCount,omitempty"` } +// MarshalJSON is the custom marshaler for DataWarehouseUserActivitiesProperties. +func (dwuap DataWarehouseUserActivitiesProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EditionCapability the database edition capabilities. type EditionCapability struct { // Name - READ-ONLY; The edition name. @@ -2303,6 +2345,12 @@ type EditionCapability struct { ZoneRedundant *bool `json:"zoneRedundant,omitempty"` } +// MarshalJSON is the custom marshaler for EditionCapability. +func (ec EditionCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ElasticPool represents a database elastic pool. type ElasticPool struct { autorest.Response `json:"-"` @@ -2552,6 +2600,12 @@ type ElasticPoolActivityProperties struct { RequestedDtuGuarantee *int32 `json:"requestedDtuGuarantee,omitempty"` } +// MarshalJSON is the custom marshaler for ElasticPoolActivityProperties. +func (epap ElasticPoolActivityProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ElasticPoolDatabaseActivity represents the activity on an elastic pool. type ElasticPoolDatabaseActivity struct { // Location - The geo-location where the resource lives @@ -2680,6 +2734,12 @@ type ElasticPoolDatabaseActivityProperties struct { State *string `json:"state,omitempty"` } +// MarshalJSON is the custom marshaler for ElasticPoolDatabaseActivityProperties. +func (epdap ElasticPoolDatabaseActivityProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ElasticPoolDtuCapability the Elastic Pool DTU capability. type ElasticPoolDtuCapability struct { // Limit - READ-ONLY; The maximum size of the database (see 'unit' for the units). @@ -2698,6 +2758,12 @@ type ElasticPoolDtuCapability struct { SupportedPerDatabaseMaxDtus *[]ElasticPoolPerDatabaseMaxDtuCapability `json:"supportedPerDatabaseMaxDtus,omitempty"` } +// MarshalJSON is the custom marshaler for ElasticPoolDtuCapability. +func (epdc ElasticPoolDtuCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ElasticPoolEditionCapability the elastic pool edition capabilities. type ElasticPoolEditionCapability struct { // Name - READ-ONLY; The elastic pool edition name. @@ -2710,6 +2776,12 @@ type ElasticPoolEditionCapability struct { ZoneRedundant *bool `json:"zoneRedundant,omitempty"` } +// MarshalJSON is the custom marshaler for ElasticPoolEditionCapability. +func (epec ElasticPoolEditionCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ElasticPoolListResult represents the response to a list elastic pool request. type ElasticPoolListResult struct { autorest.Response `json:"-"` @@ -2727,6 +2799,12 @@ type ElasticPoolPerDatabaseMaxDtuCapability struct { SupportedPerDatabaseMinDtus *[]ElasticPoolPerDatabaseMinDtuCapability `json:"supportedPerDatabaseMinDtus,omitempty"` } +// MarshalJSON is the custom marshaler for ElasticPoolPerDatabaseMaxDtuCapability. +func (eppdmdc ElasticPoolPerDatabaseMaxDtuCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ElasticPoolPerDatabaseMinDtuCapability the minimum per-database DTU capability. type ElasticPoolPerDatabaseMinDtuCapability struct { // Limit - READ-ONLY; The maximum DTUs per database. @@ -2735,6 +2813,12 @@ type ElasticPoolPerDatabaseMinDtuCapability struct { Status CapabilityStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for ElasticPoolPerDatabaseMinDtuCapability. +func (eppdmdc ElasticPoolPerDatabaseMinDtuCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ElasticPoolProperties represents the properties of an elastic pool. type ElasticPoolProperties struct { // CreationDate - READ-ONLY; The creation date of the elastic pool (ISO8601 format). @@ -3055,6 +3139,12 @@ type EncryptionProtectorListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for EncryptionProtectorListResult. +func (eplr EncryptionProtectorListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EncryptionProtectorListResultIterator provides access to a complete listing of EncryptionProtector // values. type EncryptionProtectorListResultIterator struct { @@ -3410,6 +3500,12 @@ type ExtendedDatabaseBlobAuditingPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ExtendedDatabaseBlobAuditingPolicyListResult. +func (edbaplr ExtendedDatabaseBlobAuditingPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExtendedDatabaseBlobAuditingPolicyListResultIterator provides access to a complete listing of // ExtendedDatabaseBlobAuditingPolicy values. type ExtendedDatabaseBlobAuditingPolicyListResultIterator struct { @@ -3783,6 +3879,12 @@ type ExtendedServerBlobAuditingPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ExtendedServerBlobAuditingPolicyListResult. +func (esbaplr ExtendedServerBlobAuditingPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExtendedServerBlobAuditingPolicyListResultIterator provides access to a complete listing of // ExtendedServerBlobAuditingPolicy values. type ExtendedServerBlobAuditingPolicyListResultIterator struct { @@ -4138,6 +4240,12 @@ type FailoverGroupListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for FailoverGroupListResult. +func (fglr FailoverGroupListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FailoverGroupListResultIterator provides access to a complete listing of FailoverGroup values. type FailoverGroupListResultIterator struct { i int @@ -4932,6 +5040,12 @@ type ImportExportResponseProperties struct { ErrorMessage *string `json:"errorMessage,omitempty"` } +// MarshalJSON is the custom marshaler for ImportExportResponseProperties. +func (ierp ImportExportResponseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImportExtensionProperties represents the properties for an import operation type ImportExtensionProperties struct { // OperationMode - The type of import operation being performed. This is always Import. @@ -5249,6 +5363,12 @@ type JobAgentListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for JobAgentListResult. +func (jalr JobAgentListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobAgentListResultIterator provides access to a complete listing of JobAgent values. type JobAgentListResultIterator struct { i int @@ -5636,6 +5756,12 @@ type JobCredentialListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for JobCredentialListResult. +func (jclr JobCredentialListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobCredentialListResultIterator provides access to a complete listing of JobCredential values. type JobCredentialListResultIterator struct { i int @@ -5876,6 +6002,12 @@ type JobExecutionListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for JobExecutionListResult. +func (jelr JobExecutionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobExecutionListResultIterator provides access to a complete listing of JobExecution values. type JobExecutionListResultIterator struct { i int @@ -6161,6 +6293,12 @@ type JobExecutionTarget struct { DatabaseName *string `json:"databaseName,omitempty"` } +// MarshalJSON is the custom marshaler for JobExecutionTarget. +func (jet JobExecutionTarget) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobListResult a list of jobs. type JobListResult struct { autorest.Response `json:"-"` @@ -6170,6 +6308,12 @@ type JobListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for JobListResult. +func (jlr JobListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobListResultIterator provides access to a complete listing of Job values. type JobListResultIterator struct { i int @@ -6462,6 +6606,12 @@ type JobStepListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for JobStepListResult. +func (jslr JobStepListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobStepListResultIterator provides access to a complete listing of JobStep values. type JobStepListResultIterator struct { i int @@ -6749,6 +6899,12 @@ type JobTargetGroupListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for JobTargetGroupListResult. +func (jtglr JobTargetGroupListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobTargetGroupListResultIterator provides access to a complete listing of JobTargetGroup values. type JobTargetGroupListResultIterator struct { i int @@ -6916,6 +7072,12 @@ type JobVersion struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for JobVersion. +func (jv JobVersion) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobVersionListResult a list of job versions. type JobVersionListResult struct { autorest.Response `json:"-"` @@ -6925,6 +7087,12 @@ type JobVersionListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for JobVersionListResult. +func (jvlr JobVersionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobVersionListResultIterator provides access to a complete listing of JobVersion values. type JobVersionListResultIterator struct { i int @@ -7086,6 +7254,12 @@ type LocationCapabilities struct { SupportedServerVersions *[]ServerVersionCapability `json:"supportedServerVersions,omitempty"` } +// MarshalJSON is the custom marshaler for LocationCapabilities. +func (lc LocationCapabilities) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LogicalServerSecurityAlertPolicyListResult a list of the server's security alert policies. type LogicalServerSecurityAlertPolicyListResult struct { autorest.Response `json:"-"` @@ -7095,6 +7269,12 @@ type LogicalServerSecurityAlertPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for LogicalServerSecurityAlertPolicyListResult. +func (lssaplr LogicalServerSecurityAlertPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LogicalServerSecurityAlertPolicyListResultIterator provides access to a complete listing of // ServerSecurityAlertPolicy values. type LogicalServerSecurityAlertPolicyListResultIterator struct { @@ -7414,6 +7594,12 @@ type ManagedBackupShortTermRetentionPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedBackupShortTermRetentionPolicyListResult. +func (mbstrplr ManagedBackupShortTermRetentionPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedBackupShortTermRetentionPolicyListResultIterator provides access to a complete listing of // ManagedBackupShortTermRetentionPolicy values. type ManagedBackupShortTermRetentionPolicyListResultIterator struct { @@ -7682,6 +7868,12 @@ type ManagedDatabaseListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedDatabaseListResult. +func (mdlr ManagedDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedDatabaseListResultIterator provides access to a complete listing of ManagedDatabase values. type ManagedDatabaseListResultIterator struct { i int @@ -8326,6 +8518,12 @@ type ManagedInstanceAdministratorListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceAdministratorListResult. +func (mialr ManagedInstanceAdministratorListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstanceAdministratorListResultIterator provides access to a complete listing of // ManagedInstanceAdministrator values. type ManagedInstanceAdministratorListResultIterator struct { @@ -8578,6 +8776,12 @@ type ManagedInstanceListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceListResult. +func (milr ManagedInstanceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstanceListResultIterator provides access to a complete listing of ManagedInstance values. type ManagedInstanceListResultIterator struct { i int @@ -9038,6 +9242,12 @@ type MaxSizeCapability struct { Status CapabilityStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for MaxSizeCapability. +func (msc MaxSizeCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Metric database metrics. type Metric struct { // StartTime - READ-ONLY; The start time for the metric (ISO-8601 format). @@ -9054,6 +9264,12 @@ type Metric struct { MetricValues *[]MetricValue `json:"metricValues,omitempty"` } +// MarshalJSON is the custom marshaler for Metric. +func (mVar Metric) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricAvailability a metric availability value. type MetricAvailability struct { // Retention - READ-ONLY; The length of retention for the database metric. @@ -9062,6 +9278,12 @@ type MetricAvailability struct { TimeGrain *string `json:"timeGrain,omitempty"` } +// MarshalJSON is the custom marshaler for MetricAvailability. +func (ma MetricAvailability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricDefinition a database metric definition. type MetricDefinition struct { // Name - READ-ONLY; The name information for the metric. @@ -9076,6 +9298,12 @@ type MetricDefinition struct { MetricAvailabilities *[]MetricAvailability `json:"metricAvailabilities,omitempty"` } +// MarshalJSON is the custom marshaler for MetricDefinition. +func (md MetricDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricDefinitionListResult the response to a list database metric definitions request. type MetricDefinitionListResult struct { autorest.Response `json:"-"` @@ -9098,6 +9326,12 @@ type MetricName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for MetricName. +func (mn MetricName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricValue represents database metrics. type MetricValue struct { // Count - READ-ONLY; The number of values for the metric. @@ -9114,6 +9348,12 @@ type MetricValue struct { Total *float64 `json:"total,omitempty"` } +// MarshalJSON is the custom marshaler for MetricValue. +func (mv MetricValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation SQL REST API operation definition. type Operation struct { // Name - READ-ONLY; The name of the operation being performed on this particular object. @@ -9144,6 +9384,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (od OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationImpact the impact of an operation, both in absolute and relative terms. type OperationImpact struct { // Name - READ-ONLY; The name of the impact dimension. @@ -9156,6 +9402,12 @@ type OperationImpact struct { ChangeValueRelative *float64 `json:"changeValueRelative,omitempty"` } +// MarshalJSON is the custom marshaler for OperationImpact. +func (oi OperationImpact) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of the request to list SQL operations. type OperationListResult struct { autorest.Response `json:"-"` @@ -9165,6 +9417,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -9342,6 +9600,12 @@ type PerformanceLevel struct { Value *int32 `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PerformanceLevel. +func (pl PerformanceLevel) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProxyResource ARM proxy resource. type ProxyResource struct { // ID - READ-ONLY; Resource ID. @@ -9352,6 +9616,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RecommendedIndex represents a database recommended index. type RecommendedIndex struct { // RecommendedIndexProperties - READ-ONLY; The properties representing the resource. @@ -9449,6 +9719,12 @@ type RecommendedIndexProperties struct { ReportedImpact *[]OperationImpact `json:"reportedImpact,omitempty"` } +// MarshalJSON is the custom marshaler for RecommendedIndexProperties. +func (rip RecommendedIndexProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RecoverableDatabase a recoverable database type RecoverableDatabase struct { autorest.Response `json:"-"` @@ -9541,6 +9817,12 @@ type RecoverableDatabaseProperties struct { LastAvailableBackupDate *date.Time `json:"lastAvailableBackupDate,omitempty"` } +// MarshalJSON is the custom marshaler for RecoverableDatabaseProperties. +func (rdp RecoverableDatabaseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReplicationLink represents a database replication link. type ReplicationLink struct { autorest.Response `json:"-"` @@ -9656,6 +9938,12 @@ type ReplicationLinkProperties struct { ReplicationState ReplicationState `json:"replicationState,omitempty"` } +// MarshalJSON is the custom marshaler for ReplicationLinkProperties. +func (rlp ReplicationLinkProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReplicationLinksFailoverAllowDataLossFuture an abstraction for monitoring and retrieving the results of // a long-running operation. type ReplicationLinksFailoverAllowDataLossFuture struct { @@ -9777,6 +10065,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceIdentity azure Active Directory identity configuration for a resource. type ResourceIdentity struct { // PrincipalID - READ-ONLY; The Azure Active Directory principal id. @@ -9913,6 +10207,12 @@ type RestorableDroppedDatabaseProperties struct { EarliestRestoreDate *date.Time `json:"earliestRestoreDate,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableDroppedDatabaseProperties. +func (rddp RestorableDroppedDatabaseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorableDroppedManagedDatabase a restorable dropped managed database resource. type RestorableDroppedManagedDatabase struct { autorest.Response `json:"-"` @@ -10023,6 +10323,12 @@ type RestorableDroppedManagedDatabaseListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableDroppedManagedDatabaseListResult. +func (rdmdlr RestorableDroppedManagedDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorableDroppedManagedDatabaseListResultIterator provides access to a complete listing of // RestorableDroppedManagedDatabase values. type RestorableDroppedManagedDatabaseListResultIterator struct { @@ -10187,6 +10493,12 @@ type RestorableDroppedManagedDatabaseProperties struct { EarliestRestoreDate *date.Time `json:"earliestRestoreDate,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableDroppedManagedDatabaseProperties. +func (rdmdp RestorableDroppedManagedDatabaseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorePoint database restore points. type RestorePoint struct { autorest.Response `json:"-"` @@ -10280,6 +10592,12 @@ type RestorePointListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RestorePointListResult. +func (rplr RestorePointListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorePointProperties properties of a database restore point type RestorePointProperties struct { // RestorePointType - READ-ONLY; The type of restore point. Possible values include: 'CONTINUOUS', 'DISCRETE' @@ -10292,6 +10610,12 @@ type RestorePointProperties struct { RestorePointLabel *string `json:"restorePointLabel,omitempty"` } +// MarshalJSON is the custom marshaler for RestorePointProperties. +func (rpp RestorePointProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorePointsCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type RestorePointsCreateFuture struct { @@ -10464,6 +10788,12 @@ type SensitivityLabelListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SensitivityLabelListResult. +func (sllr SensitivityLabelListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SensitivityLabelListResultIterator provides access to a complete listing of SensitivityLabel values. type SensitivityLabelListResultIterator struct { i int @@ -11153,6 +11483,12 @@ type ServerBlobAuditingPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ServerBlobAuditingPolicyListResult. +func (sbaplr ServerBlobAuditingPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerBlobAuditingPolicyListResultIterator provides access to a complete listing of // ServerBlobAuditingPolicy values. type ServerBlobAuditingPolicyListResultIterator struct { @@ -11866,6 +12202,12 @@ type ServerDNSAliasListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ServerDNSAliasListResult. +func (sdalr ServerDNSAliasListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerDNSAliasListResultIterator provides access to a complete listing of ServerDNSAlias values. type ServerDNSAliasListResultIterator struct { i int @@ -12022,6 +12364,12 @@ type ServerDNSAliasProperties struct { AzureDNSRecord *string `json:"azureDnsRecord,omitempty"` } +// MarshalJSON is the custom marshaler for ServerDNSAliasProperties. +func (sdap ServerDNSAliasProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerKey a server key. type ServerKey struct { autorest.Response `json:"-"` @@ -12129,6 +12477,12 @@ type ServerKeyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ServerKeyListResult. +func (sklr ServerKeyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerKeyListResultIterator provides access to a complete listing of ServerKey values. type ServerKeyListResultIterator struct { i int @@ -12400,6 +12754,12 @@ type ServerListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ServerListResult. +func (slr ServerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerListResultIterator provides access to a complete listing of Server values. type ServerListResultIterator struct { i int @@ -12889,6 +13249,12 @@ type ServerUsage struct { NextResetTime *date.Time `json:"nextResetTime,omitempty"` } +// MarshalJSON is the custom marshaler for ServerUsage. +func (su ServerUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerUsageListResult represents the response to a list server metrics request. type ServerUsageListResult struct { autorest.Response `json:"-"` @@ -12908,6 +13274,12 @@ type ServerVersionCapability struct { SupportedElasticPoolEditions *[]ElasticPoolEditionCapability `json:"supportedElasticPoolEditions,omitempty"` } +// MarshalJSON is the custom marshaler for ServerVersionCapability. +func (svc ServerVersionCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceObjective represents a database service objective. type ServiceObjective struct { autorest.Response `json:"-"` @@ -13093,6 +13465,12 @@ type ServiceObjectiveProperties struct { Enabled *bool `json:"enabled,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceObjectiveProperties. +func (sop ServiceObjectiveProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceTierAdvisor represents a Service Tier Advisor. type ServiceTierAdvisor struct { autorest.Response `json:"-"` @@ -13212,6 +13590,12 @@ type ServiceTierAdvisorProperties struct { Confidence *float64 `json:"confidence,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTierAdvisorProperties. +func (stap ServiceTierAdvisorProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Sku an ARM Resource SKU. type Sku struct { // Name - The name of the SKU, typically, a letter + Number code, e.g. P3. @@ -13236,6 +13620,12 @@ type SloUsageMetric struct { InRangeTimeRatio *float64 `json:"inRangeTimeRatio,omitempty"` } +// MarshalJSON is the custom marshaler for SloUsageMetric. +func (sum SloUsageMetric) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SubscriptionUsage usage Metric of a Subscription in a Location. type SubscriptionUsage struct { autorest.Response `json:"-"` @@ -13318,6 +13708,12 @@ type SubscriptionUsageListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SubscriptionUsageListResult. +func (sulr SubscriptionUsageListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SubscriptionUsageListResultIterator provides access to a complete listing of SubscriptionUsage values. type SubscriptionUsageListResultIterator struct { i int @@ -13480,6 +13876,12 @@ type SubscriptionUsageProperties struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for SubscriptionUsageProperties. +func (sup SubscriptionUsageProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncAgent an Azure SQL Database sync agent. type SyncAgent struct { autorest.Response `json:"-"` @@ -13560,6 +13962,12 @@ type SyncAgentKeyProperties struct { SyncAgentKey *string `json:"syncAgentKey,omitempty"` } +// MarshalJSON is the custom marshaler for SyncAgentKeyProperties. +func (sakp SyncAgentKeyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncAgentLinkedDatabase an Azure SQL Database sync agent linked database. type SyncAgentLinkedDatabase struct { // SyncAgentLinkedDatabaseProperties - Resource properties. @@ -13641,6 +14049,12 @@ type SyncAgentLinkedDatabaseListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SyncAgentLinkedDatabaseListResult. +func (saldlr SyncAgentLinkedDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncAgentLinkedDatabaseListResultIterator provides access to a complete listing of // SyncAgentLinkedDatabase values. type SyncAgentLinkedDatabaseListResultIterator struct { @@ -13808,6 +14222,12 @@ type SyncAgentLinkedDatabaseProperties struct { UserName *string `json:"userName,omitempty"` } +// MarshalJSON is the custom marshaler for SyncAgentLinkedDatabaseProperties. +func (saldp SyncAgentLinkedDatabaseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncAgentListResult a list of sync agents. type SyncAgentListResult struct { autorest.Response `json:"-"` @@ -13817,6 +14237,12 @@ type SyncAgentListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SyncAgentListResult. +func (salr SyncAgentListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncAgentListResultIterator provides access to a complete listing of SyncAgent values. type SyncAgentListResultIterator struct { i int @@ -14083,6 +14509,12 @@ type SyncDatabaseIDListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SyncDatabaseIDListResult. +func (sdilr SyncDatabaseIDListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncDatabaseIDListResultIterator provides access to a complete listing of SyncDatabaseIDProperties // values. type SyncDatabaseIDListResultIterator struct { @@ -14240,6 +14672,12 @@ type SyncDatabaseIDProperties struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for SyncDatabaseIDProperties. +func (sdip SyncDatabaseIDProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncFullSchemaProperties properties of the database full schema. type SyncFullSchemaProperties struct { // Tables - READ-ONLY; List of tables in the database full schema. @@ -14248,6 +14686,12 @@ type SyncFullSchemaProperties struct { LastUpdateTime *date.Time `json:"lastUpdateTime,omitempty"` } +// MarshalJSON is the custom marshaler for SyncFullSchemaProperties. +func (sfsp SyncFullSchemaProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncFullSchemaPropertiesListResult a list of sync schema properties. type SyncFullSchemaPropertiesListResult struct { autorest.Response `json:"-"` @@ -14257,6 +14701,12 @@ type SyncFullSchemaPropertiesListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SyncFullSchemaPropertiesListResult. +func (sfsplr SyncFullSchemaPropertiesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncFullSchemaPropertiesListResultIterator provides access to a complete listing of // SyncFullSchemaProperties values. type SyncFullSchemaPropertiesListResultIterator struct { @@ -14422,6 +14872,12 @@ type SyncFullSchemaTable struct { QuotedName *string `json:"quotedName,omitempty"` } +// MarshalJSON is the custom marshaler for SyncFullSchemaTable. +func (sfst SyncFullSchemaTable) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncFullSchemaTableColumn properties of the column in the table of database full schema. type SyncFullSchemaTableColumn struct { // DataSize - READ-ONLY; Data size of the column. @@ -14440,6 +14896,12 @@ type SyncFullSchemaTableColumn struct { QuotedName *string `json:"quotedName,omitempty"` } +// MarshalJSON is the custom marshaler for SyncFullSchemaTableColumn. +func (sfstc SyncFullSchemaTableColumn) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncGroup an Azure SQL Database sync group. type SyncGroup struct { autorest.Response `json:"-"` @@ -14522,6 +14984,12 @@ type SyncGroupListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SyncGroupListResult. +func (sglr SyncGroupListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncGroupListResultIterator provides access to a complete listing of SyncGroup values. type SyncGroupListResultIterator struct { i int @@ -14681,6 +15149,12 @@ type SyncGroupLogListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SyncGroupLogListResult. +func (sgllr SyncGroupLogListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncGroupLogListResultIterator provides access to a complete listing of SyncGroupLogProperties values. type SyncGroupLogListResultIterator struct { i int @@ -14847,6 +15321,12 @@ type SyncGroupLogProperties struct { OperationStatus *string `json:"operationStatus,omitempty"` } +// MarshalJSON is the custom marshaler for SyncGroupLogProperties. +func (sglp SyncGroupLogProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncGroupProperties properties of a sync group. type SyncGroupProperties struct { // Interval - Sync interval of the sync group. @@ -15159,6 +15639,12 @@ type SyncMemberListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SyncMemberListResult. +func (smlr SyncMemberListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncMemberListResultIterator provides access to a complete listing of SyncMember values. type SyncMemberListResultIterator struct { i int @@ -15731,6 +16217,12 @@ type TransparentDataEncryptionActivityProperties struct { PercentComplete *float64 `json:"percentComplete,omitempty"` } +// MarshalJSON is the custom marshaler for TransparentDataEncryptionActivityProperties. +func (tdeap TransparentDataEncryptionActivityProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TransparentDataEncryptionProperties represents the properties of a database transparent data encryption. type TransparentDataEncryptionProperties struct { // Status - The status of the database transparent data encryption. Possible values include: 'TransparentDataEncryptionStatusEnabled', 'TransparentDataEncryptionStatusDisabled' @@ -15853,6 +16345,12 @@ type VirtualClusterListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualClusterListResult. +func (vclr VirtualClusterListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualClusterListResultIterator provides access to a complete listing of VirtualCluster values. type VirtualClusterListResultIterator struct { i int @@ -16237,6 +16735,12 @@ type VirtualNetworkRuleListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkRuleListResult. +func (vnrlr VirtualNetworkRuleListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkRuleListResultIterator provides access to a complete listing of VirtualNetworkRule values. type VirtualNetworkRuleListResultIterator struct { i int diff --git a/services/preview/sql/mgmt/2017-10-01-preview/sql/CHANGELOG.md b/services/preview/sql/mgmt/2017-10-01-preview/sql/CHANGELOG.md index 52911e4cc5e4..d428d5758b07 100644 --- a/services/preview/sql/mgmt/2017-10-01-preview/sql/CHANGELOG.md +++ b/services/preview/sql/mgmt/2017-10-01-preview/sql/CHANGELOG.md @@ -1,2 +1,28 @@ # Change History +## Additive Changes + +### New Funcs + +1. BackupShortTermRetentionPolicyListResult.MarshalJSON() ([]byte, error) +1. DatabaseListResult.MarshalJSON() ([]byte, error) +1. DatabaseOperationListResult.MarshalJSON() ([]byte, error) +1. DatabaseOperationProperties.MarshalJSON() ([]byte, error) +1. DatabaseVulnerabilityAssessmentListResult.MarshalJSON() ([]byte, error) +1. DatabaseVulnerabilityAssessmentScanExportProperties.MarshalJSON() ([]byte, error) +1. ElasticPoolListResult.MarshalJSON() ([]byte, error) +1. ElasticPoolOperationListResult.MarshalJSON() ([]byte, error) +1. ElasticPoolOperationProperties.MarshalJSON() ([]byte, error) +1. InstanceFailoverGroupListResult.MarshalJSON() ([]byte, error) +1. LogSizeCapability.MarshalJSON() ([]byte, error) +1. ManagedInstanceEncryptionProtectorListResult.MarshalJSON() ([]byte, error) +1. ManagedInstanceKeyListResult.MarshalJSON() ([]byte, error) +1. MaxSizeCapability.MarshalJSON() ([]byte, error) +1. PerformanceLevelCapability.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. RecoverableManagedDatabaseListResult.MarshalJSON() ([]byte, error) +1. RecoverableManagedDatabaseProperties.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. VulnerabilityAssessmentScanError.MarshalJSON() ([]byte, error) +1. VulnerabilityAssessmentScanRecordListResult.MarshalJSON() ([]byte, error) +1. VulnerabilityAssessmentScanRecordProperties.MarshalJSON() ([]byte, error) diff --git a/services/preview/sql/mgmt/2017-10-01-preview/sql/_meta.json b/services/preview/sql/mgmt/2017-10-01-preview/sql/_meta.json index fb3d780a8cf0..40f44aa10223 100644 --- a/services/preview/sql/mgmt/2017-10-01-preview/sql/_meta.json +++ b/services/preview/sql/mgmt/2017-10-01-preview/sql/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/sql/resource-manager/readme.md", "tag": "package-pure-2017-10-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-pure-2017-10-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/sql/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-pure-2017-10-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/sql/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/sql/mgmt/2017-10-01-preview/sql/models.go b/services/preview/sql/mgmt/2017-10-01-preview/sql/models.go index 9fdf1de1c104..b1bcb9c4ba03 100644 --- a/services/preview/sql/mgmt/2017-10-01-preview/sql/models.go +++ b/services/preview/sql/mgmt/2017-10-01-preview/sql/models.go @@ -189,6 +189,12 @@ type BackupShortTermRetentionPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for BackupShortTermRetentionPolicyListResult. +func (bstrplr BackupShortTermRetentionPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BackupShortTermRetentionPolicyListResultIterator provides access to a complete listing of // BackupShortTermRetentionPolicy values. type BackupShortTermRetentionPolicyListResultIterator struct { @@ -502,6 +508,12 @@ type DatabaseListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseListResult. +func (dlr DatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseListResultIterator provides access to a complete listing of Database values. type DatabaseListResultIterator struct { i int @@ -733,6 +745,12 @@ type DatabaseOperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseOperationListResult. +func (dolr DatabaseOperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseOperationListResultIterator provides access to a complete listing of DatabaseOperation values. type DatabaseOperationListResultIterator struct { i int @@ -915,6 +933,12 @@ type DatabaseOperationProperties struct { IsCancellable *bool `json:"isCancellable,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseOperationProperties. +func (dop DatabaseOperationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseProperties the database's properties. type DatabaseProperties struct { // CreateMode - Specifies the mode of database creation. @@ -1455,6 +1479,12 @@ type DatabaseVulnerabilityAssessmentListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseVulnerabilityAssessmentListResult. +func (dvalr DatabaseVulnerabilityAssessmentListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseVulnerabilityAssessmentListResultIterator provides access to a complete listing of // DatabaseVulnerabilityAssessment values. type DatabaseVulnerabilityAssessmentListResultIterator struct { @@ -1711,6 +1741,12 @@ type DatabaseVulnerabilityAssessmentScanExportProperties struct { ExportedReportLocation *string `json:"exportedReportLocation,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseVulnerabilityAssessmentScanExportProperties. +func (dvasep DatabaseVulnerabilityAssessmentScanExportProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseVulnerabilityAssessmentScansExport a database Vulnerability Assessment scan export resource. type DatabaseVulnerabilityAssessmentScansExport struct { autorest.Response `json:"-"` @@ -2008,6 +2044,12 @@ type ElasticPoolListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ElasticPoolListResult. +func (eplr ElasticPoolListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ElasticPoolListResultIterator provides access to a complete listing of ElasticPool values. type ElasticPoolListResultIterator struct { i int @@ -2239,6 +2281,12 @@ type ElasticPoolOperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ElasticPoolOperationListResult. +func (epolr ElasticPoolOperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ElasticPoolOperationListResultIterator provides access to a complete listing of ElasticPoolOperation // values. type ElasticPoolOperationListResultIterator struct { @@ -2422,6 +2470,12 @@ type ElasticPoolOperationProperties struct { IsCancellable *bool `json:"isCancellable,omitempty"` } +// MarshalJSON is the custom marshaler for ElasticPoolOperationProperties. +func (epop ElasticPoolOperationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ElasticPoolPerDatabaseMaxPerformanceLevelCapability the max per-database performance level capability. type ElasticPoolPerDatabaseMaxPerformanceLevelCapability struct { // Limit - READ-ONLY; The maximum performance level per database. @@ -2825,6 +2879,12 @@ type InstanceFailoverGroupListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for InstanceFailoverGroupListResult. +func (ifglr InstanceFailoverGroupListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InstanceFailoverGroupListResultIterator provides access to a complete listing of InstanceFailoverGroup // values. type InstanceFailoverGroupListResultIterator struct { @@ -3241,6 +3301,12 @@ type LogSizeCapability struct { Unit LogSizeUnit `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for LogSizeCapability. +func (lsc LogSizeCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedDatabaseVulnerabilityAssessmentScansInitiateScanFuture an abstraction for monitoring and // retrieving the results of a long-running operation. type ManagedDatabaseVulnerabilityAssessmentScansInitiateScanFuture struct { @@ -3392,6 +3458,12 @@ type ManagedInstanceEncryptionProtectorListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceEncryptionProtectorListResult. +func (mieplr ManagedInstanceEncryptionProtectorListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstanceEncryptionProtectorListResultIterator provides access to a complete listing of // ManagedInstanceEncryptionProtector values. type ManagedInstanceEncryptionProtectorListResultIterator struct { @@ -3770,6 +3842,12 @@ type ManagedInstanceKeyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceKeyListResult. +func (miklr ManagedInstanceKeyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstanceKeyListResultIterator provides access to a complete listing of ManagedInstanceKey values. type ManagedInstanceKeyListResultIterator struct { i int @@ -4119,6 +4197,12 @@ type MaxSizeCapability struct { Unit MaxSizeUnit `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for MaxSizeCapability. +func (msc MaxSizeCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MaxSizeRangeCapability the maximum size range capability. type MaxSizeRangeCapability struct { // MinValue - READ-ONLY; Minimum value. @@ -4169,6 +4253,12 @@ type PerformanceLevelCapability struct { Unit PerformanceLevelUnit `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for PerformanceLevelCapability. +func (plc PerformanceLevelCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProxyResource ARM proxy resource. type ProxyResource struct { // ID - READ-ONLY; Resource ID. @@ -4179,6 +4269,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RecoverableManagedDatabase a recoverable managed database resource. type RecoverableManagedDatabase struct { autorest.Response `json:"-"` @@ -4261,6 +4357,12 @@ type RecoverableManagedDatabaseListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RecoverableManagedDatabaseListResult. +func (rmdlr RecoverableManagedDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RecoverableManagedDatabaseListResultIterator provides access to a complete listing of // RecoverableManagedDatabase values. type RecoverableManagedDatabaseListResultIterator struct { @@ -4418,6 +4520,12 @@ type RecoverableManagedDatabaseProperties struct { LastAvailableBackupDate *string `json:"lastAvailableBackupDate,omitempty"` } +// MarshalJSON is the custom marshaler for RecoverableManagedDatabaseProperties. +func (rmdp RecoverableManagedDatabaseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource ARM resource. type Resource struct { // ID - READ-ONLY; Resource ID. @@ -4428,6 +4536,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceMoveDefinition contains the information necessary to perform a resource move (rename). type ResourceMoveDefinition struct { // ID - The target ID for the resource @@ -4664,6 +4778,12 @@ type VulnerabilityAssessmentScanError struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for VulnerabilityAssessmentScanError. +func (vase VulnerabilityAssessmentScanError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VulnerabilityAssessmentScanRecord a vulnerability assessment scan record. type VulnerabilityAssessmentScanRecord struct { autorest.Response `json:"-"` @@ -4746,6 +4866,12 @@ type VulnerabilityAssessmentScanRecordListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for VulnerabilityAssessmentScanRecordListResult. +func (vasrlr VulnerabilityAssessmentScanRecordListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VulnerabilityAssessmentScanRecordListResultIterator provides access to a complete listing of // VulnerabilityAssessmentScanRecord values. type VulnerabilityAssessmentScanRecordListResultIterator struct { @@ -4917,3 +5043,9 @@ type VulnerabilityAssessmentScanRecordProperties struct { // NumberOfFailedSecurityChecks - READ-ONLY; The number of failed security checks. NumberOfFailedSecurityChecks *int32 `json:"numberOfFailedSecurityChecks,omitempty"` } + +// MarshalJSON is the custom marshaler for VulnerabilityAssessmentScanRecordProperties. +func (vasrp VulnerabilityAssessmentScanRecordProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/preview/sql/mgmt/2018-06-01-preview/sql/CHANGELOG.md b/services/preview/sql/mgmt/2018-06-01-preview/sql/CHANGELOG.md index 52911e4cc5e4..1a04eff0df34 100644 --- a/services/preview/sql/mgmt/2018-06-01-preview/sql/CHANGELOG.md +++ b/services/preview/sql/mgmt/2018-06-01-preview/sql/CHANGELOG.md @@ -1,2 +1,27 @@ # Change History +## Additive Changes + +### New Funcs + +1. AdministratorListResult.MarshalJSON() ([]byte, error) +1. DatabaseSecurityAlertListResult.MarshalJSON() ([]byte, error) +1. InstancePoolListResult.MarshalJSON() ([]byte, error) +1. ManagedDatabaseListResult.MarshalJSON() ([]byte, error) +1. ManagedDatabaseRestoreDetailsProperties.MarshalJSON() ([]byte, error) +1. ManagedInstanceListResult.MarshalJSON() ([]byte, error) +1. ManagedInstanceLongTermRetentionBackupListResult.MarshalJSON() ([]byte, error) +1. ManagedInstanceLongTermRetentionBackupProperties.MarshalJSON() ([]byte, error) +1. ManagedInstanceLongTermRetentionPolicyListResult.MarshalJSON() ([]byte, error) +1. ManagedInstanceOperationListResult.MarshalJSON() ([]byte, error) +1. ManagedInstanceOperationParametersPair.MarshalJSON() ([]byte, error) +1. ManagedInstanceOperationProperties.MarshalJSON() ([]byte, error) +1. ManagedInstanceOperationSteps.MarshalJSON() ([]byte, error) +1. ManagedInstanceVulnerabilityAssessmentListResult.MarshalJSON() ([]byte, error) +1. PrivateEndpointConnectionListResult.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. SensitivityLabelListResult.MarshalJSON() ([]byte, error) +1. ServerVulnerabilityAssessmentListResult.MarshalJSON() ([]byte, error) +1. Usage.MarshalJSON() ([]byte, error) +1. UsageListResult.MarshalJSON() ([]byte, error) diff --git a/services/preview/sql/mgmt/2018-06-01-preview/sql/_meta.json b/services/preview/sql/mgmt/2018-06-01-preview/sql/_meta.json index 39f4b29f417f..9ea533094426 100644 --- a/services/preview/sql/mgmt/2018-06-01-preview/sql/_meta.json +++ b/services/preview/sql/mgmt/2018-06-01-preview/sql/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/sql/resource-manager/readme.md", "tag": "package-pure-2018-06-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-pure-2018-06-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/sql/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-pure-2018-06-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/sql/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/sql/mgmt/2018-06-01-preview/sql/models.go b/services/preview/sql/mgmt/2018-06-01-preview/sql/models.go index 59843f463825..78b6b544489e 100644 --- a/services/preview/sql/mgmt/2018-06-01-preview/sql/models.go +++ b/services/preview/sql/mgmt/2018-06-01-preview/sql/models.go @@ -30,6 +30,12 @@ type AdministratorListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for AdministratorListResult. +func (alr AdministratorListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AdministratorListResultIterator provides access to a complete listing of ServerAzureADAdministrator // values. type AdministratorListResultIterator struct { @@ -221,6 +227,12 @@ type DatabaseSecurityAlertListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseSecurityAlertListResult. +func (dsalr DatabaseSecurityAlertListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseSecurityAlertListResultIterator provides access to a complete listing of // DatabaseSecurityAlertPolicy values. type DatabaseSecurityAlertListResultIterator struct { @@ -643,6 +655,12 @@ type InstancePoolListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for InstancePoolListResult. +func (iplr InstancePoolListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InstancePoolListResultIterator provides access to a complete listing of InstancePool values. type InstancePoolListResultIterator struct { i int @@ -1125,6 +1143,12 @@ type ManagedDatabaseListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedDatabaseListResult. +func (mdlr ManagedDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedDatabaseListResultIterator provides access to a complete listing of ManagedDatabase values. type ManagedDatabaseListResultIterator struct { i int @@ -1369,6 +1393,12 @@ type ManagedDatabaseRestoreDetailsProperties struct { BlockReason *string `json:"blockReason,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedDatabaseRestoreDetailsProperties. +func (mdrdp ManagedDatabaseRestoreDetailsProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedDatabaseRestoreDetailsResult a managed database restore details. type ManagedDatabaseRestoreDetailsResult struct { autorest.Response `json:"-"` @@ -1793,6 +1823,12 @@ type ManagedInstanceListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceListResult. +func (milr ManagedInstanceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstanceListResultIterator provides access to a complete listing of ManagedInstance values. type ManagedInstanceListResultIterator struct { i int @@ -2026,6 +2062,12 @@ type ManagedInstanceLongTermRetentionBackupListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceLongTermRetentionBackupListResult. +func (miltrblr ManagedInstanceLongTermRetentionBackupListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstanceLongTermRetentionBackupListResultIterator provides access to a complete listing of // ManagedInstanceLongTermRetentionBackup values. type ManagedInstanceLongTermRetentionBackupListResultIterator struct { @@ -2194,6 +2236,12 @@ type ManagedInstanceLongTermRetentionBackupProperties struct { BackupExpirationTime *date.Time `json:"backupExpirationTime,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceLongTermRetentionBackupProperties. +func (miltrbp ManagedInstanceLongTermRetentionBackupProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateFuture an abstraction for monitoring and // retrieving the results of a long-running operation. type ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateFuture struct { @@ -2319,6 +2367,12 @@ type ManagedInstanceLongTermRetentionPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceLongTermRetentionPolicyListResult. +func (miltrplr ManagedInstanceLongTermRetentionPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstanceLongTermRetentionPolicyListResultIterator provides access to a complete listing of // ManagedInstanceLongTermRetentionPolicy values. type ManagedInstanceLongTermRetentionPolicyListResultIterator struct { @@ -2553,6 +2607,12 @@ type ManagedInstanceOperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceOperationListResult. +func (miolr ManagedInstanceOperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstanceOperationListResultIterator provides access to a complete listing of // ManagedInstanceOperation values. type ManagedInstanceOperationListResultIterator struct { @@ -2712,6 +2772,12 @@ type ManagedInstanceOperationParametersPair struct { RequestedParameters *UpsertManagedServerOperationParameters `json:"requestedParameters,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceOperationParametersPair. +func (miopp ManagedInstanceOperationParametersPair) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstanceOperationProperties the properties of a managed instance operation. type ManagedInstanceOperationProperties struct { // ManagedInstanceName - READ-ONLY; The name of the managed instance the operation is being performed on. @@ -2746,6 +2812,12 @@ type ManagedInstanceOperationProperties struct { OperationSteps *ManagedInstanceOperationSteps `json:"operationSteps,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceOperationProperties. +func (miop ManagedInstanceOperationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstanceOperationSteps the steps of a managed instance operation. type ManagedInstanceOperationSteps struct { // TotalSteps - READ-ONLY; The total number of operation steps. @@ -2756,6 +2828,12 @@ type ManagedInstanceOperationSteps struct { StepsList *[]UpsertManagedServerOperationStep `json:"stepsList,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceOperationSteps. +func (mios ManagedInstanceOperationSteps) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstanceProperties the properties of a managed instance. type ManagedInstanceProperties struct { // ManagedInstanceCreateMode - Specifies the mode of database creation. @@ -3139,6 +3217,12 @@ type ManagedInstanceVulnerabilityAssessmentListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceVulnerabilityAssessmentListResult. +func (mivalr ManagedInstanceVulnerabilityAssessmentListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstanceVulnerabilityAssessmentListResultIterator provides access to a complete listing of // ManagedInstanceVulnerabilityAssessment values. type ManagedInstanceVulnerabilityAssessmentListResultIterator struct { @@ -3394,6 +3478,12 @@ type PrivateEndpointConnectionListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpointConnectionListResult. +func (peclr PrivateEndpointConnectionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnectionListResultIterator provides access to a complete listing of // PrivateEndpointConnection values. type PrivateEndpointConnectionListResultIterator struct { @@ -3685,6 +3775,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource ARM resource. type Resource struct { // ID - READ-ONLY; Resource ID. @@ -3695,6 +3791,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceIdentity azure Active Directory identity configuration for a resource. type ResourceIdentity struct { // PrincipalID - READ-ONLY; The Azure Active Directory principal id. @@ -3843,6 +3945,12 @@ type SensitivityLabelListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SensitivityLabelListResult. +func (sllr SensitivityLabelListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SensitivityLabelListResultIterator provides access to a complete listing of SensitivityLabel values. type SensitivityLabelListResultIterator struct { i int @@ -4265,6 +4373,12 @@ type ServerVulnerabilityAssessmentListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ServerVulnerabilityAssessmentListResult. +func (svalr ServerVulnerabilityAssessmentListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerVulnerabilityAssessmentListResultIterator provides access to a complete listing of // ServerVulnerabilityAssessment values. type ServerVulnerabilityAssessmentListResultIterator struct { @@ -4502,6 +4616,12 @@ type Usage struct { RequestedLimit *int32 `json:"requestedLimit,omitempty"` } +// MarshalJSON is the custom marshaler for Usage. +func (u Usage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageListResult a list of usages. type UsageListResult struct { autorest.Response `json:"-"` @@ -4511,6 +4631,12 @@ type UsageListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for UsageListResult. +func (ulr UsageListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageListResultIterator provides access to a complete listing of Usage values. type UsageListResultIterator struct { i int diff --git a/services/preview/sql/mgmt/v3.0/sql/CHANGELOG.md b/services/preview/sql/mgmt/v3.0/sql/CHANGELOG.md index 52911e4cc5e4..3b4f176b3bc5 100644 --- a/services/preview/sql/mgmt/v3.0/sql/CHANGELOG.md +++ b/services/preview/sql/mgmt/v3.0/sql/CHANGELOG.md @@ -1,2 +1,127 @@ # Change History +## Additive Changes + +### New Funcs + +1. AdministratorListResult.MarshalJSON() ([]byte, error) +1. AutoPauseDelayTimeRange.MarshalJSON() ([]byte, error) +1. AzureADOnlyAuthListResult.MarshalJSON() ([]byte, error) +1. BackupShortTermRetentionPolicyListResult.MarshalJSON() ([]byte, error) +1. CheckNameAvailabilityResponse.MarshalJSON() ([]byte, error) +1. DatabaseBlobAuditingPolicyListResult.MarshalJSON() ([]byte, error) +1. DatabaseListResult.MarshalJSON() ([]byte, error) +1. DatabaseOperationListResult.MarshalJSON() ([]byte, error) +1. DatabaseOperationProperties.MarshalJSON() ([]byte, error) +1. DatabaseUsage.MarshalJSON() ([]byte, error) +1. DatabaseVulnerabilityAssessmentListResult.MarshalJSON() ([]byte, error) +1. DatabaseVulnerabilityAssessmentScanExportProperties.MarshalJSON() ([]byte, error) +1. ElasticPoolActivityProperties.MarshalJSON() ([]byte, error) +1. ElasticPoolDatabaseActivityProperties.MarshalJSON() ([]byte, error) +1. ElasticPoolListResult.MarshalJSON() ([]byte, error) +1. ElasticPoolOperationListResult.MarshalJSON() ([]byte, error) +1. ElasticPoolOperationProperties.MarshalJSON() ([]byte, error) +1. EncryptionProtectorListResult.MarshalJSON() ([]byte, error) +1. ExtendedDatabaseBlobAuditingPolicyListResult.MarshalJSON() ([]byte, error) +1. ExtendedServerBlobAuditingPolicyListResult.MarshalJSON() ([]byte, error) +1. FailoverGroupListResult.MarshalJSON() ([]byte, error) +1. ImportExportOperationResultProperties.MarshalJSON() ([]byte, error) +1. InstanceFailoverGroupListResult.MarshalJSON() ([]byte, error) +1. InstancePoolListResult.MarshalJSON() ([]byte, error) +1. JobAgentListResult.MarshalJSON() ([]byte, error) +1. JobCredentialListResult.MarshalJSON() ([]byte, error) +1. JobExecutionListResult.MarshalJSON() ([]byte, error) +1. JobExecutionTarget.MarshalJSON() ([]byte, error) +1. JobListResult.MarshalJSON() ([]byte, error) +1. JobStepListResult.MarshalJSON() ([]byte, error) +1. JobTargetGroupListResult.MarshalJSON() ([]byte, error) +1. JobVersion.MarshalJSON() ([]byte, error) +1. JobVersionListResult.MarshalJSON() ([]byte, error) +1. LogSizeCapability.MarshalJSON() ([]byte, error) +1. LogicalServerSecurityAlertPolicyListResult.MarshalJSON() ([]byte, error) +1. LongTermRetentionBackupListResult.MarshalJSON() ([]byte, error) +1. LongTermRetentionBackupProperties.MarshalJSON() ([]byte, error) +1. ManagedBackupShortTermRetentionPolicyListResult.MarshalJSON() ([]byte, error) +1. ManagedDatabaseListResult.MarshalJSON() ([]byte, error) +1. ManagedDatabaseRestoreDetailsProperties.MarshalJSON() ([]byte, error) +1. ManagedDatabaseSecurityAlertPolicyListResult.MarshalJSON() ([]byte, error) +1. ManagedInstanceAdministratorListResult.MarshalJSON() ([]byte, error) +1. ManagedInstanceAzureADOnlyAuthListResult.MarshalJSON() ([]byte, error) +1. ManagedInstanceEncryptionProtectorListResult.MarshalJSON() ([]byte, error) +1. ManagedInstanceKeyListResult.MarshalJSON() ([]byte, error) +1. ManagedInstanceListResult.MarshalJSON() ([]byte, error) +1. ManagedInstanceLongTermRetentionBackupListResult.MarshalJSON() ([]byte, error) +1. ManagedInstanceLongTermRetentionBackupProperties.MarshalJSON() ([]byte, error) +1. ManagedInstanceLongTermRetentionPolicyListResult.MarshalJSON() ([]byte, error) +1. ManagedInstanceOperationListResult.MarshalJSON() ([]byte, error) +1. ManagedInstanceOperationParametersPair.MarshalJSON() ([]byte, error) +1. ManagedInstanceOperationProperties.MarshalJSON() ([]byte, error) +1. ManagedInstanceOperationSteps.MarshalJSON() ([]byte, error) +1. ManagedInstanceVulnerabilityAssessmentListResult.MarshalJSON() ([]byte, error) +1. ManagedServerSecurityAlertPolicyListResult.MarshalJSON() ([]byte, error) +1. MaxSizeCapability.MarshalJSON() ([]byte, error) +1. Metric.MarshalJSON() ([]byte, error) +1. MetricAvailability.MarshalJSON() ([]byte, error) +1. MetricDefinition.MarshalJSON() ([]byte, error) +1. MetricName.MarshalJSON() ([]byte, error) +1. MetricValue.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationImpact.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. PerformanceLevelCapability.MarshalJSON() ([]byte, error) +1. PrivateEndpointConnectionListResult.MarshalJSON() ([]byte, error) +1. PrivateEndpointConnectionRequestStatus.MarshalJSON() ([]byte, error) +1. PrivateLinkResource.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceListResult.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. RecommendedIndexProperties.MarshalJSON() ([]byte, error) +1. RecoverableDatabaseProperties.MarshalJSON() ([]byte, error) +1. RecoverableManagedDatabaseListResult.MarshalJSON() ([]byte, error) +1. RecoverableManagedDatabaseProperties.MarshalJSON() ([]byte, error) +1. ReplicationLinkProperties.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. RestorableDroppedDatabaseProperties.MarshalJSON() ([]byte, error) +1. RestorableDroppedManagedDatabaseListResult.MarshalJSON() ([]byte, error) +1. RestorableDroppedManagedDatabaseProperties.MarshalJSON() ([]byte, error) +1. RestorePointListResult.MarshalJSON() ([]byte, error) +1. RestorePointProperties.MarshalJSON() ([]byte, error) +1. SensitivityLabelListResult.MarshalJSON() ([]byte, error) +1. ServerBlobAuditingPolicyListResult.MarshalJSON() ([]byte, error) +1. ServerDNSAliasListResult.MarshalJSON() ([]byte, error) +1. ServerDNSAliasProperties.MarshalJSON() ([]byte, error) +1. ServerKeyListResult.MarshalJSON() ([]byte, error) +1. ServerListResult.MarshalJSON() ([]byte, error) +1. ServerPrivateEndpointConnection.MarshalJSON() ([]byte, error) +1. ServerTrustGroupListResult.MarshalJSON() ([]byte, error) +1. ServerUsage.MarshalJSON() ([]byte, error) +1. ServerVulnerabilityAssessmentListResult.MarshalJSON() ([]byte, error) +1. ServiceObjectiveProperties.MarshalJSON() ([]byte, error) +1. ServiceTierAdvisorProperties.MarshalJSON() ([]byte, error) +1. SloUsageMetric.MarshalJSON() ([]byte, error) +1. SubscriptionUsageListResult.MarshalJSON() ([]byte, error) +1. SubscriptionUsageProperties.MarshalJSON() ([]byte, error) +1. SyncAgentKeyProperties.MarshalJSON() ([]byte, error) +1. SyncAgentLinkedDatabaseListResult.MarshalJSON() ([]byte, error) +1. SyncAgentLinkedDatabaseProperties.MarshalJSON() ([]byte, error) +1. SyncAgentListResult.MarshalJSON() ([]byte, error) +1. SyncDatabaseIDListResult.MarshalJSON() ([]byte, error) +1. SyncDatabaseIDProperties.MarshalJSON() ([]byte, error) +1. SyncFullSchemaProperties.MarshalJSON() ([]byte, error) +1. SyncFullSchemaPropertiesListResult.MarshalJSON() ([]byte, error) +1. SyncFullSchemaTable.MarshalJSON() ([]byte, error) +1. SyncFullSchemaTableColumn.MarshalJSON() ([]byte, error) +1. SyncGroupListResult.MarshalJSON() ([]byte, error) +1. SyncGroupLogListResult.MarshalJSON() ([]byte, error) +1. SyncGroupLogProperties.MarshalJSON() ([]byte, error) +1. SyncMemberListResult.MarshalJSON() ([]byte, error) +1. TransparentDataEncryptionActivityProperties.MarshalJSON() ([]byte, error) +1. Usage.MarshalJSON() ([]byte, error) +1. UsageListResult.MarshalJSON() ([]byte, error) +1. VirtualClusterListResult.MarshalJSON() ([]byte, error) +1. VirtualNetworkRuleListResult.MarshalJSON() ([]byte, error) +1. VulnerabilityAssessmentScanError.MarshalJSON() ([]byte, error) +1. VulnerabilityAssessmentScanRecordListResult.MarshalJSON() ([]byte, error) +1. VulnerabilityAssessmentScanRecordProperties.MarshalJSON() ([]byte, error) +1. WorkloadClassifierListResult.MarshalJSON() ([]byte, error) +1. WorkloadGroupListResult.MarshalJSON() ([]byte, error) diff --git a/services/preview/sql/mgmt/v3.0/sql/_meta.json b/services/preview/sql/mgmt/v3.0/sql/_meta.json index 829549d3f90f..e3cb944a7e7f 100644 --- a/services/preview/sql/mgmt/v3.0/sql/_meta.json +++ b/services/preview/sql/mgmt/v3.0/sql/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/sql/resource-manager/readme.md", "tag": "package-composite-v3", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-composite-v3 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/sql/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-composite-v3 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/sql/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/sql/mgmt/v3.0/sql/models.go b/services/preview/sql/mgmt/v3.0/sql/models.go index c850e27e5c2e..d1fabad574b4 100644 --- a/services/preview/sql/mgmt/v3.0/sql/models.go +++ b/services/preview/sql/mgmt/v3.0/sql/models.go @@ -30,6 +30,12 @@ type AdministratorListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for AdministratorListResult. +func (alr AdministratorListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AdministratorListResultIterator provides access to a complete listing of ServerAzureADAdministrator // values. type AdministratorListResultIterator struct { @@ -293,6 +299,12 @@ type AutoPauseDelayTimeRange struct { DoNotPauseValue *int32 `json:"doNotPauseValue,omitempty"` } +// MarshalJSON is the custom marshaler for AutoPauseDelayTimeRange. +func (apdtr AutoPauseDelayTimeRange) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureADOnlyAuthListResult a list of active directory only authentications. type AzureADOnlyAuthListResult struct { autorest.Response `json:"-"` @@ -302,6 +314,12 @@ type AzureADOnlyAuthListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for AzureADOnlyAuthListResult. +func (aaoalr AzureADOnlyAuthListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureADOnlyAuthListResultIterator provides access to a complete listing of // ServerAzureADOnlyAuthentication values. type AzureADOnlyAuthListResultIterator struct { @@ -743,6 +761,12 @@ type BackupShortTermRetentionPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for BackupShortTermRetentionPolicyListResult. +func (bstrplr BackupShortTermRetentionPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BackupShortTermRetentionPolicyListResultIterator provides access to a complete listing of // BackupShortTermRetentionPolicy values. type BackupShortTermRetentionPolicyListResultIterator struct { @@ -931,6 +955,12 @@ type CheckNameAvailabilityResponse struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResponse. +func (cnar CheckNameAvailabilityResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CompleteDatabaseRestoreDefinition contains the information necessary to perform a complete database // restore operation. type CompleteDatabaseRestoreDefinition struct { @@ -1280,6 +1310,12 @@ type DatabaseBlobAuditingPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseBlobAuditingPolicyListResult. +func (dbaplr DatabaseBlobAuditingPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseBlobAuditingPolicyListResultIterator provides access to a complete listing of // DatabaseBlobAuditingPolicy values. type DatabaseBlobAuditingPolicyListResultIterator struct { @@ -1534,6 +1570,12 @@ type DatabaseListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseListResult. +func (dlr DatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseListResultIterator provides access to a complete listing of Database values. type DatabaseListResultIterator struct { i int @@ -1765,6 +1807,12 @@ type DatabaseOperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseOperationListResult. +func (dolr DatabaseOperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseOperationListResultIterator provides access to a complete listing of DatabaseOperation values. type DatabaseOperationListResultIterator struct { i int @@ -1947,6 +1995,12 @@ type DatabaseOperationProperties struct { IsCancellable *bool `json:"isCancellable,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseOperationProperties. +func (dop DatabaseOperationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseProperties the database's properties. type DatabaseProperties struct { // CreateMode - Specifies the mode of database creation. @@ -2626,6 +2680,12 @@ type DatabaseUsage struct { NextResetTime *date.Time `json:"nextResetTime,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseUsage. +func (du DatabaseUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseUsageListResult the response to a list database metrics request. type DatabaseUsageListResult struct { autorest.Response `json:"-"` @@ -2715,6 +2775,12 @@ type DatabaseVulnerabilityAssessmentListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseVulnerabilityAssessmentListResult. +func (dvalr DatabaseVulnerabilityAssessmentListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseVulnerabilityAssessmentListResultIterator provides access to a complete listing of // DatabaseVulnerabilityAssessment values. type DatabaseVulnerabilityAssessmentListResultIterator struct { @@ -2971,6 +3037,12 @@ type DatabaseVulnerabilityAssessmentScanExportProperties struct { ExportedReportLocation *string `json:"exportedReportLocation,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseVulnerabilityAssessmentScanExportProperties. +func (dvasep DatabaseVulnerabilityAssessmentScanExportProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseVulnerabilityAssessmentScansExport a database Vulnerability Assessment scan export resource. type DatabaseVulnerabilityAssessmentScansExport struct { autorest.Response `json:"-"` @@ -3665,6 +3737,12 @@ type ElasticPoolActivityProperties struct { RequestedDtuGuarantee *int32 `json:"requestedDtuGuarantee,omitempty"` } +// MarshalJSON is the custom marshaler for ElasticPoolActivityProperties. +func (epap ElasticPoolActivityProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ElasticPoolDatabaseActivity represents the activity on an elastic pool. type ElasticPoolDatabaseActivity struct { // Location - The geo-location where the resource lives @@ -3793,6 +3871,12 @@ type ElasticPoolDatabaseActivityProperties struct { State *string `json:"state,omitempty"` } +// MarshalJSON is the custom marshaler for ElasticPoolDatabaseActivityProperties. +func (epdap ElasticPoolDatabaseActivityProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ElasticPoolEditionCapability the elastic pool edition capability. type ElasticPoolEditionCapability struct { // Name - READ-ONLY; The elastic pool edition name. @@ -3825,6 +3909,12 @@ type ElasticPoolListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ElasticPoolListResult. +func (eplr ElasticPoolListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ElasticPoolListResultIterator provides access to a complete listing of ElasticPool values. type ElasticPoolListResultIterator struct { i int @@ -4056,6 +4146,12 @@ type ElasticPoolOperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ElasticPoolOperationListResult. +func (epolr ElasticPoolOperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ElasticPoolOperationListResultIterator provides access to a complete listing of ElasticPoolOperation // values. type ElasticPoolOperationListResultIterator struct { @@ -4239,6 +4335,12 @@ type ElasticPoolOperationProperties struct { IsCancellable *bool `json:"isCancellable,omitempty"` } +// MarshalJSON is the custom marshaler for ElasticPoolOperationProperties. +func (epop ElasticPoolOperationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ElasticPoolPerDatabaseMaxPerformanceLevelCapability the max per-database performance level capability. type ElasticPoolPerDatabaseMaxPerformanceLevelCapability struct { // Limit - READ-ONLY; The maximum performance level per database. @@ -4703,6 +4805,12 @@ type EncryptionProtectorListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for EncryptionProtectorListResult. +func (eplr EncryptionProtectorListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EncryptionProtectorListResultIterator provides access to a complete listing of EncryptionProtector // values. type EncryptionProtectorListResultIterator struct { @@ -5060,6 +5168,12 @@ type ExtendedDatabaseBlobAuditingPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ExtendedDatabaseBlobAuditingPolicyListResult. +func (edbaplr ExtendedDatabaseBlobAuditingPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExtendedDatabaseBlobAuditingPolicyListResultIterator provides access to a complete listing of // ExtendedDatabaseBlobAuditingPolicy values. type ExtendedDatabaseBlobAuditingPolicyListResultIterator struct { @@ -5433,6 +5547,12 @@ type ExtendedServerBlobAuditingPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ExtendedServerBlobAuditingPolicyListResult. +func (esbaplr ExtendedServerBlobAuditingPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExtendedServerBlobAuditingPolicyListResultIterator provides access to a complete listing of // ExtendedServerBlobAuditingPolicy values. type ExtendedServerBlobAuditingPolicyListResultIterator struct { @@ -5788,6 +5908,12 @@ type FailoverGroupListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for FailoverGroupListResult. +func (fglr FailoverGroupListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FailoverGroupListResultIterator provides access to a complete listing of FailoverGroup values. type FailoverGroupListResultIterator struct { i int @@ -6647,6 +6773,12 @@ type ImportExportOperationResultProperties struct { PrivateEndpointConnections *[]PrivateEndpointConnectionRequestStatus `json:"privateEndpointConnections,omitempty"` } +// MarshalJSON is the custom marshaler for ImportExportOperationResultProperties. +func (ieorp ImportExportOperationResultProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImportNewDatabaseDefinition contains the information necessary to perform import operation for new // database. type ImportNewDatabaseDefinition struct { @@ -6756,6 +6888,12 @@ type InstanceFailoverGroupListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for InstanceFailoverGroupListResult. +func (ifglr InstanceFailoverGroupListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InstanceFailoverGroupListResultIterator provides access to a complete listing of InstanceFailoverGroup // values. type InstanceFailoverGroupListResultIterator struct { @@ -7289,6 +7427,12 @@ type InstancePoolListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for InstancePoolListResult. +func (iplr InstancePoolListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InstancePoolListResultIterator provides access to a complete listing of InstancePool values. type InstancePoolListResultIterator struct { i int @@ -7807,6 +7951,12 @@ type JobAgentListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for JobAgentListResult. +func (jalr JobAgentListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobAgentListResultIterator provides access to a complete listing of JobAgent values. type JobAgentListResultIterator struct { i int @@ -8194,6 +8344,12 @@ type JobCredentialListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for JobCredentialListResult. +func (jclr JobCredentialListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobCredentialListResultIterator provides access to a complete listing of JobCredential values. type JobCredentialListResultIterator struct { i int @@ -8434,6 +8590,12 @@ type JobExecutionListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for JobExecutionListResult. +func (jelr JobExecutionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobExecutionListResultIterator provides access to a complete listing of JobExecution values. type JobExecutionListResultIterator struct { i int @@ -8719,6 +8881,12 @@ type JobExecutionTarget struct { DatabaseName *string `json:"databaseName,omitempty"` } +// MarshalJSON is the custom marshaler for JobExecutionTarget. +func (jet JobExecutionTarget) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobListResult a list of jobs. type JobListResult struct { autorest.Response `json:"-"` @@ -8728,6 +8896,12 @@ type JobListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for JobListResult. +func (jlr JobListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobListResultIterator provides access to a complete listing of Job values. type JobListResultIterator struct { i int @@ -9020,6 +9194,12 @@ type JobStepListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for JobStepListResult. +func (jslr JobStepListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobStepListResultIterator provides access to a complete listing of JobStep values. type JobStepListResultIterator struct { i int @@ -9307,6 +9487,12 @@ type JobTargetGroupListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for JobTargetGroupListResult. +func (jtglr JobTargetGroupListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobTargetGroupListResultIterator provides access to a complete listing of JobTargetGroup values. type JobTargetGroupListResultIterator struct { i int @@ -9474,6 +9660,12 @@ type JobVersion struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for JobVersion. +func (jv JobVersion) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobVersionListResult a list of job versions. type JobVersionListResult struct { autorest.Response `json:"-"` @@ -9483,6 +9675,12 @@ type JobVersionListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for JobVersionListResult. +func (jvlr JobVersionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobVersionListResultIterator provides access to a complete listing of JobVersion values. type JobVersionListResultIterator struct { i int @@ -9685,6 +9883,12 @@ type LogicalServerSecurityAlertPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for LogicalServerSecurityAlertPolicyListResult. +func (lssaplr LogicalServerSecurityAlertPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LogicalServerSecurityAlertPolicyListResultIterator provides access to a complete listing of // ServerSecurityAlertPolicy values. type LogicalServerSecurityAlertPolicyListResultIterator struct { @@ -9844,6 +10048,12 @@ type LogSizeCapability struct { Unit LogSizeUnit `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for LogSizeCapability. +func (lsc LogSizeCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LongTermRetentionBackup a long term retention backup. type LongTermRetentionBackup struct { autorest.Response `json:"-"` @@ -9926,6 +10136,12 @@ type LongTermRetentionBackupListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for LongTermRetentionBackupListResult. +func (ltrblr LongTermRetentionBackupListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LongTermRetentionBackupListResultIterator provides access to a complete listing of // LongTermRetentionBackup values. type LongTermRetentionBackupListResultIterator struct { @@ -10093,6 +10309,12 @@ type LongTermRetentionBackupProperties struct { BackupExpirationTime *date.Time `json:"backupExpirationTime,omitempty"` } +// MarshalJSON is the custom marshaler for LongTermRetentionBackupProperties. +func (ltrbp LongTermRetentionBackupProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LongTermRetentionBackupsDeleteByResourceGroupFuture an abstraction for monitoring and retrieving the // results of a long-running operation. type LongTermRetentionBackupsDeleteByResourceGroupFuture struct { @@ -10421,6 +10643,12 @@ type ManagedBackupShortTermRetentionPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedBackupShortTermRetentionPolicyListResult. +func (mbstrplr ManagedBackupShortTermRetentionPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedBackupShortTermRetentionPolicyListResultIterator provides access to a complete listing of // ManagedBackupShortTermRetentionPolicy values. type ManagedBackupShortTermRetentionPolicyListResultIterator struct { @@ -10689,6 +10917,12 @@ type ManagedDatabaseListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedDatabaseListResult. +func (mdlr ManagedDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedDatabaseListResultIterator provides access to a complete listing of ManagedDatabase values. type ManagedDatabaseListResultIterator struct { i int @@ -10943,6 +11177,12 @@ type ManagedDatabaseRestoreDetailsProperties struct { BlockReason *string `json:"blockReason,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedDatabaseRestoreDetailsProperties. +func (mdrdp ManagedDatabaseRestoreDetailsProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedDatabaseRestoreDetailsResult a managed database restore details. type ManagedDatabaseRestoreDetailsResult struct { autorest.Response `json:"-"` @@ -11215,6 +11455,12 @@ type ManagedDatabaseSecurityAlertPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedDatabaseSecurityAlertPolicyListResult. +func (mdsaplr ManagedDatabaseSecurityAlertPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedDatabaseSecurityAlertPolicyListResultIterator provides access to a complete listing of // ManagedDatabaseSecurityAlertPolicy values. type ManagedDatabaseSecurityAlertPolicyListResultIterator struct { @@ -11711,6 +11957,12 @@ type ManagedInstanceAdministratorListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceAdministratorListResult. +func (mialr ManagedInstanceAdministratorListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstanceAdministratorListResultIterator provides access to a complete listing of // ManagedInstanceAdministrator values. type ManagedInstanceAdministratorListResultIterator struct { @@ -12116,6 +12368,12 @@ type ManagedInstanceAzureADOnlyAuthListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceAzureADOnlyAuthListResult. +func (miaaoalr ManagedInstanceAzureADOnlyAuthListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstanceAzureADOnlyAuthListResultIterator provides access to a complete listing of // ManagedInstanceAzureADOnlyAuthentication values. type ManagedInstanceAzureADOnlyAuthListResultIterator struct { @@ -12389,6 +12647,12 @@ type ManagedInstanceEncryptionProtectorListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceEncryptionProtectorListResult. +func (mieplr ManagedInstanceEncryptionProtectorListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstanceEncryptionProtectorListResultIterator provides access to a complete listing of // ManagedInstanceEncryptionProtector values. type ManagedInstanceEncryptionProtectorListResultIterator struct { @@ -12763,6 +13027,12 @@ type ManagedInstanceKeyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceKeyListResult. +func (miklr ManagedInstanceKeyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstanceKeyListResultIterator provides access to a complete listing of ManagedInstanceKey values. type ManagedInstanceKeyListResultIterator struct { i int @@ -13026,6 +13296,12 @@ type ManagedInstanceListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceListResult. +func (milr ManagedInstanceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstanceListResultIterator provides access to a complete listing of ManagedInstance values. type ManagedInstanceListResultIterator struct { i int @@ -13259,6 +13535,12 @@ type ManagedInstanceLongTermRetentionBackupListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceLongTermRetentionBackupListResult. +func (miltrblr ManagedInstanceLongTermRetentionBackupListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstanceLongTermRetentionBackupListResultIterator provides access to a complete listing of // ManagedInstanceLongTermRetentionBackup values. type ManagedInstanceLongTermRetentionBackupListResultIterator struct { @@ -13427,6 +13709,12 @@ type ManagedInstanceLongTermRetentionBackupProperties struct { BackupExpirationTime *date.Time `json:"backupExpirationTime,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceLongTermRetentionBackupProperties. +func (miltrbp ManagedInstanceLongTermRetentionBackupProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateFuture an abstraction for monitoring and // retrieving the results of a long-running operation. type ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateFuture struct { @@ -13552,6 +13840,12 @@ type ManagedInstanceLongTermRetentionPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceLongTermRetentionPolicyListResult. +func (miltrplr ManagedInstanceLongTermRetentionPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstanceLongTermRetentionPolicyListResultIterator provides access to a complete listing of // ManagedInstanceLongTermRetentionPolicy values. type ManagedInstanceLongTermRetentionPolicyListResultIterator struct { @@ -13786,6 +14080,12 @@ type ManagedInstanceOperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceOperationListResult. +func (miolr ManagedInstanceOperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstanceOperationListResultIterator provides access to a complete listing of // ManagedInstanceOperation values. type ManagedInstanceOperationListResultIterator struct { @@ -13945,6 +14245,12 @@ type ManagedInstanceOperationParametersPair struct { RequestedParameters *UpsertManagedServerOperationParameters `json:"requestedParameters,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceOperationParametersPair. +func (miopp ManagedInstanceOperationParametersPair) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstanceOperationProperties the properties of a managed instance operation. type ManagedInstanceOperationProperties struct { // ManagedInstanceName - READ-ONLY; The name of the managed instance the operation is being performed on. @@ -13979,6 +14285,12 @@ type ManagedInstanceOperationProperties struct { OperationSteps *ManagedInstanceOperationSteps `json:"operationSteps,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceOperationProperties. +func (miop ManagedInstanceOperationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstanceOperationSteps the steps of a managed instance operation. type ManagedInstanceOperationSteps struct { // TotalSteps - READ-ONLY; The total number of operation steps. @@ -13989,6 +14301,12 @@ type ManagedInstanceOperationSteps struct { StepsList *[]UpsertManagedServerOperationStep `json:"stepsList,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceOperationSteps. +func (mios ManagedInstanceOperationSteps) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstancePairInfo pairs of Managed Instances in the failover group. type ManagedInstancePairInfo struct { // PrimaryManagedInstanceID - Id of Primary Managed Instance in pair. @@ -14535,6 +14853,12 @@ type ManagedInstanceVulnerabilityAssessmentListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceVulnerabilityAssessmentListResult. +func (mivalr ManagedInstanceVulnerabilityAssessmentListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstanceVulnerabilityAssessmentListResultIterator provides access to a complete listing of // ManagedInstanceVulnerabilityAssessment values. type ManagedInstanceVulnerabilityAssessmentListResultIterator struct { @@ -14911,6 +15235,12 @@ type ManagedServerSecurityAlertPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedServerSecurityAlertPolicyListResult. +func (mssaplr ManagedServerSecurityAlertPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedServerSecurityAlertPolicyListResultIterator provides access to a complete listing of // ManagedServerSecurityAlertPolicy values. type ManagedServerSecurityAlertPolicyListResultIterator struct { @@ -15071,6 +15401,12 @@ type MaxSizeCapability struct { Unit MaxSizeUnit `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for MaxSizeCapability. +func (msc MaxSizeCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MaxSizeRangeCapability the maximum size range capability. type MaxSizeRangeCapability struct { // MinValue - READ-ONLY; Minimum value. @@ -15112,6 +15448,12 @@ type Metric struct { MetricValues *[]MetricValue `json:"metricValues,omitempty"` } +// MarshalJSON is the custom marshaler for Metric. +func (mVar Metric) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricAvailability a metric availability value. type MetricAvailability struct { // Retention - READ-ONLY; The length of retention for the database metric. @@ -15120,6 +15462,12 @@ type MetricAvailability struct { TimeGrain *string `json:"timeGrain,omitempty"` } +// MarshalJSON is the custom marshaler for MetricAvailability. +func (ma MetricAvailability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricDefinition a database metric definition. type MetricDefinition struct { // Name - READ-ONLY; The name information for the metric. @@ -15134,6 +15482,12 @@ type MetricDefinition struct { MetricAvailabilities *[]MetricAvailability `json:"metricAvailabilities,omitempty"` } +// MarshalJSON is the custom marshaler for MetricDefinition. +func (md MetricDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricDefinitionListResult the response to a list database metric definitions request. type MetricDefinitionListResult struct { autorest.Response `json:"-"` @@ -15156,6 +15510,12 @@ type MetricName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for MetricName. +func (mn MetricName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricValue represents database metrics. type MetricValue struct { // Count - READ-ONLY; The number of values for the metric. @@ -15172,6 +15532,12 @@ type MetricValue struct { Total *float64 `json:"total,omitempty"` } +// MarshalJSON is the custom marshaler for MetricValue. +func (mv MetricValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MinCapacityCapability the min capacity capability type MinCapacityCapability struct { // Value - READ-ONLY; Min capacity value @@ -15237,6 +15603,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (od OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationImpact the impact of an operation, both in absolute and relative terms. type OperationImpact struct { // Name - READ-ONLY; The name of the impact dimension. @@ -15249,6 +15621,12 @@ type OperationImpact struct { ChangeValueRelative *float64 `json:"changeValueRelative,omitempty"` } +// MarshalJSON is the custom marshaler for OperationImpact. +func (oi OperationImpact) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of the request to list SQL operations. type OperationListResult struct { autorest.Response `json:"-"` @@ -15258,6 +15636,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -15452,6 +15836,12 @@ type PerformanceLevelCapability struct { Unit PerformanceLevelUnit `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for PerformanceLevelCapability. +func (plc PerformanceLevelCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection a private endpoint connection type PrivateEndpointConnection struct { autorest.Response `json:"-"` @@ -15534,6 +15924,12 @@ type PrivateEndpointConnectionListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpointConnectionListResult. +func (peclr PrivateEndpointConnectionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnectionListResultIterator provides access to a complete listing of // PrivateEndpointConnection values. type PrivateEndpointConnectionListResultIterator struct { @@ -15717,6 +16113,12 @@ type PrivateEndpointConnectionRequestStatus struct { Status *string `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpointConnectionRequestStatus. +func (pecrs PrivateEndpointConnectionRequestStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnectionsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type PrivateEndpointConnectionsCreateOrUpdateFuture struct { @@ -15816,6 +16218,12 @@ type PrivateLinkResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResource. +func (plr PrivateLinkResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkResourceListResult a list of private link resources type PrivateLinkResourceListResult struct { autorest.Response `json:"-"` @@ -15825,6 +16233,12 @@ type PrivateLinkResourceListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceListResult. +func (plrlr PrivateLinkResourceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkResourceListResultIterator provides access to a complete listing of PrivateLinkResource // values. type PrivateLinkResourceListResultIterator struct { @@ -15984,6 +16398,12 @@ type PrivateLinkResourceProperties struct { RequiredMembers *[]string `json:"requiredMembers,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. +func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkServiceConnectionStateProperty ... type PrivateLinkServiceConnectionStateProperty struct { // Status - The private link service connection status. Possible values include: 'Approved', 'Pending', 'Rejected', 'Disconnected' @@ -16016,6 +16436,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReadScaleCapability the read scale capability. type ReadScaleCapability struct { // MaxNumberOfReplicas - READ-ONLY; The maximum number of read scale replicas. @@ -16274,6 +16700,12 @@ type RecommendedIndexProperties struct { ReportedImpact *[]OperationImpact `json:"reportedImpact,omitempty"` } +// MarshalJSON is the custom marshaler for RecommendedIndexProperties. +func (rip RecommendedIndexProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RecoverableDatabase a recoverable database type RecoverableDatabase struct { autorest.Response `json:"-"` @@ -16366,6 +16798,12 @@ type RecoverableDatabaseProperties struct { LastAvailableBackupDate *date.Time `json:"lastAvailableBackupDate,omitempty"` } +// MarshalJSON is the custom marshaler for RecoverableDatabaseProperties. +func (rdp RecoverableDatabaseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RecoverableManagedDatabase a recoverable managed database resource. type RecoverableManagedDatabase struct { autorest.Response `json:"-"` @@ -16448,6 +16886,12 @@ type RecoverableManagedDatabaseListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RecoverableManagedDatabaseListResult. +func (rmdlr RecoverableManagedDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RecoverableManagedDatabaseListResultIterator provides access to a complete listing of // RecoverableManagedDatabase values. type RecoverableManagedDatabaseListResultIterator struct { @@ -16605,6 +17049,12 @@ type RecoverableManagedDatabaseProperties struct { LastAvailableBackupDate *string `json:"lastAvailableBackupDate,omitempty"` } +// MarshalJSON is the custom marshaler for RecoverableManagedDatabaseProperties. +func (rmdp RecoverableManagedDatabaseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReplicationLink represents a database replication link. type ReplicationLink struct { autorest.Response `json:"-"` @@ -16720,6 +17170,12 @@ type ReplicationLinkProperties struct { ReplicationState ReplicationState `json:"replicationState,omitempty"` } +// MarshalJSON is the custom marshaler for ReplicationLinkProperties. +func (rlp ReplicationLinkProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReplicationLinksFailoverAllowDataLossFuture an abstraction for monitoring and retrieving the results of // a long-running operation. type ReplicationLinksFailoverAllowDataLossFuture struct { @@ -16841,6 +17297,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceIdentity azure Active Directory identity configuration for a resource. type ResourceIdentity struct { // PrincipalID - READ-ONLY; The Azure Active Directory principal id. @@ -16977,6 +17439,12 @@ type RestorableDroppedDatabaseProperties struct { EarliestRestoreDate *date.Time `json:"earliestRestoreDate,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableDroppedDatabaseProperties. +func (rddp RestorableDroppedDatabaseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorableDroppedManagedDatabase a restorable dropped managed database resource. type RestorableDroppedManagedDatabase struct { autorest.Response `json:"-"` @@ -17087,6 +17555,12 @@ type RestorableDroppedManagedDatabaseListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableDroppedManagedDatabaseListResult. +func (rdmdlr RestorableDroppedManagedDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorableDroppedManagedDatabaseListResultIterator provides access to a complete listing of // RestorableDroppedManagedDatabase values. type RestorableDroppedManagedDatabaseListResultIterator struct { @@ -17251,6 +17725,12 @@ type RestorableDroppedManagedDatabaseProperties struct { EarliestRestoreDate *date.Time `json:"earliestRestoreDate,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableDroppedManagedDatabaseProperties. +func (rdmdp RestorableDroppedManagedDatabaseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorePoint database restore points. type RestorePoint struct { autorest.Response `json:"-"` @@ -17344,6 +17824,12 @@ type RestorePointListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RestorePointListResult. +func (rplr RestorePointListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorePointProperties properties of a database restore point type RestorePointProperties struct { // RestorePointType - READ-ONLY; The type of restore point. Possible values include: 'CONTINUOUS', 'DISCRETE' @@ -17356,6 +17842,12 @@ type RestorePointProperties struct { RestorePointLabel *string `json:"restorePointLabel,omitempty"` } +// MarshalJSON is the custom marshaler for RestorePointProperties. +func (rpp RestorePointProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorePointsCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type RestorePointsCreateFuture struct { @@ -17528,6 +18020,12 @@ type SensitivityLabelListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SensitivityLabelListResult. +func (sllr SensitivityLabelListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SensitivityLabelListResultIterator provides access to a complete listing of SensitivityLabel values. type SensitivityLabelListResultIterator struct { i int @@ -18345,6 +18843,12 @@ type ServerBlobAuditingPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ServerBlobAuditingPolicyListResult. +func (sbaplr ServerBlobAuditingPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerBlobAuditingPolicyListResultIterator provides access to a complete listing of // ServerBlobAuditingPolicy values. type ServerBlobAuditingPolicyListResultIterator struct { @@ -19058,6 +19562,12 @@ type ServerDNSAliasListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ServerDNSAliasListResult. +func (sdalr ServerDNSAliasListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerDNSAliasListResultIterator provides access to a complete listing of ServerDNSAlias values. type ServerDNSAliasListResultIterator struct { i int @@ -19214,6 +19724,12 @@ type ServerDNSAliasProperties struct { AzureDNSRecord *string `json:"azureDnsRecord,omitempty"` } +// MarshalJSON is the custom marshaler for ServerDNSAliasProperties. +func (sdap ServerDNSAliasProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerInfo server info for the server trust group. type ServerInfo struct { // ServerID - Server Id. @@ -19327,6 +19843,12 @@ type ServerKeyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ServerKeyListResult. +func (sklr ServerKeyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerKeyListResultIterator provides access to a complete listing of ServerKey values. type ServerKeyListResultIterator struct { i int @@ -19598,6 +20120,12 @@ type ServerListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ServerListResult. +func (slr ServerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerListResultIterator provides access to a complete listing of Server values. type ServerListResultIterator struct { i int @@ -19756,6 +20284,12 @@ type ServerPrivateEndpointConnection struct { Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for ServerPrivateEndpointConnection. +func (spec ServerPrivateEndpointConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerProperties the properties of a server. type ServerProperties struct { // AdministratorLogin - Administrator username for the server. Once created it cannot be changed. @@ -20161,6 +20695,12 @@ type ServerTrustGroupListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ServerTrustGroupListResult. +func (stglr ServerTrustGroupListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerTrustGroupListResultIterator provides access to a complete listing of ServerTrustGroup values. type ServerTrustGroupListResultIterator struct { i int @@ -20470,6 +21010,12 @@ type ServerUsage struct { NextResetTime *date.Time `json:"nextResetTime,omitempty"` } +// MarshalJSON is the custom marshaler for ServerUsage. +func (su ServerUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerUsageListResult represents the response to a list server metrics request. type ServerUsageListResult struct { autorest.Response `json:"-"` @@ -20582,6 +21128,12 @@ type ServerVulnerabilityAssessmentListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ServerVulnerabilityAssessmentListResult. +func (svalr ServerVulnerabilityAssessmentListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerVulnerabilityAssessmentListResultIterator provides access to a complete listing of // ServerVulnerabilityAssessment values. type ServerVulnerabilityAssessmentListResultIterator struct { @@ -20878,6 +21430,12 @@ type ServiceObjectiveProperties struct { Enabled *bool `json:"enabled,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceObjectiveProperties. +func (sop ServiceObjectiveProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceTierAdvisor represents a Service Tier Advisor. type ServiceTierAdvisor struct { autorest.Response `json:"-"` @@ -20997,6 +21555,12 @@ type ServiceTierAdvisorProperties struct { Confidence *float64 `json:"confidence,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTierAdvisorProperties. +func (stap ServiceTierAdvisorProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Sku an ARM Resource SKU. type Sku struct { // Name - The name of the SKU, typically, a letter + Number code, e.g. P3. @@ -21021,6 +21585,12 @@ type SloUsageMetric struct { InRangeTimeRatio *float64 `json:"inRangeTimeRatio,omitempty"` } +// MarshalJSON is the custom marshaler for SloUsageMetric. +func (sum SloUsageMetric) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageCapability the storage account type capability. type StorageCapability struct { // StorageAccountType - READ-ONLY; The storage account type for the database's backups. Possible values include: 'StorageAccountType1GRS', 'StorageAccountType1LRS', 'StorageAccountType1ZRS' @@ -21122,6 +21692,12 @@ type SubscriptionUsageListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SubscriptionUsageListResult. +func (sulr SubscriptionUsageListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SubscriptionUsageListResultIterator provides access to a complete listing of SubscriptionUsage values. type SubscriptionUsageListResultIterator struct { i int @@ -21284,6 +21860,12 @@ type SubscriptionUsageProperties struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for SubscriptionUsageProperties. +func (sup SubscriptionUsageProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncAgent an Azure SQL Database sync agent. type SyncAgent struct { autorest.Response `json:"-"` @@ -21364,6 +21946,12 @@ type SyncAgentKeyProperties struct { SyncAgentKey *string `json:"syncAgentKey,omitempty"` } +// MarshalJSON is the custom marshaler for SyncAgentKeyProperties. +func (sakp SyncAgentKeyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncAgentLinkedDatabase an Azure SQL Database sync agent linked database. type SyncAgentLinkedDatabase struct { // SyncAgentLinkedDatabaseProperties - Resource properties. @@ -21445,6 +22033,12 @@ type SyncAgentLinkedDatabaseListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SyncAgentLinkedDatabaseListResult. +func (saldlr SyncAgentLinkedDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncAgentLinkedDatabaseListResultIterator provides access to a complete listing of // SyncAgentLinkedDatabase values. type SyncAgentLinkedDatabaseListResultIterator struct { @@ -21612,6 +22206,12 @@ type SyncAgentLinkedDatabaseProperties struct { UserName *string `json:"userName,omitempty"` } +// MarshalJSON is the custom marshaler for SyncAgentLinkedDatabaseProperties. +func (saldp SyncAgentLinkedDatabaseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncAgentListResult a list of sync agents. type SyncAgentListResult struct { autorest.Response `json:"-"` @@ -21621,6 +22221,12 @@ type SyncAgentListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SyncAgentListResult. +func (salr SyncAgentListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncAgentListResultIterator provides access to a complete listing of SyncAgent values. type SyncAgentListResultIterator struct { i int @@ -21887,6 +22493,12 @@ type SyncDatabaseIDListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SyncDatabaseIDListResult. +func (sdilr SyncDatabaseIDListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncDatabaseIDListResultIterator provides access to a complete listing of SyncDatabaseIDProperties // values. type SyncDatabaseIDListResultIterator struct { @@ -22044,6 +22656,12 @@ type SyncDatabaseIDProperties struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for SyncDatabaseIDProperties. +func (sdip SyncDatabaseIDProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncFullSchemaProperties properties of the database full schema. type SyncFullSchemaProperties struct { // Tables - READ-ONLY; List of tables in the database full schema. @@ -22052,6 +22670,12 @@ type SyncFullSchemaProperties struct { LastUpdateTime *date.Time `json:"lastUpdateTime,omitempty"` } +// MarshalJSON is the custom marshaler for SyncFullSchemaProperties. +func (sfsp SyncFullSchemaProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncFullSchemaPropertiesListResult a list of sync schema properties. type SyncFullSchemaPropertiesListResult struct { autorest.Response `json:"-"` @@ -22061,6 +22685,12 @@ type SyncFullSchemaPropertiesListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SyncFullSchemaPropertiesListResult. +func (sfsplr SyncFullSchemaPropertiesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncFullSchemaPropertiesListResultIterator provides access to a complete listing of // SyncFullSchemaProperties values. type SyncFullSchemaPropertiesListResultIterator struct { @@ -22226,6 +22856,12 @@ type SyncFullSchemaTable struct { QuotedName *string `json:"quotedName,omitempty"` } +// MarshalJSON is the custom marshaler for SyncFullSchemaTable. +func (sfst SyncFullSchemaTable) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncFullSchemaTableColumn properties of the column in the table of database full schema. type SyncFullSchemaTableColumn struct { // DataSize - READ-ONLY; Data size of the column. @@ -22244,6 +22880,12 @@ type SyncFullSchemaTableColumn struct { QuotedName *string `json:"quotedName,omitempty"` } +// MarshalJSON is the custom marshaler for SyncFullSchemaTableColumn. +func (sfstc SyncFullSchemaTableColumn) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncGroup an Azure SQL Database sync group. type SyncGroup struct { autorest.Response `json:"-"` @@ -22326,6 +22968,12 @@ type SyncGroupListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SyncGroupListResult. +func (sglr SyncGroupListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncGroupListResultIterator provides access to a complete listing of SyncGroup values. type SyncGroupListResultIterator struct { i int @@ -22485,6 +23133,12 @@ type SyncGroupLogListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SyncGroupLogListResult. +func (sgllr SyncGroupLogListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncGroupLogListResultIterator provides access to a complete listing of SyncGroupLogProperties values. type SyncGroupLogListResultIterator struct { i int @@ -22651,6 +23305,12 @@ type SyncGroupLogProperties struct { OperationStatus *string `json:"operationStatus,omitempty"` } +// MarshalJSON is the custom marshaler for SyncGroupLogProperties. +func (sglp SyncGroupLogProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncGroupProperties properties of a sync group. type SyncGroupProperties struct { // Interval - Sync interval of the sync group. @@ -22970,6 +23630,12 @@ type SyncMemberListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SyncMemberListResult. +func (smlr SyncMemberListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncMemberListResultIterator provides access to a complete listing of SyncMember values. type SyncMemberListResultIterator struct { i int @@ -23671,6 +24337,12 @@ type TransparentDataEncryptionActivityProperties struct { PercentComplete *float64 `json:"percentComplete,omitempty"` } +// MarshalJSON is the custom marshaler for TransparentDataEncryptionActivityProperties. +func (tdeap TransparentDataEncryptionActivityProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TransparentDataEncryptionProperties represents the properties of a database transparent data encryption. type TransparentDataEncryptionProperties struct { // Status - The status of the database transparent data encryption. Possible values include: 'TransparentDataEncryptionStatusEnabled', 'TransparentDataEncryptionStatusDisabled' @@ -23717,6 +24389,12 @@ type Usage struct { RequestedLimit *int32 `json:"requestedLimit,omitempty"` } +// MarshalJSON is the custom marshaler for Usage. +func (u Usage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageListResult a list of usages. type UsageListResult struct { autorest.Response `json:"-"` @@ -23726,6 +24404,12 @@ type UsageListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for UsageListResult. +func (ulr UsageListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageListResultIterator provides access to a complete listing of Usage values. type UsageListResultIterator struct { i int @@ -23986,6 +24670,12 @@ type VirtualClusterListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualClusterListResult. +func (vclr VirtualClusterListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualClusterListResultIterator provides access to a complete listing of VirtualCluster values. type VirtualClusterListResultIterator struct { i int @@ -24370,6 +25060,12 @@ type VirtualNetworkRuleListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkRuleListResult. +func (vnrlr VirtualNetworkRuleListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkRuleListResultIterator provides access to a complete listing of VirtualNetworkRule values. type VirtualNetworkRuleListResultIterator struct { i int @@ -24641,6 +25337,12 @@ type VulnerabilityAssessmentScanError struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for VulnerabilityAssessmentScanError. +func (vase VulnerabilityAssessmentScanError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VulnerabilityAssessmentScanRecord a vulnerability assessment scan record. type VulnerabilityAssessmentScanRecord struct { autorest.Response `json:"-"` @@ -24723,6 +25425,12 @@ type VulnerabilityAssessmentScanRecordListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for VulnerabilityAssessmentScanRecordListResult. +func (vasrlr VulnerabilityAssessmentScanRecordListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VulnerabilityAssessmentScanRecordListResultIterator provides access to a complete listing of // VulnerabilityAssessmentScanRecord values. type VulnerabilityAssessmentScanRecordListResultIterator struct { @@ -24895,6 +25603,12 @@ type VulnerabilityAssessmentScanRecordProperties struct { NumberOfFailedSecurityChecks *int32 `json:"numberOfFailedSecurityChecks,omitempty"` } +// MarshalJSON is the custom marshaler for VulnerabilityAssessmentScanRecordProperties. +func (vasrp VulnerabilityAssessmentScanRecordProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WorkloadClassifier workload classifier operations for a data warehouse type WorkloadClassifier struct { autorest.Response `json:"-"` @@ -24977,6 +25691,12 @@ type WorkloadClassifierListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for WorkloadClassifierListResult. +func (wclr WorkloadClassifierListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WorkloadClassifierListResultIterator provides access to a complete listing of WorkloadClassifier values. type WorkloadClassifierListResultIterator struct { i int @@ -25306,6 +26026,12 @@ type WorkloadGroupListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for WorkloadGroupListResult. +func (wglr WorkloadGroupListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WorkloadGroupListResultIterator provides access to a complete listing of WorkloadGroup values. type WorkloadGroupListResultIterator struct { i int diff --git a/services/preview/sql/mgmt/v4.0/sql/CHANGELOG.md b/services/preview/sql/mgmt/v4.0/sql/CHANGELOG.md index 52911e4cc5e4..7d668b2a7b47 100644 --- a/services/preview/sql/mgmt/v4.0/sql/CHANGELOG.md +++ b/services/preview/sql/mgmt/v4.0/sql/CHANGELOG.md @@ -1,2 +1,132 @@ # Change History +## Additive Changes + +### New Funcs + +1. AdministratorListResult.MarshalJSON() ([]byte, error) +1. AutoPauseDelayTimeRange.MarshalJSON() ([]byte, error) +1. AzureADOnlyAuthListResult.MarshalJSON() ([]byte, error) +1. BackupShortTermRetentionPolicyListResult.MarshalJSON() ([]byte, error) +1. CheckNameAvailabilityResponse.MarshalJSON() ([]byte, error) +1. DatabaseBlobAuditingPolicyListResult.MarshalJSON() ([]byte, error) +1. DatabaseListResult.MarshalJSON() ([]byte, error) +1. DatabaseOperationListResult.MarshalJSON() ([]byte, error) +1. DatabaseOperationProperties.MarshalJSON() ([]byte, error) +1. DatabaseUsage.MarshalJSON() ([]byte, error) +1. DatabaseVulnerabilityAssessmentListResult.MarshalJSON() ([]byte, error) +1. DatabaseVulnerabilityAssessmentScanExportProperties.MarshalJSON() ([]byte, error) +1. ElasticPoolActivityProperties.MarshalJSON() ([]byte, error) +1. ElasticPoolDatabaseActivityProperties.MarshalJSON() ([]byte, error) +1. ElasticPoolListResult.MarshalJSON() ([]byte, error) +1. ElasticPoolOperationListResult.MarshalJSON() ([]byte, error) +1. ElasticPoolOperationProperties.MarshalJSON() ([]byte, error) +1. EncryptionProtectorListResult.MarshalJSON() ([]byte, error) +1. ExtendedDatabaseBlobAuditingPolicyListResult.MarshalJSON() ([]byte, error) +1. ExtendedServerBlobAuditingPolicyListResult.MarshalJSON() ([]byte, error) +1. FailoverGroupListResult.MarshalJSON() ([]byte, error) +1. ImportExportOperationResultProperties.MarshalJSON() ([]byte, error) +1. InstanceFailoverGroupListResult.MarshalJSON() ([]byte, error) +1. InstancePoolListResult.MarshalJSON() ([]byte, error) +1. JobAgentListResult.MarshalJSON() ([]byte, error) +1. JobCredentialListResult.MarshalJSON() ([]byte, error) +1. JobExecutionListResult.MarshalJSON() ([]byte, error) +1. JobExecutionTarget.MarshalJSON() ([]byte, error) +1. JobListResult.MarshalJSON() ([]byte, error) +1. JobStepListResult.MarshalJSON() ([]byte, error) +1. JobTargetGroupListResult.MarshalJSON() ([]byte, error) +1. JobVersion.MarshalJSON() ([]byte, error) +1. JobVersionListResult.MarshalJSON() ([]byte, error) +1. LogSizeCapability.MarshalJSON() ([]byte, error) +1. LogicalServerSecurityAlertPolicyListResult.MarshalJSON() ([]byte, error) +1. LongTermRetentionBackupListResult.MarshalJSON() ([]byte, error) +1. LongTermRetentionBackupProperties.MarshalJSON() ([]byte, error) +1. ManagedBackupShortTermRetentionPolicyListResult.MarshalJSON() ([]byte, error) +1. ManagedDatabaseListResult.MarshalJSON() ([]byte, error) +1. ManagedDatabaseRestoreDetailsProperties.MarshalJSON() ([]byte, error) +1. ManagedDatabaseSecurityAlertPolicyListResult.MarshalJSON() ([]byte, error) +1. ManagedInstanceAdministratorListResult.MarshalJSON() ([]byte, error) +1. ManagedInstanceAzureADOnlyAuthListResult.MarshalJSON() ([]byte, error) +1. ManagedInstanceEncryptionProtectorListResult.MarshalJSON() ([]byte, error) +1. ManagedInstanceKeyListResult.MarshalJSON() ([]byte, error) +1. ManagedInstanceListResult.MarshalJSON() ([]byte, error) +1. ManagedInstanceLongTermRetentionBackupListResult.MarshalJSON() ([]byte, error) +1. ManagedInstanceLongTermRetentionBackupProperties.MarshalJSON() ([]byte, error) +1. ManagedInstanceLongTermRetentionPolicyListResult.MarshalJSON() ([]byte, error) +1. ManagedInstanceOperationListResult.MarshalJSON() ([]byte, error) +1. ManagedInstanceOperationParametersPair.MarshalJSON() ([]byte, error) +1. ManagedInstanceOperationProperties.MarshalJSON() ([]byte, error) +1. ManagedInstanceOperationSteps.MarshalJSON() ([]byte, error) +1. ManagedInstancePecProperty.MarshalJSON() ([]byte, error) +1. ManagedInstanceVulnerabilityAssessmentListResult.MarshalJSON() ([]byte, error) +1. ManagedServerSecurityAlertPolicyListResult.MarshalJSON() ([]byte, error) +1. MaxSizeCapability.MarshalJSON() ([]byte, error) +1. Metric.MarshalJSON() ([]byte, error) +1. MetricAvailability.MarshalJSON() ([]byte, error) +1. MetricDefinition.MarshalJSON() ([]byte, error) +1. MetricName.MarshalJSON() ([]byte, error) +1. MetricValue.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationImpact.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. PerformanceLevelCapability.MarshalJSON() ([]byte, error) +1. PrivateEndpointConnectionListResult.MarshalJSON() ([]byte, error) +1. PrivateEndpointConnectionRequestStatus.MarshalJSON() ([]byte, error) +1. PrivateLinkResource.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceListResult.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. QueryMetricProperties.MarshalJSON() ([]byte, error) +1. RecommendedIndexProperties.MarshalJSON() ([]byte, error) +1. RecoverableDatabaseProperties.MarshalJSON() ([]byte, error) +1. RecoverableManagedDatabaseListResult.MarshalJSON() ([]byte, error) +1. RecoverableManagedDatabaseProperties.MarshalJSON() ([]byte, error) +1. ReplicationLinkProperties.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. RestorableDroppedDatabaseProperties.MarshalJSON() ([]byte, error) +1. RestorableDroppedManagedDatabaseListResult.MarshalJSON() ([]byte, error) +1. RestorableDroppedManagedDatabaseProperties.MarshalJSON() ([]byte, error) +1. RestorePointListResult.MarshalJSON() ([]byte, error) +1. RestorePointProperties.MarshalJSON() ([]byte, error) +1. SensitivityLabelListResult.MarshalJSON() ([]byte, error) +1. ServerBlobAuditingPolicyListResult.MarshalJSON() ([]byte, error) +1. ServerDNSAliasListResult.MarshalJSON() ([]byte, error) +1. ServerDNSAliasProperties.MarshalJSON() ([]byte, error) +1. ServerDevOpsAuditSettingsListResult.MarshalJSON() ([]byte, error) +1. ServerKeyListResult.MarshalJSON() ([]byte, error) +1. ServerListResult.MarshalJSON() ([]byte, error) +1. ServerPrivateEndpointConnection.MarshalJSON() ([]byte, error) +1. ServerTrustGroupListResult.MarshalJSON() ([]byte, error) +1. ServerUsage.MarshalJSON() ([]byte, error) +1. ServerVulnerabilityAssessmentListResult.MarshalJSON() ([]byte, error) +1. ServiceObjectiveProperties.MarshalJSON() ([]byte, error) +1. ServiceTierAdvisorProperties.MarshalJSON() ([]byte, error) +1. SloUsageMetric.MarshalJSON() ([]byte, error) +1. SubscriptionUsageListResult.MarshalJSON() ([]byte, error) +1. SubscriptionUsageProperties.MarshalJSON() ([]byte, error) +1. SyncAgentKeyProperties.MarshalJSON() ([]byte, error) +1. SyncAgentLinkedDatabaseListResult.MarshalJSON() ([]byte, error) +1. SyncAgentLinkedDatabaseProperties.MarshalJSON() ([]byte, error) +1. SyncAgentListResult.MarshalJSON() ([]byte, error) +1. SyncDatabaseIDListResult.MarshalJSON() ([]byte, error) +1. SyncDatabaseIDProperties.MarshalJSON() ([]byte, error) +1. SyncFullSchemaProperties.MarshalJSON() ([]byte, error) +1. SyncFullSchemaPropertiesListResult.MarshalJSON() ([]byte, error) +1. SyncFullSchemaTable.MarshalJSON() ([]byte, error) +1. SyncFullSchemaTableColumn.MarshalJSON() ([]byte, error) +1. SyncGroupListResult.MarshalJSON() ([]byte, error) +1. SyncGroupLogListResult.MarshalJSON() ([]byte, error) +1. SyncGroupLogProperties.MarshalJSON() ([]byte, error) +1. SyncMemberListResult.MarshalJSON() ([]byte, error) +1. SystemData.MarshalJSON() ([]byte, error) +1. TopQueriesListResult.MarshalJSON() ([]byte, error) +1. TransparentDataEncryptionActivityProperties.MarshalJSON() ([]byte, error) +1. Usage.MarshalJSON() ([]byte, error) +1. UsageListResult.MarshalJSON() ([]byte, error) +1. VirtualClusterListResult.MarshalJSON() ([]byte, error) +1. VirtualNetworkRuleListResult.MarshalJSON() ([]byte, error) +1. VulnerabilityAssessmentScanError.MarshalJSON() ([]byte, error) +1. VulnerabilityAssessmentScanRecordListResult.MarshalJSON() ([]byte, error) +1. VulnerabilityAssessmentScanRecordProperties.MarshalJSON() ([]byte, error) +1. WorkloadClassifierListResult.MarshalJSON() ([]byte, error) +1. WorkloadGroupListResult.MarshalJSON() ([]byte, error) diff --git a/services/preview/sql/mgmt/v4.0/sql/_meta.json b/services/preview/sql/mgmt/v4.0/sql/_meta.json index ea803aba932f..cd7a79ec4d39 100644 --- a/services/preview/sql/mgmt/v4.0/sql/_meta.json +++ b/services/preview/sql/mgmt/v4.0/sql/_meta.json @@ -2,9 +2,9 @@ "commit": "a1eee0489c374782a934ec1f093abd16fa7718ca", "readme": "/_/azure-rest-api-specs/specification/sql/resource-manager/readme.md", "tag": "package-composite-v4", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-composite-v4 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/sql/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-composite-v4 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/sql/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/sql/mgmt/v4.0/sql/models.go b/services/preview/sql/mgmt/v4.0/sql/models.go index c5cc75c62d43..22e205ad101b 100644 --- a/services/preview/sql/mgmt/v4.0/sql/models.go +++ b/services/preview/sql/mgmt/v4.0/sql/models.go @@ -30,6 +30,12 @@ type AdministratorListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for AdministratorListResult. +func (alr AdministratorListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AdministratorListResultIterator provides access to a complete listing of ServerAzureADAdministrator // values. type AdministratorListResultIterator struct { @@ -293,6 +299,12 @@ type AutoPauseDelayTimeRange struct { DoNotPauseValue *int32 `json:"doNotPauseValue,omitempty"` } +// MarshalJSON is the custom marshaler for AutoPauseDelayTimeRange. +func (apdtr AutoPauseDelayTimeRange) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureADOnlyAuthListResult a list of active directory only authentications. type AzureADOnlyAuthListResult struct { autorest.Response `json:"-"` @@ -302,6 +314,12 @@ type AzureADOnlyAuthListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for AzureADOnlyAuthListResult. +func (aaoalr AzureADOnlyAuthListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureADOnlyAuthListResultIterator provides access to a complete listing of // ServerAzureADOnlyAuthentication values. type AzureADOnlyAuthListResultIterator struct { @@ -743,6 +761,12 @@ type BackupShortTermRetentionPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for BackupShortTermRetentionPolicyListResult. +func (bstrplr BackupShortTermRetentionPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BackupShortTermRetentionPolicyListResultIterator provides access to a complete listing of // BackupShortTermRetentionPolicy values. type BackupShortTermRetentionPolicyListResultIterator struct { @@ -931,6 +955,12 @@ type CheckNameAvailabilityResponse struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResponse. +func (cnar CheckNameAvailabilityResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CompleteDatabaseRestoreDefinition contains the information necessary to perform a complete database // restore operation. type CompleteDatabaseRestoreDefinition struct { @@ -1280,6 +1310,12 @@ type DatabaseBlobAuditingPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseBlobAuditingPolicyListResult. +func (dbaplr DatabaseBlobAuditingPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseBlobAuditingPolicyListResultIterator provides access to a complete listing of // DatabaseBlobAuditingPolicy values. type DatabaseBlobAuditingPolicyListResultIterator struct { @@ -1534,6 +1570,12 @@ type DatabaseListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseListResult. +func (dlr DatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseListResultIterator provides access to a complete listing of Database values. type DatabaseListResultIterator struct { i int @@ -1765,6 +1807,12 @@ type DatabaseOperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseOperationListResult. +func (dolr DatabaseOperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseOperationListResultIterator provides access to a complete listing of DatabaseOperation values. type DatabaseOperationListResultIterator struct { i int @@ -1947,6 +1995,12 @@ type DatabaseOperationProperties struct { IsCancellable *bool `json:"isCancellable,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseOperationProperties. +func (dop DatabaseOperationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseProperties the database's properties. type DatabaseProperties struct { // CreateMode - Specifies the mode of database creation. @@ -2636,6 +2690,12 @@ type DatabaseUsage struct { NextResetTime *date.Time `json:"nextResetTime,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseUsage. +func (du DatabaseUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseUsageListResult the response to a list database metrics request. type DatabaseUsageListResult struct { autorest.Response `json:"-"` @@ -2725,6 +2785,12 @@ type DatabaseVulnerabilityAssessmentListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseVulnerabilityAssessmentListResult. +func (dvalr DatabaseVulnerabilityAssessmentListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseVulnerabilityAssessmentListResultIterator provides access to a complete listing of // DatabaseVulnerabilityAssessment values. type DatabaseVulnerabilityAssessmentListResultIterator struct { @@ -2981,6 +3047,12 @@ type DatabaseVulnerabilityAssessmentScanExportProperties struct { ExportedReportLocation *string `json:"exportedReportLocation,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseVulnerabilityAssessmentScanExportProperties. +func (dvasep DatabaseVulnerabilityAssessmentScanExportProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseVulnerabilityAssessmentScansExport a database Vulnerability Assessment scan export resource. type DatabaseVulnerabilityAssessmentScansExport struct { autorest.Response `json:"-"` @@ -3675,6 +3747,12 @@ type ElasticPoolActivityProperties struct { RequestedDtuGuarantee *int32 `json:"requestedDtuGuarantee,omitempty"` } +// MarshalJSON is the custom marshaler for ElasticPoolActivityProperties. +func (epap ElasticPoolActivityProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ElasticPoolDatabaseActivity represents the activity on an elastic pool. type ElasticPoolDatabaseActivity struct { // Location - The geo-location where the resource lives @@ -3803,6 +3881,12 @@ type ElasticPoolDatabaseActivityProperties struct { State *string `json:"state,omitempty"` } +// MarshalJSON is the custom marshaler for ElasticPoolDatabaseActivityProperties. +func (epdap ElasticPoolDatabaseActivityProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ElasticPoolEditionCapability the elastic pool edition capability. type ElasticPoolEditionCapability struct { // Name - READ-ONLY; The elastic pool edition name. @@ -3835,6 +3919,12 @@ type ElasticPoolListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ElasticPoolListResult. +func (eplr ElasticPoolListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ElasticPoolListResultIterator provides access to a complete listing of ElasticPool values. type ElasticPoolListResultIterator struct { i int @@ -4066,6 +4156,12 @@ type ElasticPoolOperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ElasticPoolOperationListResult. +func (epolr ElasticPoolOperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ElasticPoolOperationListResultIterator provides access to a complete listing of ElasticPoolOperation // values. type ElasticPoolOperationListResultIterator struct { @@ -4249,6 +4345,12 @@ type ElasticPoolOperationProperties struct { IsCancellable *bool `json:"isCancellable,omitempty"` } +// MarshalJSON is the custom marshaler for ElasticPoolOperationProperties. +func (epop ElasticPoolOperationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ElasticPoolPerDatabaseMaxPerformanceLevelCapability the max per-database performance level capability. type ElasticPoolPerDatabaseMaxPerformanceLevelCapability struct { // Limit - READ-ONLY; The maximum performance level per database. @@ -4722,6 +4824,12 @@ type EncryptionProtectorListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for EncryptionProtectorListResult. +func (eplr EncryptionProtectorListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EncryptionProtectorListResultIterator provides access to a complete listing of EncryptionProtector // values. type EncryptionProtectorListResultIterator struct { @@ -5079,6 +5187,12 @@ type ExtendedDatabaseBlobAuditingPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ExtendedDatabaseBlobAuditingPolicyListResult. +func (edbaplr ExtendedDatabaseBlobAuditingPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExtendedDatabaseBlobAuditingPolicyListResultIterator provides access to a complete listing of // ExtendedDatabaseBlobAuditingPolicy values. type ExtendedDatabaseBlobAuditingPolicyListResultIterator struct { @@ -5452,6 +5566,12 @@ type ExtendedServerBlobAuditingPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ExtendedServerBlobAuditingPolicyListResult. +func (esbaplr ExtendedServerBlobAuditingPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExtendedServerBlobAuditingPolicyListResultIterator provides access to a complete listing of // ExtendedServerBlobAuditingPolicy values. type ExtendedServerBlobAuditingPolicyListResultIterator struct { @@ -5807,6 +5927,12 @@ type FailoverGroupListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for FailoverGroupListResult. +func (fglr FailoverGroupListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FailoverGroupListResultIterator provides access to a complete listing of FailoverGroup values. type FailoverGroupListResultIterator struct { i int @@ -6666,6 +6792,12 @@ type ImportExportOperationResultProperties struct { PrivateEndpointConnections *[]PrivateEndpointConnectionRequestStatus `json:"privateEndpointConnections,omitempty"` } +// MarshalJSON is the custom marshaler for ImportExportOperationResultProperties. +func (ieorp ImportExportOperationResultProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImportNewDatabaseDefinition contains the information necessary to perform import operation for new // database. type ImportNewDatabaseDefinition struct { @@ -6775,6 +6907,12 @@ type InstanceFailoverGroupListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for InstanceFailoverGroupListResult. +func (ifglr InstanceFailoverGroupListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InstanceFailoverGroupListResultIterator provides access to a complete listing of InstanceFailoverGroup // values. type InstanceFailoverGroupListResultIterator struct { @@ -7308,6 +7446,12 @@ type InstancePoolListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for InstancePoolListResult. +func (iplr InstancePoolListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InstancePoolListResultIterator provides access to a complete listing of InstancePool values. type InstancePoolListResultIterator struct { i int @@ -7826,6 +7970,12 @@ type JobAgentListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for JobAgentListResult. +func (jalr JobAgentListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobAgentListResultIterator provides access to a complete listing of JobAgent values. type JobAgentListResultIterator struct { i int @@ -8213,6 +8363,12 @@ type JobCredentialListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for JobCredentialListResult. +func (jclr JobCredentialListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobCredentialListResultIterator provides access to a complete listing of JobCredential values. type JobCredentialListResultIterator struct { i int @@ -8453,6 +8609,12 @@ type JobExecutionListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for JobExecutionListResult. +func (jelr JobExecutionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobExecutionListResultIterator provides access to a complete listing of JobExecution values. type JobExecutionListResultIterator struct { i int @@ -8738,6 +8900,12 @@ type JobExecutionTarget struct { DatabaseName *string `json:"databaseName,omitempty"` } +// MarshalJSON is the custom marshaler for JobExecutionTarget. +func (jet JobExecutionTarget) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobListResult a list of jobs. type JobListResult struct { autorest.Response `json:"-"` @@ -8747,6 +8915,12 @@ type JobListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for JobListResult. +func (jlr JobListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobListResultIterator provides access to a complete listing of Job values. type JobListResultIterator struct { i int @@ -9039,6 +9213,12 @@ type JobStepListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for JobStepListResult. +func (jslr JobStepListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobStepListResultIterator provides access to a complete listing of JobStep values. type JobStepListResultIterator struct { i int @@ -9326,6 +9506,12 @@ type JobTargetGroupListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for JobTargetGroupListResult. +func (jtglr JobTargetGroupListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobTargetGroupListResultIterator provides access to a complete listing of JobTargetGroup values. type JobTargetGroupListResultIterator struct { i int @@ -9493,6 +9679,12 @@ type JobVersion struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for JobVersion. +func (jv JobVersion) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobVersionListResult a list of job versions. type JobVersionListResult struct { autorest.Response `json:"-"` @@ -9502,6 +9694,12 @@ type JobVersionListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for JobVersionListResult. +func (jvlr JobVersionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobVersionListResultIterator provides access to a complete listing of JobVersion values. type JobVersionListResultIterator struct { i int @@ -9704,6 +9902,12 @@ type LogicalServerSecurityAlertPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for LogicalServerSecurityAlertPolicyListResult. +func (lssaplr LogicalServerSecurityAlertPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LogicalServerSecurityAlertPolicyListResultIterator provides access to a complete listing of // ServerSecurityAlertPolicy values. type LogicalServerSecurityAlertPolicyListResultIterator struct { @@ -9863,6 +10067,12 @@ type LogSizeCapability struct { Unit LogSizeUnit `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for LogSizeCapability. +func (lsc LogSizeCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LongTermRetentionBackup a long term retention backup. type LongTermRetentionBackup struct { autorest.Response `json:"-"` @@ -9945,6 +10155,12 @@ type LongTermRetentionBackupListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for LongTermRetentionBackupListResult. +func (ltrblr LongTermRetentionBackupListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LongTermRetentionBackupListResultIterator provides access to a complete listing of // LongTermRetentionBackup values. type LongTermRetentionBackupListResultIterator struct { @@ -10112,6 +10328,12 @@ type LongTermRetentionBackupProperties struct { BackupExpirationTime *date.Time `json:"backupExpirationTime,omitempty"` } +// MarshalJSON is the custom marshaler for LongTermRetentionBackupProperties. +func (ltrbp LongTermRetentionBackupProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LongTermRetentionBackupsDeleteByResourceGroupFuture an abstraction for monitoring and retrieving the // results of a long-running operation. type LongTermRetentionBackupsDeleteByResourceGroupFuture struct { @@ -10461,6 +10683,12 @@ type ManagedBackupShortTermRetentionPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedBackupShortTermRetentionPolicyListResult. +func (mbstrplr ManagedBackupShortTermRetentionPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedBackupShortTermRetentionPolicyListResultIterator provides access to a complete listing of // ManagedBackupShortTermRetentionPolicy values. type ManagedBackupShortTermRetentionPolicyListResultIterator struct { @@ -10729,6 +10957,12 @@ type ManagedDatabaseListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedDatabaseListResult. +func (mdlr ManagedDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedDatabaseListResultIterator provides access to a complete listing of ManagedDatabase values. type ManagedDatabaseListResultIterator struct { i int @@ -10983,6 +11217,12 @@ type ManagedDatabaseRestoreDetailsProperties struct { BlockReason *string `json:"blockReason,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedDatabaseRestoreDetailsProperties. +func (mdrdp ManagedDatabaseRestoreDetailsProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedDatabaseRestoreDetailsResult a managed database restore details. type ManagedDatabaseRestoreDetailsResult struct { autorest.Response `json:"-"` @@ -11255,6 +11495,12 @@ type ManagedDatabaseSecurityAlertPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedDatabaseSecurityAlertPolicyListResult. +func (mdsaplr ManagedDatabaseSecurityAlertPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedDatabaseSecurityAlertPolicyListResultIterator provides access to a complete listing of // ManagedDatabaseSecurityAlertPolicy values. type ManagedDatabaseSecurityAlertPolicyListResultIterator struct { @@ -11751,6 +11997,12 @@ type ManagedInstanceAdministratorListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceAdministratorListResult. +func (mialr ManagedInstanceAdministratorListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstanceAdministratorListResultIterator provides access to a complete listing of // ManagedInstanceAdministrator values. type ManagedInstanceAdministratorListResultIterator struct { @@ -12156,6 +12408,12 @@ type ManagedInstanceAzureADOnlyAuthListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceAzureADOnlyAuthListResult. +func (miaaoalr ManagedInstanceAzureADOnlyAuthListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstanceAzureADOnlyAuthListResultIterator provides access to a complete listing of // ManagedInstanceAzureADOnlyAuthentication values. type ManagedInstanceAzureADOnlyAuthListResultIterator struct { @@ -12433,6 +12691,12 @@ type ManagedInstanceEncryptionProtectorListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceEncryptionProtectorListResult. +func (mieplr ManagedInstanceEncryptionProtectorListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstanceEncryptionProtectorListResultIterator provides access to a complete listing of // ManagedInstanceEncryptionProtector values. type ManagedInstanceEncryptionProtectorListResultIterator struct { @@ -12807,6 +13071,12 @@ type ManagedInstanceKeyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceKeyListResult. +func (miklr ManagedInstanceKeyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstanceKeyListResultIterator provides access to a complete listing of ManagedInstanceKey values. type ManagedInstanceKeyListResultIterator struct { i int @@ -13070,6 +13340,12 @@ type ManagedInstanceListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceListResult. +func (milr ManagedInstanceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstanceListResultIterator provides access to a complete listing of ManagedInstance values. type ManagedInstanceListResultIterator struct { i int @@ -13303,6 +13579,12 @@ type ManagedInstanceLongTermRetentionBackupListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceLongTermRetentionBackupListResult. +func (miltrblr ManagedInstanceLongTermRetentionBackupListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstanceLongTermRetentionBackupListResultIterator provides access to a complete listing of // ManagedInstanceLongTermRetentionBackup values. type ManagedInstanceLongTermRetentionBackupListResultIterator struct { @@ -13471,6 +13753,12 @@ type ManagedInstanceLongTermRetentionBackupProperties struct { BackupExpirationTime *date.Time `json:"backupExpirationTime,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceLongTermRetentionBackupProperties. +func (miltrbp ManagedInstanceLongTermRetentionBackupProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateFuture an abstraction for monitoring and // retrieving the results of a long-running operation. type ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateFuture struct { @@ -13596,6 +13884,12 @@ type ManagedInstanceLongTermRetentionPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceLongTermRetentionPolicyListResult. +func (miltrplr ManagedInstanceLongTermRetentionPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstanceLongTermRetentionPolicyListResultIterator provides access to a complete listing of // ManagedInstanceLongTermRetentionPolicy values. type ManagedInstanceLongTermRetentionPolicyListResultIterator struct { @@ -13849,6 +14143,12 @@ type ManagedInstanceOperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceOperationListResult. +func (miolr ManagedInstanceOperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstanceOperationListResultIterator provides access to a complete listing of // ManagedInstanceOperation values. type ManagedInstanceOperationListResultIterator struct { @@ -14008,6 +14308,12 @@ type ManagedInstanceOperationParametersPair struct { RequestedParameters *UpsertManagedServerOperationParameters `json:"requestedParameters,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceOperationParametersPair. +func (miopp ManagedInstanceOperationParametersPair) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstanceOperationProperties the properties of a managed instance operation. type ManagedInstanceOperationProperties struct { // ManagedInstanceName - READ-ONLY; The name of the managed instance the operation is being performed on. @@ -14042,6 +14348,12 @@ type ManagedInstanceOperationProperties struct { OperationSteps *ManagedInstanceOperationSteps `json:"operationSteps,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceOperationProperties. +func (miop ManagedInstanceOperationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstanceOperationSteps the steps of a managed instance operation. type ManagedInstanceOperationSteps struct { // TotalSteps - READ-ONLY; The total number of operation steps. @@ -14052,6 +14364,12 @@ type ManagedInstanceOperationSteps struct { StepsList *[]UpsertManagedServerOperationStep `json:"stepsList,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceOperationSteps. +func (mios ManagedInstanceOperationSteps) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstancePairInfo pairs of Managed Instances in the failover group. type ManagedInstancePairInfo struct { // PrimaryManagedInstanceID - Id of Primary Managed Instance in pair. @@ -14068,6 +14386,12 @@ type ManagedInstancePecProperty struct { Properties *ManagedInstancePrivateEndpointConnectionProperties `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstancePecProperty. +func (mipp ManagedInstancePecProperty) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstancePrivateEndpointConnectionProperties properties of a private endpoint connection. type ManagedInstancePrivateEndpointConnectionProperties struct { // PrivateEndpoint - Private endpoint which the connection belongs to. @@ -14657,6 +14981,12 @@ type ManagedInstanceVulnerabilityAssessmentListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedInstanceVulnerabilityAssessmentListResult. +func (mivalr ManagedInstanceVulnerabilityAssessmentListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedInstanceVulnerabilityAssessmentListResultIterator provides access to a complete listing of // ManagedInstanceVulnerabilityAssessment values. type ManagedInstanceVulnerabilityAssessmentListResultIterator struct { @@ -15033,6 +15363,12 @@ type ManagedServerSecurityAlertPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedServerSecurityAlertPolicyListResult. +func (mssaplr ManagedServerSecurityAlertPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedServerSecurityAlertPolicyListResultIterator provides access to a complete listing of // ManagedServerSecurityAlertPolicy values. type ManagedServerSecurityAlertPolicyListResultIterator struct { @@ -15193,6 +15529,12 @@ type MaxSizeCapability struct { Unit MaxSizeUnit `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for MaxSizeCapability. +func (msc MaxSizeCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MaxSizeRangeCapability the maximum size range capability. type MaxSizeRangeCapability struct { // MinValue - READ-ONLY; Minimum value. @@ -15234,6 +15576,12 @@ type Metric struct { MetricValues *[]MetricValue `json:"metricValues,omitempty"` } +// MarshalJSON is the custom marshaler for Metric. +func (mVar Metric) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricAvailability a metric availability value. type MetricAvailability struct { // Retention - READ-ONLY; The length of retention for the database metric. @@ -15242,6 +15590,12 @@ type MetricAvailability struct { TimeGrain *string `json:"timeGrain,omitempty"` } +// MarshalJSON is the custom marshaler for MetricAvailability. +func (ma MetricAvailability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricDefinition a database metric definition. type MetricDefinition struct { // Name - READ-ONLY; The name information for the metric. @@ -15256,6 +15610,12 @@ type MetricDefinition struct { MetricAvailabilities *[]MetricAvailability `json:"metricAvailabilities,omitempty"` } +// MarshalJSON is the custom marshaler for MetricDefinition. +func (md MetricDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricDefinitionListResult the response to a list database metric definitions request. type MetricDefinitionListResult struct { autorest.Response `json:"-"` @@ -15278,6 +15638,12 @@ type MetricName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for MetricName. +func (mn MetricName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricValue represents database metrics. type MetricValue struct { // Count - READ-ONLY; The number of values for the metric. @@ -15294,6 +15660,12 @@ type MetricValue struct { Total *float64 `json:"total,omitempty"` } +// MarshalJSON is the custom marshaler for MetricValue. +func (mv MetricValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MinCapacityCapability the min capacity capability type MinCapacityCapability struct { // Value - READ-ONLY; Min capacity value @@ -15359,6 +15731,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (od OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationImpact the impact of an operation, both in absolute and relative terms. type OperationImpact struct { // Name - READ-ONLY; The name of the impact dimension. @@ -15371,6 +15749,12 @@ type OperationImpact struct { ChangeValueRelative *float64 `json:"changeValueRelative,omitempty"` } +// MarshalJSON is the custom marshaler for OperationImpact. +func (oi OperationImpact) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of the request to list SQL operations. type OperationListResult struct { autorest.Response `json:"-"` @@ -15380,6 +15764,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -15574,6 +15964,12 @@ type PerformanceLevelCapability struct { Unit PerformanceLevelUnit `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for PerformanceLevelCapability. +func (plc PerformanceLevelCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection a private endpoint connection type PrivateEndpointConnection struct { autorest.Response `json:"-"` @@ -15656,6 +16052,12 @@ type PrivateEndpointConnectionListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpointConnectionListResult. +func (peclr PrivateEndpointConnectionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnectionListResultIterator provides access to a complete listing of // PrivateEndpointConnection values. type PrivateEndpointConnectionListResultIterator struct { @@ -15839,6 +16241,12 @@ type PrivateEndpointConnectionRequestStatus struct { Status *string `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpointConnectionRequestStatus. +func (pecrs PrivateEndpointConnectionRequestStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnectionsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type PrivateEndpointConnectionsCreateOrUpdateFuture struct { @@ -15938,6 +16346,12 @@ type PrivateLinkResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResource. +func (plr PrivateLinkResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkResourceListResult a list of private link resources type PrivateLinkResourceListResult struct { autorest.Response `json:"-"` @@ -15947,6 +16361,12 @@ type PrivateLinkResourceListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceListResult. +func (plrlr PrivateLinkResourceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkResourceListResultIterator provides access to a complete listing of PrivateLinkResource // values. type PrivateLinkResourceListResultIterator struct { @@ -16106,6 +16526,12 @@ type PrivateLinkResourceProperties struct { RequiredMembers *[]string `json:"requiredMembers,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. +func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkServiceConnectionStateProperty ... type PrivateLinkServiceConnectionStateProperty struct { // Status - The private link service connection status. Possible values include: 'Approved', 'Pending', 'Rejected', 'Disconnected' @@ -16138,6 +16564,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QueryMetricInterval properties of a query metrics interval. type QueryMetricInterval struct { // IntervalStartTime - READ-ONLY; The start time for the metric interval (ISO-8601 format). @@ -16181,6 +16613,12 @@ type QueryMetricProperties struct { Stdev *float64 `json:"stdev,omitempty"` } +// MarshalJSON is the custom marshaler for QueryMetricProperties. +func (qmp QueryMetricProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QueryStatisticsProperties properties of a query execution statistics. type QueryStatisticsProperties struct { // DatabaseName - READ-ONLY; Database name of the database in which this query was executed. @@ -16462,6 +16900,12 @@ type RecommendedIndexProperties struct { ReportedImpact *[]OperationImpact `json:"reportedImpact,omitempty"` } +// MarshalJSON is the custom marshaler for RecommendedIndexProperties. +func (rip RecommendedIndexProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RecoverableDatabase a recoverable database type RecoverableDatabase struct { autorest.Response `json:"-"` @@ -16554,6 +16998,12 @@ type RecoverableDatabaseProperties struct { LastAvailableBackupDate *date.Time `json:"lastAvailableBackupDate,omitempty"` } +// MarshalJSON is the custom marshaler for RecoverableDatabaseProperties. +func (rdp RecoverableDatabaseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RecoverableManagedDatabase a recoverable managed database resource. type RecoverableManagedDatabase struct { autorest.Response `json:"-"` @@ -16636,6 +17086,12 @@ type RecoverableManagedDatabaseListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RecoverableManagedDatabaseListResult. +func (rmdlr RecoverableManagedDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RecoverableManagedDatabaseListResultIterator provides access to a complete listing of // RecoverableManagedDatabase values. type RecoverableManagedDatabaseListResultIterator struct { @@ -16793,6 +17249,12 @@ type RecoverableManagedDatabaseProperties struct { LastAvailableBackupDate *string `json:"lastAvailableBackupDate,omitempty"` } +// MarshalJSON is the custom marshaler for RecoverableManagedDatabaseProperties. +func (rmdp RecoverableManagedDatabaseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReplicationLink represents a database replication link. type ReplicationLink struct { autorest.Response `json:"-"` @@ -16908,6 +17370,12 @@ type ReplicationLinkProperties struct { ReplicationState ReplicationState `json:"replicationState,omitempty"` } +// MarshalJSON is the custom marshaler for ReplicationLinkProperties. +func (rlp ReplicationLinkProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReplicationLinksFailoverAllowDataLossFuture an abstraction for monitoring and retrieving the results of // a long-running operation. type ReplicationLinksFailoverAllowDataLossFuture struct { @@ -17029,6 +17497,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceIdentity azure Active Directory identity configuration for a resource. type ResourceIdentity struct { // PrincipalID - READ-ONLY; The Azure Active Directory principal id. @@ -17165,6 +17639,12 @@ type RestorableDroppedDatabaseProperties struct { EarliestRestoreDate *date.Time `json:"earliestRestoreDate,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableDroppedDatabaseProperties. +func (rddp RestorableDroppedDatabaseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorableDroppedManagedDatabase a restorable dropped managed database resource. type RestorableDroppedManagedDatabase struct { autorest.Response `json:"-"` @@ -17275,6 +17755,12 @@ type RestorableDroppedManagedDatabaseListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableDroppedManagedDatabaseListResult. +func (rdmdlr RestorableDroppedManagedDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorableDroppedManagedDatabaseListResultIterator provides access to a complete listing of // RestorableDroppedManagedDatabase values. type RestorableDroppedManagedDatabaseListResultIterator struct { @@ -17439,6 +17925,12 @@ type RestorableDroppedManagedDatabaseProperties struct { EarliestRestoreDate *date.Time `json:"earliestRestoreDate,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableDroppedManagedDatabaseProperties. +func (rdmdp RestorableDroppedManagedDatabaseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorePoint database restore points. type RestorePoint struct { autorest.Response `json:"-"` @@ -17532,6 +18024,12 @@ type RestorePointListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RestorePointListResult. +func (rplr RestorePointListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorePointProperties properties of a database restore point type RestorePointProperties struct { // RestorePointType - READ-ONLY; The type of restore point. Possible values include: 'CONTINUOUS', 'DISCRETE' @@ -17544,6 +18042,12 @@ type RestorePointProperties struct { RestorePointLabel *string `json:"restorePointLabel,omitempty"` } +// MarshalJSON is the custom marshaler for RestorePointProperties. +func (rpp RestorePointProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorePointsCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type RestorePointsCreateFuture struct { @@ -17716,6 +18220,12 @@ type SensitivityLabelListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SensitivityLabelListResult. +func (sllr SensitivityLabelListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SensitivityLabelListResultIterator provides access to a complete listing of SensitivityLabel values. type SensitivityLabelListResultIterator struct { i int @@ -18533,6 +19043,12 @@ type ServerBlobAuditingPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ServerBlobAuditingPolicyListResult. +func (sbaplr ServerBlobAuditingPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerBlobAuditingPolicyListResultIterator provides access to a complete listing of // ServerBlobAuditingPolicy values. type ServerBlobAuditingPolicyListResultIterator struct { @@ -19177,6 +19693,12 @@ type ServerDevOpsAuditSettingsListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ServerDevOpsAuditSettingsListResult. +func (sdoaslr ServerDevOpsAuditSettingsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerDevOpsAuditSettingsListResultIterator provides access to a complete listing of // ServerDevOpsAuditingSettings values. type ServerDevOpsAuditSettingsListResultIterator struct { @@ -19561,6 +20083,12 @@ type ServerDNSAliasListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ServerDNSAliasListResult. +func (sdalr ServerDNSAliasListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerDNSAliasListResultIterator provides access to a complete listing of ServerDNSAlias values. type ServerDNSAliasListResultIterator struct { i int @@ -19717,6 +20245,12 @@ type ServerDNSAliasProperties struct { AzureDNSRecord *string `json:"azureDnsRecord,omitempty"` } +// MarshalJSON is the custom marshaler for ServerDNSAliasProperties. +func (sdap ServerDNSAliasProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerInfo server info for the server trust group. type ServerInfo struct { // ServerID - Server Id. @@ -19830,6 +20364,12 @@ type ServerKeyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ServerKeyListResult. +func (sklr ServerKeyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerKeyListResultIterator provides access to a complete listing of ServerKey values. type ServerKeyListResultIterator struct { i int @@ -20101,6 +20641,12 @@ type ServerListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ServerListResult. +func (slr ServerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerListResultIterator provides access to a complete listing of Server values. type ServerListResultIterator struct { i int @@ -20259,6 +20805,12 @@ type ServerPrivateEndpointConnection struct { Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for ServerPrivateEndpointConnection. +func (spec ServerPrivateEndpointConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerProperties the properties of a server. type ServerProperties struct { // AdministratorLogin - Administrator username for the server. Once created it cannot be changed. @@ -20664,6 +21216,12 @@ type ServerTrustGroupListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ServerTrustGroupListResult. +func (stglr ServerTrustGroupListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerTrustGroupListResultIterator provides access to a complete listing of ServerTrustGroup values. type ServerTrustGroupListResultIterator struct { i int @@ -20973,6 +21531,12 @@ type ServerUsage struct { NextResetTime *date.Time `json:"nextResetTime,omitempty"` } +// MarshalJSON is the custom marshaler for ServerUsage. +func (su ServerUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerUsageListResult represents the response to a list server metrics request. type ServerUsageListResult struct { autorest.Response `json:"-"` @@ -21085,6 +21649,12 @@ type ServerVulnerabilityAssessmentListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ServerVulnerabilityAssessmentListResult. +func (svalr ServerVulnerabilityAssessmentListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerVulnerabilityAssessmentListResultIterator provides access to a complete listing of // ServerVulnerabilityAssessment values. type ServerVulnerabilityAssessmentListResultIterator struct { @@ -21383,6 +21953,12 @@ type ServiceObjectiveProperties struct { Enabled *bool `json:"enabled,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceObjectiveProperties. +func (sop ServiceObjectiveProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceTierAdvisor represents a Service Tier Advisor. type ServiceTierAdvisor struct { autorest.Response `json:"-"` @@ -21502,6 +22078,12 @@ type ServiceTierAdvisorProperties struct { Confidence *float64 `json:"confidence,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTierAdvisorProperties. +func (stap ServiceTierAdvisorProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Sku an ARM Resource SKU. type Sku struct { // Name - The name of the SKU, typically, a letter + Number code, e.g. P3. @@ -21526,6 +22108,12 @@ type SloUsageMetric struct { InRangeTimeRatio *float64 `json:"inRangeTimeRatio,omitempty"` } +// MarshalJSON is the custom marshaler for SloUsageMetric. +func (sum SloUsageMetric) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageCapability the storage account type capability. type StorageCapability struct { // StorageAccountType - READ-ONLY; The storage account type for the database's backups. Possible values include: 'StorageAccountType1GRS', 'StorageAccountType1LRS', 'StorageAccountType1ZRS' @@ -21627,6 +22215,12 @@ type SubscriptionUsageListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SubscriptionUsageListResult. +func (sulr SubscriptionUsageListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SubscriptionUsageListResultIterator provides access to a complete listing of SubscriptionUsage values. type SubscriptionUsageListResultIterator struct { i int @@ -21789,6 +22383,12 @@ type SubscriptionUsageProperties struct { Unit *string `json:"unit,omitempty"` } +// MarshalJSON is the custom marshaler for SubscriptionUsageProperties. +func (sup SubscriptionUsageProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncAgent an Azure SQL Database sync agent. type SyncAgent struct { autorest.Response `json:"-"` @@ -21869,6 +22469,12 @@ type SyncAgentKeyProperties struct { SyncAgentKey *string `json:"syncAgentKey,omitempty"` } +// MarshalJSON is the custom marshaler for SyncAgentKeyProperties. +func (sakp SyncAgentKeyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncAgentLinkedDatabase an Azure SQL Database sync agent linked database. type SyncAgentLinkedDatabase struct { // SyncAgentLinkedDatabaseProperties - Resource properties. @@ -21950,6 +22556,12 @@ type SyncAgentLinkedDatabaseListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SyncAgentLinkedDatabaseListResult. +func (saldlr SyncAgentLinkedDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncAgentLinkedDatabaseListResultIterator provides access to a complete listing of // SyncAgentLinkedDatabase values. type SyncAgentLinkedDatabaseListResultIterator struct { @@ -22117,6 +22729,12 @@ type SyncAgentLinkedDatabaseProperties struct { UserName *string `json:"userName,omitempty"` } +// MarshalJSON is the custom marshaler for SyncAgentLinkedDatabaseProperties. +func (saldp SyncAgentLinkedDatabaseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncAgentListResult a list of sync agents. type SyncAgentListResult struct { autorest.Response `json:"-"` @@ -22126,6 +22744,12 @@ type SyncAgentListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SyncAgentListResult. +func (salr SyncAgentListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncAgentListResultIterator provides access to a complete listing of SyncAgent values. type SyncAgentListResultIterator struct { i int @@ -22392,6 +23016,12 @@ type SyncDatabaseIDListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SyncDatabaseIDListResult. +func (sdilr SyncDatabaseIDListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncDatabaseIDListResultIterator provides access to a complete listing of SyncDatabaseIDProperties // values. type SyncDatabaseIDListResultIterator struct { @@ -22549,6 +23179,12 @@ type SyncDatabaseIDProperties struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for SyncDatabaseIDProperties. +func (sdip SyncDatabaseIDProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncFullSchemaProperties properties of the database full schema. type SyncFullSchemaProperties struct { // Tables - READ-ONLY; List of tables in the database full schema. @@ -22557,6 +23193,12 @@ type SyncFullSchemaProperties struct { LastUpdateTime *date.Time `json:"lastUpdateTime,omitempty"` } +// MarshalJSON is the custom marshaler for SyncFullSchemaProperties. +func (sfsp SyncFullSchemaProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncFullSchemaPropertiesListResult a list of sync schema properties. type SyncFullSchemaPropertiesListResult struct { autorest.Response `json:"-"` @@ -22566,6 +23208,12 @@ type SyncFullSchemaPropertiesListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SyncFullSchemaPropertiesListResult. +func (sfsplr SyncFullSchemaPropertiesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncFullSchemaPropertiesListResultIterator provides access to a complete listing of // SyncFullSchemaProperties values. type SyncFullSchemaPropertiesListResultIterator struct { @@ -22731,6 +23379,12 @@ type SyncFullSchemaTable struct { QuotedName *string `json:"quotedName,omitempty"` } +// MarshalJSON is the custom marshaler for SyncFullSchemaTable. +func (sfst SyncFullSchemaTable) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncFullSchemaTableColumn properties of the column in the table of database full schema. type SyncFullSchemaTableColumn struct { // DataSize - READ-ONLY; Data size of the column. @@ -22749,6 +23403,12 @@ type SyncFullSchemaTableColumn struct { QuotedName *string `json:"quotedName,omitempty"` } +// MarshalJSON is the custom marshaler for SyncFullSchemaTableColumn. +func (sfstc SyncFullSchemaTableColumn) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncGroup an Azure SQL Database sync group. type SyncGroup struct { autorest.Response `json:"-"` @@ -22831,6 +23491,12 @@ type SyncGroupListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SyncGroupListResult. +func (sglr SyncGroupListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncGroupListResultIterator provides access to a complete listing of SyncGroup values. type SyncGroupListResultIterator struct { i int @@ -22990,6 +23656,12 @@ type SyncGroupLogListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SyncGroupLogListResult. +func (sgllr SyncGroupLogListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncGroupLogListResultIterator provides access to a complete listing of SyncGroupLogProperties values. type SyncGroupLogListResultIterator struct { i int @@ -23156,6 +23828,12 @@ type SyncGroupLogProperties struct { OperationStatus *string `json:"operationStatus,omitempty"` } +// MarshalJSON is the custom marshaler for SyncGroupLogProperties. +func (sglp SyncGroupLogProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncGroupProperties properties of a sync group. type SyncGroupProperties struct { // Interval - Sync interval of the sync group. @@ -23475,6 +24153,12 @@ type SyncMemberListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SyncMemberListResult. +func (smlr SyncMemberListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncMemberListResultIterator provides access to a complete listing of SyncMember values. type SyncMemberListResultIterator struct { i int @@ -23865,6 +24549,12 @@ type SystemData struct { LastModifiedAt *date.Time `json:"lastModifiedAt,omitempty"` } +// MarshalJSON is the custom marshaler for SystemData. +func (sd SystemData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TdeCertificate a TDE certificate that can be uploaded into a server. type TdeCertificate struct { // TdeCertificateProperties - Resource properties. @@ -24018,6 +24708,12 @@ type TopQueriesListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for TopQueriesListResult. +func (tqlr TopQueriesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TopQueriesListResultIterator provides access to a complete listing of TopQueries values. type TopQueriesListResultIterator struct { i int @@ -24378,6 +25074,12 @@ type TransparentDataEncryptionActivityProperties struct { PercentComplete *float64 `json:"percentComplete,omitempty"` } +// MarshalJSON is the custom marshaler for TransparentDataEncryptionActivityProperties. +func (tdeap TransparentDataEncryptionActivityProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TransparentDataEncryptionProperties represents the properties of a database transparent data encryption. type TransparentDataEncryptionProperties struct { // Status - The status of the database transparent data encryption. Possible values include: 'TransparentDataEncryptionStatusEnabled', 'TransparentDataEncryptionStatusDisabled' @@ -24424,6 +25126,12 @@ type Usage struct { RequestedLimit *int32 `json:"requestedLimit,omitempty"` } +// MarshalJSON is the custom marshaler for Usage. +func (u Usage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageListResult a list of usages. type UsageListResult struct { autorest.Response `json:"-"` @@ -24433,6 +25141,12 @@ type UsageListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for UsageListResult. +func (ulr UsageListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageListResultIterator provides access to a complete listing of Usage values. type UsageListResultIterator struct { i int @@ -24693,6 +25407,12 @@ type VirtualClusterListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualClusterListResult. +func (vclr VirtualClusterListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualClusterListResultIterator provides access to a complete listing of VirtualCluster values. type VirtualClusterListResultIterator struct { i int @@ -25077,6 +25797,12 @@ type VirtualNetworkRuleListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkRuleListResult. +func (vnrlr VirtualNetworkRuleListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkRuleListResultIterator provides access to a complete listing of VirtualNetworkRule values. type VirtualNetworkRuleListResultIterator struct { i int @@ -25348,6 +26074,12 @@ type VulnerabilityAssessmentScanError struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for VulnerabilityAssessmentScanError. +func (vase VulnerabilityAssessmentScanError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VulnerabilityAssessmentScanRecord a vulnerability assessment scan record. type VulnerabilityAssessmentScanRecord struct { autorest.Response `json:"-"` @@ -25430,6 +26162,12 @@ type VulnerabilityAssessmentScanRecordListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for VulnerabilityAssessmentScanRecordListResult. +func (vasrlr VulnerabilityAssessmentScanRecordListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VulnerabilityAssessmentScanRecordListResultIterator provides access to a complete listing of // VulnerabilityAssessmentScanRecord values. type VulnerabilityAssessmentScanRecordListResultIterator struct { @@ -25602,6 +26340,12 @@ type VulnerabilityAssessmentScanRecordProperties struct { NumberOfFailedSecurityChecks *int32 `json:"numberOfFailedSecurityChecks,omitempty"` } +// MarshalJSON is the custom marshaler for VulnerabilityAssessmentScanRecordProperties. +func (vasrp VulnerabilityAssessmentScanRecordProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WorkloadClassifier workload classifier operations for a data warehouse type WorkloadClassifier struct { autorest.Response `json:"-"` @@ -25684,6 +26428,12 @@ type WorkloadClassifierListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for WorkloadClassifierListResult. +func (wclr WorkloadClassifierListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WorkloadClassifierListResultIterator provides access to a complete listing of WorkloadClassifier values. type WorkloadClassifierListResultIterator struct { i int @@ -26013,6 +26763,12 @@ type WorkloadGroupListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for WorkloadGroupListResult. +func (wglr WorkloadGroupListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WorkloadGroupListResultIterator provides access to a complete listing of WorkloadGroup values. type WorkloadGroupListResultIterator struct { i int diff --git a/services/preview/sqlvirtualmachine/mgmt/2017-03-01-preview/sqlvirtualmachine/CHANGELOG.md b/services/preview/sqlvirtualmachine/mgmt/2017-03-01-preview/sqlvirtualmachine/CHANGELOG.md index 52911e4cc5e4..030549292fc2 100644 --- a/services/preview/sqlvirtualmachine/mgmt/2017-03-01-preview/sqlvirtualmachine/CHANGELOG.md +++ b/services/preview/sqlvirtualmachine/mgmt/2017-03-01-preview/sqlvirtualmachine/CHANGELOG.md @@ -1,2 +1,13 @@ # Change History +## Additive Changes + +### New Funcs + +1. AvailabilityGroupListenerListResult.MarshalJSON() ([]byte, error) +1. GroupListResult.MarshalJSON() ([]byte, error) +1. ListResult.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/sqlvirtualmachine/mgmt/2017-03-01-preview/sqlvirtualmachine/_meta.json b/services/preview/sqlvirtualmachine/mgmt/2017-03-01-preview/sqlvirtualmachine/_meta.json index d319bbeeb491..5e672cd8ff6a 100644 --- a/services/preview/sqlvirtualmachine/mgmt/2017-03-01-preview/sqlvirtualmachine/_meta.json +++ b/services/preview/sqlvirtualmachine/mgmt/2017-03-01-preview/sqlvirtualmachine/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/sqlvirtualmachine/resource-manager/readme.md", "tag": "package-2017-03-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-03-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/sqlvirtualmachine/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-03-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/sqlvirtualmachine/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/sqlvirtualmachine/mgmt/2017-03-01-preview/sqlvirtualmachine/models.go b/services/preview/sqlvirtualmachine/mgmt/2017-03-01-preview/sqlvirtualmachine/models.go index da0f658b4246..447e02bdcf23 100644 --- a/services/preview/sqlvirtualmachine/mgmt/2017-03-01-preview/sqlvirtualmachine/models.go +++ b/services/preview/sqlvirtualmachine/mgmt/2017-03-01-preview/sqlvirtualmachine/models.go @@ -148,6 +148,12 @@ type AvailabilityGroupListenerListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for AvailabilityGroupListenerListResult. +func (agllr AvailabilityGroupListenerListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AvailabilityGroupListenerListResultIterator provides access to a complete listing of // AvailabilityGroupListener values. type AvailabilityGroupListenerListResultIterator struct { @@ -521,6 +527,12 @@ type GroupListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for GroupListResult. +func (glr GroupListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GroupListResultIterator provides access to a complete listing of Group values. type GroupListResultIterator struct { i int @@ -864,6 +876,12 @@ type ListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListResult. +func (lr ListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListResultIterator provides access to a complete listing of SQLVirtualMachine values. type ListResultIterator struct { i int @@ -1058,6 +1076,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (od OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of the request to list SQL operations. type OperationListResult struct { autorest.Response `json:"-"` @@ -1067,6 +1091,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -1307,6 +1337,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource ARM resource. type Resource struct { // ID - READ-ONLY; Resource ID. @@ -1317,6 +1353,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceIdentity azure Active Directory identity configuration for a resource. type ResourceIdentity struct { // PrincipalID - READ-ONLY; The Azure Active Directory principal id. diff --git a/services/preview/storage/datalake/2018-06-17/storagedatalake/_meta.json b/services/preview/storage/datalake/2018-06-17/storagedatalake/_meta.json index b0ac3c76ac9f..2cf679a4ab7f 100644 --- a/services/preview/storage/datalake/2018-06-17/storagedatalake/_meta.json +++ b/services/preview/storage/datalake/2018-06-17/storagedatalake/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/storage/data-plane/readme.md", "tag": "package-2018-06-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-06-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storage/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-06-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storage/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/storage/mgmt/2015-05-01-preview/storage/_meta.json b/services/preview/storage/mgmt/2015-05-01-preview/storage/_meta.json index 4c5977627241..cc30268aa72f 100644 --- a/services/preview/storage/mgmt/2015-05-01-preview/storage/_meta.json +++ b/services/preview/storage/mgmt/2015-05-01-preview/storage/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", "tag": "package-2015-05-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2015-05-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2015-05-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/storage/mgmt/2018-03-01-preview/storage/CHANGELOG.md b/services/preview/storage/mgmt/2018-03-01-preview/storage/CHANGELOG.md index 52911e4cc5e4..a4f2b84df631 100644 --- a/services/preview/storage/mgmt/2018-03-01-preview/storage/CHANGELOG.md +++ b/services/preview/storage/mgmt/2018-03-01-preview/storage/CHANGELOG.md @@ -1,2 +1,22 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountKey.MarshalJSON() ([]byte, error) +1. AccountListKeysResult.MarshalJSON() ([]byte, error) +1. AccountListResult.MarshalJSON() ([]byte, error) +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) +1. Endpoints.MarshalJSON() ([]byte, error) +1. ListAccountSasResponse.MarshalJSON() ([]byte, error) +1. ListServiceSasResponse.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. SKUCapability.MarshalJSON() ([]byte, error) +1. SkuListResult.MarshalJSON() ([]byte, error) +1. TagProperty.MarshalJSON() ([]byte, error) +1. UpdateHistoryProperty.MarshalJSON() ([]byte, error) +1. Usage.MarshalJSON() ([]byte, error) +1. UsageName.MarshalJSON() ([]byte, error) diff --git a/services/preview/storage/mgmt/2018-03-01-preview/storage/_meta.json b/services/preview/storage/mgmt/2018-03-01-preview/storage/_meta.json index d14b50723b1c..34e3237b4407 100644 --- a/services/preview/storage/mgmt/2018-03-01-preview/storage/_meta.json +++ b/services/preview/storage/mgmt/2018-03-01-preview/storage/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", "tag": "package-2018-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/storage/mgmt/2018-03-01-preview/storage/models.go b/services/preview/storage/mgmt/2018-03-01-preview/storage/models.go index 2b87292493a3..0f44bc4db582 100644 --- a/services/preview/storage/mgmt/2018-03-01-preview/storage/models.go +++ b/services/preview/storage/mgmt/2018-03-01-preview/storage/models.go @@ -283,6 +283,12 @@ type AccountKey struct { Permissions KeyPermission `json:"permissions,omitempty"` } +// MarshalJSON is the custom marshaler for AccountKey. +func (ak AccountKey) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListKeysResult the response from the ListKeys operation. type AccountListKeysResult struct { autorest.Response `json:"-"` @@ -290,6 +296,12 @@ type AccountListKeysResult struct { Keys *[]AccountKey `json:"keys,omitempty"` } +// MarshalJSON is the custom marshaler for AccountListKeysResult. +func (alkr AccountListKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListResult the response from the List Storage Accounts operation. type AccountListResult struct { autorest.Response `json:"-"` @@ -297,6 +309,12 @@ type AccountListResult struct { Value *[]Account `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for AccountListResult. +func (alr AccountListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountManagementPolicies the Get Storage Account ManagementPolicies operation response. type AccountManagementPolicies struct { autorest.Response `json:"-"` @@ -637,6 +655,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BlobContainer properties of the blob container, including Id, resource name, resource type, Etag. type BlobContainer struct { autorest.Response `json:"-"` @@ -732,6 +756,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerProperties the properties of a container. type ContainerProperties struct { // PublicAccess - Specifies whether data in the container may be accessed publicly and the level of access. Possible values include: 'PublicAccessContainer', 'PublicAccessBlob', 'PublicAccessNone' @@ -852,6 +882,12 @@ type Endpoints struct { Dfs *string `json:"dfs,omitempty"` } +// MarshalJSON is the custom marshaler for Endpoints. +func (e Endpoints) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Identity identity for the resource. type Identity struct { // PrincipalID - READ-ONLY; The principal ID of resource identity. @@ -1117,6 +1153,12 @@ type ListAccountSasResponse struct { AccountSasToken *string `json:"accountSasToken,omitempty"` } +// MarshalJSON is the custom marshaler for ListAccountSasResponse. +func (lasr ListAccountSasResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListContainerItem the blob container properties be listed out. type ListContainerItem struct { // ContainerProperties - The blob container properties be listed out. @@ -1214,6 +1256,12 @@ type ListServiceSasResponse struct { ServiceSasToken *string `json:"serviceSasToken,omitempty"` } +// MarshalJSON is the custom marshaler for ListServiceSasResponse. +func (lssr ListServiceSasResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagementPoliciesRules the Storage Account ManagementPolicies Rules, in JSON format. See more details // in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts. type ManagementPoliciesRules struct { @@ -1414,6 +1462,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -1424,6 +1478,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Restriction the restriction because of which SKU cannot be used. type Restriction struct { // Type - READ-ONLY; The type of restrictions. As of now only possible value for this is location. @@ -1528,6 +1588,12 @@ type SKUCapability struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SKUCapability. +func (sc SKUCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuListResult the response from the List Storage SKUs operation. type SkuListResult struct { autorest.Response `json:"-"` @@ -1535,6 +1601,12 @@ type SkuListResult struct { Value *[]Sku `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SkuListResult. +func (slr SkuListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TagProperty a tag of the LegalHold of a blob container. type TagProperty struct { // Tag - READ-ONLY; The tag value. @@ -1549,6 +1621,12 @@ type TagProperty struct { Upn *string `json:"upn,omitempty"` } +// MarshalJSON is the custom marshaler for TagProperty. +func (tp TagProperty) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource // which has 'tags' and a 'location' type TrackedResource struct { @@ -1592,6 +1670,12 @@ type UpdateHistoryProperty struct { Upn *string `json:"upn,omitempty"` } +// MarshalJSON is the custom marshaler for UpdateHistoryProperty. +func (uhp UpdateHistoryProperty) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage describes Storage Resource Usage. type Usage struct { // Unit - READ-ONLY; Gets the unit of measurement. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountsPerSecond', 'BytesPerSecond' @@ -1604,6 +1688,12 @@ type Usage struct { Name *UsageName `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for Usage. +func (u Usage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageListResult the response from the List Usages operation. type UsageListResult struct { autorest.Response `json:"-"` @@ -1619,6 +1709,12 @@ type UsageName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for UsageName. +func (un UsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkRule virtual Network rule. type VirtualNetworkRule struct { // VirtualNetworkResourceID - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. diff --git a/services/preview/storage/mgmt/2018-07-01-preview/storage/CHANGELOG.md b/services/preview/storage/mgmt/2018-07-01-preview/storage/CHANGELOG.md index 52911e4cc5e4..1dd15badca49 100644 --- a/services/preview/storage/mgmt/2018-07-01-preview/storage/CHANGELOG.md +++ b/services/preview/storage/mgmt/2018-07-01-preview/storage/CHANGELOG.md @@ -1,2 +1,23 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountKey.MarshalJSON() ([]byte, error) +1. AccountListKeysResult.MarshalJSON() ([]byte, error) +1. AccountListResult.MarshalJSON() ([]byte, error) +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) +1. Endpoints.MarshalJSON() ([]byte, error) +1. GeoReplicationStats.MarshalJSON() ([]byte, error) +1. ListAccountSasResponse.MarshalJSON() ([]byte, error) +1. ListServiceSasResponse.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. SKUCapability.MarshalJSON() ([]byte, error) +1. SkuListResult.MarshalJSON() ([]byte, error) +1. TagProperty.MarshalJSON() ([]byte, error) +1. UpdateHistoryProperty.MarshalJSON() ([]byte, error) +1. Usage.MarshalJSON() ([]byte, error) +1. UsageName.MarshalJSON() ([]byte, error) diff --git a/services/preview/storage/mgmt/2018-07-01-preview/storage/_meta.json b/services/preview/storage/mgmt/2018-07-01-preview/storage/_meta.json index 33964154dbd1..0e504335bcee 100644 --- a/services/preview/storage/mgmt/2018-07-01-preview/storage/_meta.json +++ b/services/preview/storage/mgmt/2018-07-01-preview/storage/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", "tag": "package-2018-07", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/storage/mgmt/2018-07-01-preview/storage/models.go b/services/preview/storage/mgmt/2018-07-01-preview/storage/models.go index fb5a37ccffd2..b2605fe5bd3b 100644 --- a/services/preview/storage/mgmt/2018-07-01-preview/storage/models.go +++ b/services/preview/storage/mgmt/2018-07-01-preview/storage/models.go @@ -283,6 +283,12 @@ type AccountKey struct { Permissions KeyPermission `json:"permissions,omitempty"` } +// MarshalJSON is the custom marshaler for AccountKey. +func (ak AccountKey) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListKeysResult the response from the ListKeys operation. type AccountListKeysResult struct { autorest.Response `json:"-"` @@ -290,6 +296,12 @@ type AccountListKeysResult struct { Keys *[]AccountKey `json:"keys,omitempty"` } +// MarshalJSON is the custom marshaler for AccountListKeysResult. +func (alkr AccountListKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListResult the response from the List Storage Accounts operation. type AccountListResult struct { autorest.Response `json:"-"` @@ -297,6 +309,12 @@ type AccountListResult struct { Value *[]Account `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for AccountListResult. +func (alr AccountListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountManagementPolicies the Get Storage Account ManagementPolicies operation response. type AccountManagementPolicies struct { autorest.Response `json:"-"` @@ -687,6 +705,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BlobContainer properties of the blob container, including Id, resource name, resource type, Etag. type BlobContainer struct { autorest.Response `json:"-"` @@ -865,6 +889,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerProperties the properties of a container. type ContainerProperties struct { // PublicAccess - Specifies whether data in the container may be accessed publicly and the level of access. Possible values include: 'PublicAccessContainer', 'PublicAccessBlob', 'PublicAccessNone' @@ -1013,6 +1043,12 @@ type Endpoints struct { Dfs *string `json:"dfs,omitempty"` } +// MarshalJSON is the custom marshaler for Endpoints. +func (e Endpoints) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GeoReplicationStats statistics related to replication for storage account's Blob, Table, Queue and File // services. It is only available when geo-redundant replication is enabled for the storage account. type GeoReplicationStats struct { @@ -1024,6 +1060,12 @@ type GeoReplicationStats struct { CanFailover *bool `json:"canFailover,omitempty"` } +// MarshalJSON is the custom marshaler for GeoReplicationStats. +func (grs GeoReplicationStats) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Identity identity for the resource. type Identity struct { // PrincipalID - READ-ONLY; The principal ID of resource identity. @@ -1289,6 +1331,12 @@ type ListAccountSasResponse struct { AccountSasToken *string `json:"accountSasToken,omitempty"` } +// MarshalJSON is the custom marshaler for ListAccountSasResponse. +func (lasr ListAccountSasResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListContainerItem the blob container properties be listed out. type ListContainerItem struct { // ContainerProperties - The blob container properties be listed out. @@ -1386,6 +1434,12 @@ type ListServiceSasResponse struct { ServiceSasToken *string `json:"serviceSasToken,omitempty"` } +// MarshalJSON is the custom marshaler for ListServiceSasResponse. +func (lssr ListServiceSasResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagementPoliciesRules the Storage Account ManagementPolicies Rules, in JSON format. See more details // in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts. type ManagementPoliciesRules struct { @@ -1586,6 +1640,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -1596,6 +1656,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Restriction the restriction because of which SKU cannot be used. type Restriction struct { // Type - READ-ONLY; The type of restrictions. As of now only possible value for this is location. @@ -1700,6 +1766,12 @@ type SKUCapability struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SKUCapability. +func (sc SKUCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuListResult the response from the List Storage SKUs operation. type SkuListResult struct { autorest.Response `json:"-"` @@ -1707,6 +1779,12 @@ type SkuListResult struct { Value *[]Sku `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SkuListResult. +func (slr SkuListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TagProperty a tag of the LegalHold of a blob container. type TagProperty struct { // Tag - READ-ONLY; The tag value. @@ -1721,6 +1799,12 @@ type TagProperty struct { Upn *string `json:"upn,omitempty"` } +// MarshalJSON is the custom marshaler for TagProperty. +func (tp TagProperty) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource // which has 'tags' and a 'location' type TrackedResource struct { @@ -1764,6 +1848,12 @@ type UpdateHistoryProperty struct { Upn *string `json:"upn,omitempty"` } +// MarshalJSON is the custom marshaler for UpdateHistoryProperty. +func (uhp UpdateHistoryProperty) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage describes Storage Resource Usage. type Usage struct { // Unit - READ-ONLY; Gets the unit of measurement. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountsPerSecond', 'BytesPerSecond' @@ -1776,6 +1866,12 @@ type Usage struct { Name *UsageName `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for Usage. +func (u Usage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageListResult the response from the List Usages operation. type UsageListResult struct { autorest.Response `json:"-"` @@ -1791,6 +1887,12 @@ type UsageName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for UsageName. +func (un UsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkRule virtual Network rule. type VirtualNetworkRule struct { // VirtualNetworkResourceID - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. diff --git a/services/preview/storage/mgmt/2020-08-01-preview/storage/CHANGELOG.md b/services/preview/storage/mgmt/2020-08-01-preview/storage/CHANGELOG.md index 52911e4cc5e4..fb4acf1aebea 100644 --- a/services/preview/storage/mgmt/2020-08-01-preview/storage/CHANGELOG.md +++ b/services/preview/storage/mgmt/2020-08-01-preview/storage/CHANGELOG.md @@ -1,2 +1,39 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountInternetEndpoints.MarshalJSON() ([]byte, error) +1. AccountKey.MarshalJSON() ([]byte, error) +1. AccountListKeysResult.MarshalJSON() ([]byte, error) +1. AccountListResult.MarshalJSON() ([]byte, error) +1. AccountMicrosoftEndpoints.MarshalJSON() ([]byte, error) +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. BlobRestoreStatus.MarshalJSON() ([]byte, error) +1. BlobServiceItems.MarshalJSON() ([]byte, error) +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) +1. DeletedAccountListResult.MarshalJSON() ([]byte, error) +1. DeletedAccountProperties.MarshalJSON() ([]byte, error) +1. EncryptionScopeListResult.MarshalJSON() ([]byte, error) +1. FileServiceItems.MarshalJSON() ([]byte, error) +1. FileShareItems.MarshalJSON() ([]byte, error) +1. GeoReplicationStats.MarshalJSON() ([]byte, error) +1. ListAccountSasResponse.MarshalJSON() ([]byte, error) +1. ListBlobInventoryPolicy.MarshalJSON() ([]byte, error) +1. ListContainerItems.MarshalJSON() ([]byte, error) +1. ListQueueResource.MarshalJSON() ([]byte, error) +1. ListQueueServices.MarshalJSON() ([]byte, error) +1. ListServiceSasResponse.MarshalJSON() ([]byte, error) +1. ListTableResource.MarshalJSON() ([]byte, error) +1. ListTableServices.MarshalJSON() ([]byte, error) +1. PrivateEndpoint.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. SKUCapability.MarshalJSON() ([]byte, error) +1. SkuListResult.MarshalJSON() ([]byte, error) +1. TableProperties.MarshalJSON() ([]byte, error) +1. TagProperty.MarshalJSON() ([]byte, error) +1. UpdateHistoryProperty.MarshalJSON() ([]byte, error) +1. Usage.MarshalJSON() ([]byte, error) +1. UsageName.MarshalJSON() ([]byte, error) diff --git a/services/preview/storage/mgmt/2020-08-01-preview/storage/_meta.json b/services/preview/storage/mgmt/2020-08-01-preview/storage/_meta.json index 010977b5fa73..000a19ce62f2 100644 --- a/services/preview/storage/mgmt/2020-08-01-preview/storage/_meta.json +++ b/services/preview/storage/mgmt/2020-08-01-preview/storage/_meta.json @@ -2,9 +2,9 @@ "commit": "0b17e6a5e811fd7b122d383b4942441d95e5e8cf", "readme": "/_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", "tag": "package-2020-08-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-08-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-08-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/storage/mgmt/2020-08-01-preview/storage/models.go b/services/preview/storage/mgmt/2020-08-01-preview/storage/models.go index 164273b4e13b..30fc948e29a6 100644 --- a/services/preview/storage/mgmt/2020-08-01-preview/storage/models.go +++ b/services/preview/storage/mgmt/2020-08-01-preview/storage/models.go @@ -316,6 +316,12 @@ type AccountInternetEndpoints struct { Dfs *string `json:"dfs,omitempty"` } +// MarshalJSON is the custom marshaler for AccountInternetEndpoints. +func (aie AccountInternetEndpoints) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountKey an access key for the storage account. type AccountKey struct { // KeyName - READ-ONLY; Name of the key. @@ -326,6 +332,12 @@ type AccountKey struct { Permissions KeyPermission `json:"permissions,omitempty"` } +// MarshalJSON is the custom marshaler for AccountKey. +func (ak AccountKey) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListKeysResult the response from the ListKeys operation. type AccountListKeysResult struct { autorest.Response `json:"-"` @@ -333,6 +345,12 @@ type AccountListKeysResult struct { Keys *[]AccountKey `json:"keys,omitempty"` } +// MarshalJSON is the custom marshaler for AccountListKeysResult. +func (alkr AccountListKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListResult the response from the List Storage Accounts operation. type AccountListResult struct { autorest.Response `json:"-"` @@ -342,6 +360,12 @@ type AccountListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for AccountListResult. +func (alr AccountListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListResultIterator provides access to a complete listing of Account values. type AccountListResultIterator struct { i int @@ -509,6 +533,12 @@ type AccountMicrosoftEndpoints struct { Dfs *string `json:"dfs,omitempty"` } +// MarshalJSON is the custom marshaler for AccountMicrosoftEndpoints. +func (ame AccountMicrosoftEndpoints) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountProperties properties of the storage account. type AccountProperties struct { // ProvisioningState - READ-ONLY; Gets the status of the storage account at the time the operation was called. Possible values include: 'Creating', 'ResolvingDNS', 'Succeeded' @@ -920,6 +950,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureFilesIdentityBasedAuthentication settings for Azure Files identity based authentication. type AzureFilesIdentityBasedAuthentication struct { // DirectoryServiceOptions - Indicates the directory service used. Possible values include: 'DirectoryServiceOptionsNone', 'DirectoryServiceOptionsAADDS', 'DirectoryServiceOptionsAD' @@ -1186,6 +1222,12 @@ type BlobRestoreStatus struct { Parameters *BlobRestoreParameters `json:"parameters,omitempty"` } +// MarshalJSON is the custom marshaler for BlobRestoreStatus. +func (brs BlobRestoreStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BlobServiceItems ... type BlobServiceItems struct { autorest.Response `json:"-"` @@ -1193,6 +1235,12 @@ type BlobServiceItems struct { Value *[]BlobServiceProperties `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for BlobServiceItems. +func (bsi BlobServiceItems) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BlobServiceProperties the properties of a storage account’s Blob service. type BlobServiceProperties struct { autorest.Response `json:"-"` @@ -1318,6 +1366,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from the Storage service. type CloudError struct { Error *CloudErrorBody `json:"error,omitempty"` @@ -1515,6 +1569,12 @@ type DeletedAccountListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DeletedAccountListResult. +func (dalr DeletedAccountListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeletedAccountListResultIterator provides access to a complete listing of DeletedAccount values. type DeletedAccountListResultIterator struct { i int @@ -1679,6 +1739,12 @@ type DeletedAccountProperties struct { DeletionTime *string `json:"deletionTime,omitempty"` } +// MarshalJSON is the custom marshaler for DeletedAccountProperties. +func (dap DeletedAccountProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeletedShare the deleted share to be restored. type DeletedShare struct { // DeletedShareName - Required. Identify the name of the deleted share that will be restored. @@ -1805,6 +1871,12 @@ type EncryptionScopeListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for EncryptionScopeListResult. +func (eslr EncryptionScopeListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EncryptionScopeListResultIterator provides access to a complete listing of EncryptionScope values. type EncryptionScopeListResultIterator struct { i int @@ -2080,6 +2152,12 @@ type FileServiceItems struct { Value *[]FileServiceProperties `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for FileServiceItems. +func (fsi FileServiceItems) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FileServiceProperties the properties of File services in storage account. type FileServiceProperties struct { autorest.Response `json:"-"` @@ -2351,6 +2429,12 @@ type FileShareItems struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for FileShareItems. +func (fsi FileShareItems) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FileShareItemsIterator provides access to a complete listing of FileShareItem values. type FileShareItemsIterator struct { i int @@ -2565,6 +2649,12 @@ type GeoReplicationStats struct { CanFailover *bool `json:"canFailover,omitempty"` } +// MarshalJSON is the custom marshaler for GeoReplicationStats. +func (grs GeoReplicationStats) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Identity identity for the resource. type Identity struct { // PrincipalID - READ-ONLY; The principal ID of resource identity. @@ -2866,6 +2956,12 @@ type ListAccountSasResponse struct { AccountSasToken *string `json:"accountSasToken,omitempty"` } +// MarshalJSON is the custom marshaler for ListAccountSasResponse. +func (lasr ListAccountSasResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListBlobInventoryPolicy list of blob inventory policies returned. type ListBlobInventoryPolicy struct { autorest.Response `json:"-"` @@ -2873,6 +2969,12 @@ type ListBlobInventoryPolicy struct { Value *[]BlobInventoryPolicy `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ListBlobInventoryPolicy. +func (lbip ListBlobInventoryPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListContainerItem the blob container properties be listed out. type ListContainerItem struct { // ContainerProperties - The blob container properties be listed out. @@ -2966,6 +3068,12 @@ type ListContainerItems struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListContainerItems. +func (lci ListContainerItems) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListContainerItemsIterator provides access to a complete listing of ListContainerItem values. type ListContainerItemsIterator struct { i int @@ -3212,6 +3320,12 @@ type ListQueueResource struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListQueueResource. +func (lqr ListQueueResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListQueueResourceIterator provides access to a complete listing of ListQueue values. type ListQueueResourceIterator struct { i int @@ -3369,6 +3483,12 @@ type ListQueueServices struct { Value *[]QueueServiceProperties `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ListQueueServices. +func (lqs ListQueueServices) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListServiceSasResponse the List service SAS credentials operation response. type ListServiceSasResponse struct { autorest.Response `json:"-"` @@ -3376,6 +3496,12 @@ type ListServiceSasResponse struct { ServiceSasToken *string `json:"serviceSasToken,omitempty"` } +// MarshalJSON is the custom marshaler for ListServiceSasResponse. +func (lssr ListServiceSasResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListTableResource response schema. Contains list of tables returned type ListTableResource struct { autorest.Response `json:"-"` @@ -3385,6 +3511,12 @@ type ListTableResource struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListTableResource. +func (ltr ListTableResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListTableResourceIterator provides access to a complete listing of Table values. type ListTableResourceIterator struct { i int @@ -3542,6 +3674,12 @@ type ListTableServices struct { Value *[]TableServiceProperties `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ListTableServices. +func (lts ListTableServices) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagementPolicy the Get Storage Account ManagementPolicies operation response. type ManagementPolicy struct { autorest.Response `json:"-"` @@ -3999,6 +4137,12 @@ type PrivateEndpoint struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpoint. +func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection the Private Endpoint Connection resource. type PrivateEndpointConnection struct { autorest.Response `json:"-"` @@ -4216,6 +4360,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Queue ... type Queue struct { autorest.Response `json:"-"` @@ -4395,6 +4545,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceAccessRule resource Access Rule. type ResourceAccessRule struct { // TenantID - Tenant Id @@ -4520,6 +4676,12 @@ type SKUCapability struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SKUCapability. +func (sc SKUCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuInformation storage SKU and its properties type SkuInformation struct { // Name - Possible values include: 'StandardLRS', 'StandardGRS', 'StandardRAGRS', 'StandardZRS', 'PremiumLRS', 'PremiumZRS', 'StandardGZRS', 'StandardRAGZRS' @@ -4560,6 +4722,12 @@ type SkuListResult struct { Value *[]SkuInformation `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SkuListResult. +func (slr SkuListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SmbSetting setting for SMB protocol type SmbSetting struct { // Multichannel - Multichannel setting. Applies to Premium FileStorage only. @@ -4661,6 +4829,12 @@ type TableProperties struct { TableName *string `json:"tableName,omitempty"` } +// MarshalJSON is the custom marshaler for TableProperties. +func (tp TableProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TableServiceProperties the properties of a storage account’s Table service. type TableServiceProperties struct { autorest.Response `json:"-"` @@ -4764,6 +4938,12 @@ type TagProperty struct { Upn *string `json:"upn,omitempty"` } +// MarshalJSON is the custom marshaler for TagProperty. +func (tp TagProperty) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource // which has 'tags' and a 'location' type TrackedResource struct { @@ -4807,6 +4987,12 @@ type UpdateHistoryProperty struct { Upn *string `json:"upn,omitempty"` } +// MarshalJSON is the custom marshaler for UpdateHistoryProperty. +func (uhp UpdateHistoryProperty) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage describes Storage Resource Usage. type Usage struct { // Unit - READ-ONLY; Gets the unit of measurement. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountsPerSecond', 'BytesPerSecond' @@ -4819,6 +5005,12 @@ type Usage struct { Name *UsageName `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for Usage. +func (u Usage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageListResult the response from the List Usages operation. type UsageListResult struct { autorest.Response `json:"-"` @@ -4834,6 +5026,12 @@ type UsageName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for UsageName. +func (un UsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkRule virtual Network rule. type VirtualNetworkRule struct { // VirtualNetworkResourceID - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. diff --git a/services/preview/storage/tables/2019-02-02-preview/storagetables/_meta.json b/services/preview/storage/tables/2019-02-02-preview/storagetables/_meta.json index 4537db9cc0bf..12aab9708dae 100644 --- a/services/preview/storage/tables/2019-02-02-preview/storagetables/_meta.json +++ b/services/preview/storage/tables/2019-02-02-preview/storagetables/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/cosmos-db/data-plane/readme.md", "tag": "package-2019-02", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cosmos-db/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cosmos-db/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/CHANGELOG.md b/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/CHANGELOG.md index 52911e4cc5e4..56ee61dc72b4 100644 --- a/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/CHANGELOG.md +++ b/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. CacheUpgradeStatus.MarshalJSON() ([]byte, error) diff --git a/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/_meta.json b/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/_meta.json index f4fdc1010285..a7c034baa08b 100644 --- a/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/_meta.json +++ b/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/storagecache/resource-manager/readme.md", "tag": "package-2019-08", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storagecache/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storagecache/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/models.go b/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/models.go index de9149bea366..154392d16709 100644 --- a/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/models.go +++ b/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/models.go @@ -791,6 +791,12 @@ type CacheUpgradeStatus struct { PendingFirmwareVersion *string `json:"pendingFirmwareVersion,omitempty"` } +// MarshalJSON is the custom marshaler for CacheUpgradeStatus. +func (cus CacheUpgradeStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ClfsTarget storage container for use as a CLFS StorageTarget. type ClfsTarget struct { // Target - URL of storage container. diff --git a/services/preview/storagepool/mgmt/2020-03-15-preview/storagepool/CHANGELOG.md b/services/preview/storagepool/mgmt/2020-03-15-preview/storagepool/CHANGELOG.md index 52911e4cc5e4..f1dc2515f62f 100644 --- a/services/preview/storagepool/mgmt/2020-03-15-preview/storagepool/CHANGELOG.md +++ b/services/preview/storagepool/mgmt/2020-03-15-preview/storagepool/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/storagepool/mgmt/2020-03-15-preview/storagepool/_meta.json b/services/preview/storagepool/mgmt/2020-03-15-preview/storagepool/_meta.json index eeafe5e6df21..9e349c3b8cf5 100644 --- a/services/preview/storagepool/mgmt/2020-03-15-preview/storagepool/_meta.json +++ b/services/preview/storagepool/mgmt/2020-03-15-preview/storagepool/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/storagepool/resource-manager/readme.md", "tag": "package-2020-03-15-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-03-15-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storagepool/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-03-15-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storagepool/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/storagepool/mgmt/2020-03-15-preview/storagepool/models.go b/services/preview/storagepool/mgmt/2020-03-15-preview/storagepool/models.go index 1e37fc079e84..ae4ea7014db0 100644 --- a/services/preview/storagepool/mgmt/2020-03-15-preview/storagepool/models.go +++ b/services/preview/storagepool/mgmt/2020-03-15-preview/storagepool/models.go @@ -517,6 +517,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse the resource management error response. type ErrorResponse struct { // Code - READ-ONLY; The error code. @@ -531,6 +537,12 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IscsiLun lun to expose the ManagedDisk. type IscsiLun struct { // Name - Lun name. @@ -924,6 +936,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource ARM resource model definition. type Resource struct { // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -934,6 +952,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RPOperation description of a StoragePool RP Operation type RPOperation struct { // Name - The name of the operation being performed on this particular object diff --git a/services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/CHANGELOG.md b/services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/CHANGELOG.md new file mode 100644 index 000000000000..52911e4cc5e4 --- /dev/null +++ b/services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/CHANGELOG.md @@ -0,0 +1,2 @@ +# Change History + diff --git a/services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/_meta.json b/services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/_meta.json new file mode 100644 index 000000000000..70e3e4df1a36 --- /dev/null +++ b/services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/_meta.json @@ -0,0 +1,11 @@ +{ + "commit": "394395ed0bdc1c5c05cb37a031379ca03bfebbb5", + "readme": "/_/azure-rest-api-specs/specification/storagepool/resource-manager/readme.md", + "tag": "package-2021-04-01-preview", + "use": "@microsoft.azure/autorest.go@2.1.183", + "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2021-04-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/storagepool/resource-manager/readme.md", + "additional_properties": { + "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix" + } +} \ No newline at end of file diff --git a/services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/client.go b/services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/client.go new file mode 100644 index 000000000000..8a519281604f --- /dev/null +++ b/services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/client.go @@ -0,0 +1,41 @@ +// Package storagepool implements the Azure ARM Storagepool service API version 2021-04-01-preview. +// +// +package storagepool + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/Azure/go-autorest/autorest" +) + +const ( + // DefaultBaseURI is the default URI used for the service Storagepool + DefaultBaseURI = "https://management.azure.com" +) + +// BaseClient is the base client for Storagepool. +type BaseClient struct { + autorest.Client + BaseURI string + SubscriptionID string +} + +// New creates an instance of the BaseClient client. +func New(subscriptionID string) BaseClient { + return NewWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with +// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { + return BaseClient{ + Client: autorest.NewClientWithUserAgent(UserAgent()), + BaseURI: baseURI, + SubscriptionID: subscriptionID, + } +} diff --git a/services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/diskpools.go b/services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/diskpools.go new file mode 100644 index 000000000000..701ff8feed22 --- /dev/null +++ b/services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/diskpools.go @@ -0,0 +1,944 @@ +package storagepool + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// DiskPoolsClient is the client for the DiskPools methods of the Storagepool service. +type DiskPoolsClient struct { + BaseClient +} + +// NewDiskPoolsClient creates an instance of the DiskPoolsClient client. +func NewDiskPoolsClient(subscriptionID string) DiskPoolsClient { + return NewDiskPoolsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewDiskPoolsClientWithBaseURI creates an instance of the DiskPoolsClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewDiskPoolsClientWithBaseURI(baseURI string, subscriptionID string) DiskPoolsClient { + return DiskPoolsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate create or Update Disk pool. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// diskPoolName - the name of the Disk Pool. +// diskPoolCreatePayload - request payload for Disk Pool create operation +func (client DiskPoolsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, diskPoolName string, diskPoolCreatePayload DiskPoolCreate) (result DiskPoolsCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DiskPoolsClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]*[0-9A-Za-z]$`, Chain: nil}}}, + {TargetValue: diskPoolCreatePayload, + Constraints: []validation.Constraint{{Target: "diskPoolCreatePayload.Sku", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "diskPoolCreatePayload.Sku.Name", Name: validation.Null, Rule: true, Chain: nil}}}, + {Target: "diskPoolCreatePayload.DiskPoolCreateProperties", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "diskPoolCreatePayload.DiskPoolCreateProperties.SubnetID", Name: validation.Null, Rule: true, Chain: nil}}}, + {Target: "diskPoolCreatePayload.Location", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("storagepool.DiskPoolsClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, diskPoolName, diskPoolCreatePayload) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.DiskPoolsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.DiskPoolsClient", "CreateOrUpdate", nil, "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client DiskPoolsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, diskPoolName string, diskPoolCreatePayload DiskPoolCreate) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "diskPoolName": autorest.Encode("path", diskPoolName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + diskPoolCreatePayload.ID = nil + diskPoolCreatePayload.Name = nil + diskPoolCreatePayload.Type = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StoragePool/diskPools/{diskPoolName}", pathParameters), + autorest.WithJSON(diskPoolCreatePayload), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client DiskPoolsClient) CreateOrUpdateSender(req *http.Request) (future DiskPoolsCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client DiskPoolsClient) CreateOrUpdateResponder(resp *http.Response) (result DiskPool, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Deallocate shuts down the Disk Pool and releases the compute resources. You are not billed for the compute resources +// that this Disk Pool uses. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// diskPoolName - the name of the Disk Pool. +func (client DiskPoolsClient) Deallocate(ctx context.Context, resourceGroupName string, diskPoolName string) (result DiskPoolsDeallocateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DiskPoolsClient.Deallocate") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]*[0-9A-Za-z]$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("storagepool.DiskPoolsClient", "Deallocate", err.Error()) + } + + req, err := client.DeallocatePreparer(ctx, resourceGroupName, diskPoolName) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.DiskPoolsClient", "Deallocate", nil, "Failure preparing request") + return + } + + result, err = client.DeallocateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.DiskPoolsClient", "Deallocate", nil, "Failure sending request") + return + } + + return +} + +// DeallocatePreparer prepares the Deallocate request. +func (client DiskPoolsClient) DeallocatePreparer(ctx context.Context, resourceGroupName string, diskPoolName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "diskPoolName": autorest.Encode("path", diskPoolName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StoragePool/diskPools/{diskPoolName}/deallocate", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeallocateSender sends the Deallocate request. The method will close the +// http.Response Body if it receives an error. +func (client DiskPoolsClient) DeallocateSender(req *http.Request) (future DiskPoolsDeallocateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// DeallocateResponder handles the response to the Deallocate request. The method always +// closes the http.Response Body. +func (client DiskPoolsClient) DeallocateResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} + +// Delete delete a Disk pool. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// diskPoolName - the name of the Disk Pool. +func (client DiskPoolsClient) Delete(ctx context.Context, resourceGroupName string, diskPoolName string) (result DiskPoolsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DiskPoolsClient.Delete") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]*[0-9A-Za-z]$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("storagepool.DiskPoolsClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, diskPoolName) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.DiskPoolsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.DiskPoolsClient", "Delete", nil, "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client DiskPoolsClient) DeletePreparer(ctx context.Context, resourceGroupName string, diskPoolName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "diskPoolName": autorest.Encode("path", diskPoolName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StoragePool/diskPools/{diskPoolName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client DiskPoolsClient) DeleteSender(req *http.Request) (future DiskPoolsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client DiskPoolsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get get a Disk pool. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// diskPoolName - the name of the Disk Pool. +func (client DiskPoolsClient) Get(ctx context.Context, resourceGroupName string, diskPoolName string) (result DiskPool, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DiskPoolsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]*[0-9A-Za-z]$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("storagepool.DiskPoolsClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, diskPoolName) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.DiskPoolsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storagepool.DiskPoolsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.DiskPoolsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client DiskPoolsClient) GetPreparer(ctx context.Context, resourceGroupName string, diskPoolName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "diskPoolName": autorest.Encode("path", diskPoolName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StoragePool/diskPools/{diskPoolName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client DiskPoolsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client DiskPoolsClient) GetResponder(resp *http.Response) (result DiskPool, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByResourceGroup gets a list of DiskPools in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +func (client DiskPoolsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result DiskPoolListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DiskPoolsClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.dplr.Response.Response != nil { + sc = result.dplr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]*[0-9A-Za-z]$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("storagepool.DiskPoolsClient", "ListByResourceGroup", err.Error()) + } + + result.fn = client.listByResourceGroupNextResults + req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.DiskPoolsClient", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.dplr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storagepool.DiskPoolsClient", "ListByResourceGroup", resp, "Failure sending request") + return + } + + result.dplr, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.DiskPoolsClient", "ListByResourceGroup", resp, "Failure responding to request") + return + } + if result.dplr.hasNextLink() && result.dplr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByResourceGroupPreparer prepares the ListByResourceGroup request. +func (client DiskPoolsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StoragePool/diskPools", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the +// http.Response Body if it receives an error. +func (client DiskPoolsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (client DiskPoolsClient) ListByResourceGroupResponder(resp *http.Response) (result DiskPoolListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByResourceGroupNextResults retrieves the next set of results, if any. +func (client DiskPoolsClient) listByResourceGroupNextResults(ctx context.Context, lastResults DiskPoolListResult) (result DiskPoolListResult, err error) { + req, err := lastResults.diskPoolListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "storagepool.DiskPoolsClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "storagepool.DiskPoolsClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.DiskPoolsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. +func (client DiskPoolsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result DiskPoolListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DiskPoolsClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) + return +} + +// ListBySubscription gets a list of Disk Pools in a subscription +func (client DiskPoolsClient) ListBySubscription(ctx context.Context) (result DiskPoolListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DiskPoolsClient.ListBySubscription") + defer func() { + sc := -1 + if result.dplr.Response.Response != nil { + sc = result.dplr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storagepool.DiskPoolsClient", "ListBySubscription", err.Error()) + } + + result.fn = client.listBySubscriptionNextResults + req, err := client.ListBySubscriptionPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.DiskPoolsClient", "ListBySubscription", nil, "Failure preparing request") + return + } + + resp, err := client.ListBySubscriptionSender(req) + if err != nil { + result.dplr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storagepool.DiskPoolsClient", "ListBySubscription", resp, "Failure sending request") + return + } + + result.dplr, err = client.ListBySubscriptionResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.DiskPoolsClient", "ListBySubscription", resp, "Failure responding to request") + return + } + if result.dplr.hasNextLink() && result.dplr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListBySubscriptionPreparer prepares the ListBySubscription request. +func (client DiskPoolsClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.StoragePool/diskPools", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListBySubscriptionSender sends the ListBySubscription request. The method will close the +// http.Response Body if it receives an error. +func (client DiskPoolsClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always +// closes the http.Response Body. +func (client DiskPoolsClient) ListBySubscriptionResponder(resp *http.Response) (result DiskPoolListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listBySubscriptionNextResults retrieves the next set of results, if any. +func (client DiskPoolsClient) listBySubscriptionNextResults(ctx context.Context, lastResults DiskPoolListResult) (result DiskPoolListResult, err error) { + req, err := lastResults.diskPoolListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "storagepool.DiskPoolsClient", "listBySubscriptionNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListBySubscriptionSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "storagepool.DiskPoolsClient", "listBySubscriptionNextResults", resp, "Failure sending next results request") + } + result, err = client.ListBySubscriptionResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.DiskPoolsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required. +func (client DiskPoolsClient) ListBySubscriptionComplete(ctx context.Context) (result DiskPoolListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DiskPoolsClient.ListBySubscription") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListBySubscription(ctx) + return +} + +// ListOutboundNetworkDependenciesEndpoints gets the network endpoints of all outbound dependencies of a Disk Pool +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// diskPoolName - the name of the Disk Pool. +func (client DiskPoolsClient) ListOutboundNetworkDependenciesEndpoints(ctx context.Context, resourceGroupName string, diskPoolName string) (result OutboundEnvironmentEndpointListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DiskPoolsClient.ListOutboundNetworkDependenciesEndpoints") + defer func() { + sc := -1 + if result.oeel.Response.Response != nil { + sc = result.oeel.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]*[0-9A-Za-z]$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("storagepool.DiskPoolsClient", "ListOutboundNetworkDependenciesEndpoints", err.Error()) + } + + result.fn = client.listOutboundNetworkDependenciesEndpointsNextResults + req, err := client.ListOutboundNetworkDependenciesEndpointsPreparer(ctx, resourceGroupName, diskPoolName) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.DiskPoolsClient", "ListOutboundNetworkDependenciesEndpoints", nil, "Failure preparing request") + return + } + + resp, err := client.ListOutboundNetworkDependenciesEndpointsSender(req) + if err != nil { + result.oeel.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storagepool.DiskPoolsClient", "ListOutboundNetworkDependenciesEndpoints", resp, "Failure sending request") + return + } + + result.oeel, err = client.ListOutboundNetworkDependenciesEndpointsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.DiskPoolsClient", "ListOutboundNetworkDependenciesEndpoints", resp, "Failure responding to request") + return + } + if result.oeel.hasNextLink() && result.oeel.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListOutboundNetworkDependenciesEndpointsPreparer prepares the ListOutboundNetworkDependenciesEndpoints request. +func (client DiskPoolsClient) ListOutboundNetworkDependenciesEndpointsPreparer(ctx context.Context, resourceGroupName string, diskPoolName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "diskPoolName": autorest.Encode("path", diskPoolName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StoragePool/diskPools/{diskPoolName}/outboundNetworkDependenciesEndpoints", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListOutboundNetworkDependenciesEndpointsSender sends the ListOutboundNetworkDependenciesEndpoints request. The method will close the +// http.Response Body if it receives an error. +func (client DiskPoolsClient) ListOutboundNetworkDependenciesEndpointsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListOutboundNetworkDependenciesEndpointsResponder handles the response to the ListOutboundNetworkDependenciesEndpoints request. The method always +// closes the http.Response Body. +func (client DiskPoolsClient) ListOutboundNetworkDependenciesEndpointsResponder(resp *http.Response) (result OutboundEnvironmentEndpointList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listOutboundNetworkDependenciesEndpointsNextResults retrieves the next set of results, if any. +func (client DiskPoolsClient) listOutboundNetworkDependenciesEndpointsNextResults(ctx context.Context, lastResults OutboundEnvironmentEndpointList) (result OutboundEnvironmentEndpointList, err error) { + req, err := lastResults.outboundEnvironmentEndpointListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "storagepool.DiskPoolsClient", "listOutboundNetworkDependenciesEndpointsNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListOutboundNetworkDependenciesEndpointsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "storagepool.DiskPoolsClient", "listOutboundNetworkDependenciesEndpointsNextResults", resp, "Failure sending next results request") + } + result, err = client.ListOutboundNetworkDependenciesEndpointsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.DiskPoolsClient", "listOutboundNetworkDependenciesEndpointsNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListOutboundNetworkDependenciesEndpointsComplete enumerates all values, automatically crossing page boundaries as required. +func (client DiskPoolsClient) ListOutboundNetworkDependenciesEndpointsComplete(ctx context.Context, resourceGroupName string, diskPoolName string) (result OutboundEnvironmentEndpointListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DiskPoolsClient.ListOutboundNetworkDependenciesEndpoints") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListOutboundNetworkDependenciesEndpoints(ctx, resourceGroupName, diskPoolName) + return +} + +// Start the operation to start a Disk Pool. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// diskPoolName - the name of the Disk Pool. +func (client DiskPoolsClient) Start(ctx context.Context, resourceGroupName string, diskPoolName string) (result DiskPoolsStartFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DiskPoolsClient.Start") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]*[0-9A-Za-z]$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("storagepool.DiskPoolsClient", "Start", err.Error()) + } + + req, err := client.StartPreparer(ctx, resourceGroupName, diskPoolName) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.DiskPoolsClient", "Start", nil, "Failure preparing request") + return + } + + result, err = client.StartSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.DiskPoolsClient", "Start", nil, "Failure sending request") + return + } + + return +} + +// StartPreparer prepares the Start request. +func (client DiskPoolsClient) StartPreparer(ctx context.Context, resourceGroupName string, diskPoolName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "diskPoolName": autorest.Encode("path", diskPoolName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StoragePool/diskPools/{diskPoolName}/start", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// StartSender sends the Start request. The method will close the +// http.Response Body if it receives an error. +func (client DiskPoolsClient) StartSender(req *http.Request) (future DiskPoolsStartFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// StartResponder handles the response to the Start request. The method always +// closes the http.Response Body. +func (client DiskPoolsClient) StartResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} + +// Update update a Disk pool. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// diskPoolName - the name of the Disk Pool. +// diskPoolUpdatePayload - request payload for Disk Pool update operation. +func (client DiskPoolsClient) Update(ctx context.Context, resourceGroupName string, diskPoolName string, diskPoolUpdatePayload DiskPoolUpdate) (result DiskPoolsUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DiskPoolsClient.Update") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]*[0-9A-Za-z]$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("storagepool.DiskPoolsClient", "Update", err.Error()) + } + + req, err := client.UpdatePreparer(ctx, resourceGroupName, diskPoolName, diskPoolUpdatePayload) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.DiskPoolsClient", "Update", nil, "Failure preparing request") + return + } + + result, err = client.UpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.DiskPoolsClient", "Update", nil, "Failure sending request") + return + } + + return +} + +// UpdatePreparer prepares the Update request. +func (client DiskPoolsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, diskPoolName string, diskPoolUpdatePayload DiskPoolUpdate) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "diskPoolName": autorest.Encode("path", diskPoolName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StoragePool/diskPools/{diskPoolName}", pathParameters), + autorest.WithJSON(diskPoolUpdatePayload), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateSender sends the Update request. The method will close the +// http.Response Body if it receives an error. +func (client DiskPoolsClient) UpdateSender(req *http.Request) (future DiskPoolsUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// UpdateResponder handles the response to the Update request. The method always +// closes the http.Response Body. +func (client DiskPoolsClient) UpdateResponder(resp *http.Response) (result DiskPool, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/diskpoolzones.go b/services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/diskpoolzones.go new file mode 100644 index 000000000000..06c8666164fc --- /dev/null +++ b/services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/diskpoolzones.go @@ -0,0 +1,154 @@ +package storagepool + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// DiskPoolZonesClient is the client for the DiskPoolZones methods of the Storagepool service. +type DiskPoolZonesClient struct { + BaseClient +} + +// NewDiskPoolZonesClient creates an instance of the DiskPoolZonesClient client. +func NewDiskPoolZonesClient(subscriptionID string) DiskPoolZonesClient { + return NewDiskPoolZonesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewDiskPoolZonesClientWithBaseURI creates an instance of the DiskPoolZonesClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewDiskPoolZonesClientWithBaseURI(baseURI string, subscriptionID string) DiskPoolZonesClient { + return DiskPoolZonesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List lists available Disk Pool Skus in an Azure location. +// Parameters: +// location - the location of the resource. +func (client DiskPoolZonesClient) List(ctx context.Context, location string) (result DiskPoolZoneListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DiskPoolZonesClient.List") + defer func() { + sc := -1 + if result.dpzlr.Response.Response != nil { + sc = result.dpzlr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storagepool.DiskPoolZonesClient", "List", err.Error()) + } + + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, location) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.DiskPoolZonesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.dpzlr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storagepool.DiskPoolZonesClient", "List", resp, "Failure sending request") + return + } + + result.dpzlr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.DiskPoolZonesClient", "List", resp, "Failure responding to request") + return + } + if result.dpzlr.hasNextLink() && result.dpzlr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client DiskPoolZonesClient) ListPreparer(ctx context.Context, location string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "location": autorest.Encode("path", location), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.StoragePool/locations/{location}/diskPoolZones", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client DiskPoolZonesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client DiskPoolZonesClient) ListResponder(resp *http.Response) (result DiskPoolZoneListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client DiskPoolZonesClient) listNextResults(ctx context.Context, lastResults DiskPoolZoneListResult) (result DiskPoolZoneListResult, err error) { + req, err := lastResults.diskPoolZoneListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "storagepool.DiskPoolZonesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "storagepool.DiskPoolZonesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.DiskPoolZonesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client DiskPoolZonesClient) ListComplete(ctx context.Context, location string) (result DiskPoolZoneListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DiskPoolZonesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, location) + return +} diff --git a/services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/enums.go b/services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/enums.go new file mode 100644 index 000000000000..b3b7e43b3726 --- /dev/null +++ b/services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/enums.go @@ -0,0 +1,112 @@ +package storagepool + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CreatedByType enumerates the values for created by type. +type CreatedByType string + +const ( + // CreatedByTypeApplication ... + CreatedByTypeApplication CreatedByType = "Application" + // CreatedByTypeKey ... + CreatedByTypeKey CreatedByType = "Key" + // CreatedByTypeManagedIdentity ... + CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" + // CreatedByTypeUser ... + CreatedByTypeUser CreatedByType = "User" +) + +// PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type. +func PossibleCreatedByTypeValues() []CreatedByType { + return []CreatedByType{CreatedByTypeApplication, CreatedByTypeKey, CreatedByTypeManagedIdentity, CreatedByTypeUser} +} + +// DiskPoolTier enumerates the values for disk pool tier. +type DiskPoolTier string + +const ( + // DiskPoolTierBasic ... + DiskPoolTierBasic DiskPoolTier = "Basic" + // DiskPoolTierPremium ... + DiskPoolTierPremium DiskPoolTier = "Premium" + // DiskPoolTierStandard ... + DiskPoolTierStandard DiskPoolTier = "Standard" +) + +// PossibleDiskPoolTierValues returns an array of possible values for the DiskPoolTier const type. +func PossibleDiskPoolTierValues() []DiskPoolTier { + return []DiskPoolTier{DiskPoolTierBasic, DiskPoolTierPremium, DiskPoolTierStandard} +} + +// IscsiTargetACLMode enumerates the values for iscsi target acl mode. +type IscsiTargetACLMode string + +const ( + // IscsiTargetACLModeDynamic ... + IscsiTargetACLModeDynamic IscsiTargetACLMode = "Dynamic" + // IscsiTargetACLModeStatic ... + IscsiTargetACLModeStatic IscsiTargetACLMode = "Static" +) + +// PossibleIscsiTargetACLModeValues returns an array of possible values for the IscsiTargetACLMode const type. +func PossibleIscsiTargetACLModeValues() []IscsiTargetACLMode { + return []IscsiTargetACLMode{IscsiTargetACLModeDynamic, IscsiTargetACLModeStatic} +} + +// OperationalStatus enumerates the values for operational status. +type OperationalStatus string + +const ( + // OperationalStatusHealthy ... + OperationalStatusHealthy OperationalStatus = "Healthy" + // OperationalStatusInvalid ... + OperationalStatusInvalid OperationalStatus = "Invalid" + // OperationalStatusRunning ... + OperationalStatusRunning OperationalStatus = "Running" + // OperationalStatusStopped ... + OperationalStatusStopped OperationalStatus = "Stopped" + // OperationalStatusStoppeddeallocated ... + OperationalStatusStoppeddeallocated OperationalStatus = "Stopped (deallocated)" + // OperationalStatusUnhealthy ... + OperationalStatusUnhealthy OperationalStatus = "Unhealthy" + // OperationalStatusUnknown ... + OperationalStatusUnknown OperationalStatus = "Unknown" + // OperationalStatusUpdating ... + OperationalStatusUpdating OperationalStatus = "Updating" +) + +// PossibleOperationalStatusValues returns an array of possible values for the OperationalStatus const type. +func PossibleOperationalStatusValues() []OperationalStatus { + return []OperationalStatus{OperationalStatusHealthy, OperationalStatusInvalid, OperationalStatusRunning, OperationalStatusStopped, OperationalStatusStoppeddeallocated, OperationalStatusUnhealthy, OperationalStatusUnknown, OperationalStatusUpdating} +} + +// ProvisioningStates enumerates the values for provisioning states. +type ProvisioningStates string + +const ( + // ProvisioningStatesCanceled ... + ProvisioningStatesCanceled ProvisioningStates = "Canceled" + // ProvisioningStatesCreating ... + ProvisioningStatesCreating ProvisioningStates = "Creating" + // ProvisioningStatesDeleting ... + ProvisioningStatesDeleting ProvisioningStates = "Deleting" + // ProvisioningStatesFailed ... + ProvisioningStatesFailed ProvisioningStates = "Failed" + // ProvisioningStatesInvalid ... + ProvisioningStatesInvalid ProvisioningStates = "Invalid" + // ProvisioningStatesPending ... + ProvisioningStatesPending ProvisioningStates = "Pending" + // ProvisioningStatesSucceeded ... + ProvisioningStatesSucceeded ProvisioningStates = "Succeeded" + // ProvisioningStatesUpdating ... + ProvisioningStatesUpdating ProvisioningStates = "Updating" +) + +// PossibleProvisioningStatesValues returns an array of possible values for the ProvisioningStates const type. +func PossibleProvisioningStatesValues() []ProvisioningStates { + return []ProvisioningStates{ProvisioningStatesCanceled, ProvisioningStatesCreating, ProvisioningStatesDeleting, ProvisioningStatesFailed, ProvisioningStatesInvalid, ProvisioningStatesPending, ProvisioningStatesSucceeded, ProvisioningStatesUpdating} +} diff --git a/services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/iscsitargets.go b/services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/iscsitargets.go new file mode 100644 index 000000000000..13498f177fc5 --- /dev/null +++ b/services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/iscsitargets.go @@ -0,0 +1,525 @@ +package storagepool + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// IscsiTargetsClient is the client for the IscsiTargets methods of the Storagepool service. +type IscsiTargetsClient struct { + BaseClient +} + +// NewIscsiTargetsClient creates an instance of the IscsiTargetsClient client. +func NewIscsiTargetsClient(subscriptionID string) IscsiTargetsClient { + return NewIscsiTargetsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewIscsiTargetsClientWithBaseURI creates an instance of the IscsiTargetsClient client using a custom endpoint. Use +// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewIscsiTargetsClientWithBaseURI(baseURI string, subscriptionID string) IscsiTargetsClient { + return IscsiTargetsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate create or Update an iSCSI Target. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// diskPoolName - the name of the Disk Pool. +// iscsiTargetName - the name of the iSCSI Target. +// iscsiTargetCreatePayload - request payload for iSCSI Target create operation. +func (client IscsiTargetsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, diskPoolName string, iscsiTargetName string, iscsiTargetCreatePayload IscsiTargetCreate) (result IscsiTargetsCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/IscsiTargetsClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]*[0-9A-Za-z]$`, Chain: nil}}}, + {TargetValue: iscsiTargetCreatePayload, + Constraints: []validation.Constraint{{Target: "iscsiTargetCreatePayload.IscsiTargetCreateProperties", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("storagepool.IscsiTargetsClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, diskPoolName, iscsiTargetName, iscsiTargetCreatePayload) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.IscsiTargetsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.IscsiTargetsClient", "CreateOrUpdate", nil, "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client IscsiTargetsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, diskPoolName string, iscsiTargetName string, iscsiTargetCreatePayload IscsiTargetCreate) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "diskPoolName": autorest.Encode("path", diskPoolName), + "iscsiTargetName": autorest.Encode("path", iscsiTargetName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StoragePool/diskPools/{diskPoolName}/iscsiTargets/{iscsiTargetName}", pathParameters), + autorest.WithJSON(iscsiTargetCreatePayload), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client IscsiTargetsClient) CreateOrUpdateSender(req *http.Request) (future IscsiTargetsCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client IscsiTargetsClient) CreateOrUpdateResponder(resp *http.Response) (result IscsiTarget, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete delete an iSCSI Target. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// diskPoolName - the name of the Disk Pool. +// iscsiTargetName - the name of the iSCSI Target. +func (client IscsiTargetsClient) Delete(ctx context.Context, resourceGroupName string, diskPoolName string, iscsiTargetName string) (result IscsiTargetsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/IscsiTargetsClient.Delete") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]*[0-9A-Za-z]$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("storagepool.IscsiTargetsClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, diskPoolName, iscsiTargetName) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.IscsiTargetsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.IscsiTargetsClient", "Delete", nil, "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client IscsiTargetsClient) DeletePreparer(ctx context.Context, resourceGroupName string, diskPoolName string, iscsiTargetName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "diskPoolName": autorest.Encode("path", diskPoolName), + "iscsiTargetName": autorest.Encode("path", iscsiTargetName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StoragePool/diskPools/{diskPoolName}/iscsiTargets/{iscsiTargetName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client IscsiTargetsClient) DeleteSender(req *http.Request) (future IscsiTargetsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client IscsiTargetsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get get an iSCSI Target. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// diskPoolName - the name of the Disk Pool. +// iscsiTargetName - the name of the iSCSI Target. +func (client IscsiTargetsClient) Get(ctx context.Context, resourceGroupName string, diskPoolName string, iscsiTargetName string) (result IscsiTarget, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/IscsiTargetsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]*[0-9A-Za-z]$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("storagepool.IscsiTargetsClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, diskPoolName, iscsiTargetName) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.IscsiTargetsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storagepool.IscsiTargetsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.IscsiTargetsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client IscsiTargetsClient) GetPreparer(ctx context.Context, resourceGroupName string, diskPoolName string, iscsiTargetName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "diskPoolName": autorest.Encode("path", diskPoolName), + "iscsiTargetName": autorest.Encode("path", iscsiTargetName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StoragePool/diskPools/{diskPoolName}/iscsiTargets/{iscsiTargetName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client IscsiTargetsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client IscsiTargetsClient) GetResponder(resp *http.Response) (result IscsiTarget, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByDiskPool get iSCSI Targets in a Disk pool. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// diskPoolName - the name of the Disk Pool. +func (client IscsiTargetsClient) ListByDiskPool(ctx context.Context, resourceGroupName string, diskPoolName string) (result IscsiTargetListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/IscsiTargetsClient.ListByDiskPool") + defer func() { + sc := -1 + if result.itl.Response.Response != nil { + sc = result.itl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]*[0-9A-Za-z]$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("storagepool.IscsiTargetsClient", "ListByDiskPool", err.Error()) + } + + result.fn = client.listByDiskPoolNextResults + req, err := client.ListByDiskPoolPreparer(ctx, resourceGroupName, diskPoolName) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.IscsiTargetsClient", "ListByDiskPool", nil, "Failure preparing request") + return + } + + resp, err := client.ListByDiskPoolSender(req) + if err != nil { + result.itl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storagepool.IscsiTargetsClient", "ListByDiskPool", resp, "Failure sending request") + return + } + + result.itl, err = client.ListByDiskPoolResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.IscsiTargetsClient", "ListByDiskPool", resp, "Failure responding to request") + return + } + if result.itl.hasNextLink() && result.itl.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByDiskPoolPreparer prepares the ListByDiskPool request. +func (client IscsiTargetsClient) ListByDiskPoolPreparer(ctx context.Context, resourceGroupName string, diskPoolName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "diskPoolName": autorest.Encode("path", diskPoolName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StoragePool/diskPools/{diskPoolName}/iscsiTargets", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByDiskPoolSender sends the ListByDiskPool request. The method will close the +// http.Response Body if it receives an error. +func (client IscsiTargetsClient) ListByDiskPoolSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByDiskPoolResponder handles the response to the ListByDiskPool request. The method always +// closes the http.Response Body. +func (client IscsiTargetsClient) ListByDiskPoolResponder(resp *http.Response) (result IscsiTargetList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByDiskPoolNextResults retrieves the next set of results, if any. +func (client IscsiTargetsClient) listByDiskPoolNextResults(ctx context.Context, lastResults IscsiTargetList) (result IscsiTargetList, err error) { + req, err := lastResults.iscsiTargetListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "storagepool.IscsiTargetsClient", "listByDiskPoolNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByDiskPoolSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "storagepool.IscsiTargetsClient", "listByDiskPoolNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByDiskPoolResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.IscsiTargetsClient", "listByDiskPoolNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByDiskPoolComplete enumerates all values, automatically crossing page boundaries as required. +func (client IscsiTargetsClient) ListByDiskPoolComplete(ctx context.Context, resourceGroupName string, diskPoolName string) (result IscsiTargetListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/IscsiTargetsClient.ListByDiskPool") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByDiskPool(ctx, resourceGroupName, diskPoolName) + return +} + +// Update update an iSCSI Target. +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// diskPoolName - the name of the Disk Pool. +// iscsiTargetName - the name of the iSCSI Target. +// iscsiTargetUpdatePayload - request payload for iSCSI Target update operation. +func (client IscsiTargetsClient) Update(ctx context.Context, resourceGroupName string, diskPoolName string, iscsiTargetName string, iscsiTargetUpdatePayload IscsiTargetUpdate) (result IscsiTargetsUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/IscsiTargetsClient.Update") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]*[0-9A-Za-z]$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("storagepool.IscsiTargetsClient", "Update", err.Error()) + } + + req, err := client.UpdatePreparer(ctx, resourceGroupName, diskPoolName, iscsiTargetName, iscsiTargetUpdatePayload) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.IscsiTargetsClient", "Update", nil, "Failure preparing request") + return + } + + result, err = client.UpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.IscsiTargetsClient", "Update", nil, "Failure sending request") + return + } + + return +} + +// UpdatePreparer prepares the Update request. +func (client IscsiTargetsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, diskPoolName string, iscsiTargetName string, iscsiTargetUpdatePayload IscsiTargetUpdate) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "diskPoolName": autorest.Encode("path", diskPoolName), + "iscsiTargetName": autorest.Encode("path", iscsiTargetName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StoragePool/diskPools/{diskPoolName}/iscsiTargets/{iscsiTargetName}", pathParameters), + autorest.WithJSON(iscsiTargetUpdatePayload), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateSender sends the Update request. The method will close the +// http.Response Body if it receives an error. +func (client IscsiTargetsClient) UpdateSender(req *http.Request) (future IscsiTargetsUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// UpdateResponder handles the response to the Update request. The method always +// closes the http.Response Body. +func (client IscsiTargetsClient) UpdateResponder(resp *http.Response) (result IscsiTarget, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/models.go b/services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/models.go new file mode 100644 index 000000000000..35e737a3001a --- /dev/null +++ b/services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/models.go @@ -0,0 +1,1838 @@ +package storagepool + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "encoding/json" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/date" + "github.com/Azure/go-autorest/autorest/to" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// The package's fully qualified name. +const fqdn = "github.com/Azure/azure-sdk-for-go/services/preview/storagepool/mgmt/2021-04-01-preview/storagepool" + +// ACL access Control List (ACL) for an iSCSI Target; defines LUN masking policy +type ACL struct { + // InitiatorIqn - iSCSI initiator IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:client". + InitiatorIqn *string `json:"initiatorIqn,omitempty"` + // MappedLuns - List of LUN names mapped to the ACL. + MappedLuns *[]string `json:"mappedLuns,omitempty"` +} + +// Disk azure Managed Disk to attach to the Disk Pool. +type Disk struct { + // ID - Unique Azure Resource ID of the Managed Disk. + ID *string `json:"id,omitempty"` +} + +// DiskPool response for Disk Pool request. +type DiskPool struct { + autorest.Response `json:"-"` + // Sku - Determines the SKU of the Disk pool + *Sku `json:"sku,omitempty"` + // DiskPoolProperties - Properties of Disk Pool. + *DiskPoolProperties `json:"properties,omitempty"` + // SystemData - READ-ONLY; Resource metadata required by ARM RPC + SystemData *SystemMetadata `json:"systemData,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // Location - The geo-location where the resource lives. + Location *string `json:"location,omitempty"` + // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DiskPool. +func (dp DiskPool) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dp.Sku != nil { + objectMap["sku"] = dp.Sku + } + if dp.DiskPoolProperties != nil { + objectMap["properties"] = dp.DiskPoolProperties + } + if dp.Tags != nil { + objectMap["tags"] = dp.Tags + } + if dp.Location != nil { + objectMap["location"] = dp.Location + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for DiskPool struct. +func (dp *DiskPool) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "sku": + if v != nil { + var sku Sku + err = json.Unmarshal(*v, &sku) + if err != nil { + return err + } + dp.Sku = &sku + } + case "properties": + if v != nil { + var diskPoolProperties DiskPoolProperties + err = json.Unmarshal(*v, &diskPoolProperties) + if err != nil { + return err + } + dp.DiskPoolProperties = &diskPoolProperties + } + case "systemData": + if v != nil { + var systemData SystemMetadata + err = json.Unmarshal(*v, &systemData) + if err != nil { + return err + } + dp.SystemData = &systemData + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + dp.Tags = tags + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + dp.Location = &location + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + dp.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + dp.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dp.Type = &typeVar + } + } + } + + return nil +} + +// DiskPoolCreate request payload for create or update Disk Pool request. +type DiskPoolCreate struct { + // Sku - Determines the SKU of the Disk Pool + Sku *Sku `json:"sku,omitempty"` + // DiskPoolCreateProperties - Properties for Disk Pool create request. + *DiskPoolCreateProperties `json:"properties,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // Location - The geo-location where the resource lives. + Location *string `json:"location,omitempty"` + // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DiskPoolCreate. +func (dpc DiskPoolCreate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dpc.Sku != nil { + objectMap["sku"] = dpc.Sku + } + if dpc.DiskPoolCreateProperties != nil { + objectMap["properties"] = dpc.DiskPoolCreateProperties + } + if dpc.Tags != nil { + objectMap["tags"] = dpc.Tags + } + if dpc.Location != nil { + objectMap["location"] = dpc.Location + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for DiskPoolCreate struct. +func (dpc *DiskPoolCreate) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "sku": + if v != nil { + var sku Sku + err = json.Unmarshal(*v, &sku) + if err != nil { + return err + } + dpc.Sku = &sku + } + case "properties": + if v != nil { + var diskPoolCreateProperties DiskPoolCreateProperties + err = json.Unmarshal(*v, &diskPoolCreateProperties) + if err != nil { + return err + } + dpc.DiskPoolCreateProperties = &diskPoolCreateProperties + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + dpc.Tags = tags + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + dpc.Location = &location + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + dpc.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + dpc.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dpc.Type = &typeVar + } + } + } + + return nil +} + +// DiskPoolCreateProperties properties for Disk Pool create or update request. +type DiskPoolCreateProperties struct { + // AvailabilityZones - Logical zone for Disk Pool resource; example: ["1"]. + AvailabilityZones *[]string `json:"availabilityZones,omitempty"` + // Disks - List of Azure Managed Disks to attach to a Disk Pool. + Disks *[]Disk `json:"disks,omitempty"` + // SubnetID - Azure Resource ID of a Subnet for the Disk Pool. + SubnetID *string `json:"subnetId,omitempty"` + // AdditionalCapabilities - List of additional capabilities for a Disk Pool. + AdditionalCapabilities *[]string `json:"additionalCapabilities,omitempty"` +} + +// DiskPoolListResult list of Disk Pools +type DiskPoolListResult struct { + autorest.Response `json:"-"` + // Value - An array of Disk pool objects. + Value *[]DiskPool `json:"value,omitempty"` + // NextLink - READ-ONLY; URI to fetch the next section of the paginated response. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for DiskPoolListResult. +func (dplr DiskPoolListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dplr.Value != nil { + objectMap["value"] = dplr.Value + } + return json.Marshal(objectMap) +} + +// DiskPoolListResultIterator provides access to a complete listing of DiskPool values. +type DiskPoolListResultIterator struct { + i int + page DiskPoolListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *DiskPoolListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DiskPoolListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *DiskPoolListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter DiskPoolListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter DiskPoolListResultIterator) Response() DiskPoolListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter DiskPoolListResultIterator) Value() DiskPool { + if !iter.page.NotDone() { + return DiskPool{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the DiskPoolListResultIterator type. +func NewDiskPoolListResultIterator(page DiskPoolListResultPage) DiskPoolListResultIterator { + return DiskPoolListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (dplr DiskPoolListResult) IsEmpty() bool { + return dplr.Value == nil || len(*dplr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (dplr DiskPoolListResult) hasNextLink() bool { + return dplr.NextLink != nil && len(*dplr.NextLink) != 0 +} + +// diskPoolListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (dplr DiskPoolListResult) diskPoolListResultPreparer(ctx context.Context) (*http.Request, error) { + if !dplr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(dplr.NextLink))) +} + +// DiskPoolListResultPage contains a page of DiskPool values. +type DiskPoolListResultPage struct { + fn func(context.Context, DiskPoolListResult) (DiskPoolListResult, error) + dplr DiskPoolListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *DiskPoolListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DiskPoolListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.dplr) + if err != nil { + return err + } + page.dplr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *DiskPoolListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page DiskPoolListResultPage) NotDone() bool { + return !page.dplr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page DiskPoolListResultPage) Response() DiskPoolListResult { + return page.dplr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page DiskPoolListResultPage) Values() []DiskPool { + if page.dplr.IsEmpty() { + return nil + } + return *page.dplr.Value +} + +// Creates a new instance of the DiskPoolListResultPage type. +func NewDiskPoolListResultPage(cur DiskPoolListResult, getNextPage func(context.Context, DiskPoolListResult) (DiskPoolListResult, error)) DiskPoolListResultPage { + return DiskPoolListResultPage{ + fn: getNextPage, + dplr: cur, + } +} + +// DiskPoolProperties disk Pool response properties. +type DiskPoolProperties struct { + // ProvisioningState - State of the operation on the resource. Possible values include: 'ProvisioningStatesInvalid', 'ProvisioningStatesSucceeded', 'ProvisioningStatesFailed', 'ProvisioningStatesCanceled', 'ProvisioningStatesPending', 'ProvisioningStatesCreating', 'ProvisioningStatesUpdating', 'ProvisioningStatesDeleting' + ProvisioningState ProvisioningStates `json:"provisioningState,omitempty"` + // AvailabilityZones - Logical zone for Disk Pool resource; example: ["1"]. + AvailabilityZones *[]string `json:"availabilityZones,omitempty"` + // Status - Operational status of the Disk Pool. Possible values include: 'OperationalStatusInvalid', 'OperationalStatusUnknown', 'OperationalStatusHealthy', 'OperationalStatusUnhealthy', 'OperationalStatusUpdating', 'OperationalStatusRunning', 'OperationalStatusStopped', 'OperationalStatusStoppeddeallocated' + Status OperationalStatus `json:"status,omitempty"` + // Disks - List of Azure Managed Disks to attach to a Disk Pool. + Disks *[]Disk `json:"disks,omitempty"` + // SubnetID - Azure Resource ID of a Subnet for the Disk Pool. + SubnetID *string `json:"subnetId,omitempty"` + // AdditionalCapabilities - List of additional capabilities for Disk Pool. + AdditionalCapabilities *[]string `json:"additionalCapabilities,omitempty"` +} + +// DiskPoolsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type DiskPoolsCreateOrUpdateFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(DiskPoolsClient) (DiskPool, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *DiskPoolsCreateOrUpdateFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for DiskPoolsCreateOrUpdateFuture.Result. +func (future *DiskPoolsCreateOrUpdateFuture) result(client DiskPoolsClient) (dp DiskPool, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.DiskPoolsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + dp.Response.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("storagepool.DiskPoolsCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if dp.Response.Response, err = future.GetResult(sender); err == nil && dp.Response.Response.StatusCode != http.StatusNoContent { + dp, err = client.CreateOrUpdateResponder(dp.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.DiskPoolsCreateOrUpdateFuture", "Result", dp.Response.Response, "Failure responding to request") + } + } + return +} + +// DiskPoolsDeallocateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type DiskPoolsDeallocateFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(DiskPoolsClient) (autorest.Response, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *DiskPoolsDeallocateFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for DiskPoolsDeallocateFuture.Result. +func (future *DiskPoolsDeallocateFuture) result(client DiskPoolsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.DiskPoolsDeallocateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + ar.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("storagepool.DiskPoolsDeallocateFuture") + return + } + ar.Response = future.Response() + return +} + +// DiskPoolsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type DiskPoolsDeleteFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(DiskPoolsClient) (autorest.Response, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *DiskPoolsDeleteFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for DiskPoolsDeleteFuture.Result. +func (future *DiskPoolsDeleteFuture) result(client DiskPoolsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.DiskPoolsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + ar.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("storagepool.DiskPoolsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// DiskPoolsStartFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type DiskPoolsStartFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(DiskPoolsClient) (autorest.Response, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *DiskPoolsStartFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for DiskPoolsStartFuture.Result. +func (future *DiskPoolsStartFuture) result(client DiskPoolsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.DiskPoolsStartFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + ar.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("storagepool.DiskPoolsStartFuture") + return + } + ar.Response = future.Response() + return +} + +// DiskPoolsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type DiskPoolsUpdateFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(DiskPoolsClient) (DiskPool, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *DiskPoolsUpdateFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for DiskPoolsUpdateFuture.Result. +func (future *DiskPoolsUpdateFuture) result(client DiskPoolsClient) (dp DiskPool, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.DiskPoolsUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + dp.Response.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("storagepool.DiskPoolsUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if dp.Response.Response, err = future.GetResult(sender); err == nil && dp.Response.Response.StatusCode != http.StatusNoContent { + dp, err = client.UpdateResponder(dp.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.DiskPoolsUpdateFuture", "Result", dp.Response.Response, "Failure responding to request") + } + } + return +} + +// DiskPoolUpdate request payload for Update Disk Pool request. +type DiskPoolUpdate struct { + // DiskPoolUpdateProperties - Properties for Disk Pool update request. + *DiskPoolUpdateProperties `json:"properties,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for DiskPoolUpdate. +func (dpu DiskPoolUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dpu.DiskPoolUpdateProperties != nil { + objectMap["properties"] = dpu.DiskPoolUpdateProperties + } + if dpu.Tags != nil { + objectMap["tags"] = dpu.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for DiskPoolUpdate struct. +func (dpu *DiskPoolUpdate) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var diskPoolUpdateProperties DiskPoolUpdateProperties + err = json.Unmarshal(*v, &diskPoolUpdateProperties) + if err != nil { + return err + } + dpu.DiskPoolUpdateProperties = &diskPoolUpdateProperties + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + dpu.Tags = tags + } + } + } + + return nil +} + +// DiskPoolUpdateProperties properties for Disk Pool update request. +type DiskPoolUpdateProperties struct { + // Disks - List of Azure Managed Disks to attach to a Disk Pool. + Disks *[]Disk `json:"disks,omitempty"` +} + +// DiskPoolZoneInfo disk Pool Sku Details +type DiskPoolZoneInfo struct { + // AvailabilityZones - Logical zone for Disk Pool resource; example: ["1"]. + AvailabilityZones *[]string `json:"availabilityZones,omitempty"` + // AdditionalCapabilities - List of additional capabilities for Disk Pool. + AdditionalCapabilities *[]string `json:"additionalCapabilities,omitempty"` + // Sku - Determines the SKU of VM deployed for Disk Pool + Sku *Sku `json:"sku,omitempty"` +} + +// DiskPoolZoneListResult list Disk Pool skus operation response. +type DiskPoolZoneListResult struct { + autorest.Response `json:"-"` + // Value - The list of Disk Pool Skus. + Value *[]DiskPoolZoneInfo `json:"value,omitempty"` + // NextLink - URI to fetch the next section of the paginated response. + NextLink *string `json:"nextLink,omitempty"` +} + +// DiskPoolZoneListResultIterator provides access to a complete listing of DiskPoolZoneInfo values. +type DiskPoolZoneListResultIterator struct { + i int + page DiskPoolZoneListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *DiskPoolZoneListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DiskPoolZoneListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *DiskPoolZoneListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter DiskPoolZoneListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter DiskPoolZoneListResultIterator) Response() DiskPoolZoneListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter DiskPoolZoneListResultIterator) Value() DiskPoolZoneInfo { + if !iter.page.NotDone() { + return DiskPoolZoneInfo{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the DiskPoolZoneListResultIterator type. +func NewDiskPoolZoneListResultIterator(page DiskPoolZoneListResultPage) DiskPoolZoneListResultIterator { + return DiskPoolZoneListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (dpzlr DiskPoolZoneListResult) IsEmpty() bool { + return dpzlr.Value == nil || len(*dpzlr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (dpzlr DiskPoolZoneListResult) hasNextLink() bool { + return dpzlr.NextLink != nil && len(*dpzlr.NextLink) != 0 +} + +// diskPoolZoneListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (dpzlr DiskPoolZoneListResult) diskPoolZoneListResultPreparer(ctx context.Context) (*http.Request, error) { + if !dpzlr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(dpzlr.NextLink))) +} + +// DiskPoolZoneListResultPage contains a page of DiskPoolZoneInfo values. +type DiskPoolZoneListResultPage struct { + fn func(context.Context, DiskPoolZoneListResult) (DiskPoolZoneListResult, error) + dpzlr DiskPoolZoneListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *DiskPoolZoneListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DiskPoolZoneListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.dpzlr) + if err != nil { + return err + } + page.dpzlr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *DiskPoolZoneListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page DiskPoolZoneListResultPage) NotDone() bool { + return !page.dpzlr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page DiskPoolZoneListResultPage) Response() DiskPoolZoneListResult { + return page.dpzlr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page DiskPoolZoneListResultPage) Values() []DiskPoolZoneInfo { + if page.dpzlr.IsEmpty() { + return nil + } + return *page.dpzlr.Value +} + +// Creates a new instance of the DiskPoolZoneListResultPage type. +func NewDiskPoolZoneListResultPage(cur DiskPoolZoneListResult, getNextPage func(context.Context, DiskPoolZoneListResult) (DiskPoolZoneListResult, error)) DiskPoolZoneListResultPage { + return DiskPoolZoneListResultPage{ + fn: getNextPage, + dpzlr: cur, + } +} + +// EndpointDependency a domain name that a service is reached at, including details of the current +// connection status. +type EndpointDependency struct { + // DomainName - The domain name of the dependency. + DomainName *string `json:"domainName,omitempty"` + // EndpointDetails - The IP Addresses and Ports used when connecting to DomainName. + EndpointDetails *[]EndpointDetail `json:"endpointDetails,omitempty"` +} + +// EndpointDetail current TCP connectivity information from the App Service Environment to a single +// endpoint. +type EndpointDetail struct { + // IPAddress - An IP Address that Domain Name currently resolves to. + IPAddress *string `json:"ipAddress,omitempty"` + // Port - The port an endpoint is connected to. + Port *int32 `json:"port,omitempty"` + // Latency - The time in milliseconds it takes for a TCP connection to be created from the App Service Environment to this IpAddress at this Port. + Latency *float64 `json:"latency,omitempty"` + // IsAccessible - Whether it is possible to create a TCP connection from the App Service Environment to this IpAddress at this Port. + IsAccessible *bool `json:"isAccessible,omitempty"` +} + +// Error the resource management error response. +type Error struct { + // Error - RP error response. + Error *ErrorResponse `json:"error,omitempty"` +} + +// ErrorAdditionalInfo the resource management error additional info. +type ErrorAdditionalInfo struct { + // Type - READ-ONLY; The additional info type. + Type *string `json:"type,omitempty"` + // Info - READ-ONLY; The additional info. + Info interface{} `json:"info,omitempty"` +} + +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// ErrorResponse the resource management error response. +type ErrorResponse struct { + // Code - READ-ONLY; The error code. + Code *string `json:"code,omitempty"` + // Message - READ-ONLY; The error message. + Message *string `json:"message,omitempty"` + // Target - READ-ONLY; The error target. + Target *string `json:"target,omitempty"` + // Details - READ-ONLY; The error details. + Details *[]ErrorResponse `json:"details,omitempty"` + // AdditionalInfo - READ-ONLY; The error additional info. + AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` +} + +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// IscsiLun LUN to expose the Azure Managed Disk. +type IscsiLun struct { + // Name - User defined name for iSCSI LUN; example: "lun0" + Name *string `json:"name,omitempty"` + // ManagedDiskAzureResourceID - Azure Resource ID of the Managed Disk. + ManagedDiskAzureResourceID *string `json:"managedDiskAzureResourceId,omitempty"` + // Lun - READ-ONLY; Specifies the Logical Unit Number of the iSCSI LUN. + Lun *int32 `json:"lun,omitempty"` +} + +// MarshalJSON is the custom marshaler for IscsiLun. +func (il IscsiLun) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if il.Name != nil { + objectMap["name"] = il.Name + } + if il.ManagedDiskAzureResourceID != nil { + objectMap["managedDiskAzureResourceId"] = il.ManagedDiskAzureResourceID + } + return json.Marshal(objectMap) +} + +// IscsiTarget response for iSCSI Target requests. +type IscsiTarget struct { + autorest.Response `json:"-"` + // IscsiTargetProperties - Properties for iSCSI Target operations. + *IscsiTargetProperties `json:"properties,omitempty"` + // SystemData - Resource metadata required by ARM RPC + SystemData *SystemMetadata `json:"systemData,omitempty"` + // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for IscsiTarget. +func (it IscsiTarget) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if it.IscsiTargetProperties != nil { + objectMap["properties"] = it.IscsiTargetProperties + } + if it.SystemData != nil { + objectMap["systemData"] = it.SystemData + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for IscsiTarget struct. +func (it *IscsiTarget) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var iscsiTargetProperties IscsiTargetProperties + err = json.Unmarshal(*v, &iscsiTargetProperties) + if err != nil { + return err + } + it.IscsiTargetProperties = &iscsiTargetProperties + } + case "systemData": + if v != nil { + var systemData SystemMetadata + err = json.Unmarshal(*v, &systemData) + if err != nil { + return err + } + it.SystemData = &systemData + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + it.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + it.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + it.Type = &typeVar + } + } + } + + return nil +} + +// IscsiTargetCreate payload for iSCSI Target create or update requests. +type IscsiTargetCreate struct { + // IscsiTargetCreateProperties - Properties for iSCSI Target create request. + *IscsiTargetCreateProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for IscsiTargetCreate. +func (itc IscsiTargetCreate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if itc.IscsiTargetCreateProperties != nil { + objectMap["properties"] = itc.IscsiTargetCreateProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for IscsiTargetCreate struct. +func (itc *IscsiTargetCreate) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var iscsiTargetCreateProperties IscsiTargetCreateProperties + err = json.Unmarshal(*v, &iscsiTargetCreateProperties) + if err != nil { + return err + } + itc.IscsiTargetCreateProperties = &iscsiTargetCreateProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + itc.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + itc.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + itc.Type = &typeVar + } + } + } + + return nil +} + +// IscsiTargetCreateProperties properties for iSCSI Target create or update request. +type IscsiTargetCreateProperties struct { + // ACLMode - Mode for Target connectivity. Possible values include: 'IscsiTargetACLModeDynamic', 'IscsiTargetACLModeStatic' + ACLMode IscsiTargetACLMode `json:"aclMode,omitempty"` + // TargetIqn - iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server". + TargetIqn *string `json:"targetIqn,omitempty"` + // StaticAcls - Access Control List (ACL) for an iSCSI Target; defines LUN masking policy + StaticAcls *[]ACL `json:"staticAcls,omitempty"` + // Luns - List of LUNs to be exposed through iSCSI Target. + Luns *[]IscsiLun `json:"luns,omitempty"` +} + +// IscsiTargetList list of iSCSI Targets. +type IscsiTargetList struct { + autorest.Response `json:"-"` + // Value - An array of iSCSI Targets in a Disk Pool. + Value *[]IscsiTarget `json:"value,omitempty"` + // NextLink - READ-ONLY; URI to fetch the next section of the paginated response. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for IscsiTargetList. +func (itl IscsiTargetList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if itl.Value != nil { + objectMap["value"] = itl.Value + } + return json.Marshal(objectMap) +} + +// IscsiTargetListIterator provides access to a complete listing of IscsiTarget values. +type IscsiTargetListIterator struct { + i int + page IscsiTargetListPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *IscsiTargetListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/IscsiTargetListIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *IscsiTargetListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter IscsiTargetListIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter IscsiTargetListIterator) Response() IscsiTargetList { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter IscsiTargetListIterator) Value() IscsiTarget { + if !iter.page.NotDone() { + return IscsiTarget{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the IscsiTargetListIterator type. +func NewIscsiTargetListIterator(page IscsiTargetListPage) IscsiTargetListIterator { + return IscsiTargetListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (itl IscsiTargetList) IsEmpty() bool { + return itl.Value == nil || len(*itl.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (itl IscsiTargetList) hasNextLink() bool { + return itl.NextLink != nil && len(*itl.NextLink) != 0 +} + +// iscsiTargetListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (itl IscsiTargetList) iscsiTargetListPreparer(ctx context.Context) (*http.Request, error) { + if !itl.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(itl.NextLink))) +} + +// IscsiTargetListPage contains a page of IscsiTarget values. +type IscsiTargetListPage struct { + fn func(context.Context, IscsiTargetList) (IscsiTargetList, error) + itl IscsiTargetList +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *IscsiTargetListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/IscsiTargetListPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.itl) + if err != nil { + return err + } + page.itl = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *IscsiTargetListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page IscsiTargetListPage) NotDone() bool { + return !page.itl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page IscsiTargetListPage) Response() IscsiTargetList { + return page.itl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page IscsiTargetListPage) Values() []IscsiTarget { + if page.itl.IsEmpty() { + return nil + } + return *page.itl.Value +} + +// Creates a new instance of the IscsiTargetListPage type. +func NewIscsiTargetListPage(cur IscsiTargetList, getNextPage func(context.Context, IscsiTargetList) (IscsiTargetList, error)) IscsiTargetListPage { + return IscsiTargetListPage{ + fn: getNextPage, + itl: cur, + } +} + +// IscsiTargetProperties response properties for iSCSI Target operations. +type IscsiTargetProperties struct { + // ACLMode - Mode for Target connectivity. Possible values include: 'IscsiTargetACLModeDynamic', 'IscsiTargetACLModeStatic' + ACLMode IscsiTargetACLMode `json:"aclMode,omitempty"` + // StaticAcls - Access Control List (ACL) for an iSCSI Target; defines LUN masking policy + StaticAcls *[]ACL `json:"staticAcls,omitempty"` + // Luns - List of LUNs to be exposed through iSCSI Target. + Luns *[]IscsiLun `json:"luns,omitempty"` + // TargetIqn - iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server". + TargetIqn *string `json:"targetIqn,omitempty"` + // ProvisioningState - State of the operation on the resource. Possible values include: 'ProvisioningStatesInvalid', 'ProvisioningStatesSucceeded', 'ProvisioningStatesFailed', 'ProvisioningStatesCanceled', 'ProvisioningStatesPending', 'ProvisioningStatesCreating', 'ProvisioningStatesUpdating', 'ProvisioningStatesDeleting' + ProvisioningState ProvisioningStates `json:"provisioningState,omitempty"` + // Status - Operational status of the iSCSI Target. Possible values include: 'OperationalStatusInvalid', 'OperationalStatusUnknown', 'OperationalStatusHealthy', 'OperationalStatusUnhealthy', 'OperationalStatusUpdating', 'OperationalStatusRunning', 'OperationalStatusStopped', 'OperationalStatusStoppeddeallocated' + Status OperationalStatus `json:"status,omitempty"` + // Endpoints - List of private IPv4 addresses to connect to the iSCSI Target. + Endpoints *[]string `json:"endpoints,omitempty"` + // Port - The port used by iSCSI Target portal group. + Port *int32 `json:"port,omitempty"` +} + +// IscsiTargetsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type IscsiTargetsCreateOrUpdateFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(IscsiTargetsClient) (IscsiTarget, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *IscsiTargetsCreateOrUpdateFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for IscsiTargetsCreateOrUpdateFuture.Result. +func (future *IscsiTargetsCreateOrUpdateFuture) result(client IscsiTargetsClient) (it IscsiTarget, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.IscsiTargetsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + it.Response.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("storagepool.IscsiTargetsCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if it.Response.Response, err = future.GetResult(sender); err == nil && it.Response.Response.StatusCode != http.StatusNoContent { + it, err = client.CreateOrUpdateResponder(it.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.IscsiTargetsCreateOrUpdateFuture", "Result", it.Response.Response, "Failure responding to request") + } + } + return +} + +// IscsiTargetsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type IscsiTargetsDeleteFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(IscsiTargetsClient) (autorest.Response, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *IscsiTargetsDeleteFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for IscsiTargetsDeleteFuture.Result. +func (future *IscsiTargetsDeleteFuture) result(client IscsiTargetsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.IscsiTargetsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + ar.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("storagepool.IscsiTargetsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// IscsiTargetsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type IscsiTargetsUpdateFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(IscsiTargetsClient) (IscsiTarget, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *IscsiTargetsUpdateFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for IscsiTargetsUpdateFuture.Result. +func (future *IscsiTargetsUpdateFuture) result(client IscsiTargetsClient) (it IscsiTarget, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.IscsiTargetsUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + it.Response.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("storagepool.IscsiTargetsUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if it.Response.Response, err = future.GetResult(sender); err == nil && it.Response.Response.StatusCode != http.StatusNoContent { + it, err = client.UpdateResponder(it.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.IscsiTargetsUpdateFuture", "Result", it.Response.Response, "Failure responding to request") + } + } + return +} + +// IscsiTargetUpdate payload for iSCSI Target update requests. +type IscsiTargetUpdate struct { + // IscsiTargetUpdateProperties - Properties for iSCSI Target update request. + *IscsiTargetUpdateProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for IscsiTargetUpdate. +func (itu IscsiTargetUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if itu.IscsiTargetUpdateProperties != nil { + objectMap["properties"] = itu.IscsiTargetUpdateProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for IscsiTargetUpdate struct. +func (itu *IscsiTargetUpdate) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var iscsiTargetUpdateProperties IscsiTargetUpdateProperties + err = json.Unmarshal(*v, &iscsiTargetUpdateProperties) + if err != nil { + return err + } + itu.IscsiTargetUpdateProperties = &iscsiTargetUpdateProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + itu.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + itu.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + itu.Type = &typeVar + } + } + } + + return nil +} + +// IscsiTargetUpdateProperties properties for iSCSI Target update request. +type IscsiTargetUpdateProperties struct { + // StaticAcls - Access Control List (ACL) for an iSCSI Target; defines LUN masking policy + StaticAcls *[]ACL `json:"staticAcls,omitempty"` + // Luns - List of LUNs to be exposed through iSCSI Target. + Luns *[]IscsiLun `json:"luns,omitempty"` +} + +// OperationDisplay metadata about an operation. +type OperationDisplay struct { + // Provider - Localized friendly form of the resource provider name. + Provider *string `json:"provider,omitempty"` + // Resource - Localized friendly form of the resource type related to this action/operation. + Resource *string `json:"resource,omitempty"` + // Operation - Localized friendly name for the operation, as it should be shown to the user. + Operation *string `json:"operation,omitempty"` + // Description - Localized friendly description for the operation, as it should be shown to the user. + Description *string `json:"description,omitempty"` +} + +// OperationListResult list of operations supported by the RP. +type OperationListResult struct { + autorest.Response `json:"-"` + // Value - An array of operations supported by the StoragePool RP. + Value *[]RPOperation `json:"value,omitempty"` + // NextLink - URI to fetch the next section of the paginated response. + NextLink *string `json:"nextLink,omitempty"` +} + +// OutboundEnvironmentEndpoint endpoints accessed for a common purpose that the App Service Environment +// requires outbound network access to. +type OutboundEnvironmentEndpoint struct { + // Category - The type of service accessed by the App Service Environment, e.g., Azure Storage, Azure SQL Database, and Azure Active Directory. + Category *string `json:"category,omitempty"` + // Endpoints - The endpoints that the App Service Environment reaches the service at. + Endpoints *[]EndpointDependency `json:"endpoints,omitempty"` +} + +// OutboundEnvironmentEndpointList collection of Outbound Environment Endpoints +type OutboundEnvironmentEndpointList struct { + autorest.Response `json:"-"` + // Value - Collection of resources. + Value *[]OutboundEnvironmentEndpoint `json:"value,omitempty"` + // NextLink - READ-ONLY; Link to next page of resources. + NextLink *string `json:"nextLink,omitempty"` +} + +// MarshalJSON is the custom marshaler for OutboundEnvironmentEndpointList. +func (oeel OutboundEnvironmentEndpointList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if oeel.Value != nil { + objectMap["value"] = oeel.Value + } + return json.Marshal(objectMap) +} + +// OutboundEnvironmentEndpointListIterator provides access to a complete listing of +// OutboundEnvironmentEndpoint values. +type OutboundEnvironmentEndpointListIterator struct { + i int + page OutboundEnvironmentEndpointListPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *OutboundEnvironmentEndpointListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OutboundEnvironmentEndpointListIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *OutboundEnvironmentEndpointListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter OutboundEnvironmentEndpointListIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter OutboundEnvironmentEndpointListIterator) Response() OutboundEnvironmentEndpointList { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter OutboundEnvironmentEndpointListIterator) Value() OutboundEnvironmentEndpoint { + if !iter.page.NotDone() { + return OutboundEnvironmentEndpoint{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the OutboundEnvironmentEndpointListIterator type. +func NewOutboundEnvironmentEndpointListIterator(page OutboundEnvironmentEndpointListPage) OutboundEnvironmentEndpointListIterator { + return OutboundEnvironmentEndpointListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (oeel OutboundEnvironmentEndpointList) IsEmpty() bool { + return oeel.Value == nil || len(*oeel.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (oeel OutboundEnvironmentEndpointList) hasNextLink() bool { + return oeel.NextLink != nil && len(*oeel.NextLink) != 0 +} + +// outboundEnvironmentEndpointListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (oeel OutboundEnvironmentEndpointList) outboundEnvironmentEndpointListPreparer(ctx context.Context) (*http.Request, error) { + if !oeel.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(oeel.NextLink))) +} + +// OutboundEnvironmentEndpointListPage contains a page of OutboundEnvironmentEndpoint values. +type OutboundEnvironmentEndpointListPage struct { + fn func(context.Context, OutboundEnvironmentEndpointList) (OutboundEnvironmentEndpointList, error) + oeel OutboundEnvironmentEndpointList +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *OutboundEnvironmentEndpointListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OutboundEnvironmentEndpointListPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.oeel) + if err != nil { + return err + } + page.oeel = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *OutboundEnvironmentEndpointListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page OutboundEnvironmentEndpointListPage) NotDone() bool { + return !page.oeel.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page OutboundEnvironmentEndpointListPage) Response() OutboundEnvironmentEndpointList { + return page.oeel +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page OutboundEnvironmentEndpointListPage) Values() []OutboundEnvironmentEndpoint { + if page.oeel.IsEmpty() { + return nil + } + return *page.oeel.Value +} + +// Creates a new instance of the OutboundEnvironmentEndpointListPage type. +func NewOutboundEnvironmentEndpointListPage(cur OutboundEnvironmentEndpointList, getNextPage func(context.Context, OutboundEnvironmentEndpointList) (OutboundEnvironmentEndpointList, error)) OutboundEnvironmentEndpointListPage { + return OutboundEnvironmentEndpointListPage{ + fn: getNextPage, + oeel: cur, + } +} + +// ProxyResource the resource model definition for a ARM proxy resource. It will have everything other than +// required location and tags +type ProxyResource struct { + // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// Resource ARM resource model definition. +type Resource struct { + // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// RPOperation description of a StoragePool RP Operation +type RPOperation struct { + // Name - The name of the operation being performed on this particular object + Name *string `json:"name,omitempty"` + // IsDataAction - Indicates whether the operation applies to data-plane. + IsDataAction *bool `json:"isDataAction,omitempty"` + // ActionType - Indicates the action type. + ActionType *string `json:"actionType,omitempty"` + // Display - Additional metadata about RP operation. + Display *OperationDisplay `json:"display,omitempty"` + // Origin - The intended executor of the operation; governs the display of the operation in the RBAC UX and the audit logs UX. + Origin *string `json:"origin,omitempty"` +} + +// Sku sku for ARM resource +type Sku struct { + // Name - Sku name + Name *string `json:"name,omitempty"` + // Tier - Sku tier + Tier *string `json:"tier,omitempty"` +} + +// SystemMetadata metadata pertaining to creation and last modification of the resource. +type SystemMetadata struct { + // CreatedBy - The identity that created the resource. + CreatedBy *string `json:"createdBy,omitempty"` + // CreatedByType - The type of identity that created the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey' + CreatedByType CreatedByType `json:"createdByType,omitempty"` + // CreatedAt - The timestamp of resource creation (UTC). + CreatedAt *date.Time `json:"createdAt,omitempty"` + // LastModifiedBy - The identity that last modified the resource. + LastModifiedBy *string `json:"lastModifiedBy,omitempty"` + // LastModifiedByType - The type of identity that last modified the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey' + LastModifiedByType CreatedByType `json:"lastModifiedByType,omitempty"` + // LastModifiedAt - The type of identity that last modified the resource. + LastModifiedAt *date.Time `json:"lastModifiedAt,omitempty"` +} + +// TrackedResource the resource model definition for a ARM tracked top level resource. +type TrackedResource struct { + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // Location - The geo-location where the resource lives. + Location *string `json:"location,omitempty"` + // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for TrackedResource. +func (tr TrackedResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if tr.Tags != nil { + objectMap["tags"] = tr.Tags + } + if tr.Location != nil { + objectMap["location"] = tr.Location + } + return json.Marshal(objectMap) +} diff --git a/services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/operations.go b/services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/operations.go new file mode 100644 index 000000000000..a716ef187a82 --- /dev/null +++ b/services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/operations.go @@ -0,0 +1,98 @@ +package storagepool + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// OperationsClient is the client for the Operations methods of the Storagepool service. +type OperationsClient struct { + BaseClient +} + +// NewOperationsClient creates an instance of the OperationsClient client. +func NewOperationsClient(subscriptionID string) OperationsClient { + return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient { + return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List gets a list of StoragePool operations. +func (client OperationsClient) List(ctx context.Context) (result OperationListResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.OperationsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storagepool.OperationsClient", "List", resp, "Failure sending request") + return + } + + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storagepool.OperationsClient", "List", resp, "Failure responding to request") + return + } + + return +} + +// ListPreparer prepares the List request. +func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) { + const APIVersion = "2021-04-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPath("/providers/Microsoft.StoragePool/operations"), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/storagepoolapi/interfaces.go b/services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/storagepoolapi/interfaces.go new file mode 100644 index 000000000000..3d77a588ca9a --- /dev/null +++ b/services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/storagepoolapi/interfaces.go @@ -0,0 +1,57 @@ +package storagepoolapi + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/azure-sdk-for-go/services/preview/storagepool/mgmt/2021-04-01-preview/storagepool" +) + +// OperationsClientAPI contains the set of methods on the OperationsClient type. +type OperationsClientAPI interface { + List(ctx context.Context) (result storagepool.OperationListResult, err error) +} + +var _ OperationsClientAPI = (*storagepool.OperationsClient)(nil) + +// DiskPoolsClientAPI contains the set of methods on the DiskPoolsClient type. +type DiskPoolsClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, diskPoolName string, diskPoolCreatePayload storagepool.DiskPoolCreate) (result storagepool.DiskPoolsCreateOrUpdateFuture, err error) + Deallocate(ctx context.Context, resourceGroupName string, diskPoolName string) (result storagepool.DiskPoolsDeallocateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, diskPoolName string) (result storagepool.DiskPoolsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, diskPoolName string) (result storagepool.DiskPool, err error) + ListByResourceGroup(ctx context.Context, resourceGroupName string) (result storagepool.DiskPoolListResultPage, err error) + ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result storagepool.DiskPoolListResultIterator, err error) + ListBySubscription(ctx context.Context) (result storagepool.DiskPoolListResultPage, err error) + ListBySubscriptionComplete(ctx context.Context) (result storagepool.DiskPoolListResultIterator, err error) + ListOutboundNetworkDependenciesEndpoints(ctx context.Context, resourceGroupName string, diskPoolName string) (result storagepool.OutboundEnvironmentEndpointListPage, err error) + ListOutboundNetworkDependenciesEndpointsComplete(ctx context.Context, resourceGroupName string, diskPoolName string) (result storagepool.OutboundEnvironmentEndpointListIterator, err error) + Start(ctx context.Context, resourceGroupName string, diskPoolName string) (result storagepool.DiskPoolsStartFuture, err error) + Update(ctx context.Context, resourceGroupName string, diskPoolName string, diskPoolUpdatePayload storagepool.DiskPoolUpdate) (result storagepool.DiskPoolsUpdateFuture, err error) +} + +var _ DiskPoolsClientAPI = (*storagepool.DiskPoolsClient)(nil) + +// DiskPoolZonesClientAPI contains the set of methods on the DiskPoolZonesClient type. +type DiskPoolZonesClientAPI interface { + List(ctx context.Context, location string) (result storagepool.DiskPoolZoneListResultPage, err error) + ListComplete(ctx context.Context, location string) (result storagepool.DiskPoolZoneListResultIterator, err error) +} + +var _ DiskPoolZonesClientAPI = (*storagepool.DiskPoolZonesClient)(nil) + +// IscsiTargetsClientAPI contains the set of methods on the IscsiTargetsClient type. +type IscsiTargetsClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, diskPoolName string, iscsiTargetName string, iscsiTargetCreatePayload storagepool.IscsiTargetCreate) (result storagepool.IscsiTargetsCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, diskPoolName string, iscsiTargetName string) (result storagepool.IscsiTargetsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, diskPoolName string, iscsiTargetName string) (result storagepool.IscsiTarget, err error) + ListByDiskPool(ctx context.Context, resourceGroupName string, diskPoolName string) (result storagepool.IscsiTargetListPage, err error) + ListByDiskPoolComplete(ctx context.Context, resourceGroupName string, diskPoolName string) (result storagepool.IscsiTargetListIterator, err error) + Update(ctx context.Context, resourceGroupName string, diskPoolName string, iscsiTargetName string, iscsiTargetUpdatePayload storagepool.IscsiTargetUpdate) (result storagepool.IscsiTargetsUpdateFuture, err error) +} + +var _ IscsiTargetsClientAPI = (*storagepool.IscsiTargetsClient)(nil) diff --git a/services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/version.go b/services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/version.go new file mode 100644 index 000000000000..3c0283ee907a --- /dev/null +++ b/services/preview/storagepool/mgmt/2021-04-01-preview/storagepool/version.go @@ -0,0 +1,19 @@ +package storagepool + +import "github.com/Azure/azure-sdk-for-go/version" + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// UserAgent returns the UserAgent string to use when sending http.Requests. +func UserAgent() string { + return "Azure-SDK-For-Go/" + Version() + " storagepool/2021-04-01-preview" +} + +// Version returns the semantic version (see http://semver.org) of the client. +func Version() string { + return version.Number +} diff --git a/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/CHANGELOG.md b/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/CHANGELOG.md index 52911e4cc5e4..7e2441416df6 100644 --- a/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/CHANGELOG.md +++ b/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/CHANGELOG.md @@ -1,2 +1,25 @@ # Change History +## Additive Changes + +### New Funcs + +1. ClusterJobListResult.MarshalJSON() ([]byte, error) +1. ClusterListResult.MarshalJSON() ([]byte, error) +1. DiagnosticCondition.MarshalJSON() ([]byte, error) +1. Diagnostics.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. FunctionListResult.MarshalJSON() ([]byte, error) +1. InputListResult.MarshalJSON() ([]byte, error) +1. Operation.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OutputListResult.MarshalJSON() ([]byte, error) +1. PrivateEndpointListResult.MarshalJSON() ([]byte, error) +1. PrivateLinkConnectionState.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ResourceTestStatus.MarshalJSON() ([]byte, error) +1. StreamingJobListResult.MarshalJSON() ([]byte, error) +1. SubscriptionQuotaProperties.MarshalJSON() ([]byte, error) +1. SubscriptionQuotasListResult.MarshalJSON() ([]byte, error) diff --git a/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/_meta.json b/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/_meta.json index c7ef04afc301..a14339b8da0d 100644 --- a/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/_meta.json +++ b/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/streamanalytics/resource-manager/readme.md", "tag": "package-2020-03-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-03-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/streamanalytics/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-03-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/streamanalytics/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/models.go b/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/models.go index 118b9b35dc2c..95376fe4d118 100644 --- a/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/models.go +++ b/services/preview/streamanalytics/mgmt/2020-03-01-preview/streamanalytics/models.go @@ -1831,6 +1831,12 @@ type ClusterJobListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ClusterJobListResult. +func (cjlr ClusterJobListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ClusterJobListResultIterator provides access to a complete listing of ClusterJob values. type ClusterJobListResultIterator struct { i int @@ -1990,6 +1996,12 @@ type ClusterListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ClusterListResult. +func (clr ClusterListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ClusterListResultIterator provides access to a complete listing of Cluster values. type ClusterListResultIterator struct { i int @@ -2698,6 +2710,12 @@ type DiagnosticCondition struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for DiagnosticCondition. +func (dc DiagnosticCondition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Diagnostics describes conditions applicable to the Input, Output, or the job overall, that warrant // customer attention. type Diagnostics struct { @@ -2705,6 +2723,12 @@ type Diagnostics struct { Conditions *[]DiagnosticCondition `json:"conditions,omitempty"` } +// MarshalJSON is the custom marshaler for Diagnostics. +func (d Diagnostics) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DocumentDbOutputDataSource describes a DocumentDB output data source. type DocumentDbOutputDataSource struct { // DocumentDbOutputDataSourceProperties - The properties that are associated with a DocumentDB output. Required on PUT (CreateOrReplace) requests. @@ -2881,6 +2905,12 @@ type ErrorResponse struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EventHubDataSourceProperties the common properties that are associated with Event Hub data sources. type EventHubDataSourceProperties struct { // EventHubName - The name of the Event Hub. Required on PUT (CreateOrReplace) requests. @@ -3597,6 +3627,12 @@ type FunctionListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for FunctionListResult. +func (flr FunctionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FunctionListResultIterator provides access to a complete listing of Function values. type FunctionListResultIterator struct { i int @@ -4124,6 +4160,12 @@ type InputListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for InputListResult. +func (ilr InputListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InputListResultIterator provides access to a complete listing of Input values. type InputListResultIterator struct { i int @@ -4894,6 +4936,12 @@ type Operation struct { Display *OperationDisplay `json:"display,omitempty"` } +// MarshalJSON is the custom marshaler for Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationDisplay contains the localized display information for this particular operation / action. type OperationDisplay struct { // Provider - READ-ONLY; The localized friendly form of the resource provider name. @@ -4906,6 +4954,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of the request to list Stream Analytics operations. It contains a list of // operations and a URL link to get the next set of results. type OperationListResult struct { @@ -4916,6 +4970,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -5336,6 +5396,12 @@ type OutputListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OutputListResult. +func (olr OutputListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OutputListResultIterator provides access to a complete listing of Output values. type OutputListResultIterator struct { i int @@ -5857,6 +5923,12 @@ type PrivateEndpointListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpointListResult. +func (pelr PrivateEndpointListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointListResultIterator provides access to a complete listing of PrivateEndpoint values. type PrivateEndpointListResultIterator struct { i int @@ -6072,6 +6144,12 @@ type PrivateLinkConnectionState struct { ActionsRequired *string `json:"actionsRequired,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkConnectionState. +func (plcs PrivateLinkConnectionState) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkServiceConnection a grouping of information about the connection to the remote resource. type PrivateLinkServiceConnection struct { // PrivateLinkServiceConnectionProperties - Bag of properties defining a privatelinkServiceConnection. @@ -6134,6 +6212,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicReferenceInputDataSource describes an input data source that contains reference data. type BasicReferenceInputDataSource interface { AsBlobReferenceInputDataSource() (*BlobReferenceInputDataSource, bool) @@ -6359,6 +6443,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceTestStatus describes the status of the test operation along with error information, if // applicable. type ResourceTestStatus struct { @@ -6369,6 +6459,12 @@ type ResourceTestStatus struct { Error *ErrorResponse `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceTestStatus. +func (rts ResourceTestStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ScalarFunctionProperties the properties that are associated with a scalar function. type ScalarFunctionProperties struct { // Etag - READ-ONLY; The current entity tag for the function. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency. @@ -7060,6 +7156,12 @@ type StreamingJobListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for StreamingJobListResult. +func (sjlr StreamingJobListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StreamingJobListResultIterator provides access to a complete listing of StreamingJob values. type StreamingJobListResultIterator struct { i int @@ -7815,6 +7917,12 @@ type SubscriptionQuotaProperties struct { CurrentCount *int32 `json:"currentCount,omitempty"` } +// MarshalJSON is the custom marshaler for SubscriptionQuotaProperties. +func (sq SubscriptionQuotaProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SubscriptionQuotasListResult result of the GetQuotas operation. It contains a list of quotas for the // subscription in a particular region. type SubscriptionQuotasListResult struct { @@ -7823,6 +7931,12 @@ type SubscriptionQuotasListResult struct { Value *[]SubscriptionQuota `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SubscriptionQuotasListResult. +func (sqlr SubscriptionQuotasListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackedResource the resource model definition for a ARM tracked top level resource type TrackedResource struct { // Tags - Resource tags. diff --git a/services/preview/subscription/mgmt/2017-11-01-preview/subscription/_meta.json b/services/preview/subscription/mgmt/2017-11-01-preview/subscription/_meta.json index 3ac826385ac9..4049a9484e43 100644 --- a/services/preview/subscription/mgmt/2017-11-01-preview/subscription/_meta.json +++ b/services/preview/subscription/mgmt/2017-11-01-preview/subscription/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/subscription/resource-manager/readme.md", "tag": "package-2017-11-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-11-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/subscription/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-11-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/subscription/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/subscription/mgmt/2018-03-01-preview/subscription/CHANGELOG.md b/services/preview/subscription/mgmt/2018-03-01-preview/subscription/CHANGELOG.md index 52911e4cc5e4..f82fe736f26d 100644 --- a/services/preview/subscription/mgmt/2018-03-01-preview/subscription/CHANGELOG.md +++ b/services/preview/subscription/mgmt/2018-03-01-preview/subscription/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. Location.MarshalJSON() ([]byte, error) +1. Policies.MarshalJSON() ([]byte, error) +1. TenantIDDescription.MarshalJSON() ([]byte, error) diff --git a/services/preview/subscription/mgmt/2018-03-01-preview/subscription/_meta.json b/services/preview/subscription/mgmt/2018-03-01-preview/subscription/_meta.json index 2eff5ec77ad0..2f133bfb513f 100644 --- a/services/preview/subscription/mgmt/2018-03-01-preview/subscription/_meta.json +++ b/services/preview/subscription/mgmt/2018-03-01-preview/subscription/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/subscription/resource-manager/readme.md", "tag": "package-2018-03-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-03-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/subscription/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-03-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/subscription/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/subscription/mgmt/2018-03-01-preview/subscription/models.go b/services/preview/subscription/mgmt/2018-03-01-preview/subscription/models.go index 474dc12a487d..27a87b8bce19 100644 --- a/services/preview/subscription/mgmt/2018-03-01-preview/subscription/models.go +++ b/services/preview/subscription/mgmt/2018-03-01-preview/subscription/models.go @@ -288,6 +288,12 @@ type Location struct { Longitude *string `json:"longitude,omitempty"` } +// MarshalJSON is the custom marshaler for Location. +func (l Location) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LocationListResult location list operation response. type LocationListResult struct { autorest.Response `json:"-"` @@ -363,6 +369,12 @@ type Policies struct { SpendingLimit SpendingLimit `json:"spendingLimit,omitempty"` } +// MarshalJSON is the custom marshaler for Policies. +func (p Policies) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TenantIDDescription tenant Id information. type TenantIDDescription struct { // ID - READ-ONLY; The fully qualified ID of the tenant. For example, /tenants/00000000-0000-0000-0000-000000000000. @@ -371,6 +383,12 @@ type TenantIDDescription struct { TenantID *string `json:"tenantId,omitempty"` } +// MarshalJSON is the custom marshaler for TenantIDDescription. +func (tid TenantIDDescription) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TenantListResult tenant Ids information. type TenantListResult struct { autorest.Response `json:"-"` diff --git a/services/preview/subscription/mgmt/2019-10-01-preview/subscription/CHANGELOG.md b/services/preview/subscription/mgmt/2019-10-01-preview/subscription/CHANGELOG.md index 52911e4cc5e4..9f657dedbf6e 100644 --- a/services/preview/subscription/mgmt/2019-10-01-preview/subscription/CHANGELOG.md +++ b/services/preview/subscription/mgmt/2019-10-01-preview/subscription/CHANGELOG.md @@ -1,2 +1,13 @@ # Change History +## Additive Changes + +### New Funcs + +1. CanceledSubscriptionID.MarshalJSON() ([]byte, error) +1. EnabledSubscriptionID.MarshalJSON() ([]byte, error) +1. Location.MarshalJSON() ([]byte, error) +1. Policies.MarshalJSON() ([]byte, error) +1. PutAliasListResult.MarshalJSON() ([]byte, error) +1. RenamedSubscriptionID.MarshalJSON() ([]byte, error) +1. TenantIDDescription.MarshalJSON() ([]byte, error) diff --git a/services/preview/subscription/mgmt/2019-10-01-preview/subscription/_meta.json b/services/preview/subscription/mgmt/2019-10-01-preview/subscription/_meta.json index 7da99c986d34..f9ac679a0d91 100644 --- a/services/preview/subscription/mgmt/2019-10-01-preview/subscription/_meta.json +++ b/services/preview/subscription/mgmt/2019-10-01-preview/subscription/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/subscription/resource-manager/readme.md", "tag": "package-2019-10-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-10-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/subscription/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-10-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/subscription/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/subscription/mgmt/2019-10-01-preview/subscription/models.go b/services/preview/subscription/mgmt/2019-10-01-preview/subscription/models.go index b96eed92d44f..2fbfb9a255d1 100644 --- a/services/preview/subscription/mgmt/2019-10-01-preview/subscription/models.go +++ b/services/preview/subscription/mgmt/2019-10-01-preview/subscription/models.go @@ -32,6 +32,12 @@ type CanceledSubscriptionID struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CanceledSubscriptionID. +func (csi CanceledSubscriptionID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CreateAliasFuture an abstraction for monitoring and retrieving the results of a long-running operation. type CreateAliasFuture struct { azure.FutureAPI @@ -252,6 +258,12 @@ type EnabledSubscriptionID struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for EnabledSubscriptionID. +func (esi EnabledSubscriptionID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse describes the format of Error response. type ErrorResponse struct { // Code - Error code @@ -442,6 +454,12 @@ type Location struct { Longitude *string `json:"longitude,omitempty"` } +// MarshalJSON is the custom marshaler for Location. +func (l Location) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LocationListResult location list operation response. type LocationListResult struct { autorest.Response `json:"-"` @@ -572,6 +590,12 @@ type Policies struct { SpendingLimit SpendingLimit `json:"spendingLimit,omitempty"` } +// MarshalJSON is the custom marshaler for Policies. +func (p Policies) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PutAliasListResult the list of aliases. type PutAliasListResult struct { autorest.Response `json:"-"` @@ -581,6 +605,12 @@ type PutAliasListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PutAliasListResult. +func (palr PutAliasListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PutAliasRequest the parameters required to create a new subscription. type PutAliasRequest struct { // Properties - Put alias request properties. @@ -645,6 +675,12 @@ type RenamedSubscriptionID struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for RenamedSubscriptionID. +func (rsi RenamedSubscriptionID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TenantIDDescription tenant Id information. type TenantIDDescription struct { // ID - READ-ONLY; The fully qualified ID of the tenant. For example, /tenants/00000000-0000-0000-0000-000000000000. @@ -653,6 +689,12 @@ type TenantIDDescription struct { TenantID *string `json:"tenantId,omitempty"` } +// MarshalJSON is the custom marshaler for TenantIDDescription. +func (tid TenantIDDescription) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TenantListResult tenant Ids information. type TenantListResult struct { autorest.Response `json:"-"` diff --git a/services/preview/support/mgmt/2019-05-01-preview/support/CHANGELOG.md b/services/preview/support/mgmt/2019-05-01-preview/support/CHANGELOG.md index 52911e4cc5e4..f47f3fe05f44 100644 --- a/services/preview/support/mgmt/2019-05-01-preview/support/CHANGELOG.md +++ b/services/preview/support/mgmt/2019-05-01-preview/support/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. CheckNameAvailabilityOutput.MarshalJSON() ([]byte, error) +1. Engineer.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. ServiceLevelAgreement.MarshalJSON() ([]byte, error) diff --git a/services/preview/support/mgmt/2019-05-01-preview/support/_meta.json b/services/preview/support/mgmt/2019-05-01-preview/support/_meta.json index ae72721b428b..83221c07a77b 100644 --- a/services/preview/support/mgmt/2019-05-01-preview/support/_meta.json +++ b/services/preview/support/mgmt/2019-05-01-preview/support/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/support/resource-manager/readme.md", "tag": "package-2019-05-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-05-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/support/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-05-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/support/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/support/mgmt/2019-05-01-preview/support/models.go b/services/preview/support/mgmt/2019-05-01-preview/support/models.go index be4706370bd1..7cc994ea1796 100644 --- a/services/preview/support/mgmt/2019-05-01-preview/support/models.go +++ b/services/preview/support/mgmt/2019-05-01-preview/support/models.go @@ -39,6 +39,12 @@ type CheckNameAvailabilityOutput struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityOutput. +func (cnao CheckNameAvailabilityOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CommunicationDetails object that represents Communication resource type CommunicationDetails struct { autorest.Response `json:"-"` @@ -373,6 +379,12 @@ type Engineer struct { EmailAddress *string `json:"emailAddress,omitempty"` } +// MarshalJSON is the custom marshaler for Engineer. +func (e Engineer) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExceptionResponse the api error. type ExceptionResponse struct { // Error - The api error details. @@ -408,6 +420,12 @@ type OperationDisplay struct { Resource *string `json:"resource,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationsListResult the list of operations supported by Microsoft Support resource provider. type OperationsListResult struct { autorest.Response `json:"-"` @@ -651,6 +669,12 @@ type ServiceLevelAgreement struct { SLAMinutes *int32 `json:"slaMinutes,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceLevelAgreement. +func (SLA ServiceLevelAgreement) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceProperties details about Azure service available for support ticket creation type ServiceProperties struct { // DisplayName - Localized name of Azure service diff --git a/services/preview/synapse/2019-06-01-preview/artifacts/CHANGELOG.md b/services/preview/synapse/2019-06-01-preview/artifacts/CHANGELOG.md index 52911e4cc5e4..167f1b2b8807 100644 --- a/services/preview/synapse/2019-06-01-preview/artifacts/CHANGELOG.md +++ b/services/preview/synapse/2019-06-01-preview/artifacts/CHANGELOG.md @@ -1,2 +1,16 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. ExposureControlResponse.MarshalJSON() ([]byte, error) +1. PipelineRunInvokedBy.MarshalJSON() ([]byte, error) +1. PrivateEndpoint.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. SubResource.MarshalJSON() ([]byte, error) +1. TriggerSubscriptionOperationStatus.MarshalJSON() ([]byte, error) diff --git a/services/preview/synapse/2019-06-01-preview/artifacts/_meta.json b/services/preview/synapse/2019-06-01-preview/artifacts/_meta.json index c6efccbe5c67..97fb5c4f8c29 100644 --- a/services/preview/synapse/2019-06-01-preview/artifacts/_meta.json +++ b/services/preview/synapse/2019-06-01-preview/artifacts/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/synapse/data-plane/readme.md", "tag": "package-artifacts-2019-06-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-artifacts-2019-06-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/synapse/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-artifacts-2019-06-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/synapse/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/synapse/2019-06-01-preview/artifacts/models.go b/services/preview/synapse/2019-06-01-preview/artifacts/models.go index 23291c864f6d..ebb2dfe1a72e 100644 --- a/services/preview/synapse/2019-06-01-preview/artifacts/models.go +++ b/services/preview/synapse/2019-06-01-preview/artifacts/models.go @@ -18250,6 +18250,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureFileStorageLinkedService azure File Storage linked service. type AzureFileStorageLinkedService struct { // AzureFileStorageLinkedServiceTypeProperties - Azure File Storage linked service properties. @@ -79960,6 +79966,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorContract contains details when the response code indicates an error. type ErrorContract struct { // Error - The error details. @@ -79981,6 +79993,12 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EvaluateDataFlowExpressionRequest request body structure for data flow expression preview. type EvaluateDataFlowExpressionRequest struct { // SessionID - The ID of data flow debug session. @@ -81717,6 +81735,12 @@ type ExposureControlResponse struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ExposureControlResponse. +func (ecr ExposureControlResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Expression azure Synapse expression definition. type Expression struct { // Type - Expression type. @@ -151096,6 +151120,12 @@ type PipelineRunInvokedBy struct { InvokedByType *string `json:"invokedByType,omitempty"` } +// MarshalJSON is the custom marshaler for PipelineRunInvokedBy. +func (prib PipelineRunInvokedBy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PipelineRunsQueryResponse a list pipeline runs. type PipelineRunsQueryResponse struct { autorest.Response `json:"-"` @@ -154947,6 +154977,12 @@ type PrivateEndpoint struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpoint. +func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection a private endpoint connection type PrivateEndpointConnection struct { // PrivateEndpointConnectionProperties - Private endpoint connection properties. @@ -155074,6 +155110,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PurviewConfiguration purview Configuration type PurviewConfiguration struct { // PurviewResourceID - Purview Resource ID @@ -158766,6 +158808,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResponsysLinkedService responsys linked service. type ResponsysLinkedService struct { // ResponsysLinkedServiceTypeProperties - Responsys linked service properties. @@ -198660,6 +198708,12 @@ type SubResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for SubResource. +func (sr SubResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SubResourceDebugResource azure Synapse nested debug resource. type SubResourceDebugResource struct { // Name - The resource name. @@ -205837,6 +205891,12 @@ type TriggerSubscriptionOperationStatus struct { Status EventSubscriptionStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for TriggerSubscriptionOperationStatus. +func (tsos TriggerSubscriptionOperationStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TriggerUnsubscribeTriggerFromEventsFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type TriggerUnsubscribeTriggerFromEventsFuture struct { diff --git a/services/preview/synapse/2019-06-01-preview/managedvirtualnetwork/_meta.json b/services/preview/synapse/2019-06-01-preview/managedvirtualnetwork/_meta.json index 01fc1c964e9c..ac02acc55c76 100644 --- a/services/preview/synapse/2019-06-01-preview/managedvirtualnetwork/_meta.json +++ b/services/preview/synapse/2019-06-01-preview/managedvirtualnetwork/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/synapse/data-plane/readme.md", "tag": "package-vnet-2019-06-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-vnet-2019-06-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/synapse/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-vnet-2019-06-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/synapse/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/synapse/2019-11-01-preview/monitoring/_meta.json b/services/preview/synapse/2019-11-01-preview/monitoring/_meta.json index 5d7f4e1ea59f..08189ef972e9 100644 --- a/services/preview/synapse/2019-11-01-preview/monitoring/_meta.json +++ b/services/preview/synapse/2019-11-01-preview/monitoring/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/synapse/data-plane/readme.md", "tag": "package-monitoring-2019-11-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-monitoring-2019-11-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/synapse/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-monitoring-2019-11-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/synapse/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/synapse/2019-11-01-preview/spark/_meta.json b/services/preview/synapse/2019-11-01-preview/spark/_meta.json index 39aefd3d96aa..9cc05fe8e4a6 100644 --- a/services/preview/synapse/2019-11-01-preview/spark/_meta.json +++ b/services/preview/synapse/2019-11-01-preview/spark/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/synapse/data-plane/readme.md", "tag": "package-spark-2019-11-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-spark-2019-11-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/synapse/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-spark-2019-11-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/synapse/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/synapse/2020-02-01-preview/accesscontrol/_meta.json b/services/preview/synapse/2020-02-01-preview/accesscontrol/_meta.json index 6f40c51939b6..b5a09ee7fa82 100644 --- a/services/preview/synapse/2020-02-01-preview/accesscontrol/_meta.json +++ b/services/preview/synapse/2020-02-01-preview/accesscontrol/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/synapse/data-plane/readme.md", "tag": "package-access-control-2020-02-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-access-control-2020-02-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/synapse/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-access-control-2020-02-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/synapse/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/synapse/2020-08-01-preview/accesscontrol/_meta.json b/services/preview/synapse/2020-08-01-preview/accesscontrol/_meta.json index 6bf406816942..16effabed8d0 100644 --- a/services/preview/synapse/2020-08-01-preview/accesscontrol/_meta.json +++ b/services/preview/synapse/2020-08-01-preview/accesscontrol/_meta.json @@ -2,9 +2,9 @@ "commit": "a1eee0489c374782a934ec1f093abd16fa7718ca", "readme": "/_/azure-rest-api-specs/specification/synapse/data-plane/readme.md", "tag": "package-access-control-2020-08-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-access-control-2020-08-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/synapse/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-access-control-2020-08-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/synapse/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/CHANGELOG.md b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/CHANGELOG.md index 52911e4cc5e4..4c29ac19d625 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/CHANGELOG.md +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/CHANGELOG.md @@ -1,2 +1,58 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. DataWarehouseUserActivitiesProperties.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. ExtendedSQLPoolBlobAuditingPolicyListResult.MarshalJSON() ([]byte, error) +1. ExtendedServerBlobAuditingPolicyListResult.MarshalJSON() ([]byte, error) +1. IntegrationRuntimeNodeIPAddress.MarshalJSON() ([]byte, error) +1. LinkedIntegrationRuntime.MarshalJSON() ([]byte, error) +1. ListSQLPoolSecurityAlertPolicies.MarshalJSON() ([]byte, error) +1. ManagedIntegrationRuntimeError.MarshalJSON() ([]byte, error) +1. ManagedIntegrationRuntimeOperationResult.MarshalJSON() ([]byte, error) +1. ManagedIntegrationRuntimeStatusTypeProperties.MarshalJSON() ([]byte, error) +1. PrivateEndpoint.MarshalJSON() ([]byte, error) +1. PrivateEndpointConnectionList.MarshalJSON() ([]byte, error) +1. PrivateLinkResource.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceListResult.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. QueryInterval.MarshalJSON() ([]byte, error) +1. QueryMetric.MarshalJSON() ([]byte, error) +1. QueryStatistic.MarshalJSON() ([]byte, error) +1. RecoverableSQLPoolListResult.MarshalJSON() ([]byte, error) +1. RecoverableSQLPoolProperties.MarshalJSON() ([]byte, error) +1. ReplicationLinkProperties.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. RestorableDroppedSQLPoolProperties.MarshalJSON() ([]byte, error) +1. RestorePointListResult.MarshalJSON() ([]byte, error) +1. RestorePointProperties.MarshalJSON() ([]byte, error) +1. SQLPoolBlobAuditingPolicyListResult.MarshalJSON() ([]byte, error) +1. SQLPoolBlobAuditingPolicySQLPoolOperationListResult.MarshalJSON() ([]byte, error) +1. SQLPoolColumnListResult.MarshalJSON() ([]byte, error) +1. SQLPoolOperationProperties.MarshalJSON() ([]byte, error) +1. SQLPoolSchema.MarshalJSON() ([]byte, error) +1. SQLPoolSchemaListResult.MarshalJSON() ([]byte, error) +1. SQLPoolTable.MarshalJSON() ([]byte, error) +1. SQLPoolTableListResult.MarshalJSON() ([]byte, error) +1. SQLPoolUsage.MarshalJSON() ([]byte, error) +1. SQLPoolVulnerabilityAssessmentListResult.MarshalJSON() ([]byte, error) +1. SQLPoolVulnerabilityAssessmentScanExportProperties.MarshalJSON() ([]byte, error) +1. SensitivityLabelListResult.MarshalJSON() ([]byte, error) +1. ServerBlobAuditingPolicyListResult.MarshalJSON() ([]byte, error) +1. ServerSecurityAlertPolicyListResult.MarshalJSON() ([]byte, error) +1. ServerUsage.MarshalJSON() ([]byte, error) +1. ServerVulnerabilityAssessmentListResult.MarshalJSON() ([]byte, error) +1. SubResource.MarshalJSON() ([]byte, error) +1. TopQueries.MarshalJSON() ([]byte, error) +1. TransparentDataEncryptionListResult.MarshalJSON() ([]byte, error) +1. VulnerabilityAssessmentScanError.MarshalJSON() ([]byte, error) +1. VulnerabilityAssessmentScanRecordListResult.MarshalJSON() ([]byte, error) +1. VulnerabilityAssessmentScanRecordProperties.MarshalJSON() ([]byte, error) +1. WorkloadClassifierListResult.MarshalJSON() ([]byte, error) +1. WorkloadGroupListResult.MarshalJSON() ([]byte, error) diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/_meta.json b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/_meta.json index 98a0955895c9..cf7c9b98bab5 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/_meta.json +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/_meta.json @@ -2,9 +2,9 @@ "commit": "3a3a9452f965a227ce43e6b545035b99dd175f23", "readme": "/_/azure-rest-api-specs/specification/synapse/resource-manager/readme.md", "tag": "package-2019-06-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-06-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/synapse/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-06-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/synapse/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/models.go b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/models.go index f8a16441591e..595b1d3d4c96 100644 --- a/services/preview/synapse/mgmt/2019-06-01-preview/synapse/models.go +++ b/services/preview/synapse/mgmt/2019-06-01-preview/synapse/models.go @@ -170,6 +170,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BigDataPoolPatchInfo properties patch for a Big Data pool type BigDataPoolPatchInfo struct { // Tags - Updated tags for the Big Data pool @@ -1353,6 +1359,12 @@ type DataWarehouseUserActivitiesProperties struct { ActiveQueriesCount *int32 `json:"activeQueriesCount,omitempty"` } +// MarshalJSON is the custom marshaler for DataWarehouseUserActivitiesProperties. +func (dwuap DataWarehouseUserActivitiesProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EncryptionDetails details of the encryption associated with the workspace type EncryptionDetails struct { // DoubleEncryptionEnabled - READ-ONLY; Double Encryption enabled @@ -1473,6 +1485,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorContract contains details when the response code indicates an error. type ErrorContract struct { // Error - The error details. @@ -1504,6 +1522,12 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExtendedServerBlobAuditingPolicy an extended server blob auditing policy. type ExtendedServerBlobAuditingPolicy struct { autorest.Response `json:"-"` @@ -1586,6 +1610,12 @@ type ExtendedServerBlobAuditingPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ExtendedServerBlobAuditingPolicyListResult. +func (esbaplr ExtendedServerBlobAuditingPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExtendedServerBlobAuditingPolicyListResultIterator provides access to a complete listing of // ExtendedServerBlobAuditingPolicy values. type ExtendedServerBlobAuditingPolicyListResultIterator struct { @@ -1916,6 +1946,12 @@ type ExtendedSQLPoolBlobAuditingPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ExtendedSQLPoolBlobAuditingPolicyListResult. +func (espbaplr ExtendedSQLPoolBlobAuditingPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExtendedSQLPoolBlobAuditingPolicyListResultIterator provides access to a complete listing of // ExtendedSQLPoolBlobAuditingPolicy values. type ExtendedSQLPoolBlobAuditingPolicyListResultIterator struct { @@ -2952,6 +2988,12 @@ type IntegrationRuntimeNodeIPAddress struct { IPAddress *string `json:"ipAddress,omitempty"` } +// MarshalJSON is the custom marshaler for IntegrationRuntimeNodeIPAddress. +func (irnia IntegrationRuntimeNodeIPAddress) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IntegrationRuntimeNodeMonitoringData monitoring data for integration runtime node. type IntegrationRuntimeNodeMonitoringData struct { // AdditionalProperties - Unmatched properties from the message are deserialized this collection @@ -4647,6 +4689,12 @@ type LinkedIntegrationRuntime struct { CreateTime *date.Time `json:"createTime,omitempty"` } +// MarshalJSON is the custom marshaler for LinkedIntegrationRuntime. +func (lir LinkedIntegrationRuntime) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LinkedIntegrationRuntimeKeyAuthorization the key authorization type integration runtime. type LinkedIntegrationRuntimeKeyAuthorization struct { // Key - The key used for authorization. @@ -4829,6 +4877,12 @@ type ListSQLPoolSecurityAlertPolicies struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListSQLPoolSecurityAlertPolicies. +func (lspsap ListSQLPoolSecurityAlertPolicies) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListSQLPoolSecurityAlertPoliciesIterator provides access to a complete listing of // SQLPoolSecurityAlertPolicy values. type ListSQLPoolSecurityAlertPoliciesIterator struct { @@ -5225,6 +5279,12 @@ type ManagedIntegrationRuntimeError struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedIntegrationRuntimeError. +func (mire ManagedIntegrationRuntimeError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedIntegrationRuntimeNode properties of integration runtime node. type ManagedIntegrationRuntimeNode struct { // NodeID - READ-ONLY; The managed integration runtime node id. @@ -5260,6 +5320,12 @@ type ManagedIntegrationRuntimeOperationResult struct { ActivityID *string `json:"activityId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedIntegrationRuntimeOperationResult. +func (miror ManagedIntegrationRuntimeOperationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedIntegrationRuntimeStatus managed integration runtime status. type ManagedIntegrationRuntimeStatus struct { // ManagedIntegrationRuntimeStatusTypeProperties - Managed integration runtime status type properties. @@ -5385,6 +5451,12 @@ type ManagedIntegrationRuntimeStatusTypeProperties struct { LastOperation *ManagedIntegrationRuntimeOperationResult `json:"lastOperation,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedIntegrationRuntimeStatusTypeProperties. +func (mirstp ManagedIntegrationRuntimeStatusTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedIntegrationRuntimeTypeProperties managed integration runtime type properties. type ManagedIntegrationRuntimeTypeProperties struct { // ComputeProperties - The compute resource for managed integration runtime. @@ -5571,6 +5643,12 @@ type PrivateEndpoint struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpoint. +func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection a private endpoint connection type PrivateEndpointConnection struct { autorest.Response `json:"-"` @@ -5938,6 +6016,12 @@ type PrivateEndpointConnectionList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpointConnectionList. +func (pecl PrivateEndpointConnectionList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnectionListIterator provides access to a complete listing of PrivateEndpointConnection // values. type PrivateEndpointConnectionListIterator struct { @@ -6539,6 +6623,12 @@ type PrivateLinkResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResource. +func (plr PrivateLinkResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkResourceListResult a list of private link resources type PrivateLinkResourceListResult struct { autorest.Response `json:"-"` @@ -6548,6 +6638,12 @@ type PrivateLinkResourceListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceListResult. +func (plrlr PrivateLinkResourceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkResourceListResultIterator provides access to a complete listing of PrivateLinkResource // values. type PrivateLinkResourceListResultIterator struct { @@ -6709,6 +6805,12 @@ type PrivateLinkResourceProperties struct { RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. +func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkServiceConnectionState connection state details of the private endpoint type PrivateLinkServiceConnectionState struct { // Status - The private link service connection status. @@ -6742,6 +6844,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PurviewConfiguration purview Configuration type PurviewConfiguration struct { // PurviewResourceID - Purview Resource ID @@ -6758,6 +6866,12 @@ type QueryInterval struct { Metrics *[]QueryMetric `json:"metrics,omitempty"` } +// MarshalJSON is the custom marshaler for QueryInterval. +func (qi QueryInterval) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QueryMetric a database query. type QueryMetric struct { // Name - READ-ONLY; The name of the metric @@ -6770,6 +6884,12 @@ type QueryMetric struct { Value *float64 `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for QueryMetric. +func (qm QueryMetric) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QueryStatistic a database query. type QueryStatistic struct { // QueryID - READ-ONLY; The id of the query @@ -6778,6 +6898,12 @@ type QueryStatistic struct { Intervals *[]QueryInterval `json:"intervals,omitempty"` } +// MarshalJSON is the custom marshaler for QueryStatistic. +func (qs QueryStatistic) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RecoverableSQLPool a recoverable sql pool type RecoverableSQLPool struct { autorest.Response `json:"-"` @@ -6860,6 +6986,12 @@ type RecoverableSQLPoolListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RecoverableSQLPoolListResult. +func (rsplr RecoverableSQLPoolListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RecoverableSQLPoolListResultIterator provides access to a complete listing of RecoverableSQLPool values. type RecoverableSQLPoolListResultIterator struct { i int @@ -7022,6 +7154,12 @@ type RecoverableSQLPoolProperties struct { LastAvailableBackupDate *date.Time `json:"lastAvailableBackupDate,omitempty"` } +// MarshalJSON is the custom marshaler for RecoverableSQLPoolProperties. +func (rspp RecoverableSQLPoolProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReplaceAllFirewallRulesOperationResponse an existing operation for replacing the firewall rules type ReplaceAllFirewallRulesOperationResponse struct { autorest.Response `json:"-"` @@ -7320,6 +7458,12 @@ type ReplicationLinkProperties struct { ReplicationState ReplicationState `json:"replicationState,omitempty"` } +// MarshalJSON is the custom marshaler for ReplicationLinkProperties. +func (rlp ReplicationLinkProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -7330,6 +7474,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorableDroppedSQLPool a restorable dropped Sql pool type RestorableDroppedSQLPool struct { autorest.Response `json:"-"` @@ -7441,6 +7591,12 @@ type RestorableDroppedSQLPoolProperties struct { EarliestRestoreDate *date.Time `json:"earliestRestoreDate,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableDroppedSQLPoolProperties. +func (rdspp RestorableDroppedSQLPoolProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorePoint database restore points. type RestorePoint struct { autorest.Response `json:"-"` @@ -7534,6 +7690,12 @@ type RestorePointListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RestorePointListResult. +func (rplr RestorePointListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorePointListResultIterator provides access to a complete listing of RestorePoint values. type RestorePointListResultIterator struct { i int @@ -7696,6 +7858,12 @@ type RestorePointProperties struct { RestorePointLabel *string `json:"restorePointLabel,omitempty"` } +// MarshalJSON is the custom marshaler for RestorePointProperties. +func (rpp RestorePointProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicSecretBase the base definition of a secret type. type BasicSecretBase interface { AsSecureString() (*SecureString, bool) @@ -8280,6 +8448,12 @@ type SensitivityLabelListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SensitivityLabelListResult. +func (sllr SensitivityLabelListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SensitivityLabelListResultIterator provides access to a complete listing of SensitivityLabel values. type SensitivityLabelListResultIterator struct { i int @@ -8544,6 +8718,12 @@ type ServerBlobAuditingPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ServerBlobAuditingPolicyListResult. +func (sbaplr ServerBlobAuditingPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerBlobAuditingPolicyListResultIterator provides access to a complete listing of // ServerBlobAuditingPolicy values. type ServerBlobAuditingPolicyListResultIterator struct { @@ -8872,6 +9052,12 @@ type ServerSecurityAlertPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ServerSecurityAlertPolicyListResult. +func (ssaplr ServerSecurityAlertPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerSecurityAlertPolicyListResultIterator provides access to a complete listing of // ServerSecurityAlertPolicy values. type ServerSecurityAlertPolicyListResultIterator struct { @@ -9088,6 +9274,12 @@ type ServerUsage struct { NextResetTime *date.Time `json:"nextResetTime,omitempty"` } +// MarshalJSON is the custom marshaler for ServerUsage. +func (su ServerUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerUsageListResult represents the response to a list server metrics request. type ServerUsageListResult struct { autorest.Response `json:"-"` @@ -9338,6 +9530,12 @@ type ServerVulnerabilityAssessmentListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ServerVulnerabilityAssessmentListResult. +func (svalr ServerVulnerabilityAssessmentListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerVulnerabilityAssessmentListResultIterator provides access to a complete listing of // ServerVulnerabilityAssessment values. type ServerVulnerabilityAssessmentListResultIterator struct { @@ -9725,6 +9923,12 @@ type SQLPoolBlobAuditingPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SQLPoolBlobAuditingPolicyListResult. +func (spbaplr SQLPoolBlobAuditingPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLPoolBlobAuditingPolicyListResultIterator provides access to a complete listing of // SQLPoolBlobAuditingPolicy values. type SQLPoolBlobAuditingPolicyListResultIterator struct { @@ -9971,6 +10175,12 @@ type SQLPoolBlobAuditingPolicySQLPoolOperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SQLPoolBlobAuditingPolicySQLPoolOperationListResult. +func (spbapspolr SQLPoolBlobAuditingPolicySQLPoolOperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLPoolBlobAuditingPolicySQLPoolOperationListResultIterator provides access to a complete listing of // SQLPoolOperation values. type SQLPoolBlobAuditingPolicySQLPoolOperationListResultIterator struct { @@ -10204,6 +10414,12 @@ type SQLPoolColumnListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SQLPoolColumnListResult. +func (spclr SQLPoolColumnListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLPoolColumnListResultIterator provides access to a complete listing of SQLPoolColumn values. type SQLPoolColumnListResultIterator struct { i int @@ -10736,6 +10952,12 @@ type SQLPoolOperationProperties struct { IsCancellable *bool `json:"isCancellable,omitempty"` } +// MarshalJSON is the custom marshaler for SQLPoolOperationProperties. +func (spop SQLPoolOperationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLPoolPatchInfo a SQL Analytics pool patch info type SQLPoolPatchInfo struct { // Tags - Resource tags. @@ -10893,6 +11115,12 @@ type SQLPoolSchema struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for SQLPoolSchema. +func (sps SQLPoolSchema) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLPoolSchemaListResult a list of Sql pool schemas. type SQLPoolSchemaListResult struct { autorest.Response `json:"-"` @@ -10902,6 +11130,12 @@ type SQLPoolSchemaListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SQLPoolSchemaListResult. +func (spslr SQLPoolSchemaListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLPoolSchemaListResultIterator provides access to a complete listing of SQLPoolSchema values. type SQLPoolSchemaListResultIterator struct { i int @@ -11308,6 +11542,12 @@ type SQLPoolTable struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for SQLPoolTable. +func (spt SQLPoolTable) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLPoolTableListResult a list of Sql pool tables. type SQLPoolTableListResult struct { autorest.Response `json:"-"` @@ -11317,6 +11557,12 @@ type SQLPoolTableListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SQLPoolTableListResult. +func (sptlr SQLPoolTableListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLPoolTableListResultIterator provides access to a complete listing of SQLPoolTable values. type SQLPoolTableListResultIterator struct { i int @@ -11485,6 +11731,12 @@ type SQLPoolUsage struct { NextResetTime *date.Time `json:"nextResetTime,omitempty"` } +// MarshalJSON is the custom marshaler for SQLPoolUsage. +func (spu SQLPoolUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLPoolUsageListResult the response to a list Sql pool usages request. type SQLPoolUsageListResult struct { autorest.Response `json:"-"` @@ -11735,6 +11987,12 @@ type SQLPoolVulnerabilityAssessmentListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SQLPoolVulnerabilityAssessmentListResult. +func (spvalr SQLPoolVulnerabilityAssessmentListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLPoolVulnerabilityAssessmentListResultIterator provides access to a complete listing of // SQLPoolVulnerabilityAssessment values. type SQLPoolVulnerabilityAssessmentListResultIterator struct { @@ -11991,6 +12249,12 @@ type SQLPoolVulnerabilityAssessmentScanExportProperties struct { ExportedReportLocation *string `json:"exportedReportLocation,omitempty"` } +// MarshalJSON is the custom marshaler for SQLPoolVulnerabilityAssessmentScanExportProperties. +func (spvasep SQLPoolVulnerabilityAssessmentScanExportProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLPoolVulnerabilityAssessmentScansExport a Sql pool Vulnerability Assessment scan export resource. type SQLPoolVulnerabilityAssessmentScansExport struct { autorest.Response `json:"-"` @@ -12798,6 +13062,12 @@ type SubResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for SubResource. +func (sr SubResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TopQueries a database query. type TopQueries struct { // AggregationFunction - READ-ONLY; The function that is used to aggregate each query's metrics. Possible values include: 'Min', 'Max', 'Avg', 'Sum' @@ -12818,6 +13088,12 @@ type TopQueries struct { Queries *[]QueryStatistic `json:"queries,omitempty"` } +// MarshalJSON is the custom marshaler for TopQueries. +func (tq TopQueries) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TopQueriesListResult represents the response to a get top queries request. type TopQueriesListResult struct { // Value - The list of top queries. @@ -12944,6 +13220,12 @@ type TransparentDataEncryptionListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for TransparentDataEncryptionListResult. +func (tdelr TransparentDataEncryptionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TransparentDataEncryptionListResultIterator provides access to a complete listing of // TransparentDataEncryption values. type TransparentDataEncryptionListResultIterator struct { @@ -13140,6 +13422,12 @@ type VulnerabilityAssessmentScanError struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for VulnerabilityAssessmentScanError. +func (vase VulnerabilityAssessmentScanError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VulnerabilityAssessmentScanRecord a vulnerability assessment scan record. type VulnerabilityAssessmentScanRecord struct { autorest.Response `json:"-"` @@ -13222,6 +13510,12 @@ type VulnerabilityAssessmentScanRecordListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for VulnerabilityAssessmentScanRecordListResult. +func (vasrlr VulnerabilityAssessmentScanRecordListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VulnerabilityAssessmentScanRecordListResultIterator provides access to a complete listing of // VulnerabilityAssessmentScanRecord values. type VulnerabilityAssessmentScanRecordListResultIterator struct { @@ -13394,6 +13688,12 @@ type VulnerabilityAssessmentScanRecordProperties struct { NumberOfFailedSecurityChecks *int32 `json:"numberOfFailedSecurityChecks,omitempty"` } +// MarshalJSON is the custom marshaler for VulnerabilityAssessmentScanRecordProperties. +func (vasrp VulnerabilityAssessmentScanRecordProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WorkloadClassifier workload classifier operations for a data warehouse type WorkloadClassifier struct { autorest.Response `json:"-"` @@ -13476,6 +13776,12 @@ type WorkloadClassifierListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for WorkloadClassifierListResult. +func (wclr WorkloadClassifierListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WorkloadClassifierListResultIterator provides access to a complete listing of WorkloadClassifier values. type WorkloadClassifierListResultIterator struct { i int @@ -13725,6 +14031,12 @@ type WorkloadGroupListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for WorkloadGroupListResult. +func (wglr WorkloadGroupListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WorkloadGroupListResultIterator provides access to a complete listing of WorkloadGroup values. type WorkloadGroupListResultIterator struct { i int diff --git a/services/preview/timeseriesinsights/mgmt/2017-02-28-preview/timeseriesinsights/CHANGELOG.md b/services/preview/timeseriesinsights/mgmt/2017-02-28-preview/timeseriesinsights/CHANGELOG.md index 52911e4cc5e4..46dcda8eaaf2 100644 --- a/services/preview/timeseriesinsights/mgmt/2017-02-28-preview/timeseriesinsights/CHANGELOG.md +++ b/services/preview/timeseriesinsights/mgmt/2017-02-28-preview/timeseriesinsights/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. Operation.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ResourceProperties.MarshalJSON() ([]byte, error) diff --git a/services/preview/timeseriesinsights/mgmt/2017-02-28-preview/timeseriesinsights/_meta.json b/services/preview/timeseriesinsights/mgmt/2017-02-28-preview/timeseriesinsights/_meta.json index 6dbe73242140..5e16e52d73a0 100644 --- a/services/preview/timeseriesinsights/mgmt/2017-02-28-preview/timeseriesinsights/_meta.json +++ b/services/preview/timeseriesinsights/mgmt/2017-02-28-preview/timeseriesinsights/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/timeseriesinsights/resource-manager/readme.md", "tag": "package-2017-02-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-02-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/timeseriesinsights/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-02-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/timeseriesinsights/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/timeseriesinsights/mgmt/2017-02-28-preview/timeseriesinsights/models.go b/services/preview/timeseriesinsights/mgmt/2017-02-28-preview/timeseriesinsights/models.go index ae860ef84677..f492caf36aba 100644 --- a/services/preview/timeseriesinsights/mgmt/2017-02-28-preview/timeseriesinsights/models.go +++ b/services/preview/timeseriesinsights/mgmt/2017-02-28-preview/timeseriesinsights/models.go @@ -1830,6 +1830,12 @@ type Operation struct { Display *OperationDisplay `json:"display,omitempty"` } +// MarshalJSON is the custom marshaler for Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationDisplay contains the localized display information for this particular operation / action. type OperationDisplay struct { // Provider - READ-ONLY; The localized friendly form of the resource provider name. @@ -1842,6 +1848,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of the request to list Time Series Insights operations. It contains a list of // operations and a URL link to get the next set of results. type OperationListResult struct { @@ -1852,6 +1864,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -2237,6 +2255,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceProperties properties that are common to all tracked resources. type ResourceProperties struct { // ProvisioningState - READ-ONLY; Provisioning state of the resource. Possible values include: 'Accepted', 'Creating', 'Updating', 'Succeeded', 'Failed', 'Deleting' @@ -2245,6 +2269,12 @@ type ResourceProperties struct { CreationTime *date.Time `json:"creationTime,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceProperties. +func (rp ResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Sku the sku determines the capacity of the environment, the SLA (in queries-per-minute and total // capacity), and the billing rate. type Sku struct { diff --git a/services/preview/timeseriesinsights/mgmt/2018-08-15-preview/timeseriesinsights/CHANGELOG.md b/services/preview/timeseriesinsights/mgmt/2018-08-15-preview/timeseriesinsights/CHANGELOG.md index 52911e4cc5e4..1d8701aa6b6a 100644 --- a/services/preview/timeseriesinsights/mgmt/2018-08-15-preview/timeseriesinsights/CHANGELOG.md +++ b/services/preview/timeseriesinsights/mgmt/2018-08-15-preview/timeseriesinsights/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. Operation.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/timeseriesinsights/mgmt/2018-08-15-preview/timeseriesinsights/_meta.json b/services/preview/timeseriesinsights/mgmt/2018-08-15-preview/timeseriesinsights/_meta.json index 07c66ea8da17..c3c03ff4eaaa 100644 --- a/services/preview/timeseriesinsights/mgmt/2018-08-15-preview/timeseriesinsights/_meta.json +++ b/services/preview/timeseriesinsights/mgmt/2018-08-15-preview/timeseriesinsights/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/timeseriesinsights/resource-manager/readme.md", "tag": "package-2018-08-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-08-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/timeseriesinsights/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-08-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/timeseriesinsights/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/timeseriesinsights/mgmt/2018-08-15-preview/timeseriesinsights/models.go b/services/preview/timeseriesinsights/mgmt/2018-08-15-preview/timeseriesinsights/models.go index 8a5a4ff43370..5d4938e9b14a 100644 --- a/services/preview/timeseriesinsights/mgmt/2018-08-15-preview/timeseriesinsights/models.go +++ b/services/preview/timeseriesinsights/mgmt/2018-08-15-preview/timeseriesinsights/models.go @@ -2307,6 +2307,12 @@ type Operation struct { Display *OperationDisplay `json:"display,omitempty"` } +// MarshalJSON is the custom marshaler for Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationDisplay contains the localized display information for this particular operation / action. type OperationDisplay struct { // Provider - READ-ONLY; The localized friendly form of the resource provider name. @@ -2319,6 +2325,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of the request to list Time Series Insights operations. It contains a list of // operations and a URL link to get the next set of results. type OperationListResult struct { @@ -2329,6 +2341,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -2724,6 +2742,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceProperties properties that are common to all tracked resources. type ResourceProperties struct { // ProvisioningState - Provisioning state of the resource. Possible values include: 'Accepted', 'Creating', 'Updating', 'Succeeded', 'Failed', 'Deleting' diff --git a/services/preview/trafficmanager/mgmt/2017-09-01-preview/trafficmanager/CHANGELOG.md b/services/preview/trafficmanager/mgmt/2017-09-01-preview/trafficmanager/CHANGELOG.md index 52911e4cc5e4..43dde23907ad 100644 --- a/services/preview/trafficmanager/mgmt/2017-09-01-preview/trafficmanager/CHANGELOG.md +++ b/services/preview/trafficmanager/mgmt/2017-09-01-preview/trafficmanager/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. DeleteOperationResult.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/trafficmanager/mgmt/2017-09-01-preview/trafficmanager/_meta.json b/services/preview/trafficmanager/mgmt/2017-09-01-preview/trafficmanager/_meta.json index 86fef42bdc38..c7ea2ee9fab1 100644 --- a/services/preview/trafficmanager/mgmt/2017-09-01-preview/trafficmanager/_meta.json +++ b/services/preview/trafficmanager/mgmt/2017-09-01-preview/trafficmanager/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/trafficmanager/resource-manager/readme.md", "tag": "package-2017-09-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-09-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/trafficmanager/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-09-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/trafficmanager/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/trafficmanager/mgmt/2017-09-01-preview/trafficmanager/models.go b/services/preview/trafficmanager/mgmt/2017-09-01-preview/trafficmanager/models.go index e3c1ed4bb814..7eacfe80e027 100644 --- a/services/preview/trafficmanager/mgmt/2017-09-01-preview/trafficmanager/models.go +++ b/services/preview/trafficmanager/mgmt/2017-09-01-preview/trafficmanager/models.go @@ -49,6 +49,12 @@ type DeleteOperationResult struct { OperationResult *bool `json:"boolean,omitempty"` } +// MarshalJSON is the custom marshaler for DeleteOperationResult. +func (dor DeleteOperationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DNSConfig class containing DNS settings in a Traffic Manager profile. type DNSConfig struct { // RelativeName - The relative DNS name provided by this Traffic Manager profile. This value is combined with the DNS domain name used by Azure Traffic Manager to form the fully-qualified domain name (FQDN) of the profile. @@ -506,6 +512,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QueryExperience class representing a Traffic Manager HeatMap query experience properties. type QueryExperience struct { // EndpointID - The id of the endpoint from the 'endpoints' array which these queries were routed to. @@ -537,6 +549,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackedResource the resource model definition for a ARM tracked top level resource type TrackedResource struct { // Tags - Resource tags. diff --git a/services/preview/trafficmanager/mgmt/2018-02-01-preview/trafficmanager/CHANGELOG.md b/services/preview/trafficmanager/mgmt/2018-02-01-preview/trafficmanager/CHANGELOG.md index 52911e4cc5e4..43dde23907ad 100644 --- a/services/preview/trafficmanager/mgmt/2018-02-01-preview/trafficmanager/CHANGELOG.md +++ b/services/preview/trafficmanager/mgmt/2018-02-01-preview/trafficmanager/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. DeleteOperationResult.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/trafficmanager/mgmt/2018-02-01-preview/trafficmanager/_meta.json b/services/preview/trafficmanager/mgmt/2018-02-01-preview/trafficmanager/_meta.json index c4852ad32810..9b9643f555d2 100644 --- a/services/preview/trafficmanager/mgmt/2018-02-01-preview/trafficmanager/_meta.json +++ b/services/preview/trafficmanager/mgmt/2018-02-01-preview/trafficmanager/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/trafficmanager/resource-manager/readme.md", "tag": "package-2018-02", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/trafficmanager/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/trafficmanager/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/trafficmanager/mgmt/2018-02-01-preview/trafficmanager/models.go b/services/preview/trafficmanager/mgmt/2018-02-01-preview/trafficmanager/models.go index ef154cee9da8..23e1644e1c2f 100644 --- a/services/preview/trafficmanager/mgmt/2018-02-01-preview/trafficmanager/models.go +++ b/services/preview/trafficmanager/mgmt/2018-02-01-preview/trafficmanager/models.go @@ -49,6 +49,12 @@ type DeleteOperationResult struct { OperationResult *bool `json:"boolean,omitempty"` } +// MarshalJSON is the custom marshaler for DeleteOperationResult. +func (dor DeleteOperationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DNSConfig class containing DNS settings in a Traffic Manager profile. type DNSConfig struct { // RelativeName - The relative DNS name provided by this Traffic Manager profile. This value is combined with the DNS domain name used by Azure Traffic Manager to form the fully-qualified domain name (FQDN) of the profile. @@ -508,6 +514,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QueryExperience class representing a Traffic Manager HeatMap query experience properties. type QueryExperience struct { // EndpointID - The id of the endpoint from the 'endpoints' array which these queries were routed to. @@ -539,6 +551,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackedResource the resource model definition for a ARM tracked top level resource type TrackedResource struct { // Tags - Resource tags. diff --git a/services/preview/videoanalyzer/mgmt/2021-05-01-preview/videoanalyzer/CHANGELOG.md b/services/preview/videoanalyzer/mgmt/2021-05-01-preview/videoanalyzer/CHANGELOG.md index 52911e4cc5e4..469a89ec3803 100644 --- a/services/preview/videoanalyzer/mgmt/2021-05-01-preview/videoanalyzer/CHANGELOG.md +++ b/services/preview/videoanalyzer/mgmt/2021-05-01-preview/videoanalyzer/CHANGELOG.md @@ -1,2 +1,32 @@ # Change History +## Breaking Changes + +### Removed Constants + +1. Type.TypeTypeAuthenticationBase +1. Type.TypeTypeMicrosoftVideoAnalyzerJwtAuthentication + +## Additive Changes + +### New Constants + +1. Type.TypeAuthenticationBase +1. Type.TypeMicrosoftVideoAnalyzerJwtAuthentication + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. EdgeModuleProperties.MarshalJSON() ([]byte, error) +1. EdgeModuleProvisioningToken.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorDetail.MarshalJSON() ([]byte, error) +1. LogSpecification.MarshalJSON() ([]byte, error) +1. MetricDimension.MarshalJSON() ([]byte, error) +1. Properties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ServiceSpecification.MarshalJSON() ([]byte, error) +1. UserAssignedManagedIdentity.MarshalJSON() ([]byte, error) +1. VideoMediaInfo.MarshalJSON() ([]byte, error) +1. VideoStreamingToken.MarshalJSON() ([]byte, error) diff --git a/services/preview/videoanalyzer/mgmt/2021-05-01-preview/videoanalyzer/_meta.json b/services/preview/videoanalyzer/mgmt/2021-05-01-preview/videoanalyzer/_meta.json index 77923999e789..48365ce3af8e 100644 --- a/services/preview/videoanalyzer/mgmt/2021-05-01-preview/videoanalyzer/_meta.json +++ b/services/preview/videoanalyzer/mgmt/2021-05-01-preview/videoanalyzer/_meta.json @@ -2,9 +2,9 @@ "commit": "c2ea3a3ccd14293b4bd1d17e684ef9129f0dc604", "readme": "/_/azure-rest-api-specs/specification/videoanalyzer/resource-manager/readme.md", "tag": "package-2021-05-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2021-05-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/videoanalyzer/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2021-05-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/videoanalyzer/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix" } diff --git a/services/preview/videoanalyzer/mgmt/2021-05-01-preview/videoanalyzer/enums.go b/services/preview/videoanalyzer/mgmt/2021-05-01-preview/videoanalyzer/enums.go index 42541aa83f96..fa3b88a2eefc 100644 --- a/services/preview/videoanalyzer/mgmt/2021-05-01-preview/videoanalyzer/enums.go +++ b/services/preview/videoanalyzer/mgmt/2021-05-01-preview/videoanalyzer/enums.go @@ -6,38 +6,6 @@ package videoanalyzer // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// TypeBasicTokenKey enumerates the values for type basic token key. -type TypeBasicTokenKey string - -const ( - // TypeBasicTokenKeyTypeMicrosoftVideoAnalyzerEccTokenKey ... - TypeBasicTokenKeyTypeMicrosoftVideoAnalyzerEccTokenKey TypeBasicTokenKey = "#Microsoft.VideoAnalyzer.EccTokenKey" - // TypeBasicTokenKeyTypeMicrosoftVideoAnalyzerRsaTokenKey ... - TypeBasicTokenKeyTypeMicrosoftVideoAnalyzerRsaTokenKey TypeBasicTokenKey = "#Microsoft.VideoAnalyzer.RsaTokenKey" - // TypeBasicTokenKeyTypeTokenKey ... - TypeBasicTokenKeyTypeTokenKey TypeBasicTokenKey = "TokenKey" -) - -// PossibleTypeBasicTokenKeyValues returns an array of possible values for the TypeBasicTokenKey const type. -func PossibleTypeBasicTokenKeyValues() []TypeBasicTokenKey { - return []TypeBasicTokenKey{TypeBasicTokenKeyTypeMicrosoftVideoAnalyzerEccTokenKey, TypeBasicTokenKeyTypeMicrosoftVideoAnalyzerRsaTokenKey, TypeBasicTokenKeyTypeTokenKey} -} - -// Type enumerates the values for type. -type Type string - -const ( - // TypeTypeAuthenticationBase ... - TypeTypeAuthenticationBase Type = "AuthenticationBase" - // TypeTypeMicrosoftVideoAnalyzerJwtAuthentication ... - TypeTypeMicrosoftVideoAnalyzerJwtAuthentication Type = "#Microsoft.VideoAnalyzer.JwtAuthentication" -) - -// PossibleTypeValues returns an array of possible values for the Type const type. -func PossibleTypeValues() []Type { - return []Type{TypeTypeAuthenticationBase, TypeTypeMicrosoftVideoAnalyzerJwtAuthentication} -} - // AccessPolicyEccAlgo enumerates the values for access policy ecc algo. type AccessPolicyEccAlgo string @@ -182,6 +150,38 @@ func PossibleMetricUnitValues() []MetricUnit { return []MetricUnit{MetricUnitBytes, MetricUnitCount, MetricUnitMilliseconds} } +// Type enumerates the values for type. +type Type string + +const ( + // TypeAuthenticationBase ... + TypeAuthenticationBase Type = "AuthenticationBase" + // TypeMicrosoftVideoAnalyzerJwtAuthentication ... + TypeMicrosoftVideoAnalyzerJwtAuthentication Type = "#Microsoft.VideoAnalyzer.JwtAuthentication" +) + +// PossibleTypeValues returns an array of possible values for the Type const type. +func PossibleTypeValues() []Type { + return []Type{TypeAuthenticationBase, TypeMicrosoftVideoAnalyzerJwtAuthentication} +} + +// TypeBasicTokenKey enumerates the values for type basic token key. +type TypeBasicTokenKey string + +const ( + // TypeBasicTokenKeyTypeMicrosoftVideoAnalyzerEccTokenKey ... + TypeBasicTokenKeyTypeMicrosoftVideoAnalyzerEccTokenKey TypeBasicTokenKey = "#Microsoft.VideoAnalyzer.EccTokenKey" + // TypeBasicTokenKeyTypeMicrosoftVideoAnalyzerRsaTokenKey ... + TypeBasicTokenKeyTypeMicrosoftVideoAnalyzerRsaTokenKey TypeBasicTokenKey = "#Microsoft.VideoAnalyzer.RsaTokenKey" + // TypeBasicTokenKeyTypeTokenKey ... + TypeBasicTokenKeyTypeTokenKey TypeBasicTokenKey = "TokenKey" +) + +// PossibleTypeBasicTokenKeyValues returns an array of possible values for the TypeBasicTokenKey const type. +func PossibleTypeBasicTokenKeyValues() []TypeBasicTokenKey { + return []TypeBasicTokenKey{TypeBasicTokenKeyTypeMicrosoftVideoAnalyzerEccTokenKey, TypeBasicTokenKeyTypeMicrosoftVideoAnalyzerRsaTokenKey, TypeBasicTokenKeyTypeTokenKey} +} + // VideoType enumerates the values for video type. type VideoType string diff --git a/services/preview/videoanalyzer/mgmt/2021-05-01-preview/videoanalyzer/models.go b/services/preview/videoanalyzer/mgmt/2021-05-01-preview/videoanalyzer/models.go index 74ae3f44c2fe..ed7a92e2ffe8 100644 --- a/services/preview/videoanalyzer/mgmt/2021-05-01-preview/videoanalyzer/models.go +++ b/services/preview/videoanalyzer/mgmt/2021-05-01-preview/videoanalyzer/models.go @@ -338,7 +338,7 @@ type BasicAuthenticationBase interface { // AuthenticationBase base class for access policies authentication methods. type AuthenticationBase struct { - // Type - Possible values include: 'TypeTypeAuthenticationBase', 'TypeTypeMicrosoftVideoAnalyzerJwtAuthentication' + // Type - Possible values include: 'TypeAuthenticationBase', 'TypeMicrosoftVideoAnalyzerJwtAuthentication' Type Type `json:"@type,omitempty"` } @@ -350,7 +350,7 @@ func unmarshalBasicAuthenticationBase(body []byte) (BasicAuthenticationBase, err } switch m["@type"] { - case string(TypeTypeMicrosoftVideoAnalyzerJwtAuthentication): + case string(TypeMicrosoftVideoAnalyzerJwtAuthentication): var ja JwtAuthentication err := json.Unmarshal(body, &ja) return ja, err @@ -381,7 +381,7 @@ func unmarshalBasicAuthenticationBaseArray(body []byte) ([]BasicAuthenticationBa // MarshalJSON is the custom marshaler for AuthenticationBase. func (ab AuthenticationBase) MarshalJSON() ([]byte, error) { - ab.Type = TypeTypeAuthenticationBase + ab.Type = TypeAuthenticationBase objectMap := make(map[string]interface{}) if ab.Type != "" { objectMap["@type"] = ab.Type @@ -416,6 +416,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CheckNameAvailabilityRequest the check availability request body. type CheckNameAvailabilityRequest struct { // Name - The name of the resource for which availability needs to be checked. @@ -747,6 +753,12 @@ type EdgeModuleProperties struct { EdgeModuleID *uuid.UUID `json:"edgeModuleId,omitempty"` } +// MarshalJSON is the custom marshaler for EdgeModuleProperties. +func (emp EdgeModuleProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EdgeModuleProvisioningToken provisioning token properties. A provisioning token allows for a single // instance of Azure Video analyzer IoT edge module to be initialized and authorized to the cloud account. // The provisioning token itself is short lived and it is only used for the initial handshake between IoT @@ -762,6 +774,12 @@ type EdgeModuleProvisioningToken struct { Token *string `json:"token,omitempty"` } +// MarshalJSON is the custom marshaler for EdgeModuleProvisioningToken. +func (empt EdgeModuleProvisioningToken) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Endpoint the endpoint details. type Endpoint struct { // EndpointURL - The URL of the endpoint. @@ -778,6 +796,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetail the error detail. type ErrorDetail struct { // Code - READ-ONLY; The error code. @@ -792,6 +816,12 @@ type ErrorDetail struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetail. +func (ed ErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.). type ErrorResponse struct { @@ -829,13 +859,13 @@ type JwtAuthentication struct { Claims *[]TokenClaim `json:"claims,omitempty"` // Keys - List of keys which can be used to validate access tokens. Having multiple keys allow for seamless key rotation of the token signing key. Token signature must match exactly one key. Keys *[]BasicTokenKey `json:"keys,omitempty"` - // Type - Possible values include: 'TypeTypeAuthenticationBase', 'TypeTypeMicrosoftVideoAnalyzerJwtAuthentication' + // Type - Possible values include: 'TypeAuthenticationBase', 'TypeMicrosoftVideoAnalyzerJwtAuthentication' Type Type `json:"@type,omitempty"` } // MarshalJSON is the custom marshaler for JwtAuthentication. func (ja JwtAuthentication) MarshalJSON() ([]byte, error) { - ja.Type = TypeTypeMicrosoftVideoAnalyzerJwtAuthentication + ja.Type = TypeMicrosoftVideoAnalyzerJwtAuthentication objectMap := make(map[string]interface{}) if ja.Issuers != nil { objectMap["issuers"] = ja.Issuers @@ -963,6 +993,12 @@ type LogSpecification struct { BlobDuration *string `json:"blobDuration,omitempty"` } +// MarshalJSON is the custom marshaler for LogSpecification. +func (ls LogSpecification) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricDimension a metric dimension. type MetricDimension struct { // Name - READ-ONLY; The metric dimension name. @@ -973,6 +1009,12 @@ type MetricDimension struct { ToBeExportedForShoebox *bool `json:"toBeExportedForShoebox,omitempty"` } +// MarshalJSON is the custom marshaler for MetricDimension. +func (md MetricDimension) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricSpecification a metric emitted by service. type MetricSpecification struct { // Name - READ-ONLY; The metric name. @@ -1177,6 +1219,12 @@ type Properties struct { ServiceSpecification *ServiceSpecification `json:"serviceSpecification,omitempty"` } +// MarshalJSON is the custom marshaler for Properties. +func (p Properties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PropertiesType ... type PropertiesType struct { // StorageAccounts - The storage accounts for this resource. @@ -1232,6 +1280,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -1242,6 +1296,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceIdentity the user assigned managed identity to use when accessing a resource. type ResourceIdentity struct { // UserAssignedIdentity - The user assigned managed identity's resource identifier to use when accessing a resource. @@ -1312,6 +1372,12 @@ type ServiceSpecification struct { MetricSpecifications *[]MetricSpecification `json:"metricSpecifications,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceSpecification. +func (ss ServiceSpecification) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageAccount the details about the associated storage account. type StorageAccount struct { // ID - The ID of the storage account resource. Video Analyzer relies on tables, queues, and blobs. The primary storage account must be a Standard Storage account (either Microsoft.ClassicStorage or Microsoft.Storage). @@ -1556,6 +1622,12 @@ type UserAssignedManagedIdentity struct { PrincipalID *string `json:"principalId,omitempty"` } +// MarshalJSON is the custom marshaler for UserAssignedManagedIdentity. +func (uami UserAssignedManagedIdentity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VideoEntity the representation of a single video in a Video Analyzer account. type VideoEntity struct { autorest.Response `json:"-"` @@ -1816,6 +1888,12 @@ type VideoMediaInfo struct { SegmentLength *string `json:"segmentLength,omitempty"` } +// MarshalJSON is the custom marshaler for VideoMediaInfo. +func (vmi VideoMediaInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VideoProperties application level properties for the video resource. type VideoProperties struct { // Title - Optional video title provided by the user. Value can be up to 256 characters long. @@ -1865,3 +1943,9 @@ type VideoStreamingToken struct { // Token - READ-ONLY; The streaming token value to be added to the video streaming URL as the value for a "token" query string parameter. The token is specific to a single video. Token *string `json:"token,omitempty"` } + +// MarshalJSON is the custom marshaler for VideoStreamingToken. +func (vst VideoStreamingToken) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/preview/virtualmachineimagebuilder/mgmt/2018-02-01-preview/virtualmachineimagebuilder/_meta.json b/services/preview/virtualmachineimagebuilder/mgmt/2018-02-01-preview/virtualmachineimagebuilder/_meta.json index 77a7644ce738..af988670dec9 100644 --- a/services/preview/virtualmachineimagebuilder/mgmt/2018-02-01-preview/virtualmachineimagebuilder/_meta.json +++ b/services/preview/virtualmachineimagebuilder/mgmt/2018-02-01-preview/virtualmachineimagebuilder/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/imagebuilder/resource-manager/readme.md", "tag": "package-2018-02", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/imagebuilder/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/imagebuilder/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/virtualmachineimagebuilder/mgmt/2019-02-01-preview/virtualmachineimagebuilder/_meta.json b/services/preview/virtualmachineimagebuilder/mgmt/2019-02-01-preview/virtualmachineimagebuilder/_meta.json index e485b842b647..a4b36c4cab40 100644 --- a/services/preview/virtualmachineimagebuilder/mgmt/2019-02-01-preview/virtualmachineimagebuilder/_meta.json +++ b/services/preview/virtualmachineimagebuilder/mgmt/2019-02-01-preview/virtualmachineimagebuilder/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/imagebuilder/resource-manager/readme.md", "tag": "package-2019-02", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/imagebuilder/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/imagebuilder/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/virtualmachineimagebuilder/mgmt/2019-05-01-preview/virtualmachineimagebuilder/CHANGELOG.md b/services/preview/virtualmachineimagebuilder/mgmt/2019-05-01-preview/virtualmachineimagebuilder/CHANGELOG.md index 52911e4cc5e4..0aa30eebfa02 100644 --- a/services/preview/virtualmachineimagebuilder/mgmt/2019-05-01-preview/virtualmachineimagebuilder/CHANGELOG.md +++ b/services/preview/virtualmachineimagebuilder/mgmt/2019-05-01-preview/virtualmachineimagebuilder/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. ImageTemplateIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) diff --git a/services/preview/virtualmachineimagebuilder/mgmt/2019-05-01-preview/virtualmachineimagebuilder/_meta.json b/services/preview/virtualmachineimagebuilder/mgmt/2019-05-01-preview/virtualmachineimagebuilder/_meta.json index 8492ced54e4d..096f3883903f 100644 --- a/services/preview/virtualmachineimagebuilder/mgmt/2019-05-01-preview/virtualmachineimagebuilder/_meta.json +++ b/services/preview/virtualmachineimagebuilder/mgmt/2019-05-01-preview/virtualmachineimagebuilder/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/imagebuilder/resource-manager/readme.md", "tag": "package-preview-2019-05", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-preview-2019-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/imagebuilder/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-preview-2019-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/imagebuilder/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/virtualmachineimagebuilder/mgmt/2019-05-01-preview/virtualmachineimagebuilder/models.go b/services/preview/virtualmachineimagebuilder/mgmt/2019-05-01-preview/virtualmachineimagebuilder/models.go index 6de5aee894eb..248b5d810ce8 100644 --- a/services/preview/virtualmachineimagebuilder/mgmt/2019-05-01-preview/virtualmachineimagebuilder/models.go +++ b/services/preview/virtualmachineimagebuilder/mgmt/2019-05-01-preview/virtualmachineimagebuilder/models.go @@ -467,6 +467,12 @@ type ImageTemplateIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ImageTemplateIdentityUserAssignedIdentitiesValue. +func (itiAiv ImageTemplateIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageTemplateIsoSource describes an image source that is an installation ISO. Currently only supports // Red Hat Enterprise Linux 7.2-7.5 ISO's. type ImageTemplateIsoSource struct { diff --git a/services/preview/visualstudio/mgmt/2014-04-01-preview/visualstudio/_meta.json b/services/preview/visualstudio/mgmt/2014-04-01-preview/visualstudio/_meta.json index f683ba6a247d..4ba64ddb5f3c 100644 --- a/services/preview/visualstudio/mgmt/2014-04-01-preview/visualstudio/_meta.json +++ b/services/preview/visualstudio/mgmt/2014-04-01-preview/visualstudio/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/visualstudio/resource-manager/readme.md", "tag": "package-2014-04-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2014-04-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/visualstudio/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2014-04-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/visualstudio/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/web/mgmt/2015-08-01-preview/web/CHANGELOG.md b/services/preview/web/mgmt/2015-08-01-preview/web/CHANGELOG.md index 52911e4cc5e4..c1e1d8ca6bb1 100644 --- a/services/preview/web/mgmt/2015-08-01-preview/web/CHANGELOG.md +++ b/services/preview/web/mgmt/2015-08-01-preview/web/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. KeyValuePairStringString.MarshalJSON() ([]byte, error) diff --git a/services/preview/web/mgmt/2015-08-01-preview/web/_meta.json b/services/preview/web/mgmt/2015-08-01-preview/web/_meta.json index 9d2658761f26..a68d755628b1 100644 --- a/services/preview/web/mgmt/2015-08-01-preview/web/_meta.json +++ b/services/preview/web/mgmt/2015-08-01-preview/web/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/web/resource-manager/readme.md", "tag": "package-2015-08-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2015-08-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/web/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2015-08-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/web/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/web/mgmt/2015-08-01-preview/web/models.go b/services/preview/web/mgmt/2015-08-01-preview/web/models.go index 00cb2ed654c7..57e35ed275ce 100644 --- a/services/preview/web/mgmt/2015-08-01-preview/web/models.go +++ b/services/preview/web/mgmt/2015-08-01-preview/web/models.go @@ -7483,6 +7483,12 @@ type KeyValuePairStringString struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for KeyValuePairStringString. +func (kvpSs KeyValuePairStringString) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListCertificateEmail ... type ListCertificateEmail struct { autorest.Response `json:"-"` diff --git a/services/preview/webpubsub/mgmt/2021-04-01-preview/webpubsub/CHANGELOG.md b/services/preview/webpubsub/mgmt/2021-04-01-preview/webpubsub/CHANGELOG.md index 6310c051fd1b..35dd4e58b82b 100644 --- a/services/preview/webpubsub/mgmt/2021-04-01-preview/webpubsub/CHANGELOG.md +++ b/services/preview/webpubsub/mgmt/2021-04-01-preview/webpubsub/CHANGELOG.md @@ -1,73 +1,11 @@ # Change History -## Breaking Changes - -### Removed Constants - -1. ACLAction.Allow -1. ACLAction.Deny -1. FeatureFlags.EnableConnectivityLogs -1. FeatureFlags.EnableLiveTrace -1. FeatureFlags.EnableMessagingLogs -1. KeyType.Primary -1. KeyType.Secondary -1. ManagedIdentityType.None -1. ManagedIdentityType.SystemAssigned -1. ManagedIdentityType.UserAssigned -1. PrivateLinkServiceConnectionStatus.Approved -1. PrivateLinkServiceConnectionStatus.Disconnected -1. PrivateLinkServiceConnectionStatus.Pending -1. PrivateLinkServiceConnectionStatus.Rejected -1. ProvisioningState.Canceled -1. ProvisioningState.Creating -1. ProvisioningState.Deleting -1. ProvisioningState.Failed -1. ProvisioningState.Moving -1. ProvisioningState.Running -1. ProvisioningState.Succeeded -1. ProvisioningState.Unknown -1. ProvisioningState.Updating -1. RequestType.ClientConnection -1. RequestType.RESTAPI -1. RequestType.ServerConnection -1. RequestType.Trace -1. SkuTier.Basic -1. SkuTier.Free -1. SkuTier.Premium -1. SkuTier.Standard - ## Additive Changes -### New Constants +### New Funcs -1. ACLAction.ACLActionAllow -1. ACLAction.ACLActionDeny -1. FeatureFlags.FeatureFlagsEnableConnectivityLogs -1. FeatureFlags.FeatureFlagsEnableLiveTrace -1. FeatureFlags.FeatureFlagsEnableMessagingLogs -1. KeyType.KeyTypePrimary -1. KeyType.KeyTypeSecondary -1. ManagedIdentityType.ManagedIdentityTypeNone -1. ManagedIdentityType.ManagedIdentityTypeSystemAssigned -1. ManagedIdentityType.ManagedIdentityTypeUserAssigned -1. PrivateLinkServiceConnectionStatus.PrivateLinkServiceConnectionStatusApproved -1. PrivateLinkServiceConnectionStatus.PrivateLinkServiceConnectionStatusDisconnected -1. PrivateLinkServiceConnectionStatus.PrivateLinkServiceConnectionStatusPending -1. PrivateLinkServiceConnectionStatus.PrivateLinkServiceConnectionStatusRejected -1. ProvisioningState.ProvisioningStateCanceled -1. ProvisioningState.ProvisioningStateCreating -1. ProvisioningState.ProvisioningStateDeleting -1. ProvisioningState.ProvisioningStateFailed -1. ProvisioningState.ProvisioningStateMoving -1. ProvisioningState.ProvisioningStateRunning -1. ProvisioningState.ProvisioningStateSucceeded -1. ProvisioningState.ProvisioningStateUnknown -1. ProvisioningState.ProvisioningStateUpdating -1. RequestType.RequestTypeClientConnection -1. RequestType.RequestTypeRESTAPI -1. RequestType.RequestTypeServerConnection -1. RequestType.RequestTypeTrace -1. SkuTier.SkuTierBasic -1. SkuTier.SkuTierFree -1. SkuTier.SkuTierPremium -1. SkuTier.SkuTierStandard +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorDetail.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. UserAssignedIdentityProperty.MarshalJSON() ([]byte, error) diff --git a/services/preview/webpubsub/mgmt/2021-04-01-preview/webpubsub/_meta.json b/services/preview/webpubsub/mgmt/2021-04-01-preview/webpubsub/_meta.json index afd21d161a99..821c30c72afe 100644 --- a/services/preview/webpubsub/mgmt/2021-04-01-preview/webpubsub/_meta.json +++ b/services/preview/webpubsub/mgmt/2021-04-01-preview/webpubsub/_meta.json @@ -2,9 +2,9 @@ "commit": "e5839301dfd424559851119c99ef0a2699fbd228", "readme": "/_/azure-rest-api-specs/specification/webpubsub/resource-manager/readme.md", "tag": "package-2021-04-01-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2021-04-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/webpubsub/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2021-04-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/webpubsub/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix" } diff --git a/services/preview/webpubsub/mgmt/2021-04-01-preview/webpubsub/models.go b/services/preview/webpubsub/mgmt/2021-04-01-preview/webpubsub/models.go index 520e5a016cbc..dcdbab4b711f 100644 --- a/services/preview/webpubsub/mgmt/2021-04-01-preview/webpubsub/models.go +++ b/services/preview/webpubsub/mgmt/2021-04-01-preview/webpubsub/models.go @@ -119,6 +119,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetail the error detail. type ErrorDetail struct { // Code - READ-ONLY; The error code. @@ -133,6 +139,12 @@ type ErrorDetail struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetail. +func (ed ErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.). type ErrorResponse struct { @@ -1152,6 +1164,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegenerateKeyFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type RegenerateKeyFuture struct { @@ -1211,6 +1229,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceList object that includes an array of resources and a possible link for next set. type ResourceList struct { autorest.Response `json:"-"` @@ -2253,3 +2277,9 @@ type UserAssignedIdentityProperty struct { // ClientID - READ-ONLY; Get the client id for the user assigned identity ClientID *string `json:"clientId,omitempty"` } + +// MarshalJSON is the custom marshaler for UserAssignedIdentityProperty. +func (uaip UserAssignedIdentityProperty) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/preview/windowsesu/2019-09-16-preview/windowsesu/CHANGELOG.md b/services/preview/windowsesu/2019-09-16-preview/windowsesu/CHANGELOG.md index 52911e4cc5e4..0635539f0e7f 100644 --- a/services/preview/windowsesu/2019-09-16-preview/windowsesu/CHANGELOG.md +++ b/services/preview/windowsesu/2019-09-16-preview/windowsesu/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ErrorDefinition.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/windowsesu/2019-09-16-preview/windowsesu/_meta.json b/services/preview/windowsesu/2019-09-16-preview/windowsesu/_meta.json index ddc1a84ab912..60a313772e83 100644 --- a/services/preview/windowsesu/2019-09-16-preview/windowsesu/_meta.json +++ b/services/preview/windowsesu/2019-09-16-preview/windowsesu/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/windowsesu/resource-manager/readme.md", "tag": "package-2019-09-16-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-09-16-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/windowsesu/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-09-16-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/windowsesu/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/windowsesu/2019-09-16-preview/windowsesu/models.go b/services/preview/windowsesu/2019-09-16-preview/windowsesu/models.go index db3d9c976d44..b65d5921f894 100644 --- a/services/preview/windowsesu/2019-09-16-preview/windowsesu/models.go +++ b/services/preview/windowsesu/2019-09-16-preview/windowsesu/models.go @@ -32,6 +32,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDefinition error definition. type ErrorDefinition struct { // Code - READ-ONLY; Service specific error code which serves as the substatus for the HTTP error code. @@ -42,6 +48,12 @@ type ErrorDefinition struct { Details *[]ErrorDefinition `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDefinition. +func (ed ErrorDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse error response. type ErrorResponse struct { // Error - The error details. @@ -619,6 +631,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -629,6 +647,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource // which has 'tags' and a 'location' type TrackedResource struct { diff --git a/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/CHANGELOG.md b/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/CHANGELOG.md index 52911e4cc5e4..c16eaf63d83b 100644 --- a/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/CHANGELOG.md +++ b/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/CHANGELOG.md @@ -1,2 +1,19 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ComponentsCollection.MarshalJSON() ([]byte, error) +1. HealthStateChange.MarshalJSON() ([]byte, error) +1. MonitorCriteria.MarshalJSON() ([]byte, error) +1. MonitorInstancesCollection.MarshalJSON() ([]byte, error) +1. MonitorProperties.MarshalJSON() ([]byte, error) +1. MonitorsCollection.MarshalJSON() ([]byte, error) +1. NotificationSettingProperties.MarshalJSON() ([]byte, error) +1. Operation.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OperationProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/_meta.json b/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/_meta.json index d696edf13e2c..1518648cffcc 100644 --- a/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/_meta.json +++ b/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/workloadmonitor/resource-manager/readme.md", "tag": "package-2018-08-31-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-08-31-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/workloadmonitor/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-08-31-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/workloadmonitor/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/models.go b/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/models.go index c17106d48cf8..cdb7d3fbd2e7 100644 --- a/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/models.go +++ b/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor/models.go @@ -31,6 +31,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Component model for component. type Component struct { autorest.Response `json:"-"` @@ -165,6 +171,12 @@ type ComponentsCollection struct { Value *[]Component `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ComponentsCollection. +func (cc ComponentsCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ComponentsCollectionIterator provides access to a complete listing of Component values. type ComponentsCollectionIterator struct { i int @@ -343,6 +355,12 @@ type HealthStateChange struct { HealthStateChangeTime *date.Time `json:"healthStateChangeTime,omitempty"` } +// MarshalJSON is the custom marshaler for HealthStateChange. +func (hsc HealthStateChange) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Monitor model for Monitor type Monitor struct { autorest.Response `json:"-"` @@ -434,6 +452,12 @@ type MonitorCriteria struct { ComparisonOperator Operator `json:"comparisonOperator,omitempty"` } +// MarshalJSON is the custom marshaler for MonitorCriteria. +func (mc MonitorCriteria) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MonitorInstance model for monitor instance. type MonitorInstance struct { autorest.Response `json:"-"` @@ -574,6 +598,12 @@ type MonitorInstancesCollection struct { Value *[]MonitorInstance `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MonitorInstancesCollection. +func (mic MonitorInstancesCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MonitorInstancesCollectionIterator provides access to a complete listing of MonitorInstance values. type MonitorInstancesCollectionIterator struct { i int @@ -766,6 +796,12 @@ type MonitorProperties struct { SignalType *string `json:"signalType,omitempty"` } +// MarshalJSON is the custom marshaler for MonitorProperties. +func (mp MonitorProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MonitorsCollection model for collection of Monitor. type MonitorsCollection struct { autorest.Response `json:"-"` @@ -775,6 +811,12 @@ type MonitorsCollection struct { Value *[]Monitor `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for MonitorsCollection. +func (mc MonitorsCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MonitorsCollectionIterator provides access to a complete listing of Monitor values. type MonitorsCollectionIterator struct { i int @@ -1012,6 +1054,12 @@ type NotificationSettingProperties struct { ActionGroupResourceIds *[]string `json:"actionGroupResourceIds,omitempty"` } +// MarshalJSON is the custom marshaler for NotificationSettingProperties. +func (nsp NotificationSettingProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NotificationSettingsCollection model for collection of notificationSettings. type NotificationSettingsCollection struct { autorest.Response `json:"-"` @@ -1190,6 +1238,12 @@ type Operation struct { Origin *string `json:"origin,omitempty"` } +// MarshalJSON is the custom marshaler for Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult container for a list of operations supported by the resource provider. type OperationListResult struct { autorest.Response `json:"-"` @@ -1199,6 +1253,12 @@ type OperationListResult struct { Value *[]Operation `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -1361,6 +1421,12 @@ type OperationProperties struct { Resource *string `json:"resource,omitempty"` } +// MarshalJSON is the custom marshaler for OperationProperties. +func (op OperationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProxyResource the resource model definition for a Azure Resource Manager proxy resource. It will not // have tags and a location type ProxyResource struct { @@ -1372,6 +1438,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -1382,6 +1454,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource // which has 'tags' and a 'location' type TrackedResource struct { diff --git a/services/preview/workloadmonitor/mgmt/2020-01-13-preview/workloadmonitor/CHANGELOG.md b/services/preview/workloadmonitor/mgmt/2020-01-13-preview/workloadmonitor/CHANGELOG.md index 52911e4cc5e4..f817772e217f 100644 --- a/services/preview/workloadmonitor/mgmt/2020-01-13-preview/workloadmonitor/CHANGELOG.md +++ b/services/preview/workloadmonitor/mgmt/2020-01-13-preview/workloadmonitor/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/preview/workloadmonitor/mgmt/2020-01-13-preview/workloadmonitor/_meta.json b/services/preview/workloadmonitor/mgmt/2020-01-13-preview/workloadmonitor/_meta.json index befb88055fd3..9302e71c2f99 100644 --- a/services/preview/workloadmonitor/mgmt/2020-01-13-preview/workloadmonitor/_meta.json +++ b/services/preview/workloadmonitor/mgmt/2020-01-13-preview/workloadmonitor/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/workloadmonitor/resource-manager/readme.md", "tag": "package-2020-01-13-preview", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-01-13-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/workloadmonitor/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-01-13-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/workloadmonitor/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/preview/workloadmonitor/mgmt/2020-01-13-preview/workloadmonitor/models.go b/services/preview/workloadmonitor/mgmt/2020-01-13-preview/workloadmonitor/models.go index b6c35c6689c5..b5614b2c8b17 100644 --- a/services/preview/workloadmonitor/mgmt/2020-01-13-preview/workloadmonitor/models.go +++ b/services/preview/workloadmonitor/mgmt/2020-01-13-preview/workloadmonitor/models.go @@ -745,3 +745,9 @@ type Resource struct { // Type - READ-ONLY; The resource type. Type *string `json:"type,omitempty"` } + +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/privatedns/mgmt/2018-09-01/privatedns/CHANGELOG.md b/services/privatedns/mgmt/2018-09-01/privatedns/CHANGELOG.md index 52911e4cc5e4..67303c77365b 100644 --- a/services/privatedns/mgmt/2018-09-01/privatedns/CHANGELOG.md +++ b/services/privatedns/mgmt/2018-09-01/privatedns/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. PrivateZoneProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/privatedns/mgmt/2018-09-01/privatedns/_meta.json b/services/privatedns/mgmt/2018-09-01/privatedns/_meta.json index 1862c3edc965..af0c1e4a7c9e 100644 --- a/services/privatedns/mgmt/2018-09-01/privatedns/_meta.json +++ b/services/privatedns/mgmt/2018-09-01/privatedns/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/privatedns/resource-manager/readme.md", "tag": "package-2018-09", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/privatedns/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/privatedns/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/privatedns/mgmt/2018-09-01/privatedns/models.go b/services/privatedns/mgmt/2018-09-01/privatedns/models.go index 37a91af7314a..7c23f9f65fcc 100644 --- a/services/privatedns/mgmt/2018-09-01/privatedns/models.go +++ b/services/privatedns/mgmt/2018-09-01/privatedns/models.go @@ -364,6 +364,12 @@ type PrivateZoneProperties struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateZoneProperties. +func (pzp PrivateZoneProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateZonesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type PrivateZonesCreateOrUpdateFuture struct { @@ -497,6 +503,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PtrRecord a PTR record. type PtrRecord struct { // Ptrdname - The PTR target domain name for this PTR record. @@ -833,6 +845,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SoaRecord an SOA record. type SoaRecord struct { // Host - The domain name of the authoritative name server for this SOA record. diff --git a/services/provisioningservices/mgmt/2017-11-15/iothub/CHANGELOG.md b/services/provisioningservices/mgmt/2017-11-15/iothub/CHANGELOG.md index 52911e4cc5e4..83fbd565381f 100644 --- a/services/provisioningservices/mgmt/2017-11-15/iothub/CHANGELOG.md +++ b/services/provisioningservices/mgmt/2017-11-15/iothub/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. CertificateProperties.MarshalJSON() ([]byte, error) +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) diff --git a/services/provisioningservices/mgmt/2017-11-15/iothub/_meta.json b/services/provisioningservices/mgmt/2017-11-15/iothub/_meta.json index d2a370e83498..eb9cc88d9a63 100644 --- a/services/provisioningservices/mgmt/2017-11-15/iothub/_meta.json +++ b/services/provisioningservices/mgmt/2017-11-15/iothub/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/deviceprovisioningservices/resource-manager/readme.md", "tag": "package-2017-11", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/deviceprovisioningservices/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/deviceprovisioningservices/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/provisioningservices/mgmt/2017-11-15/iothub/models.go b/services/provisioningservices/mgmt/2017-11-15/iothub/models.go index 8f90d156d3b2..c9ee04bc0905 100644 --- a/services/provisioningservices/mgmt/2017-11-15/iothub/models.go +++ b/services/provisioningservices/mgmt/2017-11-15/iothub/models.go @@ -58,6 +58,12 @@ type CertificateProperties struct { Updated *date.TimeRFC1123 `json:"updated,omitempty"` } +// MarshalJSON is the custom marshaler for CertificateProperties. +func (cp CertificateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificateResponse the X509 Certificate. type CertificateResponse struct { autorest.Response `json:"-"` @@ -126,6 +132,12 @@ type ErrorDetails struct { Details *string `json:"Details,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorMesssage error response containing message and code. type ErrorMesssage struct { // Code - standard error code @@ -536,6 +548,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationInputs input values for operation results call. type OperationInputs struct { // Name - The name of the Provisioning Service to check. @@ -552,6 +570,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int diff --git a/services/provisioningservices/mgmt/2018-01-22/iothub/CHANGELOG.md b/services/provisioningservices/mgmt/2018-01-22/iothub/CHANGELOG.md index 52911e4cc5e4..83fbd565381f 100644 --- a/services/provisioningservices/mgmt/2018-01-22/iothub/CHANGELOG.md +++ b/services/provisioningservices/mgmt/2018-01-22/iothub/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. CertificateProperties.MarshalJSON() ([]byte, error) +1. ErrorDetails.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) diff --git a/services/provisioningservices/mgmt/2018-01-22/iothub/_meta.json b/services/provisioningservices/mgmt/2018-01-22/iothub/_meta.json index 175c618c4c70..4fe0e20f6848 100644 --- a/services/provisioningservices/mgmt/2018-01-22/iothub/_meta.json +++ b/services/provisioningservices/mgmt/2018-01-22/iothub/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/deviceprovisioningservices/resource-manager/readme.md", "tag": "package-2018-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/deviceprovisioningservices/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/deviceprovisioningservices/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/provisioningservices/mgmt/2018-01-22/iothub/models.go b/services/provisioningservices/mgmt/2018-01-22/iothub/models.go index 90d19d605860..f62902038ee1 100644 --- a/services/provisioningservices/mgmt/2018-01-22/iothub/models.go +++ b/services/provisioningservices/mgmt/2018-01-22/iothub/models.go @@ -58,6 +58,12 @@ type CertificateProperties struct { Updated *date.TimeRFC1123 `json:"updated,omitempty"` } +// MarshalJSON is the custom marshaler for CertificateProperties. +func (cp CertificateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificateResponse the X509 Certificate. type CertificateResponse struct { autorest.Response `json:"-"` @@ -126,6 +132,12 @@ type ErrorDetails struct { Details *string `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetails. +func (ed ErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorMesssage error response containing message and code. type ErrorMesssage struct { // Code - standard error code @@ -536,6 +548,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationInputs input values for operation results call. type OperationInputs struct { // Name - The name of the Provisioning Service to check. @@ -552,6 +570,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int diff --git a/services/recoveryservices/mgmt/2016-06-01/backup/_meta.json b/services/recoveryservices/mgmt/2016-06-01/backup/_meta.json index b10eb492826a..6b0beb1aadf9 100644 --- a/services/recoveryservices/mgmt/2016-06-01/backup/_meta.json +++ b/services/recoveryservices/mgmt/2016-06-01/backup/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/recoveryservicesbackup/resource-manager/readme.md", "tag": "package-2016-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/recoveryservicesbackup/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/recoveryservicesbackup/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/recoveryservices/mgmt/2016-06-01/recoveryservices/CHANGELOG.md b/services/recoveryservices/mgmt/2016-06-01/recoveryservices/CHANGELOG.md index 52911e4cc5e4..541b737aa1f8 100644 --- a/services/recoveryservices/mgmt/2016-06-01/recoveryservices/CHANGELOG.md +++ b/services/recoveryservices/mgmt/2016-06-01/recoveryservices/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. PrivateEndpoint.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceProperties.MarshalJSON() ([]byte, error) +1. PrivateLinkServiceConnectionState.MarshalJSON() ([]byte, error) +1. UpgradeDetails.MarshalJSON() ([]byte, error) diff --git a/services/recoveryservices/mgmt/2016-06-01/recoveryservices/_meta.json b/services/recoveryservices/mgmt/2016-06-01/recoveryservices/_meta.json index 830feccb5fa3..567e7bed2b3f 100644 --- a/services/recoveryservices/mgmt/2016-06-01/recoveryservices/_meta.json +++ b/services/recoveryservices/mgmt/2016-06-01/recoveryservices/_meta.json @@ -2,9 +2,9 @@ "commit": "3a3a9452f965a227ce43e6b545035b99dd175f23", "readme": "/_/azure-rest-api-specs/specification/recoveryservices/resource-manager/readme.md", "tag": "package-2016-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/recoveryservices/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/recoveryservices/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/recoveryservices/mgmt/2016-06-01/recoveryservices/models.go b/services/recoveryservices/mgmt/2016-06-01/recoveryservices/models.go index e57c490e7b7e..2a47affa2ed3 100644 --- a/services/recoveryservices/mgmt/2016-06-01/recoveryservices/models.go +++ b/services/recoveryservices/mgmt/2016-06-01/recoveryservices/models.go @@ -383,6 +383,12 @@ type PrivateEndpoint struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpoint. +func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection private Endpoint Connection Response Properties. type PrivateEndpointConnection struct { // ProvisioningState - READ-ONLY; Gets or sets provisioning state of the private endpoint connection. Possible values include: 'ProvisioningStateSucceeded', 'ProvisioningStateDeleting', 'ProvisioningStateFailed', 'ProvisioningStatePending' @@ -503,6 +509,12 @@ type PrivateLinkResourceProperties struct { RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. +func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkResources class which represent the stamps associated with the vault. type PrivateLinkResources struct { autorest.Response `json:"-"` @@ -672,6 +684,12 @@ type PrivateLinkServiceConnectionState struct { ActionsRequired *string `json:"actionsRequired,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkServiceConnectionState. +func (plscs PrivateLinkServiceConnectionState) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RawCertificateData raw certificate data. type RawCertificateData struct { // AuthType - Specifies the authentication type. Possible values include: 'Invalid', 'ACS', 'AAD', 'AccessControlService', 'AzureActiveDirectory' @@ -1099,6 +1117,12 @@ type UpgradeDetails struct { PreviousResourceID *string `json:"previousResourceId,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeDetails. +func (ud UpgradeDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Vault resource information, as returned by the resource provider. type Vault struct { autorest.Response `json:"-"` diff --git a/services/recoveryservices/mgmt/2016-08-10/siterecovery/CHANGELOG.md b/services/recoveryservices/mgmt/2016-08-10/siterecovery/CHANGELOG.md index 52911e4cc5e4..c13c4c05bcba 100644 --- a/services/recoveryservices/mgmt/2016-08-10/siterecovery/CHANGELOG.md +++ b/services/recoveryservices/mgmt/2016-08-10/siterecovery/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. ProtectionContainerFabricSpecificDetails.MarshalJSON() ([]byte, error) +1. ProtectionContainerMappingProviderSpecificDetails.MarshalJSON() ([]byte, error) +1. ProviderSpecificRecoveryPointDetails.MarshalJSON() ([]byte, error) diff --git a/services/recoveryservices/mgmt/2016-08-10/siterecovery/_meta.json b/services/recoveryservices/mgmt/2016-08-10/siterecovery/_meta.json index 23d4a5826159..ea4e2f6230d6 100644 --- a/services/recoveryservices/mgmt/2016-08-10/siterecovery/_meta.json +++ b/services/recoveryservices/mgmt/2016-08-10/siterecovery/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/recoveryservicessiterecovery/resource-manager/readme.md", "tag": "package-2016-08", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/recoveryservicessiterecovery/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/recoveryservicessiterecovery/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/recoveryservices/mgmt/2016-08-10/siterecovery/models.go b/services/recoveryservices/mgmt/2016-08-10/siterecovery/models.go index 78eee061e806..afd2ff0731ce 100644 --- a/services/recoveryservices/mgmt/2016-08-10/siterecovery/models.go +++ b/services/recoveryservices/mgmt/2016-08-10/siterecovery/models.go @@ -11373,6 +11373,12 @@ type ProtectionContainerFabricSpecificDetails struct { InstanceType *string `json:"instanceType,omitempty"` } +// MarshalJSON is the custom marshaler for ProtectionContainerFabricSpecificDetails. +func (pcfsd ProtectionContainerFabricSpecificDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProtectionContainerMapping protection container mapping object. type ProtectionContainerMapping struct { autorest.Response `json:"-"` @@ -11592,6 +11598,12 @@ type ProtectionContainerMappingProviderSpecificDetails struct { InstanceType *string `json:"instanceType,omitempty"` } +// MarshalJSON is the custom marshaler for ProtectionContainerMappingProviderSpecificDetails. +func (pcmpsd ProtectionContainerMappingProviderSpecificDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProtectionContainerProperties protection profile custom data details. type ProtectionContainerProperties struct { // FabricFriendlyName - Fabric friendly name. @@ -11744,6 +11756,12 @@ type ProviderSpecificRecoveryPointDetails struct { Type *string `json:"Type,omitempty"` } +// MarshalJSON is the custom marshaler for ProviderSpecificRecoveryPointDetails. +func (psrpd ProviderSpecificRecoveryPointDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RcmAzureMigrationPolicyDetails RCM based Azure migration specific policy details. type RcmAzureMigrationPolicyDetails struct { // RecoveryPointThresholdInMinutes - The recovery point threshold in minutes. diff --git a/services/recoveryservices/mgmt/2016-12-01/backup/CHANGELOG.md b/services/recoveryservices/mgmt/2016-12-01/backup/CHANGELOG.md index 52911e4cc5e4..527344498a03 100644 --- a/services/recoveryservices/mgmt/2016-12-01/backup/CHANGELOG.md +++ b/services/recoveryservices/mgmt/2016-12-01/backup/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. ErrorDetail.MarshalJSON() ([]byte, error) diff --git a/services/recoveryservices/mgmt/2016-12-01/backup/_meta.json b/services/recoveryservices/mgmt/2016-12-01/backup/_meta.json index 73a6f1e02a5e..844a14fab92a 100644 --- a/services/recoveryservices/mgmt/2016-12-01/backup/_meta.json +++ b/services/recoveryservices/mgmt/2016-12-01/backup/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/recoveryservicesbackup/resource-manager/readme.md", "tag": "package-2016-12", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/recoveryservicesbackup/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/recoveryservicesbackup/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/recoveryservices/mgmt/2016-12-01/backup/models.go b/services/recoveryservices/mgmt/2016-12-01/backup/models.go index 19dca1e54f97..ef93ec73e59a 100644 --- a/services/recoveryservices/mgmt/2016-12-01/backup/models.go +++ b/services/recoveryservices/mgmt/2016-12-01/backup/models.go @@ -4785,6 +4785,12 @@ type ErrorDetail struct { Recommendations *[]string `json:"recommendations,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetail. +func (ed ErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GenericContainer base class for generic container of backup items type GenericContainer struct { // FabricName - Name of the container's fabric diff --git a/services/recoveryservices/mgmt/2018-01-10/siterecovery/CHANGELOG.md b/services/recoveryservices/mgmt/2018-01-10/siterecovery/CHANGELOG.md index 52911e4cc5e4..e0c8daaf6595 100644 --- a/services/recoveryservices/mgmt/2018-01-10/siterecovery/CHANGELOG.md +++ b/services/recoveryservices/mgmt/2018-01-10/siterecovery/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. MigrationRecoveryPointProperties.MarshalJSON() ([]byte, error) +1. ProtectionContainerFabricSpecificDetails.MarshalJSON() ([]byte, error) diff --git a/services/recoveryservices/mgmt/2018-01-10/siterecovery/_meta.json b/services/recoveryservices/mgmt/2018-01-10/siterecovery/_meta.json index 9393d074e8f5..8e1dcac3ad74 100644 --- a/services/recoveryservices/mgmt/2018-01-10/siterecovery/_meta.json +++ b/services/recoveryservices/mgmt/2018-01-10/siterecovery/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/recoveryservicessiterecovery/resource-manager/readme.md", "tag": "package-2018-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/recoveryservicessiterecovery/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/recoveryservicessiterecovery/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/recoveryservices/mgmt/2018-01-10/siterecovery/models.go b/services/recoveryservices/mgmt/2018-01-10/siterecovery/models.go index 9c888057d597..c81f21aecc20 100644 --- a/services/recoveryservices/mgmt/2018-01-10/siterecovery/models.go +++ b/services/recoveryservices/mgmt/2018-01-10/siterecovery/models.go @@ -10879,6 +10879,12 @@ type MigrationRecoveryPointProperties struct { RecoveryPointType MigrationRecoveryPointType `json:"recoveryPointType,omitempty"` } +// MarshalJSON is the custom marshaler for MigrationRecoveryPointProperties. +func (mrpp MigrationRecoveryPointProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MobilityServiceUpdate the Mobility Service update details. type MobilityServiceUpdate struct { // Version - The version of the latest update. @@ -12813,6 +12819,12 @@ type ProtectionContainerFabricSpecificDetails struct { InstanceType *string `json:"instanceType,omitempty"` } +// MarshalJSON is the custom marshaler for ProtectionContainerFabricSpecificDetails. +func (pcfsd ProtectionContainerFabricSpecificDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProtectionContainerMapping protection container mapping object. type ProtectionContainerMapping struct { autorest.Response `json:"-"` diff --git a/services/recoveryservices/mgmt/2018-07-10/siterecovery/CHANGELOG.md b/services/recoveryservices/mgmt/2018-07-10/siterecovery/CHANGELOG.md index 52911e4cc5e4..3a2c6bc750e8 100644 --- a/services/recoveryservices/mgmt/2018-07-10/siterecovery/CHANGELOG.md +++ b/services/recoveryservices/mgmt/2018-07-10/siterecovery/CHANGELOG.md @@ -1,2 +1,21 @@ # Change History +## Additive Changes + +### New Funcs + +1. AgentDetails.MarshalJSON() ([]byte, error) +1. AgentDiskDetails.MarshalJSON() ([]byte, error) +1. DraDetails.MarshalJSON() ([]byte, error) +1. InMageRcmMobilityAgentDetails.MarshalJSON() ([]byte, error) +1. InMageRcmNicDetails.MarshalJSON() ([]byte, error) +1. InMageRcmProtectedDiskDetails.MarshalJSON() ([]byte, error) +1. MigrationRecoveryPointProperties.MarshalJSON() ([]byte, error) +1. ProcessServerDetails.MarshalJSON() ([]byte, error) +1. ProtectionContainerFabricSpecificDetails.MarshalJSON() ([]byte, error) +1. PushInstallerDetails.MarshalJSON() ([]byte, error) +1. RcmProxyDetails.MarshalJSON() ([]byte, error) +1. ReplicationAgentDetails.MarshalJSON() ([]byte, error) +1. ReplicationEligibilityResults.MarshalJSON() ([]byte, error) +1. ReplicationEligibilityResultsErrorInfo.MarshalJSON() ([]byte, error) +1. ReprotectAgentDetails.MarshalJSON() ([]byte, error) diff --git a/services/recoveryservices/mgmt/2018-07-10/siterecovery/_meta.json b/services/recoveryservices/mgmt/2018-07-10/siterecovery/_meta.json index f02fa4eac645..05b0243d2432 100644 --- a/services/recoveryservices/mgmt/2018-07-10/siterecovery/_meta.json +++ b/services/recoveryservices/mgmt/2018-07-10/siterecovery/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/recoveryservicessiterecovery/resource-manager/readme.md", "tag": "package-2018-07", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/recoveryservicessiterecovery/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/recoveryservicessiterecovery/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/recoveryservices/mgmt/2018-07-10/siterecovery/models.go b/services/recoveryservices/mgmt/2018-07-10/siterecovery/models.go index 167fa3b07986..b968bfcfe54c 100644 --- a/services/recoveryservices/mgmt/2018-07-10/siterecovery/models.go +++ b/services/recoveryservices/mgmt/2018-07-10/siterecovery/models.go @@ -2395,6 +2395,12 @@ type AgentDetails struct { Disks *[]AgentDiskDetails `json:"disks,omitempty"` } +// MarshalJSON is the custom marshaler for AgentDetails. +func (ad AgentDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AgentDiskDetails agent disk details. type AgentDiskDetails struct { // DiskID - READ-ONLY; The disk Id. @@ -2409,6 +2415,12 @@ type AgentDiskDetails struct { LunID *int32 `json:"lunId,omitempty"` } +// MarshalJSON is the custom marshaler for AgentDiskDetails. +func (add AgentDiskDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Alert implements the Alert class. type Alert struct { autorest.Response `json:"-"` @@ -4178,6 +4190,12 @@ type DraDetails struct { HealthErrors *[]HealthError `json:"healthErrors,omitempty"` } +// MarshalJSON is the custom marshaler for DraDetails. +func (dd DraDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EnableMigrationInput enable migration input. type EnableMigrationInput struct { // Properties - Enable migration input properties. @@ -11247,6 +11265,12 @@ type InMageRcmMobilityAgentDetails struct { IsUpgradeable *string `json:"isUpgradeable,omitempty"` } +// MarshalJSON is the custom marshaler for InMageRcmMobilityAgentDetails. +func (imrmad InMageRcmMobilityAgentDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InMageRcmNicDetails inMageRcm NIC details. type InMageRcmNicDetails struct { // NicID - READ-ONLY; The NIC Id. @@ -11277,6 +11301,12 @@ type InMageRcmNicDetails struct { TestIPAddressType EthernetAddressType `json:"testIPAddressType,omitempty"` } +// MarshalJSON is the custom marshaler for InMageRcmNicDetails. +func (imrnd InMageRcmNicDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InMageRcmNicInput inMageRcm NIC input. type InMageRcmNicInput struct { // NicID - The NIC Id. @@ -11492,6 +11522,12 @@ type InMageRcmProtectedDiskDetails struct { DiskType DiskAccountType `json:"diskType,omitempty"` } +// MarshalJSON is the custom marshaler for InMageRcmProtectedDiskDetails. +func (imrpdd InMageRcmProtectedDiskDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InMageRcmRecoveryPointDetails inMageRcm provider specific recovery point details. type InMageRcmRecoveryPointDetails struct { // IsMultiVMSyncPoint - READ-ONLY; A value indicating whether the recovery point is multi VM consistent. @@ -14145,6 +14181,12 @@ type MigrationRecoveryPointProperties struct { RecoveryPointType MigrationRecoveryPointType `json:"recoveryPointType,omitempty"` } +// MarshalJSON is the custom marshaler for MigrationRecoveryPointProperties. +func (mrpp MigrationRecoveryPointProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MobilityServiceUpdate the Mobility Service update details. type MobilityServiceUpdate struct { // Version - The version of the latest update. @@ -15820,6 +15862,12 @@ type ProcessServerDetails struct { HistoricHealth ProtectionHealth `json:"historicHealth,omitempty"` } +// MarshalJSON is the custom marshaler for ProcessServerDetails. +func (psd ProcessServerDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProtectableItem replication protected item type ProtectableItem struct { autorest.Response `json:"-"` @@ -16314,6 +16362,12 @@ type ProtectionContainerFabricSpecificDetails struct { InstanceType *string `json:"instanceType,omitempty"` } +// MarshalJSON is the custom marshaler for ProtectionContainerFabricSpecificDetails. +func (pcfsd ProtectionContainerFabricSpecificDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProtectionContainerMapping protection container mapping object. type ProtectionContainerMapping struct { autorest.Response `json:"-"` @@ -17064,6 +17118,12 @@ type PushInstallerDetails struct { HealthErrors *[]HealthError `json:"healthErrors,omitempty"` } +// MarshalJSON is the custom marshaler for PushInstallerDetails. +func (pid PushInstallerDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RcmAzureMigrationPolicyDetails RCM based Azure migration specific policy details. type RcmAzureMigrationPolicyDetails struct { // RecoveryPointThresholdInMinutes - The recovery point threshold in minutes. @@ -17186,6 +17246,12 @@ type RcmProxyDetails struct { HealthErrors *[]HealthError `json:"healthErrors,omitempty"` } +// MarshalJSON is the custom marshaler for RcmProxyDetails. +func (rpd RcmProxyDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicRecoveryAvailabilitySetCustomDetails recovery Availability Set custom input. type BasicRecoveryAvailabilitySetCustomDetails interface { AsExistingRecoveryAvailabilitySet() (*ExistingRecoveryAvailabilitySet, bool) @@ -19938,6 +20004,12 @@ type ReplicationAgentDetails struct { HealthErrors *[]HealthError `json:"healthErrors,omitempty"` } +// MarshalJSON is the custom marshaler for ReplicationAgentDetails. +func (rad ReplicationAgentDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReplicationEligibilityResults replication eligibility results response model. type ReplicationEligibilityResults struct { autorest.Response `json:"-"` @@ -19951,6 +20023,12 @@ type ReplicationEligibilityResults struct { Properties *ReplicationEligibilityResultsProperties `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for ReplicationEligibilityResults. +func (rer ReplicationEligibilityResults) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReplicationEligibilityResultsCollection replication eligibility results collection response model. type ReplicationEligibilityResultsCollection struct { autorest.Response `json:"-"` @@ -19972,6 +20050,12 @@ type ReplicationEligibilityResultsErrorInfo struct { Status *string `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for ReplicationEligibilityResultsErrorInfo. +func (rerei ReplicationEligibilityResultsErrorInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReplicationEligibilityResultsProperties properties model for replication eligibility results API. type ReplicationEligibilityResultsProperties struct { // ClientRequestID - READ-ONLY; The client request Id. @@ -24043,6 +24127,12 @@ type ReprotectAgentDetails struct { HealthErrors *[]HealthError `json:"healthErrors,omitempty"` } +// MarshalJSON is the custom marshaler for ReprotectAgentDetails. +func (rad ReprotectAgentDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResolveHealthError resolve health errors input properties. type ResolveHealthError struct { // HealthErrorID - Health error id. diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/CHANGELOG.md b/services/recoveryservices/mgmt/2019-05-13/backup/CHANGELOG.md index 52911e4cc5e4..fa06656f6a1e 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/CHANGELOG.md +++ b/services/recoveryservices/mgmt/2019-05-13/backup/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureIaaSVMErrorInfo.MarshalJSON() ([]byte, error) +1. AzureIaaSVMHealthDetails.MarshalJSON() ([]byte, error) +1. AzureWorkloadSQLRecoveryPointExtendedInfo.MarshalJSON() ([]byte, error) +1. ErrorDetail.MarshalJSON() ([]byte, error) +1. MabErrorInfo.MarshalJSON() ([]byte, error) diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/_meta.json b/services/recoveryservices/mgmt/2019-05-13/backup/_meta.json index d1baa7b768a0..8bebbd627eb7 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/_meta.json +++ b/services/recoveryservices/mgmt/2019-05-13/backup/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/recoveryservicesbackup/resource-manager/readme.md", "tag": "package-2019-05", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/recoveryservicesbackup/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/recoveryservicesbackup/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/recoveryservices/mgmt/2019-05-13/backup/models.go b/services/recoveryservices/mgmt/2019-05-13/backup/models.go index 1b194fb10d71..90243c3982df 100644 --- a/services/recoveryservices/mgmt/2019-05-13/backup/models.go +++ b/services/recoveryservices/mgmt/2019-05-13/backup/models.go @@ -2057,6 +2057,12 @@ type AzureIaaSVMErrorInfo struct { Recommendations *[]string `json:"recommendations,omitempty"` } +// MarshalJSON is the custom marshaler for AzureIaaSVMErrorInfo. +func (aisei AzureIaaSVMErrorInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureIaaSVMHealthDetails azure IaaS VM workload-specific Health Details. type AzureIaaSVMHealthDetails struct { // Code - READ-ONLY; Health Code @@ -2069,6 +2075,12 @@ type AzureIaaSVMHealthDetails struct { Recommendations *[]string `json:"recommendations,omitempty"` } +// MarshalJSON is the custom marshaler for AzureIaaSVMHealthDetails. +func (aishd AzureIaaSVMHealthDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureIaaSVMJob azure IaaS VM workload-specific job object. type AzureIaaSVMJob struct { // Duration - Time elapsed during the execution of this job. @@ -9100,6 +9112,12 @@ type AzureWorkloadSQLRecoveryPointExtendedInfo struct { DataDirectoryPaths *[]SQLDataDirectory `json:"dataDirectoryPaths,omitempty"` } +// MarshalJSON is the custom marshaler for AzureWorkloadSQLRecoveryPointExtendedInfo. +func (awsrpei AzureWorkloadSQLRecoveryPointExtendedInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicAzureWorkloadSQLRestoreRequest azureWorkload SQL -specific restore. Specifically for full/diff restore type BasicAzureWorkloadSQLRestoreRequest interface { AsAzureWorkloadSQLPointInTimeRestoreRequest() (*AzureWorkloadSQLPointInTimeRestoreRequest, bool) @@ -10846,6 +10864,12 @@ type ErrorDetail struct { Recommendations *[]string `json:"recommendations,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetail. +func (ed ErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExportJobsOperationResultInfo this class is used to send blob details after exporting jobs. type ExportJobsOperationResultInfo struct { // BlobURL - URL of the blob into which the serialized string of list of jobs is exported. @@ -13312,6 +13336,12 @@ type MabErrorInfo struct { Recommendations *[]string `json:"recommendations,omitempty"` } +// MarshalJSON is the custom marshaler for MabErrorInfo. +func (mei MabErrorInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MabFileFolderProtectedItem MAB workload-specific backup item. type MabFileFolderProtectedItem struct { // FriendlyName - Friendly name of this backup item. diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/CHANGELOG.md b/services/recoveryservices/mgmt/2019-06-15/backup/CHANGELOG.md index 52911e4cc5e4..c6e5b28d1926 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/CHANGELOG.md +++ b/services/recoveryservices/mgmt/2019-06-15/backup/CHANGELOG.md @@ -1,2 +1,14 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureIaaSVMErrorInfo.MarshalJSON() ([]byte, error) +1. AzureIaaSVMHealthDetails.MarshalJSON() ([]byte, error) +1. AzureWorkloadSQLRecoveryPointExtendedInfo.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorDetail.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. MabErrorInfo.MarshalJSON() ([]byte, error) +1. ResourceHealthDetails.MarshalJSON() ([]byte, error) diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/_meta.json b/services/recoveryservices/mgmt/2019-06-15/backup/_meta.json index 13d2f8df30c3..b40cde28d70b 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/_meta.json +++ b/services/recoveryservices/mgmt/2019-06-15/backup/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/recoveryservicesbackup/resource-manager/readme.md", "tag": "package-2019-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/recoveryservicesbackup/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/recoveryservicesbackup/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/recoveryservices/mgmt/2019-06-15/backup/models.go b/services/recoveryservices/mgmt/2019-06-15/backup/models.go index c4ab50b667be..f6ecf3209844 100644 --- a/services/recoveryservices/mgmt/2019-06-15/backup/models.go +++ b/services/recoveryservices/mgmt/2019-06-15/backup/models.go @@ -2067,6 +2067,12 @@ type AzureIaaSVMErrorInfo struct { Recommendations *[]string `json:"recommendations,omitempty"` } +// MarshalJSON is the custom marshaler for AzureIaaSVMErrorInfo. +func (aisei AzureIaaSVMErrorInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureIaaSVMHealthDetails azure IaaS VM workload-specific Health Details. type AzureIaaSVMHealthDetails struct { // Code - READ-ONLY; Health Code @@ -2079,6 +2085,12 @@ type AzureIaaSVMHealthDetails struct { Recommendations *[]string `json:"recommendations,omitempty"` } +// MarshalJSON is the custom marshaler for AzureIaaSVMHealthDetails. +func (aishd AzureIaaSVMHealthDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureIaaSVMJob azure IaaS VM workload-specific job object. type AzureIaaSVMJob struct { // Duration - Time elapsed during the execution of this job. @@ -9148,6 +9160,12 @@ type AzureWorkloadSQLRecoveryPointExtendedInfo struct { DataDirectoryPaths *[]SQLDataDirectory `json:"dataDirectoryPaths,omitempty"` } +// MarshalJSON is the custom marshaler for AzureWorkloadSQLRecoveryPointExtendedInfo. +func (awsrpei AzureWorkloadSQLRecoveryPointExtendedInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicAzureWorkloadSQLRestoreRequest azureWorkload SQL -specific restore. Specifically for full/diff restore type BasicAzureWorkloadSQLRestoreRequest interface { AsAzureWorkloadSQLPointInTimeRestoreRequest() (*AzureWorkloadSQLPointInTimeRestoreRequest, bool) @@ -10892,6 +10910,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetail error Detail class which encapsulates Code, Message and Recommendations. type ErrorDetail struct { // Code - READ-ONLY; Error code. @@ -10902,6 +10926,12 @@ type ErrorDetail struct { Recommendations *[]string `json:"recommendations,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetail. +func (ed ErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.) type ErrorResponse struct { @@ -10917,6 +10947,12 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExportJobsOperationResultInfo this class is used to send blob details after exporting jobs. type ExportJobsOperationResultInfo struct { // BlobURL - URL of the blob into which the serialized string of list of jobs is exported. @@ -13391,6 +13427,12 @@ type MabErrorInfo struct { Recommendations *[]string `json:"recommendations,omitempty"` } +// MarshalJSON is the custom marshaler for MabErrorInfo. +func (mei MabErrorInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MabFileFolderProtectedItem MAB workload-specific backup item. type MabFileFolderProtectedItem struct { // FriendlyName - Friendly name of this backup item. @@ -17546,6 +17588,12 @@ type ResourceHealthDetails struct { Recommendations *[]string `json:"recommendations,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceHealthDetails. +func (rhd ResourceHealthDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceList base for all lists of resources. type ResourceList struct { // NextLink - The uri to fetch the next page of resources. Call ListNext() fetches next page of resources. diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/CHANGELOG.md b/services/recoveryservices/mgmt/2020-02-02/backup/CHANGELOG.md index 52911e4cc5e4..c6e5b28d1926 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/CHANGELOG.md +++ b/services/recoveryservices/mgmt/2020-02-02/backup/CHANGELOG.md @@ -1,2 +1,14 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureIaaSVMErrorInfo.MarshalJSON() ([]byte, error) +1. AzureIaaSVMHealthDetails.MarshalJSON() ([]byte, error) +1. AzureWorkloadSQLRecoveryPointExtendedInfo.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorDetail.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. MabErrorInfo.MarshalJSON() ([]byte, error) +1. ResourceHealthDetails.MarshalJSON() ([]byte, error) diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/_meta.json b/services/recoveryservices/mgmt/2020-02-02/backup/_meta.json index 63f8bae2dd33..292138b44de1 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/_meta.json +++ b/services/recoveryservices/mgmt/2020-02-02/backup/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/recoveryservicesbackup/resource-manager/readme.md", "tag": "package-2020-02", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/recoveryservicesbackup/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/recoveryservicesbackup/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/recoveryservices/mgmt/2020-02-02/backup/models.go b/services/recoveryservices/mgmt/2020-02-02/backup/models.go index 666f8e41f808..4f81efd0c8ee 100644 --- a/services/recoveryservices/mgmt/2020-02-02/backup/models.go +++ b/services/recoveryservices/mgmt/2020-02-02/backup/models.go @@ -2068,6 +2068,12 @@ type AzureIaaSVMErrorInfo struct { Recommendations *[]string `json:"recommendations,omitempty"` } +// MarshalJSON is the custom marshaler for AzureIaaSVMErrorInfo. +func (aisei AzureIaaSVMErrorInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureIaaSVMHealthDetails azure IaaS VM workload-specific Health Details. type AzureIaaSVMHealthDetails struct { // Code - READ-ONLY; Health Code @@ -2080,6 +2086,12 @@ type AzureIaaSVMHealthDetails struct { Recommendations *[]string `json:"recommendations,omitempty"` } +// MarshalJSON is the custom marshaler for AzureIaaSVMHealthDetails. +func (aishd AzureIaaSVMHealthDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureIaaSVMJob azure IaaS VM workload-specific job object. type AzureIaaSVMJob struct { // Duration - Time elapsed during the execution of this job. @@ -9149,6 +9161,12 @@ type AzureWorkloadSQLRecoveryPointExtendedInfo struct { DataDirectoryPaths *[]SQLDataDirectory `json:"dataDirectoryPaths,omitempty"` } +// MarshalJSON is the custom marshaler for AzureWorkloadSQLRecoveryPointExtendedInfo. +func (awsrpei AzureWorkloadSQLRecoveryPointExtendedInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicAzureWorkloadSQLRestoreRequest azureWorkload SQL -specific restore. Specifically for full/diff restore type BasicAzureWorkloadSQLRestoreRequest interface { AsAzureWorkloadSQLPointInTimeRestoreRequest() (*AzureWorkloadSQLPointInTimeRestoreRequest, bool) @@ -10893,6 +10911,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetail error Detail class which encapsulates Code, Message and Recommendations. type ErrorDetail struct { // Code - READ-ONLY; Error code. @@ -10903,6 +10927,12 @@ type ErrorDetail struct { Recommendations *[]string `json:"recommendations,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetail. +func (ed ErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.) type ErrorResponse struct { @@ -10918,6 +10948,12 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExportJobsOperationResultInfo this class is used to send blob details after exporting jobs. type ExportJobsOperationResultInfo struct { // BlobURL - URL of the blob into which the serialized string of list of jobs is exported. @@ -13392,6 +13428,12 @@ type MabErrorInfo struct { Recommendations *[]string `json:"recommendations,omitempty"` } +// MarshalJSON is the custom marshaler for MabErrorInfo. +func (mei MabErrorInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MabFileFolderProtectedItem MAB workload-specific backup item. type MabFileFolderProtectedItem struct { // FriendlyName - Friendly name of this backup item. @@ -17690,6 +17732,12 @@ type ResourceHealthDetails struct { Recommendations *[]string `json:"recommendations,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceHealthDetails. +func (rhd ResourceHealthDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceList base for all lists of resources. type ResourceList struct { // NextLink - The uri to fetch the next page of resources. Call ListNext() fetches next page of resources. diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/CHANGELOG.md b/services/recoveryservices/mgmt/2021-01-01/backup/CHANGELOG.md new file mode 100644 index 000000000000..52911e4cc5e4 --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/CHANGELOG.md @@ -0,0 +1,2 @@ +# Change History + diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/_meta.json b/services/recoveryservices/mgmt/2021-01-01/backup/_meta.json new file mode 100644 index 000000000000..e34c4e695938 --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/_meta.json @@ -0,0 +1,11 @@ +{ + "commit": "394395ed0bdc1c5c05cb37a031379ca03bfebbb5", + "readme": "/_/azure-rest-api-specs/specification/recoveryservicesbackup/resource-manager/readme.md", + "tag": "package-2021-01", + "use": "@microsoft.azure/autorest.go@2.1.183", + "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2021-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/recoveryservicesbackup/resource-manager/readme.md", + "additional_properties": { + "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix" + } +} \ No newline at end of file diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/aadproperties.go b/services/recoveryservices/mgmt/2021-01-01/backup/aadproperties.go new file mode 100644 index 000000000000..ef951a5266f8 --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/aadproperties.go @@ -0,0 +1,109 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// AadPropertiesClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type AadPropertiesClient struct { + BaseClient +} + +// NewAadPropertiesClient creates an instance of the AadPropertiesClient client. +func NewAadPropertiesClient(subscriptionID string) AadPropertiesClient { + return NewAadPropertiesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewAadPropertiesClientWithBaseURI creates an instance of the AadPropertiesClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewAadPropertiesClientWithBaseURI(baseURI string, subscriptionID string) AadPropertiesClient { + return AadPropertiesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get sends the get request. +// Parameters: +// azureRegion - azure region to hit Api +// filter - oData filter options. +func (client AadPropertiesClient) Get(ctx context.Context, azureRegion string, filter string) (result AADPropertiesResource, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AadPropertiesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, azureRegion, filter) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.AadPropertiesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.AadPropertiesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.AadPropertiesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client AadPropertiesClient) GetPreparer(ctx context.Context, azureRegion string, filter string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "azureRegion": autorest.Encode("path", azureRegion), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-12-20" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(filter) > 0 { + queryParameters["$filter"] = autorest.Encode("query", filter) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupAadProperties", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client AadPropertiesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client AadPropertiesClient) GetResponder(resp *http.Response) (result AADPropertiesResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/backupapi/interfaces.go b/services/recoveryservices/mgmt/2021-01-01/backup/backupapi/interfaces.go new file mode 100644 index 000000000000..cdc11baadfec --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/backupapi/interfaces.go @@ -0,0 +1,424 @@ +package backupapi + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2021-01-01/backup" + "github.com/Azure/go-autorest/autorest" +) + +// BaseClientAPI contains the set of methods on the BaseClient type. +type BaseClientAPI interface { + BMSPrepareDataMove(ctx context.Context, vaultName string, resourceGroupName string, parameters backup.PrepareDataMoveRequest) (result backup.BMSPrepareDataMoveFuture, err error) + BMSTriggerDataMove(ctx context.Context, vaultName string, resourceGroupName string, parameters backup.TriggerDataMoveRequest) (result backup.BMSTriggerDataMoveFuture, err error) + GetOperationStatus(ctx context.Context, vaultName string, resourceGroupName string, operationID string) (result backup.OperationStatus, err error) + MoveRecoveryPoint(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, recoveryPointID string, parameters backup.MoveRPAcrossTiersRequest) (result backup.MoveRecoveryPointFuture, err error) +} + +var _ BaseClientAPI = (*backup.BaseClient)(nil) + +// ResourceVaultConfigsClientAPI contains the set of methods on the ResourceVaultConfigsClient type. +type ResourceVaultConfigsClientAPI interface { + Get(ctx context.Context, vaultName string, resourceGroupName string) (result backup.ResourceVaultConfigResource, err error) + Put(ctx context.Context, vaultName string, resourceGroupName string, parameters backup.ResourceVaultConfigResource) (result backup.ResourceVaultConfigResource, err error) + Update(ctx context.Context, vaultName string, resourceGroupName string, parameters backup.ResourceVaultConfigResource) (result backup.ResourceVaultConfigResource, err error) +} + +var _ ResourceVaultConfigsClientAPI = (*backup.ResourceVaultConfigsClient)(nil) + +// ResourceEncryptionConfigsClientAPI contains the set of methods on the ResourceEncryptionConfigsClient type. +type ResourceEncryptionConfigsClientAPI interface { + Get(ctx context.Context, vaultName string, resourceGroupName string) (result backup.ResourceEncryptionConfigResource, err error) + Update(ctx context.Context, vaultName string, resourceGroupName string, parameters backup.ResourceEncryptionConfigResource) (result autorest.Response, err error) +} + +var _ ResourceEncryptionConfigsClientAPI = (*backup.ResourceEncryptionConfigsClient)(nil) + +// PrivateEndpointConnectionClientAPI contains the set of methods on the PrivateEndpointConnectionClient type. +type PrivateEndpointConnectionClientAPI interface { + Delete(ctx context.Context, vaultName string, resourceGroupName string, privateEndpointConnectionName string) (result backup.PrivateEndpointConnectionDeleteFuture, err error) + Get(ctx context.Context, vaultName string, resourceGroupName string, privateEndpointConnectionName string) (result backup.PrivateEndpointConnectionResource, err error) + Put(ctx context.Context, vaultName string, resourceGroupName string, privateEndpointConnectionName string, parameters backup.PrivateEndpointConnectionResource) (result backup.PrivateEndpointConnectionPutFuture, err error) +} + +var _ PrivateEndpointConnectionClientAPI = (*backup.PrivateEndpointConnectionClient)(nil) + +// PrivateEndpointClientAPI contains the set of methods on the PrivateEndpointClient type. +type PrivateEndpointClientAPI interface { + GetOperationStatus(ctx context.Context, vaultName string, resourceGroupName string, privateEndpointConnectionName string, operationID string) (result backup.OperationStatus, err error) +} + +var _ PrivateEndpointClientAPI = (*backup.PrivateEndpointClient)(nil) + +// BMSPrepareDataMoveOperationResultClientAPI contains the set of methods on the BMSPrepareDataMoveOperationResultClient type. +type BMSPrepareDataMoveOperationResultClientAPI interface { + Get(ctx context.Context, vaultName string, resourceGroupName string, operationID string) (result backup.VaultStorageConfigOperationResultResponseModel, err error) +} + +var _ BMSPrepareDataMoveOperationResultClientAPI = (*backup.BMSPrepareDataMoveOperationResultClient)(nil) + +// ProtectedItemsClientAPI contains the set of methods on the ProtectedItemsClient type. +type ProtectedItemsClientAPI interface { + CreateOrUpdate(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, parameters backup.ProtectedItemResource) (result backup.ProtectedItemResource, err error) + Delete(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string) (result autorest.Response, err error) + Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, filter string) (result backup.ProtectedItemResource, err error) +} + +var _ ProtectedItemsClientAPI = (*backup.ProtectedItemsClient)(nil) + +// ProtectedItemOperationResultsClientAPI contains the set of methods on the ProtectedItemOperationResultsClient type. +type ProtectedItemOperationResultsClientAPI interface { + Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, operationID string) (result backup.ProtectedItemResource, err error) +} + +var _ ProtectedItemOperationResultsClientAPI = (*backup.ProtectedItemOperationResultsClient)(nil) + +// RecoveryPointsClientAPI contains the set of methods on the RecoveryPointsClient type. +type RecoveryPointsClientAPI interface { + Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, recoveryPointID string) (result backup.RecoveryPointResource, err error) + GetAccessToken(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, recoveryPointID string, parameters backup.AADPropertiesResource) (result backup.CrrAccessTokenResource, err error) + List(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, filter string) (result backup.RecoveryPointResourceListPage, err error) + ListComplete(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, filter string) (result backup.RecoveryPointResourceListIterator, err error) +} + +var _ RecoveryPointsClientAPI = (*backup.RecoveryPointsClient)(nil) + +// RestoresClientAPI contains the set of methods on the RestoresClient type. +type RestoresClientAPI interface { + Trigger(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, recoveryPointID string, parameters backup.RestoreRequestResource) (result backup.RestoresTriggerFuture, err error) +} + +var _ RestoresClientAPI = (*backup.RestoresClient)(nil) + +// PoliciesClientAPI contains the set of methods on the PoliciesClient type. +type PoliciesClientAPI interface { + List(ctx context.Context, vaultName string, resourceGroupName string, filter string) (result backup.ProtectionPolicyResourceListPage, err error) + ListComplete(ctx context.Context, vaultName string, resourceGroupName string, filter string) (result backup.ProtectionPolicyResourceListIterator, err error) +} + +var _ PoliciesClientAPI = (*backup.PoliciesClient)(nil) + +// ProtectionPoliciesClientAPI contains the set of methods on the ProtectionPoliciesClient type. +type ProtectionPoliciesClientAPI interface { + CreateOrUpdate(ctx context.Context, vaultName string, resourceGroupName string, policyName string, parameters backup.ProtectionPolicyResource) (result backup.ProtectionPolicyResource, err error) + Delete(ctx context.Context, vaultName string, resourceGroupName string, policyName string) (result backup.ProtectionPoliciesDeleteFuture, err error) + Get(ctx context.Context, vaultName string, resourceGroupName string, policyName string) (result backup.ProtectionPolicyResource, err error) +} + +var _ ProtectionPoliciesClientAPI = (*backup.ProtectionPoliciesClient)(nil) + +// ProtectionPolicyOperationResultsClientAPI contains the set of methods on the ProtectionPolicyOperationResultsClient type. +type ProtectionPolicyOperationResultsClientAPI interface { + Get(ctx context.Context, vaultName string, resourceGroupName string, policyName string, operationID string) (result backup.ProtectionPolicyResource, err error) +} + +var _ ProtectionPolicyOperationResultsClientAPI = (*backup.ProtectionPolicyOperationResultsClient)(nil) + +// JobsClientAPI contains the set of methods on the JobsClient type. +type JobsClientAPI interface { + List(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result backup.JobResourceListPage, err error) + ListComplete(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result backup.JobResourceListIterator, err error) +} + +var _ JobsClientAPI = (*backup.JobsClient)(nil) + +// JobDetailsClientAPI contains the set of methods on the JobDetailsClient type. +type JobDetailsClientAPI interface { + Get(ctx context.Context, vaultName string, resourceGroupName string, jobName string) (result backup.JobResource, err error) +} + +var _ JobDetailsClientAPI = (*backup.JobDetailsClient)(nil) + +// JobCancellationsClientAPI contains the set of methods on the JobCancellationsClient type. +type JobCancellationsClientAPI interface { + Trigger(ctx context.Context, vaultName string, resourceGroupName string, jobName string) (result autorest.Response, err error) +} + +var _ JobCancellationsClientAPI = (*backup.JobCancellationsClient)(nil) + +// JobOperationResultsClientAPI contains the set of methods on the JobOperationResultsClient type. +type JobOperationResultsClientAPI interface { + Get(ctx context.Context, vaultName string, resourceGroupName string, jobName string, operationID string) (result autorest.Response, err error) +} + +var _ JobOperationResultsClientAPI = (*backup.JobOperationResultsClient)(nil) + +// ExportJobsOperationResultsClientAPI contains the set of methods on the ExportJobsOperationResultsClient type. +type ExportJobsOperationResultsClientAPI interface { + Get(ctx context.Context, vaultName string, resourceGroupName string, operationID string) (result backup.OperationResultInfoBaseResource, err error) +} + +var _ ExportJobsOperationResultsClientAPI = (*backup.ExportJobsOperationResultsClient)(nil) + +// JobsGroupClientAPI contains the set of methods on the JobsGroupClient type. +type JobsGroupClientAPI interface { + Export(ctx context.Context, vaultName string, resourceGroupName string, filter string) (result autorest.Response, err error) +} + +var _ JobsGroupClientAPI = (*backup.JobsGroupClient)(nil) + +// ProtectedItemsGroupClientAPI contains the set of methods on the ProtectedItemsGroupClient type. +type ProtectedItemsGroupClientAPI interface { + List(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result backup.ProtectedItemResourceListPage, err error) + ListComplete(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result backup.ProtectedItemResourceListIterator, err error) +} + +var _ ProtectedItemsGroupClientAPI = (*backup.ProtectedItemsGroupClient)(nil) + +// OperationClientAPI contains the set of methods on the OperationClient type. +type OperationClientAPI interface { + Validate(ctx context.Context, vaultName string, resourceGroupName string, parameters backup.BasicValidateOperationRequest) (result backup.ValidateOperationsResponse, err error) +} + +var _ OperationClientAPI = (*backup.OperationClient)(nil) + +// EnginesClientAPI contains the set of methods on the EnginesClient type. +type EnginesClientAPI interface { + Get(ctx context.Context, vaultName string, resourceGroupName string, backupEngineName string, filter string, skipToken string) (result backup.EngineBaseResource, err error) + List(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result backup.EngineBaseResourceListPage, err error) + ListComplete(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result backup.EngineBaseResourceListIterator, err error) +} + +var _ EnginesClientAPI = (*backup.EnginesClient)(nil) + +// ProtectionContainerRefreshOperationResultsClientAPI contains the set of methods on the ProtectionContainerRefreshOperationResultsClient type. +type ProtectionContainerRefreshOperationResultsClientAPI interface { + Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, operationID string) (result autorest.Response, err error) +} + +var _ ProtectionContainerRefreshOperationResultsClientAPI = (*backup.ProtectionContainerRefreshOperationResultsClient)(nil) + +// ProtectableContainersClientAPI contains the set of methods on the ProtectableContainersClient type. +type ProtectableContainersClientAPI interface { + List(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, filter string) (result backup.ProtectableContainerResourceListPage, err error) + ListComplete(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, filter string) (result backup.ProtectableContainerResourceListIterator, err error) +} + +var _ ProtectableContainersClientAPI = (*backup.ProtectableContainersClient)(nil) + +// ProtectionContainersClientAPI contains the set of methods on the ProtectionContainersClient type. +type ProtectionContainersClientAPI interface { + Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string) (result backup.ProtectionContainerResource, err error) + Inquire(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, filter string) (result autorest.Response, err error) + Refresh(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, filter string) (result autorest.Response, err error) + Register(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, parameters backup.ProtectionContainerResource) (result backup.ProtectionContainerResource, err error) + Unregister(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string) (result autorest.Response, err error) +} + +var _ ProtectionContainersClientAPI = (*backup.ProtectionContainersClient)(nil) + +// WorkloadItemsClientAPI contains the set of methods on the WorkloadItemsClient type. +type WorkloadItemsClientAPI interface { + List(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, filter string, skipToken string) (result backup.WorkloadItemResourceListPage, err error) + ListComplete(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, filter string, skipToken string) (result backup.WorkloadItemResourceListIterator, err error) +} + +var _ WorkloadItemsClientAPI = (*backup.WorkloadItemsClient)(nil) + +// ProtectionContainerOperationResultsClientAPI contains the set of methods on the ProtectionContainerOperationResultsClient type. +type ProtectionContainerOperationResultsClientAPI interface { + Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, operationID string) (result backup.ProtectionContainerResource, err error) +} + +var _ ProtectionContainerOperationResultsClientAPI = (*backup.ProtectionContainerOperationResultsClient)(nil) + +// BackupsClientAPI contains the set of methods on the BackupsClient type. +type BackupsClientAPI interface { + Trigger(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, parameters backup.RequestResource) (result autorest.Response, err error) +} + +var _ BackupsClientAPI = (*backup.BackupsClient)(nil) + +// ProtectedItemOperationStatusesClientAPI contains the set of methods on the ProtectedItemOperationStatusesClient type. +type ProtectedItemOperationStatusesClientAPI interface { + Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, operationID string) (result backup.OperationStatus, err error) +} + +var _ ProtectedItemOperationStatusesClientAPI = (*backup.ProtectedItemOperationStatusesClient)(nil) + +// ItemLevelRecoveryConnectionsClientAPI contains the set of methods on the ItemLevelRecoveryConnectionsClient type. +type ItemLevelRecoveryConnectionsClientAPI interface { + Provision(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, recoveryPointID string, parameters backup.ILRRequestResource) (result autorest.Response, err error) + Revoke(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, recoveryPointID string) (result autorest.Response, err error) +} + +var _ ItemLevelRecoveryConnectionsClientAPI = (*backup.ItemLevelRecoveryConnectionsClient)(nil) + +// OperationResultsClientAPI contains the set of methods on the OperationResultsClient type. +type OperationResultsClientAPI interface { + Get(ctx context.Context, vaultName string, resourceGroupName string, operationID string) (result autorest.Response, err error) +} + +var _ OperationResultsClientAPI = (*backup.OperationResultsClient)(nil) + +// OperationStatusesClientAPI contains the set of methods on the OperationStatusesClient type. +type OperationStatusesClientAPI interface { + Get(ctx context.Context, vaultName string, resourceGroupName string, operationID string) (result backup.OperationStatus, err error) +} + +var _ OperationStatusesClientAPI = (*backup.OperationStatusesClient)(nil) + +// ProtectionPolicyOperationStatusesClientAPI contains the set of methods on the ProtectionPolicyOperationStatusesClient type. +type ProtectionPolicyOperationStatusesClientAPI interface { + Get(ctx context.Context, vaultName string, resourceGroupName string, policyName string, operationID string) (result backup.OperationStatus, err error) +} + +var _ ProtectionPolicyOperationStatusesClientAPI = (*backup.ProtectionPolicyOperationStatusesClient)(nil) + +// ProtectableItemsClientAPI contains the set of methods on the ProtectableItemsClient type. +type ProtectableItemsClientAPI interface { + List(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result backup.WorkloadProtectableItemResourceListPage, err error) + ListComplete(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result backup.WorkloadProtectableItemResourceListIterator, err error) +} + +var _ ProtectableItemsClientAPI = (*backup.ProtectableItemsClient)(nil) + +// ProtectionContainersGroupClientAPI contains the set of methods on the ProtectionContainersGroupClient type. +type ProtectionContainersGroupClientAPI interface { + List(ctx context.Context, vaultName string, resourceGroupName string, filter string) (result backup.ProtectionContainerResourceListPage, err error) + ListComplete(ctx context.Context, vaultName string, resourceGroupName string, filter string) (result backup.ProtectionContainerResourceListIterator, err error) +} + +var _ ProtectionContainersGroupClientAPI = (*backup.ProtectionContainersGroupClient)(nil) + +// SecurityPINsClientAPI contains the set of methods on the SecurityPINsClient type. +type SecurityPINsClientAPI interface { + Get(ctx context.Context, vaultName string, resourceGroupName string) (result backup.TokenInformation, err error) +} + +var _ SecurityPINsClientAPI = (*backup.SecurityPINsClient)(nil) + +// RecoveryPointsRecommendedForMoveClientAPI contains the set of methods on the RecoveryPointsRecommendedForMoveClient type. +type RecoveryPointsRecommendedForMoveClientAPI interface { + List(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, parameters backup.ListRecoveryPointsRecommendedForMoveRequest) (result backup.RecoveryPointResourceListPage, err error) + ListComplete(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, parameters backup.ListRecoveryPointsRecommendedForMoveRequest) (result backup.RecoveryPointResourceListIterator, err error) +} + +var _ RecoveryPointsRecommendedForMoveClientAPI = (*backup.RecoveryPointsRecommendedForMoveClient)(nil) + +// UsageSummariesCRRClientAPI contains the set of methods on the UsageSummariesCRRClient type. +type UsageSummariesCRRClientAPI interface { + List(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result backup.ManagementUsageList, err error) +} + +var _ UsageSummariesCRRClientAPI = (*backup.UsageSummariesCRRClient)(nil) + +// AadPropertiesClientAPI contains the set of methods on the AadPropertiesClient type. +type AadPropertiesClientAPI interface { + Get(ctx context.Context, azureRegion string, filter string) (result backup.AADPropertiesResource, err error) +} + +var _ AadPropertiesClientAPI = (*backup.AadPropertiesClient)(nil) + +// CrossRegionRestoreClientAPI contains the set of methods on the CrossRegionRestoreClient type. +type CrossRegionRestoreClientAPI interface { + Trigger(ctx context.Context, azureRegion string, parameters backup.CrossRegionRestoreRequest) (result backup.CrossRegionRestoreTriggerFuture, err error) +} + +var _ CrossRegionRestoreClientAPI = (*backup.CrossRegionRestoreClient)(nil) + +// CrrJobDetailsClientAPI contains the set of methods on the CrrJobDetailsClient type. +type CrrJobDetailsClientAPI interface { + Get(ctx context.Context, azureRegion string, parameters backup.CrrJobRequest) (result backup.JobResource, err error) +} + +var _ CrrJobDetailsClientAPI = (*backup.CrrJobDetailsClient)(nil) + +// CrrJobsClientAPI contains the set of methods on the CrrJobsClient type. +type CrrJobsClientAPI interface { + List(ctx context.Context, azureRegion string, parameters backup.CrrJobRequest, filter string, skipToken string) (result backup.JobResourceListPage, err error) + ListComplete(ctx context.Context, azureRegion string, parameters backup.CrrJobRequest, filter string, skipToken string) (result backup.JobResourceListIterator, err error) +} + +var _ CrrJobsClientAPI = (*backup.CrrJobsClient)(nil) + +// CrrOperationResultsClientAPI contains the set of methods on the CrrOperationResultsClient type. +type CrrOperationResultsClientAPI interface { + Get(ctx context.Context, azureRegion string, operationID string) (result autorest.Response, err error) +} + +var _ CrrOperationResultsClientAPI = (*backup.CrrOperationResultsClient)(nil) + +// CrrOperationStatusClientAPI contains the set of methods on the CrrOperationStatusClient type. +type CrrOperationStatusClientAPI interface { + Get(ctx context.Context, azureRegion string, operationID string) (result backup.OperationStatus, err error) +} + +var _ CrrOperationStatusClientAPI = (*backup.CrrOperationStatusClient)(nil) + +// ResourceStorageConfigsClientAPI contains the set of methods on the ResourceStorageConfigsClient type. +type ResourceStorageConfigsClientAPI interface { + Get(ctx context.Context, vaultName string, resourceGroupName string) (result backup.ResourceConfigResource, err error) + Patch(ctx context.Context, vaultName string, resourceGroupName string, parameters backup.ResourceConfigResource) (result autorest.Response, err error) + Update(ctx context.Context, vaultName string, resourceGroupName string, parameters backup.ResourceConfigResource) (result backup.ResourceConfigResource, err error) +} + +var _ ResourceStorageConfigsClientAPI = (*backup.ResourceStorageConfigsClient)(nil) + +// RecoveryPointsCrrClientAPI contains the set of methods on the RecoveryPointsCrrClient type. +type RecoveryPointsCrrClientAPI interface { + List(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, filter string) (result backup.RecoveryPointResourceListPage, err error) + ListComplete(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, filter string) (result backup.RecoveryPointResourceListIterator, err error) +} + +var _ RecoveryPointsCrrClientAPI = (*backup.RecoveryPointsCrrClient)(nil) + +// ProtectedItemsCrrClientAPI contains the set of methods on the ProtectedItemsCrrClient type. +type ProtectedItemsCrrClientAPI interface { + List(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result backup.ProtectedItemResourceListPage, err error) + ListComplete(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result backup.ProtectedItemResourceListIterator, err error) +} + +var _ ProtectedItemsCrrClientAPI = (*backup.ProtectedItemsCrrClient)(nil) + +// ProtectionIntentClientAPI contains the set of methods on the ProtectionIntentClient type. +type ProtectionIntentClientAPI interface { + CreateOrUpdate(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, intentObjectName string, parameters backup.ProtectionIntentResource) (result backup.ProtectionIntentResource, err error) + Delete(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, intentObjectName string) (result autorest.Response, err error) + Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, intentObjectName string) (result backup.ProtectionIntentResource, err error) + Validate(ctx context.Context, azureRegion string, parameters backup.PreValidateEnableBackupRequest) (result backup.PreValidateEnableBackupResponse, err error) +} + +var _ ProtectionIntentClientAPI = (*backup.ProtectionIntentClient)(nil) + +// StatusClientAPI contains the set of methods on the StatusClient type. +type StatusClientAPI interface { + Get(ctx context.Context, azureRegion string, parameters backup.StatusRequest) (result backup.StatusResponse, err error) +} + +var _ StatusClientAPI = (*backup.StatusClient)(nil) + +// FeatureSupportClientAPI contains the set of methods on the FeatureSupportClient type. +type FeatureSupportClientAPI interface { + Validate(ctx context.Context, azureRegion string, parameters backup.BasicFeatureSupportRequest) (result backup.AzureVMResourceFeatureSupportResponse, err error) +} + +var _ FeatureSupportClientAPI = (*backup.FeatureSupportClient)(nil) + +// ProtectionIntentGroupClientAPI contains the set of methods on the ProtectionIntentGroupClient type. +type ProtectionIntentGroupClientAPI interface { + List(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result backup.ProtectionIntentResourceListPage, err error) + ListComplete(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result backup.ProtectionIntentResourceListIterator, err error) +} + +var _ ProtectionIntentGroupClientAPI = (*backup.ProtectionIntentGroupClient)(nil) + +// UsageSummariesClientAPI contains the set of methods on the UsageSummariesClient type. +type UsageSummariesClientAPI interface { + List(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result backup.ManagementUsageList, err error) +} + +var _ UsageSummariesClientAPI = (*backup.UsageSummariesClient)(nil) + +// OperationsClientAPI contains the set of methods on the OperationsClient type. +type OperationsClientAPI interface { + List(ctx context.Context) (result backup.ClientDiscoveryResponsePage, err error) + ListComplete(ctx context.Context) (result backup.ClientDiscoveryResponseIterator, err error) +} + +var _ OperationsClientAPI = (*backup.OperationsClient)(nil) diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/backups.go b/services/recoveryservices/mgmt/2021-01-01/backup/backups.go new file mode 100644 index 000000000000..0e6b5a9da57f --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/backups.go @@ -0,0 +1,116 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// BackupsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type BackupsClient struct { + BaseClient +} + +// NewBackupsClient creates an instance of the BackupsClient client. +func NewBackupsClient(subscriptionID string) BackupsClient { + return NewBackupsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewBackupsClientWithBaseURI creates an instance of the BackupsClient client using a custom endpoint. Use this when +// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewBackupsClientWithBaseURI(baseURI string, subscriptionID string) BackupsClient { + return BackupsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Trigger triggers backup for specified backed up item. This is an asynchronous operation. To know the status of the +// operation, call GetProtectedItemOperationResult API. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// fabricName - fabric name associated with the backup item. +// containerName - container name associated with the backup item. +// protectedItemName - backup item for which backup needs to be triggered. +// parameters - resource backup request +func (client BackupsClient) Trigger(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, parameters RequestResource) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BackupsClient.Trigger") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.TriggerPreparer(ctx, vaultName, resourceGroupName, fabricName, containerName, protectedItemName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.BackupsClient", "Trigger", nil, "Failure preparing request") + return + } + + resp, err := client.TriggerSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "backup.BackupsClient", "Trigger", resp, "Failure sending request") + return + } + + result, err = client.TriggerResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.BackupsClient", "Trigger", resp, "Failure responding to request") + return + } + + return +} + +// TriggerPreparer prepares the Trigger request. +func (client BackupsClient) TriggerPreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, parameters RequestResource) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "containerName": autorest.Encode("path", containerName), + "fabricName": autorest.Encode("path", fabricName), + "protectedItemName": autorest.Encode("path", protectedItemName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/backup", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// TriggerSender sends the Trigger request. The method will close the +// http.Response Body if it receives an error. +func (client BackupsClient) TriggerSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// TriggerResponder handles the response to the Trigger request. The method always +// closes the http.Response Body. +func (client BackupsClient) TriggerResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/bmspreparedatamoveoperationresult.go b/services/recoveryservices/mgmt/2021-01-01/backup/bmspreparedatamoveoperationresult.go new file mode 100644 index 000000000000..50de3421aa4e --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/bmspreparedatamoveoperationresult.go @@ -0,0 +1,110 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// BMSPrepareDataMoveOperationResultClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type BMSPrepareDataMoveOperationResultClient struct { + BaseClient +} + +// NewBMSPrepareDataMoveOperationResultClient creates an instance of the BMSPrepareDataMoveOperationResultClient +// client. +func NewBMSPrepareDataMoveOperationResultClient(subscriptionID string) BMSPrepareDataMoveOperationResultClient { + return NewBMSPrepareDataMoveOperationResultClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewBMSPrepareDataMoveOperationResultClientWithBaseURI creates an instance of the +// BMSPrepareDataMoveOperationResultClient client using a custom endpoint. Use this when interacting with an Azure +// cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewBMSPrepareDataMoveOperationResultClientWithBaseURI(baseURI string, subscriptionID string) BMSPrepareDataMoveOperationResultClient { + return BMSPrepareDataMoveOperationResultClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get fetches Operation Result for Prepare Data Move +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +func (client BMSPrepareDataMoveOperationResultClient) Get(ctx context.Context, vaultName string, resourceGroupName string, operationID string) (result VaultStorageConfigOperationResultResponseModel, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BMSPrepareDataMoveOperationResultClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, vaultName, resourceGroupName, operationID) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.BMSPrepareDataMoveOperationResultClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.BMSPrepareDataMoveOperationResultClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.BMSPrepareDataMoveOperationResultClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client BMSPrepareDataMoveOperationResultClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, operationID string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "operationId": autorest.Encode("path", operationID), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig/operationResults/{operationId}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client BMSPrepareDataMoveOperationResultClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client BMSPrepareDataMoveOperationResultClient) GetResponder(resp *http.Response) (result VaultStorageConfigOperationResultResponseModel, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/client.go b/services/recoveryservices/mgmt/2021-01-01/backup/client.go new file mode 100644 index 000000000000..04c9a444505b --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/client.go @@ -0,0 +1,382 @@ +// Package backup implements the Azure ARM Backup service API version . +// +// Open API 2.0 Specs for Azure RecoveryServices Backup service +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +const ( + // DefaultBaseURI is the default URI used for the service Backup + DefaultBaseURI = "https://management.azure.com" +) + +// BaseClient is the base client for Backup. +type BaseClient struct { + autorest.Client + BaseURI string + SubscriptionID string +} + +// New creates an instance of the BaseClient client. +func New(subscriptionID string) BaseClient { + return NewWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with +// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { + return BaseClient{ + Client: autorest.NewClientWithUserAgent(UserAgent()), + BaseURI: baseURI, + SubscriptionID: subscriptionID, + } +} + +// BMSPrepareDataMove prepares source vault for Data Move operation +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// parameters - prepare data move request +func (client BaseClient) BMSPrepareDataMove(ctx context.Context, vaultName string, resourceGroupName string, parameters PrepareDataMoveRequest) (result BMSPrepareDataMoveFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.BMSPrepareDataMove") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.TargetResourceID", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.TargetRegion", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("backup.BaseClient", "BMSPrepareDataMove", err.Error()) + } + + req, err := client.BMSPrepareDataMovePreparer(ctx, vaultName, resourceGroupName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.BaseClient", "BMSPrepareDataMove", nil, "Failure preparing request") + return + } + + result, err = client.BMSPrepareDataMoveSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.BaseClient", "BMSPrepareDataMove", nil, "Failure sending request") + return + } + + return +} + +// BMSPrepareDataMovePreparer prepares the BMSPrepareDataMove request. +func (client BaseClient) BMSPrepareDataMovePreparer(ctx context.Context, vaultName string, resourceGroupName string, parameters PrepareDataMoveRequest) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig/prepareDataMove", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// BMSPrepareDataMoveSender sends the BMSPrepareDataMove request. The method will close the +// http.Response Body if it receives an error. +func (client BaseClient) BMSPrepareDataMoveSender(req *http.Request) (future BMSPrepareDataMoveFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// BMSPrepareDataMoveResponder handles the response to the BMSPrepareDataMove request. The method always +// closes the http.Response Body. +func (client BaseClient) BMSPrepareDataMoveResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} + +// BMSTriggerDataMove triggers Data Move Operation on target vault +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// parameters - trigger data move request +func (client BaseClient) BMSTriggerDataMove(ctx context.Context, vaultName string, resourceGroupName string, parameters TriggerDataMoveRequest) (result BMSTriggerDataMoveFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.BMSTriggerDataMove") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.SourceResourceID", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.SourceRegion", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.CorrelationID", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("backup.BaseClient", "BMSTriggerDataMove", err.Error()) + } + + req, err := client.BMSTriggerDataMovePreparer(ctx, vaultName, resourceGroupName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.BaseClient", "BMSTriggerDataMove", nil, "Failure preparing request") + return + } + + result, err = client.BMSTriggerDataMoveSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.BaseClient", "BMSTriggerDataMove", nil, "Failure sending request") + return + } + + return +} + +// BMSTriggerDataMovePreparer prepares the BMSTriggerDataMove request. +func (client BaseClient) BMSTriggerDataMovePreparer(ctx context.Context, vaultName string, resourceGroupName string, parameters TriggerDataMoveRequest) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig/triggerDataMove", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// BMSTriggerDataMoveSender sends the BMSTriggerDataMove request. The method will close the +// http.Response Body if it receives an error. +func (client BaseClient) BMSTriggerDataMoveSender(req *http.Request) (future BMSTriggerDataMoveFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// BMSTriggerDataMoveResponder handles the response to the BMSTriggerDataMove request. The method always +// closes the http.Response Body. +func (client BaseClient) BMSTriggerDataMoveResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} + +// GetOperationStatus fetches operation status for data move operation on vault +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +func (client BaseClient) GetOperationStatus(ctx context.Context, vaultName string, resourceGroupName string, operationID string) (result OperationStatus, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.GetOperationStatus") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetOperationStatusPreparer(ctx, vaultName, resourceGroupName, operationID) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.BaseClient", "GetOperationStatus", nil, "Failure preparing request") + return + } + + resp, err := client.GetOperationStatusSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.BaseClient", "GetOperationStatus", resp, "Failure sending request") + return + } + + result, err = client.GetOperationStatusResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.BaseClient", "GetOperationStatus", resp, "Failure responding to request") + return + } + + return +} + +// GetOperationStatusPreparer prepares the GetOperationStatus request. +func (client BaseClient) GetOperationStatusPreparer(ctx context.Context, vaultName string, resourceGroupName string, operationID string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "operationId": autorest.Encode("path", operationID), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig/operationStatus/{operationId}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetOperationStatusSender sends the GetOperationStatus request. The method will close the +// http.Response Body if it receives an error. +func (client BaseClient) GetOperationStatusSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetOperationStatusResponder handles the response to the GetOperationStatus request. The method always +// closes the http.Response Body. +func (client BaseClient) GetOperationStatusResponder(resp *http.Response) (result OperationStatus, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// MoveRecoveryPoint sends the move recovery point request. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// parameters - move Resource Across Tiers Request +func (client BaseClient) MoveRecoveryPoint(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, recoveryPointID string, parameters MoveRPAcrossTiersRequest) (result MoveRecoveryPointFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.MoveRecoveryPoint") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.MoveRecoveryPointPreparer(ctx, vaultName, resourceGroupName, fabricName, containerName, protectedItemName, recoveryPointID, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.BaseClient", "MoveRecoveryPoint", nil, "Failure preparing request") + return + } + + result, err = client.MoveRecoveryPointSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.BaseClient", "MoveRecoveryPoint", nil, "Failure sending request") + return + } + + return +} + +// MoveRecoveryPointPreparer prepares the MoveRecoveryPoint request. +func (client BaseClient) MoveRecoveryPointPreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, recoveryPointID string, parameters MoveRPAcrossTiersRequest) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "containerName": autorest.Encode("path", containerName), + "fabricName": autorest.Encode("path", fabricName), + "protectedItemName": autorest.Encode("path", protectedItemName), + "recoveryPointId": autorest.Encode("path", recoveryPointID), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}/move", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// MoveRecoveryPointSender sends the MoveRecoveryPoint request. The method will close the +// http.Response Body if it receives an error. +func (client BaseClient) MoveRecoveryPointSender(req *http.Request) (future MoveRecoveryPointFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// MoveRecoveryPointResponder handles the response to the MoveRecoveryPoint request. The method always +// closes the http.Response Body. +func (client BaseClient) MoveRecoveryPointResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/crossregionrestore.go b/services/recoveryservices/mgmt/2021-01-01/backup/crossregionrestore.go new file mode 100644 index 000000000000..ff13f773d4f9 --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/crossregionrestore.go @@ -0,0 +1,110 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// CrossRegionRestoreClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type CrossRegionRestoreClient struct { + BaseClient +} + +// NewCrossRegionRestoreClient creates an instance of the CrossRegionRestoreClient client. +func NewCrossRegionRestoreClient(subscriptionID string) CrossRegionRestoreClient { + return NewCrossRegionRestoreClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewCrossRegionRestoreClientWithBaseURI creates an instance of the CrossRegionRestoreClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewCrossRegionRestoreClientWithBaseURI(baseURI string, subscriptionID string) CrossRegionRestoreClient { + return CrossRegionRestoreClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Trigger sends the trigger request. +// Parameters: +// azureRegion - azure region to hit Api +// parameters - resource cross region restore request +func (client CrossRegionRestoreClient) Trigger(ctx context.Context, azureRegion string, parameters CrossRegionRestoreRequest) (result CrossRegionRestoreTriggerFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/CrossRegionRestoreClient.Trigger") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.TriggerPreparer(ctx, azureRegion, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.CrossRegionRestoreClient", "Trigger", nil, "Failure preparing request") + return + } + + result, err = client.TriggerSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.CrossRegionRestoreClient", "Trigger", nil, "Failure sending request") + return + } + + return +} + +// TriggerPreparer prepares the Trigger request. +func (client CrossRegionRestoreClient) TriggerPreparer(ctx context.Context, azureRegion string, parameters CrossRegionRestoreRequest) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "azureRegion": autorest.Encode("path", azureRegion), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-12-20" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupCrossRegionRestore", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// TriggerSender sends the Trigger request. The method will close the +// http.Response Body if it receives an error. +func (client CrossRegionRestoreClient) TriggerSender(req *http.Request) (future CrossRegionRestoreTriggerFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// TriggerResponder handles the response to the Trigger request. The method always +// closes the http.Response Body. +func (client CrossRegionRestoreClient) TriggerResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/crrjobdetails.go b/services/recoveryservices/mgmt/2021-01-01/backup/crrjobdetails.go new file mode 100644 index 000000000000..71e262c790a7 --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/crrjobdetails.go @@ -0,0 +1,108 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// CrrJobDetailsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type CrrJobDetailsClient struct { + BaseClient +} + +// NewCrrJobDetailsClient creates an instance of the CrrJobDetailsClient client. +func NewCrrJobDetailsClient(subscriptionID string) CrrJobDetailsClient { + return NewCrrJobDetailsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewCrrJobDetailsClientWithBaseURI creates an instance of the CrrJobDetailsClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewCrrJobDetailsClientWithBaseURI(baseURI string, subscriptionID string) CrrJobDetailsClient { + return CrrJobDetailsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get sends the get request. +// Parameters: +// azureRegion - azure region to hit Api +// parameters - CRR Job request +func (client CrrJobDetailsClient) Get(ctx context.Context, azureRegion string, parameters CrrJobRequest) (result JobResource, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/CrrJobDetailsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, azureRegion, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.CrrJobDetailsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.CrrJobDetailsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.CrrJobDetailsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client CrrJobDetailsClient) GetPreparer(ctx context.Context, azureRegion string, parameters CrrJobRequest) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "azureRegion": autorest.Encode("path", azureRegion), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-12-20" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupCrrJob", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client CrrJobDetailsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client CrrJobDetailsClient) GetResponder(resp *http.Response) (result JobResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/crrjobs.go b/services/recoveryservices/mgmt/2021-01-01/backup/crrjobs.go new file mode 100644 index 000000000000..59c94321a7cb --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/crrjobs.go @@ -0,0 +1,158 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// CrrJobsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type CrrJobsClient struct { + BaseClient +} + +// NewCrrJobsClient creates an instance of the CrrJobsClient client. +func NewCrrJobsClient(subscriptionID string) CrrJobsClient { + return NewCrrJobsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewCrrJobsClientWithBaseURI creates an instance of the CrrJobsClient client using a custom endpoint. Use this when +// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewCrrJobsClientWithBaseURI(baseURI string, subscriptionID string) CrrJobsClient { + return CrrJobsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List sends the list request. +// Parameters: +// azureRegion - azure region to hit Api +// parameters - backup CRR Job request +// filter - oData filter options. +// skipToken - skipToken Filter. +func (client CrrJobsClient) List(ctx context.Context, azureRegion string, parameters CrrJobRequest, filter string, skipToken string) (result JobResourceListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/CrrJobsClient.List") + defer func() { + sc := -1 + if result.jrl.Response.Response != nil { + sc = result.jrl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, azureRegion, parameters, filter, skipToken) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.CrrJobsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.jrl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.CrrJobsClient", "List", resp, "Failure sending request") + return + } + + result.jrl, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.CrrJobsClient", "List", resp, "Failure responding to request") + return + } + if result.jrl.hasNextLink() && result.jrl.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client CrrJobsClient) ListPreparer(ctx context.Context, azureRegion string, parameters CrrJobRequest, filter string, skipToken string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "azureRegion": autorest.Encode("path", azureRegion), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-12-20" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(filter) > 0 { + queryParameters["$filter"] = autorest.Encode("query", filter) + } + if len(skipToken) > 0 { + queryParameters["$skipToken"] = autorest.Encode("query", skipToken) + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupCrrJobs", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client CrrJobsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client CrrJobsClient) ListResponder(resp *http.Response) (result JobResourceList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client CrrJobsClient) listNextResults(ctx context.Context, lastResults JobResourceList) (result JobResourceList, err error) { + req, err := lastResults.jobResourceListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "backup.CrrJobsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "backup.CrrJobsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.CrrJobsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client CrrJobsClient) ListComplete(ctx context.Context, azureRegion string, parameters CrrJobRequest, filter string, skipToken string) (result JobResourceListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/CrrJobsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, azureRegion, parameters, filter, skipToken) + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/crroperationresults.go b/services/recoveryservices/mgmt/2021-01-01/backup/crroperationresults.go new file mode 100644 index 000000000000..55dfa9ad021f --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/crroperationresults.go @@ -0,0 +1,106 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// CrrOperationResultsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type CrrOperationResultsClient struct { + BaseClient +} + +// NewCrrOperationResultsClient creates an instance of the CrrOperationResultsClient client. +func NewCrrOperationResultsClient(subscriptionID string) CrrOperationResultsClient { + return NewCrrOperationResultsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewCrrOperationResultsClientWithBaseURI creates an instance of the CrrOperationResultsClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewCrrOperationResultsClientWithBaseURI(baseURI string, subscriptionID string) CrrOperationResultsClient { + return CrrOperationResultsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get sends the get request. +// Parameters: +// azureRegion - azure region to hit Api +func (client CrrOperationResultsClient) Get(ctx context.Context, azureRegion string, operationID string) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/CrrOperationResultsClient.Get") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, azureRegion, operationID) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.CrrOperationResultsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "backup.CrrOperationResultsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.CrrOperationResultsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client CrrOperationResultsClient) GetPreparer(ctx context.Context, azureRegion string, operationID string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "azureRegion": autorest.Encode("path", azureRegion), + "operationId": autorest.Encode("path", operationID), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-12-20" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupCrrOperationResults/{operationId}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client CrrOperationResultsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client CrrOperationResultsClient) GetResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/crroperationstatus.go b/services/recoveryservices/mgmt/2021-01-01/backup/crroperationstatus.go new file mode 100644 index 000000000000..75fc8c000111 --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/crroperationstatus.go @@ -0,0 +1,107 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// CrrOperationStatusClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type CrrOperationStatusClient struct { + BaseClient +} + +// NewCrrOperationStatusClient creates an instance of the CrrOperationStatusClient client. +func NewCrrOperationStatusClient(subscriptionID string) CrrOperationStatusClient { + return NewCrrOperationStatusClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewCrrOperationStatusClientWithBaseURI creates an instance of the CrrOperationStatusClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewCrrOperationStatusClientWithBaseURI(baseURI string, subscriptionID string) CrrOperationStatusClient { + return CrrOperationStatusClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get sends the get request. +// Parameters: +// azureRegion - azure region to hit Api +func (client CrrOperationStatusClient) Get(ctx context.Context, azureRegion string, operationID string) (result OperationStatus, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/CrrOperationStatusClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, azureRegion, operationID) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.CrrOperationStatusClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.CrrOperationStatusClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.CrrOperationStatusClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client CrrOperationStatusClient) GetPreparer(ctx context.Context, azureRegion string, operationID string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "azureRegion": autorest.Encode("path", azureRegion), + "operationId": autorest.Encode("path", operationID), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-12-20" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupCrrOperationsStatus/{operationId}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client CrrOperationStatusClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client CrrOperationStatusClient) GetResponder(resp *http.Response) (result OperationStatus, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/engines.go b/services/recoveryservices/mgmt/2021-01-01/backup/engines.go new file mode 100644 index 000000000000..d9847690f8cf --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/engines.go @@ -0,0 +1,243 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// EnginesClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type EnginesClient struct { + BaseClient +} + +// NewEnginesClient creates an instance of the EnginesClient client. +func NewEnginesClient(subscriptionID string) EnginesClient { + return NewEnginesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewEnginesClientWithBaseURI creates an instance of the EnginesClient client using a custom endpoint. Use this when +// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewEnginesClientWithBaseURI(baseURI string, subscriptionID string) EnginesClient { + return EnginesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get returns backup management server registered to Recovery Services Vault. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// backupEngineName - name of the backup management server. +// filter - oData filter options. +// skipToken - skipToken Filter. +func (client EnginesClient) Get(ctx context.Context, vaultName string, resourceGroupName string, backupEngineName string, filter string, skipToken string) (result EngineBaseResource, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/EnginesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, vaultName, resourceGroupName, backupEngineName, filter, skipToken) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.EnginesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.EnginesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.EnginesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client EnginesClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, backupEngineName string, filter string, skipToken string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "backupEngineName": autorest.Encode("path", backupEngineName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(filter) > 0 { + queryParameters["$filter"] = autorest.Encode("query", filter) + } + if len(skipToken) > 0 { + queryParameters["$skipToken"] = autorest.Encode("query", skipToken) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupEngines/{backupEngineName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client EnginesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client EnginesClient) GetResponder(resp *http.Response) (result EngineBaseResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List backup management servers registered to Recovery Services Vault. Returns a pageable list of servers. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// filter - oData filter options. +// skipToken - skipToken Filter. +func (client EnginesClient) List(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result EngineBaseResourceListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/EnginesClient.List") + defer func() { + sc := -1 + if result.ebrl.Response.Response != nil { + sc = result.ebrl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, vaultName, resourceGroupName, filter, skipToken) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.EnginesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.ebrl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.EnginesClient", "List", resp, "Failure sending request") + return + } + + result.ebrl, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.EnginesClient", "List", resp, "Failure responding to request") + return + } + if result.ebrl.hasNextLink() && result.ebrl.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client EnginesClient) ListPreparer(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(filter) > 0 { + queryParameters["$filter"] = autorest.Encode("query", filter) + } + if len(skipToken) > 0 { + queryParameters["$skipToken"] = autorest.Encode("query", skipToken) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupEngines", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client EnginesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client EnginesClient) ListResponder(resp *http.Response) (result EngineBaseResourceList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client EnginesClient) listNextResults(ctx context.Context, lastResults EngineBaseResourceList) (result EngineBaseResourceList, err error) { + req, err := lastResults.engineBaseResourceListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "backup.EnginesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "backup.EnginesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.EnginesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client EnginesClient) ListComplete(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result EngineBaseResourceListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/EnginesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, vaultName, resourceGroupName, filter, skipToken) + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/enums.go b/services/recoveryservices/mgmt/2021-01-01/backup/enums.go new file mode 100644 index 000000000000..29f19c8150c7 --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/enums.go @@ -0,0 +1,1882 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AzureFileShareType enumerates the values for azure file share type. +type AzureFileShareType string + +const ( + // AzureFileShareTypeInvalid ... + AzureFileShareTypeInvalid AzureFileShareType = "Invalid" + // AzureFileShareTypeXSMB ... + AzureFileShareTypeXSMB AzureFileShareType = "XSMB" + // AzureFileShareTypeXSync ... + AzureFileShareTypeXSync AzureFileShareType = "XSync" +) + +// PossibleAzureFileShareTypeValues returns an array of possible values for the AzureFileShareType const type. +func PossibleAzureFileShareTypeValues() []AzureFileShareType { + return []AzureFileShareType{AzureFileShareTypeInvalid, AzureFileShareTypeXSMB, AzureFileShareTypeXSync} +} + +// ContainerType enumerates the values for container type. +type ContainerType string + +const ( + // ContainerTypeAzureBackupServerContainer ... + ContainerTypeAzureBackupServerContainer ContainerType = "AzureBackupServerContainer" + // ContainerTypeAzureSQLContainer ... + ContainerTypeAzureSQLContainer ContainerType = "AzureSqlContainer" + // ContainerTypeCluster ... + ContainerTypeCluster ContainerType = "Cluster" + // ContainerTypeDPMContainer ... + ContainerTypeDPMContainer ContainerType = "DPMContainer" + // ContainerTypeGenericContainer ... + ContainerTypeGenericContainer ContainerType = "GenericContainer" + // ContainerTypeIaasVMContainer ... + ContainerTypeIaasVMContainer ContainerType = "IaasVMContainer" + // ContainerTypeIaasVMServiceContainer ... + ContainerTypeIaasVMServiceContainer ContainerType = "IaasVMServiceContainer" + // ContainerTypeInvalid ... + ContainerTypeInvalid ContainerType = "Invalid" + // ContainerTypeMABContainer ... + ContainerTypeMABContainer ContainerType = "MABContainer" + // ContainerTypeSQLAGWorkLoadContainer ... + ContainerTypeSQLAGWorkLoadContainer ContainerType = "SQLAGWorkLoadContainer" + // ContainerTypeStorageContainer ... + ContainerTypeStorageContainer ContainerType = "StorageContainer" + // ContainerTypeUnknown ... + ContainerTypeUnknown ContainerType = "Unknown" + // ContainerTypeVCenter ... + ContainerTypeVCenter ContainerType = "VCenter" + // ContainerTypeVMAppContainer ... + ContainerTypeVMAppContainer ContainerType = "VMAppContainer" + // ContainerTypeWindows ... + ContainerTypeWindows ContainerType = "Windows" +) + +// PossibleContainerTypeValues returns an array of possible values for the ContainerType const type. +func PossibleContainerTypeValues() []ContainerType { + return []ContainerType{ContainerTypeAzureBackupServerContainer, ContainerTypeAzureSQLContainer, ContainerTypeCluster, ContainerTypeDPMContainer, ContainerTypeGenericContainer, ContainerTypeIaasVMContainer, ContainerTypeIaasVMServiceContainer, ContainerTypeInvalid, ContainerTypeMABContainer, ContainerTypeSQLAGWorkLoadContainer, ContainerTypeStorageContainer, ContainerTypeUnknown, ContainerTypeVCenter, ContainerTypeVMAppContainer, ContainerTypeWindows} +} + +// ContainerTypeBasicProtectionContainer enumerates the values for container type basic protection container. +type ContainerTypeBasicProtectionContainer string + +const ( + // ContainerTypeBasicProtectionContainerContainerTypeAzureBackupServerContainer ... + ContainerTypeBasicProtectionContainerContainerTypeAzureBackupServerContainer ContainerTypeBasicProtectionContainer = "AzureBackupServerContainer" + // ContainerTypeBasicProtectionContainerContainerTypeAzureSQLContainer ... + ContainerTypeBasicProtectionContainerContainerTypeAzureSQLContainer ContainerTypeBasicProtectionContainer = "AzureSqlContainer" + // ContainerTypeBasicProtectionContainerContainerTypeAzureWorkloadContainer ... + ContainerTypeBasicProtectionContainerContainerTypeAzureWorkloadContainer ContainerTypeBasicProtectionContainer = "AzureWorkloadContainer" + // ContainerTypeBasicProtectionContainerContainerTypeDPMContainer ... + ContainerTypeBasicProtectionContainerContainerTypeDPMContainer ContainerTypeBasicProtectionContainer = "DPMContainer" + // ContainerTypeBasicProtectionContainerContainerTypeGenericContainer ... + ContainerTypeBasicProtectionContainerContainerTypeGenericContainer ContainerTypeBasicProtectionContainer = "GenericContainer" + // ContainerTypeBasicProtectionContainerContainerTypeIaaSVMContainer ... + ContainerTypeBasicProtectionContainerContainerTypeIaaSVMContainer ContainerTypeBasicProtectionContainer = "IaaSVMContainer" + // ContainerTypeBasicProtectionContainerContainerTypeMicrosoftClassicComputevirtualMachines ... + ContainerTypeBasicProtectionContainerContainerTypeMicrosoftClassicComputevirtualMachines ContainerTypeBasicProtectionContainer = "Microsoft.ClassicCompute/virtualMachines" + // ContainerTypeBasicProtectionContainerContainerTypeMicrosoftComputevirtualMachines ... + ContainerTypeBasicProtectionContainerContainerTypeMicrosoftComputevirtualMachines ContainerTypeBasicProtectionContainer = "Microsoft.Compute/virtualMachines" + // ContainerTypeBasicProtectionContainerContainerTypeProtectionContainer ... + ContainerTypeBasicProtectionContainerContainerTypeProtectionContainer ContainerTypeBasicProtectionContainer = "ProtectionContainer" + // ContainerTypeBasicProtectionContainerContainerTypeSQLAGWorkLoadContainer ... + ContainerTypeBasicProtectionContainerContainerTypeSQLAGWorkLoadContainer ContainerTypeBasicProtectionContainer = "SQLAGWorkLoadContainer" + // ContainerTypeBasicProtectionContainerContainerTypeStorageContainer ... + ContainerTypeBasicProtectionContainerContainerTypeStorageContainer ContainerTypeBasicProtectionContainer = "StorageContainer" + // ContainerTypeBasicProtectionContainerContainerTypeVMAppContainer ... + ContainerTypeBasicProtectionContainerContainerTypeVMAppContainer ContainerTypeBasicProtectionContainer = "VMAppContainer" + // ContainerTypeBasicProtectionContainerContainerTypeWindows ... + ContainerTypeBasicProtectionContainerContainerTypeWindows ContainerTypeBasicProtectionContainer = "Windows" +) + +// PossibleContainerTypeBasicProtectionContainerValues returns an array of possible values for the ContainerTypeBasicProtectionContainer const type. +func PossibleContainerTypeBasicProtectionContainerValues() []ContainerTypeBasicProtectionContainer { + return []ContainerTypeBasicProtectionContainer{ContainerTypeBasicProtectionContainerContainerTypeAzureBackupServerContainer, ContainerTypeBasicProtectionContainerContainerTypeAzureSQLContainer, ContainerTypeBasicProtectionContainerContainerTypeAzureWorkloadContainer, ContainerTypeBasicProtectionContainerContainerTypeDPMContainer, ContainerTypeBasicProtectionContainerContainerTypeGenericContainer, ContainerTypeBasicProtectionContainerContainerTypeIaaSVMContainer, ContainerTypeBasicProtectionContainerContainerTypeMicrosoftClassicComputevirtualMachines, ContainerTypeBasicProtectionContainerContainerTypeMicrosoftComputevirtualMachines, ContainerTypeBasicProtectionContainerContainerTypeProtectionContainer, ContainerTypeBasicProtectionContainerContainerTypeSQLAGWorkLoadContainer, ContainerTypeBasicProtectionContainerContainerTypeStorageContainer, ContainerTypeBasicProtectionContainerContainerTypeVMAppContainer, ContainerTypeBasicProtectionContainerContainerTypeWindows} +} + +// CopyOptions enumerates the values for copy options. +type CopyOptions string + +const ( + // CopyOptionsCreateCopy ... + CopyOptionsCreateCopy CopyOptions = "CreateCopy" + // CopyOptionsFailOnConflict ... + CopyOptionsFailOnConflict CopyOptions = "FailOnConflict" + // CopyOptionsInvalid ... + CopyOptionsInvalid CopyOptions = "Invalid" + // CopyOptionsOverwrite ... + CopyOptionsOverwrite CopyOptions = "Overwrite" + // CopyOptionsSkip ... + CopyOptionsSkip CopyOptions = "Skip" +) + +// PossibleCopyOptionsValues returns an array of possible values for the CopyOptions const type. +func PossibleCopyOptionsValues() []CopyOptions { + return []CopyOptions{CopyOptionsCreateCopy, CopyOptionsFailOnConflict, CopyOptionsInvalid, CopyOptionsOverwrite, CopyOptionsSkip} +} + +// CreateMode enumerates the values for create mode. +type CreateMode string + +const ( + // CreateModeDefault ... + CreateModeDefault CreateMode = "Default" + // CreateModeInvalid ... + CreateModeInvalid CreateMode = "Invalid" + // CreateModeRecover ... + CreateModeRecover CreateMode = "Recover" +) + +// PossibleCreateModeValues returns an array of possible values for the CreateMode const type. +func PossibleCreateModeValues() []CreateMode { + return []CreateMode{CreateModeDefault, CreateModeInvalid, CreateModeRecover} +} + +// DataMoveLevel enumerates the values for data move level. +type DataMoveLevel string + +const ( + // DataMoveLevelContainer ... + DataMoveLevelContainer DataMoveLevel = "Container" + // DataMoveLevelInvalid ... + DataMoveLevelInvalid DataMoveLevel = "Invalid" + // DataMoveLevelVault ... + DataMoveLevelVault DataMoveLevel = "Vault" +) + +// PossibleDataMoveLevelValues returns an array of possible values for the DataMoveLevel const type. +func PossibleDataMoveLevelValues() []DataMoveLevel { + return []DataMoveLevel{DataMoveLevelContainer, DataMoveLevelInvalid, DataMoveLevelVault} +} + +// DataSourceType enumerates the values for data source type. +type DataSourceType string + +const ( + // DataSourceTypeAzureFileShare ... + DataSourceTypeAzureFileShare DataSourceType = "AzureFileShare" + // DataSourceTypeAzureSQLDb ... + DataSourceTypeAzureSQLDb DataSourceType = "AzureSqlDb" + // DataSourceTypeClient ... + DataSourceTypeClient DataSourceType = "Client" + // DataSourceTypeExchange ... + DataSourceTypeExchange DataSourceType = "Exchange" + // DataSourceTypeFileFolder ... + DataSourceTypeFileFolder DataSourceType = "FileFolder" + // DataSourceTypeGenericDataSource ... + DataSourceTypeGenericDataSource DataSourceType = "GenericDataSource" + // DataSourceTypeInvalid ... + DataSourceTypeInvalid DataSourceType = "Invalid" + // DataSourceTypeSAPAseDatabase ... + DataSourceTypeSAPAseDatabase DataSourceType = "SAPAseDatabase" + // DataSourceTypeSAPHanaDatabase ... + DataSourceTypeSAPHanaDatabase DataSourceType = "SAPHanaDatabase" + // DataSourceTypeSharepoint ... + DataSourceTypeSharepoint DataSourceType = "Sharepoint" + // DataSourceTypeSQLDataBase ... + DataSourceTypeSQLDataBase DataSourceType = "SQLDataBase" + // DataSourceTypeSQLDB ... + DataSourceTypeSQLDB DataSourceType = "SQLDB" + // DataSourceTypeSystemState ... + DataSourceTypeSystemState DataSourceType = "SystemState" + // DataSourceTypeVM ... + DataSourceTypeVM DataSourceType = "VM" + // DataSourceTypeVMwareVM ... + DataSourceTypeVMwareVM DataSourceType = "VMwareVM" +) + +// PossibleDataSourceTypeValues returns an array of possible values for the DataSourceType const type. +func PossibleDataSourceTypeValues() []DataSourceType { + return []DataSourceType{DataSourceTypeAzureFileShare, DataSourceTypeAzureSQLDb, DataSourceTypeClient, DataSourceTypeExchange, DataSourceTypeFileFolder, DataSourceTypeGenericDataSource, DataSourceTypeInvalid, DataSourceTypeSAPAseDatabase, DataSourceTypeSAPHanaDatabase, DataSourceTypeSharepoint, DataSourceTypeSQLDataBase, DataSourceTypeSQLDB, DataSourceTypeSystemState, DataSourceTypeVM, DataSourceTypeVMwareVM} +} + +// DayOfWeek enumerates the values for day of week. +type DayOfWeek string + +const ( + // DayOfWeekFriday ... + DayOfWeekFriday DayOfWeek = "Friday" + // DayOfWeekMonday ... + DayOfWeekMonday DayOfWeek = "Monday" + // DayOfWeekSaturday ... + DayOfWeekSaturday DayOfWeek = "Saturday" + // DayOfWeekSunday ... + DayOfWeekSunday DayOfWeek = "Sunday" + // DayOfWeekThursday ... + DayOfWeekThursday DayOfWeek = "Thursday" + // DayOfWeekTuesday ... + DayOfWeekTuesday DayOfWeek = "Tuesday" + // DayOfWeekWednesday ... + DayOfWeekWednesday DayOfWeek = "Wednesday" +) + +// PossibleDayOfWeekValues returns an array of possible values for the DayOfWeek const type. +func PossibleDayOfWeekValues() []DayOfWeek { + return []DayOfWeek{DayOfWeekFriday, DayOfWeekMonday, DayOfWeekSaturday, DayOfWeekSunday, DayOfWeekThursday, DayOfWeekTuesday, DayOfWeekWednesday} +} + +// EncryptionAtRestType enumerates the values for encryption at rest type. +type EncryptionAtRestType string + +const ( + // EncryptionAtRestTypeCustomerManaged ... + EncryptionAtRestTypeCustomerManaged EncryptionAtRestType = "CustomerManaged" + // EncryptionAtRestTypeInvalid ... + EncryptionAtRestTypeInvalid EncryptionAtRestType = "Invalid" + // EncryptionAtRestTypeMicrosoftManaged ... + EncryptionAtRestTypeMicrosoftManaged EncryptionAtRestType = "MicrosoftManaged" +) + +// PossibleEncryptionAtRestTypeValues returns an array of possible values for the EncryptionAtRestType const type. +func PossibleEncryptionAtRestTypeValues() []EncryptionAtRestType { + return []EncryptionAtRestType{EncryptionAtRestTypeCustomerManaged, EncryptionAtRestTypeInvalid, EncryptionAtRestTypeMicrosoftManaged} +} + +// EngineType enumerates the values for engine type. +type EngineType string + +const ( + // EngineTypeBackupEngineTypeAzureBackupServerEngine ... + EngineTypeBackupEngineTypeAzureBackupServerEngine EngineType = "AzureBackupServerEngine" + // EngineTypeBackupEngineTypeBackupEngineBase ... + EngineTypeBackupEngineTypeBackupEngineBase EngineType = "BackupEngineBase" + // EngineTypeBackupEngineTypeDpmBackupEngine ... + EngineTypeBackupEngineTypeDpmBackupEngine EngineType = "DpmBackupEngine" +) + +// PossibleEngineTypeValues returns an array of possible values for the EngineType const type. +func PossibleEngineTypeValues() []EngineType { + return []EngineType{EngineTypeBackupEngineTypeAzureBackupServerEngine, EngineTypeBackupEngineTypeBackupEngineBase, EngineTypeBackupEngineTypeDpmBackupEngine} +} + +// EnhancedSecurityState enumerates the values for enhanced security state. +type EnhancedSecurityState string + +const ( + // EnhancedSecurityStateDisabled ... + EnhancedSecurityStateDisabled EnhancedSecurityState = "Disabled" + // EnhancedSecurityStateEnabled ... + EnhancedSecurityStateEnabled EnhancedSecurityState = "Enabled" + // EnhancedSecurityStateInvalid ... + EnhancedSecurityStateInvalid EnhancedSecurityState = "Invalid" +) + +// PossibleEnhancedSecurityStateValues returns an array of possible values for the EnhancedSecurityState const type. +func PossibleEnhancedSecurityStateValues() []EnhancedSecurityState { + return []EnhancedSecurityState{EnhancedSecurityStateDisabled, EnhancedSecurityStateEnabled, EnhancedSecurityStateInvalid} +} + +// FabricName enumerates the values for fabric name. +type FabricName string + +const ( + // FabricNameAzure ... + FabricNameAzure FabricName = "Azure" + // FabricNameInvalid ... + FabricNameInvalid FabricName = "Invalid" +) + +// PossibleFabricNameValues returns an array of possible values for the FabricName const type. +func PossibleFabricNameValues() []FabricName { + return []FabricName{FabricNameAzure, FabricNameInvalid} +} + +// FeatureType enumerates the values for feature type. +type FeatureType string + +const ( + // FeatureTypeAzureBackupGoals ... + FeatureTypeAzureBackupGoals FeatureType = "AzureBackupGoals" + // FeatureTypeAzureVMResourceBackup ... + FeatureTypeAzureVMResourceBackup FeatureType = "AzureVMResourceBackup" + // FeatureTypeFeatureSupportRequest ... + FeatureTypeFeatureSupportRequest FeatureType = "FeatureSupportRequest" +) + +// PossibleFeatureTypeValues returns an array of possible values for the FeatureType const type. +func PossibleFeatureTypeValues() []FeatureType { + return []FeatureType{FeatureTypeAzureBackupGoals, FeatureTypeAzureVMResourceBackup, FeatureTypeFeatureSupportRequest} +} + +// HealthState enumerates the values for health state. +type HealthState string + +const ( + // HealthStateActionRequired ... + HealthStateActionRequired HealthState = "ActionRequired" + // HealthStateActionSuggested ... + HealthStateActionSuggested HealthState = "ActionSuggested" + // HealthStateInvalid ... + HealthStateInvalid HealthState = "Invalid" + // HealthStatePassed ... + HealthStatePassed HealthState = "Passed" +) + +// PossibleHealthStateValues returns an array of possible values for the HealthState const type. +func PossibleHealthStateValues() []HealthState { + return []HealthState{HealthStateActionRequired, HealthStateActionSuggested, HealthStateInvalid, HealthStatePassed} +} + +// HealthStatus enumerates the values for health status. +type HealthStatus string + +const ( + // HealthStatusActionRequired ... + HealthStatusActionRequired HealthStatus = "ActionRequired" + // HealthStatusActionSuggested ... + HealthStatusActionSuggested HealthStatus = "ActionSuggested" + // HealthStatusInvalid ... + HealthStatusInvalid HealthStatus = "Invalid" + // HealthStatusPassed ... + HealthStatusPassed HealthStatus = "Passed" +) + +// PossibleHealthStatusValues returns an array of possible values for the HealthStatus const type. +func PossibleHealthStatusValues() []HealthStatus { + return []HealthStatus{HealthStatusActionRequired, HealthStatusActionSuggested, HealthStatusInvalid, HealthStatusPassed} +} + +// HTTPStatusCode enumerates the values for http status code. +type HTTPStatusCode string + +const ( + // HTTPStatusCodeAccepted ... + HTTPStatusCodeAccepted HTTPStatusCode = "Accepted" + // HTTPStatusCodeAmbiguous ... + HTTPStatusCodeAmbiguous HTTPStatusCode = "Ambiguous" + // HTTPStatusCodeBadGateway ... + HTTPStatusCodeBadGateway HTTPStatusCode = "BadGateway" + // HTTPStatusCodeBadRequest ... + HTTPStatusCodeBadRequest HTTPStatusCode = "BadRequest" + // HTTPStatusCodeConflict ... + HTTPStatusCodeConflict HTTPStatusCode = "Conflict" + // HTTPStatusCodeContinue ... + HTTPStatusCodeContinue HTTPStatusCode = "Continue" + // HTTPStatusCodeCreated ... + HTTPStatusCodeCreated HTTPStatusCode = "Created" + // HTTPStatusCodeExpectationFailed ... + HTTPStatusCodeExpectationFailed HTTPStatusCode = "ExpectationFailed" + // HTTPStatusCodeForbidden ... + HTTPStatusCodeForbidden HTTPStatusCode = "Forbidden" + // HTTPStatusCodeFound ... + HTTPStatusCodeFound HTTPStatusCode = "Found" + // HTTPStatusCodeGatewayTimeout ... + HTTPStatusCodeGatewayTimeout HTTPStatusCode = "GatewayTimeout" + // HTTPStatusCodeGone ... + HTTPStatusCodeGone HTTPStatusCode = "Gone" + // HTTPStatusCodeHTTPVersionNotSupported ... + HTTPStatusCodeHTTPVersionNotSupported HTTPStatusCode = "HttpVersionNotSupported" + // HTTPStatusCodeInternalServerError ... + HTTPStatusCodeInternalServerError HTTPStatusCode = "InternalServerError" + // HTTPStatusCodeLengthRequired ... + HTTPStatusCodeLengthRequired HTTPStatusCode = "LengthRequired" + // HTTPStatusCodeMethodNotAllowed ... + HTTPStatusCodeMethodNotAllowed HTTPStatusCode = "MethodNotAllowed" + // HTTPStatusCodeMoved ... + HTTPStatusCodeMoved HTTPStatusCode = "Moved" + // HTTPStatusCodeMovedPermanently ... + HTTPStatusCodeMovedPermanently HTTPStatusCode = "MovedPermanently" + // HTTPStatusCodeMultipleChoices ... + HTTPStatusCodeMultipleChoices HTTPStatusCode = "MultipleChoices" + // HTTPStatusCodeNoContent ... + HTTPStatusCodeNoContent HTTPStatusCode = "NoContent" + // HTTPStatusCodeNonAuthoritativeInformation ... + HTTPStatusCodeNonAuthoritativeInformation HTTPStatusCode = "NonAuthoritativeInformation" + // HTTPStatusCodeNotAcceptable ... + HTTPStatusCodeNotAcceptable HTTPStatusCode = "NotAcceptable" + // HTTPStatusCodeNotFound ... + HTTPStatusCodeNotFound HTTPStatusCode = "NotFound" + // HTTPStatusCodeNotImplemented ... + HTTPStatusCodeNotImplemented HTTPStatusCode = "NotImplemented" + // HTTPStatusCodeNotModified ... + HTTPStatusCodeNotModified HTTPStatusCode = "NotModified" + // HTTPStatusCodeOK ... + HTTPStatusCodeOK HTTPStatusCode = "OK" + // HTTPStatusCodePartialContent ... + HTTPStatusCodePartialContent HTTPStatusCode = "PartialContent" + // HTTPStatusCodePaymentRequired ... + HTTPStatusCodePaymentRequired HTTPStatusCode = "PaymentRequired" + // HTTPStatusCodePreconditionFailed ... + HTTPStatusCodePreconditionFailed HTTPStatusCode = "PreconditionFailed" + // HTTPStatusCodeProxyAuthenticationRequired ... + HTTPStatusCodeProxyAuthenticationRequired HTTPStatusCode = "ProxyAuthenticationRequired" + // HTTPStatusCodeRedirect ... + HTTPStatusCodeRedirect HTTPStatusCode = "Redirect" + // HTTPStatusCodeRedirectKeepVerb ... + HTTPStatusCodeRedirectKeepVerb HTTPStatusCode = "RedirectKeepVerb" + // HTTPStatusCodeRedirectMethod ... + HTTPStatusCodeRedirectMethod HTTPStatusCode = "RedirectMethod" + // HTTPStatusCodeRequestedRangeNotSatisfiable ... + HTTPStatusCodeRequestedRangeNotSatisfiable HTTPStatusCode = "RequestedRangeNotSatisfiable" + // HTTPStatusCodeRequestEntityTooLarge ... + HTTPStatusCodeRequestEntityTooLarge HTTPStatusCode = "RequestEntityTooLarge" + // HTTPStatusCodeRequestTimeout ... + HTTPStatusCodeRequestTimeout HTTPStatusCode = "RequestTimeout" + // HTTPStatusCodeRequestURITooLong ... + HTTPStatusCodeRequestURITooLong HTTPStatusCode = "RequestUriTooLong" + // HTTPStatusCodeResetContent ... + HTTPStatusCodeResetContent HTTPStatusCode = "ResetContent" + // HTTPStatusCodeSeeOther ... + HTTPStatusCodeSeeOther HTTPStatusCode = "SeeOther" + // HTTPStatusCodeServiceUnavailable ... + HTTPStatusCodeServiceUnavailable HTTPStatusCode = "ServiceUnavailable" + // HTTPStatusCodeSwitchingProtocols ... + HTTPStatusCodeSwitchingProtocols HTTPStatusCode = "SwitchingProtocols" + // HTTPStatusCodeTemporaryRedirect ... + HTTPStatusCodeTemporaryRedirect HTTPStatusCode = "TemporaryRedirect" + // HTTPStatusCodeUnauthorized ... + HTTPStatusCodeUnauthorized HTTPStatusCode = "Unauthorized" + // HTTPStatusCodeUnsupportedMediaType ... + HTTPStatusCodeUnsupportedMediaType HTTPStatusCode = "UnsupportedMediaType" + // HTTPStatusCodeUnused ... + HTTPStatusCodeUnused HTTPStatusCode = "Unused" + // HTTPStatusCodeUpgradeRequired ... + HTTPStatusCodeUpgradeRequired HTTPStatusCode = "UpgradeRequired" + // HTTPStatusCodeUseProxy ... + HTTPStatusCodeUseProxy HTTPStatusCode = "UseProxy" +) + +// PossibleHTTPStatusCodeValues returns an array of possible values for the HTTPStatusCode const type. +func PossibleHTTPStatusCodeValues() []HTTPStatusCode { + return []HTTPStatusCode{HTTPStatusCodeAccepted, HTTPStatusCodeAmbiguous, HTTPStatusCodeBadGateway, HTTPStatusCodeBadRequest, HTTPStatusCodeConflict, HTTPStatusCodeContinue, HTTPStatusCodeCreated, HTTPStatusCodeExpectationFailed, HTTPStatusCodeForbidden, HTTPStatusCodeFound, HTTPStatusCodeGatewayTimeout, HTTPStatusCodeGone, HTTPStatusCodeHTTPVersionNotSupported, HTTPStatusCodeInternalServerError, HTTPStatusCodeLengthRequired, HTTPStatusCodeMethodNotAllowed, HTTPStatusCodeMoved, HTTPStatusCodeMovedPermanently, HTTPStatusCodeMultipleChoices, HTTPStatusCodeNoContent, HTTPStatusCodeNonAuthoritativeInformation, HTTPStatusCodeNotAcceptable, HTTPStatusCodeNotFound, HTTPStatusCodeNotImplemented, HTTPStatusCodeNotModified, HTTPStatusCodeOK, HTTPStatusCodePartialContent, HTTPStatusCodePaymentRequired, HTTPStatusCodePreconditionFailed, HTTPStatusCodeProxyAuthenticationRequired, HTTPStatusCodeRedirect, HTTPStatusCodeRedirectKeepVerb, HTTPStatusCodeRedirectMethod, HTTPStatusCodeRequestedRangeNotSatisfiable, HTTPStatusCodeRequestEntityTooLarge, HTTPStatusCodeRequestTimeout, HTTPStatusCodeRequestURITooLong, HTTPStatusCodeResetContent, HTTPStatusCodeSeeOther, HTTPStatusCodeServiceUnavailable, HTTPStatusCodeSwitchingProtocols, HTTPStatusCodeTemporaryRedirect, HTTPStatusCodeUnauthorized, HTTPStatusCodeUnsupportedMediaType, HTTPStatusCodeUnused, HTTPStatusCodeUpgradeRequired, HTTPStatusCodeUseProxy} +} + +// InfrastructureEncryptionState enumerates the values for infrastructure encryption state. +type InfrastructureEncryptionState string + +const ( + // InfrastructureEncryptionStateDisabled ... + InfrastructureEncryptionStateDisabled InfrastructureEncryptionState = "Disabled" + // InfrastructureEncryptionStateEnabled ... + InfrastructureEncryptionStateEnabled InfrastructureEncryptionState = "Enabled" + // InfrastructureEncryptionStateInvalid ... + InfrastructureEncryptionStateInvalid InfrastructureEncryptionState = "Invalid" +) + +// PossibleInfrastructureEncryptionStateValues returns an array of possible values for the InfrastructureEncryptionState const type. +func PossibleInfrastructureEncryptionStateValues() []InfrastructureEncryptionState { + return []InfrastructureEncryptionState{InfrastructureEncryptionStateDisabled, InfrastructureEncryptionStateEnabled, InfrastructureEncryptionStateInvalid} +} + +// InquiryStatus enumerates the values for inquiry status. +type InquiryStatus string + +const ( + // InquiryStatusFailed ... + InquiryStatusFailed InquiryStatus = "Failed" + // InquiryStatusInvalid ... + InquiryStatusInvalid InquiryStatus = "Invalid" + // InquiryStatusSuccess ... + InquiryStatusSuccess InquiryStatus = "Success" +) + +// PossibleInquiryStatusValues returns an array of possible values for the InquiryStatus const type. +func PossibleInquiryStatusValues() []InquiryStatus { + return []InquiryStatus{InquiryStatusFailed, InquiryStatusInvalid, InquiryStatusSuccess} +} + +// IntentItemType enumerates the values for intent item type. +type IntentItemType string + +const ( + // IntentItemTypeInvalid ... + IntentItemTypeInvalid IntentItemType = "Invalid" + // IntentItemTypeSQLAvailabilityGroupContainer ... + IntentItemTypeSQLAvailabilityGroupContainer IntentItemType = "SQLAvailabilityGroupContainer" + // IntentItemTypeSQLInstance ... + IntentItemTypeSQLInstance IntentItemType = "SQLInstance" +) + +// PossibleIntentItemTypeValues returns an array of possible values for the IntentItemType const type. +func PossibleIntentItemTypeValues() []IntentItemType { + return []IntentItemType{IntentItemTypeInvalid, IntentItemTypeSQLAvailabilityGroupContainer, IntentItemTypeSQLInstance} +} + +// ItemType enumerates the values for item type. +type ItemType string + +const ( + // ItemTypeAzureFileShare ... + ItemTypeAzureFileShare ItemType = "AzureFileShare" + // ItemTypeAzureSQLDb ... + ItemTypeAzureSQLDb ItemType = "AzureSqlDb" + // ItemTypeClient ... + ItemTypeClient ItemType = "Client" + // ItemTypeExchange ... + ItemTypeExchange ItemType = "Exchange" + // ItemTypeFileFolder ... + ItemTypeFileFolder ItemType = "FileFolder" + // ItemTypeGenericDataSource ... + ItemTypeGenericDataSource ItemType = "GenericDataSource" + // ItemTypeInvalid ... + ItemTypeInvalid ItemType = "Invalid" + // ItemTypeSAPAseDatabase ... + ItemTypeSAPAseDatabase ItemType = "SAPAseDatabase" + // ItemTypeSAPHanaDatabase ... + ItemTypeSAPHanaDatabase ItemType = "SAPHanaDatabase" + // ItemTypeSharepoint ... + ItemTypeSharepoint ItemType = "Sharepoint" + // ItemTypeSQLDataBase ... + ItemTypeSQLDataBase ItemType = "SQLDataBase" + // ItemTypeSQLDB ... + ItemTypeSQLDB ItemType = "SQLDB" + // ItemTypeSystemState ... + ItemTypeSystemState ItemType = "SystemState" + // ItemTypeVM ... + ItemTypeVM ItemType = "VM" + // ItemTypeVMwareVM ... + ItemTypeVMwareVM ItemType = "VMwareVM" +) + +// PossibleItemTypeValues returns an array of possible values for the ItemType const type. +func PossibleItemTypeValues() []ItemType { + return []ItemType{ItemTypeAzureFileShare, ItemTypeAzureSQLDb, ItemTypeClient, ItemTypeExchange, ItemTypeFileFolder, ItemTypeGenericDataSource, ItemTypeInvalid, ItemTypeSAPAseDatabase, ItemTypeSAPHanaDatabase, ItemTypeSharepoint, ItemTypeSQLDataBase, ItemTypeSQLDB, ItemTypeSystemState, ItemTypeVM, ItemTypeVMwareVM} +} + +// JobOperationType enumerates the values for job operation type. +type JobOperationType string + +const ( + // JobOperationTypeBackup ... + JobOperationTypeBackup JobOperationType = "Backup" + // JobOperationTypeConfigureBackup ... + JobOperationTypeConfigureBackup JobOperationType = "ConfigureBackup" + // JobOperationTypeCrossRegionRestore ... + JobOperationTypeCrossRegionRestore JobOperationType = "CrossRegionRestore" + // JobOperationTypeDeleteBackupData ... + JobOperationTypeDeleteBackupData JobOperationType = "DeleteBackupData" + // JobOperationTypeDisableBackup ... + JobOperationTypeDisableBackup JobOperationType = "DisableBackup" + // JobOperationTypeInvalid ... + JobOperationTypeInvalid JobOperationType = "Invalid" + // JobOperationTypeRegister ... + JobOperationTypeRegister JobOperationType = "Register" + // JobOperationTypeRestore ... + JobOperationTypeRestore JobOperationType = "Restore" + // JobOperationTypeUndelete ... + JobOperationTypeUndelete JobOperationType = "Undelete" + // JobOperationTypeUnRegister ... + JobOperationTypeUnRegister JobOperationType = "UnRegister" + // JobOperationTypeUpdateCustomerManagedKey ... + JobOperationTypeUpdateCustomerManagedKey JobOperationType = "UpdateCustomerManagedKey" +) + +// PossibleJobOperationTypeValues returns an array of possible values for the JobOperationType const type. +func PossibleJobOperationTypeValues() []JobOperationType { + return []JobOperationType{JobOperationTypeBackup, JobOperationTypeConfigureBackup, JobOperationTypeCrossRegionRestore, JobOperationTypeDeleteBackupData, JobOperationTypeDisableBackup, JobOperationTypeInvalid, JobOperationTypeRegister, JobOperationTypeRestore, JobOperationTypeUndelete, JobOperationTypeUnRegister, JobOperationTypeUpdateCustomerManagedKey} +} + +// JobStatus enumerates the values for job status. +type JobStatus string + +const ( + // JobStatusCancelled ... + JobStatusCancelled JobStatus = "Cancelled" + // JobStatusCancelling ... + JobStatusCancelling JobStatus = "Cancelling" + // JobStatusCompleted ... + JobStatusCompleted JobStatus = "Completed" + // JobStatusCompletedWithWarnings ... + JobStatusCompletedWithWarnings JobStatus = "CompletedWithWarnings" + // JobStatusFailed ... + JobStatusFailed JobStatus = "Failed" + // JobStatusInProgress ... + JobStatusInProgress JobStatus = "InProgress" + // JobStatusInvalid ... + JobStatusInvalid JobStatus = "Invalid" +) + +// PossibleJobStatusValues returns an array of possible values for the JobStatus const type. +func PossibleJobStatusValues() []JobStatus { + return []JobStatus{JobStatusCancelled, JobStatusCancelling, JobStatusCompleted, JobStatusCompletedWithWarnings, JobStatusFailed, JobStatusInProgress, JobStatusInvalid} +} + +// JobSupportedAction enumerates the values for job supported action. +type JobSupportedAction string + +const ( + // JobSupportedActionCancellable ... + JobSupportedActionCancellable JobSupportedAction = "Cancellable" + // JobSupportedActionInvalid ... + JobSupportedActionInvalid JobSupportedAction = "Invalid" + // JobSupportedActionRetriable ... + JobSupportedActionRetriable JobSupportedAction = "Retriable" +) + +// PossibleJobSupportedActionValues returns an array of possible values for the JobSupportedAction const type. +func PossibleJobSupportedActionValues() []JobSupportedAction { + return []JobSupportedAction{JobSupportedActionCancellable, JobSupportedActionInvalid, JobSupportedActionRetriable} +} + +// JobType enumerates the values for job type. +type JobType string + +const ( + // JobTypeAzureIaaSVMJob ... + JobTypeAzureIaaSVMJob JobType = "AzureIaaSVMJob" + // JobTypeAzureStorageJob ... + JobTypeAzureStorageJob JobType = "AzureStorageJob" + // JobTypeAzureWorkloadJob ... + JobTypeAzureWorkloadJob JobType = "AzureWorkloadJob" + // JobTypeDpmJob ... + JobTypeDpmJob JobType = "DpmJob" + // JobTypeJob ... + JobTypeJob JobType = "Job" + // JobTypeMabJob ... + JobTypeMabJob JobType = "MabJob" + // JobTypeVaultJob ... + JobTypeVaultJob JobType = "VaultJob" +) + +// PossibleJobTypeValues returns an array of possible values for the JobType const type. +func PossibleJobTypeValues() []JobType { + return []JobType{JobTypeAzureIaaSVMJob, JobTypeAzureStorageJob, JobTypeAzureWorkloadJob, JobTypeDpmJob, JobTypeJob, JobTypeMabJob, JobTypeVaultJob} +} + +// LastBackupStatus enumerates the values for last backup status. +type LastBackupStatus string + +const ( + // LastBackupStatusHealthy ... + LastBackupStatusHealthy LastBackupStatus = "Healthy" + // LastBackupStatusInvalid ... + LastBackupStatusInvalid LastBackupStatus = "Invalid" + // LastBackupStatusIRPending ... + LastBackupStatusIRPending LastBackupStatus = "IRPending" + // LastBackupStatusUnhealthy ... + LastBackupStatusUnhealthy LastBackupStatus = "Unhealthy" +) + +// PossibleLastBackupStatusValues returns an array of possible values for the LastBackupStatus const type. +func PossibleLastBackupStatusValues() []LastBackupStatus { + return []LastBackupStatus{LastBackupStatusHealthy, LastBackupStatusInvalid, LastBackupStatusIRPending, LastBackupStatusUnhealthy} +} + +// LastUpdateStatus enumerates the values for last update status. +type LastUpdateStatus string + +const ( + // LastUpdateStatusFailed ... + LastUpdateStatusFailed LastUpdateStatus = "Failed" + // LastUpdateStatusInvalid ... + LastUpdateStatusInvalid LastUpdateStatus = "Invalid" + // LastUpdateStatusNotEnabled ... + LastUpdateStatusNotEnabled LastUpdateStatus = "NotEnabled" + // LastUpdateStatusPartiallyFailed ... + LastUpdateStatusPartiallyFailed LastUpdateStatus = "PartiallyFailed" + // LastUpdateStatusPartiallySucceeded ... + LastUpdateStatusPartiallySucceeded LastUpdateStatus = "PartiallySucceeded" + // LastUpdateStatusSucceeded ... + LastUpdateStatusSucceeded LastUpdateStatus = "Succeeded" +) + +// PossibleLastUpdateStatusValues returns an array of possible values for the LastUpdateStatus const type. +func PossibleLastUpdateStatusValues() []LastUpdateStatus { + return []LastUpdateStatus{LastUpdateStatusFailed, LastUpdateStatusInvalid, LastUpdateStatusNotEnabled, LastUpdateStatusPartiallyFailed, LastUpdateStatusPartiallySucceeded, LastUpdateStatusSucceeded} +} + +// MabServerType enumerates the values for mab server type. +type MabServerType string + +const ( + // MabServerTypeAzureBackupServerContainer ... + MabServerTypeAzureBackupServerContainer MabServerType = "AzureBackupServerContainer" + // MabServerTypeAzureSQLContainer ... + MabServerTypeAzureSQLContainer MabServerType = "AzureSqlContainer" + // MabServerTypeCluster ... + MabServerTypeCluster MabServerType = "Cluster" + // MabServerTypeDPMContainer ... + MabServerTypeDPMContainer MabServerType = "DPMContainer" + // MabServerTypeGenericContainer ... + MabServerTypeGenericContainer MabServerType = "GenericContainer" + // MabServerTypeIaasVMContainer ... + MabServerTypeIaasVMContainer MabServerType = "IaasVMContainer" + // MabServerTypeIaasVMServiceContainer ... + MabServerTypeIaasVMServiceContainer MabServerType = "IaasVMServiceContainer" + // MabServerTypeInvalid ... + MabServerTypeInvalid MabServerType = "Invalid" + // MabServerTypeMABContainer ... + MabServerTypeMABContainer MabServerType = "MABContainer" + // MabServerTypeSQLAGWorkLoadContainer ... + MabServerTypeSQLAGWorkLoadContainer MabServerType = "SQLAGWorkLoadContainer" + // MabServerTypeStorageContainer ... + MabServerTypeStorageContainer MabServerType = "StorageContainer" + // MabServerTypeUnknown ... + MabServerTypeUnknown MabServerType = "Unknown" + // MabServerTypeVCenter ... + MabServerTypeVCenter MabServerType = "VCenter" + // MabServerTypeVMAppContainer ... + MabServerTypeVMAppContainer MabServerType = "VMAppContainer" + // MabServerTypeWindows ... + MabServerTypeWindows MabServerType = "Windows" +) + +// PossibleMabServerTypeValues returns an array of possible values for the MabServerType const type. +func PossibleMabServerTypeValues() []MabServerType { + return []MabServerType{MabServerTypeAzureBackupServerContainer, MabServerTypeAzureSQLContainer, MabServerTypeCluster, MabServerTypeDPMContainer, MabServerTypeGenericContainer, MabServerTypeIaasVMContainer, MabServerTypeIaasVMServiceContainer, MabServerTypeInvalid, MabServerTypeMABContainer, MabServerTypeSQLAGWorkLoadContainer, MabServerTypeStorageContainer, MabServerTypeUnknown, MabServerTypeVCenter, MabServerTypeVMAppContainer, MabServerTypeWindows} +} + +// ManagementType enumerates the values for management type. +type ManagementType string + +const ( + // ManagementTypeAzureBackupServer ... + ManagementTypeAzureBackupServer ManagementType = "AzureBackupServer" + // ManagementTypeAzureIaasVM ... + ManagementTypeAzureIaasVM ManagementType = "AzureIaasVM" + // ManagementTypeAzureSQL ... + ManagementTypeAzureSQL ManagementType = "AzureSql" + // ManagementTypeAzureStorage ... + ManagementTypeAzureStorage ManagementType = "AzureStorage" + // ManagementTypeAzureWorkload ... + ManagementTypeAzureWorkload ManagementType = "AzureWorkload" + // ManagementTypeDefaultBackup ... + ManagementTypeDefaultBackup ManagementType = "DefaultBackup" + // ManagementTypeDPM ... + ManagementTypeDPM ManagementType = "DPM" + // ManagementTypeInvalid ... + ManagementTypeInvalid ManagementType = "Invalid" + // ManagementTypeMAB ... + ManagementTypeMAB ManagementType = "MAB" +) + +// PossibleManagementTypeValues returns an array of possible values for the ManagementType const type. +func PossibleManagementTypeValues() []ManagementType { + return []ManagementType{ManagementTypeAzureBackupServer, ManagementTypeAzureIaasVM, ManagementTypeAzureSQL, ManagementTypeAzureStorage, ManagementTypeAzureWorkload, ManagementTypeDefaultBackup, ManagementTypeDPM, ManagementTypeInvalid, ManagementTypeMAB} +} + +// ManagementTypeBasicProtectionPolicy enumerates the values for management type basic protection policy. +type ManagementTypeBasicProtectionPolicy string + +const ( + // ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureIaasVM ... + ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureIaasVM ManagementTypeBasicProtectionPolicy = "AzureIaasVM" + // ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureSQL ... + ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureSQL ManagementTypeBasicProtectionPolicy = "AzureSql" + // ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureStorage ... + ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureStorage ManagementTypeBasicProtectionPolicy = "AzureStorage" + // ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureWorkload ... + ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureWorkload ManagementTypeBasicProtectionPolicy = "AzureWorkload" + // ManagementTypeBasicProtectionPolicyBackupManagementTypeGenericProtectionPolicy ... + ManagementTypeBasicProtectionPolicyBackupManagementTypeGenericProtectionPolicy ManagementTypeBasicProtectionPolicy = "GenericProtectionPolicy" + // ManagementTypeBasicProtectionPolicyBackupManagementTypeMAB ... + ManagementTypeBasicProtectionPolicyBackupManagementTypeMAB ManagementTypeBasicProtectionPolicy = "MAB" + // ManagementTypeBasicProtectionPolicyBackupManagementTypeProtectionPolicy ... + ManagementTypeBasicProtectionPolicyBackupManagementTypeProtectionPolicy ManagementTypeBasicProtectionPolicy = "ProtectionPolicy" +) + +// PossibleManagementTypeBasicProtectionPolicyValues returns an array of possible values for the ManagementTypeBasicProtectionPolicy const type. +func PossibleManagementTypeBasicProtectionPolicyValues() []ManagementTypeBasicProtectionPolicy { + return []ManagementTypeBasicProtectionPolicy{ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureIaasVM, ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureSQL, ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureStorage, ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureWorkload, ManagementTypeBasicProtectionPolicyBackupManagementTypeGenericProtectionPolicy, ManagementTypeBasicProtectionPolicyBackupManagementTypeMAB, ManagementTypeBasicProtectionPolicyBackupManagementTypeProtectionPolicy} +} + +// MonthOfYear enumerates the values for month of year. +type MonthOfYear string + +const ( + // MonthOfYearApril ... + MonthOfYearApril MonthOfYear = "April" + // MonthOfYearAugust ... + MonthOfYearAugust MonthOfYear = "August" + // MonthOfYearDecember ... + MonthOfYearDecember MonthOfYear = "December" + // MonthOfYearFebruary ... + MonthOfYearFebruary MonthOfYear = "February" + // MonthOfYearInvalid ... + MonthOfYearInvalid MonthOfYear = "Invalid" + // MonthOfYearJanuary ... + MonthOfYearJanuary MonthOfYear = "January" + // MonthOfYearJuly ... + MonthOfYearJuly MonthOfYear = "July" + // MonthOfYearJune ... + MonthOfYearJune MonthOfYear = "June" + // MonthOfYearMarch ... + MonthOfYearMarch MonthOfYear = "March" + // MonthOfYearMay ... + MonthOfYearMay MonthOfYear = "May" + // MonthOfYearNovember ... + MonthOfYearNovember MonthOfYear = "November" + // MonthOfYearOctober ... + MonthOfYearOctober MonthOfYear = "October" + // MonthOfYearSeptember ... + MonthOfYearSeptember MonthOfYear = "September" +) + +// PossibleMonthOfYearValues returns an array of possible values for the MonthOfYear const type. +func PossibleMonthOfYearValues() []MonthOfYear { + return []MonthOfYear{MonthOfYearApril, MonthOfYearAugust, MonthOfYearDecember, MonthOfYearFebruary, MonthOfYearInvalid, MonthOfYearJanuary, MonthOfYearJuly, MonthOfYearJune, MonthOfYearMarch, MonthOfYearMay, MonthOfYearNovember, MonthOfYearOctober, MonthOfYearSeptember} +} + +// ObjectType enumerates the values for object type. +type ObjectType string + +const ( + // ObjectTypeExportJobsOperationResultInfo ... + ObjectTypeExportJobsOperationResultInfo ObjectType = "ExportJobsOperationResultInfo" + // ObjectTypeOperationResultInfo ... + ObjectTypeOperationResultInfo ObjectType = "OperationResultInfo" + // ObjectTypeOperationResultInfoBase ... + ObjectTypeOperationResultInfoBase ObjectType = "OperationResultInfoBase" +) + +// PossibleObjectTypeValues returns an array of possible values for the ObjectType const type. +func PossibleObjectTypeValues() []ObjectType { + return []ObjectType{ObjectTypeExportJobsOperationResultInfo, ObjectTypeOperationResultInfo, ObjectTypeOperationResultInfoBase} +} + +// ObjectTypeBasicCrrAccessToken enumerates the values for object type basic crr access token. +type ObjectTypeBasicCrrAccessToken string + +const ( + // ObjectTypeBasicCrrAccessTokenObjectTypeCrrAccessToken ... + ObjectTypeBasicCrrAccessTokenObjectTypeCrrAccessToken ObjectTypeBasicCrrAccessToken = "CrrAccessToken" + // ObjectTypeBasicCrrAccessTokenObjectTypeWorkloadCrrAccessToken ... + ObjectTypeBasicCrrAccessTokenObjectTypeWorkloadCrrAccessToken ObjectTypeBasicCrrAccessToken = "WorkloadCrrAccessToken" +) + +// PossibleObjectTypeBasicCrrAccessTokenValues returns an array of possible values for the ObjectTypeBasicCrrAccessToken const type. +func PossibleObjectTypeBasicCrrAccessTokenValues() []ObjectTypeBasicCrrAccessToken { + return []ObjectTypeBasicCrrAccessToken{ObjectTypeBasicCrrAccessTokenObjectTypeCrrAccessToken, ObjectTypeBasicCrrAccessTokenObjectTypeWorkloadCrrAccessToken} +} + +// ObjectTypeBasicILRRequest enumerates the values for object type basic ilr request. +type ObjectTypeBasicILRRequest string + +const ( + // ObjectTypeBasicILRRequestObjectTypeAzureFileShareProvisionILRRequest ... + ObjectTypeBasicILRRequestObjectTypeAzureFileShareProvisionILRRequest ObjectTypeBasicILRRequest = "AzureFileShareProvisionILRRequest" + // ObjectTypeBasicILRRequestObjectTypeIaasVMILRRegistrationRequest ... + ObjectTypeBasicILRRequestObjectTypeIaasVMILRRegistrationRequest ObjectTypeBasicILRRequest = "IaasVMILRRegistrationRequest" + // ObjectTypeBasicILRRequestObjectTypeILRRequest ... + ObjectTypeBasicILRRequestObjectTypeILRRequest ObjectTypeBasicILRRequest = "ILRRequest" +) + +// PossibleObjectTypeBasicILRRequestValues returns an array of possible values for the ObjectTypeBasicILRRequest const type. +func PossibleObjectTypeBasicILRRequestValues() []ObjectTypeBasicILRRequest { + return []ObjectTypeBasicILRRequest{ObjectTypeBasicILRRequestObjectTypeAzureFileShareProvisionILRRequest, ObjectTypeBasicILRRequestObjectTypeIaasVMILRRegistrationRequest, ObjectTypeBasicILRRequestObjectTypeILRRequest} +} + +// ObjectTypeBasicOperationStatusExtendedInfo enumerates the values for object type basic operation status +// extended info. +type ObjectTypeBasicOperationStatusExtendedInfo string + +const ( + // ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusExtendedInfo ... + ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusExtendedInfo ObjectTypeBasicOperationStatusExtendedInfo = "OperationStatusExtendedInfo" + // ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusJobExtendedInfo ... + ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusJobExtendedInfo ObjectTypeBasicOperationStatusExtendedInfo = "OperationStatusJobExtendedInfo" + // ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusJobsExtendedInfo ... + ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusJobsExtendedInfo ObjectTypeBasicOperationStatusExtendedInfo = "OperationStatusJobsExtendedInfo" + // ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusProvisionILRExtendedInfo ... + ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusProvisionILRExtendedInfo ObjectTypeBasicOperationStatusExtendedInfo = "OperationStatusProvisionILRExtendedInfo" + // ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusRecoveryPointExtendedInfo ... + ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusRecoveryPointExtendedInfo ObjectTypeBasicOperationStatusExtendedInfo = "OperationStatusRecoveryPointExtendedInfo" +) + +// PossibleObjectTypeBasicOperationStatusExtendedInfoValues returns an array of possible values for the ObjectTypeBasicOperationStatusExtendedInfo const type. +func PossibleObjectTypeBasicOperationStatusExtendedInfoValues() []ObjectTypeBasicOperationStatusExtendedInfo { + return []ObjectTypeBasicOperationStatusExtendedInfo{ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusExtendedInfo, ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusJobExtendedInfo, ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusJobsExtendedInfo, ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusProvisionILRExtendedInfo, ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusRecoveryPointExtendedInfo} +} + +// ObjectTypeBasicRecoveryPoint enumerates the values for object type basic recovery point. +type ObjectTypeBasicRecoveryPoint string + +const ( + // ObjectTypeBasicRecoveryPointObjectTypeAzureFileShareRecoveryPoint ... + ObjectTypeBasicRecoveryPointObjectTypeAzureFileShareRecoveryPoint ObjectTypeBasicRecoveryPoint = "AzureFileShareRecoveryPoint" + // ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadPointInTimeRecoveryPoint ... + ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadPointInTimeRecoveryPoint ObjectTypeBasicRecoveryPoint = "AzureWorkloadPointInTimeRecoveryPoint" + // ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadRecoveryPoint ... + ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadRecoveryPoint ObjectTypeBasicRecoveryPoint = "AzureWorkloadRecoveryPoint" + // ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint ... + ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint ObjectTypeBasicRecoveryPoint = "AzureWorkloadSAPHanaPointInTimeRecoveryPoint" + // ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaRecoveryPoint ... + ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaRecoveryPoint ObjectTypeBasicRecoveryPoint = "AzureWorkloadSAPHanaRecoveryPoint" + // ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint ... + ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint ObjectTypeBasicRecoveryPoint = "AzureWorkloadSQLPointInTimeRecoveryPoint" + // ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLRecoveryPoint ... + ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLRecoveryPoint ObjectTypeBasicRecoveryPoint = "AzureWorkloadSQLRecoveryPoint" + // ObjectTypeBasicRecoveryPointObjectTypeGenericRecoveryPoint ... + ObjectTypeBasicRecoveryPointObjectTypeGenericRecoveryPoint ObjectTypeBasicRecoveryPoint = "GenericRecoveryPoint" + // ObjectTypeBasicRecoveryPointObjectTypeIaasVMRecoveryPoint ... + ObjectTypeBasicRecoveryPointObjectTypeIaasVMRecoveryPoint ObjectTypeBasicRecoveryPoint = "IaasVMRecoveryPoint" + // ObjectTypeBasicRecoveryPointObjectTypeRecoveryPoint ... + ObjectTypeBasicRecoveryPointObjectTypeRecoveryPoint ObjectTypeBasicRecoveryPoint = "RecoveryPoint" +) + +// PossibleObjectTypeBasicRecoveryPointValues returns an array of possible values for the ObjectTypeBasicRecoveryPoint const type. +func PossibleObjectTypeBasicRecoveryPointValues() []ObjectTypeBasicRecoveryPoint { + return []ObjectTypeBasicRecoveryPoint{ObjectTypeBasicRecoveryPointObjectTypeAzureFileShareRecoveryPoint, ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadPointInTimeRecoveryPoint, ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadRecoveryPoint, ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint, ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaRecoveryPoint, ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint, ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLRecoveryPoint, ObjectTypeBasicRecoveryPointObjectTypeGenericRecoveryPoint, ObjectTypeBasicRecoveryPointObjectTypeIaasVMRecoveryPoint, ObjectTypeBasicRecoveryPointObjectTypeRecoveryPoint} +} + +// ObjectTypeBasicRequest enumerates the values for object type basic request. +type ObjectTypeBasicRequest string + +const ( + // ObjectTypeBasicRequestObjectTypeAzureFileShareBackupRequest ... + ObjectTypeBasicRequestObjectTypeAzureFileShareBackupRequest ObjectTypeBasicRequest = "AzureFileShareBackupRequest" + // ObjectTypeBasicRequestObjectTypeAzureWorkloadBackupRequest ... + ObjectTypeBasicRequestObjectTypeAzureWorkloadBackupRequest ObjectTypeBasicRequest = "AzureWorkloadBackupRequest" + // ObjectTypeBasicRequestObjectTypeBackupRequest ... + ObjectTypeBasicRequestObjectTypeBackupRequest ObjectTypeBasicRequest = "BackupRequest" + // ObjectTypeBasicRequestObjectTypeIaasVMBackupRequest ... + ObjectTypeBasicRequestObjectTypeIaasVMBackupRequest ObjectTypeBasicRequest = "IaasVMBackupRequest" +) + +// PossibleObjectTypeBasicRequestValues returns an array of possible values for the ObjectTypeBasicRequest const type. +func PossibleObjectTypeBasicRequestValues() []ObjectTypeBasicRequest { + return []ObjectTypeBasicRequest{ObjectTypeBasicRequestObjectTypeAzureFileShareBackupRequest, ObjectTypeBasicRequestObjectTypeAzureWorkloadBackupRequest, ObjectTypeBasicRequestObjectTypeBackupRequest, ObjectTypeBasicRequestObjectTypeIaasVMBackupRequest} +} + +// ObjectTypeBasicRestoreRequest enumerates the values for object type basic restore request. +type ObjectTypeBasicRestoreRequest string + +const ( + // ObjectTypeBasicRestoreRequestObjectTypeAzureFileShareRestoreRequest ... + ObjectTypeBasicRestoreRequestObjectTypeAzureFileShareRestoreRequest ObjectTypeBasicRestoreRequest = "AzureFileShareRestoreRequest" + // ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadPointInTimeRestoreRequest ... + ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadPointInTimeRestoreRequest ObjectTypeBasicRestoreRequest = "AzureWorkloadPointInTimeRestoreRequest" + // ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadRestoreRequest ... + ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadRestoreRequest ObjectTypeBasicRestoreRequest = "AzureWorkloadRestoreRequest" + // ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest ... + ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest ObjectTypeBasicRestoreRequest = "AzureWorkloadSAPHanaPointInTimeRestoreRequest" + // ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest ... + ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest ObjectTypeBasicRestoreRequest = "AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest" + // ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreRequest ... + ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreRequest ObjectTypeBasicRestoreRequest = "AzureWorkloadSAPHanaRestoreRequest" + // ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreWithRehydrateRequest ... + ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreWithRehydrateRequest ObjectTypeBasicRestoreRequest = "AzureWorkloadSAPHanaRestoreWithRehydrateRequest" + // ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest ... + ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest ObjectTypeBasicRestoreRequest = "AzureWorkloadSQLPointInTimeRestoreRequest" + // ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest ... + ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest ObjectTypeBasicRestoreRequest = "AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest" + // ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreRequest ... + ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreRequest ObjectTypeBasicRestoreRequest = "AzureWorkloadSQLRestoreRequest" + // ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreWithRehydrateRequest ... + ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreWithRehydrateRequest ObjectTypeBasicRestoreRequest = "AzureWorkloadSQLRestoreWithRehydrateRequest" + // ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreRequest ... + ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreRequest ObjectTypeBasicRestoreRequest = "IaasVMRestoreRequest" + // ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreWithRehydrationRequest ... + ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreWithRehydrationRequest ObjectTypeBasicRestoreRequest = "IaasVMRestoreWithRehydrationRequest" + // ObjectTypeBasicRestoreRequestObjectTypeRestoreRequest ... + ObjectTypeBasicRestoreRequestObjectTypeRestoreRequest ObjectTypeBasicRestoreRequest = "RestoreRequest" +) + +// PossibleObjectTypeBasicRestoreRequestValues returns an array of possible values for the ObjectTypeBasicRestoreRequest const type. +func PossibleObjectTypeBasicRestoreRequestValues() []ObjectTypeBasicRestoreRequest { + return []ObjectTypeBasicRestoreRequest{ObjectTypeBasicRestoreRequestObjectTypeAzureFileShareRestoreRequest, ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadPointInTimeRestoreRequest, ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadRestoreRequest, ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest, ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreRequest, ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreWithRehydrateRequest, ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest, ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreRequest, ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreWithRehydrateRequest, ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreRequest, ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreWithRehydrationRequest, ObjectTypeBasicRestoreRequestObjectTypeRestoreRequest} +} + +// ObjectTypeBasicValidateOperationRequest enumerates the values for object type basic validate operation +// request. +type ObjectTypeBasicValidateOperationRequest string + +const ( + // ObjectTypeBasicValidateOperationRequestObjectTypeValidateIaasVMRestoreOperationRequest ... + ObjectTypeBasicValidateOperationRequestObjectTypeValidateIaasVMRestoreOperationRequest ObjectTypeBasicValidateOperationRequest = "ValidateIaasVMRestoreOperationRequest" + // ObjectTypeBasicValidateOperationRequestObjectTypeValidateOperationRequest ... + ObjectTypeBasicValidateOperationRequestObjectTypeValidateOperationRequest ObjectTypeBasicValidateOperationRequest = "ValidateOperationRequest" + // ObjectTypeBasicValidateOperationRequestObjectTypeValidateRestoreOperationRequest ... + ObjectTypeBasicValidateOperationRequestObjectTypeValidateRestoreOperationRequest ObjectTypeBasicValidateOperationRequest = "ValidateRestoreOperationRequest" +) + +// PossibleObjectTypeBasicValidateOperationRequestValues returns an array of possible values for the ObjectTypeBasicValidateOperationRequest const type. +func PossibleObjectTypeBasicValidateOperationRequestValues() []ObjectTypeBasicValidateOperationRequest { + return []ObjectTypeBasicValidateOperationRequest{ObjectTypeBasicValidateOperationRequestObjectTypeValidateIaasVMRestoreOperationRequest, ObjectTypeBasicValidateOperationRequestObjectTypeValidateOperationRequest, ObjectTypeBasicValidateOperationRequestObjectTypeValidateRestoreOperationRequest} +} + +// ObjectTypeBasicVaultStorageConfigOperationResultResponse enumerates the values for object type basic vault +// storage config operation result response. +type ObjectTypeBasicVaultStorageConfigOperationResultResponse string + +const ( + // ObjectTypeBasicVaultStorageConfigOperationResultResponseObjectTypePrepareDataMoveResponse ... + ObjectTypeBasicVaultStorageConfigOperationResultResponseObjectTypePrepareDataMoveResponse ObjectTypeBasicVaultStorageConfigOperationResultResponse = "PrepareDataMoveResponse" + // ObjectTypeBasicVaultStorageConfigOperationResultResponseObjectTypeVaultStorageConfigOperationResultResponse ... + ObjectTypeBasicVaultStorageConfigOperationResultResponseObjectTypeVaultStorageConfigOperationResultResponse ObjectTypeBasicVaultStorageConfigOperationResultResponse = "VaultStorageConfigOperationResultResponse" +) + +// PossibleObjectTypeBasicVaultStorageConfigOperationResultResponseValues returns an array of possible values for the ObjectTypeBasicVaultStorageConfigOperationResultResponse const type. +func PossibleObjectTypeBasicVaultStorageConfigOperationResultResponseValues() []ObjectTypeBasicVaultStorageConfigOperationResultResponse { + return []ObjectTypeBasicVaultStorageConfigOperationResultResponse{ObjectTypeBasicVaultStorageConfigOperationResultResponseObjectTypePrepareDataMoveResponse, ObjectTypeBasicVaultStorageConfigOperationResultResponseObjectTypeVaultStorageConfigOperationResultResponse} +} + +// OperationStatusValues enumerates the values for operation status values. +type OperationStatusValues string + +const ( + // OperationStatusValuesCanceled ... + OperationStatusValuesCanceled OperationStatusValues = "Canceled" + // OperationStatusValuesFailed ... + OperationStatusValuesFailed OperationStatusValues = "Failed" + // OperationStatusValuesInProgress ... + OperationStatusValuesInProgress OperationStatusValues = "InProgress" + // OperationStatusValuesInvalid ... + OperationStatusValuesInvalid OperationStatusValues = "Invalid" + // OperationStatusValuesSucceeded ... + OperationStatusValuesSucceeded OperationStatusValues = "Succeeded" +) + +// PossibleOperationStatusValuesValues returns an array of possible values for the OperationStatusValues const type. +func PossibleOperationStatusValuesValues() []OperationStatusValues { + return []OperationStatusValues{OperationStatusValuesCanceled, OperationStatusValuesFailed, OperationStatusValuesInProgress, OperationStatusValuesInvalid, OperationStatusValuesSucceeded} +} + +// OperationType enumerates the values for operation type. +type OperationType string + +const ( + // OperationTypeInvalid ... + OperationTypeInvalid OperationType = "Invalid" + // OperationTypeRegister ... + OperationTypeRegister OperationType = "Register" + // OperationTypeReregister ... + OperationTypeReregister OperationType = "Reregister" +) + +// PossibleOperationTypeValues returns an array of possible values for the OperationType const type. +func PossibleOperationTypeValues() []OperationType { + return []OperationType{OperationTypeInvalid, OperationTypeRegister, OperationTypeReregister} +} + +// OverwriteOptions enumerates the values for overwrite options. +type OverwriteOptions string + +const ( + // OverwriteOptionsFailOnConflict ... + OverwriteOptionsFailOnConflict OverwriteOptions = "FailOnConflict" + // OverwriteOptionsInvalid ... + OverwriteOptionsInvalid OverwriteOptions = "Invalid" + // OverwriteOptionsOverwrite ... + OverwriteOptionsOverwrite OverwriteOptions = "Overwrite" +) + +// PossibleOverwriteOptionsValues returns an array of possible values for the OverwriteOptions const type. +func PossibleOverwriteOptionsValues() []OverwriteOptions { + return []OverwriteOptions{OverwriteOptionsFailOnConflict, OverwriteOptionsInvalid, OverwriteOptionsOverwrite} +} + +// PolicyType enumerates the values for policy type. +type PolicyType string + +const ( + // PolicyTypeCopyOnlyFull ... + PolicyTypeCopyOnlyFull PolicyType = "CopyOnlyFull" + // PolicyTypeDifferential ... + PolicyTypeDifferential PolicyType = "Differential" + // PolicyTypeFull ... + PolicyTypeFull PolicyType = "Full" + // PolicyTypeIncremental ... + PolicyTypeIncremental PolicyType = "Incremental" + // PolicyTypeInvalid ... + PolicyTypeInvalid PolicyType = "Invalid" + // PolicyTypeLog ... + PolicyTypeLog PolicyType = "Log" +) + +// PossiblePolicyTypeValues returns an array of possible values for the PolicyType const type. +func PossiblePolicyTypeValues() []PolicyType { + return []PolicyType{PolicyTypeCopyOnlyFull, PolicyTypeDifferential, PolicyTypeFull, PolicyTypeIncremental, PolicyTypeInvalid, PolicyTypeLog} +} + +// PrivateEndpointConnectionStatus enumerates the values for private endpoint connection status. +type PrivateEndpointConnectionStatus string + +const ( + // PrivateEndpointConnectionStatusApproved ... + PrivateEndpointConnectionStatusApproved PrivateEndpointConnectionStatus = "Approved" + // PrivateEndpointConnectionStatusDisconnected ... + PrivateEndpointConnectionStatusDisconnected PrivateEndpointConnectionStatus = "Disconnected" + // PrivateEndpointConnectionStatusPending ... + PrivateEndpointConnectionStatusPending PrivateEndpointConnectionStatus = "Pending" + // PrivateEndpointConnectionStatusRejected ... + PrivateEndpointConnectionStatusRejected PrivateEndpointConnectionStatus = "Rejected" +) + +// PossiblePrivateEndpointConnectionStatusValues returns an array of possible values for the PrivateEndpointConnectionStatus const type. +func PossiblePrivateEndpointConnectionStatusValues() []PrivateEndpointConnectionStatus { + return []PrivateEndpointConnectionStatus{PrivateEndpointConnectionStatusApproved, PrivateEndpointConnectionStatusDisconnected, PrivateEndpointConnectionStatusPending, PrivateEndpointConnectionStatusRejected} +} + +// ProtectableContainerType enumerates the values for protectable container type. +type ProtectableContainerType string + +const ( + // ProtectableContainerTypeProtectableContainer ... + ProtectableContainerTypeProtectableContainer ProtectableContainerType = "ProtectableContainer" + // ProtectableContainerTypeStorageContainer ... + ProtectableContainerTypeStorageContainer ProtectableContainerType = "StorageContainer" + // ProtectableContainerTypeVMAppContainer ... + ProtectableContainerTypeVMAppContainer ProtectableContainerType = "VMAppContainer" +) + +// PossibleProtectableContainerTypeValues returns an array of possible values for the ProtectableContainerType const type. +func PossibleProtectableContainerTypeValues() []ProtectableContainerType { + return []ProtectableContainerType{ProtectableContainerTypeProtectableContainer, ProtectableContainerTypeStorageContainer, ProtectableContainerTypeVMAppContainer} +} + +// ProtectableItemType enumerates the values for protectable item type. +type ProtectableItemType string + +const ( + // ProtectableItemTypeAzureFileShare ... + ProtectableItemTypeAzureFileShare ProtectableItemType = "AzureFileShare" + // ProtectableItemTypeAzureVMWorkloadProtectableItem ... + ProtectableItemTypeAzureVMWorkloadProtectableItem ProtectableItemType = "AzureVmWorkloadProtectableItem" + // ProtectableItemTypeIaaSVMProtectableItem ... + ProtectableItemTypeIaaSVMProtectableItem ProtectableItemType = "IaaSVMProtectableItem" + // ProtectableItemTypeMicrosoftClassicComputevirtualMachines ... + ProtectableItemTypeMicrosoftClassicComputevirtualMachines ProtectableItemType = "Microsoft.ClassicCompute/virtualMachines" + // ProtectableItemTypeMicrosoftComputevirtualMachines ... + ProtectableItemTypeMicrosoftComputevirtualMachines ProtectableItemType = "Microsoft.Compute/virtualMachines" + // ProtectableItemTypeSAPAseSystem ... + ProtectableItemTypeSAPAseSystem ProtectableItemType = "SAPAseSystem" + // ProtectableItemTypeSAPHanaDatabase ... + ProtectableItemTypeSAPHanaDatabase ProtectableItemType = "SAPHanaDatabase" + // ProtectableItemTypeSAPHanaSystem ... + ProtectableItemTypeSAPHanaSystem ProtectableItemType = "SAPHanaSystem" + // ProtectableItemTypeSQLAvailabilityGroupContainer ... + ProtectableItemTypeSQLAvailabilityGroupContainer ProtectableItemType = "SQLAvailabilityGroupContainer" + // ProtectableItemTypeSQLDataBase ... + ProtectableItemTypeSQLDataBase ProtectableItemType = "SQLDataBase" + // ProtectableItemTypeSQLInstance ... + ProtectableItemTypeSQLInstance ProtectableItemType = "SQLInstance" + // ProtectableItemTypeWorkloadProtectableItem ... + ProtectableItemTypeWorkloadProtectableItem ProtectableItemType = "WorkloadProtectableItem" +) + +// PossibleProtectableItemTypeValues returns an array of possible values for the ProtectableItemType const type. +func PossibleProtectableItemTypeValues() []ProtectableItemType { + return []ProtectableItemType{ProtectableItemTypeAzureFileShare, ProtectableItemTypeAzureVMWorkloadProtectableItem, ProtectableItemTypeIaaSVMProtectableItem, ProtectableItemTypeMicrosoftClassicComputevirtualMachines, ProtectableItemTypeMicrosoftComputevirtualMachines, ProtectableItemTypeSAPAseSystem, ProtectableItemTypeSAPHanaDatabase, ProtectableItemTypeSAPHanaSystem, ProtectableItemTypeSQLAvailabilityGroupContainer, ProtectableItemTypeSQLDataBase, ProtectableItemTypeSQLInstance, ProtectableItemTypeWorkloadProtectableItem} +} + +// ProtectedItemHealthStatus enumerates the values for protected item health status. +type ProtectedItemHealthStatus string + +const ( + // ProtectedItemHealthStatusHealthy ... + ProtectedItemHealthStatusHealthy ProtectedItemHealthStatus = "Healthy" + // ProtectedItemHealthStatusInvalid ... + ProtectedItemHealthStatusInvalid ProtectedItemHealthStatus = "Invalid" + // ProtectedItemHealthStatusIRPending ... + ProtectedItemHealthStatusIRPending ProtectedItemHealthStatus = "IRPending" + // ProtectedItemHealthStatusNotReachable ... + ProtectedItemHealthStatusNotReachable ProtectedItemHealthStatus = "NotReachable" + // ProtectedItemHealthStatusUnhealthy ... + ProtectedItemHealthStatusUnhealthy ProtectedItemHealthStatus = "Unhealthy" +) + +// PossibleProtectedItemHealthStatusValues returns an array of possible values for the ProtectedItemHealthStatus const type. +func PossibleProtectedItemHealthStatusValues() []ProtectedItemHealthStatus { + return []ProtectedItemHealthStatus{ProtectedItemHealthStatusHealthy, ProtectedItemHealthStatusInvalid, ProtectedItemHealthStatusIRPending, ProtectedItemHealthStatusNotReachable, ProtectedItemHealthStatusUnhealthy} +} + +// ProtectedItemState enumerates the values for protected item state. +type ProtectedItemState string + +const ( + // ProtectedItemStateInvalid ... + ProtectedItemStateInvalid ProtectedItemState = "Invalid" + // ProtectedItemStateIRPending ... + ProtectedItemStateIRPending ProtectedItemState = "IRPending" + // ProtectedItemStateProtected ... + ProtectedItemStateProtected ProtectedItemState = "Protected" + // ProtectedItemStateProtectionError ... + ProtectedItemStateProtectionError ProtectedItemState = "ProtectionError" + // ProtectedItemStateProtectionPaused ... + ProtectedItemStateProtectionPaused ProtectedItemState = "ProtectionPaused" + // ProtectedItemStateProtectionStopped ... + ProtectedItemStateProtectionStopped ProtectedItemState = "ProtectionStopped" +) + +// PossibleProtectedItemStateValues returns an array of possible values for the ProtectedItemState const type. +func PossibleProtectedItemStateValues() []ProtectedItemState { + return []ProtectedItemState{ProtectedItemStateInvalid, ProtectedItemStateIRPending, ProtectedItemStateProtected, ProtectedItemStateProtectionError, ProtectedItemStateProtectionPaused, ProtectedItemStateProtectionStopped} +} + +// ProtectedItemType enumerates the values for protected item type. +type ProtectedItemType string + +const ( + // ProtectedItemTypeAzureFileShareProtectedItem ... + ProtectedItemTypeAzureFileShareProtectedItem ProtectedItemType = "AzureFileShareProtectedItem" + // ProtectedItemTypeAzureIaaSVMProtectedItem ... + ProtectedItemTypeAzureIaaSVMProtectedItem ProtectedItemType = "AzureIaaSVMProtectedItem" + // ProtectedItemTypeAzureVMWorkloadProtectedItem ... + ProtectedItemTypeAzureVMWorkloadProtectedItem ProtectedItemType = "AzureVmWorkloadProtectedItem" + // ProtectedItemTypeAzureVMWorkloadSAPAseDatabase ... + ProtectedItemTypeAzureVMWorkloadSAPAseDatabase ProtectedItemType = "AzureVmWorkloadSAPAseDatabase" + // ProtectedItemTypeAzureVMWorkloadSAPHanaDatabase ... + ProtectedItemTypeAzureVMWorkloadSAPHanaDatabase ProtectedItemType = "AzureVmWorkloadSAPHanaDatabase" + // ProtectedItemTypeAzureVMWorkloadSQLDatabase ... + ProtectedItemTypeAzureVMWorkloadSQLDatabase ProtectedItemType = "AzureVmWorkloadSQLDatabase" + // ProtectedItemTypeDPMProtectedItem ... + ProtectedItemTypeDPMProtectedItem ProtectedItemType = "DPMProtectedItem" + // ProtectedItemTypeGenericProtectedItem ... + ProtectedItemTypeGenericProtectedItem ProtectedItemType = "GenericProtectedItem" + // ProtectedItemTypeMabFileFolderProtectedItem ... + ProtectedItemTypeMabFileFolderProtectedItem ProtectedItemType = "MabFileFolderProtectedItem" + // ProtectedItemTypeMicrosoftClassicComputevirtualMachines ... + ProtectedItemTypeMicrosoftClassicComputevirtualMachines ProtectedItemType = "Microsoft.ClassicCompute/virtualMachines" + // ProtectedItemTypeMicrosoftComputevirtualMachines ... + ProtectedItemTypeMicrosoftComputevirtualMachines ProtectedItemType = "Microsoft.Compute/virtualMachines" + // ProtectedItemTypeMicrosoftSqlserversdatabases ... + ProtectedItemTypeMicrosoftSqlserversdatabases ProtectedItemType = "Microsoft.Sql/servers/databases" + // ProtectedItemTypeProtectedItem ... + ProtectedItemTypeProtectedItem ProtectedItemType = "ProtectedItem" +) + +// PossibleProtectedItemTypeValues returns an array of possible values for the ProtectedItemType const type. +func PossibleProtectedItemTypeValues() []ProtectedItemType { + return []ProtectedItemType{ProtectedItemTypeAzureFileShareProtectedItem, ProtectedItemTypeAzureIaaSVMProtectedItem, ProtectedItemTypeAzureVMWorkloadProtectedItem, ProtectedItemTypeAzureVMWorkloadSAPAseDatabase, ProtectedItemTypeAzureVMWorkloadSAPHanaDatabase, ProtectedItemTypeAzureVMWorkloadSQLDatabase, ProtectedItemTypeDPMProtectedItem, ProtectedItemTypeGenericProtectedItem, ProtectedItemTypeMabFileFolderProtectedItem, ProtectedItemTypeMicrosoftClassicComputevirtualMachines, ProtectedItemTypeMicrosoftComputevirtualMachines, ProtectedItemTypeMicrosoftSqlserversdatabases, ProtectedItemTypeProtectedItem} +} + +// ProtectionIntentItemType enumerates the values for protection intent item type. +type ProtectionIntentItemType string + +const ( + // ProtectionIntentItemTypeAzureResourceItem ... + ProtectionIntentItemTypeAzureResourceItem ProtectionIntentItemType = "AzureResourceItem" + // ProtectionIntentItemTypeAzureWorkloadAutoProtectionIntent ... + ProtectionIntentItemTypeAzureWorkloadAutoProtectionIntent ProtectionIntentItemType = "AzureWorkloadAutoProtectionIntent" + // ProtectionIntentItemTypeAzureWorkloadSQLAutoProtectionIntent ... + ProtectionIntentItemTypeAzureWorkloadSQLAutoProtectionIntent ProtectionIntentItemType = "AzureWorkloadSQLAutoProtectionIntent" + // ProtectionIntentItemTypeProtectionIntent ... + ProtectionIntentItemTypeProtectionIntent ProtectionIntentItemType = "ProtectionIntent" + // ProtectionIntentItemTypeRecoveryServiceVaultItem ... + ProtectionIntentItemTypeRecoveryServiceVaultItem ProtectionIntentItemType = "RecoveryServiceVaultItem" +) + +// PossibleProtectionIntentItemTypeValues returns an array of possible values for the ProtectionIntentItemType const type. +func PossibleProtectionIntentItemTypeValues() []ProtectionIntentItemType { + return []ProtectionIntentItemType{ProtectionIntentItemTypeAzureResourceItem, ProtectionIntentItemTypeAzureWorkloadAutoProtectionIntent, ProtectionIntentItemTypeAzureWorkloadSQLAutoProtectionIntent, ProtectionIntentItemTypeProtectionIntent, ProtectionIntentItemTypeRecoveryServiceVaultItem} +} + +// ProtectionState enumerates the values for protection state. +type ProtectionState string + +const ( + // ProtectionStateInvalid ... + ProtectionStateInvalid ProtectionState = "Invalid" + // ProtectionStateIRPending ... + ProtectionStateIRPending ProtectionState = "IRPending" + // ProtectionStateProtected ... + ProtectionStateProtected ProtectionState = "Protected" + // ProtectionStateProtectionError ... + ProtectionStateProtectionError ProtectionState = "ProtectionError" + // ProtectionStateProtectionPaused ... + ProtectionStateProtectionPaused ProtectionState = "ProtectionPaused" + // ProtectionStateProtectionStopped ... + ProtectionStateProtectionStopped ProtectionState = "ProtectionStopped" +) + +// PossibleProtectionStateValues returns an array of possible values for the ProtectionState const type. +func PossibleProtectionStateValues() []ProtectionState { + return []ProtectionState{ProtectionStateInvalid, ProtectionStateIRPending, ProtectionStateProtected, ProtectionStateProtectionError, ProtectionStateProtectionPaused, ProtectionStateProtectionStopped} +} + +// ProtectionStatus enumerates the values for protection status. +type ProtectionStatus string + +const ( + // ProtectionStatusInvalid ... + ProtectionStatusInvalid ProtectionStatus = "Invalid" + // ProtectionStatusNotProtected ... + ProtectionStatusNotProtected ProtectionStatus = "NotProtected" + // ProtectionStatusProtected ... + ProtectionStatusProtected ProtectionStatus = "Protected" + // ProtectionStatusProtecting ... + ProtectionStatusProtecting ProtectionStatus = "Protecting" + // ProtectionStatusProtectionFailed ... + ProtectionStatusProtectionFailed ProtectionStatus = "ProtectionFailed" +) + +// PossibleProtectionStatusValues returns an array of possible values for the ProtectionStatus const type. +func PossibleProtectionStatusValues() []ProtectionStatus { + return []ProtectionStatus{ProtectionStatusInvalid, ProtectionStatusNotProtected, ProtectionStatusProtected, ProtectionStatusProtecting, ProtectionStatusProtectionFailed} +} + +// ProvisioningState enumerates the values for provisioning state. +type ProvisioningState string + +const ( + // ProvisioningStateDeleting ... + ProvisioningStateDeleting ProvisioningState = "Deleting" + // ProvisioningStateFailed ... + ProvisioningStateFailed ProvisioningState = "Failed" + // ProvisioningStatePending ... + ProvisioningStatePending ProvisioningState = "Pending" + // ProvisioningStateSucceeded ... + ProvisioningStateSucceeded ProvisioningState = "Succeeded" +) + +// PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type. +func PossibleProvisioningStateValues() []ProvisioningState { + return []ProvisioningState{ProvisioningStateDeleting, ProvisioningStateFailed, ProvisioningStatePending, ProvisioningStateSucceeded} +} + +// RecoveryMode enumerates the values for recovery mode. +type RecoveryMode string + +const ( + // RecoveryModeFileRecovery ... + RecoveryModeFileRecovery RecoveryMode = "FileRecovery" + // RecoveryModeInvalid ... + RecoveryModeInvalid RecoveryMode = "Invalid" + // RecoveryModeWorkloadRecovery ... + RecoveryModeWorkloadRecovery RecoveryMode = "WorkloadRecovery" +) + +// PossibleRecoveryModeValues returns an array of possible values for the RecoveryMode const type. +func PossibleRecoveryModeValues() []RecoveryMode { + return []RecoveryMode{RecoveryModeFileRecovery, RecoveryModeInvalid, RecoveryModeWorkloadRecovery} +} + +// RecoveryPointTierStatus enumerates the values for recovery point tier status. +type RecoveryPointTierStatus string + +const ( + // RecoveryPointTierStatusDeleted ... + RecoveryPointTierStatusDeleted RecoveryPointTierStatus = "Deleted" + // RecoveryPointTierStatusDisabled ... + RecoveryPointTierStatusDisabled RecoveryPointTierStatus = "Disabled" + // RecoveryPointTierStatusInvalid ... + RecoveryPointTierStatusInvalid RecoveryPointTierStatus = "Invalid" + // RecoveryPointTierStatusRehydrated ... + RecoveryPointTierStatusRehydrated RecoveryPointTierStatus = "Rehydrated" + // RecoveryPointTierStatusValid ... + RecoveryPointTierStatusValid RecoveryPointTierStatus = "Valid" +) + +// PossibleRecoveryPointTierStatusValues returns an array of possible values for the RecoveryPointTierStatus const type. +func PossibleRecoveryPointTierStatusValues() []RecoveryPointTierStatus { + return []RecoveryPointTierStatus{RecoveryPointTierStatusDeleted, RecoveryPointTierStatusDisabled, RecoveryPointTierStatusInvalid, RecoveryPointTierStatusRehydrated, RecoveryPointTierStatusValid} +} + +// RecoveryPointTierType enumerates the values for recovery point tier type. +type RecoveryPointTierType string + +const ( + // RecoveryPointTierTypeArchivedRP ... + RecoveryPointTierTypeArchivedRP RecoveryPointTierType = "ArchivedRP" + // RecoveryPointTierTypeHardenedRP ... + RecoveryPointTierTypeHardenedRP RecoveryPointTierType = "HardenedRP" + // RecoveryPointTierTypeInstantRP ... + RecoveryPointTierTypeInstantRP RecoveryPointTierType = "InstantRP" + // RecoveryPointTierTypeInvalid ... + RecoveryPointTierTypeInvalid RecoveryPointTierType = "Invalid" +) + +// PossibleRecoveryPointTierTypeValues returns an array of possible values for the RecoveryPointTierType const type. +func PossibleRecoveryPointTierTypeValues() []RecoveryPointTierType { + return []RecoveryPointTierType{RecoveryPointTierTypeArchivedRP, RecoveryPointTierTypeHardenedRP, RecoveryPointTierTypeInstantRP, RecoveryPointTierTypeInvalid} +} + +// RecoveryType enumerates the values for recovery type. +type RecoveryType string + +const ( + // RecoveryTypeAlternateLocation ... + RecoveryTypeAlternateLocation RecoveryType = "AlternateLocation" + // RecoveryTypeInvalid ... + RecoveryTypeInvalid RecoveryType = "Invalid" + // RecoveryTypeOffline ... + RecoveryTypeOffline RecoveryType = "Offline" + // RecoveryTypeOriginalLocation ... + RecoveryTypeOriginalLocation RecoveryType = "OriginalLocation" + // RecoveryTypeRestoreDisks ... + RecoveryTypeRestoreDisks RecoveryType = "RestoreDisks" +) + +// PossibleRecoveryTypeValues returns an array of possible values for the RecoveryType const type. +func PossibleRecoveryTypeValues() []RecoveryType { + return []RecoveryType{RecoveryTypeAlternateLocation, RecoveryTypeInvalid, RecoveryTypeOffline, RecoveryTypeOriginalLocation, RecoveryTypeRestoreDisks} +} + +// RehydrationPriority enumerates the values for rehydration priority. +type RehydrationPriority string + +const ( + // RehydrationPriorityHigh ... + RehydrationPriorityHigh RehydrationPriority = "High" + // RehydrationPriorityStandard ... + RehydrationPriorityStandard RehydrationPriority = "Standard" +) + +// PossibleRehydrationPriorityValues returns an array of possible values for the RehydrationPriority const type. +func PossibleRehydrationPriorityValues() []RehydrationPriority { + return []RehydrationPriority{RehydrationPriorityHigh, RehydrationPriorityStandard} +} + +// ResourceHealthStatus enumerates the values for resource health status. +type ResourceHealthStatus string + +const ( + // ResourceHealthStatusHealthy ... + ResourceHealthStatusHealthy ResourceHealthStatus = "Healthy" + // ResourceHealthStatusInvalid ... + ResourceHealthStatusInvalid ResourceHealthStatus = "Invalid" + // ResourceHealthStatusPersistentDegraded ... + ResourceHealthStatusPersistentDegraded ResourceHealthStatus = "PersistentDegraded" + // ResourceHealthStatusPersistentUnhealthy ... + ResourceHealthStatusPersistentUnhealthy ResourceHealthStatus = "PersistentUnhealthy" + // ResourceHealthStatusTransientDegraded ... + ResourceHealthStatusTransientDegraded ResourceHealthStatus = "TransientDegraded" + // ResourceHealthStatusTransientUnhealthy ... + ResourceHealthStatusTransientUnhealthy ResourceHealthStatus = "TransientUnhealthy" +) + +// PossibleResourceHealthStatusValues returns an array of possible values for the ResourceHealthStatus const type. +func PossibleResourceHealthStatusValues() []ResourceHealthStatus { + return []ResourceHealthStatus{ResourceHealthStatusHealthy, ResourceHealthStatusInvalid, ResourceHealthStatusPersistentDegraded, ResourceHealthStatusPersistentUnhealthy, ResourceHealthStatusTransientDegraded, ResourceHealthStatusTransientUnhealthy} +} + +// RestorePointQueryType enumerates the values for restore point query type. +type RestorePointQueryType string + +const ( + // RestorePointQueryTypeAll ... + RestorePointQueryTypeAll RestorePointQueryType = "All" + // RestorePointQueryTypeDifferential ... + RestorePointQueryTypeDifferential RestorePointQueryType = "Differential" + // RestorePointQueryTypeFull ... + RestorePointQueryTypeFull RestorePointQueryType = "Full" + // RestorePointQueryTypeFullAndDifferential ... + RestorePointQueryTypeFullAndDifferential RestorePointQueryType = "FullAndDifferential" + // RestorePointQueryTypeIncremental ... + RestorePointQueryTypeIncremental RestorePointQueryType = "Incremental" + // RestorePointQueryTypeInvalid ... + RestorePointQueryTypeInvalid RestorePointQueryType = "Invalid" + // RestorePointQueryTypeLog ... + RestorePointQueryTypeLog RestorePointQueryType = "Log" +) + +// PossibleRestorePointQueryTypeValues returns an array of possible values for the RestorePointQueryType const type. +func PossibleRestorePointQueryTypeValues() []RestorePointQueryType { + return []RestorePointQueryType{RestorePointQueryTypeAll, RestorePointQueryTypeDifferential, RestorePointQueryTypeFull, RestorePointQueryTypeFullAndDifferential, RestorePointQueryTypeIncremental, RestorePointQueryTypeInvalid, RestorePointQueryTypeLog} +} + +// RestorePointType enumerates the values for restore point type. +type RestorePointType string + +const ( + // RestorePointTypeDifferential ... + RestorePointTypeDifferential RestorePointType = "Differential" + // RestorePointTypeFull ... + RestorePointTypeFull RestorePointType = "Full" + // RestorePointTypeIncremental ... + RestorePointTypeIncremental RestorePointType = "Incremental" + // RestorePointTypeInvalid ... + RestorePointTypeInvalid RestorePointType = "Invalid" + // RestorePointTypeLog ... + RestorePointTypeLog RestorePointType = "Log" +) + +// PossibleRestorePointTypeValues returns an array of possible values for the RestorePointType const type. +func PossibleRestorePointTypeValues() []RestorePointType { + return []RestorePointType{RestorePointTypeDifferential, RestorePointTypeFull, RestorePointTypeIncremental, RestorePointTypeInvalid, RestorePointTypeLog} +} + +// RestoreRequestType enumerates the values for restore request type. +type RestoreRequestType string + +const ( + // RestoreRequestTypeFullShareRestore ... + RestoreRequestTypeFullShareRestore RestoreRequestType = "FullShareRestore" + // RestoreRequestTypeInvalid ... + RestoreRequestTypeInvalid RestoreRequestType = "Invalid" + // RestoreRequestTypeItemLevelRestore ... + RestoreRequestTypeItemLevelRestore RestoreRequestType = "ItemLevelRestore" +) + +// PossibleRestoreRequestTypeValues returns an array of possible values for the RestoreRequestType const type. +func PossibleRestoreRequestTypeValues() []RestoreRequestType { + return []RestoreRequestType{RestoreRequestTypeFullShareRestore, RestoreRequestTypeInvalid, RestoreRequestTypeItemLevelRestore} +} + +// RetentionDurationType enumerates the values for retention duration type. +type RetentionDurationType string + +const ( + // RetentionDurationTypeDays ... + RetentionDurationTypeDays RetentionDurationType = "Days" + // RetentionDurationTypeInvalid ... + RetentionDurationTypeInvalid RetentionDurationType = "Invalid" + // RetentionDurationTypeMonths ... + RetentionDurationTypeMonths RetentionDurationType = "Months" + // RetentionDurationTypeWeeks ... + RetentionDurationTypeWeeks RetentionDurationType = "Weeks" + // RetentionDurationTypeYears ... + RetentionDurationTypeYears RetentionDurationType = "Years" +) + +// PossibleRetentionDurationTypeValues returns an array of possible values for the RetentionDurationType const type. +func PossibleRetentionDurationTypeValues() []RetentionDurationType { + return []RetentionDurationType{RetentionDurationTypeDays, RetentionDurationTypeInvalid, RetentionDurationTypeMonths, RetentionDurationTypeWeeks, RetentionDurationTypeYears} +} + +// RetentionPolicyType enumerates the values for retention policy type. +type RetentionPolicyType string + +const ( + // RetentionPolicyTypeLongTermRetentionPolicy ... + RetentionPolicyTypeLongTermRetentionPolicy RetentionPolicyType = "LongTermRetentionPolicy" + // RetentionPolicyTypeRetentionPolicy ... + RetentionPolicyTypeRetentionPolicy RetentionPolicyType = "RetentionPolicy" + // RetentionPolicyTypeSimpleRetentionPolicy ... + RetentionPolicyTypeSimpleRetentionPolicy RetentionPolicyType = "SimpleRetentionPolicy" +) + +// PossibleRetentionPolicyTypeValues returns an array of possible values for the RetentionPolicyType const type. +func PossibleRetentionPolicyTypeValues() []RetentionPolicyType { + return []RetentionPolicyType{RetentionPolicyTypeLongTermRetentionPolicy, RetentionPolicyTypeRetentionPolicy, RetentionPolicyTypeSimpleRetentionPolicy} +} + +// RetentionScheduleFormat enumerates the values for retention schedule format. +type RetentionScheduleFormat string + +const ( + // RetentionScheduleFormatDaily ... + RetentionScheduleFormatDaily RetentionScheduleFormat = "Daily" + // RetentionScheduleFormatInvalid ... + RetentionScheduleFormatInvalid RetentionScheduleFormat = "Invalid" + // RetentionScheduleFormatWeekly ... + RetentionScheduleFormatWeekly RetentionScheduleFormat = "Weekly" +) + +// PossibleRetentionScheduleFormatValues returns an array of possible values for the RetentionScheduleFormat const type. +func PossibleRetentionScheduleFormatValues() []RetentionScheduleFormat { + return []RetentionScheduleFormat{RetentionScheduleFormatDaily, RetentionScheduleFormatInvalid, RetentionScheduleFormatWeekly} +} + +// SchedulePolicyType enumerates the values for schedule policy type. +type SchedulePolicyType string + +const ( + // SchedulePolicyTypeLogSchedulePolicy ... + SchedulePolicyTypeLogSchedulePolicy SchedulePolicyType = "LogSchedulePolicy" + // SchedulePolicyTypeLongTermSchedulePolicy ... + SchedulePolicyTypeLongTermSchedulePolicy SchedulePolicyType = "LongTermSchedulePolicy" + // SchedulePolicyTypeSchedulePolicy ... + SchedulePolicyTypeSchedulePolicy SchedulePolicyType = "SchedulePolicy" + // SchedulePolicyTypeSimpleSchedulePolicy ... + SchedulePolicyTypeSimpleSchedulePolicy SchedulePolicyType = "SimpleSchedulePolicy" +) + +// PossibleSchedulePolicyTypeValues returns an array of possible values for the SchedulePolicyType const type. +func PossibleSchedulePolicyTypeValues() []SchedulePolicyType { + return []SchedulePolicyType{SchedulePolicyTypeLogSchedulePolicy, SchedulePolicyTypeLongTermSchedulePolicy, SchedulePolicyTypeSchedulePolicy, SchedulePolicyTypeSimpleSchedulePolicy} +} + +// ScheduleRunType enumerates the values for schedule run type. +type ScheduleRunType string + +const ( + // ScheduleRunTypeDaily ... + ScheduleRunTypeDaily ScheduleRunType = "Daily" + // ScheduleRunTypeInvalid ... + ScheduleRunTypeInvalid ScheduleRunType = "Invalid" + // ScheduleRunTypeWeekly ... + ScheduleRunTypeWeekly ScheduleRunType = "Weekly" +) + +// PossibleScheduleRunTypeValues returns an array of possible values for the ScheduleRunType const type. +func PossibleScheduleRunTypeValues() []ScheduleRunType { + return []ScheduleRunType{ScheduleRunTypeDaily, ScheduleRunTypeInvalid, ScheduleRunTypeWeekly} +} + +// SoftDeleteFeatureState enumerates the values for soft delete feature state. +type SoftDeleteFeatureState string + +const ( + // SoftDeleteFeatureStateDisabled ... + SoftDeleteFeatureStateDisabled SoftDeleteFeatureState = "Disabled" + // SoftDeleteFeatureStateEnabled ... + SoftDeleteFeatureStateEnabled SoftDeleteFeatureState = "Enabled" + // SoftDeleteFeatureStateInvalid ... + SoftDeleteFeatureStateInvalid SoftDeleteFeatureState = "Invalid" +) + +// PossibleSoftDeleteFeatureStateValues returns an array of possible values for the SoftDeleteFeatureState const type. +func PossibleSoftDeleteFeatureStateValues() []SoftDeleteFeatureState { + return []SoftDeleteFeatureState{SoftDeleteFeatureStateDisabled, SoftDeleteFeatureStateEnabled, SoftDeleteFeatureStateInvalid} +} + +// SQLDataDirectoryType enumerates the values for sql data directory type. +type SQLDataDirectoryType string + +const ( + // SQLDataDirectoryTypeData ... + SQLDataDirectoryTypeData SQLDataDirectoryType = "Data" + // SQLDataDirectoryTypeInvalid ... + SQLDataDirectoryTypeInvalid SQLDataDirectoryType = "Invalid" + // SQLDataDirectoryTypeLog ... + SQLDataDirectoryTypeLog SQLDataDirectoryType = "Log" +) + +// PossibleSQLDataDirectoryTypeValues returns an array of possible values for the SQLDataDirectoryType const type. +func PossibleSQLDataDirectoryTypeValues() []SQLDataDirectoryType { + return []SQLDataDirectoryType{SQLDataDirectoryTypeData, SQLDataDirectoryTypeInvalid, SQLDataDirectoryTypeLog} +} + +// StorageType enumerates the values for storage type. +type StorageType string + +const ( + // StorageTypeGeoRedundant ... + StorageTypeGeoRedundant StorageType = "GeoRedundant" + // StorageTypeInvalid ... + StorageTypeInvalid StorageType = "Invalid" + // StorageTypeLocallyRedundant ... + StorageTypeLocallyRedundant StorageType = "LocallyRedundant" + // StorageTypeReadAccessGeoZoneRedundant ... + StorageTypeReadAccessGeoZoneRedundant StorageType = "ReadAccessGeoZoneRedundant" + // StorageTypeZoneRedundant ... + StorageTypeZoneRedundant StorageType = "ZoneRedundant" +) + +// PossibleStorageTypeValues returns an array of possible values for the StorageType const type. +func PossibleStorageTypeValues() []StorageType { + return []StorageType{StorageTypeGeoRedundant, StorageTypeInvalid, StorageTypeLocallyRedundant, StorageTypeReadAccessGeoZoneRedundant, StorageTypeZoneRedundant} +} + +// StorageTypeState enumerates the values for storage type state. +type StorageTypeState string + +const ( + // StorageTypeStateInvalid ... + StorageTypeStateInvalid StorageTypeState = "Invalid" + // StorageTypeStateLocked ... + StorageTypeStateLocked StorageTypeState = "Locked" + // StorageTypeStateUnlocked ... + StorageTypeStateUnlocked StorageTypeState = "Unlocked" +) + +// PossibleStorageTypeStateValues returns an array of possible values for the StorageTypeState const type. +func PossibleStorageTypeStateValues() []StorageTypeState { + return []StorageTypeState{StorageTypeStateInvalid, StorageTypeStateLocked, StorageTypeStateUnlocked} +} + +// SupportStatus enumerates the values for support status. +type SupportStatus string + +const ( + // SupportStatusDefaultOFF ... + SupportStatusDefaultOFF SupportStatus = "DefaultOFF" + // SupportStatusDefaultON ... + SupportStatusDefaultON SupportStatus = "DefaultON" + // SupportStatusInvalid ... + SupportStatusInvalid SupportStatus = "Invalid" + // SupportStatusNotSupported ... + SupportStatusNotSupported SupportStatus = "NotSupported" + // SupportStatusSupported ... + SupportStatusSupported SupportStatus = "Supported" +) + +// PossibleSupportStatusValues returns an array of possible values for the SupportStatus const type. +func PossibleSupportStatusValues() []SupportStatus { + return []SupportStatus{SupportStatusDefaultOFF, SupportStatusDefaultON, SupportStatusInvalid, SupportStatusNotSupported, SupportStatusSupported} +} + +// Type enumerates the values for type. +type Type string + +const ( + // TypeBackupProtectedItemCountSummary ... + TypeBackupProtectedItemCountSummary Type = "BackupProtectedItemCountSummary" + // TypeBackupProtectionContainerCountSummary ... + TypeBackupProtectionContainerCountSummary Type = "BackupProtectionContainerCountSummary" + // TypeInvalid ... + TypeInvalid Type = "Invalid" +) + +// PossibleTypeValues returns an array of possible values for the Type const type. +func PossibleTypeValues() []Type { + return []Type{TypeBackupProtectedItemCountSummary, TypeBackupProtectionContainerCountSummary, TypeInvalid} +} + +// TypeEnum enumerates the values for type enum. +type TypeEnum string + +const ( + // TypeEnumCopyOnlyFull ... + TypeEnumCopyOnlyFull TypeEnum = "CopyOnlyFull" + // TypeEnumDifferential ... + TypeEnumDifferential TypeEnum = "Differential" + // TypeEnumFull ... + TypeEnumFull TypeEnum = "Full" + // TypeEnumIncremental ... + TypeEnumIncremental TypeEnum = "Incremental" + // TypeEnumInvalid ... + TypeEnumInvalid TypeEnum = "Invalid" + // TypeEnumLog ... + TypeEnumLog TypeEnum = "Log" +) + +// PossibleTypeEnumValues returns an array of possible values for the TypeEnum const type. +func PossibleTypeEnumValues() []TypeEnum { + return []TypeEnum{TypeEnumCopyOnlyFull, TypeEnumDifferential, TypeEnumFull, TypeEnumIncremental, TypeEnumInvalid, TypeEnumLog} +} + +// UsagesUnit enumerates the values for usages unit. +type UsagesUnit string + +const ( + // UsagesUnitBytes ... + UsagesUnitBytes UsagesUnit = "Bytes" + // UsagesUnitBytesPerSecond ... + UsagesUnitBytesPerSecond UsagesUnit = "BytesPerSecond" + // UsagesUnitCount ... + UsagesUnitCount UsagesUnit = "Count" + // UsagesUnitCountPerSecond ... + UsagesUnitCountPerSecond UsagesUnit = "CountPerSecond" + // UsagesUnitPercent ... + UsagesUnitPercent UsagesUnit = "Percent" + // UsagesUnitSeconds ... + UsagesUnitSeconds UsagesUnit = "Seconds" +) + +// PossibleUsagesUnitValues returns an array of possible values for the UsagesUnit const type. +func PossibleUsagesUnitValues() []UsagesUnit { + return []UsagesUnit{UsagesUnitBytes, UsagesUnitBytesPerSecond, UsagesUnitCount, UsagesUnitCountPerSecond, UsagesUnitPercent, UsagesUnitSeconds} +} + +// ValidationStatus enumerates the values for validation status. +type ValidationStatus string + +const ( + // ValidationStatusFailed ... + ValidationStatusFailed ValidationStatus = "Failed" + // ValidationStatusInvalid ... + ValidationStatusInvalid ValidationStatus = "Invalid" + // ValidationStatusSucceeded ... + ValidationStatusSucceeded ValidationStatus = "Succeeded" +) + +// PossibleValidationStatusValues returns an array of possible values for the ValidationStatus const type. +func PossibleValidationStatusValues() []ValidationStatus { + return []ValidationStatus{ValidationStatusFailed, ValidationStatusInvalid, ValidationStatusSucceeded} +} + +// WeekOfMonth enumerates the values for week of month. +type WeekOfMonth string + +const ( + // WeekOfMonthFirst ... + WeekOfMonthFirst WeekOfMonth = "First" + // WeekOfMonthFourth ... + WeekOfMonthFourth WeekOfMonth = "Fourth" + // WeekOfMonthInvalid ... + WeekOfMonthInvalid WeekOfMonth = "Invalid" + // WeekOfMonthLast ... + WeekOfMonthLast WeekOfMonth = "Last" + // WeekOfMonthSecond ... + WeekOfMonthSecond WeekOfMonth = "Second" + // WeekOfMonthThird ... + WeekOfMonthThird WeekOfMonth = "Third" +) + +// PossibleWeekOfMonthValues returns an array of possible values for the WeekOfMonth const type. +func PossibleWeekOfMonthValues() []WeekOfMonth { + return []WeekOfMonth{WeekOfMonthFirst, WeekOfMonthFourth, WeekOfMonthInvalid, WeekOfMonthLast, WeekOfMonthSecond, WeekOfMonthThird} +} + +// WorkloadItemType enumerates the values for workload item type. +type WorkloadItemType string + +const ( + // WorkloadItemTypeInvalid ... + WorkloadItemTypeInvalid WorkloadItemType = "Invalid" + // WorkloadItemTypeSAPAseDatabase ... + WorkloadItemTypeSAPAseDatabase WorkloadItemType = "SAPAseDatabase" + // WorkloadItemTypeSAPAseSystem ... + WorkloadItemTypeSAPAseSystem WorkloadItemType = "SAPAseSystem" + // WorkloadItemTypeSAPHanaDatabase ... + WorkloadItemTypeSAPHanaDatabase WorkloadItemType = "SAPHanaDatabase" + // WorkloadItemTypeSAPHanaSystem ... + WorkloadItemTypeSAPHanaSystem WorkloadItemType = "SAPHanaSystem" + // WorkloadItemTypeSQLDataBase ... + WorkloadItemTypeSQLDataBase WorkloadItemType = "SQLDataBase" + // WorkloadItemTypeSQLInstance ... + WorkloadItemTypeSQLInstance WorkloadItemType = "SQLInstance" +) + +// PossibleWorkloadItemTypeValues returns an array of possible values for the WorkloadItemType const type. +func PossibleWorkloadItemTypeValues() []WorkloadItemType { + return []WorkloadItemType{WorkloadItemTypeInvalid, WorkloadItemTypeSAPAseDatabase, WorkloadItemTypeSAPAseSystem, WorkloadItemTypeSAPHanaDatabase, WorkloadItemTypeSAPHanaSystem, WorkloadItemTypeSQLDataBase, WorkloadItemTypeSQLInstance} +} + +// WorkloadItemTypeBasicWorkloadItem enumerates the values for workload item type basic workload item. +type WorkloadItemTypeBasicWorkloadItem string + +const ( + // WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeAzureVMWorkloadItem ... + WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeAzureVMWorkloadItem WorkloadItemTypeBasicWorkloadItem = "AzureVmWorkloadItem" + // WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPAseDatabase ... + WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPAseDatabase WorkloadItemTypeBasicWorkloadItem = "SAPAseDatabase" + // WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPAseSystem ... + WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPAseSystem WorkloadItemTypeBasicWorkloadItem = "SAPAseSystem" + // WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPHanaDatabase ... + WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPHanaDatabase WorkloadItemTypeBasicWorkloadItem = "SAPHanaDatabase" + // WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPHanaSystem ... + WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPHanaSystem WorkloadItemTypeBasicWorkloadItem = "SAPHanaSystem" + // WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSQLDataBase ... + WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSQLDataBase WorkloadItemTypeBasicWorkloadItem = "SQLDataBase" + // WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSQLInstance ... + WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSQLInstance WorkloadItemTypeBasicWorkloadItem = "SQLInstance" + // WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeWorkloadItem ... + WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeWorkloadItem WorkloadItemTypeBasicWorkloadItem = "WorkloadItem" +) + +// PossibleWorkloadItemTypeBasicWorkloadItemValues returns an array of possible values for the WorkloadItemTypeBasicWorkloadItem const type. +func PossibleWorkloadItemTypeBasicWorkloadItemValues() []WorkloadItemTypeBasicWorkloadItem { + return []WorkloadItemTypeBasicWorkloadItem{WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeAzureVMWorkloadItem, WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPAseDatabase, WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPAseSystem, WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPHanaDatabase, WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPHanaSystem, WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSQLDataBase, WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSQLInstance, WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeWorkloadItem} +} + +// WorkloadType enumerates the values for workload type. +type WorkloadType string + +const ( + // WorkloadTypeAzureFileShare ... + WorkloadTypeAzureFileShare WorkloadType = "AzureFileShare" + // WorkloadTypeAzureSQLDb ... + WorkloadTypeAzureSQLDb WorkloadType = "AzureSqlDb" + // WorkloadTypeClient ... + WorkloadTypeClient WorkloadType = "Client" + // WorkloadTypeExchange ... + WorkloadTypeExchange WorkloadType = "Exchange" + // WorkloadTypeFileFolder ... + WorkloadTypeFileFolder WorkloadType = "FileFolder" + // WorkloadTypeGenericDataSource ... + WorkloadTypeGenericDataSource WorkloadType = "GenericDataSource" + // WorkloadTypeInvalid ... + WorkloadTypeInvalid WorkloadType = "Invalid" + // WorkloadTypeSAPAseDatabase ... + WorkloadTypeSAPAseDatabase WorkloadType = "SAPAseDatabase" + // WorkloadTypeSAPHanaDatabase ... + WorkloadTypeSAPHanaDatabase WorkloadType = "SAPHanaDatabase" + // WorkloadTypeSharepoint ... + WorkloadTypeSharepoint WorkloadType = "Sharepoint" + // WorkloadTypeSQLDataBase ... + WorkloadTypeSQLDataBase WorkloadType = "SQLDataBase" + // WorkloadTypeSQLDB ... + WorkloadTypeSQLDB WorkloadType = "SQLDB" + // WorkloadTypeSystemState ... + WorkloadTypeSystemState WorkloadType = "SystemState" + // WorkloadTypeVM ... + WorkloadTypeVM WorkloadType = "VM" + // WorkloadTypeVMwareVM ... + WorkloadTypeVMwareVM WorkloadType = "VMwareVM" +) + +// PossibleWorkloadTypeValues returns an array of possible values for the WorkloadType const type. +func PossibleWorkloadTypeValues() []WorkloadType { + return []WorkloadType{WorkloadTypeAzureFileShare, WorkloadTypeAzureSQLDb, WorkloadTypeClient, WorkloadTypeExchange, WorkloadTypeFileFolder, WorkloadTypeGenericDataSource, WorkloadTypeInvalid, WorkloadTypeSAPAseDatabase, WorkloadTypeSAPHanaDatabase, WorkloadTypeSharepoint, WorkloadTypeSQLDataBase, WorkloadTypeSQLDB, WorkloadTypeSystemState, WorkloadTypeVM, WorkloadTypeVMwareVM} +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/exportjobsoperationresults.go b/services/recoveryservices/mgmt/2021-01-01/backup/exportjobsoperationresults.go new file mode 100644 index 000000000000..e6d2345c0f3f --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/exportjobsoperationresults.go @@ -0,0 +1,112 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ExportJobsOperationResultsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type ExportJobsOperationResultsClient struct { + BaseClient +} + +// NewExportJobsOperationResultsClient creates an instance of the ExportJobsOperationResultsClient client. +func NewExportJobsOperationResultsClient(subscriptionID string) ExportJobsOperationResultsClient { + return NewExportJobsOperationResultsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewExportJobsOperationResultsClientWithBaseURI creates an instance of the ExportJobsOperationResultsClient client +// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign +// clouds, Azure stack). +func NewExportJobsOperationResultsClientWithBaseURI(baseURI string, subscriptionID string) ExportJobsOperationResultsClient { + return ExportJobsOperationResultsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get gets the operation result of operation triggered by Export Jobs API. If the operation is successful, then it +// also +// contains URL of a Blob and a SAS key to access the same. The blob contains exported jobs in JSON serialized format. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// operationID - operationID which represents the export job. +func (client ExportJobsOperationResultsClient) Get(ctx context.Context, vaultName string, resourceGroupName string, operationID string) (result OperationResultInfoBaseResource, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExportJobsOperationResultsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, vaultName, resourceGroupName, operationID) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ExportJobsOperationResultsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.ExportJobsOperationResultsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ExportJobsOperationResultsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client ExportJobsOperationResultsClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, operationID string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "operationId": autorest.Encode("path", operationID), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/operationResults/{operationId}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client ExportJobsOperationResultsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ExportJobsOperationResultsClient) GetResponder(resp *http.Response) (result OperationResultInfoBaseResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/featuresupport.go b/services/recoveryservices/mgmt/2021-01-01/backup/featuresupport.go new file mode 100644 index 000000000000..89bd19a91d48 --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/featuresupport.go @@ -0,0 +1,108 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// FeatureSupportClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type FeatureSupportClient struct { + BaseClient +} + +// NewFeatureSupportClient creates an instance of the FeatureSupportClient client. +func NewFeatureSupportClient(subscriptionID string) FeatureSupportClient { + return NewFeatureSupportClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewFeatureSupportClientWithBaseURI creates an instance of the FeatureSupportClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewFeatureSupportClientWithBaseURI(baseURI string, subscriptionID string) FeatureSupportClient { + return FeatureSupportClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Validate sends the validate request. +// Parameters: +// azureRegion - azure region to hit Api +// parameters - feature support request object +func (client FeatureSupportClient) Validate(ctx context.Context, azureRegion string, parameters BasicFeatureSupportRequest) (result AzureVMResourceFeatureSupportResponse, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FeatureSupportClient.Validate") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ValidatePreparer(ctx, azureRegion, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.FeatureSupportClient", "Validate", nil, "Failure preparing request") + return + } + + resp, err := client.ValidateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.FeatureSupportClient", "Validate", resp, "Failure sending request") + return + } + + result, err = client.ValidateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.FeatureSupportClient", "Validate", resp, "Failure responding to request") + return + } + + return +} + +// ValidatePreparer prepares the Validate request. +func (client FeatureSupportClient) ValidatePreparer(ctx context.Context, azureRegion string, parameters BasicFeatureSupportRequest) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "azureRegion": autorest.Encode("path", azureRegion), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2017-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/Subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupValidateFeatures", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ValidateSender sends the Validate request. The method will close the +// http.Response Body if it receives an error. +func (client FeatureSupportClient) ValidateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ValidateResponder handles the response to the Validate request. The method always +// closes the http.Response Body. +func (client FeatureSupportClient) ValidateResponder(resp *http.Response) (result AzureVMResourceFeatureSupportResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/itemlevelrecoveryconnections.go b/services/recoveryservices/mgmt/2021-01-01/backup/itemlevelrecoveryconnections.go new file mode 100644 index 000000000000..1be6d2887651 --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/itemlevelrecoveryconnections.go @@ -0,0 +1,208 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ItemLevelRecoveryConnectionsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type ItemLevelRecoveryConnectionsClient struct { + BaseClient +} + +// NewItemLevelRecoveryConnectionsClient creates an instance of the ItemLevelRecoveryConnectionsClient client. +func NewItemLevelRecoveryConnectionsClient(subscriptionID string) ItemLevelRecoveryConnectionsClient { + return NewItemLevelRecoveryConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewItemLevelRecoveryConnectionsClientWithBaseURI creates an instance of the ItemLevelRecoveryConnectionsClient +// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI +// (sovereign clouds, Azure stack). +func NewItemLevelRecoveryConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ItemLevelRecoveryConnectionsClient { + return ItemLevelRecoveryConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Provision provisions a script which invokes an iSCSI connection to the backup data. Executing this script opens a +// file +// explorer displaying all the recoverable files and folders. This is an asynchronous operation. To know the status of +// provisioning, call GetProtectedItemOperationResult API. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// fabricName - fabric name associated with the backed up items. +// containerName - container name associated with the backed up items. +// protectedItemName - backed up item name whose files/folders are to be restored. +// recoveryPointID - recovery point ID which represents backed up data. iSCSI connection will be provisioned +// for this backed up data. +// parameters - resource ILR request +func (client ItemLevelRecoveryConnectionsClient) Provision(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, recoveryPointID string, parameters ILRRequestResource) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ItemLevelRecoveryConnectionsClient.Provision") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ProvisionPreparer(ctx, vaultName, resourceGroupName, fabricName, containerName, protectedItemName, recoveryPointID, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ItemLevelRecoveryConnectionsClient", "Provision", nil, "Failure preparing request") + return + } + + resp, err := client.ProvisionSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "backup.ItemLevelRecoveryConnectionsClient", "Provision", resp, "Failure sending request") + return + } + + result, err = client.ProvisionResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ItemLevelRecoveryConnectionsClient", "Provision", resp, "Failure responding to request") + return + } + + return +} + +// ProvisionPreparer prepares the Provision request. +func (client ItemLevelRecoveryConnectionsClient) ProvisionPreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, recoveryPointID string, parameters ILRRequestResource) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "containerName": autorest.Encode("path", containerName), + "fabricName": autorest.Encode("path", fabricName), + "protectedItemName": autorest.Encode("path", protectedItemName), + "recoveryPointId": autorest.Encode("path", recoveryPointID), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}/provisionInstantItemRecovery", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ProvisionSender sends the Provision request. The method will close the +// http.Response Body if it receives an error. +func (client ItemLevelRecoveryConnectionsClient) ProvisionSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ProvisionResponder handles the response to the Provision request. The method always +// closes the http.Response Body. +func (client ItemLevelRecoveryConnectionsClient) ProvisionResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} + +// Revoke revokes an iSCSI connection which can be used to download a script. Executing this script opens a file +// explorer +// displaying all recoverable files and folders. This is an asynchronous operation. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// fabricName - fabric name associated with the backed up items. +// containerName - container name associated with the backed up items. +// protectedItemName - backed up item name whose files/folders are to be restored. +// recoveryPointID - recovery point ID which represents backed up data. iSCSI connection will be revoked for +// this backed up data. +func (client ItemLevelRecoveryConnectionsClient) Revoke(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, recoveryPointID string) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ItemLevelRecoveryConnectionsClient.Revoke") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.RevokePreparer(ctx, vaultName, resourceGroupName, fabricName, containerName, protectedItemName, recoveryPointID) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ItemLevelRecoveryConnectionsClient", "Revoke", nil, "Failure preparing request") + return + } + + resp, err := client.RevokeSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "backup.ItemLevelRecoveryConnectionsClient", "Revoke", resp, "Failure sending request") + return + } + + result, err = client.RevokeResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ItemLevelRecoveryConnectionsClient", "Revoke", resp, "Failure responding to request") + return + } + + return +} + +// RevokePreparer prepares the Revoke request. +func (client ItemLevelRecoveryConnectionsClient) RevokePreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, recoveryPointID string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "containerName": autorest.Encode("path", containerName), + "fabricName": autorest.Encode("path", fabricName), + "protectedItemName": autorest.Encode("path", protectedItemName), + "recoveryPointId": autorest.Encode("path", recoveryPointID), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}/revokeInstantItemRecovery", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// RevokeSender sends the Revoke request. The method will close the +// http.Response Body if it receives an error. +func (client ItemLevelRecoveryConnectionsClient) RevokeSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// RevokeResponder handles the response to the Revoke request. The method always +// closes the http.Response Body. +func (client ItemLevelRecoveryConnectionsClient) RevokeResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/jobcancellations.go b/services/recoveryservices/mgmt/2021-01-01/backup/jobcancellations.go new file mode 100644 index 000000000000..0b11375e6563 --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/jobcancellations.go @@ -0,0 +1,110 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// JobCancellationsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type JobCancellationsClient struct { + BaseClient +} + +// NewJobCancellationsClient creates an instance of the JobCancellationsClient client. +func NewJobCancellationsClient(subscriptionID string) JobCancellationsClient { + return NewJobCancellationsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewJobCancellationsClientWithBaseURI creates an instance of the JobCancellationsClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewJobCancellationsClientWithBaseURI(baseURI string, subscriptionID string) JobCancellationsClient { + return JobCancellationsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Trigger cancels a job. This is an asynchronous operation. To know the status of the cancellation, call +// GetCancelOperationResult API. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// jobName - name of the job to cancel. +func (client JobCancellationsClient) Trigger(ctx context.Context, vaultName string, resourceGroupName string, jobName string) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/JobCancellationsClient.Trigger") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.TriggerPreparer(ctx, vaultName, resourceGroupName, jobName) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.JobCancellationsClient", "Trigger", nil, "Failure preparing request") + return + } + + resp, err := client.TriggerSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "backup.JobCancellationsClient", "Trigger", resp, "Failure sending request") + return + } + + result, err = client.TriggerResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.JobCancellationsClient", "Trigger", resp, "Failure responding to request") + return + } + + return +} + +// TriggerPreparer prepares the Trigger request. +func (client JobCancellationsClient) TriggerPreparer(ctx context.Context, vaultName string, resourceGroupName string, jobName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "jobName": autorest.Encode("path", jobName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/{jobName}/cancel", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// TriggerSender sends the Trigger request. The method will close the +// http.Response Body if it receives an error. +func (client JobCancellationsClient) TriggerSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// TriggerResponder handles the response to the Trigger request. The method always +// closes the http.Response Body. +func (client JobCancellationsClient) TriggerResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/jobdetails.go b/services/recoveryservices/mgmt/2021-01-01/backup/jobdetails.go new file mode 100644 index 000000000000..43e252cde0f5 --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/jobdetails.go @@ -0,0 +1,109 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// JobDetailsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type JobDetailsClient struct { + BaseClient +} + +// NewJobDetailsClient creates an instance of the JobDetailsClient client. +func NewJobDetailsClient(subscriptionID string) JobDetailsClient { + return NewJobDetailsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewJobDetailsClientWithBaseURI creates an instance of the JobDetailsClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewJobDetailsClientWithBaseURI(baseURI string, subscriptionID string) JobDetailsClient { + return JobDetailsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get gets extended information associated with the job. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// jobName - name of the job whose details are to be fetched. +func (client JobDetailsClient) Get(ctx context.Context, vaultName string, resourceGroupName string, jobName string) (result JobResource, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/JobDetailsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, vaultName, resourceGroupName, jobName) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.JobDetailsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.JobDetailsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.JobDetailsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client JobDetailsClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, jobName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "jobName": autorest.Encode("path", jobName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/{jobName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client JobDetailsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client JobDetailsClient) GetResponder(resp *http.Response) (result JobResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/joboperationresults.go b/services/recoveryservices/mgmt/2021-01-01/backup/joboperationresults.go new file mode 100644 index 000000000000..a4ec833676cb --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/joboperationresults.go @@ -0,0 +1,111 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// JobOperationResultsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type JobOperationResultsClient struct { + BaseClient +} + +// NewJobOperationResultsClient creates an instance of the JobOperationResultsClient client. +func NewJobOperationResultsClient(subscriptionID string) JobOperationResultsClient { + return NewJobOperationResultsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewJobOperationResultsClientWithBaseURI creates an instance of the JobOperationResultsClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewJobOperationResultsClientWithBaseURI(baseURI string, subscriptionID string) JobOperationResultsClient { + return JobOperationResultsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get fetches the result of any operation. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// jobName - job name whose operation result has to be fetched. +// operationID - operationID which represents the operation whose result has to be fetched. +func (client JobOperationResultsClient) Get(ctx context.Context, vaultName string, resourceGroupName string, jobName string, operationID string) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/JobOperationResultsClient.Get") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, vaultName, resourceGroupName, jobName, operationID) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.JobOperationResultsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "backup.JobOperationResultsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.JobOperationResultsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client JobOperationResultsClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, jobName string, operationID string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "jobName": autorest.Encode("path", jobName), + "operationId": autorest.Encode("path", operationID), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/{jobName}/operationResults/{operationId}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client JobOperationResultsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client JobOperationResultsClient) GetResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/jobs.go b/services/recoveryservices/mgmt/2021-01-01/backup/jobs.go new file mode 100644 index 000000000000..a6c4c36472a4 --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/jobs.go @@ -0,0 +1,157 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// JobsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type JobsClient struct { + BaseClient +} + +// NewJobsClient creates an instance of the JobsClient client. +func NewJobsClient(subscriptionID string) JobsClient { + return NewJobsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewJobsClientWithBaseURI creates an instance of the JobsClient client using a custom endpoint. Use this when +// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewJobsClientWithBaseURI(baseURI string, subscriptionID string) JobsClient { + return JobsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List provides a pageable list of jobs. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// filter - oData filter options. +// skipToken - skipToken Filter. +func (client JobsClient) List(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result JobResourceListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/JobsClient.List") + defer func() { + sc := -1 + if result.jrl.Response.Response != nil { + sc = result.jrl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, vaultName, resourceGroupName, filter, skipToken) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.JobsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.jrl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.JobsClient", "List", resp, "Failure sending request") + return + } + + result.jrl, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.JobsClient", "List", resp, "Failure responding to request") + return + } + if result.jrl.hasNextLink() && result.jrl.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client JobsClient) ListPreparer(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(filter) > 0 { + queryParameters["$filter"] = autorest.Encode("query", filter) + } + if len(skipToken) > 0 { + queryParameters["$skipToken"] = autorest.Encode("query", skipToken) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client JobsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client JobsClient) ListResponder(resp *http.Response) (result JobResourceList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client JobsClient) listNextResults(ctx context.Context, lastResults JobResourceList) (result JobResourceList, err error) { + req, err := lastResults.jobResourceListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "backup.JobsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "backup.JobsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.JobsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client JobsClient) ListComplete(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result JobResourceListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/JobsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, vaultName, resourceGroupName, filter, skipToken) + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/jobsgroup.go b/services/recoveryservices/mgmt/2021-01-01/backup/jobsgroup.go new file mode 100644 index 000000000000..f5ec2c00e896 --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/jobsgroup.go @@ -0,0 +1,110 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// JobsGroupClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type JobsGroupClient struct { + BaseClient +} + +// NewJobsGroupClient creates an instance of the JobsGroupClient client. +func NewJobsGroupClient(subscriptionID string) JobsGroupClient { + return NewJobsGroupClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewJobsGroupClientWithBaseURI creates an instance of the JobsGroupClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewJobsGroupClientWithBaseURI(baseURI string, subscriptionID string) JobsGroupClient { + return JobsGroupClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Export triggers export of jobs specified by filters and returns an OperationID to track. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// filter - oData filter options. +func (client JobsGroupClient) Export(ctx context.Context, vaultName string, resourceGroupName string, filter string) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/JobsGroupClient.Export") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ExportPreparer(ctx, vaultName, resourceGroupName, filter) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.JobsGroupClient", "Export", nil, "Failure preparing request") + return + } + + resp, err := client.ExportSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "backup.JobsGroupClient", "Export", resp, "Failure sending request") + return + } + + result, err = client.ExportResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.JobsGroupClient", "Export", resp, "Failure responding to request") + return + } + + return +} + +// ExportPreparer prepares the Export request. +func (client JobsGroupClient) ExportPreparer(ctx context.Context, vaultName string, resourceGroupName string, filter string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(filter) > 0 { + queryParameters["$filter"] = autorest.Encode("query", filter) + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobsExport", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ExportSender sends the Export request. The method will close the +// http.Response Body if it receives an error. +func (client JobsGroupClient) ExportSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ExportResponder handles the response to the Export request. The method always +// closes the http.Response Body. +func (client JobsGroupClient) ExportResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/models.go b/services/recoveryservices/mgmt/2021-01-01/backup/models.go new file mode 100644 index 000000000000..53a112ec5d97 --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/models.go @@ -0,0 +1,22843 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "encoding/json" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/date" + "github.com/Azure/go-autorest/autorest/to" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// The package's fully qualified name. +const fqdn = "github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2021-01-01/backup" + +// AADProperties ... +type AADProperties struct { + ServicePrincipalClientID *string `json:"servicePrincipalClientId,omitempty"` + TenantID *string `json:"tenantId,omitempty"` + Authority *string `json:"authority,omitempty"` + Audience *string `json:"audience,omitempty"` + ServicePrincipalObjectID *string `json:"servicePrincipalObjectId,omitempty"` +} + +// AADPropertiesResource ... +type AADPropertiesResource struct { + autorest.Response `json:"-"` + // Properties - AADPropertiesResource properties + Properties *AADProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Resource Id represents the complete path to the resource. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name associated with the resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // ETag - Optional ETag. + ETag *string `json:"eTag,omitempty"` +} + +// MarshalJSON is the custom marshaler for AADPropertiesResource. +func (apr AADPropertiesResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if apr.Properties != nil { + objectMap["properties"] = apr.Properties + } + if apr.Location != nil { + objectMap["location"] = apr.Location + } + if apr.Tags != nil { + objectMap["tags"] = apr.Tags + } + if apr.ETag != nil { + objectMap["eTag"] = apr.ETag + } + return json.Marshal(objectMap) +} + +// AzureBackupGoalFeatureSupportRequest azure backup goal feature specific request. +type AzureBackupGoalFeatureSupportRequest struct { + // FeatureType - Possible values include: 'FeatureTypeFeatureSupportRequest', 'FeatureTypeAzureBackupGoals', 'FeatureTypeAzureVMResourceBackup' + FeatureType FeatureType `json:"featureType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureBackupGoalFeatureSupportRequest. +func (abgfsr AzureBackupGoalFeatureSupportRequest) MarshalJSON() ([]byte, error) { + abgfsr.FeatureType = FeatureTypeAzureBackupGoals + objectMap := make(map[string]interface{}) + if abgfsr.FeatureType != "" { + objectMap["featureType"] = abgfsr.FeatureType + } + return json.Marshal(objectMap) +} + +// AsAzureBackupGoalFeatureSupportRequest is the BasicFeatureSupportRequest implementation for AzureBackupGoalFeatureSupportRequest. +func (abgfsr AzureBackupGoalFeatureSupportRequest) AsAzureBackupGoalFeatureSupportRequest() (*AzureBackupGoalFeatureSupportRequest, bool) { + return &abgfsr, true +} + +// AsAzureVMResourceFeatureSupportRequest is the BasicFeatureSupportRequest implementation for AzureBackupGoalFeatureSupportRequest. +func (abgfsr AzureBackupGoalFeatureSupportRequest) AsAzureVMResourceFeatureSupportRequest() (*AzureVMResourceFeatureSupportRequest, bool) { + return nil, false +} + +// AsFeatureSupportRequest is the BasicFeatureSupportRequest implementation for AzureBackupGoalFeatureSupportRequest. +func (abgfsr AzureBackupGoalFeatureSupportRequest) AsFeatureSupportRequest() (*FeatureSupportRequest, bool) { + return nil, false +} + +// AsBasicFeatureSupportRequest is the BasicFeatureSupportRequest implementation for AzureBackupGoalFeatureSupportRequest. +func (abgfsr AzureBackupGoalFeatureSupportRequest) AsBasicFeatureSupportRequest() (BasicFeatureSupportRequest, bool) { + return &abgfsr, true +} + +// AzureBackupServerContainer azureBackupServer (DPMVenus) workload-specific protection container. +type AzureBackupServerContainer struct { + // CanReRegister - Specifies whether the container is re-registrable. + CanReRegister *bool `json:"canReRegister,omitempty"` + // ContainerID - ID of container. + ContainerID *string `json:"containerId,omitempty"` + // ProtectedItemCount - Number of protected items in the BackupEngine + ProtectedItemCount *int64 `json:"protectedItemCount,omitempty"` + // DpmAgentVersion - Backup engine Agent version + DpmAgentVersion *string `json:"dpmAgentVersion,omitempty"` + // DpmServers - List of BackupEngines protecting the container + DpmServers *[]string `json:"dpmServers,omitempty"` + // UpgradeAvailable - To check if upgrade available + UpgradeAvailable *bool `json:"upgradeAvailable,omitempty"` + // ProtectionStatus - Protection status of the container. + ProtectionStatus *string `json:"protectionStatus,omitempty"` + // ExtendedInfo - Extended Info of the container. + ExtendedInfo *DPMContainerExtendedInfo `json:"extendedInfo,omitempty"` + // FriendlyName - Friendly name of the container. + FriendlyName *string `json:"friendlyName,omitempty"` + // BackupManagementType - Type of backup management for the container. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // RegistrationStatus - Status of registration of the container with the Recovery Services Vault. + RegistrationStatus *string `json:"registrationStatus,omitempty"` + // HealthStatus - Status of health of the container. + HealthStatus *string `json:"healthStatus,omitempty"` + // ContainerType - Possible values include: 'ContainerTypeBasicProtectionContainerContainerTypeProtectionContainer', 'ContainerTypeBasicProtectionContainerContainerTypeAzureBackupServerContainer', 'ContainerTypeBasicProtectionContainerContainerTypeMicrosoftClassicComputevirtualMachines', 'ContainerTypeBasicProtectionContainerContainerTypeMicrosoftComputevirtualMachines', 'ContainerTypeBasicProtectionContainerContainerTypeSQLAGWorkLoadContainer', 'ContainerTypeBasicProtectionContainerContainerTypeAzureSQLContainer', 'ContainerTypeBasicProtectionContainerContainerTypeStorageContainer', 'ContainerTypeBasicProtectionContainerContainerTypeVMAppContainer', 'ContainerTypeBasicProtectionContainerContainerTypeAzureWorkloadContainer', 'ContainerTypeBasicProtectionContainerContainerTypeDPMContainer', 'ContainerTypeBasicProtectionContainerContainerTypeGenericContainer', 'ContainerTypeBasicProtectionContainerContainerTypeIaaSVMContainer', 'ContainerTypeBasicProtectionContainerContainerTypeWindows' + ContainerType ContainerTypeBasicProtectionContainer `json:"containerType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureBackupServerContainer. +func (absc AzureBackupServerContainer) MarshalJSON() ([]byte, error) { + absc.ContainerType = ContainerTypeBasicProtectionContainerContainerTypeAzureBackupServerContainer + objectMap := make(map[string]interface{}) + if absc.CanReRegister != nil { + objectMap["canReRegister"] = absc.CanReRegister + } + if absc.ContainerID != nil { + objectMap["containerId"] = absc.ContainerID + } + if absc.ProtectedItemCount != nil { + objectMap["protectedItemCount"] = absc.ProtectedItemCount + } + if absc.DpmAgentVersion != nil { + objectMap["dpmAgentVersion"] = absc.DpmAgentVersion + } + if absc.DpmServers != nil { + objectMap["dpmServers"] = absc.DpmServers + } + if absc.UpgradeAvailable != nil { + objectMap["upgradeAvailable"] = absc.UpgradeAvailable + } + if absc.ProtectionStatus != nil { + objectMap["protectionStatus"] = absc.ProtectionStatus + } + if absc.ExtendedInfo != nil { + objectMap["extendedInfo"] = absc.ExtendedInfo + } + if absc.FriendlyName != nil { + objectMap["friendlyName"] = absc.FriendlyName + } + if absc.BackupManagementType != "" { + objectMap["backupManagementType"] = absc.BackupManagementType + } + if absc.RegistrationStatus != nil { + objectMap["registrationStatus"] = absc.RegistrationStatus + } + if absc.HealthStatus != nil { + objectMap["healthStatus"] = absc.HealthStatus + } + if absc.ContainerType != "" { + objectMap["containerType"] = absc.ContainerType + } + return json.Marshal(objectMap) +} + +// AsAzureBackupServerContainer is the BasicProtectionContainer implementation for AzureBackupServerContainer. +func (absc AzureBackupServerContainer) AsAzureBackupServerContainer() (*AzureBackupServerContainer, bool) { + return &absc, true +} + +// AsAzureIaaSClassicComputeVMContainer is the BasicProtectionContainer implementation for AzureBackupServerContainer. +func (absc AzureBackupServerContainer) AsAzureIaaSClassicComputeVMContainer() (*AzureIaaSClassicComputeVMContainer, bool) { + return nil, false +} + +// AsAzureIaaSComputeVMContainer is the BasicProtectionContainer implementation for AzureBackupServerContainer. +func (absc AzureBackupServerContainer) AsAzureIaaSComputeVMContainer() (*AzureIaaSComputeVMContainer, bool) { + return nil, false +} + +// AsAzureSQLAGWorkloadContainerProtectionContainer is the BasicProtectionContainer implementation for AzureBackupServerContainer. +func (absc AzureBackupServerContainer) AsAzureSQLAGWorkloadContainerProtectionContainer() (*AzureSQLAGWorkloadContainerProtectionContainer, bool) { + return nil, false +} + +// AsAzureSQLContainer is the BasicProtectionContainer implementation for AzureBackupServerContainer. +func (absc AzureBackupServerContainer) AsAzureSQLContainer() (*AzureSQLContainer, bool) { + return nil, false +} + +// AsAzureStorageContainer is the BasicProtectionContainer implementation for AzureBackupServerContainer. +func (absc AzureBackupServerContainer) AsAzureStorageContainer() (*AzureStorageContainer, bool) { + return nil, false +} + +// AsAzureVMAppContainerProtectionContainer is the BasicProtectionContainer implementation for AzureBackupServerContainer. +func (absc AzureBackupServerContainer) AsAzureVMAppContainerProtectionContainer() (*AzureVMAppContainerProtectionContainer, bool) { + return nil, false +} + +// AsAzureWorkloadContainer is the BasicProtectionContainer implementation for AzureBackupServerContainer. +func (absc AzureBackupServerContainer) AsAzureWorkloadContainer() (*AzureWorkloadContainer, bool) { + return nil, false +} + +// AsBasicAzureWorkloadContainer is the BasicProtectionContainer implementation for AzureBackupServerContainer. +func (absc AzureBackupServerContainer) AsBasicAzureWorkloadContainer() (BasicAzureWorkloadContainer, bool) { + return nil, false +} + +// AsDpmContainer is the BasicProtectionContainer implementation for AzureBackupServerContainer. +func (absc AzureBackupServerContainer) AsDpmContainer() (*DpmContainer, bool) { + return nil, false +} + +// AsBasicDpmContainer is the BasicProtectionContainer implementation for AzureBackupServerContainer. +func (absc AzureBackupServerContainer) AsBasicDpmContainer() (BasicDpmContainer, bool) { + return &absc, true +} + +// AsGenericContainer is the BasicProtectionContainer implementation for AzureBackupServerContainer. +func (absc AzureBackupServerContainer) AsGenericContainer() (*GenericContainer, bool) { + return nil, false +} + +// AsIaaSVMContainer is the BasicProtectionContainer implementation for AzureBackupServerContainer. +func (absc AzureBackupServerContainer) AsIaaSVMContainer() (*IaaSVMContainer, bool) { + return nil, false +} + +// AsBasicIaaSVMContainer is the BasicProtectionContainer implementation for AzureBackupServerContainer. +func (absc AzureBackupServerContainer) AsBasicIaaSVMContainer() (BasicIaaSVMContainer, bool) { + return nil, false +} + +// AsMabContainer is the BasicProtectionContainer implementation for AzureBackupServerContainer. +func (absc AzureBackupServerContainer) AsMabContainer() (*MabContainer, bool) { + return nil, false +} + +// AsProtectionContainer is the BasicProtectionContainer implementation for AzureBackupServerContainer. +func (absc AzureBackupServerContainer) AsProtectionContainer() (*ProtectionContainer, bool) { + return nil, false +} + +// AsBasicProtectionContainer is the BasicProtectionContainer implementation for AzureBackupServerContainer. +func (absc AzureBackupServerContainer) AsBasicProtectionContainer() (BasicProtectionContainer, bool) { + return &absc, true +} + +// AzureBackupServerEngine backup engine type when Azure Backup Server is used to manage the backups. +type AzureBackupServerEngine struct { + // FriendlyName - Friendly name of the backup engine. + FriendlyName *string `json:"friendlyName,omitempty"` + // BackupManagementType - Type of backup management for the backup engine. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // RegistrationStatus - Registration status of the backup engine with the Recovery Services Vault. + RegistrationStatus *string `json:"registrationStatus,omitempty"` + // BackupEngineState - Status of the backup engine with the Recovery Services Vault. = {Active/Deleting/DeleteFailed} + BackupEngineState *string `json:"backupEngineState,omitempty"` + // HealthStatus - Backup status of the backup engine. + HealthStatus *string `json:"healthStatus,omitempty"` + // CanReRegister - Flag indicating if the backup engine be registered, once already registered. + CanReRegister *bool `json:"canReRegister,omitempty"` + // BackupEngineID - ID of the backup engine. + BackupEngineID *string `json:"backupEngineId,omitempty"` + // DpmVersion - Backup engine version + DpmVersion *string `json:"dpmVersion,omitempty"` + // AzureBackupAgentVersion - Backup agent version + AzureBackupAgentVersion *string `json:"azureBackupAgentVersion,omitempty"` + // IsAzureBackupAgentUpgradeAvailable - To check if backup agent upgrade available + IsAzureBackupAgentUpgradeAvailable *bool `json:"isAzureBackupAgentUpgradeAvailable,omitempty"` + // IsDpmUpgradeAvailable - To check if backup engine upgrade available + IsDpmUpgradeAvailable *bool `json:"isDpmUpgradeAvailable,omitempty"` + // ExtendedInfo - Extended info of the backupengine + ExtendedInfo *EngineExtendedInfo `json:"extendedInfo,omitempty"` + // BackupEngineType - Possible values include: 'EngineTypeBackupEngineTypeBackupEngineBase', 'EngineTypeBackupEngineTypeAzureBackupServerEngine', 'EngineTypeBackupEngineTypeDpmBackupEngine' + BackupEngineType EngineType `json:"backupEngineType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureBackupServerEngine. +func (abse AzureBackupServerEngine) MarshalJSON() ([]byte, error) { + abse.BackupEngineType = EngineTypeBackupEngineTypeAzureBackupServerEngine + objectMap := make(map[string]interface{}) + if abse.FriendlyName != nil { + objectMap["friendlyName"] = abse.FriendlyName + } + if abse.BackupManagementType != "" { + objectMap["backupManagementType"] = abse.BackupManagementType + } + if abse.RegistrationStatus != nil { + objectMap["registrationStatus"] = abse.RegistrationStatus + } + if abse.BackupEngineState != nil { + objectMap["backupEngineState"] = abse.BackupEngineState + } + if abse.HealthStatus != nil { + objectMap["healthStatus"] = abse.HealthStatus + } + if abse.CanReRegister != nil { + objectMap["canReRegister"] = abse.CanReRegister + } + if abse.BackupEngineID != nil { + objectMap["backupEngineId"] = abse.BackupEngineID + } + if abse.DpmVersion != nil { + objectMap["dpmVersion"] = abse.DpmVersion + } + if abse.AzureBackupAgentVersion != nil { + objectMap["azureBackupAgentVersion"] = abse.AzureBackupAgentVersion + } + if abse.IsAzureBackupAgentUpgradeAvailable != nil { + objectMap["isAzureBackupAgentUpgradeAvailable"] = abse.IsAzureBackupAgentUpgradeAvailable + } + if abse.IsDpmUpgradeAvailable != nil { + objectMap["isDpmUpgradeAvailable"] = abse.IsDpmUpgradeAvailable + } + if abse.ExtendedInfo != nil { + objectMap["extendedInfo"] = abse.ExtendedInfo + } + if abse.BackupEngineType != "" { + objectMap["backupEngineType"] = abse.BackupEngineType + } + return json.Marshal(objectMap) +} + +// AsAzureBackupServerEngine is the BasicEngineBase implementation for AzureBackupServerEngine. +func (abse AzureBackupServerEngine) AsAzureBackupServerEngine() (*AzureBackupServerEngine, bool) { + return &abse, true +} + +// AsDpmBackupEngine is the BasicEngineBase implementation for AzureBackupServerEngine. +func (abse AzureBackupServerEngine) AsDpmBackupEngine() (*DpmBackupEngine, bool) { + return nil, false +} + +// AsEngineBase is the BasicEngineBase implementation for AzureBackupServerEngine. +func (abse AzureBackupServerEngine) AsEngineBase() (*EngineBase, bool) { + return nil, false +} + +// AsBasicEngineBase is the BasicEngineBase implementation for AzureBackupServerEngine. +func (abse AzureBackupServerEngine) AsBasicEngineBase() (BasicEngineBase, bool) { + return &abse, true +} + +// AzureFileShareBackupRequest azureFileShare workload-specific backup request. +type AzureFileShareBackupRequest struct { + // RecoveryPointExpiryTimeInUTC - Backup copy will expire after the time specified (UTC). + RecoveryPointExpiryTimeInUTC *date.Time `json:"recoveryPointExpiryTimeInUTC,omitempty"` + // ObjectType - Possible values include: 'ObjectTypeBasicRequestObjectTypeBackupRequest', 'ObjectTypeBasicRequestObjectTypeAzureFileShareBackupRequest', 'ObjectTypeBasicRequestObjectTypeAzureWorkloadBackupRequest', 'ObjectTypeBasicRequestObjectTypeIaasVMBackupRequest' + ObjectType ObjectTypeBasicRequest `json:"objectType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureFileShareBackupRequest. +func (afsbr AzureFileShareBackupRequest) MarshalJSON() ([]byte, error) { + afsbr.ObjectType = ObjectTypeBasicRequestObjectTypeAzureFileShareBackupRequest + objectMap := make(map[string]interface{}) + if afsbr.RecoveryPointExpiryTimeInUTC != nil { + objectMap["recoveryPointExpiryTimeInUTC"] = afsbr.RecoveryPointExpiryTimeInUTC + } + if afsbr.ObjectType != "" { + objectMap["objectType"] = afsbr.ObjectType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareBackupRequest is the BasicRequest implementation for AzureFileShareBackupRequest. +func (afsbr AzureFileShareBackupRequest) AsAzureFileShareBackupRequest() (*AzureFileShareBackupRequest, bool) { + return &afsbr, true +} + +// AsAzureWorkloadBackupRequest is the BasicRequest implementation for AzureFileShareBackupRequest. +func (afsbr AzureFileShareBackupRequest) AsAzureWorkloadBackupRequest() (*AzureWorkloadBackupRequest, bool) { + return nil, false +} + +// AsIaasVMBackupRequest is the BasicRequest implementation for AzureFileShareBackupRequest. +func (afsbr AzureFileShareBackupRequest) AsIaasVMBackupRequest() (*IaasVMBackupRequest, bool) { + return nil, false +} + +// AsRequest is the BasicRequest implementation for AzureFileShareBackupRequest. +func (afsbr AzureFileShareBackupRequest) AsRequest() (*Request, bool) { + return nil, false +} + +// AsBasicRequest is the BasicRequest implementation for AzureFileShareBackupRequest. +func (afsbr AzureFileShareBackupRequest) AsBasicRequest() (BasicRequest, bool) { + return &afsbr, true +} + +// AzureFileShareProtectableItem protectable item for Azure Fileshare workloads. +type AzureFileShareProtectableItem struct { + // ParentContainerFabricID - Full Fabric ID of container to which this protectable item belongs. For example, ARM ID. + ParentContainerFabricID *string `json:"parentContainerFabricId,omitempty"` + // ParentContainerFriendlyName - Friendly name of container to which this protectable item belongs. + ParentContainerFriendlyName *string `json:"parentContainerFriendlyName,omitempty"` + // AzureFileShareType - File Share type XSync or XSMB. Possible values include: 'AzureFileShareTypeInvalid', 'AzureFileShareTypeXSMB', 'AzureFileShareTypeXSync' + AzureFileShareType AzureFileShareType `json:"azureFileShareType,omitempty"` + // BackupManagementType - Type of backup management to backup an item. + BackupManagementType *string `json:"backupManagementType,omitempty"` + // WorkloadType - Type of workload for the backup management + WorkloadType *string `json:"workloadType,omitempty"` + // FriendlyName - Friendly name of the backup item. + FriendlyName *string `json:"friendlyName,omitempty"` + // ProtectionState - State of the back up item. Possible values include: 'ProtectionStatusInvalid', 'ProtectionStatusNotProtected', 'ProtectionStatusProtecting', 'ProtectionStatusProtected', 'ProtectionStatusProtectionFailed' + ProtectionState ProtectionStatus `json:"protectionState,omitempty"` + // ProtectableItemType - Possible values include: 'ProtectableItemTypeWorkloadProtectableItem', 'ProtectableItemTypeAzureFileShare', 'ProtectableItemTypeMicrosoftClassicComputevirtualMachines', 'ProtectableItemTypeMicrosoftComputevirtualMachines', 'ProtectableItemTypeAzureVMWorkloadProtectableItem', 'ProtectableItemTypeSAPAseSystem', 'ProtectableItemTypeSAPHanaDatabase', 'ProtectableItemTypeSAPHanaSystem', 'ProtectableItemTypeSQLAvailabilityGroupContainer', 'ProtectableItemTypeSQLDataBase', 'ProtectableItemTypeSQLInstance', 'ProtectableItemTypeIaaSVMProtectableItem' + ProtectableItemType ProtectableItemType `json:"protectableItemType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureFileShareProtectableItem. +func (afspi AzureFileShareProtectableItem) MarshalJSON() ([]byte, error) { + afspi.ProtectableItemType = ProtectableItemTypeAzureFileShare + objectMap := make(map[string]interface{}) + if afspi.ParentContainerFabricID != nil { + objectMap["parentContainerFabricId"] = afspi.ParentContainerFabricID + } + if afspi.ParentContainerFriendlyName != nil { + objectMap["parentContainerFriendlyName"] = afspi.ParentContainerFriendlyName + } + if afspi.AzureFileShareType != "" { + objectMap["azureFileShareType"] = afspi.AzureFileShareType + } + if afspi.BackupManagementType != nil { + objectMap["backupManagementType"] = afspi.BackupManagementType + } + if afspi.WorkloadType != nil { + objectMap["workloadType"] = afspi.WorkloadType + } + if afspi.FriendlyName != nil { + objectMap["friendlyName"] = afspi.FriendlyName + } + if afspi.ProtectionState != "" { + objectMap["protectionState"] = afspi.ProtectionState + } + if afspi.ProtectableItemType != "" { + objectMap["protectableItemType"] = afspi.ProtectableItemType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareProtectableItem is the BasicWorkloadProtectableItem implementation for AzureFileShareProtectableItem. +func (afspi AzureFileShareProtectableItem) AsAzureFileShareProtectableItem() (*AzureFileShareProtectableItem, bool) { + return &afspi, true +} + +// AsAzureIaaSClassicComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureFileShareProtectableItem. +func (afspi AzureFileShareProtectableItem) AsAzureIaaSClassicComputeVMProtectableItem() (*AzureIaaSClassicComputeVMProtectableItem, bool) { + return nil, false +} + +// AsAzureIaaSComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureFileShareProtectableItem. +func (afspi AzureFileShareProtectableItem) AsAzureIaaSComputeVMProtectableItem() (*AzureIaaSComputeVMProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureFileShareProtectableItem. +func (afspi AzureFileShareProtectableItem) AsAzureVMWorkloadProtectableItem() (*AzureVMWorkloadProtectableItem, bool) { + return nil, false +} + +// AsBasicAzureVMWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureFileShareProtectableItem. +func (afspi AzureFileShareProtectableItem) AsBasicAzureVMWorkloadProtectableItem() (BasicAzureVMWorkloadProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPAseSystemProtectableItem is the BasicWorkloadProtectableItem implementation for AzureFileShareProtectableItem. +func (afspi AzureFileShareProtectableItem) AsAzureVMWorkloadSAPAseSystemProtectableItem() (*AzureVMWorkloadSAPAseSystemProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaDatabaseProtectableItem is the BasicWorkloadProtectableItem implementation for AzureFileShareProtectableItem. +func (afspi AzureFileShareProtectableItem) AsAzureVMWorkloadSAPHanaDatabaseProtectableItem() (*AzureVMWorkloadSAPHanaDatabaseProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaSystemProtectableItem is the BasicWorkloadProtectableItem implementation for AzureFileShareProtectableItem. +func (afspi AzureFileShareProtectableItem) AsAzureVMWorkloadSAPHanaSystemProtectableItem() (*AzureVMWorkloadSAPHanaSystemProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLAvailabilityGroupProtectableItem is the BasicWorkloadProtectableItem implementation for AzureFileShareProtectableItem. +func (afspi AzureFileShareProtectableItem) AsAzureVMWorkloadSQLAvailabilityGroupProtectableItem() (*AzureVMWorkloadSQLAvailabilityGroupProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLDatabaseProtectableItem is the BasicWorkloadProtectableItem implementation for AzureFileShareProtectableItem. +func (afspi AzureFileShareProtectableItem) AsAzureVMWorkloadSQLDatabaseProtectableItem() (*AzureVMWorkloadSQLDatabaseProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLInstanceProtectableItem is the BasicWorkloadProtectableItem implementation for AzureFileShareProtectableItem. +func (afspi AzureFileShareProtectableItem) AsAzureVMWorkloadSQLInstanceProtectableItem() (*AzureVMWorkloadSQLInstanceProtectableItem, bool) { + return nil, false +} + +// AsIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureFileShareProtectableItem. +func (afspi AzureFileShareProtectableItem) AsIaaSVMProtectableItem() (*IaaSVMProtectableItem, bool) { + return nil, false +} + +// AsBasicIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureFileShareProtectableItem. +func (afspi AzureFileShareProtectableItem) AsBasicIaaSVMProtectableItem() (BasicIaaSVMProtectableItem, bool) { + return nil, false +} + +// AsWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureFileShareProtectableItem. +func (afspi AzureFileShareProtectableItem) AsWorkloadProtectableItem() (*WorkloadProtectableItem, bool) { + return nil, false +} + +// AsBasicWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureFileShareProtectableItem. +func (afspi AzureFileShareProtectableItem) AsBasicWorkloadProtectableItem() (BasicWorkloadProtectableItem, bool) { + return &afspi, true +} + +// AzureFileshareProtectedItem azure File Share workload-specific backup item. +type AzureFileshareProtectedItem struct { + // FriendlyName - Friendly name of the fileshare represented by this backup item. + FriendlyName *string `json:"friendlyName,omitempty"` + // ProtectionStatus - Backup status of this backup item. + ProtectionStatus *string `json:"protectionStatus,omitempty"` + // ProtectionState - Backup state of this backup item. Possible values include: 'ProtectionStateInvalid', 'ProtectionStateIRPending', 'ProtectionStateProtected', 'ProtectionStateProtectionError', 'ProtectionStateProtectionStopped', 'ProtectionStateProtectionPaused' + ProtectionState ProtectionState `json:"protectionState,omitempty"` + // LastBackupStatus - Last backup operation status. Possible values: Healthy, Unhealthy. + LastBackupStatus *string `json:"lastBackupStatus,omitempty"` + // LastBackupTime - Timestamp of the last backup operation on this backup item. + LastBackupTime *date.Time `json:"lastBackupTime,omitempty"` + // KpisHealths - Health details of different KPIs + KpisHealths map[string]*KPIResourceHealthDetails `json:"kpisHealths"` + // ExtendedInfo - Additional information with this backup item. + ExtendedInfo *AzureFileshareProtectedItemExtendedInfo `json:"extendedInfo,omitempty"` + // HealthStatus - backups running status for this backup item. Possible values include: 'HealthStatusPassed', 'HealthStatusActionRequired', 'HealthStatusActionSuggested', 'HealthStatusInvalid' + HealthStatus HealthStatus `json:"healthStatus,omitempty"` + // BackupManagementType - Type of backup management for the backed up item. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // WorkloadType - Type of workload this item represents. Possible values include: 'DataSourceTypeInvalid', 'DataSourceTypeVM', 'DataSourceTypeFileFolder', 'DataSourceTypeAzureSQLDb', 'DataSourceTypeSQLDB', 'DataSourceTypeExchange', 'DataSourceTypeSharepoint', 'DataSourceTypeVMwareVM', 'DataSourceTypeSystemState', 'DataSourceTypeClient', 'DataSourceTypeGenericDataSource', 'DataSourceTypeSQLDataBase', 'DataSourceTypeAzureFileShare', 'DataSourceTypeSAPHanaDatabase', 'DataSourceTypeSAPAseDatabase' + WorkloadType DataSourceType `json:"workloadType,omitempty"` + // ContainerName - Unique name of container + ContainerName *string `json:"containerName,omitempty"` + // SourceResourceID - ARM ID of the resource to be backed up. + SourceResourceID *string `json:"sourceResourceId,omitempty"` + // PolicyID - ID of the backup policy with which this item is backed up. + PolicyID *string `json:"policyId,omitempty"` + // LastRecoveryPoint - Timestamp when the last (latest) backup copy was created for this backup item. + LastRecoveryPoint *date.Time `json:"lastRecoveryPoint,omitempty"` + // BackupSetName - Name of the backup set the backup item belongs to + BackupSetName *string `json:"backupSetName,omitempty"` + // CreateMode - Create mode to indicate recovery of existing soft deleted data source or creation of new data source. Possible values include: 'CreateModeInvalid', 'CreateModeDefault', 'CreateModeRecover' + CreateMode CreateMode `json:"createMode,omitempty"` + // DeferredDeleteTimeInUTC - Time for deferred deletion in UTC + DeferredDeleteTimeInUTC *date.Time `json:"deferredDeleteTimeInUTC,omitempty"` + // IsScheduledForDeferredDelete - Flag to identify whether the DS is scheduled for deferred delete + IsScheduledForDeferredDelete *bool `json:"isScheduledForDeferredDelete,omitempty"` + // DeferredDeleteTimeRemaining - Time remaining before the DS marked for deferred delete is permanently deleted + DeferredDeleteTimeRemaining *string `json:"deferredDeleteTimeRemaining,omitempty"` + // IsDeferredDeleteScheduleUpcoming - Flag to identify whether the deferred deleted DS is to be purged soon + IsDeferredDeleteScheduleUpcoming *bool `json:"isDeferredDeleteScheduleUpcoming,omitempty"` + // IsRehydrate - Flag to identify that deferred deleted DS is to be moved into Pause state + IsRehydrate *bool `json:"isRehydrate,omitempty"` + // ProtectedItemType - Possible values include: 'ProtectedItemTypeProtectedItem', 'ProtectedItemTypeAzureFileShareProtectedItem', 'ProtectedItemTypeMicrosoftClassicComputevirtualMachines', 'ProtectedItemTypeMicrosoftComputevirtualMachines', 'ProtectedItemTypeAzureIaaSVMProtectedItem', 'ProtectedItemTypeMicrosoftSqlserversdatabases', 'ProtectedItemTypeAzureVMWorkloadProtectedItem', 'ProtectedItemTypeAzureVMWorkloadSAPAseDatabase', 'ProtectedItemTypeAzureVMWorkloadSAPHanaDatabase', 'ProtectedItemTypeAzureVMWorkloadSQLDatabase', 'ProtectedItemTypeDPMProtectedItem', 'ProtectedItemTypeGenericProtectedItem', 'ProtectedItemTypeMabFileFolderProtectedItem' + ProtectedItemType ProtectedItemType `json:"protectedItemType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureFileshareProtectedItem. +func (afpi AzureFileshareProtectedItem) MarshalJSON() ([]byte, error) { + afpi.ProtectedItemType = ProtectedItemTypeAzureFileShareProtectedItem + objectMap := make(map[string]interface{}) + if afpi.FriendlyName != nil { + objectMap["friendlyName"] = afpi.FriendlyName + } + if afpi.ProtectionStatus != nil { + objectMap["protectionStatus"] = afpi.ProtectionStatus + } + if afpi.ProtectionState != "" { + objectMap["protectionState"] = afpi.ProtectionState + } + if afpi.LastBackupStatus != nil { + objectMap["lastBackupStatus"] = afpi.LastBackupStatus + } + if afpi.LastBackupTime != nil { + objectMap["lastBackupTime"] = afpi.LastBackupTime + } + if afpi.KpisHealths != nil { + objectMap["kpisHealths"] = afpi.KpisHealths + } + if afpi.ExtendedInfo != nil { + objectMap["extendedInfo"] = afpi.ExtendedInfo + } + if afpi.HealthStatus != "" { + objectMap["healthStatus"] = afpi.HealthStatus + } + if afpi.BackupManagementType != "" { + objectMap["backupManagementType"] = afpi.BackupManagementType + } + if afpi.WorkloadType != "" { + objectMap["workloadType"] = afpi.WorkloadType + } + if afpi.ContainerName != nil { + objectMap["containerName"] = afpi.ContainerName + } + if afpi.SourceResourceID != nil { + objectMap["sourceResourceId"] = afpi.SourceResourceID + } + if afpi.PolicyID != nil { + objectMap["policyId"] = afpi.PolicyID + } + if afpi.LastRecoveryPoint != nil { + objectMap["lastRecoveryPoint"] = afpi.LastRecoveryPoint + } + if afpi.BackupSetName != nil { + objectMap["backupSetName"] = afpi.BackupSetName + } + if afpi.CreateMode != "" { + objectMap["createMode"] = afpi.CreateMode + } + if afpi.DeferredDeleteTimeInUTC != nil { + objectMap["deferredDeleteTimeInUTC"] = afpi.DeferredDeleteTimeInUTC + } + if afpi.IsScheduledForDeferredDelete != nil { + objectMap["isScheduledForDeferredDelete"] = afpi.IsScheduledForDeferredDelete + } + if afpi.DeferredDeleteTimeRemaining != nil { + objectMap["deferredDeleteTimeRemaining"] = afpi.DeferredDeleteTimeRemaining + } + if afpi.IsDeferredDeleteScheduleUpcoming != nil { + objectMap["isDeferredDeleteScheduleUpcoming"] = afpi.IsDeferredDeleteScheduleUpcoming + } + if afpi.IsRehydrate != nil { + objectMap["isRehydrate"] = afpi.IsRehydrate + } + if afpi.ProtectedItemType != "" { + objectMap["protectedItemType"] = afpi.ProtectedItemType + } + return json.Marshal(objectMap) +} + +// AsAzureFileshareProtectedItem is the BasicProtectedItem implementation for AzureFileshareProtectedItem. +func (afpi AzureFileshareProtectedItem) AsAzureFileshareProtectedItem() (*AzureFileshareProtectedItem, bool) { + return &afpi, true +} + +// AsAzureIaaSClassicComputeVMProtectedItem is the BasicProtectedItem implementation for AzureFileshareProtectedItem. +func (afpi AzureFileshareProtectedItem) AsAzureIaaSClassicComputeVMProtectedItem() (*AzureIaaSClassicComputeVMProtectedItem, bool) { + return nil, false +} + +// AsAzureIaaSComputeVMProtectedItem is the BasicProtectedItem implementation for AzureFileshareProtectedItem. +func (afpi AzureFileshareProtectedItem) AsAzureIaaSComputeVMProtectedItem() (*AzureIaaSComputeVMProtectedItem, bool) { + return nil, false +} + +// AsAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for AzureFileshareProtectedItem. +func (afpi AzureFileshareProtectedItem) AsAzureIaaSVMProtectedItem() (*AzureIaaSVMProtectedItem, bool) { + return nil, false +} + +// AsBasicAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for AzureFileshareProtectedItem. +func (afpi AzureFileshareProtectedItem) AsBasicAzureIaaSVMProtectedItem() (BasicAzureIaaSVMProtectedItem, bool) { + return nil, false +} + +// AsAzureSQLProtectedItem is the BasicProtectedItem implementation for AzureFileshareProtectedItem. +func (afpi AzureFileshareProtectedItem) AsAzureSQLProtectedItem() (*AzureSQLProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadProtectedItem is the BasicProtectedItem implementation for AzureFileshareProtectedItem. +func (afpi AzureFileshareProtectedItem) AsAzureVMWorkloadProtectedItem() (*AzureVMWorkloadProtectedItem, bool) { + return nil, false +} + +// AsBasicAzureVMWorkloadProtectedItem is the BasicProtectedItem implementation for AzureFileshareProtectedItem. +func (afpi AzureFileshareProtectedItem) AsBasicAzureVMWorkloadProtectedItem() (BasicAzureVMWorkloadProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPAseDatabaseProtectedItem is the BasicProtectedItem implementation for AzureFileshareProtectedItem. +func (afpi AzureFileshareProtectedItem) AsAzureVMWorkloadSAPAseDatabaseProtectedItem() (*AzureVMWorkloadSAPAseDatabaseProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaDatabaseProtectedItem is the BasicProtectedItem implementation for AzureFileshareProtectedItem. +func (afpi AzureFileshareProtectedItem) AsAzureVMWorkloadSAPHanaDatabaseProtectedItem() (*AzureVMWorkloadSAPHanaDatabaseProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLDatabaseProtectedItem is the BasicProtectedItem implementation for AzureFileshareProtectedItem. +func (afpi AzureFileshareProtectedItem) AsAzureVMWorkloadSQLDatabaseProtectedItem() (*AzureVMWorkloadSQLDatabaseProtectedItem, bool) { + return nil, false +} + +// AsDPMProtectedItem is the BasicProtectedItem implementation for AzureFileshareProtectedItem. +func (afpi AzureFileshareProtectedItem) AsDPMProtectedItem() (*DPMProtectedItem, bool) { + return nil, false +} + +// AsGenericProtectedItem is the BasicProtectedItem implementation for AzureFileshareProtectedItem. +func (afpi AzureFileshareProtectedItem) AsGenericProtectedItem() (*GenericProtectedItem, bool) { + return nil, false +} + +// AsMabFileFolderProtectedItem is the BasicProtectedItem implementation for AzureFileshareProtectedItem. +func (afpi AzureFileshareProtectedItem) AsMabFileFolderProtectedItem() (*MabFileFolderProtectedItem, bool) { + return nil, false +} + +// AsProtectedItem is the BasicProtectedItem implementation for AzureFileshareProtectedItem. +func (afpi AzureFileshareProtectedItem) AsProtectedItem() (*ProtectedItem, bool) { + return nil, false +} + +// AsBasicProtectedItem is the BasicProtectedItem implementation for AzureFileshareProtectedItem. +func (afpi AzureFileshareProtectedItem) AsBasicProtectedItem() (BasicProtectedItem, bool) { + return &afpi, true +} + +// AzureFileshareProtectedItemExtendedInfo additional information about Azure File Share backup item. +type AzureFileshareProtectedItemExtendedInfo struct { + // OldestRecoveryPoint - The oldest backup copy available for this item in the service. + OldestRecoveryPoint *date.Time `json:"oldestRecoveryPoint,omitempty"` + // RecoveryPointCount - Number of available backup copies associated with this backup item. + RecoveryPointCount *int32 `json:"recoveryPointCount,omitempty"` + // PolicyState - Indicates consistency of policy object and policy applied to this backup item. + PolicyState *string `json:"policyState,omitempty"` + // ResourceState - READ-ONLY; Indicates the state of this resource. Possible values are from enum ResourceState {Invalid, Active, SoftDeleted, Deleted} + ResourceState *string `json:"resourceState,omitempty"` + // ResourceStateSyncTime - READ-ONLY; The resource state sync time for this backup item. + ResourceStateSyncTime *date.Time `json:"resourceStateSyncTime,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureFileshareProtectedItemExtendedInfo. +func (afpiei AzureFileshareProtectedItemExtendedInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if afpiei.OldestRecoveryPoint != nil { + objectMap["oldestRecoveryPoint"] = afpiei.OldestRecoveryPoint + } + if afpiei.RecoveryPointCount != nil { + objectMap["recoveryPointCount"] = afpiei.RecoveryPointCount + } + if afpiei.PolicyState != nil { + objectMap["policyState"] = afpiei.PolicyState + } + return json.Marshal(objectMap) +} + +// AzureFileShareProtectionPolicy azureStorage backup policy. +type AzureFileShareProtectionPolicy struct { + // WorkLoadType - Type of workload for the backup management. Possible values include: 'WorkloadTypeInvalid', 'WorkloadTypeVM', 'WorkloadTypeFileFolder', 'WorkloadTypeAzureSQLDb', 'WorkloadTypeSQLDB', 'WorkloadTypeExchange', 'WorkloadTypeSharepoint', 'WorkloadTypeVMwareVM', 'WorkloadTypeSystemState', 'WorkloadTypeClient', 'WorkloadTypeGenericDataSource', 'WorkloadTypeSQLDataBase', 'WorkloadTypeAzureFileShare', 'WorkloadTypeSAPHanaDatabase', 'WorkloadTypeSAPAseDatabase' + WorkLoadType WorkloadType `json:"workLoadType,omitempty"` + // SchedulePolicy - Backup schedule specified as part of backup policy. + SchedulePolicy BasicSchedulePolicy `json:"schedulePolicy,omitempty"` + // RetentionPolicy - Retention policy with the details on backup copy retention ranges. + RetentionPolicy BasicRetentionPolicy `json:"retentionPolicy,omitempty"` + // TimeZone - TimeZone optional input as string. For example: TimeZone = "Pacific Standard Time". + TimeZone *string `json:"timeZone,omitempty"` + // ProtectedItemsCount - Number of items associated with this policy. + ProtectedItemsCount *int32 `json:"protectedItemsCount,omitempty"` + // BackupManagementType - Possible values include: 'ManagementTypeBasicProtectionPolicyBackupManagementTypeProtectionPolicy', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureWorkload', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureStorage', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureIaasVM', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureSQL', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeGenericProtectionPolicy', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeMAB' + BackupManagementType ManagementTypeBasicProtectionPolicy `json:"backupManagementType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureFileShareProtectionPolicy. +func (afspp AzureFileShareProtectionPolicy) MarshalJSON() ([]byte, error) { + afspp.BackupManagementType = ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureStorage + objectMap := make(map[string]interface{}) + if afspp.WorkLoadType != "" { + objectMap["workLoadType"] = afspp.WorkLoadType + } + objectMap["schedulePolicy"] = afspp.SchedulePolicy + objectMap["retentionPolicy"] = afspp.RetentionPolicy + if afspp.TimeZone != nil { + objectMap["timeZone"] = afspp.TimeZone + } + if afspp.ProtectedItemsCount != nil { + objectMap["protectedItemsCount"] = afspp.ProtectedItemsCount + } + if afspp.BackupManagementType != "" { + objectMap["backupManagementType"] = afspp.BackupManagementType + } + return json.Marshal(objectMap) +} + +// AsAzureVMWorkloadProtectionPolicy is the BasicProtectionPolicy implementation for AzureFileShareProtectionPolicy. +func (afspp AzureFileShareProtectionPolicy) AsAzureVMWorkloadProtectionPolicy() (*AzureVMWorkloadProtectionPolicy, bool) { + return nil, false +} + +// AsAzureFileShareProtectionPolicy is the BasicProtectionPolicy implementation for AzureFileShareProtectionPolicy. +func (afspp AzureFileShareProtectionPolicy) AsAzureFileShareProtectionPolicy() (*AzureFileShareProtectionPolicy, bool) { + return &afspp, true +} + +// AsAzureIaaSVMProtectionPolicy is the BasicProtectionPolicy implementation for AzureFileShareProtectionPolicy. +func (afspp AzureFileShareProtectionPolicy) AsAzureIaaSVMProtectionPolicy() (*AzureIaaSVMProtectionPolicy, bool) { + return nil, false +} + +// AsAzureSQLProtectionPolicy is the BasicProtectionPolicy implementation for AzureFileShareProtectionPolicy. +func (afspp AzureFileShareProtectionPolicy) AsAzureSQLProtectionPolicy() (*AzureSQLProtectionPolicy, bool) { + return nil, false +} + +// AsGenericProtectionPolicy is the BasicProtectionPolicy implementation for AzureFileShareProtectionPolicy. +func (afspp AzureFileShareProtectionPolicy) AsGenericProtectionPolicy() (*GenericProtectionPolicy, bool) { + return nil, false +} + +// AsMabProtectionPolicy is the BasicProtectionPolicy implementation for AzureFileShareProtectionPolicy. +func (afspp AzureFileShareProtectionPolicy) AsMabProtectionPolicy() (*MabProtectionPolicy, bool) { + return nil, false +} + +// AsProtectionPolicy is the BasicProtectionPolicy implementation for AzureFileShareProtectionPolicy. +func (afspp AzureFileShareProtectionPolicy) AsProtectionPolicy() (*ProtectionPolicy, bool) { + return nil, false +} + +// AsBasicProtectionPolicy is the BasicProtectionPolicy implementation for AzureFileShareProtectionPolicy. +func (afspp AzureFileShareProtectionPolicy) AsBasicProtectionPolicy() (BasicProtectionPolicy, bool) { + return &afspp, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureFileShareProtectionPolicy struct. +func (afspp *AzureFileShareProtectionPolicy) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "workLoadType": + if v != nil { + var workLoadType WorkloadType + err = json.Unmarshal(*v, &workLoadType) + if err != nil { + return err + } + afspp.WorkLoadType = workLoadType + } + case "schedulePolicy": + if v != nil { + schedulePolicy, err := unmarshalBasicSchedulePolicy(*v) + if err != nil { + return err + } + afspp.SchedulePolicy = schedulePolicy + } + case "retentionPolicy": + if v != nil { + retentionPolicy, err := unmarshalBasicRetentionPolicy(*v) + if err != nil { + return err + } + afspp.RetentionPolicy = retentionPolicy + } + case "timeZone": + if v != nil { + var timeZone string + err = json.Unmarshal(*v, &timeZone) + if err != nil { + return err + } + afspp.TimeZone = &timeZone + } + case "protectedItemsCount": + if v != nil { + var protectedItemsCount int32 + err = json.Unmarshal(*v, &protectedItemsCount) + if err != nil { + return err + } + afspp.ProtectedItemsCount = &protectedItemsCount + } + case "backupManagementType": + if v != nil { + var backupManagementType ManagementTypeBasicProtectionPolicy + err = json.Unmarshal(*v, &backupManagementType) + if err != nil { + return err + } + afspp.BackupManagementType = backupManagementType + } + } + } + + return nil +} + +// AzureFileShareProvisionILRRequest update snapshot Uri with the correct friendly Name of the source Azure +// file share. +type AzureFileShareProvisionILRRequest struct { + // RecoveryPointID - Recovery point ID. + RecoveryPointID *string `json:"recoveryPointId,omitempty"` + // SourceResourceID - Source Storage account ARM Id + SourceResourceID *string `json:"sourceResourceId,omitempty"` + // ObjectType - Possible values include: 'ObjectTypeBasicILRRequestObjectTypeILRRequest', 'ObjectTypeBasicILRRequestObjectTypeAzureFileShareProvisionILRRequest', 'ObjectTypeBasicILRRequestObjectTypeIaasVMILRRegistrationRequest' + ObjectType ObjectTypeBasicILRRequest `json:"objectType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureFileShareProvisionILRRequest. +func (afspir AzureFileShareProvisionILRRequest) MarshalJSON() ([]byte, error) { + afspir.ObjectType = ObjectTypeBasicILRRequestObjectTypeAzureFileShareProvisionILRRequest + objectMap := make(map[string]interface{}) + if afspir.RecoveryPointID != nil { + objectMap["recoveryPointId"] = afspir.RecoveryPointID + } + if afspir.SourceResourceID != nil { + objectMap["sourceResourceId"] = afspir.SourceResourceID + } + if afspir.ObjectType != "" { + objectMap["objectType"] = afspir.ObjectType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareProvisionILRRequest is the BasicILRRequest implementation for AzureFileShareProvisionILRRequest. +func (afspir AzureFileShareProvisionILRRequest) AsAzureFileShareProvisionILRRequest() (*AzureFileShareProvisionILRRequest, bool) { + return &afspir, true +} + +// AsIaasVMILRRegistrationRequest is the BasicILRRequest implementation for AzureFileShareProvisionILRRequest. +func (afspir AzureFileShareProvisionILRRequest) AsIaasVMILRRegistrationRequest() (*IaasVMILRRegistrationRequest, bool) { + return nil, false +} + +// AsILRRequest is the BasicILRRequest implementation for AzureFileShareProvisionILRRequest. +func (afspir AzureFileShareProvisionILRRequest) AsILRRequest() (*ILRRequest, bool) { + return nil, false +} + +// AsBasicILRRequest is the BasicILRRequest implementation for AzureFileShareProvisionILRRequest. +func (afspir AzureFileShareProvisionILRRequest) AsBasicILRRequest() (BasicILRRequest, bool) { + return &afspir, true +} + +// AzureFileShareRecoveryPoint azure File Share workload specific backup copy. +type AzureFileShareRecoveryPoint struct { + // RecoveryPointType - READ-ONLY; Type of the backup copy. Specifies whether it is a crash consistent backup or app consistent. + RecoveryPointType *string `json:"recoveryPointType,omitempty"` + // RecoveryPointTime - READ-ONLY; Time at which this backup copy was created. + RecoveryPointTime *date.Time `json:"recoveryPointTime,omitempty"` + // FileShareSnapshotURI - READ-ONLY; Contains Url to the snapshot of fileshare, if applicable + FileShareSnapshotURI *string `json:"fileShareSnapshotUri,omitempty"` + // RecoveryPointSizeInGB - READ-ONLY; Contains recovery point size + RecoveryPointSizeInGB *int32 `json:"recoveryPointSizeInGB,omitempty"` + // ObjectType - Possible values include: 'ObjectTypeBasicRecoveryPointObjectTypeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureFileShareRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadPointInTimeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeGenericRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeIaasVMRecoveryPoint' + ObjectType ObjectTypeBasicRecoveryPoint `json:"objectType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureFileShareRecoveryPoint. +func (afsrp AzureFileShareRecoveryPoint) MarshalJSON() ([]byte, error) { + afsrp.ObjectType = ObjectTypeBasicRecoveryPointObjectTypeAzureFileShareRecoveryPoint + objectMap := make(map[string]interface{}) + if afsrp.ObjectType != "" { + objectMap["objectType"] = afsrp.ObjectType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareRecoveryPoint is the BasicRecoveryPoint implementation for AzureFileShareRecoveryPoint. +func (afsrp AzureFileShareRecoveryPoint) AsAzureFileShareRecoveryPoint() (*AzureFileShareRecoveryPoint, bool) { + return &afsrp, true +} + +// AsAzureWorkloadPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for AzureFileShareRecoveryPoint. +func (afsrp AzureFileShareRecoveryPoint) AsAzureWorkloadPointInTimeRecoveryPoint() (*AzureWorkloadPointInTimeRecoveryPoint, bool) { + return nil, false +} + +// AsBasicAzureWorkloadPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for AzureFileShareRecoveryPoint. +func (afsrp AzureFileShareRecoveryPoint) AsBasicAzureWorkloadPointInTimeRecoveryPoint() (BasicAzureWorkloadPointInTimeRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadRecoveryPoint is the BasicRecoveryPoint implementation for AzureFileShareRecoveryPoint. +func (afsrp AzureFileShareRecoveryPoint) AsAzureWorkloadRecoveryPoint() (*AzureWorkloadRecoveryPoint, bool) { + return nil, false +} + +// AsBasicAzureWorkloadRecoveryPoint is the BasicRecoveryPoint implementation for AzureFileShareRecoveryPoint. +func (afsrp AzureFileShareRecoveryPoint) AsBasicAzureWorkloadRecoveryPoint() (BasicAzureWorkloadRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for AzureFileShareRecoveryPoint. +func (afsrp AzureFileShareRecoveryPoint) AsAzureWorkloadSAPHanaPointInTimeRecoveryPoint() (*AzureWorkloadSAPHanaPointInTimeRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaRecoveryPoint is the BasicRecoveryPoint implementation for AzureFileShareRecoveryPoint. +func (afsrp AzureFileShareRecoveryPoint) AsAzureWorkloadSAPHanaRecoveryPoint() (*AzureWorkloadSAPHanaRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadSQLPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for AzureFileShareRecoveryPoint. +func (afsrp AzureFileShareRecoveryPoint) AsAzureWorkloadSQLPointInTimeRecoveryPoint() (*AzureWorkloadSQLPointInTimeRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadSQLRecoveryPoint is the BasicRecoveryPoint implementation for AzureFileShareRecoveryPoint. +func (afsrp AzureFileShareRecoveryPoint) AsAzureWorkloadSQLRecoveryPoint() (*AzureWorkloadSQLRecoveryPoint, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSQLRecoveryPoint is the BasicRecoveryPoint implementation for AzureFileShareRecoveryPoint. +func (afsrp AzureFileShareRecoveryPoint) AsBasicAzureWorkloadSQLRecoveryPoint() (BasicAzureWorkloadSQLRecoveryPoint, bool) { + return nil, false +} + +// AsGenericRecoveryPoint is the BasicRecoveryPoint implementation for AzureFileShareRecoveryPoint. +func (afsrp AzureFileShareRecoveryPoint) AsGenericRecoveryPoint() (*GenericRecoveryPoint, bool) { + return nil, false +} + +// AsIaasVMRecoveryPoint is the BasicRecoveryPoint implementation for AzureFileShareRecoveryPoint. +func (afsrp AzureFileShareRecoveryPoint) AsIaasVMRecoveryPoint() (*IaasVMRecoveryPoint, bool) { + return nil, false +} + +// AsRecoveryPoint is the BasicRecoveryPoint implementation for AzureFileShareRecoveryPoint. +func (afsrp AzureFileShareRecoveryPoint) AsRecoveryPoint() (*RecoveryPoint, bool) { + return nil, false +} + +// AsBasicRecoveryPoint is the BasicRecoveryPoint implementation for AzureFileShareRecoveryPoint. +func (afsrp AzureFileShareRecoveryPoint) AsBasicRecoveryPoint() (BasicRecoveryPoint, bool) { + return &afsrp, true +} + +// AzureFileShareRestoreRequest azureFileShare Restore Request +type AzureFileShareRestoreRequest struct { + // RecoveryType - Type of this recovery. Possible values include: 'RecoveryTypeInvalid', 'RecoveryTypeOriginalLocation', 'RecoveryTypeAlternateLocation', 'RecoveryTypeRestoreDisks', 'RecoveryTypeOffline' + RecoveryType RecoveryType `json:"recoveryType,omitempty"` + // SourceResourceID - Source storage account ARM Id + SourceResourceID *string `json:"sourceResourceId,omitempty"` + // CopyOptions - Options to resolve copy conflicts. Possible values include: 'CopyOptionsInvalid', 'CopyOptionsCreateCopy', 'CopyOptionsSkip', 'CopyOptionsOverwrite', 'CopyOptionsFailOnConflict' + CopyOptions CopyOptions `json:"copyOptions,omitempty"` + // RestoreRequestType - Restore Type (FullShareRestore or ItemLevelRestore). Possible values include: 'RestoreRequestTypeInvalid', 'RestoreRequestTypeFullShareRestore', 'RestoreRequestTypeItemLevelRestore' + RestoreRequestType RestoreRequestType `json:"restoreRequestType,omitempty"` + // RestoreFileSpecs - List of Source Files/Folders(which need to recover) and TargetFolderPath details + RestoreFileSpecs *[]RestoreFileSpecs `json:"restoreFileSpecs,omitempty"` + // TargetDetails - Target File Share Details + TargetDetails *TargetAFSRestoreInfo `json:"targetDetails,omitempty"` + // ObjectType - Possible values include: 'ObjectTypeBasicRestoreRequestObjectTypeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureFileShareRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreWithRehydrationRequest' + ObjectType ObjectTypeBasicRestoreRequest `json:"objectType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureFileShareRestoreRequest. +func (afsrr AzureFileShareRestoreRequest) MarshalJSON() ([]byte, error) { + afsrr.ObjectType = ObjectTypeBasicRestoreRequestObjectTypeAzureFileShareRestoreRequest + objectMap := make(map[string]interface{}) + if afsrr.RecoveryType != "" { + objectMap["recoveryType"] = afsrr.RecoveryType + } + if afsrr.SourceResourceID != nil { + objectMap["sourceResourceId"] = afsrr.SourceResourceID + } + if afsrr.CopyOptions != "" { + objectMap["copyOptions"] = afsrr.CopyOptions + } + if afsrr.RestoreRequestType != "" { + objectMap["restoreRequestType"] = afsrr.RestoreRequestType + } + if afsrr.RestoreFileSpecs != nil { + objectMap["restoreFileSpecs"] = afsrr.RestoreFileSpecs + } + if afsrr.TargetDetails != nil { + objectMap["targetDetails"] = afsrr.TargetDetails + } + if afsrr.ObjectType != "" { + objectMap["objectType"] = afsrr.ObjectType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareRestoreRequest is the BasicRestoreRequest implementation for AzureFileShareRestoreRequest. +func (afsrr AzureFileShareRestoreRequest) AsAzureFileShareRestoreRequest() (*AzureFileShareRestoreRequest, bool) { + return &afsrr, true +} + +// AsAzureWorkloadPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureFileShareRestoreRequest. +func (afsrr AzureFileShareRestoreRequest) AsAzureWorkloadPointInTimeRestoreRequest() (*AzureWorkloadPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadRestoreRequest is the BasicRestoreRequest implementation for AzureFileShareRestoreRequest. +func (afsrr AzureFileShareRestoreRequest) AsAzureWorkloadRestoreRequest() (*AzureWorkloadRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadRestoreRequest is the BasicRestoreRequest implementation for AzureFileShareRestoreRequest. +func (afsrr AzureFileShareRestoreRequest) AsBasicAzureWorkloadRestoreRequest() (BasicAzureWorkloadRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureFileShareRestoreRequest. +func (afsrr AzureFileShareRestoreRequest) AsAzureWorkloadSAPHanaPointInTimeRestoreRequest() (*AzureWorkloadSAPHanaPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSAPHanaPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureFileShareRestoreRequest. +func (afsrr AzureFileShareRestoreRequest) AsBasicAzureWorkloadSAPHanaPointInTimeRestoreRequest() (BasicAzureWorkloadSAPHanaPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaRestoreRequest is the BasicRestoreRequest implementation for AzureFileShareRestoreRequest. +func (afsrr AzureFileShareRestoreRequest) AsAzureWorkloadSAPHanaRestoreRequest() (*AzureWorkloadSAPHanaRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSAPHanaRestoreRequest is the BasicRestoreRequest implementation for AzureFileShareRestoreRequest. +func (afsrr AzureFileShareRestoreRequest) AsBasicAzureWorkloadSAPHanaRestoreRequest() (BasicAzureWorkloadSAPHanaRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureFileShareRestoreRequest. +func (afsrr AzureFileShareRestoreRequest) AsAzureWorkloadSQLPointInTimeRestoreRequest() (*AzureWorkloadSQLPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSQLPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureFileShareRestoreRequest. +func (afsrr AzureFileShareRestoreRequest) AsBasicAzureWorkloadSQLPointInTimeRestoreRequest() (BasicAzureWorkloadSQLPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLRestoreRequest is the BasicRestoreRequest implementation for AzureFileShareRestoreRequest. +func (afsrr AzureFileShareRestoreRequest) AsAzureWorkloadSQLRestoreRequest() (*AzureWorkloadSQLRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSQLRestoreRequest is the BasicRestoreRequest implementation for AzureFileShareRestoreRequest. +func (afsrr AzureFileShareRestoreRequest) AsBasicAzureWorkloadSQLRestoreRequest() (BasicAzureWorkloadSQLRestoreRequest, bool) { + return nil, false +} + +// AsIaasVMRestoreRequest is the BasicRestoreRequest implementation for AzureFileShareRestoreRequest. +func (afsrr AzureFileShareRestoreRequest) AsIaasVMRestoreRequest() (*IaasVMRestoreRequest, bool) { + return nil, false +} + +// AsBasicIaasVMRestoreRequest is the BasicRestoreRequest implementation for AzureFileShareRestoreRequest. +func (afsrr AzureFileShareRestoreRequest) AsBasicIaasVMRestoreRequest() (BasicIaasVMRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureFileShareRestoreRequest. +func (afsrr AzureFileShareRestoreRequest) AsAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest() (*AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureFileShareRestoreRequest. +func (afsrr AzureFileShareRestoreRequest) AsAzureWorkloadSAPHanaRestoreWithRehydrateRequest() (*AzureWorkloadSAPHanaRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureFileShareRestoreRequest. +func (afsrr AzureFileShareRestoreRequest) AsAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest() (*AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureFileShareRestoreRequest. +func (afsrr AzureFileShareRestoreRequest) AsAzureWorkloadSQLRestoreWithRehydrateRequest() (*AzureWorkloadSQLRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsIaasVMRestoreWithRehydrationRequest is the BasicRestoreRequest implementation for AzureFileShareRestoreRequest. +func (afsrr AzureFileShareRestoreRequest) AsIaasVMRestoreWithRehydrationRequest() (*IaasVMRestoreWithRehydrationRequest, bool) { + return nil, false +} + +// AsRestoreRequest is the BasicRestoreRequest implementation for AzureFileShareRestoreRequest. +func (afsrr AzureFileShareRestoreRequest) AsRestoreRequest() (*RestoreRequest, bool) { + return nil, false +} + +// AsBasicRestoreRequest is the BasicRestoreRequest implementation for AzureFileShareRestoreRequest. +func (afsrr AzureFileShareRestoreRequest) AsBasicRestoreRequest() (BasicRestoreRequest, bool) { + return &afsrr, true +} + +// AzureIaaSClassicComputeVMContainer iaaS VM workload-specific backup item representing a classic virtual +// machine. +type AzureIaaSClassicComputeVMContainer struct { + // VirtualMachineID - Fully qualified ARM url of the virtual machine represented by this Azure IaaS VM container. + VirtualMachineID *string `json:"virtualMachineId,omitempty"` + // VirtualMachineVersion - Specifies whether the container represents a Classic or an Azure Resource Manager VM. + VirtualMachineVersion *string `json:"virtualMachineVersion,omitempty"` + // ResourceGroup - Resource group name of Recovery Services Vault. + ResourceGroup *string `json:"resourceGroup,omitempty"` + // FriendlyName - Friendly name of the container. + FriendlyName *string `json:"friendlyName,omitempty"` + // BackupManagementType - Type of backup management for the container. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // RegistrationStatus - Status of registration of the container with the Recovery Services Vault. + RegistrationStatus *string `json:"registrationStatus,omitempty"` + // HealthStatus - Status of health of the container. + HealthStatus *string `json:"healthStatus,omitempty"` + // ContainerType - Possible values include: 'ContainerTypeBasicProtectionContainerContainerTypeProtectionContainer', 'ContainerTypeBasicProtectionContainerContainerTypeAzureBackupServerContainer', 'ContainerTypeBasicProtectionContainerContainerTypeMicrosoftClassicComputevirtualMachines', 'ContainerTypeBasicProtectionContainerContainerTypeMicrosoftComputevirtualMachines', 'ContainerTypeBasicProtectionContainerContainerTypeSQLAGWorkLoadContainer', 'ContainerTypeBasicProtectionContainerContainerTypeAzureSQLContainer', 'ContainerTypeBasicProtectionContainerContainerTypeStorageContainer', 'ContainerTypeBasicProtectionContainerContainerTypeVMAppContainer', 'ContainerTypeBasicProtectionContainerContainerTypeAzureWorkloadContainer', 'ContainerTypeBasicProtectionContainerContainerTypeDPMContainer', 'ContainerTypeBasicProtectionContainerContainerTypeGenericContainer', 'ContainerTypeBasicProtectionContainerContainerTypeIaaSVMContainer', 'ContainerTypeBasicProtectionContainerContainerTypeWindows' + ContainerType ContainerTypeBasicProtectionContainer `json:"containerType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureIaaSClassicComputeVMContainer. +func (aisccvc AzureIaaSClassicComputeVMContainer) MarshalJSON() ([]byte, error) { + aisccvc.ContainerType = ContainerTypeBasicProtectionContainerContainerTypeMicrosoftClassicComputevirtualMachines + objectMap := make(map[string]interface{}) + if aisccvc.VirtualMachineID != nil { + objectMap["virtualMachineId"] = aisccvc.VirtualMachineID + } + if aisccvc.VirtualMachineVersion != nil { + objectMap["virtualMachineVersion"] = aisccvc.VirtualMachineVersion + } + if aisccvc.ResourceGroup != nil { + objectMap["resourceGroup"] = aisccvc.ResourceGroup + } + if aisccvc.FriendlyName != nil { + objectMap["friendlyName"] = aisccvc.FriendlyName + } + if aisccvc.BackupManagementType != "" { + objectMap["backupManagementType"] = aisccvc.BackupManagementType + } + if aisccvc.RegistrationStatus != nil { + objectMap["registrationStatus"] = aisccvc.RegistrationStatus + } + if aisccvc.HealthStatus != nil { + objectMap["healthStatus"] = aisccvc.HealthStatus + } + if aisccvc.ContainerType != "" { + objectMap["containerType"] = aisccvc.ContainerType + } + return json.Marshal(objectMap) +} + +// AsAzureBackupServerContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer. +func (aisccvc AzureIaaSClassicComputeVMContainer) AsAzureBackupServerContainer() (*AzureBackupServerContainer, bool) { + return nil, false +} + +// AsAzureIaaSClassicComputeVMContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer. +func (aisccvc AzureIaaSClassicComputeVMContainer) AsAzureIaaSClassicComputeVMContainer() (*AzureIaaSClassicComputeVMContainer, bool) { + return &aisccvc, true +} + +// AsAzureIaaSComputeVMContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer. +func (aisccvc AzureIaaSClassicComputeVMContainer) AsAzureIaaSComputeVMContainer() (*AzureIaaSComputeVMContainer, bool) { + return nil, false +} + +// AsAzureSQLAGWorkloadContainerProtectionContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer. +func (aisccvc AzureIaaSClassicComputeVMContainer) AsAzureSQLAGWorkloadContainerProtectionContainer() (*AzureSQLAGWorkloadContainerProtectionContainer, bool) { + return nil, false +} + +// AsAzureSQLContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer. +func (aisccvc AzureIaaSClassicComputeVMContainer) AsAzureSQLContainer() (*AzureSQLContainer, bool) { + return nil, false +} + +// AsAzureStorageContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer. +func (aisccvc AzureIaaSClassicComputeVMContainer) AsAzureStorageContainer() (*AzureStorageContainer, bool) { + return nil, false +} + +// AsAzureVMAppContainerProtectionContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer. +func (aisccvc AzureIaaSClassicComputeVMContainer) AsAzureVMAppContainerProtectionContainer() (*AzureVMAppContainerProtectionContainer, bool) { + return nil, false +} + +// AsAzureWorkloadContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer. +func (aisccvc AzureIaaSClassicComputeVMContainer) AsAzureWorkloadContainer() (*AzureWorkloadContainer, bool) { + return nil, false +} + +// AsBasicAzureWorkloadContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer. +func (aisccvc AzureIaaSClassicComputeVMContainer) AsBasicAzureWorkloadContainer() (BasicAzureWorkloadContainer, bool) { + return nil, false +} + +// AsDpmContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer. +func (aisccvc AzureIaaSClassicComputeVMContainer) AsDpmContainer() (*DpmContainer, bool) { + return nil, false +} + +// AsBasicDpmContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer. +func (aisccvc AzureIaaSClassicComputeVMContainer) AsBasicDpmContainer() (BasicDpmContainer, bool) { + return nil, false +} + +// AsGenericContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer. +func (aisccvc AzureIaaSClassicComputeVMContainer) AsGenericContainer() (*GenericContainer, bool) { + return nil, false +} + +// AsIaaSVMContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer. +func (aisccvc AzureIaaSClassicComputeVMContainer) AsIaaSVMContainer() (*IaaSVMContainer, bool) { + return nil, false +} + +// AsBasicIaaSVMContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer. +func (aisccvc AzureIaaSClassicComputeVMContainer) AsBasicIaaSVMContainer() (BasicIaaSVMContainer, bool) { + return &aisccvc, true +} + +// AsMabContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer. +func (aisccvc AzureIaaSClassicComputeVMContainer) AsMabContainer() (*MabContainer, bool) { + return nil, false +} + +// AsProtectionContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer. +func (aisccvc AzureIaaSClassicComputeVMContainer) AsProtectionContainer() (*ProtectionContainer, bool) { + return nil, false +} + +// AsBasicProtectionContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer. +func (aisccvc AzureIaaSClassicComputeVMContainer) AsBasicProtectionContainer() (BasicProtectionContainer, bool) { + return &aisccvc, true +} + +// AzureIaaSClassicComputeVMProtectableItem iaaS VM workload-specific backup item representing the Classic +// Compute VM. +type AzureIaaSClassicComputeVMProtectableItem struct { + // VirtualMachineID - Fully qualified ARM ID of the virtual machine. + VirtualMachineID *string `json:"virtualMachineId,omitempty"` + // BackupManagementType - Type of backup management to backup an item. + BackupManagementType *string `json:"backupManagementType,omitempty"` + // WorkloadType - Type of workload for the backup management + WorkloadType *string `json:"workloadType,omitempty"` + // FriendlyName - Friendly name of the backup item. + FriendlyName *string `json:"friendlyName,omitempty"` + // ProtectionState - State of the back up item. Possible values include: 'ProtectionStatusInvalid', 'ProtectionStatusNotProtected', 'ProtectionStatusProtecting', 'ProtectionStatusProtected', 'ProtectionStatusProtectionFailed' + ProtectionState ProtectionStatus `json:"protectionState,omitempty"` + // ProtectableItemType - Possible values include: 'ProtectableItemTypeWorkloadProtectableItem', 'ProtectableItemTypeAzureFileShare', 'ProtectableItemTypeMicrosoftClassicComputevirtualMachines', 'ProtectableItemTypeMicrosoftComputevirtualMachines', 'ProtectableItemTypeAzureVMWorkloadProtectableItem', 'ProtectableItemTypeSAPAseSystem', 'ProtectableItemTypeSAPHanaDatabase', 'ProtectableItemTypeSAPHanaSystem', 'ProtectableItemTypeSQLAvailabilityGroupContainer', 'ProtectableItemTypeSQLDataBase', 'ProtectableItemTypeSQLInstance', 'ProtectableItemTypeIaaSVMProtectableItem' + ProtectableItemType ProtectableItemType `json:"protectableItemType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureIaaSClassicComputeVMProtectableItem. +func (aisccvpi AzureIaaSClassicComputeVMProtectableItem) MarshalJSON() ([]byte, error) { + aisccvpi.ProtectableItemType = ProtectableItemTypeMicrosoftClassicComputevirtualMachines + objectMap := make(map[string]interface{}) + if aisccvpi.VirtualMachineID != nil { + objectMap["virtualMachineId"] = aisccvpi.VirtualMachineID + } + if aisccvpi.BackupManagementType != nil { + objectMap["backupManagementType"] = aisccvpi.BackupManagementType + } + if aisccvpi.WorkloadType != nil { + objectMap["workloadType"] = aisccvpi.WorkloadType + } + if aisccvpi.FriendlyName != nil { + objectMap["friendlyName"] = aisccvpi.FriendlyName + } + if aisccvpi.ProtectionState != "" { + objectMap["protectionState"] = aisccvpi.ProtectionState + } + if aisccvpi.ProtectableItemType != "" { + objectMap["protectableItemType"] = aisccvpi.ProtectableItemType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSClassicComputeVMProtectableItem. +func (aisccvpi AzureIaaSClassicComputeVMProtectableItem) AsAzureFileShareProtectableItem() (*AzureFileShareProtectableItem, bool) { + return nil, false +} + +// AsAzureIaaSClassicComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSClassicComputeVMProtectableItem. +func (aisccvpi AzureIaaSClassicComputeVMProtectableItem) AsAzureIaaSClassicComputeVMProtectableItem() (*AzureIaaSClassicComputeVMProtectableItem, bool) { + return &aisccvpi, true +} + +// AsAzureIaaSComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSClassicComputeVMProtectableItem. +func (aisccvpi AzureIaaSClassicComputeVMProtectableItem) AsAzureIaaSComputeVMProtectableItem() (*AzureIaaSComputeVMProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSClassicComputeVMProtectableItem. +func (aisccvpi AzureIaaSClassicComputeVMProtectableItem) AsAzureVMWorkloadProtectableItem() (*AzureVMWorkloadProtectableItem, bool) { + return nil, false +} + +// AsBasicAzureVMWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSClassicComputeVMProtectableItem. +func (aisccvpi AzureIaaSClassicComputeVMProtectableItem) AsBasicAzureVMWorkloadProtectableItem() (BasicAzureVMWorkloadProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPAseSystemProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSClassicComputeVMProtectableItem. +func (aisccvpi AzureIaaSClassicComputeVMProtectableItem) AsAzureVMWorkloadSAPAseSystemProtectableItem() (*AzureVMWorkloadSAPAseSystemProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaDatabaseProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSClassicComputeVMProtectableItem. +func (aisccvpi AzureIaaSClassicComputeVMProtectableItem) AsAzureVMWorkloadSAPHanaDatabaseProtectableItem() (*AzureVMWorkloadSAPHanaDatabaseProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaSystemProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSClassicComputeVMProtectableItem. +func (aisccvpi AzureIaaSClassicComputeVMProtectableItem) AsAzureVMWorkloadSAPHanaSystemProtectableItem() (*AzureVMWorkloadSAPHanaSystemProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLAvailabilityGroupProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSClassicComputeVMProtectableItem. +func (aisccvpi AzureIaaSClassicComputeVMProtectableItem) AsAzureVMWorkloadSQLAvailabilityGroupProtectableItem() (*AzureVMWorkloadSQLAvailabilityGroupProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLDatabaseProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSClassicComputeVMProtectableItem. +func (aisccvpi AzureIaaSClassicComputeVMProtectableItem) AsAzureVMWorkloadSQLDatabaseProtectableItem() (*AzureVMWorkloadSQLDatabaseProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLInstanceProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSClassicComputeVMProtectableItem. +func (aisccvpi AzureIaaSClassicComputeVMProtectableItem) AsAzureVMWorkloadSQLInstanceProtectableItem() (*AzureVMWorkloadSQLInstanceProtectableItem, bool) { + return nil, false +} + +// AsIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSClassicComputeVMProtectableItem. +func (aisccvpi AzureIaaSClassicComputeVMProtectableItem) AsIaaSVMProtectableItem() (*IaaSVMProtectableItem, bool) { + return nil, false +} + +// AsBasicIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSClassicComputeVMProtectableItem. +func (aisccvpi AzureIaaSClassicComputeVMProtectableItem) AsBasicIaaSVMProtectableItem() (BasicIaaSVMProtectableItem, bool) { + return &aisccvpi, true +} + +// AsWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSClassicComputeVMProtectableItem. +func (aisccvpi AzureIaaSClassicComputeVMProtectableItem) AsWorkloadProtectableItem() (*WorkloadProtectableItem, bool) { + return nil, false +} + +// AsBasicWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSClassicComputeVMProtectableItem. +func (aisccvpi AzureIaaSClassicComputeVMProtectableItem) AsBasicWorkloadProtectableItem() (BasicWorkloadProtectableItem, bool) { + return &aisccvpi, true +} + +// AzureIaaSClassicComputeVMProtectedItem iaaS VM workload-specific backup item representing the Classic +// Compute VM. +type AzureIaaSClassicComputeVMProtectedItem struct { + // FriendlyName - Friendly name of the VM represented by this backup item. + FriendlyName *string `json:"friendlyName,omitempty"` + // VirtualMachineID - Fully qualified ARM ID of the virtual machine represented by this item. + VirtualMachineID *string `json:"virtualMachineId,omitempty"` + // ProtectionStatus - Backup status of this backup item. + ProtectionStatus *string `json:"protectionStatus,omitempty"` + // ProtectionState - Backup state of this backup item. Possible values include: 'ProtectionStateInvalid', 'ProtectionStateIRPending', 'ProtectionStateProtected', 'ProtectionStateProtectionError', 'ProtectionStateProtectionStopped', 'ProtectionStateProtectionPaused' + ProtectionState ProtectionState `json:"protectionState,omitempty"` + // HealthStatus - Health status of protected item. Possible values include: 'HealthStatusPassed', 'HealthStatusActionRequired', 'HealthStatusActionSuggested', 'HealthStatusInvalid' + HealthStatus HealthStatus `json:"healthStatus,omitempty"` + // HealthDetails - Health details on this backup item. + HealthDetails *[]AzureIaaSVMHealthDetails `json:"healthDetails,omitempty"` + // KpisHealths - Health details of different KPIs + KpisHealths map[string]*KPIResourceHealthDetails `json:"kpisHealths"` + // LastBackupStatus - Last backup operation status. + LastBackupStatus *string `json:"lastBackupStatus,omitempty"` + // LastBackupTime - Timestamp of the last backup operation on this backup item. + LastBackupTime *date.Time `json:"lastBackupTime,omitempty"` + // ProtectedItemDataID - Data ID of the protected item. + ProtectedItemDataID *string `json:"protectedItemDataId,omitempty"` + // ExtendedInfo - Additional information for this backup item. + ExtendedInfo *AzureIaaSVMProtectedItemExtendedInfo `json:"extendedInfo,omitempty"` + ExtendedProperties *ExtendedProperties `json:"extendedProperties,omitempty"` + // BackupManagementType - Type of backup management for the backed up item. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // WorkloadType - Type of workload this item represents. Possible values include: 'DataSourceTypeInvalid', 'DataSourceTypeVM', 'DataSourceTypeFileFolder', 'DataSourceTypeAzureSQLDb', 'DataSourceTypeSQLDB', 'DataSourceTypeExchange', 'DataSourceTypeSharepoint', 'DataSourceTypeVMwareVM', 'DataSourceTypeSystemState', 'DataSourceTypeClient', 'DataSourceTypeGenericDataSource', 'DataSourceTypeSQLDataBase', 'DataSourceTypeAzureFileShare', 'DataSourceTypeSAPHanaDatabase', 'DataSourceTypeSAPAseDatabase' + WorkloadType DataSourceType `json:"workloadType,omitempty"` + // ContainerName - Unique name of container + ContainerName *string `json:"containerName,omitempty"` + // SourceResourceID - ARM ID of the resource to be backed up. + SourceResourceID *string `json:"sourceResourceId,omitempty"` + // PolicyID - ID of the backup policy with which this item is backed up. + PolicyID *string `json:"policyId,omitempty"` + // LastRecoveryPoint - Timestamp when the last (latest) backup copy was created for this backup item. + LastRecoveryPoint *date.Time `json:"lastRecoveryPoint,omitempty"` + // BackupSetName - Name of the backup set the backup item belongs to + BackupSetName *string `json:"backupSetName,omitempty"` + // CreateMode - Create mode to indicate recovery of existing soft deleted data source or creation of new data source. Possible values include: 'CreateModeInvalid', 'CreateModeDefault', 'CreateModeRecover' + CreateMode CreateMode `json:"createMode,omitempty"` + // DeferredDeleteTimeInUTC - Time for deferred deletion in UTC + DeferredDeleteTimeInUTC *date.Time `json:"deferredDeleteTimeInUTC,omitempty"` + // IsScheduledForDeferredDelete - Flag to identify whether the DS is scheduled for deferred delete + IsScheduledForDeferredDelete *bool `json:"isScheduledForDeferredDelete,omitempty"` + // DeferredDeleteTimeRemaining - Time remaining before the DS marked for deferred delete is permanently deleted + DeferredDeleteTimeRemaining *string `json:"deferredDeleteTimeRemaining,omitempty"` + // IsDeferredDeleteScheduleUpcoming - Flag to identify whether the deferred deleted DS is to be purged soon + IsDeferredDeleteScheduleUpcoming *bool `json:"isDeferredDeleteScheduleUpcoming,omitempty"` + // IsRehydrate - Flag to identify that deferred deleted DS is to be moved into Pause state + IsRehydrate *bool `json:"isRehydrate,omitempty"` + // ProtectedItemType - Possible values include: 'ProtectedItemTypeProtectedItem', 'ProtectedItemTypeAzureFileShareProtectedItem', 'ProtectedItemTypeMicrosoftClassicComputevirtualMachines', 'ProtectedItemTypeMicrosoftComputevirtualMachines', 'ProtectedItemTypeAzureIaaSVMProtectedItem', 'ProtectedItemTypeMicrosoftSqlserversdatabases', 'ProtectedItemTypeAzureVMWorkloadProtectedItem', 'ProtectedItemTypeAzureVMWorkloadSAPAseDatabase', 'ProtectedItemTypeAzureVMWorkloadSAPHanaDatabase', 'ProtectedItemTypeAzureVMWorkloadSQLDatabase', 'ProtectedItemTypeDPMProtectedItem', 'ProtectedItemTypeGenericProtectedItem', 'ProtectedItemTypeMabFileFolderProtectedItem' + ProtectedItemType ProtectedItemType `json:"protectedItemType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureIaaSClassicComputeVMProtectedItem. +func (aisccvpi AzureIaaSClassicComputeVMProtectedItem) MarshalJSON() ([]byte, error) { + aisccvpi.ProtectedItemType = ProtectedItemTypeMicrosoftClassicComputevirtualMachines + objectMap := make(map[string]interface{}) + if aisccvpi.FriendlyName != nil { + objectMap["friendlyName"] = aisccvpi.FriendlyName + } + if aisccvpi.VirtualMachineID != nil { + objectMap["virtualMachineId"] = aisccvpi.VirtualMachineID + } + if aisccvpi.ProtectionStatus != nil { + objectMap["protectionStatus"] = aisccvpi.ProtectionStatus + } + if aisccvpi.ProtectionState != "" { + objectMap["protectionState"] = aisccvpi.ProtectionState + } + if aisccvpi.HealthStatus != "" { + objectMap["healthStatus"] = aisccvpi.HealthStatus + } + if aisccvpi.HealthDetails != nil { + objectMap["healthDetails"] = aisccvpi.HealthDetails + } + if aisccvpi.KpisHealths != nil { + objectMap["kpisHealths"] = aisccvpi.KpisHealths + } + if aisccvpi.LastBackupStatus != nil { + objectMap["lastBackupStatus"] = aisccvpi.LastBackupStatus + } + if aisccvpi.LastBackupTime != nil { + objectMap["lastBackupTime"] = aisccvpi.LastBackupTime + } + if aisccvpi.ProtectedItemDataID != nil { + objectMap["protectedItemDataId"] = aisccvpi.ProtectedItemDataID + } + if aisccvpi.ExtendedInfo != nil { + objectMap["extendedInfo"] = aisccvpi.ExtendedInfo + } + if aisccvpi.ExtendedProperties != nil { + objectMap["extendedProperties"] = aisccvpi.ExtendedProperties + } + if aisccvpi.BackupManagementType != "" { + objectMap["backupManagementType"] = aisccvpi.BackupManagementType + } + if aisccvpi.WorkloadType != "" { + objectMap["workloadType"] = aisccvpi.WorkloadType + } + if aisccvpi.ContainerName != nil { + objectMap["containerName"] = aisccvpi.ContainerName + } + if aisccvpi.SourceResourceID != nil { + objectMap["sourceResourceId"] = aisccvpi.SourceResourceID + } + if aisccvpi.PolicyID != nil { + objectMap["policyId"] = aisccvpi.PolicyID + } + if aisccvpi.LastRecoveryPoint != nil { + objectMap["lastRecoveryPoint"] = aisccvpi.LastRecoveryPoint + } + if aisccvpi.BackupSetName != nil { + objectMap["backupSetName"] = aisccvpi.BackupSetName + } + if aisccvpi.CreateMode != "" { + objectMap["createMode"] = aisccvpi.CreateMode + } + if aisccvpi.DeferredDeleteTimeInUTC != nil { + objectMap["deferredDeleteTimeInUTC"] = aisccvpi.DeferredDeleteTimeInUTC + } + if aisccvpi.IsScheduledForDeferredDelete != nil { + objectMap["isScheduledForDeferredDelete"] = aisccvpi.IsScheduledForDeferredDelete + } + if aisccvpi.DeferredDeleteTimeRemaining != nil { + objectMap["deferredDeleteTimeRemaining"] = aisccvpi.DeferredDeleteTimeRemaining + } + if aisccvpi.IsDeferredDeleteScheduleUpcoming != nil { + objectMap["isDeferredDeleteScheduleUpcoming"] = aisccvpi.IsDeferredDeleteScheduleUpcoming + } + if aisccvpi.IsRehydrate != nil { + objectMap["isRehydrate"] = aisccvpi.IsRehydrate + } + if aisccvpi.ProtectedItemType != "" { + objectMap["protectedItemType"] = aisccvpi.ProtectedItemType + } + return json.Marshal(objectMap) +} + +// AsAzureFileshareProtectedItem is the BasicProtectedItem implementation for AzureIaaSClassicComputeVMProtectedItem. +func (aisccvpi AzureIaaSClassicComputeVMProtectedItem) AsAzureFileshareProtectedItem() (*AzureFileshareProtectedItem, bool) { + return nil, false +} + +// AsAzureIaaSClassicComputeVMProtectedItem is the BasicProtectedItem implementation for AzureIaaSClassicComputeVMProtectedItem. +func (aisccvpi AzureIaaSClassicComputeVMProtectedItem) AsAzureIaaSClassicComputeVMProtectedItem() (*AzureIaaSClassicComputeVMProtectedItem, bool) { + return &aisccvpi, true +} + +// AsAzureIaaSComputeVMProtectedItem is the BasicProtectedItem implementation for AzureIaaSClassicComputeVMProtectedItem. +func (aisccvpi AzureIaaSClassicComputeVMProtectedItem) AsAzureIaaSComputeVMProtectedItem() (*AzureIaaSComputeVMProtectedItem, bool) { + return nil, false +} + +// AsAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for AzureIaaSClassicComputeVMProtectedItem. +func (aisccvpi AzureIaaSClassicComputeVMProtectedItem) AsAzureIaaSVMProtectedItem() (*AzureIaaSVMProtectedItem, bool) { + return nil, false +} + +// AsBasicAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for AzureIaaSClassicComputeVMProtectedItem. +func (aisccvpi AzureIaaSClassicComputeVMProtectedItem) AsBasicAzureIaaSVMProtectedItem() (BasicAzureIaaSVMProtectedItem, bool) { + return &aisccvpi, true +} + +// AsAzureSQLProtectedItem is the BasicProtectedItem implementation for AzureIaaSClassicComputeVMProtectedItem. +func (aisccvpi AzureIaaSClassicComputeVMProtectedItem) AsAzureSQLProtectedItem() (*AzureSQLProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadProtectedItem is the BasicProtectedItem implementation for AzureIaaSClassicComputeVMProtectedItem. +func (aisccvpi AzureIaaSClassicComputeVMProtectedItem) AsAzureVMWorkloadProtectedItem() (*AzureVMWorkloadProtectedItem, bool) { + return nil, false +} + +// AsBasicAzureVMWorkloadProtectedItem is the BasicProtectedItem implementation for AzureIaaSClassicComputeVMProtectedItem. +func (aisccvpi AzureIaaSClassicComputeVMProtectedItem) AsBasicAzureVMWorkloadProtectedItem() (BasicAzureVMWorkloadProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPAseDatabaseProtectedItem is the BasicProtectedItem implementation for AzureIaaSClassicComputeVMProtectedItem. +func (aisccvpi AzureIaaSClassicComputeVMProtectedItem) AsAzureVMWorkloadSAPAseDatabaseProtectedItem() (*AzureVMWorkloadSAPAseDatabaseProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaDatabaseProtectedItem is the BasicProtectedItem implementation for AzureIaaSClassicComputeVMProtectedItem. +func (aisccvpi AzureIaaSClassicComputeVMProtectedItem) AsAzureVMWorkloadSAPHanaDatabaseProtectedItem() (*AzureVMWorkloadSAPHanaDatabaseProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLDatabaseProtectedItem is the BasicProtectedItem implementation for AzureIaaSClassicComputeVMProtectedItem. +func (aisccvpi AzureIaaSClassicComputeVMProtectedItem) AsAzureVMWorkloadSQLDatabaseProtectedItem() (*AzureVMWorkloadSQLDatabaseProtectedItem, bool) { + return nil, false +} + +// AsDPMProtectedItem is the BasicProtectedItem implementation for AzureIaaSClassicComputeVMProtectedItem. +func (aisccvpi AzureIaaSClassicComputeVMProtectedItem) AsDPMProtectedItem() (*DPMProtectedItem, bool) { + return nil, false +} + +// AsGenericProtectedItem is the BasicProtectedItem implementation for AzureIaaSClassicComputeVMProtectedItem. +func (aisccvpi AzureIaaSClassicComputeVMProtectedItem) AsGenericProtectedItem() (*GenericProtectedItem, bool) { + return nil, false +} + +// AsMabFileFolderProtectedItem is the BasicProtectedItem implementation for AzureIaaSClassicComputeVMProtectedItem. +func (aisccvpi AzureIaaSClassicComputeVMProtectedItem) AsMabFileFolderProtectedItem() (*MabFileFolderProtectedItem, bool) { + return nil, false +} + +// AsProtectedItem is the BasicProtectedItem implementation for AzureIaaSClassicComputeVMProtectedItem. +func (aisccvpi AzureIaaSClassicComputeVMProtectedItem) AsProtectedItem() (*ProtectedItem, bool) { + return nil, false +} + +// AsBasicProtectedItem is the BasicProtectedItem implementation for AzureIaaSClassicComputeVMProtectedItem. +func (aisccvpi AzureIaaSClassicComputeVMProtectedItem) AsBasicProtectedItem() (BasicProtectedItem, bool) { + return &aisccvpi, true +} + +// AzureIaaSComputeVMContainer iaaS VM workload-specific backup item representing an Azure Resource Manager +// virtual machine. +type AzureIaaSComputeVMContainer struct { + // VirtualMachineID - Fully qualified ARM url of the virtual machine represented by this Azure IaaS VM container. + VirtualMachineID *string `json:"virtualMachineId,omitempty"` + // VirtualMachineVersion - Specifies whether the container represents a Classic or an Azure Resource Manager VM. + VirtualMachineVersion *string `json:"virtualMachineVersion,omitempty"` + // ResourceGroup - Resource group name of Recovery Services Vault. + ResourceGroup *string `json:"resourceGroup,omitempty"` + // FriendlyName - Friendly name of the container. + FriendlyName *string `json:"friendlyName,omitempty"` + // BackupManagementType - Type of backup management for the container. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // RegistrationStatus - Status of registration of the container with the Recovery Services Vault. + RegistrationStatus *string `json:"registrationStatus,omitempty"` + // HealthStatus - Status of health of the container. + HealthStatus *string `json:"healthStatus,omitempty"` + // ContainerType - Possible values include: 'ContainerTypeBasicProtectionContainerContainerTypeProtectionContainer', 'ContainerTypeBasicProtectionContainerContainerTypeAzureBackupServerContainer', 'ContainerTypeBasicProtectionContainerContainerTypeMicrosoftClassicComputevirtualMachines', 'ContainerTypeBasicProtectionContainerContainerTypeMicrosoftComputevirtualMachines', 'ContainerTypeBasicProtectionContainerContainerTypeSQLAGWorkLoadContainer', 'ContainerTypeBasicProtectionContainerContainerTypeAzureSQLContainer', 'ContainerTypeBasicProtectionContainerContainerTypeStorageContainer', 'ContainerTypeBasicProtectionContainerContainerTypeVMAppContainer', 'ContainerTypeBasicProtectionContainerContainerTypeAzureWorkloadContainer', 'ContainerTypeBasicProtectionContainerContainerTypeDPMContainer', 'ContainerTypeBasicProtectionContainerContainerTypeGenericContainer', 'ContainerTypeBasicProtectionContainerContainerTypeIaaSVMContainer', 'ContainerTypeBasicProtectionContainerContainerTypeWindows' + ContainerType ContainerTypeBasicProtectionContainer `json:"containerType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureIaaSComputeVMContainer. +func (aiscvc AzureIaaSComputeVMContainer) MarshalJSON() ([]byte, error) { + aiscvc.ContainerType = ContainerTypeBasicProtectionContainerContainerTypeMicrosoftComputevirtualMachines + objectMap := make(map[string]interface{}) + if aiscvc.VirtualMachineID != nil { + objectMap["virtualMachineId"] = aiscvc.VirtualMachineID + } + if aiscvc.VirtualMachineVersion != nil { + objectMap["virtualMachineVersion"] = aiscvc.VirtualMachineVersion + } + if aiscvc.ResourceGroup != nil { + objectMap["resourceGroup"] = aiscvc.ResourceGroup + } + if aiscvc.FriendlyName != nil { + objectMap["friendlyName"] = aiscvc.FriendlyName + } + if aiscvc.BackupManagementType != "" { + objectMap["backupManagementType"] = aiscvc.BackupManagementType + } + if aiscvc.RegistrationStatus != nil { + objectMap["registrationStatus"] = aiscvc.RegistrationStatus + } + if aiscvc.HealthStatus != nil { + objectMap["healthStatus"] = aiscvc.HealthStatus + } + if aiscvc.ContainerType != "" { + objectMap["containerType"] = aiscvc.ContainerType + } + return json.Marshal(objectMap) +} + +// AsAzureBackupServerContainer is the BasicProtectionContainer implementation for AzureIaaSComputeVMContainer. +func (aiscvc AzureIaaSComputeVMContainer) AsAzureBackupServerContainer() (*AzureBackupServerContainer, bool) { + return nil, false +} + +// AsAzureIaaSClassicComputeVMContainer is the BasicProtectionContainer implementation for AzureIaaSComputeVMContainer. +func (aiscvc AzureIaaSComputeVMContainer) AsAzureIaaSClassicComputeVMContainer() (*AzureIaaSClassicComputeVMContainer, bool) { + return nil, false +} + +// AsAzureIaaSComputeVMContainer is the BasicProtectionContainer implementation for AzureIaaSComputeVMContainer. +func (aiscvc AzureIaaSComputeVMContainer) AsAzureIaaSComputeVMContainer() (*AzureIaaSComputeVMContainer, bool) { + return &aiscvc, true +} + +// AsAzureSQLAGWorkloadContainerProtectionContainer is the BasicProtectionContainer implementation for AzureIaaSComputeVMContainer. +func (aiscvc AzureIaaSComputeVMContainer) AsAzureSQLAGWorkloadContainerProtectionContainer() (*AzureSQLAGWorkloadContainerProtectionContainer, bool) { + return nil, false +} + +// AsAzureSQLContainer is the BasicProtectionContainer implementation for AzureIaaSComputeVMContainer. +func (aiscvc AzureIaaSComputeVMContainer) AsAzureSQLContainer() (*AzureSQLContainer, bool) { + return nil, false +} + +// AsAzureStorageContainer is the BasicProtectionContainer implementation for AzureIaaSComputeVMContainer. +func (aiscvc AzureIaaSComputeVMContainer) AsAzureStorageContainer() (*AzureStorageContainer, bool) { + return nil, false +} + +// AsAzureVMAppContainerProtectionContainer is the BasicProtectionContainer implementation for AzureIaaSComputeVMContainer. +func (aiscvc AzureIaaSComputeVMContainer) AsAzureVMAppContainerProtectionContainer() (*AzureVMAppContainerProtectionContainer, bool) { + return nil, false +} + +// AsAzureWorkloadContainer is the BasicProtectionContainer implementation for AzureIaaSComputeVMContainer. +func (aiscvc AzureIaaSComputeVMContainer) AsAzureWorkloadContainer() (*AzureWorkloadContainer, bool) { + return nil, false +} + +// AsBasicAzureWorkloadContainer is the BasicProtectionContainer implementation for AzureIaaSComputeVMContainer. +func (aiscvc AzureIaaSComputeVMContainer) AsBasicAzureWorkloadContainer() (BasicAzureWorkloadContainer, bool) { + return nil, false +} + +// AsDpmContainer is the BasicProtectionContainer implementation for AzureIaaSComputeVMContainer. +func (aiscvc AzureIaaSComputeVMContainer) AsDpmContainer() (*DpmContainer, bool) { + return nil, false +} + +// AsBasicDpmContainer is the BasicProtectionContainer implementation for AzureIaaSComputeVMContainer. +func (aiscvc AzureIaaSComputeVMContainer) AsBasicDpmContainer() (BasicDpmContainer, bool) { + return nil, false +} + +// AsGenericContainer is the BasicProtectionContainer implementation for AzureIaaSComputeVMContainer. +func (aiscvc AzureIaaSComputeVMContainer) AsGenericContainer() (*GenericContainer, bool) { + return nil, false +} + +// AsIaaSVMContainer is the BasicProtectionContainer implementation for AzureIaaSComputeVMContainer. +func (aiscvc AzureIaaSComputeVMContainer) AsIaaSVMContainer() (*IaaSVMContainer, bool) { + return nil, false +} + +// AsBasicIaaSVMContainer is the BasicProtectionContainer implementation for AzureIaaSComputeVMContainer. +func (aiscvc AzureIaaSComputeVMContainer) AsBasicIaaSVMContainer() (BasicIaaSVMContainer, bool) { + return &aiscvc, true +} + +// AsMabContainer is the BasicProtectionContainer implementation for AzureIaaSComputeVMContainer. +func (aiscvc AzureIaaSComputeVMContainer) AsMabContainer() (*MabContainer, bool) { + return nil, false +} + +// AsProtectionContainer is the BasicProtectionContainer implementation for AzureIaaSComputeVMContainer. +func (aiscvc AzureIaaSComputeVMContainer) AsProtectionContainer() (*ProtectionContainer, bool) { + return nil, false +} + +// AsBasicProtectionContainer is the BasicProtectionContainer implementation for AzureIaaSComputeVMContainer. +func (aiscvc AzureIaaSComputeVMContainer) AsBasicProtectionContainer() (BasicProtectionContainer, bool) { + return &aiscvc, true +} + +// AzureIaaSComputeVMProtectableItem iaaS VM workload-specific backup item representing the Azure Resource +// Manager VM. +type AzureIaaSComputeVMProtectableItem struct { + // VirtualMachineID - Fully qualified ARM ID of the virtual machine. + VirtualMachineID *string `json:"virtualMachineId,omitempty"` + // BackupManagementType - Type of backup management to backup an item. + BackupManagementType *string `json:"backupManagementType,omitempty"` + // WorkloadType - Type of workload for the backup management + WorkloadType *string `json:"workloadType,omitempty"` + // FriendlyName - Friendly name of the backup item. + FriendlyName *string `json:"friendlyName,omitempty"` + // ProtectionState - State of the back up item. Possible values include: 'ProtectionStatusInvalid', 'ProtectionStatusNotProtected', 'ProtectionStatusProtecting', 'ProtectionStatusProtected', 'ProtectionStatusProtectionFailed' + ProtectionState ProtectionStatus `json:"protectionState,omitempty"` + // ProtectableItemType - Possible values include: 'ProtectableItemTypeWorkloadProtectableItem', 'ProtectableItemTypeAzureFileShare', 'ProtectableItemTypeMicrosoftClassicComputevirtualMachines', 'ProtectableItemTypeMicrosoftComputevirtualMachines', 'ProtectableItemTypeAzureVMWorkloadProtectableItem', 'ProtectableItemTypeSAPAseSystem', 'ProtectableItemTypeSAPHanaDatabase', 'ProtectableItemTypeSAPHanaSystem', 'ProtectableItemTypeSQLAvailabilityGroupContainer', 'ProtectableItemTypeSQLDataBase', 'ProtectableItemTypeSQLInstance', 'ProtectableItemTypeIaaSVMProtectableItem' + ProtectableItemType ProtectableItemType `json:"protectableItemType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureIaaSComputeVMProtectableItem. +func (aiscvpi AzureIaaSComputeVMProtectableItem) MarshalJSON() ([]byte, error) { + aiscvpi.ProtectableItemType = ProtectableItemTypeMicrosoftComputevirtualMachines + objectMap := make(map[string]interface{}) + if aiscvpi.VirtualMachineID != nil { + objectMap["virtualMachineId"] = aiscvpi.VirtualMachineID + } + if aiscvpi.BackupManagementType != nil { + objectMap["backupManagementType"] = aiscvpi.BackupManagementType + } + if aiscvpi.WorkloadType != nil { + objectMap["workloadType"] = aiscvpi.WorkloadType + } + if aiscvpi.FriendlyName != nil { + objectMap["friendlyName"] = aiscvpi.FriendlyName + } + if aiscvpi.ProtectionState != "" { + objectMap["protectionState"] = aiscvpi.ProtectionState + } + if aiscvpi.ProtectableItemType != "" { + objectMap["protectableItemType"] = aiscvpi.ProtectableItemType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSComputeVMProtectableItem. +func (aiscvpi AzureIaaSComputeVMProtectableItem) AsAzureFileShareProtectableItem() (*AzureFileShareProtectableItem, bool) { + return nil, false +} + +// AsAzureIaaSClassicComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSComputeVMProtectableItem. +func (aiscvpi AzureIaaSComputeVMProtectableItem) AsAzureIaaSClassicComputeVMProtectableItem() (*AzureIaaSClassicComputeVMProtectableItem, bool) { + return nil, false +} + +// AsAzureIaaSComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSComputeVMProtectableItem. +func (aiscvpi AzureIaaSComputeVMProtectableItem) AsAzureIaaSComputeVMProtectableItem() (*AzureIaaSComputeVMProtectableItem, bool) { + return &aiscvpi, true +} + +// AsAzureVMWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSComputeVMProtectableItem. +func (aiscvpi AzureIaaSComputeVMProtectableItem) AsAzureVMWorkloadProtectableItem() (*AzureVMWorkloadProtectableItem, bool) { + return nil, false +} + +// AsBasicAzureVMWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSComputeVMProtectableItem. +func (aiscvpi AzureIaaSComputeVMProtectableItem) AsBasicAzureVMWorkloadProtectableItem() (BasicAzureVMWorkloadProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPAseSystemProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSComputeVMProtectableItem. +func (aiscvpi AzureIaaSComputeVMProtectableItem) AsAzureVMWorkloadSAPAseSystemProtectableItem() (*AzureVMWorkloadSAPAseSystemProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaDatabaseProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSComputeVMProtectableItem. +func (aiscvpi AzureIaaSComputeVMProtectableItem) AsAzureVMWorkloadSAPHanaDatabaseProtectableItem() (*AzureVMWorkloadSAPHanaDatabaseProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaSystemProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSComputeVMProtectableItem. +func (aiscvpi AzureIaaSComputeVMProtectableItem) AsAzureVMWorkloadSAPHanaSystemProtectableItem() (*AzureVMWorkloadSAPHanaSystemProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLAvailabilityGroupProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSComputeVMProtectableItem. +func (aiscvpi AzureIaaSComputeVMProtectableItem) AsAzureVMWorkloadSQLAvailabilityGroupProtectableItem() (*AzureVMWorkloadSQLAvailabilityGroupProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLDatabaseProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSComputeVMProtectableItem. +func (aiscvpi AzureIaaSComputeVMProtectableItem) AsAzureVMWorkloadSQLDatabaseProtectableItem() (*AzureVMWorkloadSQLDatabaseProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLInstanceProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSComputeVMProtectableItem. +func (aiscvpi AzureIaaSComputeVMProtectableItem) AsAzureVMWorkloadSQLInstanceProtectableItem() (*AzureVMWorkloadSQLInstanceProtectableItem, bool) { + return nil, false +} + +// AsIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSComputeVMProtectableItem. +func (aiscvpi AzureIaaSComputeVMProtectableItem) AsIaaSVMProtectableItem() (*IaaSVMProtectableItem, bool) { + return nil, false +} + +// AsBasicIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSComputeVMProtectableItem. +func (aiscvpi AzureIaaSComputeVMProtectableItem) AsBasicIaaSVMProtectableItem() (BasicIaaSVMProtectableItem, bool) { + return &aiscvpi, true +} + +// AsWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSComputeVMProtectableItem. +func (aiscvpi AzureIaaSComputeVMProtectableItem) AsWorkloadProtectableItem() (*WorkloadProtectableItem, bool) { + return nil, false +} + +// AsBasicWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSComputeVMProtectableItem. +func (aiscvpi AzureIaaSComputeVMProtectableItem) AsBasicWorkloadProtectableItem() (BasicWorkloadProtectableItem, bool) { + return &aiscvpi, true +} + +// AzureIaaSComputeVMProtectedItem iaaS VM workload-specific backup item representing the Azure Resource +// Manager VM. +type AzureIaaSComputeVMProtectedItem struct { + // FriendlyName - Friendly name of the VM represented by this backup item. + FriendlyName *string `json:"friendlyName,omitempty"` + // VirtualMachineID - Fully qualified ARM ID of the virtual machine represented by this item. + VirtualMachineID *string `json:"virtualMachineId,omitempty"` + // ProtectionStatus - Backup status of this backup item. + ProtectionStatus *string `json:"protectionStatus,omitempty"` + // ProtectionState - Backup state of this backup item. Possible values include: 'ProtectionStateInvalid', 'ProtectionStateIRPending', 'ProtectionStateProtected', 'ProtectionStateProtectionError', 'ProtectionStateProtectionStopped', 'ProtectionStateProtectionPaused' + ProtectionState ProtectionState `json:"protectionState,omitempty"` + // HealthStatus - Health status of protected item. Possible values include: 'HealthStatusPassed', 'HealthStatusActionRequired', 'HealthStatusActionSuggested', 'HealthStatusInvalid' + HealthStatus HealthStatus `json:"healthStatus,omitempty"` + // HealthDetails - Health details on this backup item. + HealthDetails *[]AzureIaaSVMHealthDetails `json:"healthDetails,omitempty"` + // KpisHealths - Health details of different KPIs + KpisHealths map[string]*KPIResourceHealthDetails `json:"kpisHealths"` + // LastBackupStatus - Last backup operation status. + LastBackupStatus *string `json:"lastBackupStatus,omitempty"` + // LastBackupTime - Timestamp of the last backup operation on this backup item. + LastBackupTime *date.Time `json:"lastBackupTime,omitempty"` + // ProtectedItemDataID - Data ID of the protected item. + ProtectedItemDataID *string `json:"protectedItemDataId,omitempty"` + // ExtendedInfo - Additional information for this backup item. + ExtendedInfo *AzureIaaSVMProtectedItemExtendedInfo `json:"extendedInfo,omitempty"` + ExtendedProperties *ExtendedProperties `json:"extendedProperties,omitempty"` + // BackupManagementType - Type of backup management for the backed up item. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // WorkloadType - Type of workload this item represents. Possible values include: 'DataSourceTypeInvalid', 'DataSourceTypeVM', 'DataSourceTypeFileFolder', 'DataSourceTypeAzureSQLDb', 'DataSourceTypeSQLDB', 'DataSourceTypeExchange', 'DataSourceTypeSharepoint', 'DataSourceTypeVMwareVM', 'DataSourceTypeSystemState', 'DataSourceTypeClient', 'DataSourceTypeGenericDataSource', 'DataSourceTypeSQLDataBase', 'DataSourceTypeAzureFileShare', 'DataSourceTypeSAPHanaDatabase', 'DataSourceTypeSAPAseDatabase' + WorkloadType DataSourceType `json:"workloadType,omitempty"` + // ContainerName - Unique name of container + ContainerName *string `json:"containerName,omitempty"` + // SourceResourceID - ARM ID of the resource to be backed up. + SourceResourceID *string `json:"sourceResourceId,omitempty"` + // PolicyID - ID of the backup policy with which this item is backed up. + PolicyID *string `json:"policyId,omitempty"` + // LastRecoveryPoint - Timestamp when the last (latest) backup copy was created for this backup item. + LastRecoveryPoint *date.Time `json:"lastRecoveryPoint,omitempty"` + // BackupSetName - Name of the backup set the backup item belongs to + BackupSetName *string `json:"backupSetName,omitempty"` + // CreateMode - Create mode to indicate recovery of existing soft deleted data source or creation of new data source. Possible values include: 'CreateModeInvalid', 'CreateModeDefault', 'CreateModeRecover' + CreateMode CreateMode `json:"createMode,omitempty"` + // DeferredDeleteTimeInUTC - Time for deferred deletion in UTC + DeferredDeleteTimeInUTC *date.Time `json:"deferredDeleteTimeInUTC,omitempty"` + // IsScheduledForDeferredDelete - Flag to identify whether the DS is scheduled for deferred delete + IsScheduledForDeferredDelete *bool `json:"isScheduledForDeferredDelete,omitempty"` + // DeferredDeleteTimeRemaining - Time remaining before the DS marked for deferred delete is permanently deleted + DeferredDeleteTimeRemaining *string `json:"deferredDeleteTimeRemaining,omitempty"` + // IsDeferredDeleteScheduleUpcoming - Flag to identify whether the deferred deleted DS is to be purged soon + IsDeferredDeleteScheduleUpcoming *bool `json:"isDeferredDeleteScheduleUpcoming,omitempty"` + // IsRehydrate - Flag to identify that deferred deleted DS is to be moved into Pause state + IsRehydrate *bool `json:"isRehydrate,omitempty"` + // ProtectedItemType - Possible values include: 'ProtectedItemTypeProtectedItem', 'ProtectedItemTypeAzureFileShareProtectedItem', 'ProtectedItemTypeMicrosoftClassicComputevirtualMachines', 'ProtectedItemTypeMicrosoftComputevirtualMachines', 'ProtectedItemTypeAzureIaaSVMProtectedItem', 'ProtectedItemTypeMicrosoftSqlserversdatabases', 'ProtectedItemTypeAzureVMWorkloadProtectedItem', 'ProtectedItemTypeAzureVMWorkloadSAPAseDatabase', 'ProtectedItemTypeAzureVMWorkloadSAPHanaDatabase', 'ProtectedItemTypeAzureVMWorkloadSQLDatabase', 'ProtectedItemTypeDPMProtectedItem', 'ProtectedItemTypeGenericProtectedItem', 'ProtectedItemTypeMabFileFolderProtectedItem' + ProtectedItemType ProtectedItemType `json:"protectedItemType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureIaaSComputeVMProtectedItem. +func (aiscvpi AzureIaaSComputeVMProtectedItem) MarshalJSON() ([]byte, error) { + aiscvpi.ProtectedItemType = ProtectedItemTypeMicrosoftComputevirtualMachines + objectMap := make(map[string]interface{}) + if aiscvpi.FriendlyName != nil { + objectMap["friendlyName"] = aiscvpi.FriendlyName + } + if aiscvpi.VirtualMachineID != nil { + objectMap["virtualMachineId"] = aiscvpi.VirtualMachineID + } + if aiscvpi.ProtectionStatus != nil { + objectMap["protectionStatus"] = aiscvpi.ProtectionStatus + } + if aiscvpi.ProtectionState != "" { + objectMap["protectionState"] = aiscvpi.ProtectionState + } + if aiscvpi.HealthStatus != "" { + objectMap["healthStatus"] = aiscvpi.HealthStatus + } + if aiscvpi.HealthDetails != nil { + objectMap["healthDetails"] = aiscvpi.HealthDetails + } + if aiscvpi.KpisHealths != nil { + objectMap["kpisHealths"] = aiscvpi.KpisHealths + } + if aiscvpi.LastBackupStatus != nil { + objectMap["lastBackupStatus"] = aiscvpi.LastBackupStatus + } + if aiscvpi.LastBackupTime != nil { + objectMap["lastBackupTime"] = aiscvpi.LastBackupTime + } + if aiscvpi.ProtectedItemDataID != nil { + objectMap["protectedItemDataId"] = aiscvpi.ProtectedItemDataID + } + if aiscvpi.ExtendedInfo != nil { + objectMap["extendedInfo"] = aiscvpi.ExtendedInfo + } + if aiscvpi.ExtendedProperties != nil { + objectMap["extendedProperties"] = aiscvpi.ExtendedProperties + } + if aiscvpi.BackupManagementType != "" { + objectMap["backupManagementType"] = aiscvpi.BackupManagementType + } + if aiscvpi.WorkloadType != "" { + objectMap["workloadType"] = aiscvpi.WorkloadType + } + if aiscvpi.ContainerName != nil { + objectMap["containerName"] = aiscvpi.ContainerName + } + if aiscvpi.SourceResourceID != nil { + objectMap["sourceResourceId"] = aiscvpi.SourceResourceID + } + if aiscvpi.PolicyID != nil { + objectMap["policyId"] = aiscvpi.PolicyID + } + if aiscvpi.LastRecoveryPoint != nil { + objectMap["lastRecoveryPoint"] = aiscvpi.LastRecoveryPoint + } + if aiscvpi.BackupSetName != nil { + objectMap["backupSetName"] = aiscvpi.BackupSetName + } + if aiscvpi.CreateMode != "" { + objectMap["createMode"] = aiscvpi.CreateMode + } + if aiscvpi.DeferredDeleteTimeInUTC != nil { + objectMap["deferredDeleteTimeInUTC"] = aiscvpi.DeferredDeleteTimeInUTC + } + if aiscvpi.IsScheduledForDeferredDelete != nil { + objectMap["isScheduledForDeferredDelete"] = aiscvpi.IsScheduledForDeferredDelete + } + if aiscvpi.DeferredDeleteTimeRemaining != nil { + objectMap["deferredDeleteTimeRemaining"] = aiscvpi.DeferredDeleteTimeRemaining + } + if aiscvpi.IsDeferredDeleteScheduleUpcoming != nil { + objectMap["isDeferredDeleteScheduleUpcoming"] = aiscvpi.IsDeferredDeleteScheduleUpcoming + } + if aiscvpi.IsRehydrate != nil { + objectMap["isRehydrate"] = aiscvpi.IsRehydrate + } + if aiscvpi.ProtectedItemType != "" { + objectMap["protectedItemType"] = aiscvpi.ProtectedItemType + } + return json.Marshal(objectMap) +} + +// AsAzureFileshareProtectedItem is the BasicProtectedItem implementation for AzureIaaSComputeVMProtectedItem. +func (aiscvpi AzureIaaSComputeVMProtectedItem) AsAzureFileshareProtectedItem() (*AzureFileshareProtectedItem, bool) { + return nil, false +} + +// AsAzureIaaSClassicComputeVMProtectedItem is the BasicProtectedItem implementation for AzureIaaSComputeVMProtectedItem. +func (aiscvpi AzureIaaSComputeVMProtectedItem) AsAzureIaaSClassicComputeVMProtectedItem() (*AzureIaaSClassicComputeVMProtectedItem, bool) { + return nil, false +} + +// AsAzureIaaSComputeVMProtectedItem is the BasicProtectedItem implementation for AzureIaaSComputeVMProtectedItem. +func (aiscvpi AzureIaaSComputeVMProtectedItem) AsAzureIaaSComputeVMProtectedItem() (*AzureIaaSComputeVMProtectedItem, bool) { + return &aiscvpi, true +} + +// AsAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for AzureIaaSComputeVMProtectedItem. +func (aiscvpi AzureIaaSComputeVMProtectedItem) AsAzureIaaSVMProtectedItem() (*AzureIaaSVMProtectedItem, bool) { + return nil, false +} + +// AsBasicAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for AzureIaaSComputeVMProtectedItem. +func (aiscvpi AzureIaaSComputeVMProtectedItem) AsBasicAzureIaaSVMProtectedItem() (BasicAzureIaaSVMProtectedItem, bool) { + return &aiscvpi, true +} + +// AsAzureSQLProtectedItem is the BasicProtectedItem implementation for AzureIaaSComputeVMProtectedItem. +func (aiscvpi AzureIaaSComputeVMProtectedItem) AsAzureSQLProtectedItem() (*AzureSQLProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadProtectedItem is the BasicProtectedItem implementation for AzureIaaSComputeVMProtectedItem. +func (aiscvpi AzureIaaSComputeVMProtectedItem) AsAzureVMWorkloadProtectedItem() (*AzureVMWorkloadProtectedItem, bool) { + return nil, false +} + +// AsBasicAzureVMWorkloadProtectedItem is the BasicProtectedItem implementation for AzureIaaSComputeVMProtectedItem. +func (aiscvpi AzureIaaSComputeVMProtectedItem) AsBasicAzureVMWorkloadProtectedItem() (BasicAzureVMWorkloadProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPAseDatabaseProtectedItem is the BasicProtectedItem implementation for AzureIaaSComputeVMProtectedItem. +func (aiscvpi AzureIaaSComputeVMProtectedItem) AsAzureVMWorkloadSAPAseDatabaseProtectedItem() (*AzureVMWorkloadSAPAseDatabaseProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaDatabaseProtectedItem is the BasicProtectedItem implementation for AzureIaaSComputeVMProtectedItem. +func (aiscvpi AzureIaaSComputeVMProtectedItem) AsAzureVMWorkloadSAPHanaDatabaseProtectedItem() (*AzureVMWorkloadSAPHanaDatabaseProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLDatabaseProtectedItem is the BasicProtectedItem implementation for AzureIaaSComputeVMProtectedItem. +func (aiscvpi AzureIaaSComputeVMProtectedItem) AsAzureVMWorkloadSQLDatabaseProtectedItem() (*AzureVMWorkloadSQLDatabaseProtectedItem, bool) { + return nil, false +} + +// AsDPMProtectedItem is the BasicProtectedItem implementation for AzureIaaSComputeVMProtectedItem. +func (aiscvpi AzureIaaSComputeVMProtectedItem) AsDPMProtectedItem() (*DPMProtectedItem, bool) { + return nil, false +} + +// AsGenericProtectedItem is the BasicProtectedItem implementation for AzureIaaSComputeVMProtectedItem. +func (aiscvpi AzureIaaSComputeVMProtectedItem) AsGenericProtectedItem() (*GenericProtectedItem, bool) { + return nil, false +} + +// AsMabFileFolderProtectedItem is the BasicProtectedItem implementation for AzureIaaSComputeVMProtectedItem. +func (aiscvpi AzureIaaSComputeVMProtectedItem) AsMabFileFolderProtectedItem() (*MabFileFolderProtectedItem, bool) { + return nil, false +} + +// AsProtectedItem is the BasicProtectedItem implementation for AzureIaaSComputeVMProtectedItem. +func (aiscvpi AzureIaaSComputeVMProtectedItem) AsProtectedItem() (*ProtectedItem, bool) { + return nil, false +} + +// AsBasicProtectedItem is the BasicProtectedItem implementation for AzureIaaSComputeVMProtectedItem. +func (aiscvpi AzureIaaSComputeVMProtectedItem) AsBasicProtectedItem() (BasicProtectedItem, bool) { + return &aiscvpi, true +} + +// AzureIaaSVMErrorInfo azure IaaS VM workload-specific error information. +type AzureIaaSVMErrorInfo struct { + // ErrorCode - READ-ONLY; Error code. + ErrorCode *int32 `json:"errorCode,omitempty"` + // ErrorTitle - READ-ONLY; Title: Typically, the entity that the error pertains to. + ErrorTitle *string `json:"errorTitle,omitempty"` + // ErrorString - READ-ONLY; Localized error string. + ErrorString *string `json:"errorString,omitempty"` + // Recommendations - READ-ONLY; List of localized recommendations for above error code. + Recommendations *[]string `json:"recommendations,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureIaaSVMErrorInfo. +func (aisei AzureIaaSVMErrorInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// AzureIaaSVMHealthDetails azure IaaS VM workload-specific Health Details. +type AzureIaaSVMHealthDetails struct { + // Code - READ-ONLY; Health Code + Code *int32 `json:"code,omitempty"` + // Title - READ-ONLY; Health Title + Title *string `json:"title,omitempty"` + // Message - READ-ONLY; Health Message + Message *string `json:"message,omitempty"` + // Recommendations - READ-ONLY; Health Recommended Actions + Recommendations *[]string `json:"recommendations,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureIaaSVMHealthDetails. +func (aishd AzureIaaSVMHealthDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// AzureIaaSVMJob azure IaaS VM workload-specific job object. +type AzureIaaSVMJob struct { + // Duration - Time elapsed during the execution of this job. + Duration *string `json:"duration,omitempty"` + // ActionsInfo - Gets or sets the state/actions applicable on this job like cancel/retry. + ActionsInfo *[]JobSupportedAction `json:"actionsInfo,omitempty"` + // ErrorDetails - Error details on execution of this job. + ErrorDetails *[]AzureIaaSVMErrorInfo `json:"errorDetails,omitempty"` + // VirtualMachineVersion - Specifies whether the backup item is a Classic or an Azure Resource Manager VM. + VirtualMachineVersion *string `json:"virtualMachineVersion,omitempty"` + // ExtendedInfo - Additional information for this job. + ExtendedInfo *AzureIaaSVMJobExtendedInfo `json:"extendedInfo,omitempty"` + // EntityFriendlyName - Friendly name of the entity on which the current job is executing. + EntityFriendlyName *string `json:"entityFriendlyName,omitempty"` + // BackupManagementType - Backup management type to execute the current job. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // Operation - The operation name. + Operation *string `json:"operation,omitempty"` + // Status - Job status. + Status *string `json:"status,omitempty"` + // StartTime - The start time. + StartTime *date.Time `json:"startTime,omitempty"` + // EndTime - The end time. + EndTime *date.Time `json:"endTime,omitempty"` + // ActivityID - ActivityId of job. + ActivityID *string `json:"activityId,omitempty"` + // JobType - Possible values include: 'JobTypeJob', 'JobTypeAzureIaaSVMJob', 'JobTypeAzureStorageJob', 'JobTypeAzureWorkloadJob', 'JobTypeDpmJob', 'JobTypeMabJob', 'JobTypeVaultJob' + JobType JobType `json:"jobType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureIaaSVMJob. +func (aisj AzureIaaSVMJob) MarshalJSON() ([]byte, error) { + aisj.JobType = JobTypeAzureIaaSVMJob + objectMap := make(map[string]interface{}) + if aisj.Duration != nil { + objectMap["duration"] = aisj.Duration + } + if aisj.ActionsInfo != nil { + objectMap["actionsInfo"] = aisj.ActionsInfo + } + if aisj.ErrorDetails != nil { + objectMap["errorDetails"] = aisj.ErrorDetails + } + if aisj.VirtualMachineVersion != nil { + objectMap["virtualMachineVersion"] = aisj.VirtualMachineVersion + } + if aisj.ExtendedInfo != nil { + objectMap["extendedInfo"] = aisj.ExtendedInfo + } + if aisj.EntityFriendlyName != nil { + objectMap["entityFriendlyName"] = aisj.EntityFriendlyName + } + if aisj.BackupManagementType != "" { + objectMap["backupManagementType"] = aisj.BackupManagementType + } + if aisj.Operation != nil { + objectMap["operation"] = aisj.Operation + } + if aisj.Status != nil { + objectMap["status"] = aisj.Status + } + if aisj.StartTime != nil { + objectMap["startTime"] = aisj.StartTime + } + if aisj.EndTime != nil { + objectMap["endTime"] = aisj.EndTime + } + if aisj.ActivityID != nil { + objectMap["activityId"] = aisj.ActivityID + } + if aisj.JobType != "" { + objectMap["jobType"] = aisj.JobType + } + return json.Marshal(objectMap) +} + +// AsAzureIaaSVMJob is the BasicJob implementation for AzureIaaSVMJob. +func (aisj AzureIaaSVMJob) AsAzureIaaSVMJob() (*AzureIaaSVMJob, bool) { + return &aisj, true +} + +// AsAzureStorageJob is the BasicJob implementation for AzureIaaSVMJob. +func (aisj AzureIaaSVMJob) AsAzureStorageJob() (*AzureStorageJob, bool) { + return nil, false +} + +// AsAzureWorkloadJob is the BasicJob implementation for AzureIaaSVMJob. +func (aisj AzureIaaSVMJob) AsAzureWorkloadJob() (*AzureWorkloadJob, bool) { + return nil, false +} + +// AsDpmJob is the BasicJob implementation for AzureIaaSVMJob. +func (aisj AzureIaaSVMJob) AsDpmJob() (*DpmJob, bool) { + return nil, false +} + +// AsMabJob is the BasicJob implementation for AzureIaaSVMJob. +func (aisj AzureIaaSVMJob) AsMabJob() (*MabJob, bool) { + return nil, false +} + +// AsVaultJob is the BasicJob implementation for AzureIaaSVMJob. +func (aisj AzureIaaSVMJob) AsVaultJob() (*VaultJob, bool) { + return nil, false +} + +// AsJob is the BasicJob implementation for AzureIaaSVMJob. +func (aisj AzureIaaSVMJob) AsJob() (*Job, bool) { + return nil, false +} + +// AsBasicJob is the BasicJob implementation for AzureIaaSVMJob. +func (aisj AzureIaaSVMJob) AsBasicJob() (BasicJob, bool) { + return &aisj, true +} + +// AzureIaaSVMJobExtendedInfo azure IaaS VM workload-specific additional information for job. +type AzureIaaSVMJobExtendedInfo struct { + // TasksList - List of tasks associated with this job. + TasksList *[]AzureIaaSVMJobTaskDetails `json:"tasksList,omitempty"` + // PropertyBag - Job properties. + PropertyBag map[string]*string `json:"propertyBag"` + // InternalPropertyBag - Job internal properties. + InternalPropertyBag map[string]*string `json:"internalPropertyBag"` + // ProgressPercentage - Indicates progress of the job. Null if it has not started or completed. + ProgressPercentage *float64 `json:"progressPercentage,omitempty"` + // EstimatedRemainingDuration - Time remaining for execution of this job. + EstimatedRemainingDuration *string `json:"estimatedRemainingDuration,omitempty"` + // DynamicErrorMessage - Non localized error message on job execution. + DynamicErrorMessage *string `json:"dynamicErrorMessage,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureIaaSVMJobExtendedInfo. +func (aisjei AzureIaaSVMJobExtendedInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if aisjei.TasksList != nil { + objectMap["tasksList"] = aisjei.TasksList + } + if aisjei.PropertyBag != nil { + objectMap["propertyBag"] = aisjei.PropertyBag + } + if aisjei.InternalPropertyBag != nil { + objectMap["internalPropertyBag"] = aisjei.InternalPropertyBag + } + if aisjei.ProgressPercentage != nil { + objectMap["progressPercentage"] = aisjei.ProgressPercentage + } + if aisjei.EstimatedRemainingDuration != nil { + objectMap["estimatedRemainingDuration"] = aisjei.EstimatedRemainingDuration + } + if aisjei.DynamicErrorMessage != nil { + objectMap["dynamicErrorMessage"] = aisjei.DynamicErrorMessage + } + return json.Marshal(objectMap) +} + +// AzureIaaSVMJobTaskDetails azure IaaS VM workload-specific job task details. +type AzureIaaSVMJobTaskDetails struct { + // TaskID - The task display name. + TaskID *string `json:"taskId,omitempty"` + // StartTime - The start time. + StartTime *date.Time `json:"startTime,omitempty"` + // EndTime - The end time. + EndTime *date.Time `json:"endTime,omitempty"` + // InstanceID - The instanceId. + InstanceID *string `json:"instanceId,omitempty"` + // Duration - Time elapsed for task. + Duration *string `json:"duration,omitempty"` + // Status - The status. + Status *string `json:"status,omitempty"` + // ProgressPercentage - Progress of the task. + ProgressPercentage *float64 `json:"progressPercentage,omitempty"` + // TaskExecutionDetails - Details about execution of the task. + // eg: number of bytes transferred etc + TaskExecutionDetails *string `json:"taskExecutionDetails,omitempty"` +} + +// BasicAzureIaaSVMProtectedItem iaaS VM workload-specific backup item. +type BasicAzureIaaSVMProtectedItem interface { + AsAzureIaaSClassicComputeVMProtectedItem() (*AzureIaaSClassicComputeVMProtectedItem, bool) + AsAzureIaaSComputeVMProtectedItem() (*AzureIaaSComputeVMProtectedItem, bool) + AsAzureIaaSVMProtectedItem() (*AzureIaaSVMProtectedItem, bool) +} + +// AzureIaaSVMProtectedItem iaaS VM workload-specific backup item. +type AzureIaaSVMProtectedItem struct { + // FriendlyName - Friendly name of the VM represented by this backup item. + FriendlyName *string `json:"friendlyName,omitempty"` + // VirtualMachineID - Fully qualified ARM ID of the virtual machine represented by this item. + VirtualMachineID *string `json:"virtualMachineId,omitempty"` + // ProtectionStatus - Backup status of this backup item. + ProtectionStatus *string `json:"protectionStatus,omitempty"` + // ProtectionState - Backup state of this backup item. Possible values include: 'ProtectionStateInvalid', 'ProtectionStateIRPending', 'ProtectionStateProtected', 'ProtectionStateProtectionError', 'ProtectionStateProtectionStopped', 'ProtectionStateProtectionPaused' + ProtectionState ProtectionState `json:"protectionState,omitempty"` + // HealthStatus - Health status of protected item. Possible values include: 'HealthStatusPassed', 'HealthStatusActionRequired', 'HealthStatusActionSuggested', 'HealthStatusInvalid' + HealthStatus HealthStatus `json:"healthStatus,omitempty"` + // HealthDetails - Health details on this backup item. + HealthDetails *[]AzureIaaSVMHealthDetails `json:"healthDetails,omitempty"` + // KpisHealths - Health details of different KPIs + KpisHealths map[string]*KPIResourceHealthDetails `json:"kpisHealths"` + // LastBackupStatus - Last backup operation status. + LastBackupStatus *string `json:"lastBackupStatus,omitempty"` + // LastBackupTime - Timestamp of the last backup operation on this backup item. + LastBackupTime *date.Time `json:"lastBackupTime,omitempty"` + // ProtectedItemDataID - Data ID of the protected item. + ProtectedItemDataID *string `json:"protectedItemDataId,omitempty"` + // ExtendedInfo - Additional information for this backup item. + ExtendedInfo *AzureIaaSVMProtectedItemExtendedInfo `json:"extendedInfo,omitempty"` + ExtendedProperties *ExtendedProperties `json:"extendedProperties,omitempty"` + // BackupManagementType - Type of backup management for the backed up item. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // WorkloadType - Type of workload this item represents. Possible values include: 'DataSourceTypeInvalid', 'DataSourceTypeVM', 'DataSourceTypeFileFolder', 'DataSourceTypeAzureSQLDb', 'DataSourceTypeSQLDB', 'DataSourceTypeExchange', 'DataSourceTypeSharepoint', 'DataSourceTypeVMwareVM', 'DataSourceTypeSystemState', 'DataSourceTypeClient', 'DataSourceTypeGenericDataSource', 'DataSourceTypeSQLDataBase', 'DataSourceTypeAzureFileShare', 'DataSourceTypeSAPHanaDatabase', 'DataSourceTypeSAPAseDatabase' + WorkloadType DataSourceType `json:"workloadType,omitempty"` + // ContainerName - Unique name of container + ContainerName *string `json:"containerName,omitempty"` + // SourceResourceID - ARM ID of the resource to be backed up. + SourceResourceID *string `json:"sourceResourceId,omitempty"` + // PolicyID - ID of the backup policy with which this item is backed up. + PolicyID *string `json:"policyId,omitempty"` + // LastRecoveryPoint - Timestamp when the last (latest) backup copy was created for this backup item. + LastRecoveryPoint *date.Time `json:"lastRecoveryPoint,omitempty"` + // BackupSetName - Name of the backup set the backup item belongs to + BackupSetName *string `json:"backupSetName,omitempty"` + // CreateMode - Create mode to indicate recovery of existing soft deleted data source or creation of new data source. Possible values include: 'CreateModeInvalid', 'CreateModeDefault', 'CreateModeRecover' + CreateMode CreateMode `json:"createMode,omitempty"` + // DeferredDeleteTimeInUTC - Time for deferred deletion in UTC + DeferredDeleteTimeInUTC *date.Time `json:"deferredDeleteTimeInUTC,omitempty"` + // IsScheduledForDeferredDelete - Flag to identify whether the DS is scheduled for deferred delete + IsScheduledForDeferredDelete *bool `json:"isScheduledForDeferredDelete,omitempty"` + // DeferredDeleteTimeRemaining - Time remaining before the DS marked for deferred delete is permanently deleted + DeferredDeleteTimeRemaining *string `json:"deferredDeleteTimeRemaining,omitempty"` + // IsDeferredDeleteScheduleUpcoming - Flag to identify whether the deferred deleted DS is to be purged soon + IsDeferredDeleteScheduleUpcoming *bool `json:"isDeferredDeleteScheduleUpcoming,omitempty"` + // IsRehydrate - Flag to identify that deferred deleted DS is to be moved into Pause state + IsRehydrate *bool `json:"isRehydrate,omitempty"` + // ProtectedItemType - Possible values include: 'ProtectedItemTypeProtectedItem', 'ProtectedItemTypeAzureFileShareProtectedItem', 'ProtectedItemTypeMicrosoftClassicComputevirtualMachines', 'ProtectedItemTypeMicrosoftComputevirtualMachines', 'ProtectedItemTypeAzureIaaSVMProtectedItem', 'ProtectedItemTypeMicrosoftSqlserversdatabases', 'ProtectedItemTypeAzureVMWorkloadProtectedItem', 'ProtectedItemTypeAzureVMWorkloadSAPAseDatabase', 'ProtectedItemTypeAzureVMWorkloadSAPHanaDatabase', 'ProtectedItemTypeAzureVMWorkloadSQLDatabase', 'ProtectedItemTypeDPMProtectedItem', 'ProtectedItemTypeGenericProtectedItem', 'ProtectedItemTypeMabFileFolderProtectedItem' + ProtectedItemType ProtectedItemType `json:"protectedItemType,omitempty"` +} + +func unmarshalBasicAzureIaaSVMProtectedItem(body []byte) (BasicAzureIaaSVMProtectedItem, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["protectedItemType"] { + case string(ProtectedItemTypeMicrosoftClassicComputevirtualMachines): + var aisccvpi AzureIaaSClassicComputeVMProtectedItem + err := json.Unmarshal(body, &aisccvpi) + return aisccvpi, err + case string(ProtectedItemTypeMicrosoftComputevirtualMachines): + var aiscvpi AzureIaaSComputeVMProtectedItem + err := json.Unmarshal(body, &aiscvpi) + return aiscvpi, err + default: + var aispi AzureIaaSVMProtectedItem + err := json.Unmarshal(body, &aispi) + return aispi, err + } +} +func unmarshalBasicAzureIaaSVMProtectedItemArray(body []byte) ([]BasicAzureIaaSVMProtectedItem, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + aispiArray := make([]BasicAzureIaaSVMProtectedItem, len(rawMessages)) + + for index, rawMessage := range rawMessages { + aispi, err := unmarshalBasicAzureIaaSVMProtectedItem(*rawMessage) + if err != nil { + return nil, err + } + aispiArray[index] = aispi + } + return aispiArray, nil +} + +// MarshalJSON is the custom marshaler for AzureIaaSVMProtectedItem. +func (aispi AzureIaaSVMProtectedItem) MarshalJSON() ([]byte, error) { + aispi.ProtectedItemType = ProtectedItemTypeAzureIaaSVMProtectedItem + objectMap := make(map[string]interface{}) + if aispi.FriendlyName != nil { + objectMap["friendlyName"] = aispi.FriendlyName + } + if aispi.VirtualMachineID != nil { + objectMap["virtualMachineId"] = aispi.VirtualMachineID + } + if aispi.ProtectionStatus != nil { + objectMap["protectionStatus"] = aispi.ProtectionStatus + } + if aispi.ProtectionState != "" { + objectMap["protectionState"] = aispi.ProtectionState + } + if aispi.HealthStatus != "" { + objectMap["healthStatus"] = aispi.HealthStatus + } + if aispi.HealthDetails != nil { + objectMap["healthDetails"] = aispi.HealthDetails + } + if aispi.KpisHealths != nil { + objectMap["kpisHealths"] = aispi.KpisHealths + } + if aispi.LastBackupStatus != nil { + objectMap["lastBackupStatus"] = aispi.LastBackupStatus + } + if aispi.LastBackupTime != nil { + objectMap["lastBackupTime"] = aispi.LastBackupTime + } + if aispi.ProtectedItemDataID != nil { + objectMap["protectedItemDataId"] = aispi.ProtectedItemDataID + } + if aispi.ExtendedInfo != nil { + objectMap["extendedInfo"] = aispi.ExtendedInfo + } + if aispi.ExtendedProperties != nil { + objectMap["extendedProperties"] = aispi.ExtendedProperties + } + if aispi.BackupManagementType != "" { + objectMap["backupManagementType"] = aispi.BackupManagementType + } + if aispi.WorkloadType != "" { + objectMap["workloadType"] = aispi.WorkloadType + } + if aispi.ContainerName != nil { + objectMap["containerName"] = aispi.ContainerName + } + if aispi.SourceResourceID != nil { + objectMap["sourceResourceId"] = aispi.SourceResourceID + } + if aispi.PolicyID != nil { + objectMap["policyId"] = aispi.PolicyID + } + if aispi.LastRecoveryPoint != nil { + objectMap["lastRecoveryPoint"] = aispi.LastRecoveryPoint + } + if aispi.BackupSetName != nil { + objectMap["backupSetName"] = aispi.BackupSetName + } + if aispi.CreateMode != "" { + objectMap["createMode"] = aispi.CreateMode + } + if aispi.DeferredDeleteTimeInUTC != nil { + objectMap["deferredDeleteTimeInUTC"] = aispi.DeferredDeleteTimeInUTC + } + if aispi.IsScheduledForDeferredDelete != nil { + objectMap["isScheduledForDeferredDelete"] = aispi.IsScheduledForDeferredDelete + } + if aispi.DeferredDeleteTimeRemaining != nil { + objectMap["deferredDeleteTimeRemaining"] = aispi.DeferredDeleteTimeRemaining + } + if aispi.IsDeferredDeleteScheduleUpcoming != nil { + objectMap["isDeferredDeleteScheduleUpcoming"] = aispi.IsDeferredDeleteScheduleUpcoming + } + if aispi.IsRehydrate != nil { + objectMap["isRehydrate"] = aispi.IsRehydrate + } + if aispi.ProtectedItemType != "" { + objectMap["protectedItemType"] = aispi.ProtectedItemType + } + return json.Marshal(objectMap) +} + +// AsAzureFileshareProtectedItem is the BasicProtectedItem implementation for AzureIaaSVMProtectedItem. +func (aispi AzureIaaSVMProtectedItem) AsAzureFileshareProtectedItem() (*AzureFileshareProtectedItem, bool) { + return nil, false +} + +// AsAzureIaaSClassicComputeVMProtectedItem is the BasicProtectedItem implementation for AzureIaaSVMProtectedItem. +func (aispi AzureIaaSVMProtectedItem) AsAzureIaaSClassicComputeVMProtectedItem() (*AzureIaaSClassicComputeVMProtectedItem, bool) { + return nil, false +} + +// AsAzureIaaSComputeVMProtectedItem is the BasicProtectedItem implementation for AzureIaaSVMProtectedItem. +func (aispi AzureIaaSVMProtectedItem) AsAzureIaaSComputeVMProtectedItem() (*AzureIaaSComputeVMProtectedItem, bool) { + return nil, false +} + +// AsAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for AzureIaaSVMProtectedItem. +func (aispi AzureIaaSVMProtectedItem) AsAzureIaaSVMProtectedItem() (*AzureIaaSVMProtectedItem, bool) { + return &aispi, true +} + +// AsBasicAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for AzureIaaSVMProtectedItem. +func (aispi AzureIaaSVMProtectedItem) AsBasicAzureIaaSVMProtectedItem() (BasicAzureIaaSVMProtectedItem, bool) { + return &aispi, true +} + +// AsAzureSQLProtectedItem is the BasicProtectedItem implementation for AzureIaaSVMProtectedItem. +func (aispi AzureIaaSVMProtectedItem) AsAzureSQLProtectedItem() (*AzureSQLProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadProtectedItem is the BasicProtectedItem implementation for AzureIaaSVMProtectedItem. +func (aispi AzureIaaSVMProtectedItem) AsAzureVMWorkloadProtectedItem() (*AzureVMWorkloadProtectedItem, bool) { + return nil, false +} + +// AsBasicAzureVMWorkloadProtectedItem is the BasicProtectedItem implementation for AzureIaaSVMProtectedItem. +func (aispi AzureIaaSVMProtectedItem) AsBasicAzureVMWorkloadProtectedItem() (BasicAzureVMWorkloadProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPAseDatabaseProtectedItem is the BasicProtectedItem implementation for AzureIaaSVMProtectedItem. +func (aispi AzureIaaSVMProtectedItem) AsAzureVMWorkloadSAPAseDatabaseProtectedItem() (*AzureVMWorkloadSAPAseDatabaseProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaDatabaseProtectedItem is the BasicProtectedItem implementation for AzureIaaSVMProtectedItem. +func (aispi AzureIaaSVMProtectedItem) AsAzureVMWorkloadSAPHanaDatabaseProtectedItem() (*AzureVMWorkloadSAPHanaDatabaseProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLDatabaseProtectedItem is the BasicProtectedItem implementation for AzureIaaSVMProtectedItem. +func (aispi AzureIaaSVMProtectedItem) AsAzureVMWorkloadSQLDatabaseProtectedItem() (*AzureVMWorkloadSQLDatabaseProtectedItem, bool) { + return nil, false +} + +// AsDPMProtectedItem is the BasicProtectedItem implementation for AzureIaaSVMProtectedItem. +func (aispi AzureIaaSVMProtectedItem) AsDPMProtectedItem() (*DPMProtectedItem, bool) { + return nil, false +} + +// AsGenericProtectedItem is the BasicProtectedItem implementation for AzureIaaSVMProtectedItem. +func (aispi AzureIaaSVMProtectedItem) AsGenericProtectedItem() (*GenericProtectedItem, bool) { + return nil, false +} + +// AsMabFileFolderProtectedItem is the BasicProtectedItem implementation for AzureIaaSVMProtectedItem. +func (aispi AzureIaaSVMProtectedItem) AsMabFileFolderProtectedItem() (*MabFileFolderProtectedItem, bool) { + return nil, false +} + +// AsProtectedItem is the BasicProtectedItem implementation for AzureIaaSVMProtectedItem. +func (aispi AzureIaaSVMProtectedItem) AsProtectedItem() (*ProtectedItem, bool) { + return nil, false +} + +// AsBasicProtectedItem is the BasicProtectedItem implementation for AzureIaaSVMProtectedItem. +func (aispi AzureIaaSVMProtectedItem) AsBasicProtectedItem() (BasicProtectedItem, bool) { + return &aispi, true +} + +// AzureIaaSVMProtectedItemExtendedInfo additional information on Azure IaaS VM specific backup item. +type AzureIaaSVMProtectedItemExtendedInfo struct { + // OldestRecoveryPoint - The oldest backup copy available for this backup item. + OldestRecoveryPoint *date.Time `json:"oldestRecoveryPoint,omitempty"` + // RecoveryPointCount - Number of backup copies available for this backup item. + RecoveryPointCount *int32 `json:"recoveryPointCount,omitempty"` + // PolicyInconsistent - Specifies if backup policy associated with the backup item is inconsistent. + PolicyInconsistent *bool `json:"policyInconsistent,omitempty"` +} + +// AzureIaaSVMProtectionPolicy iaaS VM workload-specific backup policy. +type AzureIaaSVMProtectionPolicy struct { + InstantRPDetails *InstantRPAdditionalDetails `json:"instantRPDetails,omitempty"` + // SchedulePolicy - Backup schedule specified as part of backup policy. + SchedulePolicy BasicSchedulePolicy `json:"schedulePolicy,omitempty"` + // RetentionPolicy - Retention policy with the details on backup copy retention ranges. + RetentionPolicy BasicRetentionPolicy `json:"retentionPolicy,omitempty"` + // InstantRpRetentionRangeInDays - Instant RP retention policy range in days + InstantRpRetentionRangeInDays *int32 `json:"instantRpRetentionRangeInDays,omitempty"` + // TimeZone - TimeZone optional input as string. For example: TimeZone = "Pacific Standard Time". + TimeZone *string `json:"timeZone,omitempty"` + // ProtectedItemsCount - Number of items associated with this policy. + ProtectedItemsCount *int32 `json:"protectedItemsCount,omitempty"` + // BackupManagementType - Possible values include: 'ManagementTypeBasicProtectionPolicyBackupManagementTypeProtectionPolicy', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureWorkload', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureStorage', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureIaasVM', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureSQL', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeGenericProtectionPolicy', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeMAB' + BackupManagementType ManagementTypeBasicProtectionPolicy `json:"backupManagementType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureIaaSVMProtectionPolicy. +func (aispp AzureIaaSVMProtectionPolicy) MarshalJSON() ([]byte, error) { + aispp.BackupManagementType = ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureIaasVM + objectMap := make(map[string]interface{}) + if aispp.InstantRPDetails != nil { + objectMap["instantRPDetails"] = aispp.InstantRPDetails + } + objectMap["schedulePolicy"] = aispp.SchedulePolicy + objectMap["retentionPolicy"] = aispp.RetentionPolicy + if aispp.InstantRpRetentionRangeInDays != nil { + objectMap["instantRpRetentionRangeInDays"] = aispp.InstantRpRetentionRangeInDays + } + if aispp.TimeZone != nil { + objectMap["timeZone"] = aispp.TimeZone + } + if aispp.ProtectedItemsCount != nil { + objectMap["protectedItemsCount"] = aispp.ProtectedItemsCount + } + if aispp.BackupManagementType != "" { + objectMap["backupManagementType"] = aispp.BackupManagementType + } + return json.Marshal(objectMap) +} + +// AsAzureVMWorkloadProtectionPolicy is the BasicProtectionPolicy implementation for AzureIaaSVMProtectionPolicy. +func (aispp AzureIaaSVMProtectionPolicy) AsAzureVMWorkloadProtectionPolicy() (*AzureVMWorkloadProtectionPolicy, bool) { + return nil, false +} + +// AsAzureFileShareProtectionPolicy is the BasicProtectionPolicy implementation for AzureIaaSVMProtectionPolicy. +func (aispp AzureIaaSVMProtectionPolicy) AsAzureFileShareProtectionPolicy() (*AzureFileShareProtectionPolicy, bool) { + return nil, false +} + +// AsAzureIaaSVMProtectionPolicy is the BasicProtectionPolicy implementation for AzureIaaSVMProtectionPolicy. +func (aispp AzureIaaSVMProtectionPolicy) AsAzureIaaSVMProtectionPolicy() (*AzureIaaSVMProtectionPolicy, bool) { + return &aispp, true +} + +// AsAzureSQLProtectionPolicy is the BasicProtectionPolicy implementation for AzureIaaSVMProtectionPolicy. +func (aispp AzureIaaSVMProtectionPolicy) AsAzureSQLProtectionPolicy() (*AzureSQLProtectionPolicy, bool) { + return nil, false +} + +// AsGenericProtectionPolicy is the BasicProtectionPolicy implementation for AzureIaaSVMProtectionPolicy. +func (aispp AzureIaaSVMProtectionPolicy) AsGenericProtectionPolicy() (*GenericProtectionPolicy, bool) { + return nil, false +} + +// AsMabProtectionPolicy is the BasicProtectionPolicy implementation for AzureIaaSVMProtectionPolicy. +func (aispp AzureIaaSVMProtectionPolicy) AsMabProtectionPolicy() (*MabProtectionPolicy, bool) { + return nil, false +} + +// AsProtectionPolicy is the BasicProtectionPolicy implementation for AzureIaaSVMProtectionPolicy. +func (aispp AzureIaaSVMProtectionPolicy) AsProtectionPolicy() (*ProtectionPolicy, bool) { + return nil, false +} + +// AsBasicProtectionPolicy is the BasicProtectionPolicy implementation for AzureIaaSVMProtectionPolicy. +func (aispp AzureIaaSVMProtectionPolicy) AsBasicProtectionPolicy() (BasicProtectionPolicy, bool) { + return &aispp, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureIaaSVMProtectionPolicy struct. +func (aispp *AzureIaaSVMProtectionPolicy) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "instantRPDetails": + if v != nil { + var instantRPDetails InstantRPAdditionalDetails + err = json.Unmarshal(*v, &instantRPDetails) + if err != nil { + return err + } + aispp.InstantRPDetails = &instantRPDetails + } + case "schedulePolicy": + if v != nil { + schedulePolicy, err := unmarshalBasicSchedulePolicy(*v) + if err != nil { + return err + } + aispp.SchedulePolicy = schedulePolicy + } + case "retentionPolicy": + if v != nil { + retentionPolicy, err := unmarshalBasicRetentionPolicy(*v) + if err != nil { + return err + } + aispp.RetentionPolicy = retentionPolicy + } + case "instantRpRetentionRangeInDays": + if v != nil { + var instantRpRetentionRangeInDays int32 + err = json.Unmarshal(*v, &instantRpRetentionRangeInDays) + if err != nil { + return err + } + aispp.InstantRpRetentionRangeInDays = &instantRpRetentionRangeInDays + } + case "timeZone": + if v != nil { + var timeZone string + err = json.Unmarshal(*v, &timeZone) + if err != nil { + return err + } + aispp.TimeZone = &timeZone + } + case "protectedItemsCount": + if v != nil { + var protectedItemsCount int32 + err = json.Unmarshal(*v, &protectedItemsCount) + if err != nil { + return err + } + aispp.ProtectedItemsCount = &protectedItemsCount + } + case "backupManagementType": + if v != nil { + var backupManagementType ManagementTypeBasicProtectionPolicy + err = json.Unmarshal(*v, &backupManagementType) + if err != nil { + return err + } + aispp.BackupManagementType = backupManagementType + } + } + } + + return nil +} + +// BasicAzureRecoveryServiceVaultProtectionIntent azure Recovery Services Vault specific protection intent item. +type BasicAzureRecoveryServiceVaultProtectionIntent interface { + AsAzureWorkloadAutoProtectionIntent() (*AzureWorkloadAutoProtectionIntent, bool) + AsBasicAzureWorkloadAutoProtectionIntent() (BasicAzureWorkloadAutoProtectionIntent, bool) + AsAzureWorkloadSQLAutoProtectionIntent() (*AzureWorkloadSQLAutoProtectionIntent, bool) + AsAzureRecoveryServiceVaultProtectionIntent() (*AzureRecoveryServiceVaultProtectionIntent, bool) +} + +// AzureRecoveryServiceVaultProtectionIntent azure Recovery Services Vault specific protection intent item. +type AzureRecoveryServiceVaultProtectionIntent struct { + // BackupManagementType - Type of backup management for the backed up item. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // SourceResourceID - ARM ID of the resource to be backed up. + SourceResourceID *string `json:"sourceResourceId,omitempty"` + // ItemID - ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId + ItemID *string `json:"itemId,omitempty"` + // PolicyID - ID of the backup policy with which this item is backed up. + PolicyID *string `json:"policyId,omitempty"` + // ProtectionState - Backup state of this backup item. Possible values include: 'ProtectionStatusInvalid', 'ProtectionStatusNotProtected', 'ProtectionStatusProtecting', 'ProtectionStatusProtected', 'ProtectionStatusProtectionFailed' + ProtectionState ProtectionStatus `json:"protectionState,omitempty"` + // ProtectionIntentItemType - Possible values include: 'ProtectionIntentItemTypeProtectionIntent', 'ProtectionIntentItemTypeRecoveryServiceVaultItem', 'ProtectionIntentItemTypeAzureResourceItem', 'ProtectionIntentItemTypeAzureWorkloadAutoProtectionIntent', 'ProtectionIntentItemTypeAzureWorkloadSQLAutoProtectionIntent' + ProtectionIntentItemType ProtectionIntentItemType `json:"protectionIntentItemType,omitempty"` +} + +func unmarshalBasicAzureRecoveryServiceVaultProtectionIntent(body []byte) (BasicAzureRecoveryServiceVaultProtectionIntent, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["protectionIntentItemType"] { + case string(ProtectionIntentItemTypeAzureWorkloadAutoProtectionIntent): + var awapi AzureWorkloadAutoProtectionIntent + err := json.Unmarshal(body, &awapi) + return awapi, err + case string(ProtectionIntentItemTypeAzureWorkloadSQLAutoProtectionIntent): + var awsapi AzureWorkloadSQLAutoProtectionIntent + err := json.Unmarshal(body, &awsapi) + return awsapi, err + default: + var arsvpi AzureRecoveryServiceVaultProtectionIntent + err := json.Unmarshal(body, &arsvpi) + return arsvpi, err + } +} +func unmarshalBasicAzureRecoveryServiceVaultProtectionIntentArray(body []byte) ([]BasicAzureRecoveryServiceVaultProtectionIntent, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + arsvpiArray := make([]BasicAzureRecoveryServiceVaultProtectionIntent, len(rawMessages)) + + for index, rawMessage := range rawMessages { + arsvpi, err := unmarshalBasicAzureRecoveryServiceVaultProtectionIntent(*rawMessage) + if err != nil { + return nil, err + } + arsvpiArray[index] = arsvpi + } + return arsvpiArray, nil +} + +// MarshalJSON is the custom marshaler for AzureRecoveryServiceVaultProtectionIntent. +func (arsvpi AzureRecoveryServiceVaultProtectionIntent) MarshalJSON() ([]byte, error) { + arsvpi.ProtectionIntentItemType = ProtectionIntentItemTypeRecoveryServiceVaultItem + objectMap := make(map[string]interface{}) + if arsvpi.BackupManagementType != "" { + objectMap["backupManagementType"] = arsvpi.BackupManagementType + } + if arsvpi.SourceResourceID != nil { + objectMap["sourceResourceId"] = arsvpi.SourceResourceID + } + if arsvpi.ItemID != nil { + objectMap["itemId"] = arsvpi.ItemID + } + if arsvpi.PolicyID != nil { + objectMap["policyId"] = arsvpi.PolicyID + } + if arsvpi.ProtectionState != "" { + objectMap["protectionState"] = arsvpi.ProtectionState + } + if arsvpi.ProtectionIntentItemType != "" { + objectMap["protectionIntentItemType"] = arsvpi.ProtectionIntentItemType + } + return json.Marshal(objectMap) +} + +// AsAzureRecoveryServiceVaultProtectionIntent is the BasicProtectionIntent implementation for AzureRecoveryServiceVaultProtectionIntent. +func (arsvpi AzureRecoveryServiceVaultProtectionIntent) AsAzureRecoveryServiceVaultProtectionIntent() (*AzureRecoveryServiceVaultProtectionIntent, bool) { + return &arsvpi, true +} + +// AsBasicAzureRecoveryServiceVaultProtectionIntent is the BasicProtectionIntent implementation for AzureRecoveryServiceVaultProtectionIntent. +func (arsvpi AzureRecoveryServiceVaultProtectionIntent) AsBasicAzureRecoveryServiceVaultProtectionIntent() (BasicAzureRecoveryServiceVaultProtectionIntent, bool) { + return &arsvpi, true +} + +// AsAzureResourceProtectionIntent is the BasicProtectionIntent implementation for AzureRecoveryServiceVaultProtectionIntent. +func (arsvpi AzureRecoveryServiceVaultProtectionIntent) AsAzureResourceProtectionIntent() (*AzureResourceProtectionIntent, bool) { + return nil, false +} + +// AsAzureWorkloadAutoProtectionIntent is the BasicProtectionIntent implementation for AzureRecoveryServiceVaultProtectionIntent. +func (arsvpi AzureRecoveryServiceVaultProtectionIntent) AsAzureWorkloadAutoProtectionIntent() (*AzureWorkloadAutoProtectionIntent, bool) { + return nil, false +} + +// AsBasicAzureWorkloadAutoProtectionIntent is the BasicProtectionIntent implementation for AzureRecoveryServiceVaultProtectionIntent. +func (arsvpi AzureRecoveryServiceVaultProtectionIntent) AsBasicAzureWorkloadAutoProtectionIntent() (BasicAzureWorkloadAutoProtectionIntent, bool) { + return nil, false +} + +// AsAzureWorkloadSQLAutoProtectionIntent is the BasicProtectionIntent implementation for AzureRecoveryServiceVaultProtectionIntent. +func (arsvpi AzureRecoveryServiceVaultProtectionIntent) AsAzureWorkloadSQLAutoProtectionIntent() (*AzureWorkloadSQLAutoProtectionIntent, bool) { + return nil, false +} + +// AsProtectionIntent is the BasicProtectionIntent implementation for AzureRecoveryServiceVaultProtectionIntent. +func (arsvpi AzureRecoveryServiceVaultProtectionIntent) AsProtectionIntent() (*ProtectionIntent, bool) { + return nil, false +} + +// AsBasicProtectionIntent is the BasicProtectionIntent implementation for AzureRecoveryServiceVaultProtectionIntent. +func (arsvpi AzureRecoveryServiceVaultProtectionIntent) AsBasicProtectionIntent() (BasicProtectionIntent, bool) { + return &arsvpi, true +} + +// AzureResourceProtectionIntent iaaS VM specific backup protection intent item. +type AzureResourceProtectionIntent struct { + // FriendlyName - Friendly name of the VM represented by this backup item. + FriendlyName *string `json:"friendlyName,omitempty"` + // BackupManagementType - Type of backup management for the backed up item. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // SourceResourceID - ARM ID of the resource to be backed up. + SourceResourceID *string `json:"sourceResourceId,omitempty"` + // ItemID - ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId + ItemID *string `json:"itemId,omitempty"` + // PolicyID - ID of the backup policy with which this item is backed up. + PolicyID *string `json:"policyId,omitempty"` + // ProtectionState - Backup state of this backup item. Possible values include: 'ProtectionStatusInvalid', 'ProtectionStatusNotProtected', 'ProtectionStatusProtecting', 'ProtectionStatusProtected', 'ProtectionStatusProtectionFailed' + ProtectionState ProtectionStatus `json:"protectionState,omitempty"` + // ProtectionIntentItemType - Possible values include: 'ProtectionIntentItemTypeProtectionIntent', 'ProtectionIntentItemTypeRecoveryServiceVaultItem', 'ProtectionIntentItemTypeAzureResourceItem', 'ProtectionIntentItemTypeAzureWorkloadAutoProtectionIntent', 'ProtectionIntentItemTypeAzureWorkloadSQLAutoProtectionIntent' + ProtectionIntentItemType ProtectionIntentItemType `json:"protectionIntentItemType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureResourceProtectionIntent. +func (arpi AzureResourceProtectionIntent) MarshalJSON() ([]byte, error) { + arpi.ProtectionIntentItemType = ProtectionIntentItemTypeAzureResourceItem + objectMap := make(map[string]interface{}) + if arpi.FriendlyName != nil { + objectMap["friendlyName"] = arpi.FriendlyName + } + if arpi.BackupManagementType != "" { + objectMap["backupManagementType"] = arpi.BackupManagementType + } + if arpi.SourceResourceID != nil { + objectMap["sourceResourceId"] = arpi.SourceResourceID + } + if arpi.ItemID != nil { + objectMap["itemId"] = arpi.ItemID + } + if arpi.PolicyID != nil { + objectMap["policyId"] = arpi.PolicyID + } + if arpi.ProtectionState != "" { + objectMap["protectionState"] = arpi.ProtectionState + } + if arpi.ProtectionIntentItemType != "" { + objectMap["protectionIntentItemType"] = arpi.ProtectionIntentItemType + } + return json.Marshal(objectMap) +} + +// AsAzureRecoveryServiceVaultProtectionIntent is the BasicProtectionIntent implementation for AzureResourceProtectionIntent. +func (arpi AzureResourceProtectionIntent) AsAzureRecoveryServiceVaultProtectionIntent() (*AzureRecoveryServiceVaultProtectionIntent, bool) { + return nil, false +} + +// AsBasicAzureRecoveryServiceVaultProtectionIntent is the BasicProtectionIntent implementation for AzureResourceProtectionIntent. +func (arpi AzureResourceProtectionIntent) AsBasicAzureRecoveryServiceVaultProtectionIntent() (BasicAzureRecoveryServiceVaultProtectionIntent, bool) { + return nil, false +} + +// AsAzureResourceProtectionIntent is the BasicProtectionIntent implementation for AzureResourceProtectionIntent. +func (arpi AzureResourceProtectionIntent) AsAzureResourceProtectionIntent() (*AzureResourceProtectionIntent, bool) { + return &arpi, true +} + +// AsAzureWorkloadAutoProtectionIntent is the BasicProtectionIntent implementation for AzureResourceProtectionIntent. +func (arpi AzureResourceProtectionIntent) AsAzureWorkloadAutoProtectionIntent() (*AzureWorkloadAutoProtectionIntent, bool) { + return nil, false +} + +// AsBasicAzureWorkloadAutoProtectionIntent is the BasicProtectionIntent implementation for AzureResourceProtectionIntent. +func (arpi AzureResourceProtectionIntent) AsBasicAzureWorkloadAutoProtectionIntent() (BasicAzureWorkloadAutoProtectionIntent, bool) { + return nil, false +} + +// AsAzureWorkloadSQLAutoProtectionIntent is the BasicProtectionIntent implementation for AzureResourceProtectionIntent. +func (arpi AzureResourceProtectionIntent) AsAzureWorkloadSQLAutoProtectionIntent() (*AzureWorkloadSQLAutoProtectionIntent, bool) { + return nil, false +} + +// AsProtectionIntent is the BasicProtectionIntent implementation for AzureResourceProtectionIntent. +func (arpi AzureResourceProtectionIntent) AsProtectionIntent() (*ProtectionIntent, bool) { + return nil, false +} + +// AsBasicProtectionIntent is the BasicProtectionIntent implementation for AzureResourceProtectionIntent. +func (arpi AzureResourceProtectionIntent) AsBasicProtectionIntent() (BasicProtectionIntent, bool) { + return &arpi, true +} + +// AzureSQLAGWorkloadContainerProtectionContainer container for SQL workloads under SQL Availability Group. +type AzureSQLAGWorkloadContainerProtectionContainer struct { + // SourceResourceID - ARM ID of the virtual machine represented by this Azure Workload Container + SourceResourceID *string `json:"sourceResourceId,omitempty"` + // LastUpdatedTime - Time stamp when this container was updated. + LastUpdatedTime *date.Time `json:"lastUpdatedTime,omitempty"` + // ExtendedInfo - Additional details of a workload container. + ExtendedInfo *AzureWorkloadContainerExtendedInfo `json:"extendedInfo,omitempty"` + // WorkloadType - Workload type for which registration was sent. Possible values include: 'WorkloadTypeInvalid', 'WorkloadTypeVM', 'WorkloadTypeFileFolder', 'WorkloadTypeAzureSQLDb', 'WorkloadTypeSQLDB', 'WorkloadTypeExchange', 'WorkloadTypeSharepoint', 'WorkloadTypeVMwareVM', 'WorkloadTypeSystemState', 'WorkloadTypeClient', 'WorkloadTypeGenericDataSource', 'WorkloadTypeSQLDataBase', 'WorkloadTypeAzureFileShare', 'WorkloadTypeSAPHanaDatabase', 'WorkloadTypeSAPAseDatabase' + WorkloadType WorkloadType `json:"workloadType,omitempty"` + // OperationType - Re-Do Operation. Possible values include: 'OperationTypeInvalid', 'OperationTypeRegister', 'OperationTypeReregister' + OperationType OperationType `json:"operationType,omitempty"` + // FriendlyName - Friendly name of the container. + FriendlyName *string `json:"friendlyName,omitempty"` + // BackupManagementType - Type of backup management for the container. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // RegistrationStatus - Status of registration of the container with the Recovery Services Vault. + RegistrationStatus *string `json:"registrationStatus,omitempty"` + // HealthStatus - Status of health of the container. + HealthStatus *string `json:"healthStatus,omitempty"` + // ContainerType - Possible values include: 'ContainerTypeBasicProtectionContainerContainerTypeProtectionContainer', 'ContainerTypeBasicProtectionContainerContainerTypeAzureBackupServerContainer', 'ContainerTypeBasicProtectionContainerContainerTypeMicrosoftClassicComputevirtualMachines', 'ContainerTypeBasicProtectionContainerContainerTypeMicrosoftComputevirtualMachines', 'ContainerTypeBasicProtectionContainerContainerTypeSQLAGWorkLoadContainer', 'ContainerTypeBasicProtectionContainerContainerTypeAzureSQLContainer', 'ContainerTypeBasicProtectionContainerContainerTypeStorageContainer', 'ContainerTypeBasicProtectionContainerContainerTypeVMAppContainer', 'ContainerTypeBasicProtectionContainerContainerTypeAzureWorkloadContainer', 'ContainerTypeBasicProtectionContainerContainerTypeDPMContainer', 'ContainerTypeBasicProtectionContainerContainerTypeGenericContainer', 'ContainerTypeBasicProtectionContainerContainerTypeIaaSVMContainer', 'ContainerTypeBasicProtectionContainerContainerTypeWindows' + ContainerType ContainerTypeBasicProtectionContainer `json:"containerType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureSQLAGWorkloadContainerProtectionContainer. +func (aswcpc AzureSQLAGWorkloadContainerProtectionContainer) MarshalJSON() ([]byte, error) { + aswcpc.ContainerType = ContainerTypeBasicProtectionContainerContainerTypeSQLAGWorkLoadContainer + objectMap := make(map[string]interface{}) + if aswcpc.SourceResourceID != nil { + objectMap["sourceResourceId"] = aswcpc.SourceResourceID + } + if aswcpc.LastUpdatedTime != nil { + objectMap["lastUpdatedTime"] = aswcpc.LastUpdatedTime + } + if aswcpc.ExtendedInfo != nil { + objectMap["extendedInfo"] = aswcpc.ExtendedInfo + } + if aswcpc.WorkloadType != "" { + objectMap["workloadType"] = aswcpc.WorkloadType + } + if aswcpc.OperationType != "" { + objectMap["operationType"] = aswcpc.OperationType + } + if aswcpc.FriendlyName != nil { + objectMap["friendlyName"] = aswcpc.FriendlyName + } + if aswcpc.BackupManagementType != "" { + objectMap["backupManagementType"] = aswcpc.BackupManagementType + } + if aswcpc.RegistrationStatus != nil { + objectMap["registrationStatus"] = aswcpc.RegistrationStatus + } + if aswcpc.HealthStatus != nil { + objectMap["healthStatus"] = aswcpc.HealthStatus + } + if aswcpc.ContainerType != "" { + objectMap["containerType"] = aswcpc.ContainerType + } + return json.Marshal(objectMap) +} + +// AsAzureBackupServerContainer is the BasicProtectionContainer implementation for AzureSQLAGWorkloadContainerProtectionContainer. +func (aswcpc AzureSQLAGWorkloadContainerProtectionContainer) AsAzureBackupServerContainer() (*AzureBackupServerContainer, bool) { + return nil, false +} + +// AsAzureIaaSClassicComputeVMContainer is the BasicProtectionContainer implementation for AzureSQLAGWorkloadContainerProtectionContainer. +func (aswcpc AzureSQLAGWorkloadContainerProtectionContainer) AsAzureIaaSClassicComputeVMContainer() (*AzureIaaSClassicComputeVMContainer, bool) { + return nil, false +} + +// AsAzureIaaSComputeVMContainer is the BasicProtectionContainer implementation for AzureSQLAGWorkloadContainerProtectionContainer. +func (aswcpc AzureSQLAGWorkloadContainerProtectionContainer) AsAzureIaaSComputeVMContainer() (*AzureIaaSComputeVMContainer, bool) { + return nil, false +} + +// AsAzureSQLAGWorkloadContainerProtectionContainer is the BasicProtectionContainer implementation for AzureSQLAGWorkloadContainerProtectionContainer. +func (aswcpc AzureSQLAGWorkloadContainerProtectionContainer) AsAzureSQLAGWorkloadContainerProtectionContainer() (*AzureSQLAGWorkloadContainerProtectionContainer, bool) { + return &aswcpc, true +} + +// AsAzureSQLContainer is the BasicProtectionContainer implementation for AzureSQLAGWorkloadContainerProtectionContainer. +func (aswcpc AzureSQLAGWorkloadContainerProtectionContainer) AsAzureSQLContainer() (*AzureSQLContainer, bool) { + return nil, false +} + +// AsAzureStorageContainer is the BasicProtectionContainer implementation for AzureSQLAGWorkloadContainerProtectionContainer. +func (aswcpc AzureSQLAGWorkloadContainerProtectionContainer) AsAzureStorageContainer() (*AzureStorageContainer, bool) { + return nil, false +} + +// AsAzureVMAppContainerProtectionContainer is the BasicProtectionContainer implementation for AzureSQLAGWorkloadContainerProtectionContainer. +func (aswcpc AzureSQLAGWorkloadContainerProtectionContainer) AsAzureVMAppContainerProtectionContainer() (*AzureVMAppContainerProtectionContainer, bool) { + return nil, false +} + +// AsAzureWorkloadContainer is the BasicProtectionContainer implementation for AzureSQLAGWorkloadContainerProtectionContainer. +func (aswcpc AzureSQLAGWorkloadContainerProtectionContainer) AsAzureWorkloadContainer() (*AzureWorkloadContainer, bool) { + return nil, false +} + +// AsBasicAzureWorkloadContainer is the BasicProtectionContainer implementation for AzureSQLAGWorkloadContainerProtectionContainer. +func (aswcpc AzureSQLAGWorkloadContainerProtectionContainer) AsBasicAzureWorkloadContainer() (BasicAzureWorkloadContainer, bool) { + return &aswcpc, true +} + +// AsDpmContainer is the BasicProtectionContainer implementation for AzureSQLAGWorkloadContainerProtectionContainer. +func (aswcpc AzureSQLAGWorkloadContainerProtectionContainer) AsDpmContainer() (*DpmContainer, bool) { + return nil, false +} + +// AsBasicDpmContainer is the BasicProtectionContainer implementation for AzureSQLAGWorkloadContainerProtectionContainer. +func (aswcpc AzureSQLAGWorkloadContainerProtectionContainer) AsBasicDpmContainer() (BasicDpmContainer, bool) { + return nil, false +} + +// AsGenericContainer is the BasicProtectionContainer implementation for AzureSQLAGWorkloadContainerProtectionContainer. +func (aswcpc AzureSQLAGWorkloadContainerProtectionContainer) AsGenericContainer() (*GenericContainer, bool) { + return nil, false +} + +// AsIaaSVMContainer is the BasicProtectionContainer implementation for AzureSQLAGWorkloadContainerProtectionContainer. +func (aswcpc AzureSQLAGWorkloadContainerProtectionContainer) AsIaaSVMContainer() (*IaaSVMContainer, bool) { + return nil, false +} + +// AsBasicIaaSVMContainer is the BasicProtectionContainer implementation for AzureSQLAGWorkloadContainerProtectionContainer. +func (aswcpc AzureSQLAGWorkloadContainerProtectionContainer) AsBasicIaaSVMContainer() (BasicIaaSVMContainer, bool) { + return nil, false +} + +// AsMabContainer is the BasicProtectionContainer implementation for AzureSQLAGWorkloadContainerProtectionContainer. +func (aswcpc AzureSQLAGWorkloadContainerProtectionContainer) AsMabContainer() (*MabContainer, bool) { + return nil, false +} + +// AsProtectionContainer is the BasicProtectionContainer implementation for AzureSQLAGWorkloadContainerProtectionContainer. +func (aswcpc AzureSQLAGWorkloadContainerProtectionContainer) AsProtectionContainer() (*ProtectionContainer, bool) { + return nil, false +} + +// AsBasicProtectionContainer is the BasicProtectionContainer implementation for AzureSQLAGWorkloadContainerProtectionContainer. +func (aswcpc AzureSQLAGWorkloadContainerProtectionContainer) AsBasicProtectionContainer() (BasicProtectionContainer, bool) { + return &aswcpc, true +} + +// AzureSQLContainer azure Sql workload-specific container. +type AzureSQLContainer struct { + // FriendlyName - Friendly name of the container. + FriendlyName *string `json:"friendlyName,omitempty"` + // BackupManagementType - Type of backup management for the container. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // RegistrationStatus - Status of registration of the container with the Recovery Services Vault. + RegistrationStatus *string `json:"registrationStatus,omitempty"` + // HealthStatus - Status of health of the container. + HealthStatus *string `json:"healthStatus,omitempty"` + // ContainerType - Possible values include: 'ContainerTypeBasicProtectionContainerContainerTypeProtectionContainer', 'ContainerTypeBasicProtectionContainerContainerTypeAzureBackupServerContainer', 'ContainerTypeBasicProtectionContainerContainerTypeMicrosoftClassicComputevirtualMachines', 'ContainerTypeBasicProtectionContainerContainerTypeMicrosoftComputevirtualMachines', 'ContainerTypeBasicProtectionContainerContainerTypeSQLAGWorkLoadContainer', 'ContainerTypeBasicProtectionContainerContainerTypeAzureSQLContainer', 'ContainerTypeBasicProtectionContainerContainerTypeStorageContainer', 'ContainerTypeBasicProtectionContainerContainerTypeVMAppContainer', 'ContainerTypeBasicProtectionContainerContainerTypeAzureWorkloadContainer', 'ContainerTypeBasicProtectionContainerContainerTypeDPMContainer', 'ContainerTypeBasicProtectionContainerContainerTypeGenericContainer', 'ContainerTypeBasicProtectionContainerContainerTypeIaaSVMContainer', 'ContainerTypeBasicProtectionContainerContainerTypeWindows' + ContainerType ContainerTypeBasicProtectionContainer `json:"containerType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureSQLContainer. +func (asc AzureSQLContainer) MarshalJSON() ([]byte, error) { + asc.ContainerType = ContainerTypeBasicProtectionContainerContainerTypeAzureSQLContainer + objectMap := make(map[string]interface{}) + if asc.FriendlyName != nil { + objectMap["friendlyName"] = asc.FriendlyName + } + if asc.BackupManagementType != "" { + objectMap["backupManagementType"] = asc.BackupManagementType + } + if asc.RegistrationStatus != nil { + objectMap["registrationStatus"] = asc.RegistrationStatus + } + if asc.HealthStatus != nil { + objectMap["healthStatus"] = asc.HealthStatus + } + if asc.ContainerType != "" { + objectMap["containerType"] = asc.ContainerType + } + return json.Marshal(objectMap) +} + +// AsAzureBackupServerContainer is the BasicProtectionContainer implementation for AzureSQLContainer. +func (asc AzureSQLContainer) AsAzureBackupServerContainer() (*AzureBackupServerContainer, bool) { + return nil, false +} + +// AsAzureIaaSClassicComputeVMContainer is the BasicProtectionContainer implementation for AzureSQLContainer. +func (asc AzureSQLContainer) AsAzureIaaSClassicComputeVMContainer() (*AzureIaaSClassicComputeVMContainer, bool) { + return nil, false +} + +// AsAzureIaaSComputeVMContainer is the BasicProtectionContainer implementation for AzureSQLContainer. +func (asc AzureSQLContainer) AsAzureIaaSComputeVMContainer() (*AzureIaaSComputeVMContainer, bool) { + return nil, false +} + +// AsAzureSQLAGWorkloadContainerProtectionContainer is the BasicProtectionContainer implementation for AzureSQLContainer. +func (asc AzureSQLContainer) AsAzureSQLAGWorkloadContainerProtectionContainer() (*AzureSQLAGWorkloadContainerProtectionContainer, bool) { + return nil, false +} + +// AsAzureSQLContainer is the BasicProtectionContainer implementation for AzureSQLContainer. +func (asc AzureSQLContainer) AsAzureSQLContainer() (*AzureSQLContainer, bool) { + return &asc, true +} + +// AsAzureStorageContainer is the BasicProtectionContainer implementation for AzureSQLContainer. +func (asc AzureSQLContainer) AsAzureStorageContainer() (*AzureStorageContainer, bool) { + return nil, false +} + +// AsAzureVMAppContainerProtectionContainer is the BasicProtectionContainer implementation for AzureSQLContainer. +func (asc AzureSQLContainer) AsAzureVMAppContainerProtectionContainer() (*AzureVMAppContainerProtectionContainer, bool) { + return nil, false +} + +// AsAzureWorkloadContainer is the BasicProtectionContainer implementation for AzureSQLContainer. +func (asc AzureSQLContainer) AsAzureWorkloadContainer() (*AzureWorkloadContainer, bool) { + return nil, false +} + +// AsBasicAzureWorkloadContainer is the BasicProtectionContainer implementation for AzureSQLContainer. +func (asc AzureSQLContainer) AsBasicAzureWorkloadContainer() (BasicAzureWorkloadContainer, bool) { + return nil, false +} + +// AsDpmContainer is the BasicProtectionContainer implementation for AzureSQLContainer. +func (asc AzureSQLContainer) AsDpmContainer() (*DpmContainer, bool) { + return nil, false +} + +// AsBasicDpmContainer is the BasicProtectionContainer implementation for AzureSQLContainer. +func (asc AzureSQLContainer) AsBasicDpmContainer() (BasicDpmContainer, bool) { + return nil, false +} + +// AsGenericContainer is the BasicProtectionContainer implementation for AzureSQLContainer. +func (asc AzureSQLContainer) AsGenericContainer() (*GenericContainer, bool) { + return nil, false +} + +// AsIaaSVMContainer is the BasicProtectionContainer implementation for AzureSQLContainer. +func (asc AzureSQLContainer) AsIaaSVMContainer() (*IaaSVMContainer, bool) { + return nil, false +} + +// AsBasicIaaSVMContainer is the BasicProtectionContainer implementation for AzureSQLContainer. +func (asc AzureSQLContainer) AsBasicIaaSVMContainer() (BasicIaaSVMContainer, bool) { + return nil, false +} + +// AsMabContainer is the BasicProtectionContainer implementation for AzureSQLContainer. +func (asc AzureSQLContainer) AsMabContainer() (*MabContainer, bool) { + return nil, false +} + +// AsProtectionContainer is the BasicProtectionContainer implementation for AzureSQLContainer. +func (asc AzureSQLContainer) AsProtectionContainer() (*ProtectionContainer, bool) { + return nil, false +} + +// AsBasicProtectionContainer is the BasicProtectionContainer implementation for AzureSQLContainer. +func (asc AzureSQLContainer) AsBasicProtectionContainer() (BasicProtectionContainer, bool) { + return &asc, true +} + +// AzureSQLProtectedItem azure SQL workload-specific backup item. +type AzureSQLProtectedItem struct { + // ProtectedItemDataID - Internal ID of a backup item. Used by Azure SQL Backup engine to contact Recovery Services. + ProtectedItemDataID *string `json:"protectedItemDataId,omitempty"` + // ProtectionState - Backup state of the backed up item. Possible values include: 'ProtectedItemStateInvalid', 'ProtectedItemStateIRPending', 'ProtectedItemStateProtected', 'ProtectedItemStateProtectionError', 'ProtectedItemStateProtectionStopped', 'ProtectedItemStateProtectionPaused' + ProtectionState ProtectedItemState `json:"protectionState,omitempty"` + // ExtendedInfo - Additional information for this backup item. + ExtendedInfo *AzureSQLProtectedItemExtendedInfo `json:"extendedInfo,omitempty"` + // BackupManagementType - Type of backup management for the backed up item. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // WorkloadType - Type of workload this item represents. Possible values include: 'DataSourceTypeInvalid', 'DataSourceTypeVM', 'DataSourceTypeFileFolder', 'DataSourceTypeAzureSQLDb', 'DataSourceTypeSQLDB', 'DataSourceTypeExchange', 'DataSourceTypeSharepoint', 'DataSourceTypeVMwareVM', 'DataSourceTypeSystemState', 'DataSourceTypeClient', 'DataSourceTypeGenericDataSource', 'DataSourceTypeSQLDataBase', 'DataSourceTypeAzureFileShare', 'DataSourceTypeSAPHanaDatabase', 'DataSourceTypeSAPAseDatabase' + WorkloadType DataSourceType `json:"workloadType,omitempty"` + // ContainerName - Unique name of container + ContainerName *string `json:"containerName,omitempty"` + // SourceResourceID - ARM ID of the resource to be backed up. + SourceResourceID *string `json:"sourceResourceId,omitempty"` + // PolicyID - ID of the backup policy with which this item is backed up. + PolicyID *string `json:"policyId,omitempty"` + // LastRecoveryPoint - Timestamp when the last (latest) backup copy was created for this backup item. + LastRecoveryPoint *date.Time `json:"lastRecoveryPoint,omitempty"` + // BackupSetName - Name of the backup set the backup item belongs to + BackupSetName *string `json:"backupSetName,omitempty"` + // CreateMode - Create mode to indicate recovery of existing soft deleted data source or creation of new data source. Possible values include: 'CreateModeInvalid', 'CreateModeDefault', 'CreateModeRecover' + CreateMode CreateMode `json:"createMode,omitempty"` + // DeferredDeleteTimeInUTC - Time for deferred deletion in UTC + DeferredDeleteTimeInUTC *date.Time `json:"deferredDeleteTimeInUTC,omitempty"` + // IsScheduledForDeferredDelete - Flag to identify whether the DS is scheduled for deferred delete + IsScheduledForDeferredDelete *bool `json:"isScheduledForDeferredDelete,omitempty"` + // DeferredDeleteTimeRemaining - Time remaining before the DS marked for deferred delete is permanently deleted + DeferredDeleteTimeRemaining *string `json:"deferredDeleteTimeRemaining,omitempty"` + // IsDeferredDeleteScheduleUpcoming - Flag to identify whether the deferred deleted DS is to be purged soon + IsDeferredDeleteScheduleUpcoming *bool `json:"isDeferredDeleteScheduleUpcoming,omitempty"` + // IsRehydrate - Flag to identify that deferred deleted DS is to be moved into Pause state + IsRehydrate *bool `json:"isRehydrate,omitempty"` + // ProtectedItemType - Possible values include: 'ProtectedItemTypeProtectedItem', 'ProtectedItemTypeAzureFileShareProtectedItem', 'ProtectedItemTypeMicrosoftClassicComputevirtualMachines', 'ProtectedItemTypeMicrosoftComputevirtualMachines', 'ProtectedItemTypeAzureIaaSVMProtectedItem', 'ProtectedItemTypeMicrosoftSqlserversdatabases', 'ProtectedItemTypeAzureVMWorkloadProtectedItem', 'ProtectedItemTypeAzureVMWorkloadSAPAseDatabase', 'ProtectedItemTypeAzureVMWorkloadSAPHanaDatabase', 'ProtectedItemTypeAzureVMWorkloadSQLDatabase', 'ProtectedItemTypeDPMProtectedItem', 'ProtectedItemTypeGenericProtectedItem', 'ProtectedItemTypeMabFileFolderProtectedItem' + ProtectedItemType ProtectedItemType `json:"protectedItemType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureSQLProtectedItem. +func (aspi AzureSQLProtectedItem) MarshalJSON() ([]byte, error) { + aspi.ProtectedItemType = ProtectedItemTypeMicrosoftSqlserversdatabases + objectMap := make(map[string]interface{}) + if aspi.ProtectedItemDataID != nil { + objectMap["protectedItemDataId"] = aspi.ProtectedItemDataID + } + if aspi.ProtectionState != "" { + objectMap["protectionState"] = aspi.ProtectionState + } + if aspi.ExtendedInfo != nil { + objectMap["extendedInfo"] = aspi.ExtendedInfo + } + if aspi.BackupManagementType != "" { + objectMap["backupManagementType"] = aspi.BackupManagementType + } + if aspi.WorkloadType != "" { + objectMap["workloadType"] = aspi.WorkloadType + } + if aspi.ContainerName != nil { + objectMap["containerName"] = aspi.ContainerName + } + if aspi.SourceResourceID != nil { + objectMap["sourceResourceId"] = aspi.SourceResourceID + } + if aspi.PolicyID != nil { + objectMap["policyId"] = aspi.PolicyID + } + if aspi.LastRecoveryPoint != nil { + objectMap["lastRecoveryPoint"] = aspi.LastRecoveryPoint + } + if aspi.BackupSetName != nil { + objectMap["backupSetName"] = aspi.BackupSetName + } + if aspi.CreateMode != "" { + objectMap["createMode"] = aspi.CreateMode + } + if aspi.DeferredDeleteTimeInUTC != nil { + objectMap["deferredDeleteTimeInUTC"] = aspi.DeferredDeleteTimeInUTC + } + if aspi.IsScheduledForDeferredDelete != nil { + objectMap["isScheduledForDeferredDelete"] = aspi.IsScheduledForDeferredDelete + } + if aspi.DeferredDeleteTimeRemaining != nil { + objectMap["deferredDeleteTimeRemaining"] = aspi.DeferredDeleteTimeRemaining + } + if aspi.IsDeferredDeleteScheduleUpcoming != nil { + objectMap["isDeferredDeleteScheduleUpcoming"] = aspi.IsDeferredDeleteScheduleUpcoming + } + if aspi.IsRehydrate != nil { + objectMap["isRehydrate"] = aspi.IsRehydrate + } + if aspi.ProtectedItemType != "" { + objectMap["protectedItemType"] = aspi.ProtectedItemType + } + return json.Marshal(objectMap) +} + +// AsAzureFileshareProtectedItem is the BasicProtectedItem implementation for AzureSQLProtectedItem. +func (aspi AzureSQLProtectedItem) AsAzureFileshareProtectedItem() (*AzureFileshareProtectedItem, bool) { + return nil, false +} + +// AsAzureIaaSClassicComputeVMProtectedItem is the BasicProtectedItem implementation for AzureSQLProtectedItem. +func (aspi AzureSQLProtectedItem) AsAzureIaaSClassicComputeVMProtectedItem() (*AzureIaaSClassicComputeVMProtectedItem, bool) { + return nil, false +} + +// AsAzureIaaSComputeVMProtectedItem is the BasicProtectedItem implementation for AzureSQLProtectedItem. +func (aspi AzureSQLProtectedItem) AsAzureIaaSComputeVMProtectedItem() (*AzureIaaSComputeVMProtectedItem, bool) { + return nil, false +} + +// AsAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for AzureSQLProtectedItem. +func (aspi AzureSQLProtectedItem) AsAzureIaaSVMProtectedItem() (*AzureIaaSVMProtectedItem, bool) { + return nil, false +} + +// AsBasicAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for AzureSQLProtectedItem. +func (aspi AzureSQLProtectedItem) AsBasicAzureIaaSVMProtectedItem() (BasicAzureIaaSVMProtectedItem, bool) { + return nil, false +} + +// AsAzureSQLProtectedItem is the BasicProtectedItem implementation for AzureSQLProtectedItem. +func (aspi AzureSQLProtectedItem) AsAzureSQLProtectedItem() (*AzureSQLProtectedItem, bool) { + return &aspi, true +} + +// AsAzureVMWorkloadProtectedItem is the BasicProtectedItem implementation for AzureSQLProtectedItem. +func (aspi AzureSQLProtectedItem) AsAzureVMWorkloadProtectedItem() (*AzureVMWorkloadProtectedItem, bool) { + return nil, false +} + +// AsBasicAzureVMWorkloadProtectedItem is the BasicProtectedItem implementation for AzureSQLProtectedItem. +func (aspi AzureSQLProtectedItem) AsBasicAzureVMWorkloadProtectedItem() (BasicAzureVMWorkloadProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPAseDatabaseProtectedItem is the BasicProtectedItem implementation for AzureSQLProtectedItem. +func (aspi AzureSQLProtectedItem) AsAzureVMWorkloadSAPAseDatabaseProtectedItem() (*AzureVMWorkloadSAPAseDatabaseProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaDatabaseProtectedItem is the BasicProtectedItem implementation for AzureSQLProtectedItem. +func (aspi AzureSQLProtectedItem) AsAzureVMWorkloadSAPHanaDatabaseProtectedItem() (*AzureVMWorkloadSAPHanaDatabaseProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLDatabaseProtectedItem is the BasicProtectedItem implementation for AzureSQLProtectedItem. +func (aspi AzureSQLProtectedItem) AsAzureVMWorkloadSQLDatabaseProtectedItem() (*AzureVMWorkloadSQLDatabaseProtectedItem, bool) { + return nil, false +} + +// AsDPMProtectedItem is the BasicProtectedItem implementation for AzureSQLProtectedItem. +func (aspi AzureSQLProtectedItem) AsDPMProtectedItem() (*DPMProtectedItem, bool) { + return nil, false +} + +// AsGenericProtectedItem is the BasicProtectedItem implementation for AzureSQLProtectedItem. +func (aspi AzureSQLProtectedItem) AsGenericProtectedItem() (*GenericProtectedItem, bool) { + return nil, false +} + +// AsMabFileFolderProtectedItem is the BasicProtectedItem implementation for AzureSQLProtectedItem. +func (aspi AzureSQLProtectedItem) AsMabFileFolderProtectedItem() (*MabFileFolderProtectedItem, bool) { + return nil, false +} + +// AsProtectedItem is the BasicProtectedItem implementation for AzureSQLProtectedItem. +func (aspi AzureSQLProtectedItem) AsProtectedItem() (*ProtectedItem, bool) { + return nil, false +} + +// AsBasicProtectedItem is the BasicProtectedItem implementation for AzureSQLProtectedItem. +func (aspi AzureSQLProtectedItem) AsBasicProtectedItem() (BasicProtectedItem, bool) { + return &aspi, true +} + +// AzureSQLProtectedItemExtendedInfo additional information on Azure Sql specific protected item. +type AzureSQLProtectedItemExtendedInfo struct { + // OldestRecoveryPoint - The oldest backup copy available for this item in the service. + OldestRecoveryPoint *date.Time `json:"oldestRecoveryPoint,omitempty"` + // RecoveryPointCount - Number of available backup copies associated with this backup item. + RecoveryPointCount *int32 `json:"recoveryPointCount,omitempty"` + // PolicyState - State of the backup policy associated with this backup item. + PolicyState *string `json:"policyState,omitempty"` +} + +// AzureSQLProtectionPolicy azure SQL workload-specific backup policy. +type AzureSQLProtectionPolicy struct { + // RetentionPolicy - Retention policy details. + RetentionPolicy BasicRetentionPolicy `json:"retentionPolicy,omitempty"` + // ProtectedItemsCount - Number of items associated with this policy. + ProtectedItemsCount *int32 `json:"protectedItemsCount,omitempty"` + // BackupManagementType - Possible values include: 'ManagementTypeBasicProtectionPolicyBackupManagementTypeProtectionPolicy', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureWorkload', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureStorage', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureIaasVM', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureSQL', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeGenericProtectionPolicy', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeMAB' + BackupManagementType ManagementTypeBasicProtectionPolicy `json:"backupManagementType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureSQLProtectionPolicy. +func (aspp AzureSQLProtectionPolicy) MarshalJSON() ([]byte, error) { + aspp.BackupManagementType = ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureSQL + objectMap := make(map[string]interface{}) + objectMap["retentionPolicy"] = aspp.RetentionPolicy + if aspp.ProtectedItemsCount != nil { + objectMap["protectedItemsCount"] = aspp.ProtectedItemsCount + } + if aspp.BackupManagementType != "" { + objectMap["backupManagementType"] = aspp.BackupManagementType + } + return json.Marshal(objectMap) +} + +// AsAzureVMWorkloadProtectionPolicy is the BasicProtectionPolicy implementation for AzureSQLProtectionPolicy. +func (aspp AzureSQLProtectionPolicy) AsAzureVMWorkloadProtectionPolicy() (*AzureVMWorkloadProtectionPolicy, bool) { + return nil, false +} + +// AsAzureFileShareProtectionPolicy is the BasicProtectionPolicy implementation for AzureSQLProtectionPolicy. +func (aspp AzureSQLProtectionPolicy) AsAzureFileShareProtectionPolicy() (*AzureFileShareProtectionPolicy, bool) { + return nil, false +} + +// AsAzureIaaSVMProtectionPolicy is the BasicProtectionPolicy implementation for AzureSQLProtectionPolicy. +func (aspp AzureSQLProtectionPolicy) AsAzureIaaSVMProtectionPolicy() (*AzureIaaSVMProtectionPolicy, bool) { + return nil, false +} + +// AsAzureSQLProtectionPolicy is the BasicProtectionPolicy implementation for AzureSQLProtectionPolicy. +func (aspp AzureSQLProtectionPolicy) AsAzureSQLProtectionPolicy() (*AzureSQLProtectionPolicy, bool) { + return &aspp, true +} + +// AsGenericProtectionPolicy is the BasicProtectionPolicy implementation for AzureSQLProtectionPolicy. +func (aspp AzureSQLProtectionPolicy) AsGenericProtectionPolicy() (*GenericProtectionPolicy, bool) { + return nil, false +} + +// AsMabProtectionPolicy is the BasicProtectionPolicy implementation for AzureSQLProtectionPolicy. +func (aspp AzureSQLProtectionPolicy) AsMabProtectionPolicy() (*MabProtectionPolicy, bool) { + return nil, false +} + +// AsProtectionPolicy is the BasicProtectionPolicy implementation for AzureSQLProtectionPolicy. +func (aspp AzureSQLProtectionPolicy) AsProtectionPolicy() (*ProtectionPolicy, bool) { + return nil, false +} + +// AsBasicProtectionPolicy is the BasicProtectionPolicy implementation for AzureSQLProtectionPolicy. +func (aspp AzureSQLProtectionPolicy) AsBasicProtectionPolicy() (BasicProtectionPolicy, bool) { + return &aspp, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureSQLProtectionPolicy struct. +func (aspp *AzureSQLProtectionPolicy) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "retentionPolicy": + if v != nil { + retentionPolicy, err := unmarshalBasicRetentionPolicy(*v) + if err != nil { + return err + } + aspp.RetentionPolicy = retentionPolicy + } + case "protectedItemsCount": + if v != nil { + var protectedItemsCount int32 + err = json.Unmarshal(*v, &protectedItemsCount) + if err != nil { + return err + } + aspp.ProtectedItemsCount = &protectedItemsCount + } + case "backupManagementType": + if v != nil { + var backupManagementType ManagementTypeBasicProtectionPolicy + err = json.Unmarshal(*v, &backupManagementType) + if err != nil { + return err + } + aspp.BackupManagementType = backupManagementType + } + } + } + + return nil +} + +// AzureStorageContainer azure Storage Account workload-specific container. +type AzureStorageContainer struct { + // SourceResourceID - Fully qualified ARM url. + SourceResourceID *string `json:"sourceResourceId,omitempty"` + // StorageAccountVersion - Storage account version. + StorageAccountVersion *string `json:"storageAccountVersion,omitempty"` + // ResourceGroup - Resource group name of Recovery Services Vault. + ResourceGroup *string `json:"resourceGroup,omitempty"` + // ProtectedItemCount - Number of items backed up in this container. + ProtectedItemCount *int64 `json:"protectedItemCount,omitempty"` + // FriendlyName - Friendly name of the container. + FriendlyName *string `json:"friendlyName,omitempty"` + // BackupManagementType - Type of backup management for the container. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // RegistrationStatus - Status of registration of the container with the Recovery Services Vault. + RegistrationStatus *string `json:"registrationStatus,omitempty"` + // HealthStatus - Status of health of the container. + HealthStatus *string `json:"healthStatus,omitempty"` + // ContainerType - Possible values include: 'ContainerTypeBasicProtectionContainerContainerTypeProtectionContainer', 'ContainerTypeBasicProtectionContainerContainerTypeAzureBackupServerContainer', 'ContainerTypeBasicProtectionContainerContainerTypeMicrosoftClassicComputevirtualMachines', 'ContainerTypeBasicProtectionContainerContainerTypeMicrosoftComputevirtualMachines', 'ContainerTypeBasicProtectionContainerContainerTypeSQLAGWorkLoadContainer', 'ContainerTypeBasicProtectionContainerContainerTypeAzureSQLContainer', 'ContainerTypeBasicProtectionContainerContainerTypeStorageContainer', 'ContainerTypeBasicProtectionContainerContainerTypeVMAppContainer', 'ContainerTypeBasicProtectionContainerContainerTypeAzureWorkloadContainer', 'ContainerTypeBasicProtectionContainerContainerTypeDPMContainer', 'ContainerTypeBasicProtectionContainerContainerTypeGenericContainer', 'ContainerTypeBasicProtectionContainerContainerTypeIaaSVMContainer', 'ContainerTypeBasicProtectionContainerContainerTypeWindows' + ContainerType ContainerTypeBasicProtectionContainer `json:"containerType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureStorageContainer. +func (asc AzureStorageContainer) MarshalJSON() ([]byte, error) { + asc.ContainerType = ContainerTypeBasicProtectionContainerContainerTypeStorageContainer + objectMap := make(map[string]interface{}) + if asc.SourceResourceID != nil { + objectMap["sourceResourceId"] = asc.SourceResourceID + } + if asc.StorageAccountVersion != nil { + objectMap["storageAccountVersion"] = asc.StorageAccountVersion + } + if asc.ResourceGroup != nil { + objectMap["resourceGroup"] = asc.ResourceGroup + } + if asc.ProtectedItemCount != nil { + objectMap["protectedItemCount"] = asc.ProtectedItemCount + } + if asc.FriendlyName != nil { + objectMap["friendlyName"] = asc.FriendlyName + } + if asc.BackupManagementType != "" { + objectMap["backupManagementType"] = asc.BackupManagementType + } + if asc.RegistrationStatus != nil { + objectMap["registrationStatus"] = asc.RegistrationStatus + } + if asc.HealthStatus != nil { + objectMap["healthStatus"] = asc.HealthStatus + } + if asc.ContainerType != "" { + objectMap["containerType"] = asc.ContainerType + } + return json.Marshal(objectMap) +} + +// AsAzureBackupServerContainer is the BasicProtectionContainer implementation for AzureStorageContainer. +func (asc AzureStorageContainer) AsAzureBackupServerContainer() (*AzureBackupServerContainer, bool) { + return nil, false +} + +// AsAzureIaaSClassicComputeVMContainer is the BasicProtectionContainer implementation for AzureStorageContainer. +func (asc AzureStorageContainer) AsAzureIaaSClassicComputeVMContainer() (*AzureIaaSClassicComputeVMContainer, bool) { + return nil, false +} + +// AsAzureIaaSComputeVMContainer is the BasicProtectionContainer implementation for AzureStorageContainer. +func (asc AzureStorageContainer) AsAzureIaaSComputeVMContainer() (*AzureIaaSComputeVMContainer, bool) { + return nil, false +} + +// AsAzureSQLAGWorkloadContainerProtectionContainer is the BasicProtectionContainer implementation for AzureStorageContainer. +func (asc AzureStorageContainer) AsAzureSQLAGWorkloadContainerProtectionContainer() (*AzureSQLAGWorkloadContainerProtectionContainer, bool) { + return nil, false +} + +// AsAzureSQLContainer is the BasicProtectionContainer implementation for AzureStorageContainer. +func (asc AzureStorageContainer) AsAzureSQLContainer() (*AzureSQLContainer, bool) { + return nil, false +} + +// AsAzureStorageContainer is the BasicProtectionContainer implementation for AzureStorageContainer. +func (asc AzureStorageContainer) AsAzureStorageContainer() (*AzureStorageContainer, bool) { + return &asc, true +} + +// AsAzureVMAppContainerProtectionContainer is the BasicProtectionContainer implementation for AzureStorageContainer. +func (asc AzureStorageContainer) AsAzureVMAppContainerProtectionContainer() (*AzureVMAppContainerProtectionContainer, bool) { + return nil, false +} + +// AsAzureWorkloadContainer is the BasicProtectionContainer implementation for AzureStorageContainer. +func (asc AzureStorageContainer) AsAzureWorkloadContainer() (*AzureWorkloadContainer, bool) { + return nil, false +} + +// AsBasicAzureWorkloadContainer is the BasicProtectionContainer implementation for AzureStorageContainer. +func (asc AzureStorageContainer) AsBasicAzureWorkloadContainer() (BasicAzureWorkloadContainer, bool) { + return nil, false +} + +// AsDpmContainer is the BasicProtectionContainer implementation for AzureStorageContainer. +func (asc AzureStorageContainer) AsDpmContainer() (*DpmContainer, bool) { + return nil, false +} + +// AsBasicDpmContainer is the BasicProtectionContainer implementation for AzureStorageContainer. +func (asc AzureStorageContainer) AsBasicDpmContainer() (BasicDpmContainer, bool) { + return nil, false +} + +// AsGenericContainer is the BasicProtectionContainer implementation for AzureStorageContainer. +func (asc AzureStorageContainer) AsGenericContainer() (*GenericContainer, bool) { + return nil, false +} + +// AsIaaSVMContainer is the BasicProtectionContainer implementation for AzureStorageContainer. +func (asc AzureStorageContainer) AsIaaSVMContainer() (*IaaSVMContainer, bool) { + return nil, false +} + +// AsBasicIaaSVMContainer is the BasicProtectionContainer implementation for AzureStorageContainer. +func (asc AzureStorageContainer) AsBasicIaaSVMContainer() (BasicIaaSVMContainer, bool) { + return nil, false +} + +// AsMabContainer is the BasicProtectionContainer implementation for AzureStorageContainer. +func (asc AzureStorageContainer) AsMabContainer() (*MabContainer, bool) { + return nil, false +} + +// AsProtectionContainer is the BasicProtectionContainer implementation for AzureStorageContainer. +func (asc AzureStorageContainer) AsProtectionContainer() (*ProtectionContainer, bool) { + return nil, false +} + +// AsBasicProtectionContainer is the BasicProtectionContainer implementation for AzureStorageContainer. +func (asc AzureStorageContainer) AsBasicProtectionContainer() (BasicProtectionContainer, bool) { + return &asc, true +} + +// AzureStorageErrorInfo azure storage specific error information +type AzureStorageErrorInfo struct { + // ErrorCode - Error code. + ErrorCode *int32 `json:"errorCode,omitempty"` + // ErrorString - Localized error string. + ErrorString *string `json:"errorString,omitempty"` + // Recommendations - List of localized recommendations for above error code. + Recommendations *[]string `json:"recommendations,omitempty"` +} + +// AzureStorageJob azure storage specific job. +type AzureStorageJob struct { + // Duration - Time elapsed during the execution of this job. + Duration *string `json:"duration,omitempty"` + // ActionsInfo - Gets or sets the state/actions applicable on this job like cancel/retry. + ActionsInfo *[]JobSupportedAction `json:"actionsInfo,omitempty"` + // ErrorDetails - Error details on execution of this job. + ErrorDetails *[]AzureStorageErrorInfo `json:"errorDetails,omitempty"` + // StorageAccountName - Specifies friendly name of the storage account. + StorageAccountName *string `json:"storageAccountName,omitempty"` + // StorageAccountVersion - Specifies whether the Storage account is a Classic or an Azure Resource Manager Storage account. + StorageAccountVersion *string `json:"storageAccountVersion,omitempty"` + // ExtendedInfo - Additional information about the job. + ExtendedInfo *AzureStorageJobExtendedInfo `json:"extendedInfo,omitempty"` + // EntityFriendlyName - Friendly name of the entity on which the current job is executing. + EntityFriendlyName *string `json:"entityFriendlyName,omitempty"` + // BackupManagementType - Backup management type to execute the current job. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // Operation - The operation name. + Operation *string `json:"operation,omitempty"` + // Status - Job status. + Status *string `json:"status,omitempty"` + // StartTime - The start time. + StartTime *date.Time `json:"startTime,omitempty"` + // EndTime - The end time. + EndTime *date.Time `json:"endTime,omitempty"` + // ActivityID - ActivityId of job. + ActivityID *string `json:"activityId,omitempty"` + // JobType - Possible values include: 'JobTypeJob', 'JobTypeAzureIaaSVMJob', 'JobTypeAzureStorageJob', 'JobTypeAzureWorkloadJob', 'JobTypeDpmJob', 'JobTypeMabJob', 'JobTypeVaultJob' + JobType JobType `json:"jobType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureStorageJob. +func (asj AzureStorageJob) MarshalJSON() ([]byte, error) { + asj.JobType = JobTypeAzureStorageJob + objectMap := make(map[string]interface{}) + if asj.Duration != nil { + objectMap["duration"] = asj.Duration + } + if asj.ActionsInfo != nil { + objectMap["actionsInfo"] = asj.ActionsInfo + } + if asj.ErrorDetails != nil { + objectMap["errorDetails"] = asj.ErrorDetails + } + if asj.StorageAccountName != nil { + objectMap["storageAccountName"] = asj.StorageAccountName + } + if asj.StorageAccountVersion != nil { + objectMap["storageAccountVersion"] = asj.StorageAccountVersion + } + if asj.ExtendedInfo != nil { + objectMap["extendedInfo"] = asj.ExtendedInfo + } + if asj.EntityFriendlyName != nil { + objectMap["entityFriendlyName"] = asj.EntityFriendlyName + } + if asj.BackupManagementType != "" { + objectMap["backupManagementType"] = asj.BackupManagementType + } + if asj.Operation != nil { + objectMap["operation"] = asj.Operation + } + if asj.Status != nil { + objectMap["status"] = asj.Status + } + if asj.StartTime != nil { + objectMap["startTime"] = asj.StartTime + } + if asj.EndTime != nil { + objectMap["endTime"] = asj.EndTime + } + if asj.ActivityID != nil { + objectMap["activityId"] = asj.ActivityID + } + if asj.JobType != "" { + objectMap["jobType"] = asj.JobType + } + return json.Marshal(objectMap) +} + +// AsAzureIaaSVMJob is the BasicJob implementation for AzureStorageJob. +func (asj AzureStorageJob) AsAzureIaaSVMJob() (*AzureIaaSVMJob, bool) { + return nil, false +} + +// AsAzureStorageJob is the BasicJob implementation for AzureStorageJob. +func (asj AzureStorageJob) AsAzureStorageJob() (*AzureStorageJob, bool) { + return &asj, true +} + +// AsAzureWorkloadJob is the BasicJob implementation for AzureStorageJob. +func (asj AzureStorageJob) AsAzureWorkloadJob() (*AzureWorkloadJob, bool) { + return nil, false +} + +// AsDpmJob is the BasicJob implementation for AzureStorageJob. +func (asj AzureStorageJob) AsDpmJob() (*DpmJob, bool) { + return nil, false +} + +// AsMabJob is the BasicJob implementation for AzureStorageJob. +func (asj AzureStorageJob) AsMabJob() (*MabJob, bool) { + return nil, false +} + +// AsVaultJob is the BasicJob implementation for AzureStorageJob. +func (asj AzureStorageJob) AsVaultJob() (*VaultJob, bool) { + return nil, false +} + +// AsJob is the BasicJob implementation for AzureStorageJob. +func (asj AzureStorageJob) AsJob() (*Job, bool) { + return nil, false +} + +// AsBasicJob is the BasicJob implementation for AzureStorageJob. +func (asj AzureStorageJob) AsBasicJob() (BasicJob, bool) { + return &asj, true +} + +// AzureStorageJobExtendedInfo azure Storage workload-specific additional information for job. +type AzureStorageJobExtendedInfo struct { + // TasksList - List of tasks for this job + TasksList *[]AzureStorageJobTaskDetails `json:"tasksList,omitempty"` + // PropertyBag - Job properties. + PropertyBag map[string]*string `json:"propertyBag"` + // DynamicErrorMessage - Non localized error message on job execution. + DynamicErrorMessage *string `json:"dynamicErrorMessage,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureStorageJobExtendedInfo. +func (asjei AzureStorageJobExtendedInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if asjei.TasksList != nil { + objectMap["tasksList"] = asjei.TasksList + } + if asjei.PropertyBag != nil { + objectMap["propertyBag"] = asjei.PropertyBag + } + if asjei.DynamicErrorMessage != nil { + objectMap["dynamicErrorMessage"] = asjei.DynamicErrorMessage + } + return json.Marshal(objectMap) +} + +// AzureStorageJobTaskDetails azure storage workload specific job task details. +type AzureStorageJobTaskDetails struct { + // TaskID - The task display name. + TaskID *string `json:"taskId,omitempty"` + // Status - The status. + Status *string `json:"status,omitempty"` +} + +// AzureStorageProtectableContainer azure Storage-specific protectable containers +type AzureStorageProtectableContainer struct { + // FriendlyName - Friendly name of the container. + FriendlyName *string `json:"friendlyName,omitempty"` + // BackupManagementType - Type of backup management for the container. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // HealthStatus - Status of health of the container. + HealthStatus *string `json:"healthStatus,omitempty"` + // ContainerID - Fabric Id of the container such as ARM Id. + ContainerID *string `json:"containerId,omitempty"` + // ProtectableContainerType - Possible values include: 'ProtectableContainerTypeProtectableContainer', 'ProtectableContainerTypeStorageContainer', 'ProtectableContainerTypeVMAppContainer' + ProtectableContainerType ProtectableContainerType `json:"protectableContainerType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureStorageProtectableContainer. +func (aspc AzureStorageProtectableContainer) MarshalJSON() ([]byte, error) { + aspc.ProtectableContainerType = ProtectableContainerTypeStorageContainer + objectMap := make(map[string]interface{}) + if aspc.FriendlyName != nil { + objectMap["friendlyName"] = aspc.FriendlyName + } + if aspc.BackupManagementType != "" { + objectMap["backupManagementType"] = aspc.BackupManagementType + } + if aspc.HealthStatus != nil { + objectMap["healthStatus"] = aspc.HealthStatus + } + if aspc.ContainerID != nil { + objectMap["containerId"] = aspc.ContainerID + } + if aspc.ProtectableContainerType != "" { + objectMap["protectableContainerType"] = aspc.ProtectableContainerType + } + return json.Marshal(objectMap) +} + +// AsAzureStorageProtectableContainer is the BasicProtectableContainer implementation for AzureStorageProtectableContainer. +func (aspc AzureStorageProtectableContainer) AsAzureStorageProtectableContainer() (*AzureStorageProtectableContainer, bool) { + return &aspc, true +} + +// AsAzureVMAppContainerProtectableContainer is the BasicProtectableContainer implementation for AzureStorageProtectableContainer. +func (aspc AzureStorageProtectableContainer) AsAzureVMAppContainerProtectableContainer() (*AzureVMAppContainerProtectableContainer, bool) { + return nil, false +} + +// AsProtectableContainer is the BasicProtectableContainer implementation for AzureStorageProtectableContainer. +func (aspc AzureStorageProtectableContainer) AsProtectableContainer() (*ProtectableContainer, bool) { + return nil, false +} + +// AsBasicProtectableContainer is the BasicProtectableContainer implementation for AzureStorageProtectableContainer. +func (aspc AzureStorageProtectableContainer) AsBasicProtectableContainer() (BasicProtectableContainer, bool) { + return &aspc, true +} + +// AzureVMAppContainerProtectableContainer azure workload-specific container +type AzureVMAppContainerProtectableContainer struct { + // FriendlyName - Friendly name of the container. + FriendlyName *string `json:"friendlyName,omitempty"` + // BackupManagementType - Type of backup management for the container. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // HealthStatus - Status of health of the container. + HealthStatus *string `json:"healthStatus,omitempty"` + // ContainerID - Fabric Id of the container such as ARM Id. + ContainerID *string `json:"containerId,omitempty"` + // ProtectableContainerType - Possible values include: 'ProtectableContainerTypeProtectableContainer', 'ProtectableContainerTypeStorageContainer', 'ProtectableContainerTypeVMAppContainer' + ProtectableContainerType ProtectableContainerType `json:"protectableContainerType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureVMAppContainerProtectableContainer. +func (avacpc AzureVMAppContainerProtectableContainer) MarshalJSON() ([]byte, error) { + avacpc.ProtectableContainerType = ProtectableContainerTypeVMAppContainer + objectMap := make(map[string]interface{}) + if avacpc.FriendlyName != nil { + objectMap["friendlyName"] = avacpc.FriendlyName + } + if avacpc.BackupManagementType != "" { + objectMap["backupManagementType"] = avacpc.BackupManagementType + } + if avacpc.HealthStatus != nil { + objectMap["healthStatus"] = avacpc.HealthStatus + } + if avacpc.ContainerID != nil { + objectMap["containerId"] = avacpc.ContainerID + } + if avacpc.ProtectableContainerType != "" { + objectMap["protectableContainerType"] = avacpc.ProtectableContainerType + } + return json.Marshal(objectMap) +} + +// AsAzureStorageProtectableContainer is the BasicProtectableContainer implementation for AzureVMAppContainerProtectableContainer. +func (avacpc AzureVMAppContainerProtectableContainer) AsAzureStorageProtectableContainer() (*AzureStorageProtectableContainer, bool) { + return nil, false +} + +// AsAzureVMAppContainerProtectableContainer is the BasicProtectableContainer implementation for AzureVMAppContainerProtectableContainer. +func (avacpc AzureVMAppContainerProtectableContainer) AsAzureVMAppContainerProtectableContainer() (*AzureVMAppContainerProtectableContainer, bool) { + return &avacpc, true +} + +// AsProtectableContainer is the BasicProtectableContainer implementation for AzureVMAppContainerProtectableContainer. +func (avacpc AzureVMAppContainerProtectableContainer) AsProtectableContainer() (*ProtectableContainer, bool) { + return nil, false +} + +// AsBasicProtectableContainer is the BasicProtectableContainer implementation for AzureVMAppContainerProtectableContainer. +func (avacpc AzureVMAppContainerProtectableContainer) AsBasicProtectableContainer() (BasicProtectableContainer, bool) { + return &avacpc, true +} + +// AzureVMAppContainerProtectionContainer container for SQL workloads under Azure Virtual Machines. +type AzureVMAppContainerProtectionContainer struct { + // SourceResourceID - ARM ID of the virtual machine represented by this Azure Workload Container + SourceResourceID *string `json:"sourceResourceId,omitempty"` + // LastUpdatedTime - Time stamp when this container was updated. + LastUpdatedTime *date.Time `json:"lastUpdatedTime,omitempty"` + // ExtendedInfo - Additional details of a workload container. + ExtendedInfo *AzureWorkloadContainerExtendedInfo `json:"extendedInfo,omitempty"` + // WorkloadType - Workload type for which registration was sent. Possible values include: 'WorkloadTypeInvalid', 'WorkloadTypeVM', 'WorkloadTypeFileFolder', 'WorkloadTypeAzureSQLDb', 'WorkloadTypeSQLDB', 'WorkloadTypeExchange', 'WorkloadTypeSharepoint', 'WorkloadTypeVMwareVM', 'WorkloadTypeSystemState', 'WorkloadTypeClient', 'WorkloadTypeGenericDataSource', 'WorkloadTypeSQLDataBase', 'WorkloadTypeAzureFileShare', 'WorkloadTypeSAPHanaDatabase', 'WorkloadTypeSAPAseDatabase' + WorkloadType WorkloadType `json:"workloadType,omitempty"` + // OperationType - Re-Do Operation. Possible values include: 'OperationTypeInvalid', 'OperationTypeRegister', 'OperationTypeReregister' + OperationType OperationType `json:"operationType,omitempty"` + // FriendlyName - Friendly name of the container. + FriendlyName *string `json:"friendlyName,omitempty"` + // BackupManagementType - Type of backup management for the container. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // RegistrationStatus - Status of registration of the container with the Recovery Services Vault. + RegistrationStatus *string `json:"registrationStatus,omitempty"` + // HealthStatus - Status of health of the container. + HealthStatus *string `json:"healthStatus,omitempty"` + // ContainerType - Possible values include: 'ContainerTypeBasicProtectionContainerContainerTypeProtectionContainer', 'ContainerTypeBasicProtectionContainerContainerTypeAzureBackupServerContainer', 'ContainerTypeBasicProtectionContainerContainerTypeMicrosoftClassicComputevirtualMachines', 'ContainerTypeBasicProtectionContainerContainerTypeMicrosoftComputevirtualMachines', 'ContainerTypeBasicProtectionContainerContainerTypeSQLAGWorkLoadContainer', 'ContainerTypeBasicProtectionContainerContainerTypeAzureSQLContainer', 'ContainerTypeBasicProtectionContainerContainerTypeStorageContainer', 'ContainerTypeBasicProtectionContainerContainerTypeVMAppContainer', 'ContainerTypeBasicProtectionContainerContainerTypeAzureWorkloadContainer', 'ContainerTypeBasicProtectionContainerContainerTypeDPMContainer', 'ContainerTypeBasicProtectionContainerContainerTypeGenericContainer', 'ContainerTypeBasicProtectionContainerContainerTypeIaaSVMContainer', 'ContainerTypeBasicProtectionContainerContainerTypeWindows' + ContainerType ContainerTypeBasicProtectionContainer `json:"containerType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureVMAppContainerProtectionContainer. +func (avacpc AzureVMAppContainerProtectionContainer) MarshalJSON() ([]byte, error) { + avacpc.ContainerType = ContainerTypeBasicProtectionContainerContainerTypeVMAppContainer + objectMap := make(map[string]interface{}) + if avacpc.SourceResourceID != nil { + objectMap["sourceResourceId"] = avacpc.SourceResourceID + } + if avacpc.LastUpdatedTime != nil { + objectMap["lastUpdatedTime"] = avacpc.LastUpdatedTime + } + if avacpc.ExtendedInfo != nil { + objectMap["extendedInfo"] = avacpc.ExtendedInfo + } + if avacpc.WorkloadType != "" { + objectMap["workloadType"] = avacpc.WorkloadType + } + if avacpc.OperationType != "" { + objectMap["operationType"] = avacpc.OperationType + } + if avacpc.FriendlyName != nil { + objectMap["friendlyName"] = avacpc.FriendlyName + } + if avacpc.BackupManagementType != "" { + objectMap["backupManagementType"] = avacpc.BackupManagementType + } + if avacpc.RegistrationStatus != nil { + objectMap["registrationStatus"] = avacpc.RegistrationStatus + } + if avacpc.HealthStatus != nil { + objectMap["healthStatus"] = avacpc.HealthStatus + } + if avacpc.ContainerType != "" { + objectMap["containerType"] = avacpc.ContainerType + } + return json.Marshal(objectMap) +} + +// AsAzureBackupServerContainer is the BasicProtectionContainer implementation for AzureVMAppContainerProtectionContainer. +func (avacpc AzureVMAppContainerProtectionContainer) AsAzureBackupServerContainer() (*AzureBackupServerContainer, bool) { + return nil, false +} + +// AsAzureIaaSClassicComputeVMContainer is the BasicProtectionContainer implementation for AzureVMAppContainerProtectionContainer. +func (avacpc AzureVMAppContainerProtectionContainer) AsAzureIaaSClassicComputeVMContainer() (*AzureIaaSClassicComputeVMContainer, bool) { + return nil, false +} + +// AsAzureIaaSComputeVMContainer is the BasicProtectionContainer implementation for AzureVMAppContainerProtectionContainer. +func (avacpc AzureVMAppContainerProtectionContainer) AsAzureIaaSComputeVMContainer() (*AzureIaaSComputeVMContainer, bool) { + return nil, false +} + +// AsAzureSQLAGWorkloadContainerProtectionContainer is the BasicProtectionContainer implementation for AzureVMAppContainerProtectionContainer. +func (avacpc AzureVMAppContainerProtectionContainer) AsAzureSQLAGWorkloadContainerProtectionContainer() (*AzureSQLAGWorkloadContainerProtectionContainer, bool) { + return nil, false +} + +// AsAzureSQLContainer is the BasicProtectionContainer implementation for AzureVMAppContainerProtectionContainer. +func (avacpc AzureVMAppContainerProtectionContainer) AsAzureSQLContainer() (*AzureSQLContainer, bool) { + return nil, false +} + +// AsAzureStorageContainer is the BasicProtectionContainer implementation for AzureVMAppContainerProtectionContainer. +func (avacpc AzureVMAppContainerProtectionContainer) AsAzureStorageContainer() (*AzureStorageContainer, bool) { + return nil, false +} + +// AsAzureVMAppContainerProtectionContainer is the BasicProtectionContainer implementation for AzureVMAppContainerProtectionContainer. +func (avacpc AzureVMAppContainerProtectionContainer) AsAzureVMAppContainerProtectionContainer() (*AzureVMAppContainerProtectionContainer, bool) { + return &avacpc, true +} + +// AsAzureWorkloadContainer is the BasicProtectionContainer implementation for AzureVMAppContainerProtectionContainer. +func (avacpc AzureVMAppContainerProtectionContainer) AsAzureWorkloadContainer() (*AzureWorkloadContainer, bool) { + return nil, false +} + +// AsBasicAzureWorkloadContainer is the BasicProtectionContainer implementation for AzureVMAppContainerProtectionContainer. +func (avacpc AzureVMAppContainerProtectionContainer) AsBasicAzureWorkloadContainer() (BasicAzureWorkloadContainer, bool) { + return &avacpc, true +} + +// AsDpmContainer is the BasicProtectionContainer implementation for AzureVMAppContainerProtectionContainer. +func (avacpc AzureVMAppContainerProtectionContainer) AsDpmContainer() (*DpmContainer, bool) { + return nil, false +} + +// AsBasicDpmContainer is the BasicProtectionContainer implementation for AzureVMAppContainerProtectionContainer. +func (avacpc AzureVMAppContainerProtectionContainer) AsBasicDpmContainer() (BasicDpmContainer, bool) { + return nil, false +} + +// AsGenericContainer is the BasicProtectionContainer implementation for AzureVMAppContainerProtectionContainer. +func (avacpc AzureVMAppContainerProtectionContainer) AsGenericContainer() (*GenericContainer, bool) { + return nil, false +} + +// AsIaaSVMContainer is the BasicProtectionContainer implementation for AzureVMAppContainerProtectionContainer. +func (avacpc AzureVMAppContainerProtectionContainer) AsIaaSVMContainer() (*IaaSVMContainer, bool) { + return nil, false +} + +// AsBasicIaaSVMContainer is the BasicProtectionContainer implementation for AzureVMAppContainerProtectionContainer. +func (avacpc AzureVMAppContainerProtectionContainer) AsBasicIaaSVMContainer() (BasicIaaSVMContainer, bool) { + return nil, false +} + +// AsMabContainer is the BasicProtectionContainer implementation for AzureVMAppContainerProtectionContainer. +func (avacpc AzureVMAppContainerProtectionContainer) AsMabContainer() (*MabContainer, bool) { + return nil, false +} + +// AsProtectionContainer is the BasicProtectionContainer implementation for AzureVMAppContainerProtectionContainer. +func (avacpc AzureVMAppContainerProtectionContainer) AsProtectionContainer() (*ProtectionContainer, bool) { + return nil, false +} + +// AsBasicProtectionContainer is the BasicProtectionContainer implementation for AzureVMAppContainerProtectionContainer. +func (avacpc AzureVMAppContainerProtectionContainer) AsBasicProtectionContainer() (BasicProtectionContainer, bool) { + return &avacpc, true +} + +// AzureVMResourceFeatureSupportRequest azureResource(IaaS VM) Specific feature support request +type AzureVMResourceFeatureSupportRequest struct { + // VMSize - Size of the resource: VM size(A/D series etc) in case of IaasVM + VMSize *string `json:"vmSize,omitempty"` + // VMSku - SKUs (Premium/Managed etc) in case of IaasVM + VMSku *string `json:"vmSku,omitempty"` + // FeatureType - Possible values include: 'FeatureTypeFeatureSupportRequest', 'FeatureTypeAzureBackupGoals', 'FeatureTypeAzureVMResourceBackup' + FeatureType FeatureType `json:"featureType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureVMResourceFeatureSupportRequest. +func (avrfsr AzureVMResourceFeatureSupportRequest) MarshalJSON() ([]byte, error) { + avrfsr.FeatureType = FeatureTypeAzureVMResourceBackup + objectMap := make(map[string]interface{}) + if avrfsr.VMSize != nil { + objectMap["vmSize"] = avrfsr.VMSize + } + if avrfsr.VMSku != nil { + objectMap["vmSku"] = avrfsr.VMSku + } + if avrfsr.FeatureType != "" { + objectMap["featureType"] = avrfsr.FeatureType + } + return json.Marshal(objectMap) +} + +// AsAzureBackupGoalFeatureSupportRequest is the BasicFeatureSupportRequest implementation for AzureVMResourceFeatureSupportRequest. +func (avrfsr AzureVMResourceFeatureSupportRequest) AsAzureBackupGoalFeatureSupportRequest() (*AzureBackupGoalFeatureSupportRequest, bool) { + return nil, false +} + +// AsAzureVMResourceFeatureSupportRequest is the BasicFeatureSupportRequest implementation for AzureVMResourceFeatureSupportRequest. +func (avrfsr AzureVMResourceFeatureSupportRequest) AsAzureVMResourceFeatureSupportRequest() (*AzureVMResourceFeatureSupportRequest, bool) { + return &avrfsr, true +} + +// AsFeatureSupportRequest is the BasicFeatureSupportRequest implementation for AzureVMResourceFeatureSupportRequest. +func (avrfsr AzureVMResourceFeatureSupportRequest) AsFeatureSupportRequest() (*FeatureSupportRequest, bool) { + return nil, false +} + +// AsBasicFeatureSupportRequest is the BasicFeatureSupportRequest implementation for AzureVMResourceFeatureSupportRequest. +func (avrfsr AzureVMResourceFeatureSupportRequest) AsBasicFeatureSupportRequest() (BasicFeatureSupportRequest, bool) { + return &avrfsr, true +} + +// AzureVMResourceFeatureSupportResponse response for feature support requests for Azure IaasVm +type AzureVMResourceFeatureSupportResponse struct { + autorest.Response `json:"-"` + // SupportStatus - Support status of feature. Possible values include: 'SupportStatusInvalid', 'SupportStatusSupported', 'SupportStatusDefaultOFF', 'SupportStatusDefaultON', 'SupportStatusNotSupported' + SupportStatus SupportStatus `json:"supportStatus,omitempty"` +} + +// BasicAzureVMWorkloadItem azure VM workload-specific workload item. +type BasicAzureVMWorkloadItem interface { + AsAzureVMWorkloadSAPAseDatabaseWorkloadItem() (*AzureVMWorkloadSAPAseDatabaseWorkloadItem, bool) + AsAzureVMWorkloadSAPAseSystemWorkloadItem() (*AzureVMWorkloadSAPAseSystemWorkloadItem, bool) + AsAzureVMWorkloadSAPHanaDatabaseWorkloadItem() (*AzureVMWorkloadSAPHanaDatabaseWorkloadItem, bool) + AsAzureVMWorkloadSAPHanaSystemWorkloadItem() (*AzureVMWorkloadSAPHanaSystemWorkloadItem, bool) + AsAzureVMWorkloadSQLDatabaseWorkloadItem() (*AzureVMWorkloadSQLDatabaseWorkloadItem, bool) + AsAzureVMWorkloadSQLInstanceWorkloadItem() (*AzureVMWorkloadSQLInstanceWorkloadItem, bool) + AsAzureVMWorkloadItem() (*AzureVMWorkloadItem, bool) +} + +// AzureVMWorkloadItem azure VM workload-specific workload item. +type AzureVMWorkloadItem struct { + // ParentName - Name for instance or AG + ParentName *string `json:"parentName,omitempty"` + // ServerName - Host/Cluster Name for instance or AG + ServerName *string `json:"serverName,omitempty"` + // IsAutoProtectable - Indicates if workload item is auto-protectable + IsAutoProtectable *bool `json:"isAutoProtectable,omitempty"` + // Subinquireditemcount - For instance or AG, indicates number of DB's present + Subinquireditemcount *int32 `json:"subinquireditemcount,omitempty"` + // SubWorkloadItemCount - For instance or AG, indicates number of DB's to be protected + SubWorkloadItemCount *int32 `json:"subWorkloadItemCount,omitempty"` + // BackupManagementType - Type of backup management to backup an item. + BackupManagementType *string `json:"backupManagementType,omitempty"` + // WorkloadType - Type of workload for the backup management + WorkloadType *string `json:"workloadType,omitempty"` + // FriendlyName - Friendly name of the backup item. + FriendlyName *string `json:"friendlyName,omitempty"` + // ProtectionState - State of the back up item. Possible values include: 'ProtectionStatusInvalid', 'ProtectionStatusNotProtected', 'ProtectionStatusProtecting', 'ProtectionStatusProtected', 'ProtectionStatusProtectionFailed' + ProtectionState ProtectionStatus `json:"protectionState,omitempty"` + // WorkloadItemType - Possible values include: 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeWorkloadItem', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeAzureVMWorkloadItem', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPAseDatabase', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPAseSystem', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPHanaDatabase', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPHanaSystem', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSQLDataBase', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSQLInstance' + WorkloadItemType WorkloadItemTypeBasicWorkloadItem `json:"workloadItemType,omitempty"` +} + +func unmarshalBasicAzureVMWorkloadItem(body []byte) (BasicAzureVMWorkloadItem, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["workloadItemType"] { + case string(WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPAseDatabase): + var avwsadwi AzureVMWorkloadSAPAseDatabaseWorkloadItem + err := json.Unmarshal(body, &avwsadwi) + return avwsadwi, err + case string(WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPAseSystem): + var avwsaswi AzureVMWorkloadSAPAseSystemWorkloadItem + err := json.Unmarshal(body, &avwsaswi) + return avwsaswi, err + case string(WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPHanaDatabase): + var avwshdwi AzureVMWorkloadSAPHanaDatabaseWorkloadItem + err := json.Unmarshal(body, &avwshdwi) + return avwshdwi, err + case string(WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPHanaSystem): + var avwshswi AzureVMWorkloadSAPHanaSystemWorkloadItem + err := json.Unmarshal(body, &avwshswi) + return avwshswi, err + case string(WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSQLDataBase): + var avwsdwi AzureVMWorkloadSQLDatabaseWorkloadItem + err := json.Unmarshal(body, &avwsdwi) + return avwsdwi, err + case string(WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSQLInstance): + var avwsiwi AzureVMWorkloadSQLInstanceWorkloadItem + err := json.Unmarshal(body, &avwsiwi) + return avwsiwi, err + default: + var avwi AzureVMWorkloadItem + err := json.Unmarshal(body, &avwi) + return avwi, err + } +} +func unmarshalBasicAzureVMWorkloadItemArray(body []byte) ([]BasicAzureVMWorkloadItem, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + avwiArray := make([]BasicAzureVMWorkloadItem, len(rawMessages)) + + for index, rawMessage := range rawMessages { + avwi, err := unmarshalBasicAzureVMWorkloadItem(*rawMessage) + if err != nil { + return nil, err + } + avwiArray[index] = avwi + } + return avwiArray, nil +} + +// MarshalJSON is the custom marshaler for AzureVMWorkloadItem. +func (avwi AzureVMWorkloadItem) MarshalJSON() ([]byte, error) { + avwi.WorkloadItemType = WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeAzureVMWorkloadItem + objectMap := make(map[string]interface{}) + if avwi.ParentName != nil { + objectMap["parentName"] = avwi.ParentName + } + if avwi.ServerName != nil { + objectMap["serverName"] = avwi.ServerName + } + if avwi.IsAutoProtectable != nil { + objectMap["isAutoProtectable"] = avwi.IsAutoProtectable + } + if avwi.Subinquireditemcount != nil { + objectMap["subinquireditemcount"] = avwi.Subinquireditemcount + } + if avwi.SubWorkloadItemCount != nil { + objectMap["subWorkloadItemCount"] = avwi.SubWorkloadItemCount + } + if avwi.BackupManagementType != nil { + objectMap["backupManagementType"] = avwi.BackupManagementType + } + if avwi.WorkloadType != nil { + objectMap["workloadType"] = avwi.WorkloadType + } + if avwi.FriendlyName != nil { + objectMap["friendlyName"] = avwi.FriendlyName + } + if avwi.ProtectionState != "" { + objectMap["protectionState"] = avwi.ProtectionState + } + if avwi.WorkloadItemType != "" { + objectMap["workloadItemType"] = avwi.WorkloadItemType + } + return json.Marshal(objectMap) +} + +// AsAzureVMWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadItem. +func (avwi AzureVMWorkloadItem) AsAzureVMWorkloadItem() (*AzureVMWorkloadItem, bool) { + return &avwi, true +} + +// AsBasicAzureVMWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadItem. +func (avwi AzureVMWorkloadItem) AsBasicAzureVMWorkloadItem() (BasicAzureVMWorkloadItem, bool) { + return &avwi, true +} + +// AsAzureVMWorkloadSAPAseDatabaseWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadItem. +func (avwi AzureVMWorkloadItem) AsAzureVMWorkloadSAPAseDatabaseWorkloadItem() (*AzureVMWorkloadSAPAseDatabaseWorkloadItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPAseSystemWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadItem. +func (avwi AzureVMWorkloadItem) AsAzureVMWorkloadSAPAseSystemWorkloadItem() (*AzureVMWorkloadSAPAseSystemWorkloadItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaDatabaseWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadItem. +func (avwi AzureVMWorkloadItem) AsAzureVMWorkloadSAPHanaDatabaseWorkloadItem() (*AzureVMWorkloadSAPHanaDatabaseWorkloadItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaSystemWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadItem. +func (avwi AzureVMWorkloadItem) AsAzureVMWorkloadSAPHanaSystemWorkloadItem() (*AzureVMWorkloadSAPHanaSystemWorkloadItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLDatabaseWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadItem. +func (avwi AzureVMWorkloadItem) AsAzureVMWorkloadSQLDatabaseWorkloadItem() (*AzureVMWorkloadSQLDatabaseWorkloadItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLInstanceWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadItem. +func (avwi AzureVMWorkloadItem) AsAzureVMWorkloadSQLInstanceWorkloadItem() (*AzureVMWorkloadSQLInstanceWorkloadItem, bool) { + return nil, false +} + +// AsWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadItem. +func (avwi AzureVMWorkloadItem) AsWorkloadItem() (*WorkloadItem, bool) { + return nil, false +} + +// AsBasicWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadItem. +func (avwi AzureVMWorkloadItem) AsBasicWorkloadItem() (BasicWorkloadItem, bool) { + return &avwi, true +} + +// BasicAzureVMWorkloadProtectableItem azure VM workload-specific protectable item. +type BasicAzureVMWorkloadProtectableItem interface { + AsAzureVMWorkloadSAPAseSystemProtectableItem() (*AzureVMWorkloadSAPAseSystemProtectableItem, bool) + AsAzureVMWorkloadSAPHanaDatabaseProtectableItem() (*AzureVMWorkloadSAPHanaDatabaseProtectableItem, bool) + AsAzureVMWorkloadSAPHanaSystemProtectableItem() (*AzureVMWorkloadSAPHanaSystemProtectableItem, bool) + AsAzureVMWorkloadSQLAvailabilityGroupProtectableItem() (*AzureVMWorkloadSQLAvailabilityGroupProtectableItem, bool) + AsAzureVMWorkloadSQLDatabaseProtectableItem() (*AzureVMWorkloadSQLDatabaseProtectableItem, bool) + AsAzureVMWorkloadSQLInstanceProtectableItem() (*AzureVMWorkloadSQLInstanceProtectableItem, bool) + AsAzureVMWorkloadProtectableItem() (*AzureVMWorkloadProtectableItem, bool) +} + +// AzureVMWorkloadProtectableItem azure VM workload-specific protectable item. +type AzureVMWorkloadProtectableItem struct { + // ParentName - Name for instance or AG + ParentName *string `json:"parentName,omitempty"` + // ParentUniqueName - Parent Unique Name is added to provide the service formatted URI Name of the Parent + // Only Applicable for data bases where the parent would be either Instance or a SQL AG. + ParentUniqueName *string `json:"parentUniqueName,omitempty"` + // ServerName - Host/Cluster Name for instance or AG + ServerName *string `json:"serverName,omitempty"` + // IsAutoProtectable - Indicates if protectable item is auto-protectable + IsAutoProtectable *bool `json:"isAutoProtectable,omitempty"` + // IsAutoProtected - Indicates if protectable item is auto-protected + IsAutoProtected *bool `json:"isAutoProtected,omitempty"` + // Subinquireditemcount - For instance or AG, indicates number of DB's present + Subinquireditemcount *int32 `json:"subinquireditemcount,omitempty"` + // Subprotectableitemcount - For instance or AG, indicates number of DB's to be protected + Subprotectableitemcount *int32 `json:"subprotectableitemcount,omitempty"` + // Prebackupvalidation - Pre-backup validation for protectable objects + Prebackupvalidation *PreBackupValidation `json:"prebackupvalidation,omitempty"` + // BackupManagementType - Type of backup management to backup an item. + BackupManagementType *string `json:"backupManagementType,omitempty"` + // WorkloadType - Type of workload for the backup management + WorkloadType *string `json:"workloadType,omitempty"` + // FriendlyName - Friendly name of the backup item. + FriendlyName *string `json:"friendlyName,omitempty"` + // ProtectionState - State of the back up item. Possible values include: 'ProtectionStatusInvalid', 'ProtectionStatusNotProtected', 'ProtectionStatusProtecting', 'ProtectionStatusProtected', 'ProtectionStatusProtectionFailed' + ProtectionState ProtectionStatus `json:"protectionState,omitempty"` + // ProtectableItemType - Possible values include: 'ProtectableItemTypeWorkloadProtectableItem', 'ProtectableItemTypeAzureFileShare', 'ProtectableItemTypeMicrosoftClassicComputevirtualMachines', 'ProtectableItemTypeMicrosoftComputevirtualMachines', 'ProtectableItemTypeAzureVMWorkloadProtectableItem', 'ProtectableItemTypeSAPAseSystem', 'ProtectableItemTypeSAPHanaDatabase', 'ProtectableItemTypeSAPHanaSystem', 'ProtectableItemTypeSQLAvailabilityGroupContainer', 'ProtectableItemTypeSQLDataBase', 'ProtectableItemTypeSQLInstance', 'ProtectableItemTypeIaaSVMProtectableItem' + ProtectableItemType ProtectableItemType `json:"protectableItemType,omitempty"` +} + +func unmarshalBasicAzureVMWorkloadProtectableItem(body []byte) (BasicAzureVMWorkloadProtectableItem, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["protectableItemType"] { + case string(ProtectableItemTypeSAPAseSystem): + var avwsaspi AzureVMWorkloadSAPAseSystemProtectableItem + err := json.Unmarshal(body, &avwsaspi) + return avwsaspi, err + case string(ProtectableItemTypeSAPHanaDatabase): + var avwshdpi AzureVMWorkloadSAPHanaDatabaseProtectableItem + err := json.Unmarshal(body, &avwshdpi) + return avwshdpi, err + case string(ProtectableItemTypeSAPHanaSystem): + var avwshspi AzureVMWorkloadSAPHanaSystemProtectableItem + err := json.Unmarshal(body, &avwshspi) + return avwshspi, err + case string(ProtectableItemTypeSQLAvailabilityGroupContainer): + var avwsagpi AzureVMWorkloadSQLAvailabilityGroupProtectableItem + err := json.Unmarshal(body, &avwsagpi) + return avwsagpi, err + case string(ProtectableItemTypeSQLDataBase): + var avwsdpi AzureVMWorkloadSQLDatabaseProtectableItem + err := json.Unmarshal(body, &avwsdpi) + return avwsdpi, err + case string(ProtectableItemTypeSQLInstance): + var avwsipi AzureVMWorkloadSQLInstanceProtectableItem + err := json.Unmarshal(body, &avwsipi) + return avwsipi, err + default: + var avwpi AzureVMWorkloadProtectableItem + err := json.Unmarshal(body, &avwpi) + return avwpi, err + } +} +func unmarshalBasicAzureVMWorkloadProtectableItemArray(body []byte) ([]BasicAzureVMWorkloadProtectableItem, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + avwpiArray := make([]BasicAzureVMWorkloadProtectableItem, len(rawMessages)) + + for index, rawMessage := range rawMessages { + avwpi, err := unmarshalBasicAzureVMWorkloadProtectableItem(*rawMessage) + if err != nil { + return nil, err + } + avwpiArray[index] = avwpi + } + return avwpiArray, nil +} + +// MarshalJSON is the custom marshaler for AzureVMWorkloadProtectableItem. +func (avwpi AzureVMWorkloadProtectableItem) MarshalJSON() ([]byte, error) { + avwpi.ProtectableItemType = ProtectableItemTypeAzureVMWorkloadProtectableItem + objectMap := make(map[string]interface{}) + if avwpi.ParentName != nil { + objectMap["parentName"] = avwpi.ParentName + } + if avwpi.ParentUniqueName != nil { + objectMap["parentUniqueName"] = avwpi.ParentUniqueName + } + if avwpi.ServerName != nil { + objectMap["serverName"] = avwpi.ServerName + } + if avwpi.IsAutoProtectable != nil { + objectMap["isAutoProtectable"] = avwpi.IsAutoProtectable + } + if avwpi.IsAutoProtected != nil { + objectMap["isAutoProtected"] = avwpi.IsAutoProtected + } + if avwpi.Subinquireditemcount != nil { + objectMap["subinquireditemcount"] = avwpi.Subinquireditemcount + } + if avwpi.Subprotectableitemcount != nil { + objectMap["subprotectableitemcount"] = avwpi.Subprotectableitemcount + } + if avwpi.Prebackupvalidation != nil { + objectMap["prebackupvalidation"] = avwpi.Prebackupvalidation + } + if avwpi.BackupManagementType != nil { + objectMap["backupManagementType"] = avwpi.BackupManagementType + } + if avwpi.WorkloadType != nil { + objectMap["workloadType"] = avwpi.WorkloadType + } + if avwpi.FriendlyName != nil { + objectMap["friendlyName"] = avwpi.FriendlyName + } + if avwpi.ProtectionState != "" { + objectMap["protectionState"] = avwpi.ProtectionState + } + if avwpi.ProtectableItemType != "" { + objectMap["protectableItemType"] = avwpi.ProtectableItemType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadProtectableItem. +func (avwpi AzureVMWorkloadProtectableItem) AsAzureFileShareProtectableItem() (*AzureFileShareProtectableItem, bool) { + return nil, false +} + +// AsAzureIaaSClassicComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadProtectableItem. +func (avwpi AzureVMWorkloadProtectableItem) AsAzureIaaSClassicComputeVMProtectableItem() (*AzureIaaSClassicComputeVMProtectableItem, bool) { + return nil, false +} + +// AsAzureIaaSComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadProtectableItem. +func (avwpi AzureVMWorkloadProtectableItem) AsAzureIaaSComputeVMProtectableItem() (*AzureIaaSComputeVMProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadProtectableItem. +func (avwpi AzureVMWorkloadProtectableItem) AsAzureVMWorkloadProtectableItem() (*AzureVMWorkloadProtectableItem, bool) { + return &avwpi, true +} + +// AsBasicAzureVMWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadProtectableItem. +func (avwpi AzureVMWorkloadProtectableItem) AsBasicAzureVMWorkloadProtectableItem() (BasicAzureVMWorkloadProtectableItem, bool) { + return &avwpi, true +} + +// AsAzureVMWorkloadSAPAseSystemProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadProtectableItem. +func (avwpi AzureVMWorkloadProtectableItem) AsAzureVMWorkloadSAPAseSystemProtectableItem() (*AzureVMWorkloadSAPAseSystemProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaDatabaseProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadProtectableItem. +func (avwpi AzureVMWorkloadProtectableItem) AsAzureVMWorkloadSAPHanaDatabaseProtectableItem() (*AzureVMWorkloadSAPHanaDatabaseProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaSystemProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadProtectableItem. +func (avwpi AzureVMWorkloadProtectableItem) AsAzureVMWorkloadSAPHanaSystemProtectableItem() (*AzureVMWorkloadSAPHanaSystemProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLAvailabilityGroupProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadProtectableItem. +func (avwpi AzureVMWorkloadProtectableItem) AsAzureVMWorkloadSQLAvailabilityGroupProtectableItem() (*AzureVMWorkloadSQLAvailabilityGroupProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLDatabaseProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadProtectableItem. +func (avwpi AzureVMWorkloadProtectableItem) AsAzureVMWorkloadSQLDatabaseProtectableItem() (*AzureVMWorkloadSQLDatabaseProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLInstanceProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadProtectableItem. +func (avwpi AzureVMWorkloadProtectableItem) AsAzureVMWorkloadSQLInstanceProtectableItem() (*AzureVMWorkloadSQLInstanceProtectableItem, bool) { + return nil, false +} + +// AsIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadProtectableItem. +func (avwpi AzureVMWorkloadProtectableItem) AsIaaSVMProtectableItem() (*IaaSVMProtectableItem, bool) { + return nil, false +} + +// AsBasicIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadProtectableItem. +func (avwpi AzureVMWorkloadProtectableItem) AsBasicIaaSVMProtectableItem() (BasicIaaSVMProtectableItem, bool) { + return nil, false +} + +// AsWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadProtectableItem. +func (avwpi AzureVMWorkloadProtectableItem) AsWorkloadProtectableItem() (*WorkloadProtectableItem, bool) { + return nil, false +} + +// AsBasicWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadProtectableItem. +func (avwpi AzureVMWorkloadProtectableItem) AsBasicWorkloadProtectableItem() (BasicWorkloadProtectableItem, bool) { + return &avwpi, true +} + +// BasicAzureVMWorkloadProtectedItem azure VM workload-specific protected item. +type BasicAzureVMWorkloadProtectedItem interface { + AsAzureVMWorkloadSAPAseDatabaseProtectedItem() (*AzureVMWorkloadSAPAseDatabaseProtectedItem, bool) + AsAzureVMWorkloadSAPHanaDatabaseProtectedItem() (*AzureVMWorkloadSAPHanaDatabaseProtectedItem, bool) + AsAzureVMWorkloadSQLDatabaseProtectedItem() (*AzureVMWorkloadSQLDatabaseProtectedItem, bool) + AsAzureVMWorkloadProtectedItem() (*AzureVMWorkloadProtectedItem, bool) +} + +// AzureVMWorkloadProtectedItem azure VM workload-specific protected item. +type AzureVMWorkloadProtectedItem struct { + // FriendlyName - Friendly name of the DB represented by this backup item. + FriendlyName *string `json:"friendlyName,omitempty"` + // ServerName - Host/Cluster Name for instance or AG + ServerName *string `json:"serverName,omitempty"` + // ParentName - Parent name of the DB such as Instance or Availability Group. + ParentName *string `json:"parentName,omitempty"` + // ParentType - Parent type of protected item, example: for a DB, standalone server or distributed + ParentType *string `json:"parentType,omitempty"` + // ProtectionStatus - Backup status of this backup item. + ProtectionStatus *string `json:"protectionStatus,omitempty"` + // ProtectionState - Backup state of this backup item. Possible values include: 'ProtectionStateInvalid', 'ProtectionStateIRPending', 'ProtectionStateProtected', 'ProtectionStateProtectionError', 'ProtectionStateProtectionStopped', 'ProtectionStateProtectionPaused' + ProtectionState ProtectionState `json:"protectionState,omitempty"` + // LastBackupStatus - Last backup operation status. Possible values: Healthy, Unhealthy. Possible values include: 'LastBackupStatusInvalid', 'LastBackupStatusHealthy', 'LastBackupStatusUnhealthy', 'LastBackupStatusIRPending' + LastBackupStatus LastBackupStatus `json:"lastBackupStatus,omitempty"` + // LastBackupTime - Timestamp of the last backup operation on this backup item. + LastBackupTime *date.Time `json:"lastBackupTime,omitempty"` + // LastBackupErrorDetail - Error details in last backup + LastBackupErrorDetail *ErrorDetail `json:"lastBackupErrorDetail,omitempty"` + // ProtectedItemDataSourceID - Data ID of the protected item. + ProtectedItemDataSourceID *string `json:"protectedItemDataSourceId,omitempty"` + // ProtectedItemHealthStatus - Health status of the backup item, evaluated based on last heartbeat received. Possible values include: 'ProtectedItemHealthStatusInvalid', 'ProtectedItemHealthStatusHealthy', 'ProtectedItemHealthStatusUnhealthy', 'ProtectedItemHealthStatusNotReachable', 'ProtectedItemHealthStatusIRPending' + ProtectedItemHealthStatus ProtectedItemHealthStatus `json:"protectedItemHealthStatus,omitempty"` + // ExtendedInfo - Additional information for this backup item. + ExtendedInfo *AzureVMWorkloadProtectedItemExtendedInfo `json:"extendedInfo,omitempty"` + // KpisHealths - Health details of different KPIs + KpisHealths map[string]*KPIResourceHealthDetails `json:"kpisHealths"` + // BackupManagementType - Type of backup management for the backed up item. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // WorkloadType - Type of workload this item represents. Possible values include: 'DataSourceTypeInvalid', 'DataSourceTypeVM', 'DataSourceTypeFileFolder', 'DataSourceTypeAzureSQLDb', 'DataSourceTypeSQLDB', 'DataSourceTypeExchange', 'DataSourceTypeSharepoint', 'DataSourceTypeVMwareVM', 'DataSourceTypeSystemState', 'DataSourceTypeClient', 'DataSourceTypeGenericDataSource', 'DataSourceTypeSQLDataBase', 'DataSourceTypeAzureFileShare', 'DataSourceTypeSAPHanaDatabase', 'DataSourceTypeSAPAseDatabase' + WorkloadType DataSourceType `json:"workloadType,omitempty"` + // ContainerName - Unique name of container + ContainerName *string `json:"containerName,omitempty"` + // SourceResourceID - ARM ID of the resource to be backed up. + SourceResourceID *string `json:"sourceResourceId,omitempty"` + // PolicyID - ID of the backup policy with which this item is backed up. + PolicyID *string `json:"policyId,omitempty"` + // LastRecoveryPoint - Timestamp when the last (latest) backup copy was created for this backup item. + LastRecoveryPoint *date.Time `json:"lastRecoveryPoint,omitempty"` + // BackupSetName - Name of the backup set the backup item belongs to + BackupSetName *string `json:"backupSetName,omitempty"` + // CreateMode - Create mode to indicate recovery of existing soft deleted data source or creation of new data source. Possible values include: 'CreateModeInvalid', 'CreateModeDefault', 'CreateModeRecover' + CreateMode CreateMode `json:"createMode,omitempty"` + // DeferredDeleteTimeInUTC - Time for deferred deletion in UTC + DeferredDeleteTimeInUTC *date.Time `json:"deferredDeleteTimeInUTC,omitempty"` + // IsScheduledForDeferredDelete - Flag to identify whether the DS is scheduled for deferred delete + IsScheduledForDeferredDelete *bool `json:"isScheduledForDeferredDelete,omitempty"` + // DeferredDeleteTimeRemaining - Time remaining before the DS marked for deferred delete is permanently deleted + DeferredDeleteTimeRemaining *string `json:"deferredDeleteTimeRemaining,omitempty"` + // IsDeferredDeleteScheduleUpcoming - Flag to identify whether the deferred deleted DS is to be purged soon + IsDeferredDeleteScheduleUpcoming *bool `json:"isDeferredDeleteScheduleUpcoming,omitempty"` + // IsRehydrate - Flag to identify that deferred deleted DS is to be moved into Pause state + IsRehydrate *bool `json:"isRehydrate,omitempty"` + // ProtectedItemType - Possible values include: 'ProtectedItemTypeProtectedItem', 'ProtectedItemTypeAzureFileShareProtectedItem', 'ProtectedItemTypeMicrosoftClassicComputevirtualMachines', 'ProtectedItemTypeMicrosoftComputevirtualMachines', 'ProtectedItemTypeAzureIaaSVMProtectedItem', 'ProtectedItemTypeMicrosoftSqlserversdatabases', 'ProtectedItemTypeAzureVMWorkloadProtectedItem', 'ProtectedItemTypeAzureVMWorkloadSAPAseDatabase', 'ProtectedItemTypeAzureVMWorkloadSAPHanaDatabase', 'ProtectedItemTypeAzureVMWorkloadSQLDatabase', 'ProtectedItemTypeDPMProtectedItem', 'ProtectedItemTypeGenericProtectedItem', 'ProtectedItemTypeMabFileFolderProtectedItem' + ProtectedItemType ProtectedItemType `json:"protectedItemType,omitempty"` +} + +func unmarshalBasicAzureVMWorkloadProtectedItem(body []byte) (BasicAzureVMWorkloadProtectedItem, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["protectedItemType"] { + case string(ProtectedItemTypeAzureVMWorkloadSAPAseDatabase): + var avwsadpi AzureVMWorkloadSAPAseDatabaseProtectedItem + err := json.Unmarshal(body, &avwsadpi) + return avwsadpi, err + case string(ProtectedItemTypeAzureVMWorkloadSAPHanaDatabase): + var avwshdpi AzureVMWorkloadSAPHanaDatabaseProtectedItem + err := json.Unmarshal(body, &avwshdpi) + return avwshdpi, err + case string(ProtectedItemTypeAzureVMWorkloadSQLDatabase): + var avwsdpi AzureVMWorkloadSQLDatabaseProtectedItem + err := json.Unmarshal(body, &avwsdpi) + return avwsdpi, err + default: + var avwpi AzureVMWorkloadProtectedItem + err := json.Unmarshal(body, &avwpi) + return avwpi, err + } +} +func unmarshalBasicAzureVMWorkloadProtectedItemArray(body []byte) ([]BasicAzureVMWorkloadProtectedItem, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + avwpiArray := make([]BasicAzureVMWorkloadProtectedItem, len(rawMessages)) + + for index, rawMessage := range rawMessages { + avwpi, err := unmarshalBasicAzureVMWorkloadProtectedItem(*rawMessage) + if err != nil { + return nil, err + } + avwpiArray[index] = avwpi + } + return avwpiArray, nil +} + +// MarshalJSON is the custom marshaler for AzureVMWorkloadProtectedItem. +func (avwpi AzureVMWorkloadProtectedItem) MarshalJSON() ([]byte, error) { + avwpi.ProtectedItemType = ProtectedItemTypeAzureVMWorkloadProtectedItem + objectMap := make(map[string]interface{}) + if avwpi.FriendlyName != nil { + objectMap["friendlyName"] = avwpi.FriendlyName + } + if avwpi.ServerName != nil { + objectMap["serverName"] = avwpi.ServerName + } + if avwpi.ParentName != nil { + objectMap["parentName"] = avwpi.ParentName + } + if avwpi.ParentType != nil { + objectMap["parentType"] = avwpi.ParentType + } + if avwpi.ProtectionStatus != nil { + objectMap["protectionStatus"] = avwpi.ProtectionStatus + } + if avwpi.ProtectionState != "" { + objectMap["protectionState"] = avwpi.ProtectionState + } + if avwpi.LastBackupStatus != "" { + objectMap["lastBackupStatus"] = avwpi.LastBackupStatus + } + if avwpi.LastBackupTime != nil { + objectMap["lastBackupTime"] = avwpi.LastBackupTime + } + if avwpi.LastBackupErrorDetail != nil { + objectMap["lastBackupErrorDetail"] = avwpi.LastBackupErrorDetail + } + if avwpi.ProtectedItemDataSourceID != nil { + objectMap["protectedItemDataSourceId"] = avwpi.ProtectedItemDataSourceID + } + if avwpi.ProtectedItemHealthStatus != "" { + objectMap["protectedItemHealthStatus"] = avwpi.ProtectedItemHealthStatus + } + if avwpi.ExtendedInfo != nil { + objectMap["extendedInfo"] = avwpi.ExtendedInfo + } + if avwpi.KpisHealths != nil { + objectMap["kpisHealths"] = avwpi.KpisHealths + } + if avwpi.BackupManagementType != "" { + objectMap["backupManagementType"] = avwpi.BackupManagementType + } + if avwpi.WorkloadType != "" { + objectMap["workloadType"] = avwpi.WorkloadType + } + if avwpi.ContainerName != nil { + objectMap["containerName"] = avwpi.ContainerName + } + if avwpi.SourceResourceID != nil { + objectMap["sourceResourceId"] = avwpi.SourceResourceID + } + if avwpi.PolicyID != nil { + objectMap["policyId"] = avwpi.PolicyID + } + if avwpi.LastRecoveryPoint != nil { + objectMap["lastRecoveryPoint"] = avwpi.LastRecoveryPoint + } + if avwpi.BackupSetName != nil { + objectMap["backupSetName"] = avwpi.BackupSetName + } + if avwpi.CreateMode != "" { + objectMap["createMode"] = avwpi.CreateMode + } + if avwpi.DeferredDeleteTimeInUTC != nil { + objectMap["deferredDeleteTimeInUTC"] = avwpi.DeferredDeleteTimeInUTC + } + if avwpi.IsScheduledForDeferredDelete != nil { + objectMap["isScheduledForDeferredDelete"] = avwpi.IsScheduledForDeferredDelete + } + if avwpi.DeferredDeleteTimeRemaining != nil { + objectMap["deferredDeleteTimeRemaining"] = avwpi.DeferredDeleteTimeRemaining + } + if avwpi.IsDeferredDeleteScheduleUpcoming != nil { + objectMap["isDeferredDeleteScheduleUpcoming"] = avwpi.IsDeferredDeleteScheduleUpcoming + } + if avwpi.IsRehydrate != nil { + objectMap["isRehydrate"] = avwpi.IsRehydrate + } + if avwpi.ProtectedItemType != "" { + objectMap["protectedItemType"] = avwpi.ProtectedItemType + } + return json.Marshal(objectMap) +} + +// AsAzureFileshareProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadProtectedItem. +func (avwpi AzureVMWorkloadProtectedItem) AsAzureFileshareProtectedItem() (*AzureFileshareProtectedItem, bool) { + return nil, false +} + +// AsAzureIaaSClassicComputeVMProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadProtectedItem. +func (avwpi AzureVMWorkloadProtectedItem) AsAzureIaaSClassicComputeVMProtectedItem() (*AzureIaaSClassicComputeVMProtectedItem, bool) { + return nil, false +} + +// AsAzureIaaSComputeVMProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadProtectedItem. +func (avwpi AzureVMWorkloadProtectedItem) AsAzureIaaSComputeVMProtectedItem() (*AzureIaaSComputeVMProtectedItem, bool) { + return nil, false +} + +// AsAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadProtectedItem. +func (avwpi AzureVMWorkloadProtectedItem) AsAzureIaaSVMProtectedItem() (*AzureIaaSVMProtectedItem, bool) { + return nil, false +} + +// AsBasicAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadProtectedItem. +func (avwpi AzureVMWorkloadProtectedItem) AsBasicAzureIaaSVMProtectedItem() (BasicAzureIaaSVMProtectedItem, bool) { + return nil, false +} + +// AsAzureSQLProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadProtectedItem. +func (avwpi AzureVMWorkloadProtectedItem) AsAzureSQLProtectedItem() (*AzureSQLProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadProtectedItem. +func (avwpi AzureVMWorkloadProtectedItem) AsAzureVMWorkloadProtectedItem() (*AzureVMWorkloadProtectedItem, bool) { + return &avwpi, true +} + +// AsBasicAzureVMWorkloadProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadProtectedItem. +func (avwpi AzureVMWorkloadProtectedItem) AsBasicAzureVMWorkloadProtectedItem() (BasicAzureVMWorkloadProtectedItem, bool) { + return &avwpi, true +} + +// AsAzureVMWorkloadSAPAseDatabaseProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadProtectedItem. +func (avwpi AzureVMWorkloadProtectedItem) AsAzureVMWorkloadSAPAseDatabaseProtectedItem() (*AzureVMWorkloadSAPAseDatabaseProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaDatabaseProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadProtectedItem. +func (avwpi AzureVMWorkloadProtectedItem) AsAzureVMWorkloadSAPHanaDatabaseProtectedItem() (*AzureVMWorkloadSAPHanaDatabaseProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLDatabaseProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadProtectedItem. +func (avwpi AzureVMWorkloadProtectedItem) AsAzureVMWorkloadSQLDatabaseProtectedItem() (*AzureVMWorkloadSQLDatabaseProtectedItem, bool) { + return nil, false +} + +// AsDPMProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadProtectedItem. +func (avwpi AzureVMWorkloadProtectedItem) AsDPMProtectedItem() (*DPMProtectedItem, bool) { + return nil, false +} + +// AsGenericProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadProtectedItem. +func (avwpi AzureVMWorkloadProtectedItem) AsGenericProtectedItem() (*GenericProtectedItem, bool) { + return nil, false +} + +// AsMabFileFolderProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadProtectedItem. +func (avwpi AzureVMWorkloadProtectedItem) AsMabFileFolderProtectedItem() (*MabFileFolderProtectedItem, bool) { + return nil, false +} + +// AsProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadProtectedItem. +func (avwpi AzureVMWorkloadProtectedItem) AsProtectedItem() (*ProtectedItem, bool) { + return nil, false +} + +// AsBasicProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadProtectedItem. +func (avwpi AzureVMWorkloadProtectedItem) AsBasicProtectedItem() (BasicProtectedItem, bool) { + return &avwpi, true +} + +// AzureVMWorkloadProtectedItemExtendedInfo additional information on Azure Workload for SQL specific +// backup item. +type AzureVMWorkloadProtectedItemExtendedInfo struct { + // OldestRecoveryPoint - The oldest backup copy available for this backup item. + OldestRecoveryPoint *date.Time `json:"oldestRecoveryPoint,omitempty"` + // RecoveryPointCount - Number of backup copies available for this backup item. + RecoveryPointCount *int32 `json:"recoveryPointCount,omitempty"` + // PolicyState - Indicates consistency of policy object and policy applied to this backup item. + PolicyState *string `json:"policyState,omitempty"` +} + +// AzureVMWorkloadProtectionPolicy azure VM (Mercury) workload-specific backup policy. +type AzureVMWorkloadProtectionPolicy struct { + // WorkLoadType - Type of workload for the backup management. Possible values include: 'WorkloadTypeInvalid', 'WorkloadTypeVM', 'WorkloadTypeFileFolder', 'WorkloadTypeAzureSQLDb', 'WorkloadTypeSQLDB', 'WorkloadTypeExchange', 'WorkloadTypeSharepoint', 'WorkloadTypeVMwareVM', 'WorkloadTypeSystemState', 'WorkloadTypeClient', 'WorkloadTypeGenericDataSource', 'WorkloadTypeSQLDataBase', 'WorkloadTypeAzureFileShare', 'WorkloadTypeSAPHanaDatabase', 'WorkloadTypeSAPAseDatabase' + WorkLoadType WorkloadType `json:"workLoadType,omitempty"` + // Settings - Common settings for the backup management + Settings *Settings `json:"settings,omitempty"` + // SubProtectionPolicy - List of sub-protection policies which includes schedule and retention + SubProtectionPolicy *[]SubProtectionPolicy `json:"subProtectionPolicy,omitempty"` + // MakePolicyConsistent - Fix the policy inconsistency + MakePolicyConsistent *bool `json:"makePolicyConsistent,omitempty"` + // ProtectedItemsCount - Number of items associated with this policy. + ProtectedItemsCount *int32 `json:"protectedItemsCount,omitempty"` + // BackupManagementType - Possible values include: 'ManagementTypeBasicProtectionPolicyBackupManagementTypeProtectionPolicy', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureWorkload', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureStorage', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureIaasVM', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureSQL', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeGenericProtectionPolicy', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeMAB' + BackupManagementType ManagementTypeBasicProtectionPolicy `json:"backupManagementType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureVMWorkloadProtectionPolicy. +func (avwpp AzureVMWorkloadProtectionPolicy) MarshalJSON() ([]byte, error) { + avwpp.BackupManagementType = ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureWorkload + objectMap := make(map[string]interface{}) + if avwpp.WorkLoadType != "" { + objectMap["workLoadType"] = avwpp.WorkLoadType + } + if avwpp.Settings != nil { + objectMap["settings"] = avwpp.Settings + } + if avwpp.SubProtectionPolicy != nil { + objectMap["subProtectionPolicy"] = avwpp.SubProtectionPolicy + } + if avwpp.MakePolicyConsistent != nil { + objectMap["makePolicyConsistent"] = avwpp.MakePolicyConsistent + } + if avwpp.ProtectedItemsCount != nil { + objectMap["protectedItemsCount"] = avwpp.ProtectedItemsCount + } + if avwpp.BackupManagementType != "" { + objectMap["backupManagementType"] = avwpp.BackupManagementType + } + return json.Marshal(objectMap) +} + +// AsAzureVMWorkloadProtectionPolicy is the BasicProtectionPolicy implementation for AzureVMWorkloadProtectionPolicy. +func (avwpp AzureVMWorkloadProtectionPolicy) AsAzureVMWorkloadProtectionPolicy() (*AzureVMWorkloadProtectionPolicy, bool) { + return &avwpp, true +} + +// AsAzureFileShareProtectionPolicy is the BasicProtectionPolicy implementation for AzureVMWorkloadProtectionPolicy. +func (avwpp AzureVMWorkloadProtectionPolicy) AsAzureFileShareProtectionPolicy() (*AzureFileShareProtectionPolicy, bool) { + return nil, false +} + +// AsAzureIaaSVMProtectionPolicy is the BasicProtectionPolicy implementation for AzureVMWorkloadProtectionPolicy. +func (avwpp AzureVMWorkloadProtectionPolicy) AsAzureIaaSVMProtectionPolicy() (*AzureIaaSVMProtectionPolicy, bool) { + return nil, false +} + +// AsAzureSQLProtectionPolicy is the BasicProtectionPolicy implementation for AzureVMWorkloadProtectionPolicy. +func (avwpp AzureVMWorkloadProtectionPolicy) AsAzureSQLProtectionPolicy() (*AzureSQLProtectionPolicy, bool) { + return nil, false +} + +// AsGenericProtectionPolicy is the BasicProtectionPolicy implementation for AzureVMWorkloadProtectionPolicy. +func (avwpp AzureVMWorkloadProtectionPolicy) AsGenericProtectionPolicy() (*GenericProtectionPolicy, bool) { + return nil, false +} + +// AsMabProtectionPolicy is the BasicProtectionPolicy implementation for AzureVMWorkloadProtectionPolicy. +func (avwpp AzureVMWorkloadProtectionPolicy) AsMabProtectionPolicy() (*MabProtectionPolicy, bool) { + return nil, false +} + +// AsProtectionPolicy is the BasicProtectionPolicy implementation for AzureVMWorkloadProtectionPolicy. +func (avwpp AzureVMWorkloadProtectionPolicy) AsProtectionPolicy() (*ProtectionPolicy, bool) { + return nil, false +} + +// AsBasicProtectionPolicy is the BasicProtectionPolicy implementation for AzureVMWorkloadProtectionPolicy. +func (avwpp AzureVMWorkloadProtectionPolicy) AsBasicProtectionPolicy() (BasicProtectionPolicy, bool) { + return &avwpp, true +} + +// AzureVMWorkloadSAPAseDatabaseProtectedItem azure VM workload-specific protected item representing SAP +// ASE Database. +type AzureVMWorkloadSAPAseDatabaseProtectedItem struct { + // FriendlyName - Friendly name of the DB represented by this backup item. + FriendlyName *string `json:"friendlyName,omitempty"` + // ServerName - Host/Cluster Name for instance or AG + ServerName *string `json:"serverName,omitempty"` + // ParentName - Parent name of the DB such as Instance or Availability Group. + ParentName *string `json:"parentName,omitempty"` + // ParentType - Parent type of protected item, example: for a DB, standalone server or distributed + ParentType *string `json:"parentType,omitempty"` + // ProtectionStatus - Backup status of this backup item. + ProtectionStatus *string `json:"protectionStatus,omitempty"` + // ProtectionState - Backup state of this backup item. Possible values include: 'ProtectionStateInvalid', 'ProtectionStateIRPending', 'ProtectionStateProtected', 'ProtectionStateProtectionError', 'ProtectionStateProtectionStopped', 'ProtectionStateProtectionPaused' + ProtectionState ProtectionState `json:"protectionState,omitempty"` + // LastBackupStatus - Last backup operation status. Possible values: Healthy, Unhealthy. Possible values include: 'LastBackupStatusInvalid', 'LastBackupStatusHealthy', 'LastBackupStatusUnhealthy', 'LastBackupStatusIRPending' + LastBackupStatus LastBackupStatus `json:"lastBackupStatus,omitempty"` + // LastBackupTime - Timestamp of the last backup operation on this backup item. + LastBackupTime *date.Time `json:"lastBackupTime,omitempty"` + // LastBackupErrorDetail - Error details in last backup + LastBackupErrorDetail *ErrorDetail `json:"lastBackupErrorDetail,omitempty"` + // ProtectedItemDataSourceID - Data ID of the protected item. + ProtectedItemDataSourceID *string `json:"protectedItemDataSourceId,omitempty"` + // ProtectedItemHealthStatus - Health status of the backup item, evaluated based on last heartbeat received. Possible values include: 'ProtectedItemHealthStatusInvalid', 'ProtectedItemHealthStatusHealthy', 'ProtectedItemHealthStatusUnhealthy', 'ProtectedItemHealthStatusNotReachable', 'ProtectedItemHealthStatusIRPending' + ProtectedItemHealthStatus ProtectedItemHealthStatus `json:"protectedItemHealthStatus,omitempty"` + // ExtendedInfo - Additional information for this backup item. + ExtendedInfo *AzureVMWorkloadProtectedItemExtendedInfo `json:"extendedInfo,omitempty"` + // KpisHealths - Health details of different KPIs + KpisHealths map[string]*KPIResourceHealthDetails `json:"kpisHealths"` + // BackupManagementType - Type of backup management for the backed up item. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // WorkloadType - Type of workload this item represents. Possible values include: 'DataSourceTypeInvalid', 'DataSourceTypeVM', 'DataSourceTypeFileFolder', 'DataSourceTypeAzureSQLDb', 'DataSourceTypeSQLDB', 'DataSourceTypeExchange', 'DataSourceTypeSharepoint', 'DataSourceTypeVMwareVM', 'DataSourceTypeSystemState', 'DataSourceTypeClient', 'DataSourceTypeGenericDataSource', 'DataSourceTypeSQLDataBase', 'DataSourceTypeAzureFileShare', 'DataSourceTypeSAPHanaDatabase', 'DataSourceTypeSAPAseDatabase' + WorkloadType DataSourceType `json:"workloadType,omitempty"` + // ContainerName - Unique name of container + ContainerName *string `json:"containerName,omitempty"` + // SourceResourceID - ARM ID of the resource to be backed up. + SourceResourceID *string `json:"sourceResourceId,omitempty"` + // PolicyID - ID of the backup policy with which this item is backed up. + PolicyID *string `json:"policyId,omitempty"` + // LastRecoveryPoint - Timestamp when the last (latest) backup copy was created for this backup item. + LastRecoveryPoint *date.Time `json:"lastRecoveryPoint,omitempty"` + // BackupSetName - Name of the backup set the backup item belongs to + BackupSetName *string `json:"backupSetName,omitempty"` + // CreateMode - Create mode to indicate recovery of existing soft deleted data source or creation of new data source. Possible values include: 'CreateModeInvalid', 'CreateModeDefault', 'CreateModeRecover' + CreateMode CreateMode `json:"createMode,omitempty"` + // DeferredDeleteTimeInUTC - Time for deferred deletion in UTC + DeferredDeleteTimeInUTC *date.Time `json:"deferredDeleteTimeInUTC,omitempty"` + // IsScheduledForDeferredDelete - Flag to identify whether the DS is scheduled for deferred delete + IsScheduledForDeferredDelete *bool `json:"isScheduledForDeferredDelete,omitempty"` + // DeferredDeleteTimeRemaining - Time remaining before the DS marked for deferred delete is permanently deleted + DeferredDeleteTimeRemaining *string `json:"deferredDeleteTimeRemaining,omitempty"` + // IsDeferredDeleteScheduleUpcoming - Flag to identify whether the deferred deleted DS is to be purged soon + IsDeferredDeleteScheduleUpcoming *bool `json:"isDeferredDeleteScheduleUpcoming,omitempty"` + // IsRehydrate - Flag to identify that deferred deleted DS is to be moved into Pause state + IsRehydrate *bool `json:"isRehydrate,omitempty"` + // ProtectedItemType - Possible values include: 'ProtectedItemTypeProtectedItem', 'ProtectedItemTypeAzureFileShareProtectedItem', 'ProtectedItemTypeMicrosoftClassicComputevirtualMachines', 'ProtectedItemTypeMicrosoftComputevirtualMachines', 'ProtectedItemTypeAzureIaaSVMProtectedItem', 'ProtectedItemTypeMicrosoftSqlserversdatabases', 'ProtectedItemTypeAzureVMWorkloadProtectedItem', 'ProtectedItemTypeAzureVMWorkloadSAPAseDatabase', 'ProtectedItemTypeAzureVMWorkloadSAPHanaDatabase', 'ProtectedItemTypeAzureVMWorkloadSQLDatabase', 'ProtectedItemTypeDPMProtectedItem', 'ProtectedItemTypeGenericProtectedItem', 'ProtectedItemTypeMabFileFolderProtectedItem' + ProtectedItemType ProtectedItemType `json:"protectedItemType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureVMWorkloadSAPAseDatabaseProtectedItem. +func (avwsadpi AzureVMWorkloadSAPAseDatabaseProtectedItem) MarshalJSON() ([]byte, error) { + avwsadpi.ProtectedItemType = ProtectedItemTypeAzureVMWorkloadSAPAseDatabase + objectMap := make(map[string]interface{}) + if avwsadpi.FriendlyName != nil { + objectMap["friendlyName"] = avwsadpi.FriendlyName + } + if avwsadpi.ServerName != nil { + objectMap["serverName"] = avwsadpi.ServerName + } + if avwsadpi.ParentName != nil { + objectMap["parentName"] = avwsadpi.ParentName + } + if avwsadpi.ParentType != nil { + objectMap["parentType"] = avwsadpi.ParentType + } + if avwsadpi.ProtectionStatus != nil { + objectMap["protectionStatus"] = avwsadpi.ProtectionStatus + } + if avwsadpi.ProtectionState != "" { + objectMap["protectionState"] = avwsadpi.ProtectionState + } + if avwsadpi.LastBackupStatus != "" { + objectMap["lastBackupStatus"] = avwsadpi.LastBackupStatus + } + if avwsadpi.LastBackupTime != nil { + objectMap["lastBackupTime"] = avwsadpi.LastBackupTime + } + if avwsadpi.LastBackupErrorDetail != nil { + objectMap["lastBackupErrorDetail"] = avwsadpi.LastBackupErrorDetail + } + if avwsadpi.ProtectedItemDataSourceID != nil { + objectMap["protectedItemDataSourceId"] = avwsadpi.ProtectedItemDataSourceID + } + if avwsadpi.ProtectedItemHealthStatus != "" { + objectMap["protectedItemHealthStatus"] = avwsadpi.ProtectedItemHealthStatus + } + if avwsadpi.ExtendedInfo != nil { + objectMap["extendedInfo"] = avwsadpi.ExtendedInfo + } + if avwsadpi.KpisHealths != nil { + objectMap["kpisHealths"] = avwsadpi.KpisHealths + } + if avwsadpi.BackupManagementType != "" { + objectMap["backupManagementType"] = avwsadpi.BackupManagementType + } + if avwsadpi.WorkloadType != "" { + objectMap["workloadType"] = avwsadpi.WorkloadType + } + if avwsadpi.ContainerName != nil { + objectMap["containerName"] = avwsadpi.ContainerName + } + if avwsadpi.SourceResourceID != nil { + objectMap["sourceResourceId"] = avwsadpi.SourceResourceID + } + if avwsadpi.PolicyID != nil { + objectMap["policyId"] = avwsadpi.PolicyID + } + if avwsadpi.LastRecoveryPoint != nil { + objectMap["lastRecoveryPoint"] = avwsadpi.LastRecoveryPoint + } + if avwsadpi.BackupSetName != nil { + objectMap["backupSetName"] = avwsadpi.BackupSetName + } + if avwsadpi.CreateMode != "" { + objectMap["createMode"] = avwsadpi.CreateMode + } + if avwsadpi.DeferredDeleteTimeInUTC != nil { + objectMap["deferredDeleteTimeInUTC"] = avwsadpi.DeferredDeleteTimeInUTC + } + if avwsadpi.IsScheduledForDeferredDelete != nil { + objectMap["isScheduledForDeferredDelete"] = avwsadpi.IsScheduledForDeferredDelete + } + if avwsadpi.DeferredDeleteTimeRemaining != nil { + objectMap["deferredDeleteTimeRemaining"] = avwsadpi.DeferredDeleteTimeRemaining + } + if avwsadpi.IsDeferredDeleteScheduleUpcoming != nil { + objectMap["isDeferredDeleteScheduleUpcoming"] = avwsadpi.IsDeferredDeleteScheduleUpcoming + } + if avwsadpi.IsRehydrate != nil { + objectMap["isRehydrate"] = avwsadpi.IsRehydrate + } + if avwsadpi.ProtectedItemType != "" { + objectMap["protectedItemType"] = avwsadpi.ProtectedItemType + } + return json.Marshal(objectMap) +} + +// AsAzureFileshareProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSAPAseDatabaseProtectedItem. +func (avwsadpi AzureVMWorkloadSAPAseDatabaseProtectedItem) AsAzureFileshareProtectedItem() (*AzureFileshareProtectedItem, bool) { + return nil, false +} + +// AsAzureIaaSClassicComputeVMProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSAPAseDatabaseProtectedItem. +func (avwsadpi AzureVMWorkloadSAPAseDatabaseProtectedItem) AsAzureIaaSClassicComputeVMProtectedItem() (*AzureIaaSClassicComputeVMProtectedItem, bool) { + return nil, false +} + +// AsAzureIaaSComputeVMProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSAPAseDatabaseProtectedItem. +func (avwsadpi AzureVMWorkloadSAPAseDatabaseProtectedItem) AsAzureIaaSComputeVMProtectedItem() (*AzureIaaSComputeVMProtectedItem, bool) { + return nil, false +} + +// AsAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSAPAseDatabaseProtectedItem. +func (avwsadpi AzureVMWorkloadSAPAseDatabaseProtectedItem) AsAzureIaaSVMProtectedItem() (*AzureIaaSVMProtectedItem, bool) { + return nil, false +} + +// AsBasicAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSAPAseDatabaseProtectedItem. +func (avwsadpi AzureVMWorkloadSAPAseDatabaseProtectedItem) AsBasicAzureIaaSVMProtectedItem() (BasicAzureIaaSVMProtectedItem, bool) { + return nil, false +} + +// AsAzureSQLProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSAPAseDatabaseProtectedItem. +func (avwsadpi AzureVMWorkloadSAPAseDatabaseProtectedItem) AsAzureSQLProtectedItem() (*AzureSQLProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSAPAseDatabaseProtectedItem. +func (avwsadpi AzureVMWorkloadSAPAseDatabaseProtectedItem) AsAzureVMWorkloadProtectedItem() (*AzureVMWorkloadProtectedItem, bool) { + return nil, false +} + +// AsBasicAzureVMWorkloadProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSAPAseDatabaseProtectedItem. +func (avwsadpi AzureVMWorkloadSAPAseDatabaseProtectedItem) AsBasicAzureVMWorkloadProtectedItem() (BasicAzureVMWorkloadProtectedItem, bool) { + return &avwsadpi, true +} + +// AsAzureVMWorkloadSAPAseDatabaseProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSAPAseDatabaseProtectedItem. +func (avwsadpi AzureVMWorkloadSAPAseDatabaseProtectedItem) AsAzureVMWorkloadSAPAseDatabaseProtectedItem() (*AzureVMWorkloadSAPAseDatabaseProtectedItem, bool) { + return &avwsadpi, true +} + +// AsAzureVMWorkloadSAPHanaDatabaseProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSAPAseDatabaseProtectedItem. +func (avwsadpi AzureVMWorkloadSAPAseDatabaseProtectedItem) AsAzureVMWorkloadSAPHanaDatabaseProtectedItem() (*AzureVMWorkloadSAPHanaDatabaseProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLDatabaseProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSAPAseDatabaseProtectedItem. +func (avwsadpi AzureVMWorkloadSAPAseDatabaseProtectedItem) AsAzureVMWorkloadSQLDatabaseProtectedItem() (*AzureVMWorkloadSQLDatabaseProtectedItem, bool) { + return nil, false +} + +// AsDPMProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSAPAseDatabaseProtectedItem. +func (avwsadpi AzureVMWorkloadSAPAseDatabaseProtectedItem) AsDPMProtectedItem() (*DPMProtectedItem, bool) { + return nil, false +} + +// AsGenericProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSAPAseDatabaseProtectedItem. +func (avwsadpi AzureVMWorkloadSAPAseDatabaseProtectedItem) AsGenericProtectedItem() (*GenericProtectedItem, bool) { + return nil, false +} + +// AsMabFileFolderProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSAPAseDatabaseProtectedItem. +func (avwsadpi AzureVMWorkloadSAPAseDatabaseProtectedItem) AsMabFileFolderProtectedItem() (*MabFileFolderProtectedItem, bool) { + return nil, false +} + +// AsProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSAPAseDatabaseProtectedItem. +func (avwsadpi AzureVMWorkloadSAPAseDatabaseProtectedItem) AsProtectedItem() (*ProtectedItem, bool) { + return nil, false +} + +// AsBasicProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSAPAseDatabaseProtectedItem. +func (avwsadpi AzureVMWorkloadSAPAseDatabaseProtectedItem) AsBasicProtectedItem() (BasicProtectedItem, bool) { + return &avwsadpi, true +} + +// AzureVMWorkloadSAPAseDatabaseWorkloadItem azure VM workload-specific workload item representing SAP ASE +// Database. +type AzureVMWorkloadSAPAseDatabaseWorkloadItem struct { + // ParentName - Name for instance or AG + ParentName *string `json:"parentName,omitempty"` + // ServerName - Host/Cluster Name for instance or AG + ServerName *string `json:"serverName,omitempty"` + // IsAutoProtectable - Indicates if workload item is auto-protectable + IsAutoProtectable *bool `json:"isAutoProtectable,omitempty"` + // Subinquireditemcount - For instance or AG, indicates number of DB's present + Subinquireditemcount *int32 `json:"subinquireditemcount,omitempty"` + // SubWorkloadItemCount - For instance or AG, indicates number of DB's to be protected + SubWorkloadItemCount *int32 `json:"subWorkloadItemCount,omitempty"` + // BackupManagementType - Type of backup management to backup an item. + BackupManagementType *string `json:"backupManagementType,omitempty"` + // WorkloadType - Type of workload for the backup management + WorkloadType *string `json:"workloadType,omitempty"` + // FriendlyName - Friendly name of the backup item. + FriendlyName *string `json:"friendlyName,omitempty"` + // ProtectionState - State of the back up item. Possible values include: 'ProtectionStatusInvalid', 'ProtectionStatusNotProtected', 'ProtectionStatusProtecting', 'ProtectionStatusProtected', 'ProtectionStatusProtectionFailed' + ProtectionState ProtectionStatus `json:"protectionState,omitempty"` + // WorkloadItemType - Possible values include: 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeWorkloadItem', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeAzureVMWorkloadItem', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPAseDatabase', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPAseSystem', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPHanaDatabase', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPHanaSystem', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSQLDataBase', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSQLInstance' + WorkloadItemType WorkloadItemTypeBasicWorkloadItem `json:"workloadItemType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureVMWorkloadSAPAseDatabaseWorkloadItem. +func (avwsadwi AzureVMWorkloadSAPAseDatabaseWorkloadItem) MarshalJSON() ([]byte, error) { + avwsadwi.WorkloadItemType = WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPAseDatabase + objectMap := make(map[string]interface{}) + if avwsadwi.ParentName != nil { + objectMap["parentName"] = avwsadwi.ParentName + } + if avwsadwi.ServerName != nil { + objectMap["serverName"] = avwsadwi.ServerName + } + if avwsadwi.IsAutoProtectable != nil { + objectMap["isAutoProtectable"] = avwsadwi.IsAutoProtectable + } + if avwsadwi.Subinquireditemcount != nil { + objectMap["subinquireditemcount"] = avwsadwi.Subinquireditemcount + } + if avwsadwi.SubWorkloadItemCount != nil { + objectMap["subWorkloadItemCount"] = avwsadwi.SubWorkloadItemCount + } + if avwsadwi.BackupManagementType != nil { + objectMap["backupManagementType"] = avwsadwi.BackupManagementType + } + if avwsadwi.WorkloadType != nil { + objectMap["workloadType"] = avwsadwi.WorkloadType + } + if avwsadwi.FriendlyName != nil { + objectMap["friendlyName"] = avwsadwi.FriendlyName + } + if avwsadwi.ProtectionState != "" { + objectMap["protectionState"] = avwsadwi.ProtectionState + } + if avwsadwi.WorkloadItemType != "" { + objectMap["workloadItemType"] = avwsadwi.WorkloadItemType + } + return json.Marshal(objectMap) +} + +// AsAzureVMWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPAseDatabaseWorkloadItem. +func (avwsadwi AzureVMWorkloadSAPAseDatabaseWorkloadItem) AsAzureVMWorkloadItem() (*AzureVMWorkloadItem, bool) { + return nil, false +} + +// AsBasicAzureVMWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPAseDatabaseWorkloadItem. +func (avwsadwi AzureVMWorkloadSAPAseDatabaseWorkloadItem) AsBasicAzureVMWorkloadItem() (BasicAzureVMWorkloadItem, bool) { + return &avwsadwi, true +} + +// AsAzureVMWorkloadSAPAseDatabaseWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPAseDatabaseWorkloadItem. +func (avwsadwi AzureVMWorkloadSAPAseDatabaseWorkloadItem) AsAzureVMWorkloadSAPAseDatabaseWorkloadItem() (*AzureVMWorkloadSAPAseDatabaseWorkloadItem, bool) { + return &avwsadwi, true +} + +// AsAzureVMWorkloadSAPAseSystemWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPAseDatabaseWorkloadItem. +func (avwsadwi AzureVMWorkloadSAPAseDatabaseWorkloadItem) AsAzureVMWorkloadSAPAseSystemWorkloadItem() (*AzureVMWorkloadSAPAseSystemWorkloadItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaDatabaseWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPAseDatabaseWorkloadItem. +func (avwsadwi AzureVMWorkloadSAPAseDatabaseWorkloadItem) AsAzureVMWorkloadSAPHanaDatabaseWorkloadItem() (*AzureVMWorkloadSAPHanaDatabaseWorkloadItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaSystemWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPAseDatabaseWorkloadItem. +func (avwsadwi AzureVMWorkloadSAPAseDatabaseWorkloadItem) AsAzureVMWorkloadSAPHanaSystemWorkloadItem() (*AzureVMWorkloadSAPHanaSystemWorkloadItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLDatabaseWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPAseDatabaseWorkloadItem. +func (avwsadwi AzureVMWorkloadSAPAseDatabaseWorkloadItem) AsAzureVMWorkloadSQLDatabaseWorkloadItem() (*AzureVMWorkloadSQLDatabaseWorkloadItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLInstanceWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPAseDatabaseWorkloadItem. +func (avwsadwi AzureVMWorkloadSAPAseDatabaseWorkloadItem) AsAzureVMWorkloadSQLInstanceWorkloadItem() (*AzureVMWorkloadSQLInstanceWorkloadItem, bool) { + return nil, false +} + +// AsWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPAseDatabaseWorkloadItem. +func (avwsadwi AzureVMWorkloadSAPAseDatabaseWorkloadItem) AsWorkloadItem() (*WorkloadItem, bool) { + return nil, false +} + +// AsBasicWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPAseDatabaseWorkloadItem. +func (avwsadwi AzureVMWorkloadSAPAseDatabaseWorkloadItem) AsBasicWorkloadItem() (BasicWorkloadItem, bool) { + return &avwsadwi, true +} + +// AzureVMWorkloadSAPAseSystemProtectableItem azure VM workload-specific protectable item representing SAP +// ASE System. +type AzureVMWorkloadSAPAseSystemProtectableItem struct { + // ParentName - Name for instance or AG + ParentName *string `json:"parentName,omitempty"` + // ParentUniqueName - Parent Unique Name is added to provide the service formatted URI Name of the Parent + // Only Applicable for data bases where the parent would be either Instance or a SQL AG. + ParentUniqueName *string `json:"parentUniqueName,omitempty"` + // ServerName - Host/Cluster Name for instance or AG + ServerName *string `json:"serverName,omitempty"` + // IsAutoProtectable - Indicates if protectable item is auto-protectable + IsAutoProtectable *bool `json:"isAutoProtectable,omitempty"` + // IsAutoProtected - Indicates if protectable item is auto-protected + IsAutoProtected *bool `json:"isAutoProtected,omitempty"` + // Subinquireditemcount - For instance or AG, indicates number of DB's present + Subinquireditemcount *int32 `json:"subinquireditemcount,omitempty"` + // Subprotectableitemcount - For instance or AG, indicates number of DB's to be protected + Subprotectableitemcount *int32 `json:"subprotectableitemcount,omitempty"` + // Prebackupvalidation - Pre-backup validation for protectable objects + Prebackupvalidation *PreBackupValidation `json:"prebackupvalidation,omitempty"` + // BackupManagementType - Type of backup management to backup an item. + BackupManagementType *string `json:"backupManagementType,omitempty"` + // WorkloadType - Type of workload for the backup management + WorkloadType *string `json:"workloadType,omitempty"` + // FriendlyName - Friendly name of the backup item. + FriendlyName *string `json:"friendlyName,omitempty"` + // ProtectionState - State of the back up item. Possible values include: 'ProtectionStatusInvalid', 'ProtectionStatusNotProtected', 'ProtectionStatusProtecting', 'ProtectionStatusProtected', 'ProtectionStatusProtectionFailed' + ProtectionState ProtectionStatus `json:"protectionState,omitempty"` + // ProtectableItemType - Possible values include: 'ProtectableItemTypeWorkloadProtectableItem', 'ProtectableItemTypeAzureFileShare', 'ProtectableItemTypeMicrosoftClassicComputevirtualMachines', 'ProtectableItemTypeMicrosoftComputevirtualMachines', 'ProtectableItemTypeAzureVMWorkloadProtectableItem', 'ProtectableItemTypeSAPAseSystem', 'ProtectableItemTypeSAPHanaDatabase', 'ProtectableItemTypeSAPHanaSystem', 'ProtectableItemTypeSQLAvailabilityGroupContainer', 'ProtectableItemTypeSQLDataBase', 'ProtectableItemTypeSQLInstance', 'ProtectableItemTypeIaaSVMProtectableItem' + ProtectableItemType ProtectableItemType `json:"protectableItemType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureVMWorkloadSAPAseSystemProtectableItem. +func (avwsaspi AzureVMWorkloadSAPAseSystemProtectableItem) MarshalJSON() ([]byte, error) { + avwsaspi.ProtectableItemType = ProtectableItemTypeSAPAseSystem + objectMap := make(map[string]interface{}) + if avwsaspi.ParentName != nil { + objectMap["parentName"] = avwsaspi.ParentName + } + if avwsaspi.ParentUniqueName != nil { + objectMap["parentUniqueName"] = avwsaspi.ParentUniqueName + } + if avwsaspi.ServerName != nil { + objectMap["serverName"] = avwsaspi.ServerName + } + if avwsaspi.IsAutoProtectable != nil { + objectMap["isAutoProtectable"] = avwsaspi.IsAutoProtectable + } + if avwsaspi.IsAutoProtected != nil { + objectMap["isAutoProtected"] = avwsaspi.IsAutoProtected + } + if avwsaspi.Subinquireditemcount != nil { + objectMap["subinquireditemcount"] = avwsaspi.Subinquireditemcount + } + if avwsaspi.Subprotectableitemcount != nil { + objectMap["subprotectableitemcount"] = avwsaspi.Subprotectableitemcount + } + if avwsaspi.Prebackupvalidation != nil { + objectMap["prebackupvalidation"] = avwsaspi.Prebackupvalidation + } + if avwsaspi.BackupManagementType != nil { + objectMap["backupManagementType"] = avwsaspi.BackupManagementType + } + if avwsaspi.WorkloadType != nil { + objectMap["workloadType"] = avwsaspi.WorkloadType + } + if avwsaspi.FriendlyName != nil { + objectMap["friendlyName"] = avwsaspi.FriendlyName + } + if avwsaspi.ProtectionState != "" { + objectMap["protectionState"] = avwsaspi.ProtectionState + } + if avwsaspi.ProtectableItemType != "" { + objectMap["protectableItemType"] = avwsaspi.ProtectableItemType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPAseSystemProtectableItem. +func (avwsaspi AzureVMWorkloadSAPAseSystemProtectableItem) AsAzureFileShareProtectableItem() (*AzureFileShareProtectableItem, bool) { + return nil, false +} + +// AsAzureIaaSClassicComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPAseSystemProtectableItem. +func (avwsaspi AzureVMWorkloadSAPAseSystemProtectableItem) AsAzureIaaSClassicComputeVMProtectableItem() (*AzureIaaSClassicComputeVMProtectableItem, bool) { + return nil, false +} + +// AsAzureIaaSComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPAseSystemProtectableItem. +func (avwsaspi AzureVMWorkloadSAPAseSystemProtectableItem) AsAzureIaaSComputeVMProtectableItem() (*AzureIaaSComputeVMProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPAseSystemProtectableItem. +func (avwsaspi AzureVMWorkloadSAPAseSystemProtectableItem) AsAzureVMWorkloadProtectableItem() (*AzureVMWorkloadProtectableItem, bool) { + return nil, false +} + +// AsBasicAzureVMWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPAseSystemProtectableItem. +func (avwsaspi AzureVMWorkloadSAPAseSystemProtectableItem) AsBasicAzureVMWorkloadProtectableItem() (BasicAzureVMWorkloadProtectableItem, bool) { + return &avwsaspi, true +} + +// AsAzureVMWorkloadSAPAseSystemProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPAseSystemProtectableItem. +func (avwsaspi AzureVMWorkloadSAPAseSystemProtectableItem) AsAzureVMWorkloadSAPAseSystemProtectableItem() (*AzureVMWorkloadSAPAseSystemProtectableItem, bool) { + return &avwsaspi, true +} + +// AsAzureVMWorkloadSAPHanaDatabaseProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPAseSystemProtectableItem. +func (avwsaspi AzureVMWorkloadSAPAseSystemProtectableItem) AsAzureVMWorkloadSAPHanaDatabaseProtectableItem() (*AzureVMWorkloadSAPHanaDatabaseProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaSystemProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPAseSystemProtectableItem. +func (avwsaspi AzureVMWorkloadSAPAseSystemProtectableItem) AsAzureVMWorkloadSAPHanaSystemProtectableItem() (*AzureVMWorkloadSAPHanaSystemProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLAvailabilityGroupProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPAseSystemProtectableItem. +func (avwsaspi AzureVMWorkloadSAPAseSystemProtectableItem) AsAzureVMWorkloadSQLAvailabilityGroupProtectableItem() (*AzureVMWorkloadSQLAvailabilityGroupProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLDatabaseProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPAseSystemProtectableItem. +func (avwsaspi AzureVMWorkloadSAPAseSystemProtectableItem) AsAzureVMWorkloadSQLDatabaseProtectableItem() (*AzureVMWorkloadSQLDatabaseProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLInstanceProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPAseSystemProtectableItem. +func (avwsaspi AzureVMWorkloadSAPAseSystemProtectableItem) AsAzureVMWorkloadSQLInstanceProtectableItem() (*AzureVMWorkloadSQLInstanceProtectableItem, bool) { + return nil, false +} + +// AsIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPAseSystemProtectableItem. +func (avwsaspi AzureVMWorkloadSAPAseSystemProtectableItem) AsIaaSVMProtectableItem() (*IaaSVMProtectableItem, bool) { + return nil, false +} + +// AsBasicIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPAseSystemProtectableItem. +func (avwsaspi AzureVMWorkloadSAPAseSystemProtectableItem) AsBasicIaaSVMProtectableItem() (BasicIaaSVMProtectableItem, bool) { + return nil, false +} + +// AsWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPAseSystemProtectableItem. +func (avwsaspi AzureVMWorkloadSAPAseSystemProtectableItem) AsWorkloadProtectableItem() (*WorkloadProtectableItem, bool) { + return nil, false +} + +// AsBasicWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPAseSystemProtectableItem. +func (avwsaspi AzureVMWorkloadSAPAseSystemProtectableItem) AsBasicWorkloadProtectableItem() (BasicWorkloadProtectableItem, bool) { + return &avwsaspi, true +} + +// AzureVMWorkloadSAPAseSystemWorkloadItem azure VM workload-specific workload item representing SAP ASE +// System. +type AzureVMWorkloadSAPAseSystemWorkloadItem struct { + // ParentName - Name for instance or AG + ParentName *string `json:"parentName,omitempty"` + // ServerName - Host/Cluster Name for instance or AG + ServerName *string `json:"serverName,omitempty"` + // IsAutoProtectable - Indicates if workload item is auto-protectable + IsAutoProtectable *bool `json:"isAutoProtectable,omitempty"` + // Subinquireditemcount - For instance or AG, indicates number of DB's present + Subinquireditemcount *int32 `json:"subinquireditemcount,omitempty"` + // SubWorkloadItemCount - For instance or AG, indicates number of DB's to be protected + SubWorkloadItemCount *int32 `json:"subWorkloadItemCount,omitempty"` + // BackupManagementType - Type of backup management to backup an item. + BackupManagementType *string `json:"backupManagementType,omitempty"` + // WorkloadType - Type of workload for the backup management + WorkloadType *string `json:"workloadType,omitempty"` + // FriendlyName - Friendly name of the backup item. + FriendlyName *string `json:"friendlyName,omitempty"` + // ProtectionState - State of the back up item. Possible values include: 'ProtectionStatusInvalid', 'ProtectionStatusNotProtected', 'ProtectionStatusProtecting', 'ProtectionStatusProtected', 'ProtectionStatusProtectionFailed' + ProtectionState ProtectionStatus `json:"protectionState,omitempty"` + // WorkloadItemType - Possible values include: 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeWorkloadItem', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeAzureVMWorkloadItem', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPAseDatabase', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPAseSystem', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPHanaDatabase', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPHanaSystem', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSQLDataBase', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSQLInstance' + WorkloadItemType WorkloadItemTypeBasicWorkloadItem `json:"workloadItemType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureVMWorkloadSAPAseSystemWorkloadItem. +func (avwsaswi AzureVMWorkloadSAPAseSystemWorkloadItem) MarshalJSON() ([]byte, error) { + avwsaswi.WorkloadItemType = WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPAseSystem + objectMap := make(map[string]interface{}) + if avwsaswi.ParentName != nil { + objectMap["parentName"] = avwsaswi.ParentName + } + if avwsaswi.ServerName != nil { + objectMap["serverName"] = avwsaswi.ServerName + } + if avwsaswi.IsAutoProtectable != nil { + objectMap["isAutoProtectable"] = avwsaswi.IsAutoProtectable + } + if avwsaswi.Subinquireditemcount != nil { + objectMap["subinquireditemcount"] = avwsaswi.Subinquireditemcount + } + if avwsaswi.SubWorkloadItemCount != nil { + objectMap["subWorkloadItemCount"] = avwsaswi.SubWorkloadItemCount + } + if avwsaswi.BackupManagementType != nil { + objectMap["backupManagementType"] = avwsaswi.BackupManagementType + } + if avwsaswi.WorkloadType != nil { + objectMap["workloadType"] = avwsaswi.WorkloadType + } + if avwsaswi.FriendlyName != nil { + objectMap["friendlyName"] = avwsaswi.FriendlyName + } + if avwsaswi.ProtectionState != "" { + objectMap["protectionState"] = avwsaswi.ProtectionState + } + if avwsaswi.WorkloadItemType != "" { + objectMap["workloadItemType"] = avwsaswi.WorkloadItemType + } + return json.Marshal(objectMap) +} + +// AsAzureVMWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPAseSystemWorkloadItem. +func (avwsaswi AzureVMWorkloadSAPAseSystemWorkloadItem) AsAzureVMWorkloadItem() (*AzureVMWorkloadItem, bool) { + return nil, false +} + +// AsBasicAzureVMWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPAseSystemWorkloadItem. +func (avwsaswi AzureVMWorkloadSAPAseSystemWorkloadItem) AsBasicAzureVMWorkloadItem() (BasicAzureVMWorkloadItem, bool) { + return &avwsaswi, true +} + +// AsAzureVMWorkloadSAPAseDatabaseWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPAseSystemWorkloadItem. +func (avwsaswi AzureVMWorkloadSAPAseSystemWorkloadItem) AsAzureVMWorkloadSAPAseDatabaseWorkloadItem() (*AzureVMWorkloadSAPAseDatabaseWorkloadItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPAseSystemWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPAseSystemWorkloadItem. +func (avwsaswi AzureVMWorkloadSAPAseSystemWorkloadItem) AsAzureVMWorkloadSAPAseSystemWorkloadItem() (*AzureVMWorkloadSAPAseSystemWorkloadItem, bool) { + return &avwsaswi, true +} + +// AsAzureVMWorkloadSAPHanaDatabaseWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPAseSystemWorkloadItem. +func (avwsaswi AzureVMWorkloadSAPAseSystemWorkloadItem) AsAzureVMWorkloadSAPHanaDatabaseWorkloadItem() (*AzureVMWorkloadSAPHanaDatabaseWorkloadItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaSystemWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPAseSystemWorkloadItem. +func (avwsaswi AzureVMWorkloadSAPAseSystemWorkloadItem) AsAzureVMWorkloadSAPHanaSystemWorkloadItem() (*AzureVMWorkloadSAPHanaSystemWorkloadItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLDatabaseWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPAseSystemWorkloadItem. +func (avwsaswi AzureVMWorkloadSAPAseSystemWorkloadItem) AsAzureVMWorkloadSQLDatabaseWorkloadItem() (*AzureVMWorkloadSQLDatabaseWorkloadItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLInstanceWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPAseSystemWorkloadItem. +func (avwsaswi AzureVMWorkloadSAPAseSystemWorkloadItem) AsAzureVMWorkloadSQLInstanceWorkloadItem() (*AzureVMWorkloadSQLInstanceWorkloadItem, bool) { + return nil, false +} + +// AsWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPAseSystemWorkloadItem. +func (avwsaswi AzureVMWorkloadSAPAseSystemWorkloadItem) AsWorkloadItem() (*WorkloadItem, bool) { + return nil, false +} + +// AsBasicWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPAseSystemWorkloadItem. +func (avwsaswi AzureVMWorkloadSAPAseSystemWorkloadItem) AsBasicWorkloadItem() (BasicWorkloadItem, bool) { + return &avwsaswi, true +} + +// AzureVMWorkloadSAPHanaDatabaseProtectableItem azure VM workload-specific protectable item representing +// SAP HANA Database. +type AzureVMWorkloadSAPHanaDatabaseProtectableItem struct { + // ParentName - Name for instance or AG + ParentName *string `json:"parentName,omitempty"` + // ParentUniqueName - Parent Unique Name is added to provide the service formatted URI Name of the Parent + // Only Applicable for data bases where the parent would be either Instance or a SQL AG. + ParentUniqueName *string `json:"parentUniqueName,omitempty"` + // ServerName - Host/Cluster Name for instance or AG + ServerName *string `json:"serverName,omitempty"` + // IsAutoProtectable - Indicates if protectable item is auto-protectable + IsAutoProtectable *bool `json:"isAutoProtectable,omitempty"` + // IsAutoProtected - Indicates if protectable item is auto-protected + IsAutoProtected *bool `json:"isAutoProtected,omitempty"` + // Subinquireditemcount - For instance or AG, indicates number of DB's present + Subinquireditemcount *int32 `json:"subinquireditemcount,omitempty"` + // Subprotectableitemcount - For instance or AG, indicates number of DB's to be protected + Subprotectableitemcount *int32 `json:"subprotectableitemcount,omitempty"` + // Prebackupvalidation - Pre-backup validation for protectable objects + Prebackupvalidation *PreBackupValidation `json:"prebackupvalidation,omitempty"` + // BackupManagementType - Type of backup management to backup an item. + BackupManagementType *string `json:"backupManagementType,omitempty"` + // WorkloadType - Type of workload for the backup management + WorkloadType *string `json:"workloadType,omitempty"` + // FriendlyName - Friendly name of the backup item. + FriendlyName *string `json:"friendlyName,omitempty"` + // ProtectionState - State of the back up item. Possible values include: 'ProtectionStatusInvalid', 'ProtectionStatusNotProtected', 'ProtectionStatusProtecting', 'ProtectionStatusProtected', 'ProtectionStatusProtectionFailed' + ProtectionState ProtectionStatus `json:"protectionState,omitempty"` + // ProtectableItemType - Possible values include: 'ProtectableItemTypeWorkloadProtectableItem', 'ProtectableItemTypeAzureFileShare', 'ProtectableItemTypeMicrosoftClassicComputevirtualMachines', 'ProtectableItemTypeMicrosoftComputevirtualMachines', 'ProtectableItemTypeAzureVMWorkloadProtectableItem', 'ProtectableItemTypeSAPAseSystem', 'ProtectableItemTypeSAPHanaDatabase', 'ProtectableItemTypeSAPHanaSystem', 'ProtectableItemTypeSQLAvailabilityGroupContainer', 'ProtectableItemTypeSQLDataBase', 'ProtectableItemTypeSQLInstance', 'ProtectableItemTypeIaaSVMProtectableItem' + ProtectableItemType ProtectableItemType `json:"protectableItemType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureVMWorkloadSAPHanaDatabaseProtectableItem. +func (avwshdpi AzureVMWorkloadSAPHanaDatabaseProtectableItem) MarshalJSON() ([]byte, error) { + avwshdpi.ProtectableItemType = ProtectableItemTypeSAPHanaDatabase + objectMap := make(map[string]interface{}) + if avwshdpi.ParentName != nil { + objectMap["parentName"] = avwshdpi.ParentName + } + if avwshdpi.ParentUniqueName != nil { + objectMap["parentUniqueName"] = avwshdpi.ParentUniqueName + } + if avwshdpi.ServerName != nil { + objectMap["serverName"] = avwshdpi.ServerName + } + if avwshdpi.IsAutoProtectable != nil { + objectMap["isAutoProtectable"] = avwshdpi.IsAutoProtectable + } + if avwshdpi.IsAutoProtected != nil { + objectMap["isAutoProtected"] = avwshdpi.IsAutoProtected + } + if avwshdpi.Subinquireditemcount != nil { + objectMap["subinquireditemcount"] = avwshdpi.Subinquireditemcount + } + if avwshdpi.Subprotectableitemcount != nil { + objectMap["subprotectableitemcount"] = avwshdpi.Subprotectableitemcount + } + if avwshdpi.Prebackupvalidation != nil { + objectMap["prebackupvalidation"] = avwshdpi.Prebackupvalidation + } + if avwshdpi.BackupManagementType != nil { + objectMap["backupManagementType"] = avwshdpi.BackupManagementType + } + if avwshdpi.WorkloadType != nil { + objectMap["workloadType"] = avwshdpi.WorkloadType + } + if avwshdpi.FriendlyName != nil { + objectMap["friendlyName"] = avwshdpi.FriendlyName + } + if avwshdpi.ProtectionState != "" { + objectMap["protectionState"] = avwshdpi.ProtectionState + } + if avwshdpi.ProtectableItemType != "" { + objectMap["protectableItemType"] = avwshdpi.ProtectableItemType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPHanaDatabaseProtectableItem. +func (avwshdpi AzureVMWorkloadSAPHanaDatabaseProtectableItem) AsAzureFileShareProtectableItem() (*AzureFileShareProtectableItem, bool) { + return nil, false +} + +// AsAzureIaaSClassicComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPHanaDatabaseProtectableItem. +func (avwshdpi AzureVMWorkloadSAPHanaDatabaseProtectableItem) AsAzureIaaSClassicComputeVMProtectableItem() (*AzureIaaSClassicComputeVMProtectableItem, bool) { + return nil, false +} + +// AsAzureIaaSComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPHanaDatabaseProtectableItem. +func (avwshdpi AzureVMWorkloadSAPHanaDatabaseProtectableItem) AsAzureIaaSComputeVMProtectableItem() (*AzureIaaSComputeVMProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPHanaDatabaseProtectableItem. +func (avwshdpi AzureVMWorkloadSAPHanaDatabaseProtectableItem) AsAzureVMWorkloadProtectableItem() (*AzureVMWorkloadProtectableItem, bool) { + return nil, false +} + +// AsBasicAzureVMWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPHanaDatabaseProtectableItem. +func (avwshdpi AzureVMWorkloadSAPHanaDatabaseProtectableItem) AsBasicAzureVMWorkloadProtectableItem() (BasicAzureVMWorkloadProtectableItem, bool) { + return &avwshdpi, true +} + +// AsAzureVMWorkloadSAPAseSystemProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPHanaDatabaseProtectableItem. +func (avwshdpi AzureVMWorkloadSAPHanaDatabaseProtectableItem) AsAzureVMWorkloadSAPAseSystemProtectableItem() (*AzureVMWorkloadSAPAseSystemProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaDatabaseProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPHanaDatabaseProtectableItem. +func (avwshdpi AzureVMWorkloadSAPHanaDatabaseProtectableItem) AsAzureVMWorkloadSAPHanaDatabaseProtectableItem() (*AzureVMWorkloadSAPHanaDatabaseProtectableItem, bool) { + return &avwshdpi, true +} + +// AsAzureVMWorkloadSAPHanaSystemProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPHanaDatabaseProtectableItem. +func (avwshdpi AzureVMWorkloadSAPHanaDatabaseProtectableItem) AsAzureVMWorkloadSAPHanaSystemProtectableItem() (*AzureVMWorkloadSAPHanaSystemProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLAvailabilityGroupProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPHanaDatabaseProtectableItem. +func (avwshdpi AzureVMWorkloadSAPHanaDatabaseProtectableItem) AsAzureVMWorkloadSQLAvailabilityGroupProtectableItem() (*AzureVMWorkloadSQLAvailabilityGroupProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLDatabaseProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPHanaDatabaseProtectableItem. +func (avwshdpi AzureVMWorkloadSAPHanaDatabaseProtectableItem) AsAzureVMWorkloadSQLDatabaseProtectableItem() (*AzureVMWorkloadSQLDatabaseProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLInstanceProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPHanaDatabaseProtectableItem. +func (avwshdpi AzureVMWorkloadSAPHanaDatabaseProtectableItem) AsAzureVMWorkloadSQLInstanceProtectableItem() (*AzureVMWorkloadSQLInstanceProtectableItem, bool) { + return nil, false +} + +// AsIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPHanaDatabaseProtectableItem. +func (avwshdpi AzureVMWorkloadSAPHanaDatabaseProtectableItem) AsIaaSVMProtectableItem() (*IaaSVMProtectableItem, bool) { + return nil, false +} + +// AsBasicIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPHanaDatabaseProtectableItem. +func (avwshdpi AzureVMWorkloadSAPHanaDatabaseProtectableItem) AsBasicIaaSVMProtectableItem() (BasicIaaSVMProtectableItem, bool) { + return nil, false +} + +// AsWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPHanaDatabaseProtectableItem. +func (avwshdpi AzureVMWorkloadSAPHanaDatabaseProtectableItem) AsWorkloadProtectableItem() (*WorkloadProtectableItem, bool) { + return nil, false +} + +// AsBasicWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPHanaDatabaseProtectableItem. +func (avwshdpi AzureVMWorkloadSAPHanaDatabaseProtectableItem) AsBasicWorkloadProtectableItem() (BasicWorkloadProtectableItem, bool) { + return &avwshdpi, true +} + +// AzureVMWorkloadSAPHanaDatabaseProtectedItem azure VM workload-specific protected item representing SAP +// HANA Database. +type AzureVMWorkloadSAPHanaDatabaseProtectedItem struct { + // FriendlyName - Friendly name of the DB represented by this backup item. + FriendlyName *string `json:"friendlyName,omitempty"` + // ServerName - Host/Cluster Name for instance or AG + ServerName *string `json:"serverName,omitempty"` + // ParentName - Parent name of the DB such as Instance or Availability Group. + ParentName *string `json:"parentName,omitempty"` + // ParentType - Parent type of protected item, example: for a DB, standalone server or distributed + ParentType *string `json:"parentType,omitempty"` + // ProtectionStatus - Backup status of this backup item. + ProtectionStatus *string `json:"protectionStatus,omitempty"` + // ProtectionState - Backup state of this backup item. Possible values include: 'ProtectionStateInvalid', 'ProtectionStateIRPending', 'ProtectionStateProtected', 'ProtectionStateProtectionError', 'ProtectionStateProtectionStopped', 'ProtectionStateProtectionPaused' + ProtectionState ProtectionState `json:"protectionState,omitempty"` + // LastBackupStatus - Last backup operation status. Possible values: Healthy, Unhealthy. Possible values include: 'LastBackupStatusInvalid', 'LastBackupStatusHealthy', 'LastBackupStatusUnhealthy', 'LastBackupStatusIRPending' + LastBackupStatus LastBackupStatus `json:"lastBackupStatus,omitempty"` + // LastBackupTime - Timestamp of the last backup operation on this backup item. + LastBackupTime *date.Time `json:"lastBackupTime,omitempty"` + // LastBackupErrorDetail - Error details in last backup + LastBackupErrorDetail *ErrorDetail `json:"lastBackupErrorDetail,omitempty"` + // ProtectedItemDataSourceID - Data ID of the protected item. + ProtectedItemDataSourceID *string `json:"protectedItemDataSourceId,omitempty"` + // ProtectedItemHealthStatus - Health status of the backup item, evaluated based on last heartbeat received. Possible values include: 'ProtectedItemHealthStatusInvalid', 'ProtectedItemHealthStatusHealthy', 'ProtectedItemHealthStatusUnhealthy', 'ProtectedItemHealthStatusNotReachable', 'ProtectedItemHealthStatusIRPending' + ProtectedItemHealthStatus ProtectedItemHealthStatus `json:"protectedItemHealthStatus,omitempty"` + // ExtendedInfo - Additional information for this backup item. + ExtendedInfo *AzureVMWorkloadProtectedItemExtendedInfo `json:"extendedInfo,omitempty"` + // KpisHealths - Health details of different KPIs + KpisHealths map[string]*KPIResourceHealthDetails `json:"kpisHealths"` + // BackupManagementType - Type of backup management for the backed up item. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // WorkloadType - Type of workload this item represents. Possible values include: 'DataSourceTypeInvalid', 'DataSourceTypeVM', 'DataSourceTypeFileFolder', 'DataSourceTypeAzureSQLDb', 'DataSourceTypeSQLDB', 'DataSourceTypeExchange', 'DataSourceTypeSharepoint', 'DataSourceTypeVMwareVM', 'DataSourceTypeSystemState', 'DataSourceTypeClient', 'DataSourceTypeGenericDataSource', 'DataSourceTypeSQLDataBase', 'DataSourceTypeAzureFileShare', 'DataSourceTypeSAPHanaDatabase', 'DataSourceTypeSAPAseDatabase' + WorkloadType DataSourceType `json:"workloadType,omitempty"` + // ContainerName - Unique name of container + ContainerName *string `json:"containerName,omitempty"` + // SourceResourceID - ARM ID of the resource to be backed up. + SourceResourceID *string `json:"sourceResourceId,omitempty"` + // PolicyID - ID of the backup policy with which this item is backed up. + PolicyID *string `json:"policyId,omitempty"` + // LastRecoveryPoint - Timestamp when the last (latest) backup copy was created for this backup item. + LastRecoveryPoint *date.Time `json:"lastRecoveryPoint,omitempty"` + // BackupSetName - Name of the backup set the backup item belongs to + BackupSetName *string `json:"backupSetName,omitempty"` + // CreateMode - Create mode to indicate recovery of existing soft deleted data source or creation of new data source. Possible values include: 'CreateModeInvalid', 'CreateModeDefault', 'CreateModeRecover' + CreateMode CreateMode `json:"createMode,omitempty"` + // DeferredDeleteTimeInUTC - Time for deferred deletion in UTC + DeferredDeleteTimeInUTC *date.Time `json:"deferredDeleteTimeInUTC,omitempty"` + // IsScheduledForDeferredDelete - Flag to identify whether the DS is scheduled for deferred delete + IsScheduledForDeferredDelete *bool `json:"isScheduledForDeferredDelete,omitempty"` + // DeferredDeleteTimeRemaining - Time remaining before the DS marked for deferred delete is permanently deleted + DeferredDeleteTimeRemaining *string `json:"deferredDeleteTimeRemaining,omitempty"` + // IsDeferredDeleteScheduleUpcoming - Flag to identify whether the deferred deleted DS is to be purged soon + IsDeferredDeleteScheduleUpcoming *bool `json:"isDeferredDeleteScheduleUpcoming,omitempty"` + // IsRehydrate - Flag to identify that deferred deleted DS is to be moved into Pause state + IsRehydrate *bool `json:"isRehydrate,omitempty"` + // ProtectedItemType - Possible values include: 'ProtectedItemTypeProtectedItem', 'ProtectedItemTypeAzureFileShareProtectedItem', 'ProtectedItemTypeMicrosoftClassicComputevirtualMachines', 'ProtectedItemTypeMicrosoftComputevirtualMachines', 'ProtectedItemTypeAzureIaaSVMProtectedItem', 'ProtectedItemTypeMicrosoftSqlserversdatabases', 'ProtectedItemTypeAzureVMWorkloadProtectedItem', 'ProtectedItemTypeAzureVMWorkloadSAPAseDatabase', 'ProtectedItemTypeAzureVMWorkloadSAPHanaDatabase', 'ProtectedItemTypeAzureVMWorkloadSQLDatabase', 'ProtectedItemTypeDPMProtectedItem', 'ProtectedItemTypeGenericProtectedItem', 'ProtectedItemTypeMabFileFolderProtectedItem' + ProtectedItemType ProtectedItemType `json:"protectedItemType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureVMWorkloadSAPHanaDatabaseProtectedItem. +func (avwshdpi AzureVMWorkloadSAPHanaDatabaseProtectedItem) MarshalJSON() ([]byte, error) { + avwshdpi.ProtectedItemType = ProtectedItemTypeAzureVMWorkloadSAPHanaDatabase + objectMap := make(map[string]interface{}) + if avwshdpi.FriendlyName != nil { + objectMap["friendlyName"] = avwshdpi.FriendlyName + } + if avwshdpi.ServerName != nil { + objectMap["serverName"] = avwshdpi.ServerName + } + if avwshdpi.ParentName != nil { + objectMap["parentName"] = avwshdpi.ParentName + } + if avwshdpi.ParentType != nil { + objectMap["parentType"] = avwshdpi.ParentType + } + if avwshdpi.ProtectionStatus != nil { + objectMap["protectionStatus"] = avwshdpi.ProtectionStatus + } + if avwshdpi.ProtectionState != "" { + objectMap["protectionState"] = avwshdpi.ProtectionState + } + if avwshdpi.LastBackupStatus != "" { + objectMap["lastBackupStatus"] = avwshdpi.LastBackupStatus + } + if avwshdpi.LastBackupTime != nil { + objectMap["lastBackupTime"] = avwshdpi.LastBackupTime + } + if avwshdpi.LastBackupErrorDetail != nil { + objectMap["lastBackupErrorDetail"] = avwshdpi.LastBackupErrorDetail + } + if avwshdpi.ProtectedItemDataSourceID != nil { + objectMap["protectedItemDataSourceId"] = avwshdpi.ProtectedItemDataSourceID + } + if avwshdpi.ProtectedItemHealthStatus != "" { + objectMap["protectedItemHealthStatus"] = avwshdpi.ProtectedItemHealthStatus + } + if avwshdpi.ExtendedInfo != nil { + objectMap["extendedInfo"] = avwshdpi.ExtendedInfo + } + if avwshdpi.KpisHealths != nil { + objectMap["kpisHealths"] = avwshdpi.KpisHealths + } + if avwshdpi.BackupManagementType != "" { + objectMap["backupManagementType"] = avwshdpi.BackupManagementType + } + if avwshdpi.WorkloadType != "" { + objectMap["workloadType"] = avwshdpi.WorkloadType + } + if avwshdpi.ContainerName != nil { + objectMap["containerName"] = avwshdpi.ContainerName + } + if avwshdpi.SourceResourceID != nil { + objectMap["sourceResourceId"] = avwshdpi.SourceResourceID + } + if avwshdpi.PolicyID != nil { + objectMap["policyId"] = avwshdpi.PolicyID + } + if avwshdpi.LastRecoveryPoint != nil { + objectMap["lastRecoveryPoint"] = avwshdpi.LastRecoveryPoint + } + if avwshdpi.BackupSetName != nil { + objectMap["backupSetName"] = avwshdpi.BackupSetName + } + if avwshdpi.CreateMode != "" { + objectMap["createMode"] = avwshdpi.CreateMode + } + if avwshdpi.DeferredDeleteTimeInUTC != nil { + objectMap["deferredDeleteTimeInUTC"] = avwshdpi.DeferredDeleteTimeInUTC + } + if avwshdpi.IsScheduledForDeferredDelete != nil { + objectMap["isScheduledForDeferredDelete"] = avwshdpi.IsScheduledForDeferredDelete + } + if avwshdpi.DeferredDeleteTimeRemaining != nil { + objectMap["deferredDeleteTimeRemaining"] = avwshdpi.DeferredDeleteTimeRemaining + } + if avwshdpi.IsDeferredDeleteScheduleUpcoming != nil { + objectMap["isDeferredDeleteScheduleUpcoming"] = avwshdpi.IsDeferredDeleteScheduleUpcoming + } + if avwshdpi.IsRehydrate != nil { + objectMap["isRehydrate"] = avwshdpi.IsRehydrate + } + if avwshdpi.ProtectedItemType != "" { + objectMap["protectedItemType"] = avwshdpi.ProtectedItemType + } + return json.Marshal(objectMap) +} + +// AsAzureFileshareProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSAPHanaDatabaseProtectedItem. +func (avwshdpi AzureVMWorkloadSAPHanaDatabaseProtectedItem) AsAzureFileshareProtectedItem() (*AzureFileshareProtectedItem, bool) { + return nil, false +} + +// AsAzureIaaSClassicComputeVMProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSAPHanaDatabaseProtectedItem. +func (avwshdpi AzureVMWorkloadSAPHanaDatabaseProtectedItem) AsAzureIaaSClassicComputeVMProtectedItem() (*AzureIaaSClassicComputeVMProtectedItem, bool) { + return nil, false +} + +// AsAzureIaaSComputeVMProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSAPHanaDatabaseProtectedItem. +func (avwshdpi AzureVMWorkloadSAPHanaDatabaseProtectedItem) AsAzureIaaSComputeVMProtectedItem() (*AzureIaaSComputeVMProtectedItem, bool) { + return nil, false +} + +// AsAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSAPHanaDatabaseProtectedItem. +func (avwshdpi AzureVMWorkloadSAPHanaDatabaseProtectedItem) AsAzureIaaSVMProtectedItem() (*AzureIaaSVMProtectedItem, bool) { + return nil, false +} + +// AsBasicAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSAPHanaDatabaseProtectedItem. +func (avwshdpi AzureVMWorkloadSAPHanaDatabaseProtectedItem) AsBasicAzureIaaSVMProtectedItem() (BasicAzureIaaSVMProtectedItem, bool) { + return nil, false +} + +// AsAzureSQLProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSAPHanaDatabaseProtectedItem. +func (avwshdpi AzureVMWorkloadSAPHanaDatabaseProtectedItem) AsAzureSQLProtectedItem() (*AzureSQLProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSAPHanaDatabaseProtectedItem. +func (avwshdpi AzureVMWorkloadSAPHanaDatabaseProtectedItem) AsAzureVMWorkloadProtectedItem() (*AzureVMWorkloadProtectedItem, bool) { + return nil, false +} + +// AsBasicAzureVMWorkloadProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSAPHanaDatabaseProtectedItem. +func (avwshdpi AzureVMWorkloadSAPHanaDatabaseProtectedItem) AsBasicAzureVMWorkloadProtectedItem() (BasicAzureVMWorkloadProtectedItem, bool) { + return &avwshdpi, true +} + +// AsAzureVMWorkloadSAPAseDatabaseProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSAPHanaDatabaseProtectedItem. +func (avwshdpi AzureVMWorkloadSAPHanaDatabaseProtectedItem) AsAzureVMWorkloadSAPAseDatabaseProtectedItem() (*AzureVMWorkloadSAPAseDatabaseProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaDatabaseProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSAPHanaDatabaseProtectedItem. +func (avwshdpi AzureVMWorkloadSAPHanaDatabaseProtectedItem) AsAzureVMWorkloadSAPHanaDatabaseProtectedItem() (*AzureVMWorkloadSAPHanaDatabaseProtectedItem, bool) { + return &avwshdpi, true +} + +// AsAzureVMWorkloadSQLDatabaseProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSAPHanaDatabaseProtectedItem. +func (avwshdpi AzureVMWorkloadSAPHanaDatabaseProtectedItem) AsAzureVMWorkloadSQLDatabaseProtectedItem() (*AzureVMWorkloadSQLDatabaseProtectedItem, bool) { + return nil, false +} + +// AsDPMProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSAPHanaDatabaseProtectedItem. +func (avwshdpi AzureVMWorkloadSAPHanaDatabaseProtectedItem) AsDPMProtectedItem() (*DPMProtectedItem, bool) { + return nil, false +} + +// AsGenericProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSAPHanaDatabaseProtectedItem. +func (avwshdpi AzureVMWorkloadSAPHanaDatabaseProtectedItem) AsGenericProtectedItem() (*GenericProtectedItem, bool) { + return nil, false +} + +// AsMabFileFolderProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSAPHanaDatabaseProtectedItem. +func (avwshdpi AzureVMWorkloadSAPHanaDatabaseProtectedItem) AsMabFileFolderProtectedItem() (*MabFileFolderProtectedItem, bool) { + return nil, false +} + +// AsProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSAPHanaDatabaseProtectedItem. +func (avwshdpi AzureVMWorkloadSAPHanaDatabaseProtectedItem) AsProtectedItem() (*ProtectedItem, bool) { + return nil, false +} + +// AsBasicProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSAPHanaDatabaseProtectedItem. +func (avwshdpi AzureVMWorkloadSAPHanaDatabaseProtectedItem) AsBasicProtectedItem() (BasicProtectedItem, bool) { + return &avwshdpi, true +} + +// AzureVMWorkloadSAPHanaDatabaseWorkloadItem azure VM workload-specific workload item representing SAP +// HANA Database. +type AzureVMWorkloadSAPHanaDatabaseWorkloadItem struct { + // ParentName - Name for instance or AG + ParentName *string `json:"parentName,omitempty"` + // ServerName - Host/Cluster Name for instance or AG + ServerName *string `json:"serverName,omitempty"` + // IsAutoProtectable - Indicates if workload item is auto-protectable + IsAutoProtectable *bool `json:"isAutoProtectable,omitempty"` + // Subinquireditemcount - For instance or AG, indicates number of DB's present + Subinquireditemcount *int32 `json:"subinquireditemcount,omitempty"` + // SubWorkloadItemCount - For instance or AG, indicates number of DB's to be protected + SubWorkloadItemCount *int32 `json:"subWorkloadItemCount,omitempty"` + // BackupManagementType - Type of backup management to backup an item. + BackupManagementType *string `json:"backupManagementType,omitempty"` + // WorkloadType - Type of workload for the backup management + WorkloadType *string `json:"workloadType,omitempty"` + // FriendlyName - Friendly name of the backup item. + FriendlyName *string `json:"friendlyName,omitempty"` + // ProtectionState - State of the back up item. Possible values include: 'ProtectionStatusInvalid', 'ProtectionStatusNotProtected', 'ProtectionStatusProtecting', 'ProtectionStatusProtected', 'ProtectionStatusProtectionFailed' + ProtectionState ProtectionStatus `json:"protectionState,omitempty"` + // WorkloadItemType - Possible values include: 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeWorkloadItem', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeAzureVMWorkloadItem', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPAseDatabase', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPAseSystem', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPHanaDatabase', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPHanaSystem', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSQLDataBase', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSQLInstance' + WorkloadItemType WorkloadItemTypeBasicWorkloadItem `json:"workloadItemType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureVMWorkloadSAPHanaDatabaseWorkloadItem. +func (avwshdwi AzureVMWorkloadSAPHanaDatabaseWorkloadItem) MarshalJSON() ([]byte, error) { + avwshdwi.WorkloadItemType = WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPHanaDatabase + objectMap := make(map[string]interface{}) + if avwshdwi.ParentName != nil { + objectMap["parentName"] = avwshdwi.ParentName + } + if avwshdwi.ServerName != nil { + objectMap["serverName"] = avwshdwi.ServerName + } + if avwshdwi.IsAutoProtectable != nil { + objectMap["isAutoProtectable"] = avwshdwi.IsAutoProtectable + } + if avwshdwi.Subinquireditemcount != nil { + objectMap["subinquireditemcount"] = avwshdwi.Subinquireditemcount + } + if avwshdwi.SubWorkloadItemCount != nil { + objectMap["subWorkloadItemCount"] = avwshdwi.SubWorkloadItemCount + } + if avwshdwi.BackupManagementType != nil { + objectMap["backupManagementType"] = avwshdwi.BackupManagementType + } + if avwshdwi.WorkloadType != nil { + objectMap["workloadType"] = avwshdwi.WorkloadType + } + if avwshdwi.FriendlyName != nil { + objectMap["friendlyName"] = avwshdwi.FriendlyName + } + if avwshdwi.ProtectionState != "" { + objectMap["protectionState"] = avwshdwi.ProtectionState + } + if avwshdwi.WorkloadItemType != "" { + objectMap["workloadItemType"] = avwshdwi.WorkloadItemType + } + return json.Marshal(objectMap) +} + +// AsAzureVMWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPHanaDatabaseWorkloadItem. +func (avwshdwi AzureVMWorkloadSAPHanaDatabaseWorkloadItem) AsAzureVMWorkloadItem() (*AzureVMWorkloadItem, bool) { + return nil, false +} + +// AsBasicAzureVMWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPHanaDatabaseWorkloadItem. +func (avwshdwi AzureVMWorkloadSAPHanaDatabaseWorkloadItem) AsBasicAzureVMWorkloadItem() (BasicAzureVMWorkloadItem, bool) { + return &avwshdwi, true +} + +// AsAzureVMWorkloadSAPAseDatabaseWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPHanaDatabaseWorkloadItem. +func (avwshdwi AzureVMWorkloadSAPHanaDatabaseWorkloadItem) AsAzureVMWorkloadSAPAseDatabaseWorkloadItem() (*AzureVMWorkloadSAPAseDatabaseWorkloadItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPAseSystemWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPHanaDatabaseWorkloadItem. +func (avwshdwi AzureVMWorkloadSAPHanaDatabaseWorkloadItem) AsAzureVMWorkloadSAPAseSystemWorkloadItem() (*AzureVMWorkloadSAPAseSystemWorkloadItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaDatabaseWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPHanaDatabaseWorkloadItem. +func (avwshdwi AzureVMWorkloadSAPHanaDatabaseWorkloadItem) AsAzureVMWorkloadSAPHanaDatabaseWorkloadItem() (*AzureVMWorkloadSAPHanaDatabaseWorkloadItem, bool) { + return &avwshdwi, true +} + +// AsAzureVMWorkloadSAPHanaSystemWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPHanaDatabaseWorkloadItem. +func (avwshdwi AzureVMWorkloadSAPHanaDatabaseWorkloadItem) AsAzureVMWorkloadSAPHanaSystemWorkloadItem() (*AzureVMWorkloadSAPHanaSystemWorkloadItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLDatabaseWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPHanaDatabaseWorkloadItem. +func (avwshdwi AzureVMWorkloadSAPHanaDatabaseWorkloadItem) AsAzureVMWorkloadSQLDatabaseWorkloadItem() (*AzureVMWorkloadSQLDatabaseWorkloadItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLInstanceWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPHanaDatabaseWorkloadItem. +func (avwshdwi AzureVMWorkloadSAPHanaDatabaseWorkloadItem) AsAzureVMWorkloadSQLInstanceWorkloadItem() (*AzureVMWorkloadSQLInstanceWorkloadItem, bool) { + return nil, false +} + +// AsWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPHanaDatabaseWorkloadItem. +func (avwshdwi AzureVMWorkloadSAPHanaDatabaseWorkloadItem) AsWorkloadItem() (*WorkloadItem, bool) { + return nil, false +} + +// AsBasicWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPHanaDatabaseWorkloadItem. +func (avwshdwi AzureVMWorkloadSAPHanaDatabaseWorkloadItem) AsBasicWorkloadItem() (BasicWorkloadItem, bool) { + return &avwshdwi, true +} + +// AzureVMWorkloadSAPHanaSystemProtectableItem azure VM workload-specific protectable item representing SAP +// HANA System. +type AzureVMWorkloadSAPHanaSystemProtectableItem struct { + // ParentName - Name for instance or AG + ParentName *string `json:"parentName,omitempty"` + // ParentUniqueName - Parent Unique Name is added to provide the service formatted URI Name of the Parent + // Only Applicable for data bases where the parent would be either Instance or a SQL AG. + ParentUniqueName *string `json:"parentUniqueName,omitempty"` + // ServerName - Host/Cluster Name for instance or AG + ServerName *string `json:"serverName,omitempty"` + // IsAutoProtectable - Indicates if protectable item is auto-protectable + IsAutoProtectable *bool `json:"isAutoProtectable,omitempty"` + // IsAutoProtected - Indicates if protectable item is auto-protected + IsAutoProtected *bool `json:"isAutoProtected,omitempty"` + // Subinquireditemcount - For instance or AG, indicates number of DB's present + Subinquireditemcount *int32 `json:"subinquireditemcount,omitempty"` + // Subprotectableitemcount - For instance or AG, indicates number of DB's to be protected + Subprotectableitemcount *int32 `json:"subprotectableitemcount,omitempty"` + // Prebackupvalidation - Pre-backup validation for protectable objects + Prebackupvalidation *PreBackupValidation `json:"prebackupvalidation,omitempty"` + // BackupManagementType - Type of backup management to backup an item. + BackupManagementType *string `json:"backupManagementType,omitempty"` + // WorkloadType - Type of workload for the backup management + WorkloadType *string `json:"workloadType,omitempty"` + // FriendlyName - Friendly name of the backup item. + FriendlyName *string `json:"friendlyName,omitempty"` + // ProtectionState - State of the back up item. Possible values include: 'ProtectionStatusInvalid', 'ProtectionStatusNotProtected', 'ProtectionStatusProtecting', 'ProtectionStatusProtected', 'ProtectionStatusProtectionFailed' + ProtectionState ProtectionStatus `json:"protectionState,omitempty"` + // ProtectableItemType - Possible values include: 'ProtectableItemTypeWorkloadProtectableItem', 'ProtectableItemTypeAzureFileShare', 'ProtectableItemTypeMicrosoftClassicComputevirtualMachines', 'ProtectableItemTypeMicrosoftComputevirtualMachines', 'ProtectableItemTypeAzureVMWorkloadProtectableItem', 'ProtectableItemTypeSAPAseSystem', 'ProtectableItemTypeSAPHanaDatabase', 'ProtectableItemTypeSAPHanaSystem', 'ProtectableItemTypeSQLAvailabilityGroupContainer', 'ProtectableItemTypeSQLDataBase', 'ProtectableItemTypeSQLInstance', 'ProtectableItemTypeIaaSVMProtectableItem' + ProtectableItemType ProtectableItemType `json:"protectableItemType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureVMWorkloadSAPHanaSystemProtectableItem. +func (avwshspi AzureVMWorkloadSAPHanaSystemProtectableItem) MarshalJSON() ([]byte, error) { + avwshspi.ProtectableItemType = ProtectableItemTypeSAPHanaSystem + objectMap := make(map[string]interface{}) + if avwshspi.ParentName != nil { + objectMap["parentName"] = avwshspi.ParentName + } + if avwshspi.ParentUniqueName != nil { + objectMap["parentUniqueName"] = avwshspi.ParentUniqueName + } + if avwshspi.ServerName != nil { + objectMap["serverName"] = avwshspi.ServerName + } + if avwshspi.IsAutoProtectable != nil { + objectMap["isAutoProtectable"] = avwshspi.IsAutoProtectable + } + if avwshspi.IsAutoProtected != nil { + objectMap["isAutoProtected"] = avwshspi.IsAutoProtected + } + if avwshspi.Subinquireditemcount != nil { + objectMap["subinquireditemcount"] = avwshspi.Subinquireditemcount + } + if avwshspi.Subprotectableitemcount != nil { + objectMap["subprotectableitemcount"] = avwshspi.Subprotectableitemcount + } + if avwshspi.Prebackupvalidation != nil { + objectMap["prebackupvalidation"] = avwshspi.Prebackupvalidation + } + if avwshspi.BackupManagementType != nil { + objectMap["backupManagementType"] = avwshspi.BackupManagementType + } + if avwshspi.WorkloadType != nil { + objectMap["workloadType"] = avwshspi.WorkloadType + } + if avwshspi.FriendlyName != nil { + objectMap["friendlyName"] = avwshspi.FriendlyName + } + if avwshspi.ProtectionState != "" { + objectMap["protectionState"] = avwshspi.ProtectionState + } + if avwshspi.ProtectableItemType != "" { + objectMap["protectableItemType"] = avwshspi.ProtectableItemType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPHanaSystemProtectableItem. +func (avwshspi AzureVMWorkloadSAPHanaSystemProtectableItem) AsAzureFileShareProtectableItem() (*AzureFileShareProtectableItem, bool) { + return nil, false +} + +// AsAzureIaaSClassicComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPHanaSystemProtectableItem. +func (avwshspi AzureVMWorkloadSAPHanaSystemProtectableItem) AsAzureIaaSClassicComputeVMProtectableItem() (*AzureIaaSClassicComputeVMProtectableItem, bool) { + return nil, false +} + +// AsAzureIaaSComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPHanaSystemProtectableItem. +func (avwshspi AzureVMWorkloadSAPHanaSystemProtectableItem) AsAzureIaaSComputeVMProtectableItem() (*AzureIaaSComputeVMProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPHanaSystemProtectableItem. +func (avwshspi AzureVMWorkloadSAPHanaSystemProtectableItem) AsAzureVMWorkloadProtectableItem() (*AzureVMWorkloadProtectableItem, bool) { + return nil, false +} + +// AsBasicAzureVMWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPHanaSystemProtectableItem. +func (avwshspi AzureVMWorkloadSAPHanaSystemProtectableItem) AsBasicAzureVMWorkloadProtectableItem() (BasicAzureVMWorkloadProtectableItem, bool) { + return &avwshspi, true +} + +// AsAzureVMWorkloadSAPAseSystemProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPHanaSystemProtectableItem. +func (avwshspi AzureVMWorkloadSAPHanaSystemProtectableItem) AsAzureVMWorkloadSAPAseSystemProtectableItem() (*AzureVMWorkloadSAPAseSystemProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaDatabaseProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPHanaSystemProtectableItem. +func (avwshspi AzureVMWorkloadSAPHanaSystemProtectableItem) AsAzureVMWorkloadSAPHanaDatabaseProtectableItem() (*AzureVMWorkloadSAPHanaDatabaseProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaSystemProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPHanaSystemProtectableItem. +func (avwshspi AzureVMWorkloadSAPHanaSystemProtectableItem) AsAzureVMWorkloadSAPHanaSystemProtectableItem() (*AzureVMWorkloadSAPHanaSystemProtectableItem, bool) { + return &avwshspi, true +} + +// AsAzureVMWorkloadSQLAvailabilityGroupProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPHanaSystemProtectableItem. +func (avwshspi AzureVMWorkloadSAPHanaSystemProtectableItem) AsAzureVMWorkloadSQLAvailabilityGroupProtectableItem() (*AzureVMWorkloadSQLAvailabilityGroupProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLDatabaseProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPHanaSystemProtectableItem. +func (avwshspi AzureVMWorkloadSAPHanaSystemProtectableItem) AsAzureVMWorkloadSQLDatabaseProtectableItem() (*AzureVMWorkloadSQLDatabaseProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLInstanceProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPHanaSystemProtectableItem. +func (avwshspi AzureVMWorkloadSAPHanaSystemProtectableItem) AsAzureVMWorkloadSQLInstanceProtectableItem() (*AzureVMWorkloadSQLInstanceProtectableItem, bool) { + return nil, false +} + +// AsIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPHanaSystemProtectableItem. +func (avwshspi AzureVMWorkloadSAPHanaSystemProtectableItem) AsIaaSVMProtectableItem() (*IaaSVMProtectableItem, bool) { + return nil, false +} + +// AsBasicIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPHanaSystemProtectableItem. +func (avwshspi AzureVMWorkloadSAPHanaSystemProtectableItem) AsBasicIaaSVMProtectableItem() (BasicIaaSVMProtectableItem, bool) { + return nil, false +} + +// AsWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPHanaSystemProtectableItem. +func (avwshspi AzureVMWorkloadSAPHanaSystemProtectableItem) AsWorkloadProtectableItem() (*WorkloadProtectableItem, bool) { + return nil, false +} + +// AsBasicWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSAPHanaSystemProtectableItem. +func (avwshspi AzureVMWorkloadSAPHanaSystemProtectableItem) AsBasicWorkloadProtectableItem() (BasicWorkloadProtectableItem, bool) { + return &avwshspi, true +} + +// AzureVMWorkloadSAPHanaSystemWorkloadItem azure VM workload-specific workload item representing SAP HANA +// System. +type AzureVMWorkloadSAPHanaSystemWorkloadItem struct { + // ParentName - Name for instance or AG + ParentName *string `json:"parentName,omitempty"` + // ServerName - Host/Cluster Name for instance or AG + ServerName *string `json:"serverName,omitempty"` + // IsAutoProtectable - Indicates if workload item is auto-protectable + IsAutoProtectable *bool `json:"isAutoProtectable,omitempty"` + // Subinquireditemcount - For instance or AG, indicates number of DB's present + Subinquireditemcount *int32 `json:"subinquireditemcount,omitempty"` + // SubWorkloadItemCount - For instance or AG, indicates number of DB's to be protected + SubWorkloadItemCount *int32 `json:"subWorkloadItemCount,omitempty"` + // BackupManagementType - Type of backup management to backup an item. + BackupManagementType *string `json:"backupManagementType,omitempty"` + // WorkloadType - Type of workload for the backup management + WorkloadType *string `json:"workloadType,omitempty"` + // FriendlyName - Friendly name of the backup item. + FriendlyName *string `json:"friendlyName,omitempty"` + // ProtectionState - State of the back up item. Possible values include: 'ProtectionStatusInvalid', 'ProtectionStatusNotProtected', 'ProtectionStatusProtecting', 'ProtectionStatusProtected', 'ProtectionStatusProtectionFailed' + ProtectionState ProtectionStatus `json:"protectionState,omitempty"` + // WorkloadItemType - Possible values include: 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeWorkloadItem', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeAzureVMWorkloadItem', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPAseDatabase', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPAseSystem', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPHanaDatabase', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPHanaSystem', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSQLDataBase', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSQLInstance' + WorkloadItemType WorkloadItemTypeBasicWorkloadItem `json:"workloadItemType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureVMWorkloadSAPHanaSystemWorkloadItem. +func (avwshswi AzureVMWorkloadSAPHanaSystemWorkloadItem) MarshalJSON() ([]byte, error) { + avwshswi.WorkloadItemType = WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPHanaSystem + objectMap := make(map[string]interface{}) + if avwshswi.ParentName != nil { + objectMap["parentName"] = avwshswi.ParentName + } + if avwshswi.ServerName != nil { + objectMap["serverName"] = avwshswi.ServerName + } + if avwshswi.IsAutoProtectable != nil { + objectMap["isAutoProtectable"] = avwshswi.IsAutoProtectable + } + if avwshswi.Subinquireditemcount != nil { + objectMap["subinquireditemcount"] = avwshswi.Subinquireditemcount + } + if avwshswi.SubWorkloadItemCount != nil { + objectMap["subWorkloadItemCount"] = avwshswi.SubWorkloadItemCount + } + if avwshswi.BackupManagementType != nil { + objectMap["backupManagementType"] = avwshswi.BackupManagementType + } + if avwshswi.WorkloadType != nil { + objectMap["workloadType"] = avwshswi.WorkloadType + } + if avwshswi.FriendlyName != nil { + objectMap["friendlyName"] = avwshswi.FriendlyName + } + if avwshswi.ProtectionState != "" { + objectMap["protectionState"] = avwshswi.ProtectionState + } + if avwshswi.WorkloadItemType != "" { + objectMap["workloadItemType"] = avwshswi.WorkloadItemType + } + return json.Marshal(objectMap) +} + +// AsAzureVMWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPHanaSystemWorkloadItem. +func (avwshswi AzureVMWorkloadSAPHanaSystemWorkloadItem) AsAzureVMWorkloadItem() (*AzureVMWorkloadItem, bool) { + return nil, false +} + +// AsBasicAzureVMWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPHanaSystemWorkloadItem. +func (avwshswi AzureVMWorkloadSAPHanaSystemWorkloadItem) AsBasicAzureVMWorkloadItem() (BasicAzureVMWorkloadItem, bool) { + return &avwshswi, true +} + +// AsAzureVMWorkloadSAPAseDatabaseWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPHanaSystemWorkloadItem. +func (avwshswi AzureVMWorkloadSAPHanaSystemWorkloadItem) AsAzureVMWorkloadSAPAseDatabaseWorkloadItem() (*AzureVMWorkloadSAPAseDatabaseWorkloadItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPAseSystemWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPHanaSystemWorkloadItem. +func (avwshswi AzureVMWorkloadSAPHanaSystemWorkloadItem) AsAzureVMWorkloadSAPAseSystemWorkloadItem() (*AzureVMWorkloadSAPAseSystemWorkloadItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaDatabaseWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPHanaSystemWorkloadItem. +func (avwshswi AzureVMWorkloadSAPHanaSystemWorkloadItem) AsAzureVMWorkloadSAPHanaDatabaseWorkloadItem() (*AzureVMWorkloadSAPHanaDatabaseWorkloadItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaSystemWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPHanaSystemWorkloadItem. +func (avwshswi AzureVMWorkloadSAPHanaSystemWorkloadItem) AsAzureVMWorkloadSAPHanaSystemWorkloadItem() (*AzureVMWorkloadSAPHanaSystemWorkloadItem, bool) { + return &avwshswi, true +} + +// AsAzureVMWorkloadSQLDatabaseWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPHanaSystemWorkloadItem. +func (avwshswi AzureVMWorkloadSAPHanaSystemWorkloadItem) AsAzureVMWorkloadSQLDatabaseWorkloadItem() (*AzureVMWorkloadSQLDatabaseWorkloadItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLInstanceWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPHanaSystemWorkloadItem. +func (avwshswi AzureVMWorkloadSAPHanaSystemWorkloadItem) AsAzureVMWorkloadSQLInstanceWorkloadItem() (*AzureVMWorkloadSQLInstanceWorkloadItem, bool) { + return nil, false +} + +// AsWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPHanaSystemWorkloadItem. +func (avwshswi AzureVMWorkloadSAPHanaSystemWorkloadItem) AsWorkloadItem() (*WorkloadItem, bool) { + return nil, false +} + +// AsBasicWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSAPHanaSystemWorkloadItem. +func (avwshswi AzureVMWorkloadSAPHanaSystemWorkloadItem) AsBasicWorkloadItem() (BasicWorkloadItem, bool) { + return &avwshswi, true +} + +// AzureVMWorkloadSQLAvailabilityGroupProtectableItem azure VM workload-specific protectable item +// representing SQL Availability Group. +type AzureVMWorkloadSQLAvailabilityGroupProtectableItem struct { + // ParentName - Name for instance or AG + ParentName *string `json:"parentName,omitempty"` + // ParentUniqueName - Parent Unique Name is added to provide the service formatted URI Name of the Parent + // Only Applicable for data bases where the parent would be either Instance or a SQL AG. + ParentUniqueName *string `json:"parentUniqueName,omitempty"` + // ServerName - Host/Cluster Name for instance or AG + ServerName *string `json:"serverName,omitempty"` + // IsAutoProtectable - Indicates if protectable item is auto-protectable + IsAutoProtectable *bool `json:"isAutoProtectable,omitempty"` + // IsAutoProtected - Indicates if protectable item is auto-protected + IsAutoProtected *bool `json:"isAutoProtected,omitempty"` + // Subinquireditemcount - For instance or AG, indicates number of DB's present + Subinquireditemcount *int32 `json:"subinquireditemcount,omitempty"` + // Subprotectableitemcount - For instance or AG, indicates number of DB's to be protected + Subprotectableitemcount *int32 `json:"subprotectableitemcount,omitempty"` + // Prebackupvalidation - Pre-backup validation for protectable objects + Prebackupvalidation *PreBackupValidation `json:"prebackupvalidation,omitempty"` + // BackupManagementType - Type of backup management to backup an item. + BackupManagementType *string `json:"backupManagementType,omitempty"` + // WorkloadType - Type of workload for the backup management + WorkloadType *string `json:"workloadType,omitempty"` + // FriendlyName - Friendly name of the backup item. + FriendlyName *string `json:"friendlyName,omitempty"` + // ProtectionState - State of the back up item. Possible values include: 'ProtectionStatusInvalid', 'ProtectionStatusNotProtected', 'ProtectionStatusProtecting', 'ProtectionStatusProtected', 'ProtectionStatusProtectionFailed' + ProtectionState ProtectionStatus `json:"protectionState,omitempty"` + // ProtectableItemType - Possible values include: 'ProtectableItemTypeWorkloadProtectableItem', 'ProtectableItemTypeAzureFileShare', 'ProtectableItemTypeMicrosoftClassicComputevirtualMachines', 'ProtectableItemTypeMicrosoftComputevirtualMachines', 'ProtectableItemTypeAzureVMWorkloadProtectableItem', 'ProtectableItemTypeSAPAseSystem', 'ProtectableItemTypeSAPHanaDatabase', 'ProtectableItemTypeSAPHanaSystem', 'ProtectableItemTypeSQLAvailabilityGroupContainer', 'ProtectableItemTypeSQLDataBase', 'ProtectableItemTypeSQLInstance', 'ProtectableItemTypeIaaSVMProtectableItem' + ProtectableItemType ProtectableItemType `json:"protectableItemType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureVMWorkloadSQLAvailabilityGroupProtectableItem. +func (avwsagpi AzureVMWorkloadSQLAvailabilityGroupProtectableItem) MarshalJSON() ([]byte, error) { + avwsagpi.ProtectableItemType = ProtectableItemTypeSQLAvailabilityGroupContainer + objectMap := make(map[string]interface{}) + if avwsagpi.ParentName != nil { + objectMap["parentName"] = avwsagpi.ParentName + } + if avwsagpi.ParentUniqueName != nil { + objectMap["parentUniqueName"] = avwsagpi.ParentUniqueName + } + if avwsagpi.ServerName != nil { + objectMap["serverName"] = avwsagpi.ServerName + } + if avwsagpi.IsAutoProtectable != nil { + objectMap["isAutoProtectable"] = avwsagpi.IsAutoProtectable + } + if avwsagpi.IsAutoProtected != nil { + objectMap["isAutoProtected"] = avwsagpi.IsAutoProtected + } + if avwsagpi.Subinquireditemcount != nil { + objectMap["subinquireditemcount"] = avwsagpi.Subinquireditemcount + } + if avwsagpi.Subprotectableitemcount != nil { + objectMap["subprotectableitemcount"] = avwsagpi.Subprotectableitemcount + } + if avwsagpi.Prebackupvalidation != nil { + objectMap["prebackupvalidation"] = avwsagpi.Prebackupvalidation + } + if avwsagpi.BackupManagementType != nil { + objectMap["backupManagementType"] = avwsagpi.BackupManagementType + } + if avwsagpi.WorkloadType != nil { + objectMap["workloadType"] = avwsagpi.WorkloadType + } + if avwsagpi.FriendlyName != nil { + objectMap["friendlyName"] = avwsagpi.FriendlyName + } + if avwsagpi.ProtectionState != "" { + objectMap["protectionState"] = avwsagpi.ProtectionState + } + if avwsagpi.ProtectableItemType != "" { + objectMap["protectableItemType"] = avwsagpi.ProtectableItemType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLAvailabilityGroupProtectableItem. +func (avwsagpi AzureVMWorkloadSQLAvailabilityGroupProtectableItem) AsAzureFileShareProtectableItem() (*AzureFileShareProtectableItem, bool) { + return nil, false +} + +// AsAzureIaaSClassicComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLAvailabilityGroupProtectableItem. +func (avwsagpi AzureVMWorkloadSQLAvailabilityGroupProtectableItem) AsAzureIaaSClassicComputeVMProtectableItem() (*AzureIaaSClassicComputeVMProtectableItem, bool) { + return nil, false +} + +// AsAzureIaaSComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLAvailabilityGroupProtectableItem. +func (avwsagpi AzureVMWorkloadSQLAvailabilityGroupProtectableItem) AsAzureIaaSComputeVMProtectableItem() (*AzureIaaSComputeVMProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLAvailabilityGroupProtectableItem. +func (avwsagpi AzureVMWorkloadSQLAvailabilityGroupProtectableItem) AsAzureVMWorkloadProtectableItem() (*AzureVMWorkloadProtectableItem, bool) { + return nil, false +} + +// AsBasicAzureVMWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLAvailabilityGroupProtectableItem. +func (avwsagpi AzureVMWorkloadSQLAvailabilityGroupProtectableItem) AsBasicAzureVMWorkloadProtectableItem() (BasicAzureVMWorkloadProtectableItem, bool) { + return &avwsagpi, true +} + +// AsAzureVMWorkloadSAPAseSystemProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLAvailabilityGroupProtectableItem. +func (avwsagpi AzureVMWorkloadSQLAvailabilityGroupProtectableItem) AsAzureVMWorkloadSAPAseSystemProtectableItem() (*AzureVMWorkloadSAPAseSystemProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaDatabaseProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLAvailabilityGroupProtectableItem. +func (avwsagpi AzureVMWorkloadSQLAvailabilityGroupProtectableItem) AsAzureVMWorkloadSAPHanaDatabaseProtectableItem() (*AzureVMWorkloadSAPHanaDatabaseProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaSystemProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLAvailabilityGroupProtectableItem. +func (avwsagpi AzureVMWorkloadSQLAvailabilityGroupProtectableItem) AsAzureVMWorkloadSAPHanaSystemProtectableItem() (*AzureVMWorkloadSAPHanaSystemProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLAvailabilityGroupProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLAvailabilityGroupProtectableItem. +func (avwsagpi AzureVMWorkloadSQLAvailabilityGroupProtectableItem) AsAzureVMWorkloadSQLAvailabilityGroupProtectableItem() (*AzureVMWorkloadSQLAvailabilityGroupProtectableItem, bool) { + return &avwsagpi, true +} + +// AsAzureVMWorkloadSQLDatabaseProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLAvailabilityGroupProtectableItem. +func (avwsagpi AzureVMWorkloadSQLAvailabilityGroupProtectableItem) AsAzureVMWorkloadSQLDatabaseProtectableItem() (*AzureVMWorkloadSQLDatabaseProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLInstanceProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLAvailabilityGroupProtectableItem. +func (avwsagpi AzureVMWorkloadSQLAvailabilityGroupProtectableItem) AsAzureVMWorkloadSQLInstanceProtectableItem() (*AzureVMWorkloadSQLInstanceProtectableItem, bool) { + return nil, false +} + +// AsIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLAvailabilityGroupProtectableItem. +func (avwsagpi AzureVMWorkloadSQLAvailabilityGroupProtectableItem) AsIaaSVMProtectableItem() (*IaaSVMProtectableItem, bool) { + return nil, false +} + +// AsBasicIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLAvailabilityGroupProtectableItem. +func (avwsagpi AzureVMWorkloadSQLAvailabilityGroupProtectableItem) AsBasicIaaSVMProtectableItem() (BasicIaaSVMProtectableItem, bool) { + return nil, false +} + +// AsWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLAvailabilityGroupProtectableItem. +func (avwsagpi AzureVMWorkloadSQLAvailabilityGroupProtectableItem) AsWorkloadProtectableItem() (*WorkloadProtectableItem, bool) { + return nil, false +} + +// AsBasicWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLAvailabilityGroupProtectableItem. +func (avwsagpi AzureVMWorkloadSQLAvailabilityGroupProtectableItem) AsBasicWorkloadProtectableItem() (BasicWorkloadProtectableItem, bool) { + return &avwsagpi, true +} + +// AzureVMWorkloadSQLDatabaseProtectableItem azure VM workload-specific protectable item representing SQL +// Database. +type AzureVMWorkloadSQLDatabaseProtectableItem struct { + // ParentName - Name for instance or AG + ParentName *string `json:"parentName,omitempty"` + // ParentUniqueName - Parent Unique Name is added to provide the service formatted URI Name of the Parent + // Only Applicable for data bases where the parent would be either Instance or a SQL AG. + ParentUniqueName *string `json:"parentUniqueName,omitempty"` + // ServerName - Host/Cluster Name for instance or AG + ServerName *string `json:"serverName,omitempty"` + // IsAutoProtectable - Indicates if protectable item is auto-protectable + IsAutoProtectable *bool `json:"isAutoProtectable,omitempty"` + // IsAutoProtected - Indicates if protectable item is auto-protected + IsAutoProtected *bool `json:"isAutoProtected,omitempty"` + // Subinquireditemcount - For instance or AG, indicates number of DB's present + Subinquireditemcount *int32 `json:"subinquireditemcount,omitempty"` + // Subprotectableitemcount - For instance or AG, indicates number of DB's to be protected + Subprotectableitemcount *int32 `json:"subprotectableitemcount,omitempty"` + // Prebackupvalidation - Pre-backup validation for protectable objects + Prebackupvalidation *PreBackupValidation `json:"prebackupvalidation,omitempty"` + // BackupManagementType - Type of backup management to backup an item. + BackupManagementType *string `json:"backupManagementType,omitempty"` + // WorkloadType - Type of workload for the backup management + WorkloadType *string `json:"workloadType,omitempty"` + // FriendlyName - Friendly name of the backup item. + FriendlyName *string `json:"friendlyName,omitempty"` + // ProtectionState - State of the back up item. Possible values include: 'ProtectionStatusInvalid', 'ProtectionStatusNotProtected', 'ProtectionStatusProtecting', 'ProtectionStatusProtected', 'ProtectionStatusProtectionFailed' + ProtectionState ProtectionStatus `json:"protectionState,omitempty"` + // ProtectableItemType - Possible values include: 'ProtectableItemTypeWorkloadProtectableItem', 'ProtectableItemTypeAzureFileShare', 'ProtectableItemTypeMicrosoftClassicComputevirtualMachines', 'ProtectableItemTypeMicrosoftComputevirtualMachines', 'ProtectableItemTypeAzureVMWorkloadProtectableItem', 'ProtectableItemTypeSAPAseSystem', 'ProtectableItemTypeSAPHanaDatabase', 'ProtectableItemTypeSAPHanaSystem', 'ProtectableItemTypeSQLAvailabilityGroupContainer', 'ProtectableItemTypeSQLDataBase', 'ProtectableItemTypeSQLInstance', 'ProtectableItemTypeIaaSVMProtectableItem' + ProtectableItemType ProtectableItemType `json:"protectableItemType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureVMWorkloadSQLDatabaseProtectableItem. +func (avwsdpi AzureVMWorkloadSQLDatabaseProtectableItem) MarshalJSON() ([]byte, error) { + avwsdpi.ProtectableItemType = ProtectableItemTypeSQLDataBase + objectMap := make(map[string]interface{}) + if avwsdpi.ParentName != nil { + objectMap["parentName"] = avwsdpi.ParentName + } + if avwsdpi.ParentUniqueName != nil { + objectMap["parentUniqueName"] = avwsdpi.ParentUniqueName + } + if avwsdpi.ServerName != nil { + objectMap["serverName"] = avwsdpi.ServerName + } + if avwsdpi.IsAutoProtectable != nil { + objectMap["isAutoProtectable"] = avwsdpi.IsAutoProtectable + } + if avwsdpi.IsAutoProtected != nil { + objectMap["isAutoProtected"] = avwsdpi.IsAutoProtected + } + if avwsdpi.Subinquireditemcount != nil { + objectMap["subinquireditemcount"] = avwsdpi.Subinquireditemcount + } + if avwsdpi.Subprotectableitemcount != nil { + objectMap["subprotectableitemcount"] = avwsdpi.Subprotectableitemcount + } + if avwsdpi.Prebackupvalidation != nil { + objectMap["prebackupvalidation"] = avwsdpi.Prebackupvalidation + } + if avwsdpi.BackupManagementType != nil { + objectMap["backupManagementType"] = avwsdpi.BackupManagementType + } + if avwsdpi.WorkloadType != nil { + objectMap["workloadType"] = avwsdpi.WorkloadType + } + if avwsdpi.FriendlyName != nil { + objectMap["friendlyName"] = avwsdpi.FriendlyName + } + if avwsdpi.ProtectionState != "" { + objectMap["protectionState"] = avwsdpi.ProtectionState + } + if avwsdpi.ProtectableItemType != "" { + objectMap["protectableItemType"] = avwsdpi.ProtectableItemType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLDatabaseProtectableItem. +func (avwsdpi AzureVMWorkloadSQLDatabaseProtectableItem) AsAzureFileShareProtectableItem() (*AzureFileShareProtectableItem, bool) { + return nil, false +} + +// AsAzureIaaSClassicComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLDatabaseProtectableItem. +func (avwsdpi AzureVMWorkloadSQLDatabaseProtectableItem) AsAzureIaaSClassicComputeVMProtectableItem() (*AzureIaaSClassicComputeVMProtectableItem, bool) { + return nil, false +} + +// AsAzureIaaSComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLDatabaseProtectableItem. +func (avwsdpi AzureVMWorkloadSQLDatabaseProtectableItem) AsAzureIaaSComputeVMProtectableItem() (*AzureIaaSComputeVMProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLDatabaseProtectableItem. +func (avwsdpi AzureVMWorkloadSQLDatabaseProtectableItem) AsAzureVMWorkloadProtectableItem() (*AzureVMWorkloadProtectableItem, bool) { + return nil, false +} + +// AsBasicAzureVMWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLDatabaseProtectableItem. +func (avwsdpi AzureVMWorkloadSQLDatabaseProtectableItem) AsBasicAzureVMWorkloadProtectableItem() (BasicAzureVMWorkloadProtectableItem, bool) { + return &avwsdpi, true +} + +// AsAzureVMWorkloadSAPAseSystemProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLDatabaseProtectableItem. +func (avwsdpi AzureVMWorkloadSQLDatabaseProtectableItem) AsAzureVMWorkloadSAPAseSystemProtectableItem() (*AzureVMWorkloadSAPAseSystemProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaDatabaseProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLDatabaseProtectableItem. +func (avwsdpi AzureVMWorkloadSQLDatabaseProtectableItem) AsAzureVMWorkloadSAPHanaDatabaseProtectableItem() (*AzureVMWorkloadSAPHanaDatabaseProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaSystemProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLDatabaseProtectableItem. +func (avwsdpi AzureVMWorkloadSQLDatabaseProtectableItem) AsAzureVMWorkloadSAPHanaSystemProtectableItem() (*AzureVMWorkloadSAPHanaSystemProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLAvailabilityGroupProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLDatabaseProtectableItem. +func (avwsdpi AzureVMWorkloadSQLDatabaseProtectableItem) AsAzureVMWorkloadSQLAvailabilityGroupProtectableItem() (*AzureVMWorkloadSQLAvailabilityGroupProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLDatabaseProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLDatabaseProtectableItem. +func (avwsdpi AzureVMWorkloadSQLDatabaseProtectableItem) AsAzureVMWorkloadSQLDatabaseProtectableItem() (*AzureVMWorkloadSQLDatabaseProtectableItem, bool) { + return &avwsdpi, true +} + +// AsAzureVMWorkloadSQLInstanceProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLDatabaseProtectableItem. +func (avwsdpi AzureVMWorkloadSQLDatabaseProtectableItem) AsAzureVMWorkloadSQLInstanceProtectableItem() (*AzureVMWorkloadSQLInstanceProtectableItem, bool) { + return nil, false +} + +// AsIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLDatabaseProtectableItem. +func (avwsdpi AzureVMWorkloadSQLDatabaseProtectableItem) AsIaaSVMProtectableItem() (*IaaSVMProtectableItem, bool) { + return nil, false +} + +// AsBasicIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLDatabaseProtectableItem. +func (avwsdpi AzureVMWorkloadSQLDatabaseProtectableItem) AsBasicIaaSVMProtectableItem() (BasicIaaSVMProtectableItem, bool) { + return nil, false +} + +// AsWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLDatabaseProtectableItem. +func (avwsdpi AzureVMWorkloadSQLDatabaseProtectableItem) AsWorkloadProtectableItem() (*WorkloadProtectableItem, bool) { + return nil, false +} + +// AsBasicWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLDatabaseProtectableItem. +func (avwsdpi AzureVMWorkloadSQLDatabaseProtectableItem) AsBasicWorkloadProtectableItem() (BasicWorkloadProtectableItem, bool) { + return &avwsdpi, true +} + +// AzureVMWorkloadSQLDatabaseProtectedItem azure VM workload-specific protected item representing SQL +// Database. +type AzureVMWorkloadSQLDatabaseProtectedItem struct { + // FriendlyName - Friendly name of the DB represented by this backup item. + FriendlyName *string `json:"friendlyName,omitempty"` + // ServerName - Host/Cluster Name for instance or AG + ServerName *string `json:"serverName,omitempty"` + // ParentName - Parent name of the DB such as Instance or Availability Group. + ParentName *string `json:"parentName,omitempty"` + // ParentType - Parent type of protected item, example: for a DB, standalone server or distributed + ParentType *string `json:"parentType,omitempty"` + // ProtectionStatus - Backup status of this backup item. + ProtectionStatus *string `json:"protectionStatus,omitempty"` + // ProtectionState - Backup state of this backup item. Possible values include: 'ProtectionStateInvalid', 'ProtectionStateIRPending', 'ProtectionStateProtected', 'ProtectionStateProtectionError', 'ProtectionStateProtectionStopped', 'ProtectionStateProtectionPaused' + ProtectionState ProtectionState `json:"protectionState,omitempty"` + // LastBackupStatus - Last backup operation status. Possible values: Healthy, Unhealthy. Possible values include: 'LastBackupStatusInvalid', 'LastBackupStatusHealthy', 'LastBackupStatusUnhealthy', 'LastBackupStatusIRPending' + LastBackupStatus LastBackupStatus `json:"lastBackupStatus,omitempty"` + // LastBackupTime - Timestamp of the last backup operation on this backup item. + LastBackupTime *date.Time `json:"lastBackupTime,omitempty"` + // LastBackupErrorDetail - Error details in last backup + LastBackupErrorDetail *ErrorDetail `json:"lastBackupErrorDetail,omitempty"` + // ProtectedItemDataSourceID - Data ID of the protected item. + ProtectedItemDataSourceID *string `json:"protectedItemDataSourceId,omitempty"` + // ProtectedItemHealthStatus - Health status of the backup item, evaluated based on last heartbeat received. Possible values include: 'ProtectedItemHealthStatusInvalid', 'ProtectedItemHealthStatusHealthy', 'ProtectedItemHealthStatusUnhealthy', 'ProtectedItemHealthStatusNotReachable', 'ProtectedItemHealthStatusIRPending' + ProtectedItemHealthStatus ProtectedItemHealthStatus `json:"protectedItemHealthStatus,omitempty"` + // ExtendedInfo - Additional information for this backup item. + ExtendedInfo *AzureVMWorkloadProtectedItemExtendedInfo `json:"extendedInfo,omitempty"` + // KpisHealths - Health details of different KPIs + KpisHealths map[string]*KPIResourceHealthDetails `json:"kpisHealths"` + // BackupManagementType - Type of backup management for the backed up item. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // WorkloadType - Type of workload this item represents. Possible values include: 'DataSourceTypeInvalid', 'DataSourceTypeVM', 'DataSourceTypeFileFolder', 'DataSourceTypeAzureSQLDb', 'DataSourceTypeSQLDB', 'DataSourceTypeExchange', 'DataSourceTypeSharepoint', 'DataSourceTypeVMwareVM', 'DataSourceTypeSystemState', 'DataSourceTypeClient', 'DataSourceTypeGenericDataSource', 'DataSourceTypeSQLDataBase', 'DataSourceTypeAzureFileShare', 'DataSourceTypeSAPHanaDatabase', 'DataSourceTypeSAPAseDatabase' + WorkloadType DataSourceType `json:"workloadType,omitempty"` + // ContainerName - Unique name of container + ContainerName *string `json:"containerName,omitempty"` + // SourceResourceID - ARM ID of the resource to be backed up. + SourceResourceID *string `json:"sourceResourceId,omitempty"` + // PolicyID - ID of the backup policy with which this item is backed up. + PolicyID *string `json:"policyId,omitempty"` + // LastRecoveryPoint - Timestamp when the last (latest) backup copy was created for this backup item. + LastRecoveryPoint *date.Time `json:"lastRecoveryPoint,omitempty"` + // BackupSetName - Name of the backup set the backup item belongs to + BackupSetName *string `json:"backupSetName,omitempty"` + // CreateMode - Create mode to indicate recovery of existing soft deleted data source or creation of new data source. Possible values include: 'CreateModeInvalid', 'CreateModeDefault', 'CreateModeRecover' + CreateMode CreateMode `json:"createMode,omitempty"` + // DeferredDeleteTimeInUTC - Time for deferred deletion in UTC + DeferredDeleteTimeInUTC *date.Time `json:"deferredDeleteTimeInUTC,omitempty"` + // IsScheduledForDeferredDelete - Flag to identify whether the DS is scheduled for deferred delete + IsScheduledForDeferredDelete *bool `json:"isScheduledForDeferredDelete,omitempty"` + // DeferredDeleteTimeRemaining - Time remaining before the DS marked for deferred delete is permanently deleted + DeferredDeleteTimeRemaining *string `json:"deferredDeleteTimeRemaining,omitempty"` + // IsDeferredDeleteScheduleUpcoming - Flag to identify whether the deferred deleted DS is to be purged soon + IsDeferredDeleteScheduleUpcoming *bool `json:"isDeferredDeleteScheduleUpcoming,omitempty"` + // IsRehydrate - Flag to identify that deferred deleted DS is to be moved into Pause state + IsRehydrate *bool `json:"isRehydrate,omitempty"` + // ProtectedItemType - Possible values include: 'ProtectedItemTypeProtectedItem', 'ProtectedItemTypeAzureFileShareProtectedItem', 'ProtectedItemTypeMicrosoftClassicComputevirtualMachines', 'ProtectedItemTypeMicrosoftComputevirtualMachines', 'ProtectedItemTypeAzureIaaSVMProtectedItem', 'ProtectedItemTypeMicrosoftSqlserversdatabases', 'ProtectedItemTypeAzureVMWorkloadProtectedItem', 'ProtectedItemTypeAzureVMWorkloadSAPAseDatabase', 'ProtectedItemTypeAzureVMWorkloadSAPHanaDatabase', 'ProtectedItemTypeAzureVMWorkloadSQLDatabase', 'ProtectedItemTypeDPMProtectedItem', 'ProtectedItemTypeGenericProtectedItem', 'ProtectedItemTypeMabFileFolderProtectedItem' + ProtectedItemType ProtectedItemType `json:"protectedItemType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureVMWorkloadSQLDatabaseProtectedItem. +func (avwsdpi AzureVMWorkloadSQLDatabaseProtectedItem) MarshalJSON() ([]byte, error) { + avwsdpi.ProtectedItemType = ProtectedItemTypeAzureVMWorkloadSQLDatabase + objectMap := make(map[string]interface{}) + if avwsdpi.FriendlyName != nil { + objectMap["friendlyName"] = avwsdpi.FriendlyName + } + if avwsdpi.ServerName != nil { + objectMap["serverName"] = avwsdpi.ServerName + } + if avwsdpi.ParentName != nil { + objectMap["parentName"] = avwsdpi.ParentName + } + if avwsdpi.ParentType != nil { + objectMap["parentType"] = avwsdpi.ParentType + } + if avwsdpi.ProtectionStatus != nil { + objectMap["protectionStatus"] = avwsdpi.ProtectionStatus + } + if avwsdpi.ProtectionState != "" { + objectMap["protectionState"] = avwsdpi.ProtectionState + } + if avwsdpi.LastBackupStatus != "" { + objectMap["lastBackupStatus"] = avwsdpi.LastBackupStatus + } + if avwsdpi.LastBackupTime != nil { + objectMap["lastBackupTime"] = avwsdpi.LastBackupTime + } + if avwsdpi.LastBackupErrorDetail != nil { + objectMap["lastBackupErrorDetail"] = avwsdpi.LastBackupErrorDetail + } + if avwsdpi.ProtectedItemDataSourceID != nil { + objectMap["protectedItemDataSourceId"] = avwsdpi.ProtectedItemDataSourceID + } + if avwsdpi.ProtectedItemHealthStatus != "" { + objectMap["protectedItemHealthStatus"] = avwsdpi.ProtectedItemHealthStatus + } + if avwsdpi.ExtendedInfo != nil { + objectMap["extendedInfo"] = avwsdpi.ExtendedInfo + } + if avwsdpi.KpisHealths != nil { + objectMap["kpisHealths"] = avwsdpi.KpisHealths + } + if avwsdpi.BackupManagementType != "" { + objectMap["backupManagementType"] = avwsdpi.BackupManagementType + } + if avwsdpi.WorkloadType != "" { + objectMap["workloadType"] = avwsdpi.WorkloadType + } + if avwsdpi.ContainerName != nil { + objectMap["containerName"] = avwsdpi.ContainerName + } + if avwsdpi.SourceResourceID != nil { + objectMap["sourceResourceId"] = avwsdpi.SourceResourceID + } + if avwsdpi.PolicyID != nil { + objectMap["policyId"] = avwsdpi.PolicyID + } + if avwsdpi.LastRecoveryPoint != nil { + objectMap["lastRecoveryPoint"] = avwsdpi.LastRecoveryPoint + } + if avwsdpi.BackupSetName != nil { + objectMap["backupSetName"] = avwsdpi.BackupSetName + } + if avwsdpi.CreateMode != "" { + objectMap["createMode"] = avwsdpi.CreateMode + } + if avwsdpi.DeferredDeleteTimeInUTC != nil { + objectMap["deferredDeleteTimeInUTC"] = avwsdpi.DeferredDeleteTimeInUTC + } + if avwsdpi.IsScheduledForDeferredDelete != nil { + objectMap["isScheduledForDeferredDelete"] = avwsdpi.IsScheduledForDeferredDelete + } + if avwsdpi.DeferredDeleteTimeRemaining != nil { + objectMap["deferredDeleteTimeRemaining"] = avwsdpi.DeferredDeleteTimeRemaining + } + if avwsdpi.IsDeferredDeleteScheduleUpcoming != nil { + objectMap["isDeferredDeleteScheduleUpcoming"] = avwsdpi.IsDeferredDeleteScheduleUpcoming + } + if avwsdpi.IsRehydrate != nil { + objectMap["isRehydrate"] = avwsdpi.IsRehydrate + } + if avwsdpi.ProtectedItemType != "" { + objectMap["protectedItemType"] = avwsdpi.ProtectedItemType + } + return json.Marshal(objectMap) +} + +// AsAzureFileshareProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSQLDatabaseProtectedItem. +func (avwsdpi AzureVMWorkloadSQLDatabaseProtectedItem) AsAzureFileshareProtectedItem() (*AzureFileshareProtectedItem, bool) { + return nil, false +} + +// AsAzureIaaSClassicComputeVMProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSQLDatabaseProtectedItem. +func (avwsdpi AzureVMWorkloadSQLDatabaseProtectedItem) AsAzureIaaSClassicComputeVMProtectedItem() (*AzureIaaSClassicComputeVMProtectedItem, bool) { + return nil, false +} + +// AsAzureIaaSComputeVMProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSQLDatabaseProtectedItem. +func (avwsdpi AzureVMWorkloadSQLDatabaseProtectedItem) AsAzureIaaSComputeVMProtectedItem() (*AzureIaaSComputeVMProtectedItem, bool) { + return nil, false +} + +// AsAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSQLDatabaseProtectedItem. +func (avwsdpi AzureVMWorkloadSQLDatabaseProtectedItem) AsAzureIaaSVMProtectedItem() (*AzureIaaSVMProtectedItem, bool) { + return nil, false +} + +// AsBasicAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSQLDatabaseProtectedItem. +func (avwsdpi AzureVMWorkloadSQLDatabaseProtectedItem) AsBasicAzureIaaSVMProtectedItem() (BasicAzureIaaSVMProtectedItem, bool) { + return nil, false +} + +// AsAzureSQLProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSQLDatabaseProtectedItem. +func (avwsdpi AzureVMWorkloadSQLDatabaseProtectedItem) AsAzureSQLProtectedItem() (*AzureSQLProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSQLDatabaseProtectedItem. +func (avwsdpi AzureVMWorkloadSQLDatabaseProtectedItem) AsAzureVMWorkloadProtectedItem() (*AzureVMWorkloadProtectedItem, bool) { + return nil, false +} + +// AsBasicAzureVMWorkloadProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSQLDatabaseProtectedItem. +func (avwsdpi AzureVMWorkloadSQLDatabaseProtectedItem) AsBasicAzureVMWorkloadProtectedItem() (BasicAzureVMWorkloadProtectedItem, bool) { + return &avwsdpi, true +} + +// AsAzureVMWorkloadSAPAseDatabaseProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSQLDatabaseProtectedItem. +func (avwsdpi AzureVMWorkloadSQLDatabaseProtectedItem) AsAzureVMWorkloadSAPAseDatabaseProtectedItem() (*AzureVMWorkloadSAPAseDatabaseProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaDatabaseProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSQLDatabaseProtectedItem. +func (avwsdpi AzureVMWorkloadSQLDatabaseProtectedItem) AsAzureVMWorkloadSAPHanaDatabaseProtectedItem() (*AzureVMWorkloadSAPHanaDatabaseProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLDatabaseProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSQLDatabaseProtectedItem. +func (avwsdpi AzureVMWorkloadSQLDatabaseProtectedItem) AsAzureVMWorkloadSQLDatabaseProtectedItem() (*AzureVMWorkloadSQLDatabaseProtectedItem, bool) { + return &avwsdpi, true +} + +// AsDPMProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSQLDatabaseProtectedItem. +func (avwsdpi AzureVMWorkloadSQLDatabaseProtectedItem) AsDPMProtectedItem() (*DPMProtectedItem, bool) { + return nil, false +} + +// AsGenericProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSQLDatabaseProtectedItem. +func (avwsdpi AzureVMWorkloadSQLDatabaseProtectedItem) AsGenericProtectedItem() (*GenericProtectedItem, bool) { + return nil, false +} + +// AsMabFileFolderProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSQLDatabaseProtectedItem. +func (avwsdpi AzureVMWorkloadSQLDatabaseProtectedItem) AsMabFileFolderProtectedItem() (*MabFileFolderProtectedItem, bool) { + return nil, false +} + +// AsProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSQLDatabaseProtectedItem. +func (avwsdpi AzureVMWorkloadSQLDatabaseProtectedItem) AsProtectedItem() (*ProtectedItem, bool) { + return nil, false +} + +// AsBasicProtectedItem is the BasicProtectedItem implementation for AzureVMWorkloadSQLDatabaseProtectedItem. +func (avwsdpi AzureVMWorkloadSQLDatabaseProtectedItem) AsBasicProtectedItem() (BasicProtectedItem, bool) { + return &avwsdpi, true +} + +// AzureVMWorkloadSQLDatabaseWorkloadItem azure VM workload-specific workload item representing SQL +// Database. +type AzureVMWorkloadSQLDatabaseWorkloadItem struct { + // ParentName - Name for instance or AG + ParentName *string `json:"parentName,omitempty"` + // ServerName - Host/Cluster Name for instance or AG + ServerName *string `json:"serverName,omitempty"` + // IsAutoProtectable - Indicates if workload item is auto-protectable + IsAutoProtectable *bool `json:"isAutoProtectable,omitempty"` + // Subinquireditemcount - For instance or AG, indicates number of DB's present + Subinquireditemcount *int32 `json:"subinquireditemcount,omitempty"` + // SubWorkloadItemCount - For instance or AG, indicates number of DB's to be protected + SubWorkloadItemCount *int32 `json:"subWorkloadItemCount,omitempty"` + // BackupManagementType - Type of backup management to backup an item. + BackupManagementType *string `json:"backupManagementType,omitempty"` + // WorkloadType - Type of workload for the backup management + WorkloadType *string `json:"workloadType,omitempty"` + // FriendlyName - Friendly name of the backup item. + FriendlyName *string `json:"friendlyName,omitempty"` + // ProtectionState - State of the back up item. Possible values include: 'ProtectionStatusInvalid', 'ProtectionStatusNotProtected', 'ProtectionStatusProtecting', 'ProtectionStatusProtected', 'ProtectionStatusProtectionFailed' + ProtectionState ProtectionStatus `json:"protectionState,omitempty"` + // WorkloadItemType - Possible values include: 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeWorkloadItem', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeAzureVMWorkloadItem', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPAseDatabase', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPAseSystem', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPHanaDatabase', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPHanaSystem', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSQLDataBase', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSQLInstance' + WorkloadItemType WorkloadItemTypeBasicWorkloadItem `json:"workloadItemType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureVMWorkloadSQLDatabaseWorkloadItem. +func (avwsdwi AzureVMWorkloadSQLDatabaseWorkloadItem) MarshalJSON() ([]byte, error) { + avwsdwi.WorkloadItemType = WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSQLDataBase + objectMap := make(map[string]interface{}) + if avwsdwi.ParentName != nil { + objectMap["parentName"] = avwsdwi.ParentName + } + if avwsdwi.ServerName != nil { + objectMap["serverName"] = avwsdwi.ServerName + } + if avwsdwi.IsAutoProtectable != nil { + objectMap["isAutoProtectable"] = avwsdwi.IsAutoProtectable + } + if avwsdwi.Subinquireditemcount != nil { + objectMap["subinquireditemcount"] = avwsdwi.Subinquireditemcount + } + if avwsdwi.SubWorkloadItemCount != nil { + objectMap["subWorkloadItemCount"] = avwsdwi.SubWorkloadItemCount + } + if avwsdwi.BackupManagementType != nil { + objectMap["backupManagementType"] = avwsdwi.BackupManagementType + } + if avwsdwi.WorkloadType != nil { + objectMap["workloadType"] = avwsdwi.WorkloadType + } + if avwsdwi.FriendlyName != nil { + objectMap["friendlyName"] = avwsdwi.FriendlyName + } + if avwsdwi.ProtectionState != "" { + objectMap["protectionState"] = avwsdwi.ProtectionState + } + if avwsdwi.WorkloadItemType != "" { + objectMap["workloadItemType"] = avwsdwi.WorkloadItemType + } + return json.Marshal(objectMap) +} + +// AsAzureVMWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSQLDatabaseWorkloadItem. +func (avwsdwi AzureVMWorkloadSQLDatabaseWorkloadItem) AsAzureVMWorkloadItem() (*AzureVMWorkloadItem, bool) { + return nil, false +} + +// AsBasicAzureVMWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSQLDatabaseWorkloadItem. +func (avwsdwi AzureVMWorkloadSQLDatabaseWorkloadItem) AsBasicAzureVMWorkloadItem() (BasicAzureVMWorkloadItem, bool) { + return &avwsdwi, true +} + +// AsAzureVMWorkloadSAPAseDatabaseWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSQLDatabaseWorkloadItem. +func (avwsdwi AzureVMWorkloadSQLDatabaseWorkloadItem) AsAzureVMWorkloadSAPAseDatabaseWorkloadItem() (*AzureVMWorkloadSAPAseDatabaseWorkloadItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPAseSystemWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSQLDatabaseWorkloadItem. +func (avwsdwi AzureVMWorkloadSQLDatabaseWorkloadItem) AsAzureVMWorkloadSAPAseSystemWorkloadItem() (*AzureVMWorkloadSAPAseSystemWorkloadItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaDatabaseWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSQLDatabaseWorkloadItem. +func (avwsdwi AzureVMWorkloadSQLDatabaseWorkloadItem) AsAzureVMWorkloadSAPHanaDatabaseWorkloadItem() (*AzureVMWorkloadSAPHanaDatabaseWorkloadItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaSystemWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSQLDatabaseWorkloadItem. +func (avwsdwi AzureVMWorkloadSQLDatabaseWorkloadItem) AsAzureVMWorkloadSAPHanaSystemWorkloadItem() (*AzureVMWorkloadSAPHanaSystemWorkloadItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLDatabaseWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSQLDatabaseWorkloadItem. +func (avwsdwi AzureVMWorkloadSQLDatabaseWorkloadItem) AsAzureVMWorkloadSQLDatabaseWorkloadItem() (*AzureVMWorkloadSQLDatabaseWorkloadItem, bool) { + return &avwsdwi, true +} + +// AsAzureVMWorkloadSQLInstanceWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSQLDatabaseWorkloadItem. +func (avwsdwi AzureVMWorkloadSQLDatabaseWorkloadItem) AsAzureVMWorkloadSQLInstanceWorkloadItem() (*AzureVMWorkloadSQLInstanceWorkloadItem, bool) { + return nil, false +} + +// AsWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSQLDatabaseWorkloadItem. +func (avwsdwi AzureVMWorkloadSQLDatabaseWorkloadItem) AsWorkloadItem() (*WorkloadItem, bool) { + return nil, false +} + +// AsBasicWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSQLDatabaseWorkloadItem. +func (avwsdwi AzureVMWorkloadSQLDatabaseWorkloadItem) AsBasicWorkloadItem() (BasicWorkloadItem, bool) { + return &avwsdwi, true +} + +// AzureVMWorkloadSQLInstanceProtectableItem azure VM workload-specific protectable item representing SQL +// Instance. +type AzureVMWorkloadSQLInstanceProtectableItem struct { + // ParentName - Name for instance or AG + ParentName *string `json:"parentName,omitempty"` + // ParentUniqueName - Parent Unique Name is added to provide the service formatted URI Name of the Parent + // Only Applicable for data bases where the parent would be either Instance or a SQL AG. + ParentUniqueName *string `json:"parentUniqueName,omitempty"` + // ServerName - Host/Cluster Name for instance or AG + ServerName *string `json:"serverName,omitempty"` + // IsAutoProtectable - Indicates if protectable item is auto-protectable + IsAutoProtectable *bool `json:"isAutoProtectable,omitempty"` + // IsAutoProtected - Indicates if protectable item is auto-protected + IsAutoProtected *bool `json:"isAutoProtected,omitempty"` + // Subinquireditemcount - For instance or AG, indicates number of DB's present + Subinquireditemcount *int32 `json:"subinquireditemcount,omitempty"` + // Subprotectableitemcount - For instance or AG, indicates number of DB's to be protected + Subprotectableitemcount *int32 `json:"subprotectableitemcount,omitempty"` + // Prebackupvalidation - Pre-backup validation for protectable objects + Prebackupvalidation *PreBackupValidation `json:"prebackupvalidation,omitempty"` + // BackupManagementType - Type of backup management to backup an item. + BackupManagementType *string `json:"backupManagementType,omitempty"` + // WorkloadType - Type of workload for the backup management + WorkloadType *string `json:"workloadType,omitempty"` + // FriendlyName - Friendly name of the backup item. + FriendlyName *string `json:"friendlyName,omitempty"` + // ProtectionState - State of the back up item. Possible values include: 'ProtectionStatusInvalid', 'ProtectionStatusNotProtected', 'ProtectionStatusProtecting', 'ProtectionStatusProtected', 'ProtectionStatusProtectionFailed' + ProtectionState ProtectionStatus `json:"protectionState,omitempty"` + // ProtectableItemType - Possible values include: 'ProtectableItemTypeWorkloadProtectableItem', 'ProtectableItemTypeAzureFileShare', 'ProtectableItemTypeMicrosoftClassicComputevirtualMachines', 'ProtectableItemTypeMicrosoftComputevirtualMachines', 'ProtectableItemTypeAzureVMWorkloadProtectableItem', 'ProtectableItemTypeSAPAseSystem', 'ProtectableItemTypeSAPHanaDatabase', 'ProtectableItemTypeSAPHanaSystem', 'ProtectableItemTypeSQLAvailabilityGroupContainer', 'ProtectableItemTypeSQLDataBase', 'ProtectableItemTypeSQLInstance', 'ProtectableItemTypeIaaSVMProtectableItem' + ProtectableItemType ProtectableItemType `json:"protectableItemType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureVMWorkloadSQLInstanceProtectableItem. +func (avwsipi AzureVMWorkloadSQLInstanceProtectableItem) MarshalJSON() ([]byte, error) { + avwsipi.ProtectableItemType = ProtectableItemTypeSQLInstance + objectMap := make(map[string]interface{}) + if avwsipi.ParentName != nil { + objectMap["parentName"] = avwsipi.ParentName + } + if avwsipi.ParentUniqueName != nil { + objectMap["parentUniqueName"] = avwsipi.ParentUniqueName + } + if avwsipi.ServerName != nil { + objectMap["serverName"] = avwsipi.ServerName + } + if avwsipi.IsAutoProtectable != nil { + objectMap["isAutoProtectable"] = avwsipi.IsAutoProtectable + } + if avwsipi.IsAutoProtected != nil { + objectMap["isAutoProtected"] = avwsipi.IsAutoProtected + } + if avwsipi.Subinquireditemcount != nil { + objectMap["subinquireditemcount"] = avwsipi.Subinquireditemcount + } + if avwsipi.Subprotectableitemcount != nil { + objectMap["subprotectableitemcount"] = avwsipi.Subprotectableitemcount + } + if avwsipi.Prebackupvalidation != nil { + objectMap["prebackupvalidation"] = avwsipi.Prebackupvalidation + } + if avwsipi.BackupManagementType != nil { + objectMap["backupManagementType"] = avwsipi.BackupManagementType + } + if avwsipi.WorkloadType != nil { + objectMap["workloadType"] = avwsipi.WorkloadType + } + if avwsipi.FriendlyName != nil { + objectMap["friendlyName"] = avwsipi.FriendlyName + } + if avwsipi.ProtectionState != "" { + objectMap["protectionState"] = avwsipi.ProtectionState + } + if avwsipi.ProtectableItemType != "" { + objectMap["protectableItemType"] = avwsipi.ProtectableItemType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLInstanceProtectableItem. +func (avwsipi AzureVMWorkloadSQLInstanceProtectableItem) AsAzureFileShareProtectableItem() (*AzureFileShareProtectableItem, bool) { + return nil, false +} + +// AsAzureIaaSClassicComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLInstanceProtectableItem. +func (avwsipi AzureVMWorkloadSQLInstanceProtectableItem) AsAzureIaaSClassicComputeVMProtectableItem() (*AzureIaaSClassicComputeVMProtectableItem, bool) { + return nil, false +} + +// AsAzureIaaSComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLInstanceProtectableItem. +func (avwsipi AzureVMWorkloadSQLInstanceProtectableItem) AsAzureIaaSComputeVMProtectableItem() (*AzureIaaSComputeVMProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLInstanceProtectableItem. +func (avwsipi AzureVMWorkloadSQLInstanceProtectableItem) AsAzureVMWorkloadProtectableItem() (*AzureVMWorkloadProtectableItem, bool) { + return nil, false +} + +// AsBasicAzureVMWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLInstanceProtectableItem. +func (avwsipi AzureVMWorkloadSQLInstanceProtectableItem) AsBasicAzureVMWorkloadProtectableItem() (BasicAzureVMWorkloadProtectableItem, bool) { + return &avwsipi, true +} + +// AsAzureVMWorkloadSAPAseSystemProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLInstanceProtectableItem. +func (avwsipi AzureVMWorkloadSQLInstanceProtectableItem) AsAzureVMWorkloadSAPAseSystemProtectableItem() (*AzureVMWorkloadSAPAseSystemProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaDatabaseProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLInstanceProtectableItem. +func (avwsipi AzureVMWorkloadSQLInstanceProtectableItem) AsAzureVMWorkloadSAPHanaDatabaseProtectableItem() (*AzureVMWorkloadSAPHanaDatabaseProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaSystemProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLInstanceProtectableItem. +func (avwsipi AzureVMWorkloadSQLInstanceProtectableItem) AsAzureVMWorkloadSAPHanaSystemProtectableItem() (*AzureVMWorkloadSAPHanaSystemProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLAvailabilityGroupProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLInstanceProtectableItem. +func (avwsipi AzureVMWorkloadSQLInstanceProtectableItem) AsAzureVMWorkloadSQLAvailabilityGroupProtectableItem() (*AzureVMWorkloadSQLAvailabilityGroupProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLDatabaseProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLInstanceProtectableItem. +func (avwsipi AzureVMWorkloadSQLInstanceProtectableItem) AsAzureVMWorkloadSQLDatabaseProtectableItem() (*AzureVMWorkloadSQLDatabaseProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLInstanceProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLInstanceProtectableItem. +func (avwsipi AzureVMWorkloadSQLInstanceProtectableItem) AsAzureVMWorkloadSQLInstanceProtectableItem() (*AzureVMWorkloadSQLInstanceProtectableItem, bool) { + return &avwsipi, true +} + +// AsIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLInstanceProtectableItem. +func (avwsipi AzureVMWorkloadSQLInstanceProtectableItem) AsIaaSVMProtectableItem() (*IaaSVMProtectableItem, bool) { + return nil, false +} + +// AsBasicIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLInstanceProtectableItem. +func (avwsipi AzureVMWorkloadSQLInstanceProtectableItem) AsBasicIaaSVMProtectableItem() (BasicIaaSVMProtectableItem, bool) { + return nil, false +} + +// AsWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLInstanceProtectableItem. +func (avwsipi AzureVMWorkloadSQLInstanceProtectableItem) AsWorkloadProtectableItem() (*WorkloadProtectableItem, bool) { + return nil, false +} + +// AsBasicWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureVMWorkloadSQLInstanceProtectableItem. +func (avwsipi AzureVMWorkloadSQLInstanceProtectableItem) AsBasicWorkloadProtectableItem() (BasicWorkloadProtectableItem, bool) { + return &avwsipi, true +} + +// AzureVMWorkloadSQLInstanceWorkloadItem azure VM workload-specific workload item representing SQL +// Instance. +type AzureVMWorkloadSQLInstanceWorkloadItem struct { + // DataDirectoryPaths - Data Directory Paths for default directories + DataDirectoryPaths *[]SQLDataDirectory `json:"dataDirectoryPaths,omitempty"` + // ParentName - Name for instance or AG + ParentName *string `json:"parentName,omitempty"` + // ServerName - Host/Cluster Name for instance or AG + ServerName *string `json:"serverName,omitempty"` + // IsAutoProtectable - Indicates if workload item is auto-protectable + IsAutoProtectable *bool `json:"isAutoProtectable,omitempty"` + // Subinquireditemcount - For instance or AG, indicates number of DB's present + Subinquireditemcount *int32 `json:"subinquireditemcount,omitempty"` + // SubWorkloadItemCount - For instance or AG, indicates number of DB's to be protected + SubWorkloadItemCount *int32 `json:"subWorkloadItemCount,omitempty"` + // BackupManagementType - Type of backup management to backup an item. + BackupManagementType *string `json:"backupManagementType,omitempty"` + // WorkloadType - Type of workload for the backup management + WorkloadType *string `json:"workloadType,omitempty"` + // FriendlyName - Friendly name of the backup item. + FriendlyName *string `json:"friendlyName,omitempty"` + // ProtectionState - State of the back up item. Possible values include: 'ProtectionStatusInvalid', 'ProtectionStatusNotProtected', 'ProtectionStatusProtecting', 'ProtectionStatusProtected', 'ProtectionStatusProtectionFailed' + ProtectionState ProtectionStatus `json:"protectionState,omitempty"` + // WorkloadItemType - Possible values include: 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeWorkloadItem', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeAzureVMWorkloadItem', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPAseDatabase', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPAseSystem', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPHanaDatabase', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPHanaSystem', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSQLDataBase', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSQLInstance' + WorkloadItemType WorkloadItemTypeBasicWorkloadItem `json:"workloadItemType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureVMWorkloadSQLInstanceWorkloadItem. +func (avwsiwi AzureVMWorkloadSQLInstanceWorkloadItem) MarshalJSON() ([]byte, error) { + avwsiwi.WorkloadItemType = WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSQLInstance + objectMap := make(map[string]interface{}) + if avwsiwi.DataDirectoryPaths != nil { + objectMap["dataDirectoryPaths"] = avwsiwi.DataDirectoryPaths + } + if avwsiwi.ParentName != nil { + objectMap["parentName"] = avwsiwi.ParentName + } + if avwsiwi.ServerName != nil { + objectMap["serverName"] = avwsiwi.ServerName + } + if avwsiwi.IsAutoProtectable != nil { + objectMap["isAutoProtectable"] = avwsiwi.IsAutoProtectable + } + if avwsiwi.Subinquireditemcount != nil { + objectMap["subinquireditemcount"] = avwsiwi.Subinquireditemcount + } + if avwsiwi.SubWorkloadItemCount != nil { + objectMap["subWorkloadItemCount"] = avwsiwi.SubWorkloadItemCount + } + if avwsiwi.BackupManagementType != nil { + objectMap["backupManagementType"] = avwsiwi.BackupManagementType + } + if avwsiwi.WorkloadType != nil { + objectMap["workloadType"] = avwsiwi.WorkloadType + } + if avwsiwi.FriendlyName != nil { + objectMap["friendlyName"] = avwsiwi.FriendlyName + } + if avwsiwi.ProtectionState != "" { + objectMap["protectionState"] = avwsiwi.ProtectionState + } + if avwsiwi.WorkloadItemType != "" { + objectMap["workloadItemType"] = avwsiwi.WorkloadItemType + } + return json.Marshal(objectMap) +} + +// AsAzureVMWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSQLInstanceWorkloadItem. +func (avwsiwi AzureVMWorkloadSQLInstanceWorkloadItem) AsAzureVMWorkloadItem() (*AzureVMWorkloadItem, bool) { + return nil, false +} + +// AsBasicAzureVMWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSQLInstanceWorkloadItem. +func (avwsiwi AzureVMWorkloadSQLInstanceWorkloadItem) AsBasicAzureVMWorkloadItem() (BasicAzureVMWorkloadItem, bool) { + return &avwsiwi, true +} + +// AsAzureVMWorkloadSAPAseDatabaseWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSQLInstanceWorkloadItem. +func (avwsiwi AzureVMWorkloadSQLInstanceWorkloadItem) AsAzureVMWorkloadSAPAseDatabaseWorkloadItem() (*AzureVMWorkloadSAPAseDatabaseWorkloadItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPAseSystemWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSQLInstanceWorkloadItem. +func (avwsiwi AzureVMWorkloadSQLInstanceWorkloadItem) AsAzureVMWorkloadSAPAseSystemWorkloadItem() (*AzureVMWorkloadSAPAseSystemWorkloadItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaDatabaseWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSQLInstanceWorkloadItem. +func (avwsiwi AzureVMWorkloadSQLInstanceWorkloadItem) AsAzureVMWorkloadSAPHanaDatabaseWorkloadItem() (*AzureVMWorkloadSAPHanaDatabaseWorkloadItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaSystemWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSQLInstanceWorkloadItem. +func (avwsiwi AzureVMWorkloadSQLInstanceWorkloadItem) AsAzureVMWorkloadSAPHanaSystemWorkloadItem() (*AzureVMWorkloadSAPHanaSystemWorkloadItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLDatabaseWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSQLInstanceWorkloadItem. +func (avwsiwi AzureVMWorkloadSQLInstanceWorkloadItem) AsAzureVMWorkloadSQLDatabaseWorkloadItem() (*AzureVMWorkloadSQLDatabaseWorkloadItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLInstanceWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSQLInstanceWorkloadItem. +func (avwsiwi AzureVMWorkloadSQLInstanceWorkloadItem) AsAzureVMWorkloadSQLInstanceWorkloadItem() (*AzureVMWorkloadSQLInstanceWorkloadItem, bool) { + return &avwsiwi, true +} + +// AsWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSQLInstanceWorkloadItem. +func (avwsiwi AzureVMWorkloadSQLInstanceWorkloadItem) AsWorkloadItem() (*WorkloadItem, bool) { + return nil, false +} + +// AsBasicWorkloadItem is the BasicWorkloadItem implementation for AzureVMWorkloadSQLInstanceWorkloadItem. +func (avwsiwi AzureVMWorkloadSQLInstanceWorkloadItem) AsBasicWorkloadItem() (BasicWorkloadItem, bool) { + return &avwsiwi, true +} + +// BasicAzureWorkloadAutoProtectionIntent azure Recovery Services Vault specific protection intent item. +type BasicAzureWorkloadAutoProtectionIntent interface { + AsAzureWorkloadSQLAutoProtectionIntent() (*AzureWorkloadSQLAutoProtectionIntent, bool) + AsAzureWorkloadAutoProtectionIntent() (*AzureWorkloadAutoProtectionIntent, bool) +} + +// AzureWorkloadAutoProtectionIntent azure Recovery Services Vault specific protection intent item. +type AzureWorkloadAutoProtectionIntent struct { + // BackupManagementType - Type of backup management for the backed up item. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // SourceResourceID - ARM ID of the resource to be backed up. + SourceResourceID *string `json:"sourceResourceId,omitempty"` + // ItemID - ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId + ItemID *string `json:"itemId,omitempty"` + // PolicyID - ID of the backup policy with which this item is backed up. + PolicyID *string `json:"policyId,omitempty"` + // ProtectionState - Backup state of this backup item. Possible values include: 'ProtectionStatusInvalid', 'ProtectionStatusNotProtected', 'ProtectionStatusProtecting', 'ProtectionStatusProtected', 'ProtectionStatusProtectionFailed' + ProtectionState ProtectionStatus `json:"protectionState,omitempty"` + // ProtectionIntentItemType - Possible values include: 'ProtectionIntentItemTypeProtectionIntent', 'ProtectionIntentItemTypeRecoveryServiceVaultItem', 'ProtectionIntentItemTypeAzureResourceItem', 'ProtectionIntentItemTypeAzureWorkloadAutoProtectionIntent', 'ProtectionIntentItemTypeAzureWorkloadSQLAutoProtectionIntent' + ProtectionIntentItemType ProtectionIntentItemType `json:"protectionIntentItemType,omitempty"` +} + +func unmarshalBasicAzureWorkloadAutoProtectionIntent(body []byte) (BasicAzureWorkloadAutoProtectionIntent, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["protectionIntentItemType"] { + case string(ProtectionIntentItemTypeAzureWorkloadSQLAutoProtectionIntent): + var awsapi AzureWorkloadSQLAutoProtectionIntent + err := json.Unmarshal(body, &awsapi) + return awsapi, err + default: + var awapi AzureWorkloadAutoProtectionIntent + err := json.Unmarshal(body, &awapi) + return awapi, err + } +} +func unmarshalBasicAzureWorkloadAutoProtectionIntentArray(body []byte) ([]BasicAzureWorkloadAutoProtectionIntent, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + awapiArray := make([]BasicAzureWorkloadAutoProtectionIntent, len(rawMessages)) + + for index, rawMessage := range rawMessages { + awapi, err := unmarshalBasicAzureWorkloadAutoProtectionIntent(*rawMessage) + if err != nil { + return nil, err + } + awapiArray[index] = awapi + } + return awapiArray, nil +} + +// MarshalJSON is the custom marshaler for AzureWorkloadAutoProtectionIntent. +func (awapi AzureWorkloadAutoProtectionIntent) MarshalJSON() ([]byte, error) { + awapi.ProtectionIntentItemType = ProtectionIntentItemTypeAzureWorkloadAutoProtectionIntent + objectMap := make(map[string]interface{}) + if awapi.BackupManagementType != "" { + objectMap["backupManagementType"] = awapi.BackupManagementType + } + if awapi.SourceResourceID != nil { + objectMap["sourceResourceId"] = awapi.SourceResourceID + } + if awapi.ItemID != nil { + objectMap["itemId"] = awapi.ItemID + } + if awapi.PolicyID != nil { + objectMap["policyId"] = awapi.PolicyID + } + if awapi.ProtectionState != "" { + objectMap["protectionState"] = awapi.ProtectionState + } + if awapi.ProtectionIntentItemType != "" { + objectMap["protectionIntentItemType"] = awapi.ProtectionIntentItemType + } + return json.Marshal(objectMap) +} + +// AsAzureRecoveryServiceVaultProtectionIntent is the BasicProtectionIntent implementation for AzureWorkloadAutoProtectionIntent. +func (awapi AzureWorkloadAutoProtectionIntent) AsAzureRecoveryServiceVaultProtectionIntent() (*AzureRecoveryServiceVaultProtectionIntent, bool) { + return nil, false +} + +// AsBasicAzureRecoveryServiceVaultProtectionIntent is the BasicProtectionIntent implementation for AzureWorkloadAutoProtectionIntent. +func (awapi AzureWorkloadAutoProtectionIntent) AsBasicAzureRecoveryServiceVaultProtectionIntent() (BasicAzureRecoveryServiceVaultProtectionIntent, bool) { + return &awapi, true +} + +// AsAzureResourceProtectionIntent is the BasicProtectionIntent implementation for AzureWorkloadAutoProtectionIntent. +func (awapi AzureWorkloadAutoProtectionIntent) AsAzureResourceProtectionIntent() (*AzureResourceProtectionIntent, bool) { + return nil, false +} + +// AsAzureWorkloadAutoProtectionIntent is the BasicProtectionIntent implementation for AzureWorkloadAutoProtectionIntent. +func (awapi AzureWorkloadAutoProtectionIntent) AsAzureWorkloadAutoProtectionIntent() (*AzureWorkloadAutoProtectionIntent, bool) { + return &awapi, true +} + +// AsBasicAzureWorkloadAutoProtectionIntent is the BasicProtectionIntent implementation for AzureWorkloadAutoProtectionIntent. +func (awapi AzureWorkloadAutoProtectionIntent) AsBasicAzureWorkloadAutoProtectionIntent() (BasicAzureWorkloadAutoProtectionIntent, bool) { + return &awapi, true +} + +// AsAzureWorkloadSQLAutoProtectionIntent is the BasicProtectionIntent implementation for AzureWorkloadAutoProtectionIntent. +func (awapi AzureWorkloadAutoProtectionIntent) AsAzureWorkloadSQLAutoProtectionIntent() (*AzureWorkloadSQLAutoProtectionIntent, bool) { + return nil, false +} + +// AsProtectionIntent is the BasicProtectionIntent implementation for AzureWorkloadAutoProtectionIntent. +func (awapi AzureWorkloadAutoProtectionIntent) AsProtectionIntent() (*ProtectionIntent, bool) { + return nil, false +} + +// AsBasicProtectionIntent is the BasicProtectionIntent implementation for AzureWorkloadAutoProtectionIntent. +func (awapi AzureWorkloadAutoProtectionIntent) AsBasicProtectionIntent() (BasicProtectionIntent, bool) { + return &awapi, true +} + +// AzureWorkloadBackupRequest azureWorkload workload-specific backup request. +type AzureWorkloadBackupRequest struct { + // BackupType - Type of backup, viz. Full, Differential, Log or CopyOnlyFull. Possible values include: 'TypeEnumInvalid', 'TypeEnumFull', 'TypeEnumDifferential', 'TypeEnumLog', 'TypeEnumCopyOnlyFull', 'TypeEnumIncremental' + BackupType TypeEnum `json:"backupType,omitempty"` + // EnableCompression - Bool for Compression setting + EnableCompression *bool `json:"enableCompression,omitempty"` + // RecoveryPointExpiryTimeInUTC - Backup copy will expire after the time specified (UTC). + RecoveryPointExpiryTimeInUTC *date.Time `json:"recoveryPointExpiryTimeInUTC,omitempty"` + // ObjectType - Possible values include: 'ObjectTypeBasicRequestObjectTypeBackupRequest', 'ObjectTypeBasicRequestObjectTypeAzureFileShareBackupRequest', 'ObjectTypeBasicRequestObjectTypeAzureWorkloadBackupRequest', 'ObjectTypeBasicRequestObjectTypeIaasVMBackupRequest' + ObjectType ObjectTypeBasicRequest `json:"objectType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureWorkloadBackupRequest. +func (awbr AzureWorkloadBackupRequest) MarshalJSON() ([]byte, error) { + awbr.ObjectType = ObjectTypeBasicRequestObjectTypeAzureWorkloadBackupRequest + objectMap := make(map[string]interface{}) + if awbr.BackupType != "" { + objectMap["backupType"] = awbr.BackupType + } + if awbr.EnableCompression != nil { + objectMap["enableCompression"] = awbr.EnableCompression + } + if awbr.RecoveryPointExpiryTimeInUTC != nil { + objectMap["recoveryPointExpiryTimeInUTC"] = awbr.RecoveryPointExpiryTimeInUTC + } + if awbr.ObjectType != "" { + objectMap["objectType"] = awbr.ObjectType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareBackupRequest is the BasicRequest implementation for AzureWorkloadBackupRequest. +func (awbr AzureWorkloadBackupRequest) AsAzureFileShareBackupRequest() (*AzureFileShareBackupRequest, bool) { + return nil, false +} + +// AsAzureWorkloadBackupRequest is the BasicRequest implementation for AzureWorkloadBackupRequest. +func (awbr AzureWorkloadBackupRequest) AsAzureWorkloadBackupRequest() (*AzureWorkloadBackupRequest, bool) { + return &awbr, true +} + +// AsIaasVMBackupRequest is the BasicRequest implementation for AzureWorkloadBackupRequest. +func (awbr AzureWorkloadBackupRequest) AsIaasVMBackupRequest() (*IaasVMBackupRequest, bool) { + return nil, false +} + +// AsRequest is the BasicRequest implementation for AzureWorkloadBackupRequest. +func (awbr AzureWorkloadBackupRequest) AsRequest() (*Request, bool) { + return nil, false +} + +// AsBasicRequest is the BasicRequest implementation for AzureWorkloadBackupRequest. +func (awbr AzureWorkloadBackupRequest) AsBasicRequest() (BasicRequest, bool) { + return &awbr, true +} + +// BasicAzureWorkloadContainer container for the workloads running inside Azure Compute or Classic Compute. +type BasicAzureWorkloadContainer interface { + AsAzureSQLAGWorkloadContainerProtectionContainer() (*AzureSQLAGWorkloadContainerProtectionContainer, bool) + AsAzureVMAppContainerProtectionContainer() (*AzureVMAppContainerProtectionContainer, bool) + AsAzureWorkloadContainer() (*AzureWorkloadContainer, bool) +} + +// AzureWorkloadContainer container for the workloads running inside Azure Compute or Classic Compute. +type AzureWorkloadContainer struct { + // SourceResourceID - ARM ID of the virtual machine represented by this Azure Workload Container + SourceResourceID *string `json:"sourceResourceId,omitempty"` + // LastUpdatedTime - Time stamp when this container was updated. + LastUpdatedTime *date.Time `json:"lastUpdatedTime,omitempty"` + // ExtendedInfo - Additional details of a workload container. + ExtendedInfo *AzureWorkloadContainerExtendedInfo `json:"extendedInfo,omitempty"` + // WorkloadType - Workload type for which registration was sent. Possible values include: 'WorkloadTypeInvalid', 'WorkloadTypeVM', 'WorkloadTypeFileFolder', 'WorkloadTypeAzureSQLDb', 'WorkloadTypeSQLDB', 'WorkloadTypeExchange', 'WorkloadTypeSharepoint', 'WorkloadTypeVMwareVM', 'WorkloadTypeSystemState', 'WorkloadTypeClient', 'WorkloadTypeGenericDataSource', 'WorkloadTypeSQLDataBase', 'WorkloadTypeAzureFileShare', 'WorkloadTypeSAPHanaDatabase', 'WorkloadTypeSAPAseDatabase' + WorkloadType WorkloadType `json:"workloadType,omitempty"` + // OperationType - Re-Do Operation. Possible values include: 'OperationTypeInvalid', 'OperationTypeRegister', 'OperationTypeReregister' + OperationType OperationType `json:"operationType,omitempty"` + // FriendlyName - Friendly name of the container. + FriendlyName *string `json:"friendlyName,omitempty"` + // BackupManagementType - Type of backup management for the container. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // RegistrationStatus - Status of registration of the container with the Recovery Services Vault. + RegistrationStatus *string `json:"registrationStatus,omitempty"` + // HealthStatus - Status of health of the container. + HealthStatus *string `json:"healthStatus,omitempty"` + // ContainerType - Possible values include: 'ContainerTypeBasicProtectionContainerContainerTypeProtectionContainer', 'ContainerTypeBasicProtectionContainerContainerTypeAzureBackupServerContainer', 'ContainerTypeBasicProtectionContainerContainerTypeMicrosoftClassicComputevirtualMachines', 'ContainerTypeBasicProtectionContainerContainerTypeMicrosoftComputevirtualMachines', 'ContainerTypeBasicProtectionContainerContainerTypeSQLAGWorkLoadContainer', 'ContainerTypeBasicProtectionContainerContainerTypeAzureSQLContainer', 'ContainerTypeBasicProtectionContainerContainerTypeStorageContainer', 'ContainerTypeBasicProtectionContainerContainerTypeVMAppContainer', 'ContainerTypeBasicProtectionContainerContainerTypeAzureWorkloadContainer', 'ContainerTypeBasicProtectionContainerContainerTypeDPMContainer', 'ContainerTypeBasicProtectionContainerContainerTypeGenericContainer', 'ContainerTypeBasicProtectionContainerContainerTypeIaaSVMContainer', 'ContainerTypeBasicProtectionContainerContainerTypeWindows' + ContainerType ContainerTypeBasicProtectionContainer `json:"containerType,omitempty"` +} + +func unmarshalBasicAzureWorkloadContainer(body []byte) (BasicAzureWorkloadContainer, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["containerType"] { + case string(ContainerTypeBasicProtectionContainerContainerTypeSQLAGWorkLoadContainer): + var aswcpc AzureSQLAGWorkloadContainerProtectionContainer + err := json.Unmarshal(body, &aswcpc) + return aswcpc, err + case string(ContainerTypeBasicProtectionContainerContainerTypeVMAppContainer): + var avacpc AzureVMAppContainerProtectionContainer + err := json.Unmarshal(body, &avacpc) + return avacpc, err + default: + var awc AzureWorkloadContainer + err := json.Unmarshal(body, &awc) + return awc, err + } +} +func unmarshalBasicAzureWorkloadContainerArray(body []byte) ([]BasicAzureWorkloadContainer, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + awcArray := make([]BasicAzureWorkloadContainer, len(rawMessages)) + + for index, rawMessage := range rawMessages { + awc, err := unmarshalBasicAzureWorkloadContainer(*rawMessage) + if err != nil { + return nil, err + } + awcArray[index] = awc + } + return awcArray, nil +} + +// MarshalJSON is the custom marshaler for AzureWorkloadContainer. +func (awc AzureWorkloadContainer) MarshalJSON() ([]byte, error) { + awc.ContainerType = ContainerTypeBasicProtectionContainerContainerTypeAzureWorkloadContainer + objectMap := make(map[string]interface{}) + if awc.SourceResourceID != nil { + objectMap["sourceResourceId"] = awc.SourceResourceID + } + if awc.LastUpdatedTime != nil { + objectMap["lastUpdatedTime"] = awc.LastUpdatedTime + } + if awc.ExtendedInfo != nil { + objectMap["extendedInfo"] = awc.ExtendedInfo + } + if awc.WorkloadType != "" { + objectMap["workloadType"] = awc.WorkloadType + } + if awc.OperationType != "" { + objectMap["operationType"] = awc.OperationType + } + if awc.FriendlyName != nil { + objectMap["friendlyName"] = awc.FriendlyName + } + if awc.BackupManagementType != "" { + objectMap["backupManagementType"] = awc.BackupManagementType + } + if awc.RegistrationStatus != nil { + objectMap["registrationStatus"] = awc.RegistrationStatus + } + if awc.HealthStatus != nil { + objectMap["healthStatus"] = awc.HealthStatus + } + if awc.ContainerType != "" { + objectMap["containerType"] = awc.ContainerType + } + return json.Marshal(objectMap) +} + +// AsAzureBackupServerContainer is the BasicProtectionContainer implementation for AzureWorkloadContainer. +func (awc AzureWorkloadContainer) AsAzureBackupServerContainer() (*AzureBackupServerContainer, bool) { + return nil, false +} + +// AsAzureIaaSClassicComputeVMContainer is the BasicProtectionContainer implementation for AzureWorkloadContainer. +func (awc AzureWorkloadContainer) AsAzureIaaSClassicComputeVMContainer() (*AzureIaaSClassicComputeVMContainer, bool) { + return nil, false +} + +// AsAzureIaaSComputeVMContainer is the BasicProtectionContainer implementation for AzureWorkloadContainer. +func (awc AzureWorkloadContainer) AsAzureIaaSComputeVMContainer() (*AzureIaaSComputeVMContainer, bool) { + return nil, false +} + +// AsAzureSQLAGWorkloadContainerProtectionContainer is the BasicProtectionContainer implementation for AzureWorkloadContainer. +func (awc AzureWorkloadContainer) AsAzureSQLAGWorkloadContainerProtectionContainer() (*AzureSQLAGWorkloadContainerProtectionContainer, bool) { + return nil, false +} + +// AsAzureSQLContainer is the BasicProtectionContainer implementation for AzureWorkloadContainer. +func (awc AzureWorkloadContainer) AsAzureSQLContainer() (*AzureSQLContainer, bool) { + return nil, false +} + +// AsAzureStorageContainer is the BasicProtectionContainer implementation for AzureWorkloadContainer. +func (awc AzureWorkloadContainer) AsAzureStorageContainer() (*AzureStorageContainer, bool) { + return nil, false +} + +// AsAzureVMAppContainerProtectionContainer is the BasicProtectionContainer implementation for AzureWorkloadContainer. +func (awc AzureWorkloadContainer) AsAzureVMAppContainerProtectionContainer() (*AzureVMAppContainerProtectionContainer, bool) { + return nil, false +} + +// AsAzureWorkloadContainer is the BasicProtectionContainer implementation for AzureWorkloadContainer. +func (awc AzureWorkloadContainer) AsAzureWorkloadContainer() (*AzureWorkloadContainer, bool) { + return &awc, true +} + +// AsBasicAzureWorkloadContainer is the BasicProtectionContainer implementation for AzureWorkloadContainer. +func (awc AzureWorkloadContainer) AsBasicAzureWorkloadContainer() (BasicAzureWorkloadContainer, bool) { + return &awc, true +} + +// AsDpmContainer is the BasicProtectionContainer implementation for AzureWorkloadContainer. +func (awc AzureWorkloadContainer) AsDpmContainer() (*DpmContainer, bool) { + return nil, false +} + +// AsBasicDpmContainer is the BasicProtectionContainer implementation for AzureWorkloadContainer. +func (awc AzureWorkloadContainer) AsBasicDpmContainer() (BasicDpmContainer, bool) { + return nil, false +} + +// AsGenericContainer is the BasicProtectionContainer implementation for AzureWorkloadContainer. +func (awc AzureWorkloadContainer) AsGenericContainer() (*GenericContainer, bool) { + return nil, false +} + +// AsIaaSVMContainer is the BasicProtectionContainer implementation for AzureWorkloadContainer. +func (awc AzureWorkloadContainer) AsIaaSVMContainer() (*IaaSVMContainer, bool) { + return nil, false +} + +// AsBasicIaaSVMContainer is the BasicProtectionContainer implementation for AzureWorkloadContainer. +func (awc AzureWorkloadContainer) AsBasicIaaSVMContainer() (BasicIaaSVMContainer, bool) { + return nil, false +} + +// AsMabContainer is the BasicProtectionContainer implementation for AzureWorkloadContainer. +func (awc AzureWorkloadContainer) AsMabContainer() (*MabContainer, bool) { + return nil, false +} + +// AsProtectionContainer is the BasicProtectionContainer implementation for AzureWorkloadContainer. +func (awc AzureWorkloadContainer) AsProtectionContainer() (*ProtectionContainer, bool) { + return nil, false +} + +// AsBasicProtectionContainer is the BasicProtectionContainer implementation for AzureWorkloadContainer. +func (awc AzureWorkloadContainer) AsBasicProtectionContainer() (BasicProtectionContainer, bool) { + return &awc, true +} + +// AzureWorkloadContainerExtendedInfo extended information of the container. +type AzureWorkloadContainerExtendedInfo struct { + // HostServerName - Host Os Name in case of Stand Alone and Cluster Name in case of distributed container. + HostServerName *string `json:"hostServerName,omitempty"` + // InquiryInfo - Inquiry Status for the container. + InquiryInfo *InquiryInfo `json:"inquiryInfo,omitempty"` + // NodesList - List of the nodes in case of distributed container. + NodesList *[]DistributedNodesInfo `json:"nodesList,omitempty"` +} + +// AzureWorkloadErrorInfo azure storage specific error information +type AzureWorkloadErrorInfo struct { + // ErrorCode - Error code. + ErrorCode *int32 `json:"errorCode,omitempty"` + // ErrorString - Localized error string. + ErrorString *string `json:"errorString,omitempty"` + // ErrorTitle - Title: Typically, the entity that the error pertains to. + ErrorTitle *string `json:"errorTitle,omitempty"` + // Recommendations - List of localized recommendations for above error code. + Recommendations *[]string `json:"recommendations,omitempty"` + // AdditionalDetails - Additional details for above error code. + AdditionalDetails *string `json:"additionalDetails,omitempty"` +} + +// AzureWorkloadJob azure storage specific job. +type AzureWorkloadJob struct { + // WorkloadType - Workload type of the job + WorkloadType *string `json:"workloadType,omitempty"` + // Duration - Time elapsed during the execution of this job. + Duration *string `json:"duration,omitempty"` + // ActionsInfo - Gets or sets the state/actions applicable on this job like cancel/retry. + ActionsInfo *[]JobSupportedAction `json:"actionsInfo,omitempty"` + // ErrorDetails - Error details on execution of this job. + ErrorDetails *[]AzureWorkloadErrorInfo `json:"errorDetails,omitempty"` + // ExtendedInfo - Additional information about the job. + ExtendedInfo *AzureWorkloadJobExtendedInfo `json:"extendedInfo,omitempty"` + // EntityFriendlyName - Friendly name of the entity on which the current job is executing. + EntityFriendlyName *string `json:"entityFriendlyName,omitempty"` + // BackupManagementType - Backup management type to execute the current job. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // Operation - The operation name. + Operation *string `json:"operation,omitempty"` + // Status - Job status. + Status *string `json:"status,omitempty"` + // StartTime - The start time. + StartTime *date.Time `json:"startTime,omitempty"` + // EndTime - The end time. + EndTime *date.Time `json:"endTime,omitempty"` + // ActivityID - ActivityId of job. + ActivityID *string `json:"activityId,omitempty"` + // JobType - Possible values include: 'JobTypeJob', 'JobTypeAzureIaaSVMJob', 'JobTypeAzureStorageJob', 'JobTypeAzureWorkloadJob', 'JobTypeDpmJob', 'JobTypeMabJob', 'JobTypeVaultJob' + JobType JobType `json:"jobType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureWorkloadJob. +func (awj AzureWorkloadJob) MarshalJSON() ([]byte, error) { + awj.JobType = JobTypeAzureWorkloadJob + objectMap := make(map[string]interface{}) + if awj.WorkloadType != nil { + objectMap["workloadType"] = awj.WorkloadType + } + if awj.Duration != nil { + objectMap["duration"] = awj.Duration + } + if awj.ActionsInfo != nil { + objectMap["actionsInfo"] = awj.ActionsInfo + } + if awj.ErrorDetails != nil { + objectMap["errorDetails"] = awj.ErrorDetails + } + if awj.ExtendedInfo != nil { + objectMap["extendedInfo"] = awj.ExtendedInfo + } + if awj.EntityFriendlyName != nil { + objectMap["entityFriendlyName"] = awj.EntityFriendlyName + } + if awj.BackupManagementType != "" { + objectMap["backupManagementType"] = awj.BackupManagementType + } + if awj.Operation != nil { + objectMap["operation"] = awj.Operation + } + if awj.Status != nil { + objectMap["status"] = awj.Status + } + if awj.StartTime != nil { + objectMap["startTime"] = awj.StartTime + } + if awj.EndTime != nil { + objectMap["endTime"] = awj.EndTime + } + if awj.ActivityID != nil { + objectMap["activityId"] = awj.ActivityID + } + if awj.JobType != "" { + objectMap["jobType"] = awj.JobType + } + return json.Marshal(objectMap) +} + +// AsAzureIaaSVMJob is the BasicJob implementation for AzureWorkloadJob. +func (awj AzureWorkloadJob) AsAzureIaaSVMJob() (*AzureIaaSVMJob, bool) { + return nil, false +} + +// AsAzureStorageJob is the BasicJob implementation for AzureWorkloadJob. +func (awj AzureWorkloadJob) AsAzureStorageJob() (*AzureStorageJob, bool) { + return nil, false +} + +// AsAzureWorkloadJob is the BasicJob implementation for AzureWorkloadJob. +func (awj AzureWorkloadJob) AsAzureWorkloadJob() (*AzureWorkloadJob, bool) { + return &awj, true +} + +// AsDpmJob is the BasicJob implementation for AzureWorkloadJob. +func (awj AzureWorkloadJob) AsDpmJob() (*DpmJob, bool) { + return nil, false +} + +// AsMabJob is the BasicJob implementation for AzureWorkloadJob. +func (awj AzureWorkloadJob) AsMabJob() (*MabJob, bool) { + return nil, false +} + +// AsVaultJob is the BasicJob implementation for AzureWorkloadJob. +func (awj AzureWorkloadJob) AsVaultJob() (*VaultJob, bool) { + return nil, false +} + +// AsJob is the BasicJob implementation for AzureWorkloadJob. +func (awj AzureWorkloadJob) AsJob() (*Job, bool) { + return nil, false +} + +// AsBasicJob is the BasicJob implementation for AzureWorkloadJob. +func (awj AzureWorkloadJob) AsBasicJob() (BasicJob, bool) { + return &awj, true +} + +// AzureWorkloadJobExtendedInfo azure VM workload-specific additional information for job. +type AzureWorkloadJobExtendedInfo struct { + // TasksList - List of tasks for this job + TasksList *[]AzureWorkloadJobTaskDetails `json:"tasksList,omitempty"` + // PropertyBag - Job properties. + PropertyBag map[string]*string `json:"propertyBag"` + // DynamicErrorMessage - Non localized error message on job execution. + DynamicErrorMessage *string `json:"dynamicErrorMessage,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureWorkloadJobExtendedInfo. +func (awjei AzureWorkloadJobExtendedInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if awjei.TasksList != nil { + objectMap["tasksList"] = awjei.TasksList + } + if awjei.PropertyBag != nil { + objectMap["propertyBag"] = awjei.PropertyBag + } + if awjei.DynamicErrorMessage != nil { + objectMap["dynamicErrorMessage"] = awjei.DynamicErrorMessage + } + return json.Marshal(objectMap) +} + +// AzureWorkloadJobTaskDetails azure VM workload specific job task details. +type AzureWorkloadJobTaskDetails struct { + // TaskID - The task display name. + TaskID *string `json:"taskId,omitempty"` + // Status - The status. + Status *string `json:"status,omitempty"` +} + +// BasicAzureWorkloadPointInTimeRecoveryPoint recovery point specific to PointInTime +type BasicAzureWorkloadPointInTimeRecoveryPoint interface { + AsAzureWorkloadSAPHanaPointInTimeRecoveryPoint() (*AzureWorkloadSAPHanaPointInTimeRecoveryPoint, bool) + AsAzureWorkloadPointInTimeRecoveryPoint() (*AzureWorkloadPointInTimeRecoveryPoint, bool) +} + +// AzureWorkloadPointInTimeRecoveryPoint recovery point specific to PointInTime +type AzureWorkloadPointInTimeRecoveryPoint struct { + // TimeRanges - List of log ranges + TimeRanges *[]PointInTimeRange `json:"timeRanges,omitempty"` + // RecoveryPointTimeInUTC - READ-ONLY; UTC time at which recovery point was created + RecoveryPointTimeInUTC *date.Time `json:"recoveryPointTimeInUTC,omitempty"` + // Type - READ-ONLY; Type of restore point. Possible values include: 'RestorePointTypeInvalid', 'RestorePointTypeFull', 'RestorePointTypeLog', 'RestorePointTypeDifferential', 'RestorePointTypeIncremental' + Type RestorePointType `json:"type,omitempty"` + // RecoveryPointTierDetails - Recovery point tier information. + RecoveryPointTierDetails *[]RecoveryPointTierInformation `json:"recoveryPointTierDetails,omitempty"` + // RecoveryPointMoveReadinessInfo - Eligibility of RP to be moved to another tier + RecoveryPointMoveReadinessInfo map[string]*RecoveryPointMoveReadinessInfo `json:"recoveryPointMoveReadinessInfo"` + // ObjectType - Possible values include: 'ObjectTypeBasicRecoveryPointObjectTypeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureFileShareRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadPointInTimeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeGenericRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeIaasVMRecoveryPoint' + ObjectType ObjectTypeBasicRecoveryPoint `json:"objectType,omitempty"` +} + +func unmarshalBasicAzureWorkloadPointInTimeRecoveryPoint(body []byte) (BasicAzureWorkloadPointInTimeRecoveryPoint, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["objectType"] { + case string(ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint): + var awshpitrp AzureWorkloadSAPHanaPointInTimeRecoveryPoint + err := json.Unmarshal(body, &awshpitrp) + return awshpitrp, err + default: + var awpitrp AzureWorkloadPointInTimeRecoveryPoint + err := json.Unmarshal(body, &awpitrp) + return awpitrp, err + } +} +func unmarshalBasicAzureWorkloadPointInTimeRecoveryPointArray(body []byte) ([]BasicAzureWorkloadPointInTimeRecoveryPoint, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + awpitrpArray := make([]BasicAzureWorkloadPointInTimeRecoveryPoint, len(rawMessages)) + + for index, rawMessage := range rawMessages { + awpitrp, err := unmarshalBasicAzureWorkloadPointInTimeRecoveryPoint(*rawMessage) + if err != nil { + return nil, err + } + awpitrpArray[index] = awpitrp + } + return awpitrpArray, nil +} + +// MarshalJSON is the custom marshaler for AzureWorkloadPointInTimeRecoveryPoint. +func (awpitrp AzureWorkloadPointInTimeRecoveryPoint) MarshalJSON() ([]byte, error) { + awpitrp.ObjectType = ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadPointInTimeRecoveryPoint + objectMap := make(map[string]interface{}) + if awpitrp.TimeRanges != nil { + objectMap["timeRanges"] = awpitrp.TimeRanges + } + if awpitrp.RecoveryPointTierDetails != nil { + objectMap["recoveryPointTierDetails"] = awpitrp.RecoveryPointTierDetails + } + if awpitrp.RecoveryPointMoveReadinessInfo != nil { + objectMap["recoveryPointMoveReadinessInfo"] = awpitrp.RecoveryPointMoveReadinessInfo + } + if awpitrp.ObjectType != "" { + objectMap["objectType"] = awpitrp.ObjectType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadPointInTimeRecoveryPoint. +func (awpitrp AzureWorkloadPointInTimeRecoveryPoint) AsAzureFileShareRecoveryPoint() (*AzureFileShareRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadPointInTimeRecoveryPoint. +func (awpitrp AzureWorkloadPointInTimeRecoveryPoint) AsAzureWorkloadPointInTimeRecoveryPoint() (*AzureWorkloadPointInTimeRecoveryPoint, bool) { + return &awpitrp, true +} + +// AsBasicAzureWorkloadPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadPointInTimeRecoveryPoint. +func (awpitrp AzureWorkloadPointInTimeRecoveryPoint) AsBasicAzureWorkloadPointInTimeRecoveryPoint() (BasicAzureWorkloadPointInTimeRecoveryPoint, bool) { + return &awpitrp, true +} + +// AsAzureWorkloadRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadPointInTimeRecoveryPoint. +func (awpitrp AzureWorkloadPointInTimeRecoveryPoint) AsAzureWorkloadRecoveryPoint() (*AzureWorkloadRecoveryPoint, bool) { + return nil, false +} + +// AsBasicAzureWorkloadRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadPointInTimeRecoveryPoint. +func (awpitrp AzureWorkloadPointInTimeRecoveryPoint) AsBasicAzureWorkloadRecoveryPoint() (BasicAzureWorkloadRecoveryPoint, bool) { + return &awpitrp, true +} + +// AsAzureWorkloadSAPHanaPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadPointInTimeRecoveryPoint. +func (awpitrp AzureWorkloadPointInTimeRecoveryPoint) AsAzureWorkloadSAPHanaPointInTimeRecoveryPoint() (*AzureWorkloadSAPHanaPointInTimeRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadPointInTimeRecoveryPoint. +func (awpitrp AzureWorkloadPointInTimeRecoveryPoint) AsAzureWorkloadSAPHanaRecoveryPoint() (*AzureWorkloadSAPHanaRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadSQLPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadPointInTimeRecoveryPoint. +func (awpitrp AzureWorkloadPointInTimeRecoveryPoint) AsAzureWorkloadSQLPointInTimeRecoveryPoint() (*AzureWorkloadSQLPointInTimeRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadSQLRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadPointInTimeRecoveryPoint. +func (awpitrp AzureWorkloadPointInTimeRecoveryPoint) AsAzureWorkloadSQLRecoveryPoint() (*AzureWorkloadSQLRecoveryPoint, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSQLRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadPointInTimeRecoveryPoint. +func (awpitrp AzureWorkloadPointInTimeRecoveryPoint) AsBasicAzureWorkloadSQLRecoveryPoint() (BasicAzureWorkloadSQLRecoveryPoint, bool) { + return nil, false +} + +// AsGenericRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadPointInTimeRecoveryPoint. +func (awpitrp AzureWorkloadPointInTimeRecoveryPoint) AsGenericRecoveryPoint() (*GenericRecoveryPoint, bool) { + return nil, false +} + +// AsIaasVMRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadPointInTimeRecoveryPoint. +func (awpitrp AzureWorkloadPointInTimeRecoveryPoint) AsIaasVMRecoveryPoint() (*IaasVMRecoveryPoint, bool) { + return nil, false +} + +// AsRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadPointInTimeRecoveryPoint. +func (awpitrp AzureWorkloadPointInTimeRecoveryPoint) AsRecoveryPoint() (*RecoveryPoint, bool) { + return nil, false +} + +// AsBasicRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadPointInTimeRecoveryPoint. +func (awpitrp AzureWorkloadPointInTimeRecoveryPoint) AsBasicRecoveryPoint() (BasicRecoveryPoint, bool) { + return &awpitrp, true +} + +// AzureWorkloadPointInTimeRestoreRequest azureWorkload SAP Hana -specific restore. Specifically for +// PointInTime/Log restore +type AzureWorkloadPointInTimeRestoreRequest struct { + // PointInTime - PointInTime value + PointInTime *date.Time `json:"pointInTime,omitempty"` + // RecoveryType - Type of this recovery. Possible values include: 'RecoveryTypeInvalid', 'RecoveryTypeOriginalLocation', 'RecoveryTypeAlternateLocation', 'RecoveryTypeRestoreDisks', 'RecoveryTypeOffline' + RecoveryType RecoveryType `json:"recoveryType,omitempty"` + // SourceResourceID - Fully qualified ARM ID of the VM on which workload that was running is being recovered. + SourceResourceID *string `json:"sourceResourceId,omitempty"` + // PropertyBag - Workload specific property bag. + PropertyBag map[string]*string `json:"propertyBag"` + // TargetInfo - Details of target database + TargetInfo *TargetRestoreInfo `json:"targetInfo,omitempty"` + // RecoveryMode - Defines whether the current recovery mode is file restore or database restore. Possible values include: 'RecoveryModeInvalid', 'RecoveryModeFileRecovery', 'RecoveryModeWorkloadRecovery' + RecoveryMode RecoveryMode `json:"recoveryMode,omitempty"` + // TargetVirtualMachineID - This is the complete ARM Id of the target VM + // For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + TargetVirtualMachineID *string `json:"targetVirtualMachineId,omitempty"` + // ObjectType - Possible values include: 'ObjectTypeBasicRestoreRequestObjectTypeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureFileShareRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreWithRehydrationRequest' + ObjectType ObjectTypeBasicRestoreRequest `json:"objectType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureWorkloadPointInTimeRestoreRequest. +func (awpitrr AzureWorkloadPointInTimeRestoreRequest) MarshalJSON() ([]byte, error) { + awpitrr.ObjectType = ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadPointInTimeRestoreRequest + objectMap := make(map[string]interface{}) + if awpitrr.PointInTime != nil { + objectMap["pointInTime"] = awpitrr.PointInTime + } + if awpitrr.RecoveryType != "" { + objectMap["recoveryType"] = awpitrr.RecoveryType + } + if awpitrr.SourceResourceID != nil { + objectMap["sourceResourceId"] = awpitrr.SourceResourceID + } + if awpitrr.PropertyBag != nil { + objectMap["propertyBag"] = awpitrr.PropertyBag + } + if awpitrr.TargetInfo != nil { + objectMap["targetInfo"] = awpitrr.TargetInfo + } + if awpitrr.RecoveryMode != "" { + objectMap["recoveryMode"] = awpitrr.RecoveryMode + } + if awpitrr.TargetVirtualMachineID != nil { + objectMap["targetVirtualMachineId"] = awpitrr.TargetVirtualMachineID + } + if awpitrr.ObjectType != "" { + objectMap["objectType"] = awpitrr.ObjectType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadPointInTimeRestoreRequest. +func (awpitrr AzureWorkloadPointInTimeRestoreRequest) AsAzureFileShareRestoreRequest() (*AzureFileShareRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadPointInTimeRestoreRequest. +func (awpitrr AzureWorkloadPointInTimeRestoreRequest) AsAzureWorkloadPointInTimeRestoreRequest() (*AzureWorkloadPointInTimeRestoreRequest, bool) { + return &awpitrr, true +} + +// AsAzureWorkloadRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadPointInTimeRestoreRequest. +func (awpitrr AzureWorkloadPointInTimeRestoreRequest) AsAzureWorkloadRestoreRequest() (*AzureWorkloadRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadPointInTimeRestoreRequest. +func (awpitrr AzureWorkloadPointInTimeRestoreRequest) AsBasicAzureWorkloadRestoreRequest() (BasicAzureWorkloadRestoreRequest, bool) { + return &awpitrr, true +} + +// AsAzureWorkloadSAPHanaPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadPointInTimeRestoreRequest. +func (awpitrr AzureWorkloadPointInTimeRestoreRequest) AsAzureWorkloadSAPHanaPointInTimeRestoreRequest() (*AzureWorkloadSAPHanaPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSAPHanaPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadPointInTimeRestoreRequest. +func (awpitrr AzureWorkloadPointInTimeRestoreRequest) AsBasicAzureWorkloadSAPHanaPointInTimeRestoreRequest() (BasicAzureWorkloadSAPHanaPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadPointInTimeRestoreRequest. +func (awpitrr AzureWorkloadPointInTimeRestoreRequest) AsAzureWorkloadSAPHanaRestoreRequest() (*AzureWorkloadSAPHanaRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSAPHanaRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadPointInTimeRestoreRequest. +func (awpitrr AzureWorkloadPointInTimeRestoreRequest) AsBasicAzureWorkloadSAPHanaRestoreRequest() (BasicAzureWorkloadSAPHanaRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadPointInTimeRestoreRequest. +func (awpitrr AzureWorkloadPointInTimeRestoreRequest) AsAzureWorkloadSQLPointInTimeRestoreRequest() (*AzureWorkloadSQLPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSQLPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadPointInTimeRestoreRequest. +func (awpitrr AzureWorkloadPointInTimeRestoreRequest) AsBasicAzureWorkloadSQLPointInTimeRestoreRequest() (BasicAzureWorkloadSQLPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadPointInTimeRestoreRequest. +func (awpitrr AzureWorkloadPointInTimeRestoreRequest) AsAzureWorkloadSQLRestoreRequest() (*AzureWorkloadSQLRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSQLRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadPointInTimeRestoreRequest. +func (awpitrr AzureWorkloadPointInTimeRestoreRequest) AsBasicAzureWorkloadSQLRestoreRequest() (BasicAzureWorkloadSQLRestoreRequest, bool) { + return nil, false +} + +// AsIaasVMRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadPointInTimeRestoreRequest. +func (awpitrr AzureWorkloadPointInTimeRestoreRequest) AsIaasVMRestoreRequest() (*IaasVMRestoreRequest, bool) { + return nil, false +} + +// AsBasicIaasVMRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadPointInTimeRestoreRequest. +func (awpitrr AzureWorkloadPointInTimeRestoreRequest) AsBasicIaasVMRestoreRequest() (BasicIaasVMRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadPointInTimeRestoreRequest. +func (awpitrr AzureWorkloadPointInTimeRestoreRequest) AsAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest() (*AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadPointInTimeRestoreRequest. +func (awpitrr AzureWorkloadPointInTimeRestoreRequest) AsAzureWorkloadSAPHanaRestoreWithRehydrateRequest() (*AzureWorkloadSAPHanaRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadPointInTimeRestoreRequest. +func (awpitrr AzureWorkloadPointInTimeRestoreRequest) AsAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest() (*AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadPointInTimeRestoreRequest. +func (awpitrr AzureWorkloadPointInTimeRestoreRequest) AsAzureWorkloadSQLRestoreWithRehydrateRequest() (*AzureWorkloadSQLRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsIaasVMRestoreWithRehydrationRequest is the BasicRestoreRequest implementation for AzureWorkloadPointInTimeRestoreRequest. +func (awpitrr AzureWorkloadPointInTimeRestoreRequest) AsIaasVMRestoreWithRehydrationRequest() (*IaasVMRestoreWithRehydrationRequest, bool) { + return nil, false +} + +// AsRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadPointInTimeRestoreRequest. +func (awpitrr AzureWorkloadPointInTimeRestoreRequest) AsRestoreRequest() (*RestoreRequest, bool) { + return nil, false +} + +// AsBasicRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadPointInTimeRestoreRequest. +func (awpitrr AzureWorkloadPointInTimeRestoreRequest) AsBasicRestoreRequest() (BasicRestoreRequest, bool) { + return &awpitrr, true +} + +// BasicAzureWorkloadRecoveryPoint workload specific recovery point, specifically encapsulates full/diff recovery point +type BasicAzureWorkloadRecoveryPoint interface { + AsAzureWorkloadPointInTimeRecoveryPoint() (*AzureWorkloadPointInTimeRecoveryPoint, bool) + AsBasicAzureWorkloadPointInTimeRecoveryPoint() (BasicAzureWorkloadPointInTimeRecoveryPoint, bool) + AsAzureWorkloadSAPHanaPointInTimeRecoveryPoint() (*AzureWorkloadSAPHanaPointInTimeRecoveryPoint, bool) + AsAzureWorkloadSAPHanaRecoveryPoint() (*AzureWorkloadSAPHanaRecoveryPoint, bool) + AsAzureWorkloadSQLPointInTimeRecoveryPoint() (*AzureWorkloadSQLPointInTimeRecoveryPoint, bool) + AsAzureWorkloadSQLRecoveryPoint() (*AzureWorkloadSQLRecoveryPoint, bool) + AsBasicAzureWorkloadSQLRecoveryPoint() (BasicAzureWorkloadSQLRecoveryPoint, bool) + AsAzureWorkloadRecoveryPoint() (*AzureWorkloadRecoveryPoint, bool) +} + +// AzureWorkloadRecoveryPoint workload specific recovery point, specifically encapsulates full/diff recovery +// point +type AzureWorkloadRecoveryPoint struct { + // RecoveryPointTimeInUTC - READ-ONLY; UTC time at which recovery point was created + RecoveryPointTimeInUTC *date.Time `json:"recoveryPointTimeInUTC,omitempty"` + // Type - READ-ONLY; Type of restore point. Possible values include: 'RestorePointTypeInvalid', 'RestorePointTypeFull', 'RestorePointTypeLog', 'RestorePointTypeDifferential', 'RestorePointTypeIncremental' + Type RestorePointType `json:"type,omitempty"` + // RecoveryPointTierDetails - Recovery point tier information. + RecoveryPointTierDetails *[]RecoveryPointTierInformation `json:"recoveryPointTierDetails,omitempty"` + // RecoveryPointMoveReadinessInfo - Eligibility of RP to be moved to another tier + RecoveryPointMoveReadinessInfo map[string]*RecoveryPointMoveReadinessInfo `json:"recoveryPointMoveReadinessInfo"` + // ObjectType - Possible values include: 'ObjectTypeBasicRecoveryPointObjectTypeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureFileShareRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadPointInTimeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeGenericRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeIaasVMRecoveryPoint' + ObjectType ObjectTypeBasicRecoveryPoint `json:"objectType,omitempty"` +} + +func unmarshalBasicAzureWorkloadRecoveryPoint(body []byte) (BasicAzureWorkloadRecoveryPoint, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["objectType"] { + case string(ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadPointInTimeRecoveryPoint): + var awpitrp AzureWorkloadPointInTimeRecoveryPoint + err := json.Unmarshal(body, &awpitrp) + return awpitrp, err + case string(ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint): + var awshpitrp AzureWorkloadSAPHanaPointInTimeRecoveryPoint + err := json.Unmarshal(body, &awshpitrp) + return awshpitrp, err + case string(ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaRecoveryPoint): + var awshrp AzureWorkloadSAPHanaRecoveryPoint + err := json.Unmarshal(body, &awshrp) + return awshrp, err + case string(ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint): + var awspitrp AzureWorkloadSQLPointInTimeRecoveryPoint + err := json.Unmarshal(body, &awspitrp) + return awspitrp, err + case string(ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLRecoveryPoint): + var awsrp AzureWorkloadSQLRecoveryPoint + err := json.Unmarshal(body, &awsrp) + return awsrp, err + default: + var awrp AzureWorkloadRecoveryPoint + err := json.Unmarshal(body, &awrp) + return awrp, err + } +} +func unmarshalBasicAzureWorkloadRecoveryPointArray(body []byte) ([]BasicAzureWorkloadRecoveryPoint, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + awrpArray := make([]BasicAzureWorkloadRecoveryPoint, len(rawMessages)) + + for index, rawMessage := range rawMessages { + awrp, err := unmarshalBasicAzureWorkloadRecoveryPoint(*rawMessage) + if err != nil { + return nil, err + } + awrpArray[index] = awrp + } + return awrpArray, nil +} + +// MarshalJSON is the custom marshaler for AzureWorkloadRecoveryPoint. +func (awrp AzureWorkloadRecoveryPoint) MarshalJSON() ([]byte, error) { + awrp.ObjectType = ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadRecoveryPoint + objectMap := make(map[string]interface{}) + if awrp.RecoveryPointTierDetails != nil { + objectMap["recoveryPointTierDetails"] = awrp.RecoveryPointTierDetails + } + if awrp.RecoveryPointMoveReadinessInfo != nil { + objectMap["recoveryPointMoveReadinessInfo"] = awrp.RecoveryPointMoveReadinessInfo + } + if awrp.ObjectType != "" { + objectMap["objectType"] = awrp.ObjectType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadRecoveryPoint. +func (awrp AzureWorkloadRecoveryPoint) AsAzureFileShareRecoveryPoint() (*AzureFileShareRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadRecoveryPoint. +func (awrp AzureWorkloadRecoveryPoint) AsAzureWorkloadPointInTimeRecoveryPoint() (*AzureWorkloadPointInTimeRecoveryPoint, bool) { + return nil, false +} + +// AsBasicAzureWorkloadPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadRecoveryPoint. +func (awrp AzureWorkloadRecoveryPoint) AsBasicAzureWorkloadPointInTimeRecoveryPoint() (BasicAzureWorkloadPointInTimeRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadRecoveryPoint. +func (awrp AzureWorkloadRecoveryPoint) AsAzureWorkloadRecoveryPoint() (*AzureWorkloadRecoveryPoint, bool) { + return &awrp, true +} + +// AsBasicAzureWorkloadRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadRecoveryPoint. +func (awrp AzureWorkloadRecoveryPoint) AsBasicAzureWorkloadRecoveryPoint() (BasicAzureWorkloadRecoveryPoint, bool) { + return &awrp, true +} + +// AsAzureWorkloadSAPHanaPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadRecoveryPoint. +func (awrp AzureWorkloadRecoveryPoint) AsAzureWorkloadSAPHanaPointInTimeRecoveryPoint() (*AzureWorkloadSAPHanaPointInTimeRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadRecoveryPoint. +func (awrp AzureWorkloadRecoveryPoint) AsAzureWorkloadSAPHanaRecoveryPoint() (*AzureWorkloadSAPHanaRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadSQLPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadRecoveryPoint. +func (awrp AzureWorkloadRecoveryPoint) AsAzureWorkloadSQLPointInTimeRecoveryPoint() (*AzureWorkloadSQLPointInTimeRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadSQLRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadRecoveryPoint. +func (awrp AzureWorkloadRecoveryPoint) AsAzureWorkloadSQLRecoveryPoint() (*AzureWorkloadSQLRecoveryPoint, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSQLRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadRecoveryPoint. +func (awrp AzureWorkloadRecoveryPoint) AsBasicAzureWorkloadSQLRecoveryPoint() (BasicAzureWorkloadSQLRecoveryPoint, bool) { + return nil, false +} + +// AsGenericRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadRecoveryPoint. +func (awrp AzureWorkloadRecoveryPoint) AsGenericRecoveryPoint() (*GenericRecoveryPoint, bool) { + return nil, false +} + +// AsIaasVMRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadRecoveryPoint. +func (awrp AzureWorkloadRecoveryPoint) AsIaasVMRecoveryPoint() (*IaasVMRecoveryPoint, bool) { + return nil, false +} + +// AsRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadRecoveryPoint. +func (awrp AzureWorkloadRecoveryPoint) AsRecoveryPoint() (*RecoveryPoint, bool) { + return nil, false +} + +// AsBasicRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadRecoveryPoint. +func (awrp AzureWorkloadRecoveryPoint) AsBasicRecoveryPoint() (BasicRecoveryPoint, bool) { + return &awrp, true +} + +// BasicAzureWorkloadRestoreRequest azureWorkload-specific restore. +type BasicAzureWorkloadRestoreRequest interface { + AsAzureWorkloadPointInTimeRestoreRequest() (*AzureWorkloadPointInTimeRestoreRequest, bool) + AsAzureWorkloadSAPHanaPointInTimeRestoreRequest() (*AzureWorkloadSAPHanaPointInTimeRestoreRequest, bool) + AsBasicAzureWorkloadSAPHanaPointInTimeRestoreRequest() (BasicAzureWorkloadSAPHanaPointInTimeRestoreRequest, bool) + AsAzureWorkloadSAPHanaRestoreRequest() (*AzureWorkloadSAPHanaRestoreRequest, bool) + AsBasicAzureWorkloadSAPHanaRestoreRequest() (BasicAzureWorkloadSAPHanaRestoreRequest, bool) + AsAzureWorkloadSQLPointInTimeRestoreRequest() (*AzureWorkloadSQLPointInTimeRestoreRequest, bool) + AsBasicAzureWorkloadSQLPointInTimeRestoreRequest() (BasicAzureWorkloadSQLPointInTimeRestoreRequest, bool) + AsAzureWorkloadSQLRestoreRequest() (*AzureWorkloadSQLRestoreRequest, bool) + AsBasicAzureWorkloadSQLRestoreRequest() (BasicAzureWorkloadSQLRestoreRequest, bool) + AsAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest() (*AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, bool) + AsAzureWorkloadSAPHanaRestoreWithRehydrateRequest() (*AzureWorkloadSAPHanaRestoreWithRehydrateRequest, bool) + AsAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest() (*AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, bool) + AsAzureWorkloadSQLRestoreWithRehydrateRequest() (*AzureWorkloadSQLRestoreWithRehydrateRequest, bool) + AsAzureWorkloadRestoreRequest() (*AzureWorkloadRestoreRequest, bool) +} + +// AzureWorkloadRestoreRequest azureWorkload-specific restore. +type AzureWorkloadRestoreRequest struct { + // RecoveryType - Type of this recovery. Possible values include: 'RecoveryTypeInvalid', 'RecoveryTypeOriginalLocation', 'RecoveryTypeAlternateLocation', 'RecoveryTypeRestoreDisks', 'RecoveryTypeOffline' + RecoveryType RecoveryType `json:"recoveryType,omitempty"` + // SourceResourceID - Fully qualified ARM ID of the VM on which workload that was running is being recovered. + SourceResourceID *string `json:"sourceResourceId,omitempty"` + // PropertyBag - Workload specific property bag. + PropertyBag map[string]*string `json:"propertyBag"` + // TargetInfo - Details of target database + TargetInfo *TargetRestoreInfo `json:"targetInfo,omitempty"` + // RecoveryMode - Defines whether the current recovery mode is file restore or database restore. Possible values include: 'RecoveryModeInvalid', 'RecoveryModeFileRecovery', 'RecoveryModeWorkloadRecovery' + RecoveryMode RecoveryMode `json:"recoveryMode,omitempty"` + // TargetVirtualMachineID - This is the complete ARM Id of the target VM + // For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + TargetVirtualMachineID *string `json:"targetVirtualMachineId,omitempty"` + // ObjectType - Possible values include: 'ObjectTypeBasicRestoreRequestObjectTypeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureFileShareRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreWithRehydrationRequest' + ObjectType ObjectTypeBasicRestoreRequest `json:"objectType,omitempty"` +} + +func unmarshalBasicAzureWorkloadRestoreRequest(body []byte) (BasicAzureWorkloadRestoreRequest, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["objectType"] { + case string(ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadPointInTimeRestoreRequest): + var awpitrr AzureWorkloadPointInTimeRestoreRequest + err := json.Unmarshal(body, &awpitrr) + return awpitrr, err + case string(ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest): + var awshpitrr AzureWorkloadSAPHanaPointInTimeRestoreRequest + err := json.Unmarshal(body, &awshpitrr) + return awshpitrr, err + case string(ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreRequest): + var awshrr AzureWorkloadSAPHanaRestoreRequest + err := json.Unmarshal(body, &awshrr) + return awshrr, err + case string(ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest): + var awspitrr AzureWorkloadSQLPointInTimeRestoreRequest + err := json.Unmarshal(body, &awspitrr) + return awspitrr, err + case string(ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreRequest): + var awsrr AzureWorkloadSQLRestoreRequest + err := json.Unmarshal(body, &awsrr) + return awsrr, err + case string(ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest): + var awshpitrwrr AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest + err := json.Unmarshal(body, &awshpitrwrr) + return awshpitrwrr, err + case string(ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreWithRehydrateRequest): + var awshrwrr AzureWorkloadSAPHanaRestoreWithRehydrateRequest + err := json.Unmarshal(body, &awshrwrr) + return awshrwrr, err + case string(ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest): + var awspitrwrr AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest + err := json.Unmarshal(body, &awspitrwrr) + return awspitrwrr, err + case string(ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreWithRehydrateRequest): + var awsrwrr AzureWorkloadSQLRestoreWithRehydrateRequest + err := json.Unmarshal(body, &awsrwrr) + return awsrwrr, err + default: + var awrr AzureWorkloadRestoreRequest + err := json.Unmarshal(body, &awrr) + return awrr, err + } +} +func unmarshalBasicAzureWorkloadRestoreRequestArray(body []byte) ([]BasicAzureWorkloadRestoreRequest, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + awrrArray := make([]BasicAzureWorkloadRestoreRequest, len(rawMessages)) + + for index, rawMessage := range rawMessages { + awrr, err := unmarshalBasicAzureWorkloadRestoreRequest(*rawMessage) + if err != nil { + return nil, err + } + awrrArray[index] = awrr + } + return awrrArray, nil +} + +// MarshalJSON is the custom marshaler for AzureWorkloadRestoreRequest. +func (awrr AzureWorkloadRestoreRequest) MarshalJSON() ([]byte, error) { + awrr.ObjectType = ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadRestoreRequest + objectMap := make(map[string]interface{}) + if awrr.RecoveryType != "" { + objectMap["recoveryType"] = awrr.RecoveryType + } + if awrr.SourceResourceID != nil { + objectMap["sourceResourceId"] = awrr.SourceResourceID + } + if awrr.PropertyBag != nil { + objectMap["propertyBag"] = awrr.PropertyBag + } + if awrr.TargetInfo != nil { + objectMap["targetInfo"] = awrr.TargetInfo + } + if awrr.RecoveryMode != "" { + objectMap["recoveryMode"] = awrr.RecoveryMode + } + if awrr.TargetVirtualMachineID != nil { + objectMap["targetVirtualMachineId"] = awrr.TargetVirtualMachineID + } + if awrr.ObjectType != "" { + objectMap["objectType"] = awrr.ObjectType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadRestoreRequest. +func (awrr AzureWorkloadRestoreRequest) AsAzureFileShareRestoreRequest() (*AzureFileShareRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadRestoreRequest. +func (awrr AzureWorkloadRestoreRequest) AsAzureWorkloadPointInTimeRestoreRequest() (*AzureWorkloadPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadRestoreRequest. +func (awrr AzureWorkloadRestoreRequest) AsAzureWorkloadRestoreRequest() (*AzureWorkloadRestoreRequest, bool) { + return &awrr, true +} + +// AsBasicAzureWorkloadRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadRestoreRequest. +func (awrr AzureWorkloadRestoreRequest) AsBasicAzureWorkloadRestoreRequest() (BasicAzureWorkloadRestoreRequest, bool) { + return &awrr, true +} + +// AsAzureWorkloadSAPHanaPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadRestoreRequest. +func (awrr AzureWorkloadRestoreRequest) AsAzureWorkloadSAPHanaPointInTimeRestoreRequest() (*AzureWorkloadSAPHanaPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSAPHanaPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadRestoreRequest. +func (awrr AzureWorkloadRestoreRequest) AsBasicAzureWorkloadSAPHanaPointInTimeRestoreRequest() (BasicAzureWorkloadSAPHanaPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadRestoreRequest. +func (awrr AzureWorkloadRestoreRequest) AsAzureWorkloadSAPHanaRestoreRequest() (*AzureWorkloadSAPHanaRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSAPHanaRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadRestoreRequest. +func (awrr AzureWorkloadRestoreRequest) AsBasicAzureWorkloadSAPHanaRestoreRequest() (BasicAzureWorkloadSAPHanaRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadRestoreRequest. +func (awrr AzureWorkloadRestoreRequest) AsAzureWorkloadSQLPointInTimeRestoreRequest() (*AzureWorkloadSQLPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSQLPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadRestoreRequest. +func (awrr AzureWorkloadRestoreRequest) AsBasicAzureWorkloadSQLPointInTimeRestoreRequest() (BasicAzureWorkloadSQLPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadRestoreRequest. +func (awrr AzureWorkloadRestoreRequest) AsAzureWorkloadSQLRestoreRequest() (*AzureWorkloadSQLRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSQLRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadRestoreRequest. +func (awrr AzureWorkloadRestoreRequest) AsBasicAzureWorkloadSQLRestoreRequest() (BasicAzureWorkloadSQLRestoreRequest, bool) { + return nil, false +} + +// AsIaasVMRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadRestoreRequest. +func (awrr AzureWorkloadRestoreRequest) AsIaasVMRestoreRequest() (*IaasVMRestoreRequest, bool) { + return nil, false +} + +// AsBasicIaasVMRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadRestoreRequest. +func (awrr AzureWorkloadRestoreRequest) AsBasicIaasVMRestoreRequest() (BasicIaasVMRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadRestoreRequest. +func (awrr AzureWorkloadRestoreRequest) AsAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest() (*AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadRestoreRequest. +func (awrr AzureWorkloadRestoreRequest) AsAzureWorkloadSAPHanaRestoreWithRehydrateRequest() (*AzureWorkloadSAPHanaRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadRestoreRequest. +func (awrr AzureWorkloadRestoreRequest) AsAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest() (*AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadRestoreRequest. +func (awrr AzureWorkloadRestoreRequest) AsAzureWorkloadSQLRestoreWithRehydrateRequest() (*AzureWorkloadSQLRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsIaasVMRestoreWithRehydrationRequest is the BasicRestoreRequest implementation for AzureWorkloadRestoreRequest. +func (awrr AzureWorkloadRestoreRequest) AsIaasVMRestoreWithRehydrationRequest() (*IaasVMRestoreWithRehydrationRequest, bool) { + return nil, false +} + +// AsRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadRestoreRequest. +func (awrr AzureWorkloadRestoreRequest) AsRestoreRequest() (*RestoreRequest, bool) { + return nil, false +} + +// AsBasicRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadRestoreRequest. +func (awrr AzureWorkloadRestoreRequest) AsBasicRestoreRequest() (BasicRestoreRequest, bool) { + return &awrr, true +} + +// AzureWorkloadSAPHanaPointInTimeRecoveryPoint recovery point specific to PointInTime in SAPHana +type AzureWorkloadSAPHanaPointInTimeRecoveryPoint struct { + // TimeRanges - List of log ranges + TimeRanges *[]PointInTimeRange `json:"timeRanges,omitempty"` + // RecoveryPointTimeInUTC - READ-ONLY; UTC time at which recovery point was created + RecoveryPointTimeInUTC *date.Time `json:"recoveryPointTimeInUTC,omitempty"` + // Type - READ-ONLY; Type of restore point. Possible values include: 'RestorePointTypeInvalid', 'RestorePointTypeFull', 'RestorePointTypeLog', 'RestorePointTypeDifferential', 'RestorePointTypeIncremental' + Type RestorePointType `json:"type,omitempty"` + // RecoveryPointTierDetails - Recovery point tier information. + RecoveryPointTierDetails *[]RecoveryPointTierInformation `json:"recoveryPointTierDetails,omitempty"` + // RecoveryPointMoveReadinessInfo - Eligibility of RP to be moved to another tier + RecoveryPointMoveReadinessInfo map[string]*RecoveryPointMoveReadinessInfo `json:"recoveryPointMoveReadinessInfo"` + // ObjectType - Possible values include: 'ObjectTypeBasicRecoveryPointObjectTypeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureFileShareRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadPointInTimeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeGenericRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeIaasVMRecoveryPoint' + ObjectType ObjectTypeBasicRecoveryPoint `json:"objectType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureWorkloadSAPHanaPointInTimeRecoveryPoint. +func (awshpitrp AzureWorkloadSAPHanaPointInTimeRecoveryPoint) MarshalJSON() ([]byte, error) { + awshpitrp.ObjectType = ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint + objectMap := make(map[string]interface{}) + if awshpitrp.TimeRanges != nil { + objectMap["timeRanges"] = awshpitrp.TimeRanges + } + if awshpitrp.RecoveryPointTierDetails != nil { + objectMap["recoveryPointTierDetails"] = awshpitrp.RecoveryPointTierDetails + } + if awshpitrp.RecoveryPointMoveReadinessInfo != nil { + objectMap["recoveryPointMoveReadinessInfo"] = awshpitrp.RecoveryPointMoveReadinessInfo + } + if awshpitrp.ObjectType != "" { + objectMap["objectType"] = awshpitrp.ObjectType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSAPHanaPointInTimeRecoveryPoint. +func (awshpitrp AzureWorkloadSAPHanaPointInTimeRecoveryPoint) AsAzureFileShareRecoveryPoint() (*AzureFileShareRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSAPHanaPointInTimeRecoveryPoint. +func (awshpitrp AzureWorkloadSAPHanaPointInTimeRecoveryPoint) AsAzureWorkloadPointInTimeRecoveryPoint() (*AzureWorkloadPointInTimeRecoveryPoint, bool) { + return nil, false +} + +// AsBasicAzureWorkloadPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSAPHanaPointInTimeRecoveryPoint. +func (awshpitrp AzureWorkloadSAPHanaPointInTimeRecoveryPoint) AsBasicAzureWorkloadPointInTimeRecoveryPoint() (BasicAzureWorkloadPointInTimeRecoveryPoint, bool) { + return &awshpitrp, true +} + +// AsAzureWorkloadRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSAPHanaPointInTimeRecoveryPoint. +func (awshpitrp AzureWorkloadSAPHanaPointInTimeRecoveryPoint) AsAzureWorkloadRecoveryPoint() (*AzureWorkloadRecoveryPoint, bool) { + return nil, false +} + +// AsBasicAzureWorkloadRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSAPHanaPointInTimeRecoveryPoint. +func (awshpitrp AzureWorkloadSAPHanaPointInTimeRecoveryPoint) AsBasicAzureWorkloadRecoveryPoint() (BasicAzureWorkloadRecoveryPoint, bool) { + return &awshpitrp, true +} + +// AsAzureWorkloadSAPHanaPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSAPHanaPointInTimeRecoveryPoint. +func (awshpitrp AzureWorkloadSAPHanaPointInTimeRecoveryPoint) AsAzureWorkloadSAPHanaPointInTimeRecoveryPoint() (*AzureWorkloadSAPHanaPointInTimeRecoveryPoint, bool) { + return &awshpitrp, true +} + +// AsAzureWorkloadSAPHanaRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSAPHanaPointInTimeRecoveryPoint. +func (awshpitrp AzureWorkloadSAPHanaPointInTimeRecoveryPoint) AsAzureWorkloadSAPHanaRecoveryPoint() (*AzureWorkloadSAPHanaRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadSQLPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSAPHanaPointInTimeRecoveryPoint. +func (awshpitrp AzureWorkloadSAPHanaPointInTimeRecoveryPoint) AsAzureWorkloadSQLPointInTimeRecoveryPoint() (*AzureWorkloadSQLPointInTimeRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadSQLRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSAPHanaPointInTimeRecoveryPoint. +func (awshpitrp AzureWorkloadSAPHanaPointInTimeRecoveryPoint) AsAzureWorkloadSQLRecoveryPoint() (*AzureWorkloadSQLRecoveryPoint, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSQLRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSAPHanaPointInTimeRecoveryPoint. +func (awshpitrp AzureWorkloadSAPHanaPointInTimeRecoveryPoint) AsBasicAzureWorkloadSQLRecoveryPoint() (BasicAzureWorkloadSQLRecoveryPoint, bool) { + return nil, false +} + +// AsGenericRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSAPHanaPointInTimeRecoveryPoint. +func (awshpitrp AzureWorkloadSAPHanaPointInTimeRecoveryPoint) AsGenericRecoveryPoint() (*GenericRecoveryPoint, bool) { + return nil, false +} + +// AsIaasVMRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSAPHanaPointInTimeRecoveryPoint. +func (awshpitrp AzureWorkloadSAPHanaPointInTimeRecoveryPoint) AsIaasVMRecoveryPoint() (*IaasVMRecoveryPoint, bool) { + return nil, false +} + +// AsRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSAPHanaPointInTimeRecoveryPoint. +func (awshpitrp AzureWorkloadSAPHanaPointInTimeRecoveryPoint) AsRecoveryPoint() (*RecoveryPoint, bool) { + return nil, false +} + +// AsBasicRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSAPHanaPointInTimeRecoveryPoint. +func (awshpitrp AzureWorkloadSAPHanaPointInTimeRecoveryPoint) AsBasicRecoveryPoint() (BasicRecoveryPoint, bool) { + return &awshpitrp, true +} + +// BasicAzureWorkloadSAPHanaPointInTimeRestoreRequest azureWorkload SAP Hana -specific restore. Specifically for +// PointInTime/Log restore +type BasicAzureWorkloadSAPHanaPointInTimeRestoreRequest interface { + AsAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest() (*AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, bool) + AsAzureWorkloadSAPHanaPointInTimeRestoreRequest() (*AzureWorkloadSAPHanaPointInTimeRestoreRequest, bool) +} + +// AzureWorkloadSAPHanaPointInTimeRestoreRequest azureWorkload SAP Hana -specific restore. Specifically for +// PointInTime/Log restore +type AzureWorkloadSAPHanaPointInTimeRestoreRequest struct { + // PointInTime - PointInTime value + PointInTime *date.Time `json:"pointInTime,omitempty"` + // RecoveryType - Type of this recovery. Possible values include: 'RecoveryTypeInvalid', 'RecoveryTypeOriginalLocation', 'RecoveryTypeAlternateLocation', 'RecoveryTypeRestoreDisks', 'RecoveryTypeOffline' + RecoveryType RecoveryType `json:"recoveryType,omitempty"` + // SourceResourceID - Fully qualified ARM ID of the VM on which workload that was running is being recovered. + SourceResourceID *string `json:"sourceResourceId,omitempty"` + // PropertyBag - Workload specific property bag. + PropertyBag map[string]*string `json:"propertyBag"` + // TargetInfo - Details of target database + TargetInfo *TargetRestoreInfo `json:"targetInfo,omitempty"` + // RecoveryMode - Defines whether the current recovery mode is file restore or database restore. Possible values include: 'RecoveryModeInvalid', 'RecoveryModeFileRecovery', 'RecoveryModeWorkloadRecovery' + RecoveryMode RecoveryMode `json:"recoveryMode,omitempty"` + // TargetVirtualMachineID - This is the complete ARM Id of the target VM + // For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + TargetVirtualMachineID *string `json:"targetVirtualMachineId,omitempty"` + // ObjectType - Possible values include: 'ObjectTypeBasicRestoreRequestObjectTypeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureFileShareRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreWithRehydrationRequest' + ObjectType ObjectTypeBasicRestoreRequest `json:"objectType,omitempty"` +} + +func unmarshalBasicAzureWorkloadSAPHanaPointInTimeRestoreRequest(body []byte) (BasicAzureWorkloadSAPHanaPointInTimeRestoreRequest, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["objectType"] { + case string(ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest): + var awshpitrwrr AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest + err := json.Unmarshal(body, &awshpitrwrr) + return awshpitrwrr, err + default: + var awshpitrr AzureWorkloadSAPHanaPointInTimeRestoreRequest + err := json.Unmarshal(body, &awshpitrr) + return awshpitrr, err + } +} +func unmarshalBasicAzureWorkloadSAPHanaPointInTimeRestoreRequestArray(body []byte) ([]BasicAzureWorkloadSAPHanaPointInTimeRestoreRequest, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + awshpitrrArray := make([]BasicAzureWorkloadSAPHanaPointInTimeRestoreRequest, len(rawMessages)) + + for index, rawMessage := range rawMessages { + awshpitrr, err := unmarshalBasicAzureWorkloadSAPHanaPointInTimeRestoreRequest(*rawMessage) + if err != nil { + return nil, err + } + awshpitrrArray[index] = awshpitrr + } + return awshpitrrArray, nil +} + +// MarshalJSON is the custom marshaler for AzureWorkloadSAPHanaPointInTimeRestoreRequest. +func (awshpitrr AzureWorkloadSAPHanaPointInTimeRestoreRequest) MarshalJSON() ([]byte, error) { + awshpitrr.ObjectType = ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest + objectMap := make(map[string]interface{}) + if awshpitrr.PointInTime != nil { + objectMap["pointInTime"] = awshpitrr.PointInTime + } + if awshpitrr.RecoveryType != "" { + objectMap["recoveryType"] = awshpitrr.RecoveryType + } + if awshpitrr.SourceResourceID != nil { + objectMap["sourceResourceId"] = awshpitrr.SourceResourceID + } + if awshpitrr.PropertyBag != nil { + objectMap["propertyBag"] = awshpitrr.PropertyBag + } + if awshpitrr.TargetInfo != nil { + objectMap["targetInfo"] = awshpitrr.TargetInfo + } + if awshpitrr.RecoveryMode != "" { + objectMap["recoveryMode"] = awshpitrr.RecoveryMode + } + if awshpitrr.TargetVirtualMachineID != nil { + objectMap["targetVirtualMachineId"] = awshpitrr.TargetVirtualMachineID + } + if awshpitrr.ObjectType != "" { + objectMap["objectType"] = awshpitrr.ObjectType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreRequest. +func (awshpitrr AzureWorkloadSAPHanaPointInTimeRestoreRequest) AsAzureFileShareRestoreRequest() (*AzureFileShareRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreRequest. +func (awshpitrr AzureWorkloadSAPHanaPointInTimeRestoreRequest) AsAzureWorkloadPointInTimeRestoreRequest() (*AzureWorkloadPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreRequest. +func (awshpitrr AzureWorkloadSAPHanaPointInTimeRestoreRequest) AsAzureWorkloadRestoreRequest() (*AzureWorkloadRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreRequest. +func (awshpitrr AzureWorkloadSAPHanaPointInTimeRestoreRequest) AsBasicAzureWorkloadRestoreRequest() (BasicAzureWorkloadRestoreRequest, bool) { + return &awshpitrr, true +} + +// AsAzureWorkloadSAPHanaPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreRequest. +func (awshpitrr AzureWorkloadSAPHanaPointInTimeRestoreRequest) AsAzureWorkloadSAPHanaPointInTimeRestoreRequest() (*AzureWorkloadSAPHanaPointInTimeRestoreRequest, bool) { + return &awshpitrr, true +} + +// AsBasicAzureWorkloadSAPHanaPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreRequest. +func (awshpitrr AzureWorkloadSAPHanaPointInTimeRestoreRequest) AsBasicAzureWorkloadSAPHanaPointInTimeRestoreRequest() (BasicAzureWorkloadSAPHanaPointInTimeRestoreRequest, bool) { + return &awshpitrr, true +} + +// AsAzureWorkloadSAPHanaRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreRequest. +func (awshpitrr AzureWorkloadSAPHanaPointInTimeRestoreRequest) AsAzureWorkloadSAPHanaRestoreRequest() (*AzureWorkloadSAPHanaRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSAPHanaRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreRequest. +func (awshpitrr AzureWorkloadSAPHanaPointInTimeRestoreRequest) AsBasicAzureWorkloadSAPHanaRestoreRequest() (BasicAzureWorkloadSAPHanaRestoreRequest, bool) { + return &awshpitrr, true +} + +// AsAzureWorkloadSQLPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreRequest. +func (awshpitrr AzureWorkloadSAPHanaPointInTimeRestoreRequest) AsAzureWorkloadSQLPointInTimeRestoreRequest() (*AzureWorkloadSQLPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSQLPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreRequest. +func (awshpitrr AzureWorkloadSAPHanaPointInTimeRestoreRequest) AsBasicAzureWorkloadSQLPointInTimeRestoreRequest() (BasicAzureWorkloadSQLPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreRequest. +func (awshpitrr AzureWorkloadSAPHanaPointInTimeRestoreRequest) AsAzureWorkloadSQLRestoreRequest() (*AzureWorkloadSQLRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSQLRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreRequest. +func (awshpitrr AzureWorkloadSAPHanaPointInTimeRestoreRequest) AsBasicAzureWorkloadSQLRestoreRequest() (BasicAzureWorkloadSQLRestoreRequest, bool) { + return nil, false +} + +// AsIaasVMRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreRequest. +func (awshpitrr AzureWorkloadSAPHanaPointInTimeRestoreRequest) AsIaasVMRestoreRequest() (*IaasVMRestoreRequest, bool) { + return nil, false +} + +// AsBasicIaasVMRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreRequest. +func (awshpitrr AzureWorkloadSAPHanaPointInTimeRestoreRequest) AsBasicIaasVMRestoreRequest() (BasicIaasVMRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreRequest. +func (awshpitrr AzureWorkloadSAPHanaPointInTimeRestoreRequest) AsAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest() (*AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreRequest. +func (awshpitrr AzureWorkloadSAPHanaPointInTimeRestoreRequest) AsAzureWorkloadSAPHanaRestoreWithRehydrateRequest() (*AzureWorkloadSAPHanaRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreRequest. +func (awshpitrr AzureWorkloadSAPHanaPointInTimeRestoreRequest) AsAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest() (*AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreRequest. +func (awshpitrr AzureWorkloadSAPHanaPointInTimeRestoreRequest) AsAzureWorkloadSQLRestoreWithRehydrateRequest() (*AzureWorkloadSQLRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsIaasVMRestoreWithRehydrationRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreRequest. +func (awshpitrr AzureWorkloadSAPHanaPointInTimeRestoreRequest) AsIaasVMRestoreWithRehydrationRequest() (*IaasVMRestoreWithRehydrationRequest, bool) { + return nil, false +} + +// AsRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreRequest. +func (awshpitrr AzureWorkloadSAPHanaPointInTimeRestoreRequest) AsRestoreRequest() (*RestoreRequest, bool) { + return nil, false +} + +// AsBasicRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreRequest. +func (awshpitrr AzureWorkloadSAPHanaPointInTimeRestoreRequest) AsBasicRestoreRequest() (BasicRestoreRequest, bool) { + return &awshpitrr, true +} + +// AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest azureWorkload SAP Hana-specific restore with +// integrated rehydration of recovery point. +type AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest struct { + // RecoveryPointRehydrationInfo - RP Rehydration Info + RecoveryPointRehydrationInfo *RecoveryPointRehydrationInfo `json:"recoveryPointRehydrationInfo,omitempty"` + // PointInTime - PointInTime value + PointInTime *date.Time `json:"pointInTime,omitempty"` + // RecoveryType - Type of this recovery. Possible values include: 'RecoveryTypeInvalid', 'RecoveryTypeOriginalLocation', 'RecoveryTypeAlternateLocation', 'RecoveryTypeRestoreDisks', 'RecoveryTypeOffline' + RecoveryType RecoveryType `json:"recoveryType,omitempty"` + // SourceResourceID - Fully qualified ARM ID of the VM on which workload that was running is being recovered. + SourceResourceID *string `json:"sourceResourceId,omitempty"` + // PropertyBag - Workload specific property bag. + PropertyBag map[string]*string `json:"propertyBag"` + // TargetInfo - Details of target database + TargetInfo *TargetRestoreInfo `json:"targetInfo,omitempty"` + // RecoveryMode - Defines whether the current recovery mode is file restore or database restore. Possible values include: 'RecoveryModeInvalid', 'RecoveryModeFileRecovery', 'RecoveryModeWorkloadRecovery' + RecoveryMode RecoveryMode `json:"recoveryMode,omitempty"` + // TargetVirtualMachineID - This is the complete ARM Id of the target VM + // For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + TargetVirtualMachineID *string `json:"targetVirtualMachineId,omitempty"` + // ObjectType - Possible values include: 'ObjectTypeBasicRestoreRequestObjectTypeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureFileShareRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreWithRehydrationRequest' + ObjectType ObjectTypeBasicRestoreRequest `json:"objectType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest. +func (awshpitrwrr AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest) MarshalJSON() ([]byte, error) { + awshpitrwrr.ObjectType = ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest + objectMap := make(map[string]interface{}) + if awshpitrwrr.RecoveryPointRehydrationInfo != nil { + objectMap["recoveryPointRehydrationInfo"] = awshpitrwrr.RecoveryPointRehydrationInfo + } + if awshpitrwrr.PointInTime != nil { + objectMap["pointInTime"] = awshpitrwrr.PointInTime + } + if awshpitrwrr.RecoveryType != "" { + objectMap["recoveryType"] = awshpitrwrr.RecoveryType + } + if awshpitrwrr.SourceResourceID != nil { + objectMap["sourceResourceId"] = awshpitrwrr.SourceResourceID + } + if awshpitrwrr.PropertyBag != nil { + objectMap["propertyBag"] = awshpitrwrr.PropertyBag + } + if awshpitrwrr.TargetInfo != nil { + objectMap["targetInfo"] = awshpitrwrr.TargetInfo + } + if awshpitrwrr.RecoveryMode != "" { + objectMap["recoveryMode"] = awshpitrwrr.RecoveryMode + } + if awshpitrwrr.TargetVirtualMachineID != nil { + objectMap["targetVirtualMachineId"] = awshpitrwrr.TargetVirtualMachineID + } + if awshpitrwrr.ObjectType != "" { + objectMap["objectType"] = awshpitrwrr.ObjectType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest. +func (awshpitrwrr AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest) AsAzureFileShareRestoreRequest() (*AzureFileShareRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest. +func (awshpitrwrr AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest) AsAzureWorkloadPointInTimeRestoreRequest() (*AzureWorkloadPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest. +func (awshpitrwrr AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest) AsAzureWorkloadRestoreRequest() (*AzureWorkloadRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest. +func (awshpitrwrr AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest) AsBasicAzureWorkloadRestoreRequest() (BasicAzureWorkloadRestoreRequest, bool) { + return &awshpitrwrr, true +} + +// AsAzureWorkloadSAPHanaPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest. +func (awshpitrwrr AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest) AsAzureWorkloadSAPHanaPointInTimeRestoreRequest() (*AzureWorkloadSAPHanaPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSAPHanaPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest. +func (awshpitrwrr AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest) AsBasicAzureWorkloadSAPHanaPointInTimeRestoreRequest() (BasicAzureWorkloadSAPHanaPointInTimeRestoreRequest, bool) { + return &awshpitrwrr, true +} + +// AsAzureWorkloadSAPHanaRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest. +func (awshpitrwrr AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest) AsAzureWorkloadSAPHanaRestoreRequest() (*AzureWorkloadSAPHanaRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSAPHanaRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest. +func (awshpitrwrr AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest) AsBasicAzureWorkloadSAPHanaRestoreRequest() (BasicAzureWorkloadSAPHanaRestoreRequest, bool) { + return &awshpitrwrr, true +} + +// AsAzureWorkloadSQLPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest. +func (awshpitrwrr AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest) AsAzureWorkloadSQLPointInTimeRestoreRequest() (*AzureWorkloadSQLPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSQLPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest. +func (awshpitrwrr AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest) AsBasicAzureWorkloadSQLPointInTimeRestoreRequest() (BasicAzureWorkloadSQLPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest. +func (awshpitrwrr AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest) AsAzureWorkloadSQLRestoreRequest() (*AzureWorkloadSQLRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSQLRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest. +func (awshpitrwrr AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest) AsBasicAzureWorkloadSQLRestoreRequest() (BasicAzureWorkloadSQLRestoreRequest, bool) { + return nil, false +} + +// AsIaasVMRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest. +func (awshpitrwrr AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest) AsIaasVMRestoreRequest() (*IaasVMRestoreRequest, bool) { + return nil, false +} + +// AsBasicIaasVMRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest. +func (awshpitrwrr AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest) AsBasicIaasVMRestoreRequest() (BasicIaasVMRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest. +func (awshpitrwrr AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest) AsAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest() (*AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, bool) { + return &awshpitrwrr, true +} + +// AsAzureWorkloadSAPHanaRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest. +func (awshpitrwrr AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest) AsAzureWorkloadSAPHanaRestoreWithRehydrateRequest() (*AzureWorkloadSAPHanaRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest. +func (awshpitrwrr AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest) AsAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest() (*AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest. +func (awshpitrwrr AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest) AsAzureWorkloadSQLRestoreWithRehydrateRequest() (*AzureWorkloadSQLRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsIaasVMRestoreWithRehydrationRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest. +func (awshpitrwrr AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest) AsIaasVMRestoreWithRehydrationRequest() (*IaasVMRestoreWithRehydrationRequest, bool) { + return nil, false +} + +// AsRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest. +func (awshpitrwrr AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest) AsRestoreRequest() (*RestoreRequest, bool) { + return nil, false +} + +// AsBasicRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest. +func (awshpitrwrr AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest) AsBasicRestoreRequest() (BasicRestoreRequest, bool) { + return &awshpitrwrr, true +} + +// AzureWorkloadSAPHanaRecoveryPoint sAPHana specific recoverypoint, specifically encapsulates full/diff +// recoverypoints +type AzureWorkloadSAPHanaRecoveryPoint struct { + // RecoveryPointTimeInUTC - READ-ONLY; UTC time at which recovery point was created + RecoveryPointTimeInUTC *date.Time `json:"recoveryPointTimeInUTC,omitempty"` + // Type - READ-ONLY; Type of restore point. Possible values include: 'RestorePointTypeInvalid', 'RestorePointTypeFull', 'RestorePointTypeLog', 'RestorePointTypeDifferential', 'RestorePointTypeIncremental' + Type RestorePointType `json:"type,omitempty"` + // RecoveryPointTierDetails - Recovery point tier information. + RecoveryPointTierDetails *[]RecoveryPointTierInformation `json:"recoveryPointTierDetails,omitempty"` + // RecoveryPointMoveReadinessInfo - Eligibility of RP to be moved to another tier + RecoveryPointMoveReadinessInfo map[string]*RecoveryPointMoveReadinessInfo `json:"recoveryPointMoveReadinessInfo"` + // ObjectType - Possible values include: 'ObjectTypeBasicRecoveryPointObjectTypeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureFileShareRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadPointInTimeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeGenericRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeIaasVMRecoveryPoint' + ObjectType ObjectTypeBasicRecoveryPoint `json:"objectType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureWorkloadSAPHanaRecoveryPoint. +func (awshrp AzureWorkloadSAPHanaRecoveryPoint) MarshalJSON() ([]byte, error) { + awshrp.ObjectType = ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaRecoveryPoint + objectMap := make(map[string]interface{}) + if awshrp.RecoveryPointTierDetails != nil { + objectMap["recoveryPointTierDetails"] = awshrp.RecoveryPointTierDetails + } + if awshrp.RecoveryPointMoveReadinessInfo != nil { + objectMap["recoveryPointMoveReadinessInfo"] = awshrp.RecoveryPointMoveReadinessInfo + } + if awshrp.ObjectType != "" { + objectMap["objectType"] = awshrp.ObjectType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSAPHanaRecoveryPoint. +func (awshrp AzureWorkloadSAPHanaRecoveryPoint) AsAzureFileShareRecoveryPoint() (*AzureFileShareRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSAPHanaRecoveryPoint. +func (awshrp AzureWorkloadSAPHanaRecoveryPoint) AsAzureWorkloadPointInTimeRecoveryPoint() (*AzureWorkloadPointInTimeRecoveryPoint, bool) { + return nil, false +} + +// AsBasicAzureWorkloadPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSAPHanaRecoveryPoint. +func (awshrp AzureWorkloadSAPHanaRecoveryPoint) AsBasicAzureWorkloadPointInTimeRecoveryPoint() (BasicAzureWorkloadPointInTimeRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSAPHanaRecoveryPoint. +func (awshrp AzureWorkloadSAPHanaRecoveryPoint) AsAzureWorkloadRecoveryPoint() (*AzureWorkloadRecoveryPoint, bool) { + return nil, false +} + +// AsBasicAzureWorkloadRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSAPHanaRecoveryPoint. +func (awshrp AzureWorkloadSAPHanaRecoveryPoint) AsBasicAzureWorkloadRecoveryPoint() (BasicAzureWorkloadRecoveryPoint, bool) { + return &awshrp, true +} + +// AsAzureWorkloadSAPHanaPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSAPHanaRecoveryPoint. +func (awshrp AzureWorkloadSAPHanaRecoveryPoint) AsAzureWorkloadSAPHanaPointInTimeRecoveryPoint() (*AzureWorkloadSAPHanaPointInTimeRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSAPHanaRecoveryPoint. +func (awshrp AzureWorkloadSAPHanaRecoveryPoint) AsAzureWorkloadSAPHanaRecoveryPoint() (*AzureWorkloadSAPHanaRecoveryPoint, bool) { + return &awshrp, true +} + +// AsAzureWorkloadSQLPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSAPHanaRecoveryPoint. +func (awshrp AzureWorkloadSAPHanaRecoveryPoint) AsAzureWorkloadSQLPointInTimeRecoveryPoint() (*AzureWorkloadSQLPointInTimeRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadSQLRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSAPHanaRecoveryPoint. +func (awshrp AzureWorkloadSAPHanaRecoveryPoint) AsAzureWorkloadSQLRecoveryPoint() (*AzureWorkloadSQLRecoveryPoint, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSQLRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSAPHanaRecoveryPoint. +func (awshrp AzureWorkloadSAPHanaRecoveryPoint) AsBasicAzureWorkloadSQLRecoveryPoint() (BasicAzureWorkloadSQLRecoveryPoint, bool) { + return nil, false +} + +// AsGenericRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSAPHanaRecoveryPoint. +func (awshrp AzureWorkloadSAPHanaRecoveryPoint) AsGenericRecoveryPoint() (*GenericRecoveryPoint, bool) { + return nil, false +} + +// AsIaasVMRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSAPHanaRecoveryPoint. +func (awshrp AzureWorkloadSAPHanaRecoveryPoint) AsIaasVMRecoveryPoint() (*IaasVMRecoveryPoint, bool) { + return nil, false +} + +// AsRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSAPHanaRecoveryPoint. +func (awshrp AzureWorkloadSAPHanaRecoveryPoint) AsRecoveryPoint() (*RecoveryPoint, bool) { + return nil, false +} + +// AsBasicRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSAPHanaRecoveryPoint. +func (awshrp AzureWorkloadSAPHanaRecoveryPoint) AsBasicRecoveryPoint() (BasicRecoveryPoint, bool) { + return &awshrp, true +} + +// BasicAzureWorkloadSAPHanaRestoreRequest azureWorkload SAP Hana-specific restore. +type BasicAzureWorkloadSAPHanaRestoreRequest interface { + AsAzureWorkloadSAPHanaPointInTimeRestoreRequest() (*AzureWorkloadSAPHanaPointInTimeRestoreRequest, bool) + AsBasicAzureWorkloadSAPHanaPointInTimeRestoreRequest() (BasicAzureWorkloadSAPHanaPointInTimeRestoreRequest, bool) + AsAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest() (*AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, bool) + AsAzureWorkloadSAPHanaRestoreWithRehydrateRequest() (*AzureWorkloadSAPHanaRestoreWithRehydrateRequest, bool) + AsAzureWorkloadSAPHanaRestoreRequest() (*AzureWorkloadSAPHanaRestoreRequest, bool) +} + +// AzureWorkloadSAPHanaRestoreRequest azureWorkload SAP Hana-specific restore. +type AzureWorkloadSAPHanaRestoreRequest struct { + // RecoveryType - Type of this recovery. Possible values include: 'RecoveryTypeInvalid', 'RecoveryTypeOriginalLocation', 'RecoveryTypeAlternateLocation', 'RecoveryTypeRestoreDisks', 'RecoveryTypeOffline' + RecoveryType RecoveryType `json:"recoveryType,omitempty"` + // SourceResourceID - Fully qualified ARM ID of the VM on which workload that was running is being recovered. + SourceResourceID *string `json:"sourceResourceId,omitempty"` + // PropertyBag - Workload specific property bag. + PropertyBag map[string]*string `json:"propertyBag"` + // TargetInfo - Details of target database + TargetInfo *TargetRestoreInfo `json:"targetInfo,omitempty"` + // RecoveryMode - Defines whether the current recovery mode is file restore or database restore. Possible values include: 'RecoveryModeInvalid', 'RecoveryModeFileRecovery', 'RecoveryModeWorkloadRecovery' + RecoveryMode RecoveryMode `json:"recoveryMode,omitempty"` + // TargetVirtualMachineID - This is the complete ARM Id of the target VM + // For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + TargetVirtualMachineID *string `json:"targetVirtualMachineId,omitempty"` + // ObjectType - Possible values include: 'ObjectTypeBasicRestoreRequestObjectTypeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureFileShareRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreWithRehydrationRequest' + ObjectType ObjectTypeBasicRestoreRequest `json:"objectType,omitempty"` +} + +func unmarshalBasicAzureWorkloadSAPHanaRestoreRequest(body []byte) (BasicAzureWorkloadSAPHanaRestoreRequest, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["objectType"] { + case string(ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest): + var awshpitrr AzureWorkloadSAPHanaPointInTimeRestoreRequest + err := json.Unmarshal(body, &awshpitrr) + return awshpitrr, err + case string(ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest): + var awshpitrwrr AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest + err := json.Unmarshal(body, &awshpitrwrr) + return awshpitrwrr, err + case string(ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreWithRehydrateRequest): + var awshrwrr AzureWorkloadSAPHanaRestoreWithRehydrateRequest + err := json.Unmarshal(body, &awshrwrr) + return awshrwrr, err + default: + var awshrr AzureWorkloadSAPHanaRestoreRequest + err := json.Unmarshal(body, &awshrr) + return awshrr, err + } +} +func unmarshalBasicAzureWorkloadSAPHanaRestoreRequestArray(body []byte) ([]BasicAzureWorkloadSAPHanaRestoreRequest, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + awshrrArray := make([]BasicAzureWorkloadSAPHanaRestoreRequest, len(rawMessages)) + + for index, rawMessage := range rawMessages { + awshrr, err := unmarshalBasicAzureWorkloadSAPHanaRestoreRequest(*rawMessage) + if err != nil { + return nil, err + } + awshrrArray[index] = awshrr + } + return awshrrArray, nil +} + +// MarshalJSON is the custom marshaler for AzureWorkloadSAPHanaRestoreRequest. +func (awshrr AzureWorkloadSAPHanaRestoreRequest) MarshalJSON() ([]byte, error) { + awshrr.ObjectType = ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreRequest + objectMap := make(map[string]interface{}) + if awshrr.RecoveryType != "" { + objectMap["recoveryType"] = awshrr.RecoveryType + } + if awshrr.SourceResourceID != nil { + objectMap["sourceResourceId"] = awshrr.SourceResourceID + } + if awshrr.PropertyBag != nil { + objectMap["propertyBag"] = awshrr.PropertyBag + } + if awshrr.TargetInfo != nil { + objectMap["targetInfo"] = awshrr.TargetInfo + } + if awshrr.RecoveryMode != "" { + objectMap["recoveryMode"] = awshrr.RecoveryMode + } + if awshrr.TargetVirtualMachineID != nil { + objectMap["targetVirtualMachineId"] = awshrr.TargetVirtualMachineID + } + if awshrr.ObjectType != "" { + objectMap["objectType"] = awshrr.ObjectType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreRequest. +func (awshrr AzureWorkloadSAPHanaRestoreRequest) AsAzureFileShareRestoreRequest() (*AzureFileShareRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreRequest. +func (awshrr AzureWorkloadSAPHanaRestoreRequest) AsAzureWorkloadPointInTimeRestoreRequest() (*AzureWorkloadPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreRequest. +func (awshrr AzureWorkloadSAPHanaRestoreRequest) AsAzureWorkloadRestoreRequest() (*AzureWorkloadRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreRequest. +func (awshrr AzureWorkloadSAPHanaRestoreRequest) AsBasicAzureWorkloadRestoreRequest() (BasicAzureWorkloadRestoreRequest, bool) { + return &awshrr, true +} + +// AsAzureWorkloadSAPHanaPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreRequest. +func (awshrr AzureWorkloadSAPHanaRestoreRequest) AsAzureWorkloadSAPHanaPointInTimeRestoreRequest() (*AzureWorkloadSAPHanaPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSAPHanaPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreRequest. +func (awshrr AzureWorkloadSAPHanaRestoreRequest) AsBasicAzureWorkloadSAPHanaPointInTimeRestoreRequest() (BasicAzureWorkloadSAPHanaPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreRequest. +func (awshrr AzureWorkloadSAPHanaRestoreRequest) AsAzureWorkloadSAPHanaRestoreRequest() (*AzureWorkloadSAPHanaRestoreRequest, bool) { + return &awshrr, true +} + +// AsBasicAzureWorkloadSAPHanaRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreRequest. +func (awshrr AzureWorkloadSAPHanaRestoreRequest) AsBasicAzureWorkloadSAPHanaRestoreRequest() (BasicAzureWorkloadSAPHanaRestoreRequest, bool) { + return &awshrr, true +} + +// AsAzureWorkloadSQLPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreRequest. +func (awshrr AzureWorkloadSAPHanaRestoreRequest) AsAzureWorkloadSQLPointInTimeRestoreRequest() (*AzureWorkloadSQLPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSQLPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreRequest. +func (awshrr AzureWorkloadSAPHanaRestoreRequest) AsBasicAzureWorkloadSQLPointInTimeRestoreRequest() (BasicAzureWorkloadSQLPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreRequest. +func (awshrr AzureWorkloadSAPHanaRestoreRequest) AsAzureWorkloadSQLRestoreRequest() (*AzureWorkloadSQLRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSQLRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreRequest. +func (awshrr AzureWorkloadSAPHanaRestoreRequest) AsBasicAzureWorkloadSQLRestoreRequest() (BasicAzureWorkloadSQLRestoreRequest, bool) { + return nil, false +} + +// AsIaasVMRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreRequest. +func (awshrr AzureWorkloadSAPHanaRestoreRequest) AsIaasVMRestoreRequest() (*IaasVMRestoreRequest, bool) { + return nil, false +} + +// AsBasicIaasVMRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreRequest. +func (awshrr AzureWorkloadSAPHanaRestoreRequest) AsBasicIaasVMRestoreRequest() (BasicIaasVMRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreRequest. +func (awshrr AzureWorkloadSAPHanaRestoreRequest) AsAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest() (*AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreRequest. +func (awshrr AzureWorkloadSAPHanaRestoreRequest) AsAzureWorkloadSAPHanaRestoreWithRehydrateRequest() (*AzureWorkloadSAPHanaRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreRequest. +func (awshrr AzureWorkloadSAPHanaRestoreRequest) AsAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest() (*AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreRequest. +func (awshrr AzureWorkloadSAPHanaRestoreRequest) AsAzureWorkloadSQLRestoreWithRehydrateRequest() (*AzureWorkloadSQLRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsIaasVMRestoreWithRehydrationRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreRequest. +func (awshrr AzureWorkloadSAPHanaRestoreRequest) AsIaasVMRestoreWithRehydrationRequest() (*IaasVMRestoreWithRehydrationRequest, bool) { + return nil, false +} + +// AsRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreRequest. +func (awshrr AzureWorkloadSAPHanaRestoreRequest) AsRestoreRequest() (*RestoreRequest, bool) { + return nil, false +} + +// AsBasicRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreRequest. +func (awshrr AzureWorkloadSAPHanaRestoreRequest) AsBasicRestoreRequest() (BasicRestoreRequest, bool) { + return &awshrr, true +} + +// AzureWorkloadSAPHanaRestoreWithRehydrateRequest azureWorkload SAP Hana-specific restore with integrated +// rehydration of recovery point. +type AzureWorkloadSAPHanaRestoreWithRehydrateRequest struct { + // RecoveryPointRehydrationInfo - RP Rehydration Info + RecoveryPointRehydrationInfo *RecoveryPointRehydrationInfo `json:"recoveryPointRehydrationInfo,omitempty"` + // RecoveryType - Type of this recovery. Possible values include: 'RecoveryTypeInvalid', 'RecoveryTypeOriginalLocation', 'RecoveryTypeAlternateLocation', 'RecoveryTypeRestoreDisks', 'RecoveryTypeOffline' + RecoveryType RecoveryType `json:"recoveryType,omitempty"` + // SourceResourceID - Fully qualified ARM ID of the VM on which workload that was running is being recovered. + SourceResourceID *string `json:"sourceResourceId,omitempty"` + // PropertyBag - Workload specific property bag. + PropertyBag map[string]*string `json:"propertyBag"` + // TargetInfo - Details of target database + TargetInfo *TargetRestoreInfo `json:"targetInfo,omitempty"` + // RecoveryMode - Defines whether the current recovery mode is file restore or database restore. Possible values include: 'RecoveryModeInvalid', 'RecoveryModeFileRecovery', 'RecoveryModeWorkloadRecovery' + RecoveryMode RecoveryMode `json:"recoveryMode,omitempty"` + // TargetVirtualMachineID - This is the complete ARM Id of the target VM + // For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + TargetVirtualMachineID *string `json:"targetVirtualMachineId,omitempty"` + // ObjectType - Possible values include: 'ObjectTypeBasicRestoreRequestObjectTypeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureFileShareRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreWithRehydrationRequest' + ObjectType ObjectTypeBasicRestoreRequest `json:"objectType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureWorkloadSAPHanaRestoreWithRehydrateRequest. +func (awshrwrr AzureWorkloadSAPHanaRestoreWithRehydrateRequest) MarshalJSON() ([]byte, error) { + awshrwrr.ObjectType = ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreWithRehydrateRequest + objectMap := make(map[string]interface{}) + if awshrwrr.RecoveryPointRehydrationInfo != nil { + objectMap["recoveryPointRehydrationInfo"] = awshrwrr.RecoveryPointRehydrationInfo + } + if awshrwrr.RecoveryType != "" { + objectMap["recoveryType"] = awshrwrr.RecoveryType + } + if awshrwrr.SourceResourceID != nil { + objectMap["sourceResourceId"] = awshrwrr.SourceResourceID + } + if awshrwrr.PropertyBag != nil { + objectMap["propertyBag"] = awshrwrr.PropertyBag + } + if awshrwrr.TargetInfo != nil { + objectMap["targetInfo"] = awshrwrr.TargetInfo + } + if awshrwrr.RecoveryMode != "" { + objectMap["recoveryMode"] = awshrwrr.RecoveryMode + } + if awshrwrr.TargetVirtualMachineID != nil { + objectMap["targetVirtualMachineId"] = awshrwrr.TargetVirtualMachineID + } + if awshrwrr.ObjectType != "" { + objectMap["objectType"] = awshrwrr.ObjectType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreWithRehydrateRequest. +func (awshrwrr AzureWorkloadSAPHanaRestoreWithRehydrateRequest) AsAzureFileShareRestoreRequest() (*AzureFileShareRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreWithRehydrateRequest. +func (awshrwrr AzureWorkloadSAPHanaRestoreWithRehydrateRequest) AsAzureWorkloadPointInTimeRestoreRequest() (*AzureWorkloadPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreWithRehydrateRequest. +func (awshrwrr AzureWorkloadSAPHanaRestoreWithRehydrateRequest) AsAzureWorkloadRestoreRequest() (*AzureWorkloadRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreWithRehydrateRequest. +func (awshrwrr AzureWorkloadSAPHanaRestoreWithRehydrateRequest) AsBasicAzureWorkloadRestoreRequest() (BasicAzureWorkloadRestoreRequest, bool) { + return &awshrwrr, true +} + +// AsAzureWorkloadSAPHanaPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreWithRehydrateRequest. +func (awshrwrr AzureWorkloadSAPHanaRestoreWithRehydrateRequest) AsAzureWorkloadSAPHanaPointInTimeRestoreRequest() (*AzureWorkloadSAPHanaPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSAPHanaPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreWithRehydrateRequest. +func (awshrwrr AzureWorkloadSAPHanaRestoreWithRehydrateRequest) AsBasicAzureWorkloadSAPHanaPointInTimeRestoreRequest() (BasicAzureWorkloadSAPHanaPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreWithRehydrateRequest. +func (awshrwrr AzureWorkloadSAPHanaRestoreWithRehydrateRequest) AsAzureWorkloadSAPHanaRestoreRequest() (*AzureWorkloadSAPHanaRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSAPHanaRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreWithRehydrateRequest. +func (awshrwrr AzureWorkloadSAPHanaRestoreWithRehydrateRequest) AsBasicAzureWorkloadSAPHanaRestoreRequest() (BasicAzureWorkloadSAPHanaRestoreRequest, bool) { + return &awshrwrr, true +} + +// AsAzureWorkloadSQLPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreWithRehydrateRequest. +func (awshrwrr AzureWorkloadSAPHanaRestoreWithRehydrateRequest) AsAzureWorkloadSQLPointInTimeRestoreRequest() (*AzureWorkloadSQLPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSQLPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreWithRehydrateRequest. +func (awshrwrr AzureWorkloadSAPHanaRestoreWithRehydrateRequest) AsBasicAzureWorkloadSQLPointInTimeRestoreRequest() (BasicAzureWorkloadSQLPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreWithRehydrateRequest. +func (awshrwrr AzureWorkloadSAPHanaRestoreWithRehydrateRequest) AsAzureWorkloadSQLRestoreRequest() (*AzureWorkloadSQLRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSQLRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreWithRehydrateRequest. +func (awshrwrr AzureWorkloadSAPHanaRestoreWithRehydrateRequest) AsBasicAzureWorkloadSQLRestoreRequest() (BasicAzureWorkloadSQLRestoreRequest, bool) { + return nil, false +} + +// AsIaasVMRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreWithRehydrateRequest. +func (awshrwrr AzureWorkloadSAPHanaRestoreWithRehydrateRequest) AsIaasVMRestoreRequest() (*IaasVMRestoreRequest, bool) { + return nil, false +} + +// AsBasicIaasVMRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreWithRehydrateRequest. +func (awshrwrr AzureWorkloadSAPHanaRestoreWithRehydrateRequest) AsBasicIaasVMRestoreRequest() (BasicIaasVMRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreWithRehydrateRequest. +func (awshrwrr AzureWorkloadSAPHanaRestoreWithRehydrateRequest) AsAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest() (*AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreWithRehydrateRequest. +func (awshrwrr AzureWorkloadSAPHanaRestoreWithRehydrateRequest) AsAzureWorkloadSAPHanaRestoreWithRehydrateRequest() (*AzureWorkloadSAPHanaRestoreWithRehydrateRequest, bool) { + return &awshrwrr, true +} + +// AsAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreWithRehydrateRequest. +func (awshrwrr AzureWorkloadSAPHanaRestoreWithRehydrateRequest) AsAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest() (*AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreWithRehydrateRequest. +func (awshrwrr AzureWorkloadSAPHanaRestoreWithRehydrateRequest) AsAzureWorkloadSQLRestoreWithRehydrateRequest() (*AzureWorkloadSQLRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsIaasVMRestoreWithRehydrationRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreWithRehydrateRequest. +func (awshrwrr AzureWorkloadSAPHanaRestoreWithRehydrateRequest) AsIaasVMRestoreWithRehydrationRequest() (*IaasVMRestoreWithRehydrationRequest, bool) { + return nil, false +} + +// AsRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreWithRehydrateRequest. +func (awshrwrr AzureWorkloadSAPHanaRestoreWithRehydrateRequest) AsRestoreRequest() (*RestoreRequest, bool) { + return nil, false +} + +// AsBasicRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSAPHanaRestoreWithRehydrateRequest. +func (awshrwrr AzureWorkloadSAPHanaRestoreWithRehydrateRequest) AsBasicRestoreRequest() (BasicRestoreRequest, bool) { + return &awshrwrr, true +} + +// AzureWorkloadSQLAutoProtectionIntent azure Workload SQL Auto Protection intent item. +type AzureWorkloadSQLAutoProtectionIntent struct { + // WorkloadItemType - Workload item type of the item for which intent is to be set. Possible values include: 'WorkloadItemTypeInvalid', 'WorkloadItemTypeSQLInstance', 'WorkloadItemTypeSQLDataBase', 'WorkloadItemTypeSAPHanaSystem', 'WorkloadItemTypeSAPHanaDatabase', 'WorkloadItemTypeSAPAseSystem', 'WorkloadItemTypeSAPAseDatabase' + WorkloadItemType WorkloadItemType `json:"workloadItemType,omitempty"` + // BackupManagementType - Type of backup management for the backed up item. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // SourceResourceID - ARM ID of the resource to be backed up. + SourceResourceID *string `json:"sourceResourceId,omitempty"` + // ItemID - ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId + ItemID *string `json:"itemId,omitempty"` + // PolicyID - ID of the backup policy with which this item is backed up. + PolicyID *string `json:"policyId,omitempty"` + // ProtectionState - Backup state of this backup item. Possible values include: 'ProtectionStatusInvalid', 'ProtectionStatusNotProtected', 'ProtectionStatusProtecting', 'ProtectionStatusProtected', 'ProtectionStatusProtectionFailed' + ProtectionState ProtectionStatus `json:"protectionState,omitempty"` + // ProtectionIntentItemType - Possible values include: 'ProtectionIntentItemTypeProtectionIntent', 'ProtectionIntentItemTypeRecoveryServiceVaultItem', 'ProtectionIntentItemTypeAzureResourceItem', 'ProtectionIntentItemTypeAzureWorkloadAutoProtectionIntent', 'ProtectionIntentItemTypeAzureWorkloadSQLAutoProtectionIntent' + ProtectionIntentItemType ProtectionIntentItemType `json:"protectionIntentItemType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureWorkloadSQLAutoProtectionIntent. +func (awsapi AzureWorkloadSQLAutoProtectionIntent) MarshalJSON() ([]byte, error) { + awsapi.ProtectionIntentItemType = ProtectionIntentItemTypeAzureWorkloadSQLAutoProtectionIntent + objectMap := make(map[string]interface{}) + if awsapi.WorkloadItemType != "" { + objectMap["workloadItemType"] = awsapi.WorkloadItemType + } + if awsapi.BackupManagementType != "" { + objectMap["backupManagementType"] = awsapi.BackupManagementType + } + if awsapi.SourceResourceID != nil { + objectMap["sourceResourceId"] = awsapi.SourceResourceID + } + if awsapi.ItemID != nil { + objectMap["itemId"] = awsapi.ItemID + } + if awsapi.PolicyID != nil { + objectMap["policyId"] = awsapi.PolicyID + } + if awsapi.ProtectionState != "" { + objectMap["protectionState"] = awsapi.ProtectionState + } + if awsapi.ProtectionIntentItemType != "" { + objectMap["protectionIntentItemType"] = awsapi.ProtectionIntentItemType + } + return json.Marshal(objectMap) +} + +// AsAzureRecoveryServiceVaultProtectionIntent is the BasicProtectionIntent implementation for AzureWorkloadSQLAutoProtectionIntent. +func (awsapi AzureWorkloadSQLAutoProtectionIntent) AsAzureRecoveryServiceVaultProtectionIntent() (*AzureRecoveryServiceVaultProtectionIntent, bool) { + return nil, false +} + +// AsBasicAzureRecoveryServiceVaultProtectionIntent is the BasicProtectionIntent implementation for AzureWorkloadSQLAutoProtectionIntent. +func (awsapi AzureWorkloadSQLAutoProtectionIntent) AsBasicAzureRecoveryServiceVaultProtectionIntent() (BasicAzureRecoveryServiceVaultProtectionIntent, bool) { + return &awsapi, true +} + +// AsAzureResourceProtectionIntent is the BasicProtectionIntent implementation for AzureWorkloadSQLAutoProtectionIntent. +func (awsapi AzureWorkloadSQLAutoProtectionIntent) AsAzureResourceProtectionIntent() (*AzureResourceProtectionIntent, bool) { + return nil, false +} + +// AsAzureWorkloadAutoProtectionIntent is the BasicProtectionIntent implementation for AzureWorkloadSQLAutoProtectionIntent. +func (awsapi AzureWorkloadSQLAutoProtectionIntent) AsAzureWorkloadAutoProtectionIntent() (*AzureWorkloadAutoProtectionIntent, bool) { + return nil, false +} + +// AsBasicAzureWorkloadAutoProtectionIntent is the BasicProtectionIntent implementation for AzureWorkloadSQLAutoProtectionIntent. +func (awsapi AzureWorkloadSQLAutoProtectionIntent) AsBasicAzureWorkloadAutoProtectionIntent() (BasicAzureWorkloadAutoProtectionIntent, bool) { + return &awsapi, true +} + +// AsAzureWorkloadSQLAutoProtectionIntent is the BasicProtectionIntent implementation for AzureWorkloadSQLAutoProtectionIntent. +func (awsapi AzureWorkloadSQLAutoProtectionIntent) AsAzureWorkloadSQLAutoProtectionIntent() (*AzureWorkloadSQLAutoProtectionIntent, bool) { + return &awsapi, true +} + +// AsProtectionIntent is the BasicProtectionIntent implementation for AzureWorkloadSQLAutoProtectionIntent. +func (awsapi AzureWorkloadSQLAutoProtectionIntent) AsProtectionIntent() (*ProtectionIntent, bool) { + return nil, false +} + +// AsBasicProtectionIntent is the BasicProtectionIntent implementation for AzureWorkloadSQLAutoProtectionIntent. +func (awsapi AzureWorkloadSQLAutoProtectionIntent) AsBasicProtectionIntent() (BasicProtectionIntent, bool) { + return &awsapi, true +} + +// AzureWorkloadSQLPointInTimeRecoveryPoint recovery point specific to PointInTime +type AzureWorkloadSQLPointInTimeRecoveryPoint struct { + // TimeRanges - List of log ranges + TimeRanges *[]PointInTimeRange `json:"timeRanges,omitempty"` + // ExtendedInfo - Extended Info that provides data directory details. Will be populated in two cases: + // When a specific recovery point is accessed using GetRecoveryPoint + // Or when ListRecoveryPoints is called for Log RP only with ExtendedInfo query filter + ExtendedInfo *AzureWorkloadSQLRecoveryPointExtendedInfo `json:"extendedInfo,omitempty"` + // RecoveryPointTimeInUTC - READ-ONLY; UTC time at which recovery point was created + RecoveryPointTimeInUTC *date.Time `json:"recoveryPointTimeInUTC,omitempty"` + // Type - READ-ONLY; Type of restore point. Possible values include: 'RestorePointTypeInvalid', 'RestorePointTypeFull', 'RestorePointTypeLog', 'RestorePointTypeDifferential', 'RestorePointTypeIncremental' + Type RestorePointType `json:"type,omitempty"` + // RecoveryPointTierDetails - Recovery point tier information. + RecoveryPointTierDetails *[]RecoveryPointTierInformation `json:"recoveryPointTierDetails,omitempty"` + // RecoveryPointMoveReadinessInfo - Eligibility of RP to be moved to another tier + RecoveryPointMoveReadinessInfo map[string]*RecoveryPointMoveReadinessInfo `json:"recoveryPointMoveReadinessInfo"` + // ObjectType - Possible values include: 'ObjectTypeBasicRecoveryPointObjectTypeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureFileShareRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadPointInTimeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeGenericRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeIaasVMRecoveryPoint' + ObjectType ObjectTypeBasicRecoveryPoint `json:"objectType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureWorkloadSQLPointInTimeRecoveryPoint. +func (awspitrp AzureWorkloadSQLPointInTimeRecoveryPoint) MarshalJSON() ([]byte, error) { + awspitrp.ObjectType = ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint + objectMap := make(map[string]interface{}) + if awspitrp.TimeRanges != nil { + objectMap["timeRanges"] = awspitrp.TimeRanges + } + if awspitrp.ExtendedInfo != nil { + objectMap["extendedInfo"] = awspitrp.ExtendedInfo + } + if awspitrp.RecoveryPointTierDetails != nil { + objectMap["recoveryPointTierDetails"] = awspitrp.RecoveryPointTierDetails + } + if awspitrp.RecoveryPointMoveReadinessInfo != nil { + objectMap["recoveryPointMoveReadinessInfo"] = awspitrp.RecoveryPointMoveReadinessInfo + } + if awspitrp.ObjectType != "" { + objectMap["objectType"] = awspitrp.ObjectType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSQLPointInTimeRecoveryPoint. +func (awspitrp AzureWorkloadSQLPointInTimeRecoveryPoint) AsAzureFileShareRecoveryPoint() (*AzureFileShareRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSQLPointInTimeRecoveryPoint. +func (awspitrp AzureWorkloadSQLPointInTimeRecoveryPoint) AsAzureWorkloadPointInTimeRecoveryPoint() (*AzureWorkloadPointInTimeRecoveryPoint, bool) { + return nil, false +} + +// AsBasicAzureWorkloadPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSQLPointInTimeRecoveryPoint. +func (awspitrp AzureWorkloadSQLPointInTimeRecoveryPoint) AsBasicAzureWorkloadPointInTimeRecoveryPoint() (BasicAzureWorkloadPointInTimeRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSQLPointInTimeRecoveryPoint. +func (awspitrp AzureWorkloadSQLPointInTimeRecoveryPoint) AsAzureWorkloadRecoveryPoint() (*AzureWorkloadRecoveryPoint, bool) { + return nil, false +} + +// AsBasicAzureWorkloadRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSQLPointInTimeRecoveryPoint. +func (awspitrp AzureWorkloadSQLPointInTimeRecoveryPoint) AsBasicAzureWorkloadRecoveryPoint() (BasicAzureWorkloadRecoveryPoint, bool) { + return &awspitrp, true +} + +// AsAzureWorkloadSAPHanaPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSQLPointInTimeRecoveryPoint. +func (awspitrp AzureWorkloadSQLPointInTimeRecoveryPoint) AsAzureWorkloadSAPHanaPointInTimeRecoveryPoint() (*AzureWorkloadSAPHanaPointInTimeRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSQLPointInTimeRecoveryPoint. +func (awspitrp AzureWorkloadSQLPointInTimeRecoveryPoint) AsAzureWorkloadSAPHanaRecoveryPoint() (*AzureWorkloadSAPHanaRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadSQLPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSQLPointInTimeRecoveryPoint. +func (awspitrp AzureWorkloadSQLPointInTimeRecoveryPoint) AsAzureWorkloadSQLPointInTimeRecoveryPoint() (*AzureWorkloadSQLPointInTimeRecoveryPoint, bool) { + return &awspitrp, true +} + +// AsAzureWorkloadSQLRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSQLPointInTimeRecoveryPoint. +func (awspitrp AzureWorkloadSQLPointInTimeRecoveryPoint) AsAzureWorkloadSQLRecoveryPoint() (*AzureWorkloadSQLRecoveryPoint, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSQLRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSQLPointInTimeRecoveryPoint. +func (awspitrp AzureWorkloadSQLPointInTimeRecoveryPoint) AsBasicAzureWorkloadSQLRecoveryPoint() (BasicAzureWorkloadSQLRecoveryPoint, bool) { + return &awspitrp, true +} + +// AsGenericRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSQLPointInTimeRecoveryPoint. +func (awspitrp AzureWorkloadSQLPointInTimeRecoveryPoint) AsGenericRecoveryPoint() (*GenericRecoveryPoint, bool) { + return nil, false +} + +// AsIaasVMRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSQLPointInTimeRecoveryPoint. +func (awspitrp AzureWorkloadSQLPointInTimeRecoveryPoint) AsIaasVMRecoveryPoint() (*IaasVMRecoveryPoint, bool) { + return nil, false +} + +// AsRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSQLPointInTimeRecoveryPoint. +func (awspitrp AzureWorkloadSQLPointInTimeRecoveryPoint) AsRecoveryPoint() (*RecoveryPoint, bool) { + return nil, false +} + +// AsBasicRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSQLPointInTimeRecoveryPoint. +func (awspitrp AzureWorkloadSQLPointInTimeRecoveryPoint) AsBasicRecoveryPoint() (BasicRecoveryPoint, bool) { + return &awspitrp, true +} + +// BasicAzureWorkloadSQLPointInTimeRestoreRequest azureWorkload SQL -specific restore. Specifically for PointInTime/Log +// restore +type BasicAzureWorkloadSQLPointInTimeRestoreRequest interface { + AsAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest() (*AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, bool) + AsAzureWorkloadSQLPointInTimeRestoreRequest() (*AzureWorkloadSQLPointInTimeRestoreRequest, bool) +} + +// AzureWorkloadSQLPointInTimeRestoreRequest azureWorkload SQL -specific restore. Specifically for +// PointInTime/Log restore +type AzureWorkloadSQLPointInTimeRestoreRequest struct { + // PointInTime - PointInTime value + PointInTime *date.Time `json:"pointInTime,omitempty"` + // ShouldUseAlternateTargetLocation - Default option set to true. If this is set to false, alternate data directory must be provided + ShouldUseAlternateTargetLocation *bool `json:"shouldUseAlternateTargetLocation,omitempty"` + // IsNonRecoverable - SQL specific property where user can chose to set no-recovery when restore operation is tried + IsNonRecoverable *bool `json:"isNonRecoverable,omitempty"` + // AlternateDirectoryPaths - Data directory details + AlternateDirectoryPaths *[]SQLDataDirectoryMapping `json:"alternateDirectoryPaths,omitempty"` + // RecoveryType - Type of this recovery. Possible values include: 'RecoveryTypeInvalid', 'RecoveryTypeOriginalLocation', 'RecoveryTypeAlternateLocation', 'RecoveryTypeRestoreDisks', 'RecoveryTypeOffline' + RecoveryType RecoveryType `json:"recoveryType,omitempty"` + // SourceResourceID - Fully qualified ARM ID of the VM on which workload that was running is being recovered. + SourceResourceID *string `json:"sourceResourceId,omitempty"` + // PropertyBag - Workload specific property bag. + PropertyBag map[string]*string `json:"propertyBag"` + // TargetInfo - Details of target database + TargetInfo *TargetRestoreInfo `json:"targetInfo,omitempty"` + // RecoveryMode - Defines whether the current recovery mode is file restore or database restore. Possible values include: 'RecoveryModeInvalid', 'RecoveryModeFileRecovery', 'RecoveryModeWorkloadRecovery' + RecoveryMode RecoveryMode `json:"recoveryMode,omitempty"` + // TargetVirtualMachineID - This is the complete ARM Id of the target VM + // For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + TargetVirtualMachineID *string `json:"targetVirtualMachineId,omitempty"` + // ObjectType - Possible values include: 'ObjectTypeBasicRestoreRequestObjectTypeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureFileShareRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreWithRehydrationRequest' + ObjectType ObjectTypeBasicRestoreRequest `json:"objectType,omitempty"` +} + +func unmarshalBasicAzureWorkloadSQLPointInTimeRestoreRequest(body []byte) (BasicAzureWorkloadSQLPointInTimeRestoreRequest, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["objectType"] { + case string(ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest): + var awspitrwrr AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest + err := json.Unmarshal(body, &awspitrwrr) + return awspitrwrr, err + default: + var awspitrr AzureWorkloadSQLPointInTimeRestoreRequest + err := json.Unmarshal(body, &awspitrr) + return awspitrr, err + } +} +func unmarshalBasicAzureWorkloadSQLPointInTimeRestoreRequestArray(body []byte) ([]BasicAzureWorkloadSQLPointInTimeRestoreRequest, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + awspitrrArray := make([]BasicAzureWorkloadSQLPointInTimeRestoreRequest, len(rawMessages)) + + for index, rawMessage := range rawMessages { + awspitrr, err := unmarshalBasicAzureWorkloadSQLPointInTimeRestoreRequest(*rawMessage) + if err != nil { + return nil, err + } + awspitrrArray[index] = awspitrr + } + return awspitrrArray, nil +} + +// MarshalJSON is the custom marshaler for AzureWorkloadSQLPointInTimeRestoreRequest. +func (awspitrr AzureWorkloadSQLPointInTimeRestoreRequest) MarshalJSON() ([]byte, error) { + awspitrr.ObjectType = ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest + objectMap := make(map[string]interface{}) + if awspitrr.PointInTime != nil { + objectMap["pointInTime"] = awspitrr.PointInTime + } + if awspitrr.ShouldUseAlternateTargetLocation != nil { + objectMap["shouldUseAlternateTargetLocation"] = awspitrr.ShouldUseAlternateTargetLocation + } + if awspitrr.IsNonRecoverable != nil { + objectMap["isNonRecoverable"] = awspitrr.IsNonRecoverable + } + if awspitrr.AlternateDirectoryPaths != nil { + objectMap["alternateDirectoryPaths"] = awspitrr.AlternateDirectoryPaths + } + if awspitrr.RecoveryType != "" { + objectMap["recoveryType"] = awspitrr.RecoveryType + } + if awspitrr.SourceResourceID != nil { + objectMap["sourceResourceId"] = awspitrr.SourceResourceID + } + if awspitrr.PropertyBag != nil { + objectMap["propertyBag"] = awspitrr.PropertyBag + } + if awspitrr.TargetInfo != nil { + objectMap["targetInfo"] = awspitrr.TargetInfo + } + if awspitrr.RecoveryMode != "" { + objectMap["recoveryMode"] = awspitrr.RecoveryMode + } + if awspitrr.TargetVirtualMachineID != nil { + objectMap["targetVirtualMachineId"] = awspitrr.TargetVirtualMachineID + } + if awspitrr.ObjectType != "" { + objectMap["objectType"] = awspitrr.ObjectType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreRequest. +func (awspitrr AzureWorkloadSQLPointInTimeRestoreRequest) AsAzureFileShareRestoreRequest() (*AzureFileShareRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreRequest. +func (awspitrr AzureWorkloadSQLPointInTimeRestoreRequest) AsAzureWorkloadPointInTimeRestoreRequest() (*AzureWorkloadPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreRequest. +func (awspitrr AzureWorkloadSQLPointInTimeRestoreRequest) AsAzureWorkloadRestoreRequest() (*AzureWorkloadRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreRequest. +func (awspitrr AzureWorkloadSQLPointInTimeRestoreRequest) AsBasicAzureWorkloadRestoreRequest() (BasicAzureWorkloadRestoreRequest, bool) { + return &awspitrr, true +} + +// AsAzureWorkloadSAPHanaPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreRequest. +func (awspitrr AzureWorkloadSQLPointInTimeRestoreRequest) AsAzureWorkloadSAPHanaPointInTimeRestoreRequest() (*AzureWorkloadSAPHanaPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSAPHanaPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreRequest. +func (awspitrr AzureWorkloadSQLPointInTimeRestoreRequest) AsBasicAzureWorkloadSAPHanaPointInTimeRestoreRequest() (BasicAzureWorkloadSAPHanaPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreRequest. +func (awspitrr AzureWorkloadSQLPointInTimeRestoreRequest) AsAzureWorkloadSAPHanaRestoreRequest() (*AzureWorkloadSAPHanaRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSAPHanaRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreRequest. +func (awspitrr AzureWorkloadSQLPointInTimeRestoreRequest) AsBasicAzureWorkloadSAPHanaRestoreRequest() (BasicAzureWorkloadSAPHanaRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreRequest. +func (awspitrr AzureWorkloadSQLPointInTimeRestoreRequest) AsAzureWorkloadSQLPointInTimeRestoreRequest() (*AzureWorkloadSQLPointInTimeRestoreRequest, bool) { + return &awspitrr, true +} + +// AsBasicAzureWorkloadSQLPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreRequest. +func (awspitrr AzureWorkloadSQLPointInTimeRestoreRequest) AsBasicAzureWorkloadSQLPointInTimeRestoreRequest() (BasicAzureWorkloadSQLPointInTimeRestoreRequest, bool) { + return &awspitrr, true +} + +// AsAzureWorkloadSQLRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreRequest. +func (awspitrr AzureWorkloadSQLPointInTimeRestoreRequest) AsAzureWorkloadSQLRestoreRequest() (*AzureWorkloadSQLRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSQLRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreRequest. +func (awspitrr AzureWorkloadSQLPointInTimeRestoreRequest) AsBasicAzureWorkloadSQLRestoreRequest() (BasicAzureWorkloadSQLRestoreRequest, bool) { + return &awspitrr, true +} + +// AsIaasVMRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreRequest. +func (awspitrr AzureWorkloadSQLPointInTimeRestoreRequest) AsIaasVMRestoreRequest() (*IaasVMRestoreRequest, bool) { + return nil, false +} + +// AsBasicIaasVMRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreRequest. +func (awspitrr AzureWorkloadSQLPointInTimeRestoreRequest) AsBasicIaasVMRestoreRequest() (BasicIaasVMRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreRequest. +func (awspitrr AzureWorkloadSQLPointInTimeRestoreRequest) AsAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest() (*AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreRequest. +func (awspitrr AzureWorkloadSQLPointInTimeRestoreRequest) AsAzureWorkloadSAPHanaRestoreWithRehydrateRequest() (*AzureWorkloadSAPHanaRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreRequest. +func (awspitrr AzureWorkloadSQLPointInTimeRestoreRequest) AsAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest() (*AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreRequest. +func (awspitrr AzureWorkloadSQLPointInTimeRestoreRequest) AsAzureWorkloadSQLRestoreWithRehydrateRequest() (*AzureWorkloadSQLRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsIaasVMRestoreWithRehydrationRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreRequest. +func (awspitrr AzureWorkloadSQLPointInTimeRestoreRequest) AsIaasVMRestoreWithRehydrationRequest() (*IaasVMRestoreWithRehydrationRequest, bool) { + return nil, false +} + +// AsRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreRequest. +func (awspitrr AzureWorkloadSQLPointInTimeRestoreRequest) AsRestoreRequest() (*RestoreRequest, bool) { + return nil, false +} + +// AsBasicRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreRequest. +func (awspitrr AzureWorkloadSQLPointInTimeRestoreRequest) AsBasicRestoreRequest() (BasicRestoreRequest, bool) { + return &awspitrr, true +} + +// AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest azureWorkload SQL-specific restore with +// integrated rehydration of recovery point. +type AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest struct { + // RecoveryPointRehydrationInfo - RP Rehydration Info + RecoveryPointRehydrationInfo *RecoveryPointRehydrationInfo `json:"recoveryPointRehydrationInfo,omitempty"` + // PointInTime - PointInTime value + PointInTime *date.Time `json:"pointInTime,omitempty"` + // ShouldUseAlternateTargetLocation - Default option set to true. If this is set to false, alternate data directory must be provided + ShouldUseAlternateTargetLocation *bool `json:"shouldUseAlternateTargetLocation,omitempty"` + // IsNonRecoverable - SQL specific property where user can chose to set no-recovery when restore operation is tried + IsNonRecoverable *bool `json:"isNonRecoverable,omitempty"` + // AlternateDirectoryPaths - Data directory details + AlternateDirectoryPaths *[]SQLDataDirectoryMapping `json:"alternateDirectoryPaths,omitempty"` + // RecoveryType - Type of this recovery. Possible values include: 'RecoveryTypeInvalid', 'RecoveryTypeOriginalLocation', 'RecoveryTypeAlternateLocation', 'RecoveryTypeRestoreDisks', 'RecoveryTypeOffline' + RecoveryType RecoveryType `json:"recoveryType,omitempty"` + // SourceResourceID - Fully qualified ARM ID of the VM on which workload that was running is being recovered. + SourceResourceID *string `json:"sourceResourceId,omitempty"` + // PropertyBag - Workload specific property bag. + PropertyBag map[string]*string `json:"propertyBag"` + // TargetInfo - Details of target database + TargetInfo *TargetRestoreInfo `json:"targetInfo,omitempty"` + // RecoveryMode - Defines whether the current recovery mode is file restore or database restore. Possible values include: 'RecoveryModeInvalid', 'RecoveryModeFileRecovery', 'RecoveryModeWorkloadRecovery' + RecoveryMode RecoveryMode `json:"recoveryMode,omitempty"` + // TargetVirtualMachineID - This is the complete ARM Id of the target VM + // For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + TargetVirtualMachineID *string `json:"targetVirtualMachineId,omitempty"` + // ObjectType - Possible values include: 'ObjectTypeBasicRestoreRequestObjectTypeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureFileShareRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreWithRehydrationRequest' + ObjectType ObjectTypeBasicRestoreRequest `json:"objectType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest. +func (awspitrwrr AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest) MarshalJSON() ([]byte, error) { + awspitrwrr.ObjectType = ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest + objectMap := make(map[string]interface{}) + if awspitrwrr.RecoveryPointRehydrationInfo != nil { + objectMap["recoveryPointRehydrationInfo"] = awspitrwrr.RecoveryPointRehydrationInfo + } + if awspitrwrr.PointInTime != nil { + objectMap["pointInTime"] = awspitrwrr.PointInTime + } + if awspitrwrr.ShouldUseAlternateTargetLocation != nil { + objectMap["shouldUseAlternateTargetLocation"] = awspitrwrr.ShouldUseAlternateTargetLocation + } + if awspitrwrr.IsNonRecoverable != nil { + objectMap["isNonRecoverable"] = awspitrwrr.IsNonRecoverable + } + if awspitrwrr.AlternateDirectoryPaths != nil { + objectMap["alternateDirectoryPaths"] = awspitrwrr.AlternateDirectoryPaths + } + if awspitrwrr.RecoveryType != "" { + objectMap["recoveryType"] = awspitrwrr.RecoveryType + } + if awspitrwrr.SourceResourceID != nil { + objectMap["sourceResourceId"] = awspitrwrr.SourceResourceID + } + if awspitrwrr.PropertyBag != nil { + objectMap["propertyBag"] = awspitrwrr.PropertyBag + } + if awspitrwrr.TargetInfo != nil { + objectMap["targetInfo"] = awspitrwrr.TargetInfo + } + if awspitrwrr.RecoveryMode != "" { + objectMap["recoveryMode"] = awspitrwrr.RecoveryMode + } + if awspitrwrr.TargetVirtualMachineID != nil { + objectMap["targetVirtualMachineId"] = awspitrwrr.TargetVirtualMachineID + } + if awspitrwrr.ObjectType != "" { + objectMap["objectType"] = awspitrwrr.ObjectType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest. +func (awspitrwrr AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest) AsAzureFileShareRestoreRequest() (*AzureFileShareRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest. +func (awspitrwrr AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest) AsAzureWorkloadPointInTimeRestoreRequest() (*AzureWorkloadPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest. +func (awspitrwrr AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest) AsAzureWorkloadRestoreRequest() (*AzureWorkloadRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest. +func (awspitrwrr AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest) AsBasicAzureWorkloadRestoreRequest() (BasicAzureWorkloadRestoreRequest, bool) { + return &awspitrwrr, true +} + +// AsAzureWorkloadSAPHanaPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest. +func (awspitrwrr AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest) AsAzureWorkloadSAPHanaPointInTimeRestoreRequest() (*AzureWorkloadSAPHanaPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSAPHanaPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest. +func (awspitrwrr AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest) AsBasicAzureWorkloadSAPHanaPointInTimeRestoreRequest() (BasicAzureWorkloadSAPHanaPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest. +func (awspitrwrr AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest) AsAzureWorkloadSAPHanaRestoreRequest() (*AzureWorkloadSAPHanaRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSAPHanaRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest. +func (awspitrwrr AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest) AsBasicAzureWorkloadSAPHanaRestoreRequest() (BasicAzureWorkloadSAPHanaRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest. +func (awspitrwrr AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest) AsAzureWorkloadSQLPointInTimeRestoreRequest() (*AzureWorkloadSQLPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSQLPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest. +func (awspitrwrr AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest) AsBasicAzureWorkloadSQLPointInTimeRestoreRequest() (BasicAzureWorkloadSQLPointInTimeRestoreRequest, bool) { + return &awspitrwrr, true +} + +// AsAzureWorkloadSQLRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest. +func (awspitrwrr AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest) AsAzureWorkloadSQLRestoreRequest() (*AzureWorkloadSQLRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSQLRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest. +func (awspitrwrr AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest) AsBasicAzureWorkloadSQLRestoreRequest() (BasicAzureWorkloadSQLRestoreRequest, bool) { + return &awspitrwrr, true +} + +// AsIaasVMRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest. +func (awspitrwrr AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest) AsIaasVMRestoreRequest() (*IaasVMRestoreRequest, bool) { + return nil, false +} + +// AsBasicIaasVMRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest. +func (awspitrwrr AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest) AsBasicIaasVMRestoreRequest() (BasicIaasVMRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest. +func (awspitrwrr AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest) AsAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest() (*AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest. +func (awspitrwrr AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest) AsAzureWorkloadSAPHanaRestoreWithRehydrateRequest() (*AzureWorkloadSAPHanaRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest. +func (awspitrwrr AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest) AsAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest() (*AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, bool) { + return &awspitrwrr, true +} + +// AsAzureWorkloadSQLRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest. +func (awspitrwrr AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest) AsAzureWorkloadSQLRestoreWithRehydrateRequest() (*AzureWorkloadSQLRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsIaasVMRestoreWithRehydrationRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest. +func (awspitrwrr AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest) AsIaasVMRestoreWithRehydrationRequest() (*IaasVMRestoreWithRehydrationRequest, bool) { + return nil, false +} + +// AsRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest. +func (awspitrwrr AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest) AsRestoreRequest() (*RestoreRequest, bool) { + return nil, false +} + +// AsBasicRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest. +func (awspitrwrr AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest) AsBasicRestoreRequest() (BasicRestoreRequest, bool) { + return &awspitrwrr, true +} + +// BasicAzureWorkloadSQLRecoveryPoint SQL specific recoverypoint, specifically encapsulates full/diff recoverypoint +// along with extended info +type BasicAzureWorkloadSQLRecoveryPoint interface { + AsAzureWorkloadSQLPointInTimeRecoveryPoint() (*AzureWorkloadSQLPointInTimeRecoveryPoint, bool) + AsAzureWorkloadSQLRecoveryPoint() (*AzureWorkloadSQLRecoveryPoint, bool) +} + +// AzureWorkloadSQLRecoveryPoint SQL specific recoverypoint, specifically encapsulates full/diff recoverypoint +// along with extended info +type AzureWorkloadSQLRecoveryPoint struct { + // ExtendedInfo - Extended Info that provides data directory details. Will be populated in two cases: + // When a specific recovery point is accessed using GetRecoveryPoint + // Or when ListRecoveryPoints is called for Log RP only with ExtendedInfo query filter + ExtendedInfo *AzureWorkloadSQLRecoveryPointExtendedInfo `json:"extendedInfo,omitempty"` + // RecoveryPointTimeInUTC - READ-ONLY; UTC time at which recovery point was created + RecoveryPointTimeInUTC *date.Time `json:"recoveryPointTimeInUTC,omitempty"` + // Type - READ-ONLY; Type of restore point. Possible values include: 'RestorePointTypeInvalid', 'RestorePointTypeFull', 'RestorePointTypeLog', 'RestorePointTypeDifferential', 'RestorePointTypeIncremental' + Type RestorePointType `json:"type,omitempty"` + // RecoveryPointTierDetails - Recovery point tier information. + RecoveryPointTierDetails *[]RecoveryPointTierInformation `json:"recoveryPointTierDetails,omitempty"` + // RecoveryPointMoveReadinessInfo - Eligibility of RP to be moved to another tier + RecoveryPointMoveReadinessInfo map[string]*RecoveryPointMoveReadinessInfo `json:"recoveryPointMoveReadinessInfo"` + // ObjectType - Possible values include: 'ObjectTypeBasicRecoveryPointObjectTypeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureFileShareRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadPointInTimeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeGenericRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeIaasVMRecoveryPoint' + ObjectType ObjectTypeBasicRecoveryPoint `json:"objectType,omitempty"` +} + +func unmarshalBasicAzureWorkloadSQLRecoveryPoint(body []byte) (BasicAzureWorkloadSQLRecoveryPoint, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["objectType"] { + case string(ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint): + var awspitrp AzureWorkloadSQLPointInTimeRecoveryPoint + err := json.Unmarshal(body, &awspitrp) + return awspitrp, err + default: + var awsrp AzureWorkloadSQLRecoveryPoint + err := json.Unmarshal(body, &awsrp) + return awsrp, err + } +} +func unmarshalBasicAzureWorkloadSQLRecoveryPointArray(body []byte) ([]BasicAzureWorkloadSQLRecoveryPoint, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + awsrpArray := make([]BasicAzureWorkloadSQLRecoveryPoint, len(rawMessages)) + + for index, rawMessage := range rawMessages { + awsrp, err := unmarshalBasicAzureWorkloadSQLRecoveryPoint(*rawMessage) + if err != nil { + return nil, err + } + awsrpArray[index] = awsrp + } + return awsrpArray, nil +} + +// MarshalJSON is the custom marshaler for AzureWorkloadSQLRecoveryPoint. +func (awsrp AzureWorkloadSQLRecoveryPoint) MarshalJSON() ([]byte, error) { + awsrp.ObjectType = ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLRecoveryPoint + objectMap := make(map[string]interface{}) + if awsrp.ExtendedInfo != nil { + objectMap["extendedInfo"] = awsrp.ExtendedInfo + } + if awsrp.RecoveryPointTierDetails != nil { + objectMap["recoveryPointTierDetails"] = awsrp.RecoveryPointTierDetails + } + if awsrp.RecoveryPointMoveReadinessInfo != nil { + objectMap["recoveryPointMoveReadinessInfo"] = awsrp.RecoveryPointMoveReadinessInfo + } + if awsrp.ObjectType != "" { + objectMap["objectType"] = awsrp.ObjectType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSQLRecoveryPoint. +func (awsrp AzureWorkloadSQLRecoveryPoint) AsAzureFileShareRecoveryPoint() (*AzureFileShareRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSQLRecoveryPoint. +func (awsrp AzureWorkloadSQLRecoveryPoint) AsAzureWorkloadPointInTimeRecoveryPoint() (*AzureWorkloadPointInTimeRecoveryPoint, bool) { + return nil, false +} + +// AsBasicAzureWorkloadPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSQLRecoveryPoint. +func (awsrp AzureWorkloadSQLRecoveryPoint) AsBasicAzureWorkloadPointInTimeRecoveryPoint() (BasicAzureWorkloadPointInTimeRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSQLRecoveryPoint. +func (awsrp AzureWorkloadSQLRecoveryPoint) AsAzureWorkloadRecoveryPoint() (*AzureWorkloadRecoveryPoint, bool) { + return nil, false +} + +// AsBasicAzureWorkloadRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSQLRecoveryPoint. +func (awsrp AzureWorkloadSQLRecoveryPoint) AsBasicAzureWorkloadRecoveryPoint() (BasicAzureWorkloadRecoveryPoint, bool) { + return &awsrp, true +} + +// AsAzureWorkloadSAPHanaPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSQLRecoveryPoint. +func (awsrp AzureWorkloadSQLRecoveryPoint) AsAzureWorkloadSAPHanaPointInTimeRecoveryPoint() (*AzureWorkloadSAPHanaPointInTimeRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSQLRecoveryPoint. +func (awsrp AzureWorkloadSQLRecoveryPoint) AsAzureWorkloadSAPHanaRecoveryPoint() (*AzureWorkloadSAPHanaRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadSQLPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSQLRecoveryPoint. +func (awsrp AzureWorkloadSQLRecoveryPoint) AsAzureWorkloadSQLPointInTimeRecoveryPoint() (*AzureWorkloadSQLPointInTimeRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadSQLRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSQLRecoveryPoint. +func (awsrp AzureWorkloadSQLRecoveryPoint) AsAzureWorkloadSQLRecoveryPoint() (*AzureWorkloadSQLRecoveryPoint, bool) { + return &awsrp, true +} + +// AsBasicAzureWorkloadSQLRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSQLRecoveryPoint. +func (awsrp AzureWorkloadSQLRecoveryPoint) AsBasicAzureWorkloadSQLRecoveryPoint() (BasicAzureWorkloadSQLRecoveryPoint, bool) { + return &awsrp, true +} + +// AsGenericRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSQLRecoveryPoint. +func (awsrp AzureWorkloadSQLRecoveryPoint) AsGenericRecoveryPoint() (*GenericRecoveryPoint, bool) { + return nil, false +} + +// AsIaasVMRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSQLRecoveryPoint. +func (awsrp AzureWorkloadSQLRecoveryPoint) AsIaasVMRecoveryPoint() (*IaasVMRecoveryPoint, bool) { + return nil, false +} + +// AsRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSQLRecoveryPoint. +func (awsrp AzureWorkloadSQLRecoveryPoint) AsRecoveryPoint() (*RecoveryPoint, bool) { + return nil, false +} + +// AsBasicRecoveryPoint is the BasicRecoveryPoint implementation for AzureWorkloadSQLRecoveryPoint. +func (awsrp AzureWorkloadSQLRecoveryPoint) AsBasicRecoveryPoint() (BasicRecoveryPoint, bool) { + return &awsrp, true +} + +// AzureWorkloadSQLRecoveryPointExtendedInfo extended info class details +type AzureWorkloadSQLRecoveryPointExtendedInfo struct { + // DataDirectoryTimeInUTC - READ-ONLY; UTC time at which data directory info was captured + DataDirectoryTimeInUTC *date.Time `json:"dataDirectoryTimeInUTC,omitempty"` + // DataDirectoryPaths - READ-ONLY; List of data directory paths during restore operation. + DataDirectoryPaths *[]SQLDataDirectory `json:"dataDirectoryPaths,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureWorkloadSQLRecoveryPointExtendedInfo. +func (awsrpei AzureWorkloadSQLRecoveryPointExtendedInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// BasicAzureWorkloadSQLRestoreRequest azureWorkload SQL -specific restore. Specifically for full/diff restore +type BasicAzureWorkloadSQLRestoreRequest interface { + AsAzureWorkloadSQLPointInTimeRestoreRequest() (*AzureWorkloadSQLPointInTimeRestoreRequest, bool) + AsBasicAzureWorkloadSQLPointInTimeRestoreRequest() (BasicAzureWorkloadSQLPointInTimeRestoreRequest, bool) + AsAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest() (*AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, bool) + AsAzureWorkloadSQLRestoreWithRehydrateRequest() (*AzureWorkloadSQLRestoreWithRehydrateRequest, bool) + AsAzureWorkloadSQLRestoreRequest() (*AzureWorkloadSQLRestoreRequest, bool) +} + +// AzureWorkloadSQLRestoreRequest azureWorkload SQL -specific restore. Specifically for full/diff restore +type AzureWorkloadSQLRestoreRequest struct { + // ShouldUseAlternateTargetLocation - Default option set to true. If this is set to false, alternate data directory must be provided + ShouldUseAlternateTargetLocation *bool `json:"shouldUseAlternateTargetLocation,omitempty"` + // IsNonRecoverable - SQL specific property where user can chose to set no-recovery when restore operation is tried + IsNonRecoverable *bool `json:"isNonRecoverable,omitempty"` + // AlternateDirectoryPaths - Data directory details + AlternateDirectoryPaths *[]SQLDataDirectoryMapping `json:"alternateDirectoryPaths,omitempty"` + // RecoveryType - Type of this recovery. Possible values include: 'RecoveryTypeInvalid', 'RecoveryTypeOriginalLocation', 'RecoveryTypeAlternateLocation', 'RecoveryTypeRestoreDisks', 'RecoveryTypeOffline' + RecoveryType RecoveryType `json:"recoveryType,omitempty"` + // SourceResourceID - Fully qualified ARM ID of the VM on which workload that was running is being recovered. + SourceResourceID *string `json:"sourceResourceId,omitempty"` + // PropertyBag - Workload specific property bag. + PropertyBag map[string]*string `json:"propertyBag"` + // TargetInfo - Details of target database + TargetInfo *TargetRestoreInfo `json:"targetInfo,omitempty"` + // RecoveryMode - Defines whether the current recovery mode is file restore or database restore. Possible values include: 'RecoveryModeInvalid', 'RecoveryModeFileRecovery', 'RecoveryModeWorkloadRecovery' + RecoveryMode RecoveryMode `json:"recoveryMode,omitempty"` + // TargetVirtualMachineID - This is the complete ARM Id of the target VM + // For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + TargetVirtualMachineID *string `json:"targetVirtualMachineId,omitempty"` + // ObjectType - Possible values include: 'ObjectTypeBasicRestoreRequestObjectTypeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureFileShareRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreWithRehydrationRequest' + ObjectType ObjectTypeBasicRestoreRequest `json:"objectType,omitempty"` +} + +func unmarshalBasicAzureWorkloadSQLRestoreRequest(body []byte) (BasicAzureWorkloadSQLRestoreRequest, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["objectType"] { + case string(ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest): + var awspitrr AzureWorkloadSQLPointInTimeRestoreRequest + err := json.Unmarshal(body, &awspitrr) + return awspitrr, err + case string(ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest): + var awspitrwrr AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest + err := json.Unmarshal(body, &awspitrwrr) + return awspitrwrr, err + case string(ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreWithRehydrateRequest): + var awsrwrr AzureWorkloadSQLRestoreWithRehydrateRequest + err := json.Unmarshal(body, &awsrwrr) + return awsrwrr, err + default: + var awsrr AzureWorkloadSQLRestoreRequest + err := json.Unmarshal(body, &awsrr) + return awsrr, err + } +} +func unmarshalBasicAzureWorkloadSQLRestoreRequestArray(body []byte) ([]BasicAzureWorkloadSQLRestoreRequest, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + awsrrArray := make([]BasicAzureWorkloadSQLRestoreRequest, len(rawMessages)) + + for index, rawMessage := range rawMessages { + awsrr, err := unmarshalBasicAzureWorkloadSQLRestoreRequest(*rawMessage) + if err != nil { + return nil, err + } + awsrrArray[index] = awsrr + } + return awsrrArray, nil +} + +// MarshalJSON is the custom marshaler for AzureWorkloadSQLRestoreRequest. +func (awsrr AzureWorkloadSQLRestoreRequest) MarshalJSON() ([]byte, error) { + awsrr.ObjectType = ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreRequest + objectMap := make(map[string]interface{}) + if awsrr.ShouldUseAlternateTargetLocation != nil { + objectMap["shouldUseAlternateTargetLocation"] = awsrr.ShouldUseAlternateTargetLocation + } + if awsrr.IsNonRecoverable != nil { + objectMap["isNonRecoverable"] = awsrr.IsNonRecoverable + } + if awsrr.AlternateDirectoryPaths != nil { + objectMap["alternateDirectoryPaths"] = awsrr.AlternateDirectoryPaths + } + if awsrr.RecoveryType != "" { + objectMap["recoveryType"] = awsrr.RecoveryType + } + if awsrr.SourceResourceID != nil { + objectMap["sourceResourceId"] = awsrr.SourceResourceID + } + if awsrr.PropertyBag != nil { + objectMap["propertyBag"] = awsrr.PropertyBag + } + if awsrr.TargetInfo != nil { + objectMap["targetInfo"] = awsrr.TargetInfo + } + if awsrr.RecoveryMode != "" { + objectMap["recoveryMode"] = awsrr.RecoveryMode + } + if awsrr.TargetVirtualMachineID != nil { + objectMap["targetVirtualMachineId"] = awsrr.TargetVirtualMachineID + } + if awsrr.ObjectType != "" { + objectMap["objectType"] = awsrr.ObjectType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreRequest. +func (awsrr AzureWorkloadSQLRestoreRequest) AsAzureFileShareRestoreRequest() (*AzureFileShareRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreRequest. +func (awsrr AzureWorkloadSQLRestoreRequest) AsAzureWorkloadPointInTimeRestoreRequest() (*AzureWorkloadPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreRequest. +func (awsrr AzureWorkloadSQLRestoreRequest) AsAzureWorkloadRestoreRequest() (*AzureWorkloadRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreRequest. +func (awsrr AzureWorkloadSQLRestoreRequest) AsBasicAzureWorkloadRestoreRequest() (BasicAzureWorkloadRestoreRequest, bool) { + return &awsrr, true +} + +// AsAzureWorkloadSAPHanaPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreRequest. +func (awsrr AzureWorkloadSQLRestoreRequest) AsAzureWorkloadSAPHanaPointInTimeRestoreRequest() (*AzureWorkloadSAPHanaPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSAPHanaPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreRequest. +func (awsrr AzureWorkloadSQLRestoreRequest) AsBasicAzureWorkloadSAPHanaPointInTimeRestoreRequest() (BasicAzureWorkloadSAPHanaPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreRequest. +func (awsrr AzureWorkloadSQLRestoreRequest) AsAzureWorkloadSAPHanaRestoreRequest() (*AzureWorkloadSAPHanaRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSAPHanaRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreRequest. +func (awsrr AzureWorkloadSQLRestoreRequest) AsBasicAzureWorkloadSAPHanaRestoreRequest() (BasicAzureWorkloadSAPHanaRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreRequest. +func (awsrr AzureWorkloadSQLRestoreRequest) AsAzureWorkloadSQLPointInTimeRestoreRequest() (*AzureWorkloadSQLPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSQLPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreRequest. +func (awsrr AzureWorkloadSQLRestoreRequest) AsBasicAzureWorkloadSQLPointInTimeRestoreRequest() (BasicAzureWorkloadSQLPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreRequest. +func (awsrr AzureWorkloadSQLRestoreRequest) AsAzureWorkloadSQLRestoreRequest() (*AzureWorkloadSQLRestoreRequest, bool) { + return &awsrr, true +} + +// AsBasicAzureWorkloadSQLRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreRequest. +func (awsrr AzureWorkloadSQLRestoreRequest) AsBasicAzureWorkloadSQLRestoreRequest() (BasicAzureWorkloadSQLRestoreRequest, bool) { + return &awsrr, true +} + +// AsIaasVMRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreRequest. +func (awsrr AzureWorkloadSQLRestoreRequest) AsIaasVMRestoreRequest() (*IaasVMRestoreRequest, bool) { + return nil, false +} + +// AsBasicIaasVMRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreRequest. +func (awsrr AzureWorkloadSQLRestoreRequest) AsBasicIaasVMRestoreRequest() (BasicIaasVMRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreRequest. +func (awsrr AzureWorkloadSQLRestoreRequest) AsAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest() (*AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreRequest. +func (awsrr AzureWorkloadSQLRestoreRequest) AsAzureWorkloadSAPHanaRestoreWithRehydrateRequest() (*AzureWorkloadSAPHanaRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreRequest. +func (awsrr AzureWorkloadSQLRestoreRequest) AsAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest() (*AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreRequest. +func (awsrr AzureWorkloadSQLRestoreRequest) AsAzureWorkloadSQLRestoreWithRehydrateRequest() (*AzureWorkloadSQLRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsIaasVMRestoreWithRehydrationRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreRequest. +func (awsrr AzureWorkloadSQLRestoreRequest) AsIaasVMRestoreWithRehydrationRequest() (*IaasVMRestoreWithRehydrationRequest, bool) { + return nil, false +} + +// AsRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreRequest. +func (awsrr AzureWorkloadSQLRestoreRequest) AsRestoreRequest() (*RestoreRequest, bool) { + return nil, false +} + +// AsBasicRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreRequest. +func (awsrr AzureWorkloadSQLRestoreRequest) AsBasicRestoreRequest() (BasicRestoreRequest, bool) { + return &awsrr, true +} + +// AzureWorkloadSQLRestoreWithRehydrateRequest azureWorkload SQL-specific restore with integrated +// rehydration of recovery point +type AzureWorkloadSQLRestoreWithRehydrateRequest struct { + // RecoveryPointRehydrationInfo - RP Rehydration Info + RecoveryPointRehydrationInfo *RecoveryPointRehydrationInfo `json:"recoveryPointRehydrationInfo,omitempty"` + // ShouldUseAlternateTargetLocation - Default option set to true. If this is set to false, alternate data directory must be provided + ShouldUseAlternateTargetLocation *bool `json:"shouldUseAlternateTargetLocation,omitempty"` + // IsNonRecoverable - SQL specific property where user can chose to set no-recovery when restore operation is tried + IsNonRecoverable *bool `json:"isNonRecoverable,omitempty"` + // AlternateDirectoryPaths - Data directory details + AlternateDirectoryPaths *[]SQLDataDirectoryMapping `json:"alternateDirectoryPaths,omitempty"` + // RecoveryType - Type of this recovery. Possible values include: 'RecoveryTypeInvalid', 'RecoveryTypeOriginalLocation', 'RecoveryTypeAlternateLocation', 'RecoveryTypeRestoreDisks', 'RecoveryTypeOffline' + RecoveryType RecoveryType `json:"recoveryType,omitempty"` + // SourceResourceID - Fully qualified ARM ID of the VM on which workload that was running is being recovered. + SourceResourceID *string `json:"sourceResourceId,omitempty"` + // PropertyBag - Workload specific property bag. + PropertyBag map[string]*string `json:"propertyBag"` + // TargetInfo - Details of target database + TargetInfo *TargetRestoreInfo `json:"targetInfo,omitempty"` + // RecoveryMode - Defines whether the current recovery mode is file restore or database restore. Possible values include: 'RecoveryModeInvalid', 'RecoveryModeFileRecovery', 'RecoveryModeWorkloadRecovery' + RecoveryMode RecoveryMode `json:"recoveryMode,omitempty"` + // TargetVirtualMachineID - This is the complete ARM Id of the target VM + // For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + TargetVirtualMachineID *string `json:"targetVirtualMachineId,omitempty"` + // ObjectType - Possible values include: 'ObjectTypeBasicRestoreRequestObjectTypeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureFileShareRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreWithRehydrationRequest' + ObjectType ObjectTypeBasicRestoreRequest `json:"objectType,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureWorkloadSQLRestoreWithRehydrateRequest. +func (awsrwrr AzureWorkloadSQLRestoreWithRehydrateRequest) MarshalJSON() ([]byte, error) { + awsrwrr.ObjectType = ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreWithRehydrateRequest + objectMap := make(map[string]interface{}) + if awsrwrr.RecoveryPointRehydrationInfo != nil { + objectMap["recoveryPointRehydrationInfo"] = awsrwrr.RecoveryPointRehydrationInfo + } + if awsrwrr.ShouldUseAlternateTargetLocation != nil { + objectMap["shouldUseAlternateTargetLocation"] = awsrwrr.ShouldUseAlternateTargetLocation + } + if awsrwrr.IsNonRecoverable != nil { + objectMap["isNonRecoverable"] = awsrwrr.IsNonRecoverable + } + if awsrwrr.AlternateDirectoryPaths != nil { + objectMap["alternateDirectoryPaths"] = awsrwrr.AlternateDirectoryPaths + } + if awsrwrr.RecoveryType != "" { + objectMap["recoveryType"] = awsrwrr.RecoveryType + } + if awsrwrr.SourceResourceID != nil { + objectMap["sourceResourceId"] = awsrwrr.SourceResourceID + } + if awsrwrr.PropertyBag != nil { + objectMap["propertyBag"] = awsrwrr.PropertyBag + } + if awsrwrr.TargetInfo != nil { + objectMap["targetInfo"] = awsrwrr.TargetInfo + } + if awsrwrr.RecoveryMode != "" { + objectMap["recoveryMode"] = awsrwrr.RecoveryMode + } + if awsrwrr.TargetVirtualMachineID != nil { + objectMap["targetVirtualMachineId"] = awsrwrr.TargetVirtualMachineID + } + if awsrwrr.ObjectType != "" { + objectMap["objectType"] = awsrwrr.ObjectType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreWithRehydrateRequest. +func (awsrwrr AzureWorkloadSQLRestoreWithRehydrateRequest) AsAzureFileShareRestoreRequest() (*AzureFileShareRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreWithRehydrateRequest. +func (awsrwrr AzureWorkloadSQLRestoreWithRehydrateRequest) AsAzureWorkloadPointInTimeRestoreRequest() (*AzureWorkloadPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreWithRehydrateRequest. +func (awsrwrr AzureWorkloadSQLRestoreWithRehydrateRequest) AsAzureWorkloadRestoreRequest() (*AzureWorkloadRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreWithRehydrateRequest. +func (awsrwrr AzureWorkloadSQLRestoreWithRehydrateRequest) AsBasicAzureWorkloadRestoreRequest() (BasicAzureWorkloadRestoreRequest, bool) { + return &awsrwrr, true +} + +// AsAzureWorkloadSAPHanaPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreWithRehydrateRequest. +func (awsrwrr AzureWorkloadSQLRestoreWithRehydrateRequest) AsAzureWorkloadSAPHanaPointInTimeRestoreRequest() (*AzureWorkloadSAPHanaPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSAPHanaPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreWithRehydrateRequest. +func (awsrwrr AzureWorkloadSQLRestoreWithRehydrateRequest) AsBasicAzureWorkloadSAPHanaPointInTimeRestoreRequest() (BasicAzureWorkloadSAPHanaPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreWithRehydrateRequest. +func (awsrwrr AzureWorkloadSQLRestoreWithRehydrateRequest) AsAzureWorkloadSAPHanaRestoreRequest() (*AzureWorkloadSAPHanaRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSAPHanaRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreWithRehydrateRequest. +func (awsrwrr AzureWorkloadSQLRestoreWithRehydrateRequest) AsBasicAzureWorkloadSAPHanaRestoreRequest() (BasicAzureWorkloadSAPHanaRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreWithRehydrateRequest. +func (awsrwrr AzureWorkloadSQLRestoreWithRehydrateRequest) AsAzureWorkloadSQLPointInTimeRestoreRequest() (*AzureWorkloadSQLPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSQLPointInTimeRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreWithRehydrateRequest. +func (awsrwrr AzureWorkloadSQLRestoreWithRehydrateRequest) AsBasicAzureWorkloadSQLPointInTimeRestoreRequest() (BasicAzureWorkloadSQLPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreWithRehydrateRequest. +func (awsrwrr AzureWorkloadSQLRestoreWithRehydrateRequest) AsAzureWorkloadSQLRestoreRequest() (*AzureWorkloadSQLRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSQLRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreWithRehydrateRequest. +func (awsrwrr AzureWorkloadSQLRestoreWithRehydrateRequest) AsBasicAzureWorkloadSQLRestoreRequest() (BasicAzureWorkloadSQLRestoreRequest, bool) { + return &awsrwrr, true +} + +// AsIaasVMRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreWithRehydrateRequest. +func (awsrwrr AzureWorkloadSQLRestoreWithRehydrateRequest) AsIaasVMRestoreRequest() (*IaasVMRestoreRequest, bool) { + return nil, false +} + +// AsBasicIaasVMRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreWithRehydrateRequest. +func (awsrwrr AzureWorkloadSQLRestoreWithRehydrateRequest) AsBasicIaasVMRestoreRequest() (BasicIaasVMRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreWithRehydrateRequest. +func (awsrwrr AzureWorkloadSQLRestoreWithRehydrateRequest) AsAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest() (*AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreWithRehydrateRequest. +func (awsrwrr AzureWorkloadSQLRestoreWithRehydrateRequest) AsAzureWorkloadSAPHanaRestoreWithRehydrateRequest() (*AzureWorkloadSAPHanaRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreWithRehydrateRequest. +func (awsrwrr AzureWorkloadSQLRestoreWithRehydrateRequest) AsAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest() (*AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreWithRehydrateRequest. +func (awsrwrr AzureWorkloadSQLRestoreWithRehydrateRequest) AsAzureWorkloadSQLRestoreWithRehydrateRequest() (*AzureWorkloadSQLRestoreWithRehydrateRequest, bool) { + return &awsrwrr, true +} + +// AsIaasVMRestoreWithRehydrationRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreWithRehydrateRequest. +func (awsrwrr AzureWorkloadSQLRestoreWithRehydrateRequest) AsIaasVMRestoreWithRehydrationRequest() (*IaasVMRestoreWithRehydrationRequest, bool) { + return nil, false +} + +// AsRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreWithRehydrateRequest. +func (awsrwrr AzureWorkloadSQLRestoreWithRehydrateRequest) AsRestoreRequest() (*RestoreRequest, bool) { + return nil, false +} + +// AsBasicRestoreRequest is the BasicRestoreRequest implementation for AzureWorkloadSQLRestoreWithRehydrateRequest. +func (awsrwrr AzureWorkloadSQLRestoreWithRehydrateRequest) AsBasicRestoreRequest() (BasicRestoreRequest, bool) { + return &awsrwrr, true +} + +// BEKDetails BEK is bitlocker encryption key. +type BEKDetails struct { + // SecretURL - Secret is BEK. + SecretURL *string `json:"secretUrl,omitempty"` + // SecretVaultID - ID of the Key Vault where this Secret is stored. + SecretVaultID *string `json:"secretVaultId,omitempty"` + // SecretData - BEK data. + SecretData *string `json:"secretData,omitempty"` +} + +// BMSAADPropertiesQueryObject filters to list backup items. +type BMSAADPropertiesQueryObject struct { + // BackupManagementType - Backup management type for the backed up item. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` +} + +// BMSBackupEngineQueryObject query parameters to fetch list of backup engines. +type BMSBackupEngineQueryObject struct { + // Expand - attribute to add extended info + Expand *string `json:"expand,omitempty"` +} + +// BMSBackupEnginesQueryObject query parameters to fetch list of backup engines. +type BMSBackupEnginesQueryObject struct { + // BackupManagementType - Backup management type for the backup engine. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // FriendlyName - Friendly name of the backup engine. + FriendlyName *string `json:"friendlyName,omitempty"` + // Expand - Attribute to add extended info. + Expand *string `json:"expand,omitempty"` +} + +// BMSBackupSummariesQueryObject query parameters to fetch backup summaries. +type BMSBackupSummariesQueryObject struct { + // Type - Backup management type for this container. Possible values include: 'TypeInvalid', 'TypeBackupProtectedItemCountSummary', 'TypeBackupProtectionContainerCountSummary' + Type Type `json:"type,omitempty"` +} + +// BMSContainerQueryObject the query filters that can be used with the list containers API. +type BMSContainerQueryObject struct { + // BackupManagementType - Backup management type for this container. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // ContainerType - Type of container for filter. Possible values include: 'ContainerTypeInvalid', 'ContainerTypeUnknown', 'ContainerTypeIaasVMContainer', 'ContainerTypeIaasVMServiceContainer', 'ContainerTypeDPMContainer', 'ContainerTypeAzureBackupServerContainer', 'ContainerTypeMABContainer', 'ContainerTypeCluster', 'ContainerTypeAzureSQLContainer', 'ContainerTypeWindows', 'ContainerTypeVCenter', 'ContainerTypeVMAppContainer', 'ContainerTypeSQLAGWorkLoadContainer', 'ContainerTypeStorageContainer', 'ContainerTypeGenericContainer' + ContainerType ContainerType `json:"containerType,omitempty"` + // BackupEngineName - Backup engine name + BackupEngineName *string `json:"backupEngineName,omitempty"` + // FabricName - Fabric name for filter + FabricName *string `json:"fabricName,omitempty"` + // Status - Status of registration of this container with the Recovery Services Vault. + Status *string `json:"status,omitempty"` + // FriendlyName - Friendly name of this container. + FriendlyName *string `json:"friendlyName,omitempty"` +} + +// BMSContainersInquiryQueryObject the query filters that can be used with the inquire container API. +type BMSContainersInquiryQueryObject struct { + // BackupManagementType - Backup management type for this container. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // WorkloadType - Workload type for this container. Possible values include: 'WorkloadTypeInvalid', 'WorkloadTypeVM', 'WorkloadTypeFileFolder', 'WorkloadTypeAzureSQLDb', 'WorkloadTypeSQLDB', 'WorkloadTypeExchange', 'WorkloadTypeSharepoint', 'WorkloadTypeVMwareVM', 'WorkloadTypeSystemState', 'WorkloadTypeClient', 'WorkloadTypeGenericDataSource', 'WorkloadTypeSQLDataBase', 'WorkloadTypeAzureFileShare', 'WorkloadTypeSAPHanaDatabase', 'WorkloadTypeSAPAseDatabase' + WorkloadType WorkloadType `json:"workloadType,omitempty"` +} + +// BMSPOQueryObject filters to list items that can be backed up. +type BMSPOQueryObject struct { + // BackupManagementType - Backup management type. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // WorkloadType - Workload type. Possible values include: 'WorkloadTypeInvalid', 'WorkloadTypeVM', 'WorkloadTypeFileFolder', 'WorkloadTypeAzureSQLDb', 'WorkloadTypeSQLDB', 'WorkloadTypeExchange', 'WorkloadTypeSharepoint', 'WorkloadTypeVMwareVM', 'WorkloadTypeSystemState', 'WorkloadTypeClient', 'WorkloadTypeGenericDataSource', 'WorkloadTypeSQLDataBase', 'WorkloadTypeAzureFileShare', 'WorkloadTypeSAPHanaDatabase', 'WorkloadTypeSAPAseDatabase' + WorkloadType WorkloadType `json:"workloadType,omitempty"` + // ContainerName - Full name of the container whose Protectable Objects should be returned. + ContainerName *string `json:"containerName,omitempty"` + // Status - Backup status query parameter. + Status *string `json:"status,omitempty"` + // FriendlyName - Friendly name. + FriendlyName *string `json:"friendlyName,omitempty"` +} + +// BMSPrepareDataMoveFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type BMSPrepareDataMoveFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(BaseClient) (autorest.Response, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *BMSPrepareDataMoveFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for BMSPrepareDataMoveFuture.Result. +func (future *BMSPrepareDataMoveFuture) result(client BaseClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.BMSPrepareDataMoveFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + ar.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("backup.BMSPrepareDataMoveFuture") + return + } + ar.Response = future.Response() + return +} + +// BMSRefreshContainersQueryObject the query filters that can be used with the refresh container API. +type BMSRefreshContainersQueryObject struct { + // BackupManagementType - Backup management type for this container. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` +} + +// BMSRPQueryObject filters to list backup copies. +type BMSRPQueryObject struct { + // StartDate - Backup copies created after this time. + StartDate *date.Time `json:"startDate,omitempty"` + // EndDate - Backup copies created before this time. + EndDate *date.Time `json:"endDate,omitempty"` + // RestorePointQueryType - RestorePoint type. Possible values include: 'RestorePointQueryTypeInvalid', 'RestorePointQueryTypeFull', 'RestorePointQueryTypeLog', 'RestorePointQueryTypeDifferential', 'RestorePointQueryTypeFullAndDifferential', 'RestorePointQueryTypeAll', 'RestorePointQueryTypeIncremental' + RestorePointQueryType RestorePointQueryType `json:"restorePointQueryType,omitempty"` + // ExtendedInfo - In Get Recovery Point, it tells whether extended information about recovery point is asked. + ExtendedInfo *bool `json:"extendedInfo,omitempty"` + // MoveReadyRPOnly - Whether the RP can be moved to another tier + MoveReadyRPOnly *bool `json:"moveReadyRPOnly,omitempty"` +} + +// BMSTriggerDataMoveFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type BMSTriggerDataMoveFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(BaseClient) (autorest.Response, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *BMSTriggerDataMoveFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for BMSTriggerDataMoveFuture.Result. +func (future *BMSTriggerDataMoveFuture) result(client BaseClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.BMSTriggerDataMoveFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + ar.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("backup.BMSTriggerDataMoveFuture") + return + } + ar.Response = future.Response() + return +} + +// BMSWorkloadItemQueryObject filters to list items that can be backed up. +type BMSWorkloadItemQueryObject struct { + // BackupManagementType - Backup management type. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // WorkloadItemType - Workload Item type. Possible values include: 'WorkloadItemTypeInvalid', 'WorkloadItemTypeSQLInstance', 'WorkloadItemTypeSQLDataBase', 'WorkloadItemTypeSAPHanaSystem', 'WorkloadItemTypeSAPHanaDatabase', 'WorkloadItemTypeSAPAseSystem', 'WorkloadItemTypeSAPAseDatabase' + WorkloadItemType WorkloadItemType `json:"workloadItemType,omitempty"` + // WorkloadType - Workload type. Possible values include: 'WorkloadTypeInvalid', 'WorkloadTypeVM', 'WorkloadTypeFileFolder', 'WorkloadTypeAzureSQLDb', 'WorkloadTypeSQLDB', 'WorkloadTypeExchange', 'WorkloadTypeSharepoint', 'WorkloadTypeVMwareVM', 'WorkloadTypeSystemState', 'WorkloadTypeClient', 'WorkloadTypeGenericDataSource', 'WorkloadTypeSQLDataBase', 'WorkloadTypeAzureFileShare', 'WorkloadTypeSAPHanaDatabase', 'WorkloadTypeSAPAseDatabase' + WorkloadType WorkloadType `json:"workloadType,omitempty"` + // ProtectionStatus - Backup status query parameter. Possible values include: 'ProtectionStatusInvalid', 'ProtectionStatusNotProtected', 'ProtectionStatusProtecting', 'ProtectionStatusProtected', 'ProtectionStatusProtectionFailed' + ProtectionStatus ProtectionStatus `json:"protectionStatus,omitempty"` +} + +// ClientDiscoveryDisplay localized display information of an operation. +type ClientDiscoveryDisplay struct { + // Provider - Name of the provider for display purposes + Provider *string `json:"provider,omitempty"` + // Resource - ResourceType for which this Operation can be performed. + Resource *string `json:"resource,omitempty"` + // Operation - Operations Name itself. + Operation *string `json:"operation,omitempty"` + // Description - Description of the operation having details of what operation is about. + Description *string `json:"description,omitempty"` +} + +// ClientDiscoveryForLogSpecification class to represent shoebox log specification in json client +// discovery. +type ClientDiscoveryForLogSpecification struct { + // Name - Name for shoebox log specification. + Name *string `json:"name,omitempty"` + // DisplayName - Localized display name + DisplayName *string `json:"displayName,omitempty"` + // BlobDuration - blob duration of shoebox log specification + BlobDuration *string `json:"blobDuration,omitempty"` +} + +// ClientDiscoveryForProperties class to represent shoebox properties in json client discovery. +type ClientDiscoveryForProperties struct { + // ServiceSpecification - Operation properties. + ServiceSpecification *ClientDiscoveryForServiceSpecification `json:"serviceSpecification,omitempty"` +} + +// ClientDiscoveryForServiceSpecification class to represent shoebox service specification in json client +// discovery. +type ClientDiscoveryForServiceSpecification struct { + // LogSpecifications - List of log specifications of this operation. + LogSpecifications *[]ClientDiscoveryForLogSpecification `json:"logSpecifications,omitempty"` +} + +// ClientDiscoveryResponse operations List response which contains list of available APIs. +type ClientDiscoveryResponse struct { + autorest.Response `json:"-"` + // Value - List of available operations. + Value *[]ClientDiscoveryValueForSingleAPI `json:"value,omitempty"` + // NextLink - Link to the next chunk of Response. + NextLink *string `json:"nextLink,omitempty"` +} + +// ClientDiscoveryResponseIterator provides access to a complete listing of +// ClientDiscoveryValueForSingleAPI values. +type ClientDiscoveryResponseIterator struct { + i int + page ClientDiscoveryResponsePage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ClientDiscoveryResponseIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ClientDiscoveryResponseIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ClientDiscoveryResponseIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ClientDiscoveryResponseIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ClientDiscoveryResponseIterator) Response() ClientDiscoveryResponse { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ClientDiscoveryResponseIterator) Value() ClientDiscoveryValueForSingleAPI { + if !iter.page.NotDone() { + return ClientDiscoveryValueForSingleAPI{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ClientDiscoveryResponseIterator type. +func NewClientDiscoveryResponseIterator(page ClientDiscoveryResponsePage) ClientDiscoveryResponseIterator { + return ClientDiscoveryResponseIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (cdr ClientDiscoveryResponse) IsEmpty() bool { + return cdr.Value == nil || len(*cdr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (cdr ClientDiscoveryResponse) hasNextLink() bool { + return cdr.NextLink != nil && len(*cdr.NextLink) != 0 +} + +// clientDiscoveryResponsePreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (cdr ClientDiscoveryResponse) clientDiscoveryResponsePreparer(ctx context.Context) (*http.Request, error) { + if !cdr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(cdr.NextLink))) +} + +// ClientDiscoveryResponsePage contains a page of ClientDiscoveryValueForSingleAPI values. +type ClientDiscoveryResponsePage struct { + fn func(context.Context, ClientDiscoveryResponse) (ClientDiscoveryResponse, error) + cdr ClientDiscoveryResponse +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ClientDiscoveryResponsePage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ClientDiscoveryResponsePage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.cdr) + if err != nil { + return err + } + page.cdr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ClientDiscoveryResponsePage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ClientDiscoveryResponsePage) NotDone() bool { + return !page.cdr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ClientDiscoveryResponsePage) Response() ClientDiscoveryResponse { + return page.cdr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ClientDiscoveryResponsePage) Values() []ClientDiscoveryValueForSingleAPI { + if page.cdr.IsEmpty() { + return nil + } + return *page.cdr.Value +} + +// Creates a new instance of the ClientDiscoveryResponsePage type. +func NewClientDiscoveryResponsePage(cur ClientDiscoveryResponse, getNextPage func(context.Context, ClientDiscoveryResponse) (ClientDiscoveryResponse, error)) ClientDiscoveryResponsePage { + return ClientDiscoveryResponsePage{ + fn: getNextPage, + cdr: cur, + } +} + +// ClientDiscoveryValueForSingleAPI available operation details. +type ClientDiscoveryValueForSingleAPI struct { + // Name - Name of the Operation. + Name *string `json:"name,omitempty"` + // Display - Contains the localized display information for this particular operation + Display *ClientDiscoveryDisplay `json:"display,omitempty"` + // Origin - The intended executor of the operation;governs the display of the operation in the RBAC UX and the audit logs UX + Origin *string `json:"origin,omitempty"` + // Properties - ShoeBox properties for the given operation. + Properties *ClientDiscoveryForProperties `json:"properties,omitempty"` +} + +// ClientScriptForConnect client script details for file / folder restore. +type ClientScriptForConnect struct { + // ScriptContent - File content of the client script for file / folder restore. + ScriptContent *string `json:"scriptContent,omitempty"` + // ScriptExtension - File extension of the client script for file / folder restore - .ps1 , .sh , etc. + ScriptExtension *string `json:"scriptExtension,omitempty"` + // OsType - OS type - Windows, Linux etc. for which this file / folder restore client script works. + OsType *string `json:"osType,omitempty"` + // URL - URL of Executable from where to source the content. If this is not null then ScriptContent should not be used + URL *string `json:"url,omitempty"` + // ScriptNameSuffix - Mandatory suffix that should be added to the name of script that is given for download to user. + // If its null or empty then , ignore it. + ScriptNameSuffix *string `json:"scriptNameSuffix,omitempty"` +} + +// CloudError an error response from the Container Instance service. +type CloudError struct { + // Error - The error object. + Error *CloudErrorBody `json:"error,omitempty"` +} + +// CloudErrorBody an error response from the Container Instance service. +type CloudErrorBody struct { + // Code - READ-ONLY; An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + Code *string `json:"code,omitempty"` + // Message - READ-ONLY; A message describing the error, intended to be suitable for display in a user interface. + Message *string `json:"message,omitempty"` + // Target - READ-ONLY; The target of the particular error. For example, the name of the property in error. + Target *string `json:"target,omitempty"` + // Details - READ-ONLY; A list of additional details about the error. + Details *[]CloudErrorBody `json:"details,omitempty"` + // AdditionalInfo - READ-ONLY; The error additional info. + AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` +} + +// MarshalJSON is the custom marshaler for CloudErrorBody. +func (ceb CloudErrorBody) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// ContainerIdentityInfo container identity information +type ContainerIdentityInfo struct { + // UniqueName - Unique name of the container + UniqueName *string `json:"uniqueName,omitempty"` + // AadTenantID - Protection container identity - AAD Tenant + AadTenantID *string `json:"aadTenantId,omitempty"` + // ServicePrincipalClientID - Protection container identity - AAD Service Principal + ServicePrincipalClientID *string `json:"servicePrincipalClientId,omitempty"` + // Audience - Protection container identity - Audience + Audience *string `json:"audience,omitempty"` +} + +// CrossRegionRestoreRequest ... +type CrossRegionRestoreRequest struct { + // CrossRegionRestoreAccessDetails - Access details for cross region restore + CrossRegionRestoreAccessDetails BasicCrrAccessToken `json:"crossRegionRestoreAccessDetails,omitempty"` + // RestoreRequest - Request object for triggering restore + RestoreRequest BasicRestoreRequest `json:"restoreRequest,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for CrossRegionRestoreRequest struct. +func (crrr *CrossRegionRestoreRequest) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "crossRegionRestoreAccessDetails": + if v != nil { + crossRegionRestoreAccessDetails, err := unmarshalBasicCrrAccessToken(*v) + if err != nil { + return err + } + crrr.CrossRegionRestoreAccessDetails = crossRegionRestoreAccessDetails + } + case "restoreRequest": + if v != nil { + restoreRequest, err := unmarshalBasicRestoreRequest(*v) + if err != nil { + return err + } + crrr.RestoreRequest = restoreRequest + } + } + } + + return nil +} + +// CrossRegionRestoreRequestResource ... +type CrossRegionRestoreRequestResource struct { + // Properties - CrossRegionRestoreRequestResource properties + Properties *CrossRegionRestoreRequest `json:"properties,omitempty"` + // ID - READ-ONLY; Resource Id represents the complete path to the resource. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name associated with the resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // ETag - Optional ETag. + ETag *string `json:"eTag,omitempty"` +} + +// MarshalJSON is the custom marshaler for CrossRegionRestoreRequestResource. +func (crrrr CrossRegionRestoreRequestResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if crrrr.Properties != nil { + objectMap["properties"] = crrrr.Properties + } + if crrrr.Location != nil { + objectMap["location"] = crrrr.Location + } + if crrrr.Tags != nil { + objectMap["tags"] = crrrr.Tags + } + if crrrr.ETag != nil { + objectMap["eTag"] = crrrr.ETag + } + return json.Marshal(objectMap) +} + +// CrossRegionRestoreTriggerFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type CrossRegionRestoreTriggerFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(CrossRegionRestoreClient) (autorest.Response, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *CrossRegionRestoreTriggerFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for CrossRegionRestoreTriggerFuture.Result. +func (future *CrossRegionRestoreTriggerFuture) result(client CrossRegionRestoreClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.CrossRegionRestoreTriggerFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + ar.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("backup.CrossRegionRestoreTriggerFuture") + return + } + ar.Response = future.Response() + return +} + +// BasicCrrAccessToken ... +type BasicCrrAccessToken interface { + AsWorkloadCrrAccessToken() (*WorkloadCrrAccessToken, bool) + AsCrrAccessToken() (*CrrAccessToken, bool) +} + +// CrrAccessToken ... +type CrrAccessToken struct { + // AccessTokenString - Access token used for authentication + AccessTokenString *string `json:"accessTokenString,omitempty"` + // SubscriptionID - Subscription Id of the source vault + SubscriptionID *string `json:"subscriptionId,omitempty"` + // ResourceGroupName - Resource Group name of the source vault + ResourceGroupName *string `json:"resourceGroupName,omitempty"` + // ResourceName - Resource Name of the source vault + ResourceName *string `json:"resourceName,omitempty"` + // ResourceID - Resource Id of the source vault + ResourceID *string `json:"resourceId,omitempty"` + // ProtectionContainerID - Protected item container id + ProtectionContainerID *int64 `json:"protectionContainerId,omitempty"` + // RecoveryPointID - Recovery Point Id + RecoveryPointID *string `json:"recoveryPointId,omitempty"` + // RecoveryPointTime - Recovery Point Time + RecoveryPointTime *string `json:"recoveryPointTime,omitempty"` + // ContainerName - Container Unique name + ContainerName *string `json:"containerName,omitempty"` + // ContainerType - Container Type + ContainerType *string `json:"containerType,omitempty"` + // BackupManagementType - Backup Management Type + BackupManagementType *string `json:"backupManagementType,omitempty"` + // DatasourceType - Datasource Type + DatasourceType *string `json:"datasourceType,omitempty"` + // DatasourceName - Datasource Friendly Name + DatasourceName *string `json:"datasourceName,omitempty"` + // DatasourceID - Datasource Id + DatasourceID *string `json:"datasourceId,omitempty"` + // DatasourceContainerName - Datasource Container Unique Name + DatasourceContainerName *string `json:"datasourceContainerName,omitempty"` + // CoordinatorServiceStampID - CoordinatorServiceStampId to be used by BCM in restore call + CoordinatorServiceStampID *string `json:"coordinatorServiceStampId,omitempty"` + // CoordinatorServiceStampURI - CoordinatorServiceStampUri to be used by BCM in restore call + CoordinatorServiceStampURI *string `json:"coordinatorServiceStampUri,omitempty"` + // ProtectionServiceStampID - ProtectionServiceStampId to be used by BCM in restore call + ProtectionServiceStampID *string `json:"protectionServiceStampId,omitempty"` + // ProtectionServiceStampURI - ProtectionServiceStampUri to be used by BCM in restore call + ProtectionServiceStampURI *string `json:"protectionServiceStampUri,omitempty"` + // TokenExtendedInformation - Extended Information about the token like FileSpec etc. + TokenExtendedInformation *string `json:"tokenExtendedInformation,omitempty"` + // RpTierInformation - Recovery point Tier Information + RpTierInformation map[string]*string `json:"rpTierInformation"` + // RpOriginalSAOption - Recovery point information: Original SA option + RpOriginalSAOption *bool `json:"rpOriginalSAOption,omitempty"` + // RpIsManagedVirtualMachine - Recovery point information: Managed virtual machine + RpIsManagedVirtualMachine *bool `json:"rpIsManagedVirtualMachine,omitempty"` + // RpVMSizeDescription - Recovery point information: VM size description + RpVMSizeDescription *string `json:"rpVMSizeDescription,omitempty"` + // BMSActiveRegion - Active region name of BMS Stamp + BMSActiveRegion *string `json:"bMSActiveRegion,omitempty"` + // ObjectType - Possible values include: 'ObjectTypeBasicCrrAccessTokenObjectTypeCrrAccessToken', 'ObjectTypeBasicCrrAccessTokenObjectTypeWorkloadCrrAccessToken' + ObjectType ObjectTypeBasicCrrAccessToken `json:"objectType,omitempty"` +} + +func unmarshalBasicCrrAccessToken(body []byte) (BasicCrrAccessToken, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["objectType"] { + case string(ObjectTypeBasicCrrAccessTokenObjectTypeWorkloadCrrAccessToken): + var wcat WorkloadCrrAccessToken + err := json.Unmarshal(body, &wcat) + return wcat, err + default: + var cat CrrAccessToken + err := json.Unmarshal(body, &cat) + return cat, err + } +} +func unmarshalBasicCrrAccessTokenArray(body []byte) ([]BasicCrrAccessToken, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + catArray := make([]BasicCrrAccessToken, len(rawMessages)) + + for index, rawMessage := range rawMessages { + cat, err := unmarshalBasicCrrAccessToken(*rawMessage) + if err != nil { + return nil, err + } + catArray[index] = cat + } + return catArray, nil +} + +// MarshalJSON is the custom marshaler for CrrAccessToken. +func (cat CrrAccessToken) MarshalJSON() ([]byte, error) { + cat.ObjectType = ObjectTypeBasicCrrAccessTokenObjectTypeCrrAccessToken + objectMap := make(map[string]interface{}) + if cat.AccessTokenString != nil { + objectMap["accessTokenString"] = cat.AccessTokenString + } + if cat.SubscriptionID != nil { + objectMap["subscriptionId"] = cat.SubscriptionID + } + if cat.ResourceGroupName != nil { + objectMap["resourceGroupName"] = cat.ResourceGroupName + } + if cat.ResourceName != nil { + objectMap["resourceName"] = cat.ResourceName + } + if cat.ResourceID != nil { + objectMap["resourceId"] = cat.ResourceID + } + if cat.ProtectionContainerID != nil { + objectMap["protectionContainerId"] = cat.ProtectionContainerID + } + if cat.RecoveryPointID != nil { + objectMap["recoveryPointId"] = cat.RecoveryPointID + } + if cat.RecoveryPointTime != nil { + objectMap["recoveryPointTime"] = cat.RecoveryPointTime + } + if cat.ContainerName != nil { + objectMap["containerName"] = cat.ContainerName + } + if cat.ContainerType != nil { + objectMap["containerType"] = cat.ContainerType + } + if cat.BackupManagementType != nil { + objectMap["backupManagementType"] = cat.BackupManagementType + } + if cat.DatasourceType != nil { + objectMap["datasourceType"] = cat.DatasourceType + } + if cat.DatasourceName != nil { + objectMap["datasourceName"] = cat.DatasourceName + } + if cat.DatasourceID != nil { + objectMap["datasourceId"] = cat.DatasourceID + } + if cat.DatasourceContainerName != nil { + objectMap["datasourceContainerName"] = cat.DatasourceContainerName + } + if cat.CoordinatorServiceStampID != nil { + objectMap["coordinatorServiceStampId"] = cat.CoordinatorServiceStampID + } + if cat.CoordinatorServiceStampURI != nil { + objectMap["coordinatorServiceStampUri"] = cat.CoordinatorServiceStampURI + } + if cat.ProtectionServiceStampID != nil { + objectMap["protectionServiceStampId"] = cat.ProtectionServiceStampID + } + if cat.ProtectionServiceStampURI != nil { + objectMap["protectionServiceStampUri"] = cat.ProtectionServiceStampURI + } + if cat.TokenExtendedInformation != nil { + objectMap["tokenExtendedInformation"] = cat.TokenExtendedInformation + } + if cat.RpTierInformation != nil { + objectMap["rpTierInformation"] = cat.RpTierInformation + } + if cat.RpOriginalSAOption != nil { + objectMap["rpOriginalSAOption"] = cat.RpOriginalSAOption + } + if cat.RpIsManagedVirtualMachine != nil { + objectMap["rpIsManagedVirtualMachine"] = cat.RpIsManagedVirtualMachine + } + if cat.RpVMSizeDescription != nil { + objectMap["rpVMSizeDescription"] = cat.RpVMSizeDescription + } + if cat.BMSActiveRegion != nil { + objectMap["bMSActiveRegion"] = cat.BMSActiveRegion + } + if cat.ObjectType != "" { + objectMap["objectType"] = cat.ObjectType + } + return json.Marshal(objectMap) +} + +// AsWorkloadCrrAccessToken is the BasicCrrAccessToken implementation for CrrAccessToken. +func (cat CrrAccessToken) AsWorkloadCrrAccessToken() (*WorkloadCrrAccessToken, bool) { + return nil, false +} + +// AsCrrAccessToken is the BasicCrrAccessToken implementation for CrrAccessToken. +func (cat CrrAccessToken) AsCrrAccessToken() (*CrrAccessToken, bool) { + return &cat, true +} + +// AsBasicCrrAccessToken is the BasicCrrAccessToken implementation for CrrAccessToken. +func (cat CrrAccessToken) AsBasicCrrAccessToken() (BasicCrrAccessToken, bool) { + return &cat, true +} + +// CrrAccessTokenResource ... +type CrrAccessTokenResource struct { + autorest.Response `json:"-"` + // Properties - CrrAccessTokenResource properties + Properties BasicCrrAccessToken `json:"properties,omitempty"` + // ID - READ-ONLY; Resource Id represents the complete path to the resource. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name associated with the resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // ETag - Optional ETag. + ETag *string `json:"eTag,omitempty"` +} + +// MarshalJSON is the custom marshaler for CrrAccessTokenResource. +func (catr CrrAccessTokenResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + objectMap["properties"] = catr.Properties + if catr.Location != nil { + objectMap["location"] = catr.Location + } + if catr.Tags != nil { + objectMap["tags"] = catr.Tags + } + if catr.ETag != nil { + objectMap["eTag"] = catr.ETag + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for CrrAccessTokenResource struct. +func (catr *CrrAccessTokenResource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + properties, err := unmarshalBasicCrrAccessToken(*v) + if err != nil { + return err + } + catr.Properties = properties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + catr.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + catr.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + catr.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + catr.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + catr.Tags = tags + } + case "eTag": + if v != nil { + var eTag string + err = json.Unmarshal(*v, &eTag) + if err != nil { + return err + } + catr.ETag = &eTag + } + } + } + + return nil +} + +// CrrJobRequest request object for fetching CRR jobs. +type CrrJobRequest struct { + // ResourceID - Entire ARM resource id of the resource + ResourceID *string `json:"resourceId,omitempty"` + // JobName - Job Name of the job to be fetched + JobName *string `json:"jobName,omitempty"` +} + +// CrrJobRequestResource request object for fetching CRR jobs. +type CrrJobRequestResource struct { + // Properties - CrrJobRequestResource properties + Properties *CrrJobRequest `json:"properties,omitempty"` + // ID - READ-ONLY; Resource Id represents the complete path to the resource. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name associated with the resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // ETag - Optional ETag. + ETag *string `json:"eTag,omitempty"` +} + +// MarshalJSON is the custom marshaler for CrrJobRequestResource. +func (cjrr CrrJobRequestResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if cjrr.Properties != nil { + objectMap["properties"] = cjrr.Properties + } + if cjrr.Location != nil { + objectMap["location"] = cjrr.Location + } + if cjrr.Tags != nil { + objectMap["tags"] = cjrr.Tags + } + if cjrr.ETag != nil { + objectMap["eTag"] = cjrr.ETag + } + return json.Marshal(objectMap) +} + +// DailyRetentionFormat daily retention format. +type DailyRetentionFormat struct { + // DaysOfTheMonth - List of days of the month. + DaysOfTheMonth *[]Day `json:"daysOfTheMonth,omitempty"` +} + +// DailyRetentionSchedule daily retention schedule. +type DailyRetentionSchedule struct { + // RetentionTimes - Retention times of retention policy. + RetentionTimes *[]date.Time `json:"retentionTimes,omitempty"` + // RetentionDuration - Retention duration of retention Policy. + RetentionDuration *RetentionDuration `json:"retentionDuration,omitempty"` +} + +// Day day of the week. +type Day struct { + // Date - Date of the month + Date *int32 `json:"date,omitempty"` + // IsLast - Whether Date is last date of month + IsLast *bool `json:"isLast,omitempty"` +} + +// DiskExclusionProperties ... +type DiskExclusionProperties struct { + // DiskLunList - List of Disks' Logical Unit Numbers (LUN) to be used for VM Protection. + DiskLunList *[]int32 `json:"diskLunList,omitempty"` + // IsInclusionList - Flag to indicate whether DiskLunList is to be included/ excluded from backup. + IsInclusionList *bool `json:"isInclusionList,omitempty"` +} + +// DiskInformation disk information +type DiskInformation struct { + Lun *int32 `json:"lun,omitempty"` + Name *string `json:"name,omitempty"` +} + +// DistributedNodesInfo this is used to represent the various nodes of the distributed container. +type DistributedNodesInfo struct { + // NodeName - Name of the node under a distributed container. + NodeName *string `json:"nodeName,omitempty"` + // Status - Status of this Node. + // Failed | Succeeded + Status *string `json:"status,omitempty"` + // ErrorDetail - Error Details if the Status is non-success. + ErrorDetail *ErrorDetail `json:"errorDetail,omitempty"` +} + +// DpmBackupEngine data Protection Manager (DPM) specific backup engine. +type DpmBackupEngine struct { + // FriendlyName - Friendly name of the backup engine. + FriendlyName *string `json:"friendlyName,omitempty"` + // BackupManagementType - Type of backup management for the backup engine. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // RegistrationStatus - Registration status of the backup engine with the Recovery Services Vault. + RegistrationStatus *string `json:"registrationStatus,omitempty"` + // BackupEngineState - Status of the backup engine with the Recovery Services Vault. = {Active/Deleting/DeleteFailed} + BackupEngineState *string `json:"backupEngineState,omitempty"` + // HealthStatus - Backup status of the backup engine. + HealthStatus *string `json:"healthStatus,omitempty"` + // CanReRegister - Flag indicating if the backup engine be registered, once already registered. + CanReRegister *bool `json:"canReRegister,omitempty"` + // BackupEngineID - ID of the backup engine. + BackupEngineID *string `json:"backupEngineId,omitempty"` + // DpmVersion - Backup engine version + DpmVersion *string `json:"dpmVersion,omitempty"` + // AzureBackupAgentVersion - Backup agent version + AzureBackupAgentVersion *string `json:"azureBackupAgentVersion,omitempty"` + // IsAzureBackupAgentUpgradeAvailable - To check if backup agent upgrade available + IsAzureBackupAgentUpgradeAvailable *bool `json:"isAzureBackupAgentUpgradeAvailable,omitempty"` + // IsDpmUpgradeAvailable - To check if backup engine upgrade available + IsDpmUpgradeAvailable *bool `json:"isDpmUpgradeAvailable,omitempty"` + // ExtendedInfo - Extended info of the backupengine + ExtendedInfo *EngineExtendedInfo `json:"extendedInfo,omitempty"` + // BackupEngineType - Possible values include: 'EngineTypeBackupEngineTypeBackupEngineBase', 'EngineTypeBackupEngineTypeAzureBackupServerEngine', 'EngineTypeBackupEngineTypeDpmBackupEngine' + BackupEngineType EngineType `json:"backupEngineType,omitempty"` +} + +// MarshalJSON is the custom marshaler for DpmBackupEngine. +func (dbe DpmBackupEngine) MarshalJSON() ([]byte, error) { + dbe.BackupEngineType = EngineTypeBackupEngineTypeDpmBackupEngine + objectMap := make(map[string]interface{}) + if dbe.FriendlyName != nil { + objectMap["friendlyName"] = dbe.FriendlyName + } + if dbe.BackupManagementType != "" { + objectMap["backupManagementType"] = dbe.BackupManagementType + } + if dbe.RegistrationStatus != nil { + objectMap["registrationStatus"] = dbe.RegistrationStatus + } + if dbe.BackupEngineState != nil { + objectMap["backupEngineState"] = dbe.BackupEngineState + } + if dbe.HealthStatus != nil { + objectMap["healthStatus"] = dbe.HealthStatus + } + if dbe.CanReRegister != nil { + objectMap["canReRegister"] = dbe.CanReRegister + } + if dbe.BackupEngineID != nil { + objectMap["backupEngineId"] = dbe.BackupEngineID + } + if dbe.DpmVersion != nil { + objectMap["dpmVersion"] = dbe.DpmVersion + } + if dbe.AzureBackupAgentVersion != nil { + objectMap["azureBackupAgentVersion"] = dbe.AzureBackupAgentVersion + } + if dbe.IsAzureBackupAgentUpgradeAvailable != nil { + objectMap["isAzureBackupAgentUpgradeAvailable"] = dbe.IsAzureBackupAgentUpgradeAvailable + } + if dbe.IsDpmUpgradeAvailable != nil { + objectMap["isDpmUpgradeAvailable"] = dbe.IsDpmUpgradeAvailable + } + if dbe.ExtendedInfo != nil { + objectMap["extendedInfo"] = dbe.ExtendedInfo + } + if dbe.BackupEngineType != "" { + objectMap["backupEngineType"] = dbe.BackupEngineType + } + return json.Marshal(objectMap) +} + +// AsAzureBackupServerEngine is the BasicEngineBase implementation for DpmBackupEngine. +func (dbe DpmBackupEngine) AsAzureBackupServerEngine() (*AzureBackupServerEngine, bool) { + return nil, false +} + +// AsDpmBackupEngine is the BasicEngineBase implementation for DpmBackupEngine. +func (dbe DpmBackupEngine) AsDpmBackupEngine() (*DpmBackupEngine, bool) { + return &dbe, true +} + +// AsEngineBase is the BasicEngineBase implementation for DpmBackupEngine. +func (dbe DpmBackupEngine) AsEngineBase() (*EngineBase, bool) { + return nil, false +} + +// AsBasicEngineBase is the BasicEngineBase implementation for DpmBackupEngine. +func (dbe DpmBackupEngine) AsBasicEngineBase() (BasicEngineBase, bool) { + return &dbe, true +} + +// BasicDpmContainer DPM workload-specific protection container. +type BasicDpmContainer interface { + AsAzureBackupServerContainer() (*AzureBackupServerContainer, bool) + AsDpmContainer() (*DpmContainer, bool) +} + +// DpmContainer DPM workload-specific protection container. +type DpmContainer struct { + // CanReRegister - Specifies whether the container is re-registrable. + CanReRegister *bool `json:"canReRegister,omitempty"` + // ContainerID - ID of container. + ContainerID *string `json:"containerId,omitempty"` + // ProtectedItemCount - Number of protected items in the BackupEngine + ProtectedItemCount *int64 `json:"protectedItemCount,omitempty"` + // DpmAgentVersion - Backup engine Agent version + DpmAgentVersion *string `json:"dpmAgentVersion,omitempty"` + // DpmServers - List of BackupEngines protecting the container + DpmServers *[]string `json:"dpmServers,omitempty"` + // UpgradeAvailable - To check if upgrade available + UpgradeAvailable *bool `json:"upgradeAvailable,omitempty"` + // ProtectionStatus - Protection status of the container. + ProtectionStatus *string `json:"protectionStatus,omitempty"` + // ExtendedInfo - Extended Info of the container. + ExtendedInfo *DPMContainerExtendedInfo `json:"extendedInfo,omitempty"` + // FriendlyName - Friendly name of the container. + FriendlyName *string `json:"friendlyName,omitempty"` + // BackupManagementType - Type of backup management for the container. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // RegistrationStatus - Status of registration of the container with the Recovery Services Vault. + RegistrationStatus *string `json:"registrationStatus,omitempty"` + // HealthStatus - Status of health of the container. + HealthStatus *string `json:"healthStatus,omitempty"` + // ContainerType - Possible values include: 'ContainerTypeBasicProtectionContainerContainerTypeProtectionContainer', 'ContainerTypeBasicProtectionContainerContainerTypeAzureBackupServerContainer', 'ContainerTypeBasicProtectionContainerContainerTypeMicrosoftClassicComputevirtualMachines', 'ContainerTypeBasicProtectionContainerContainerTypeMicrosoftComputevirtualMachines', 'ContainerTypeBasicProtectionContainerContainerTypeSQLAGWorkLoadContainer', 'ContainerTypeBasicProtectionContainerContainerTypeAzureSQLContainer', 'ContainerTypeBasicProtectionContainerContainerTypeStorageContainer', 'ContainerTypeBasicProtectionContainerContainerTypeVMAppContainer', 'ContainerTypeBasicProtectionContainerContainerTypeAzureWorkloadContainer', 'ContainerTypeBasicProtectionContainerContainerTypeDPMContainer', 'ContainerTypeBasicProtectionContainerContainerTypeGenericContainer', 'ContainerTypeBasicProtectionContainerContainerTypeIaaSVMContainer', 'ContainerTypeBasicProtectionContainerContainerTypeWindows' + ContainerType ContainerTypeBasicProtectionContainer `json:"containerType,omitempty"` +} + +func unmarshalBasicDpmContainer(body []byte) (BasicDpmContainer, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["containerType"] { + case string(ContainerTypeBasicProtectionContainerContainerTypeAzureBackupServerContainer): + var absc AzureBackupServerContainer + err := json.Unmarshal(body, &absc) + return absc, err + default: + var dc DpmContainer + err := json.Unmarshal(body, &dc) + return dc, err + } +} +func unmarshalBasicDpmContainerArray(body []byte) ([]BasicDpmContainer, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + dcArray := make([]BasicDpmContainer, len(rawMessages)) + + for index, rawMessage := range rawMessages { + dc, err := unmarshalBasicDpmContainer(*rawMessage) + if err != nil { + return nil, err + } + dcArray[index] = dc + } + return dcArray, nil +} + +// MarshalJSON is the custom marshaler for DpmContainer. +func (dc DpmContainer) MarshalJSON() ([]byte, error) { + dc.ContainerType = ContainerTypeBasicProtectionContainerContainerTypeDPMContainer + objectMap := make(map[string]interface{}) + if dc.CanReRegister != nil { + objectMap["canReRegister"] = dc.CanReRegister + } + if dc.ContainerID != nil { + objectMap["containerId"] = dc.ContainerID + } + if dc.ProtectedItemCount != nil { + objectMap["protectedItemCount"] = dc.ProtectedItemCount + } + if dc.DpmAgentVersion != nil { + objectMap["dpmAgentVersion"] = dc.DpmAgentVersion + } + if dc.DpmServers != nil { + objectMap["dpmServers"] = dc.DpmServers + } + if dc.UpgradeAvailable != nil { + objectMap["upgradeAvailable"] = dc.UpgradeAvailable + } + if dc.ProtectionStatus != nil { + objectMap["protectionStatus"] = dc.ProtectionStatus + } + if dc.ExtendedInfo != nil { + objectMap["extendedInfo"] = dc.ExtendedInfo + } + if dc.FriendlyName != nil { + objectMap["friendlyName"] = dc.FriendlyName + } + if dc.BackupManagementType != "" { + objectMap["backupManagementType"] = dc.BackupManagementType + } + if dc.RegistrationStatus != nil { + objectMap["registrationStatus"] = dc.RegistrationStatus + } + if dc.HealthStatus != nil { + objectMap["healthStatus"] = dc.HealthStatus + } + if dc.ContainerType != "" { + objectMap["containerType"] = dc.ContainerType + } + return json.Marshal(objectMap) +} + +// AsAzureBackupServerContainer is the BasicProtectionContainer implementation for DpmContainer. +func (dc DpmContainer) AsAzureBackupServerContainer() (*AzureBackupServerContainer, bool) { + return nil, false +} + +// AsAzureIaaSClassicComputeVMContainer is the BasicProtectionContainer implementation for DpmContainer. +func (dc DpmContainer) AsAzureIaaSClassicComputeVMContainer() (*AzureIaaSClassicComputeVMContainer, bool) { + return nil, false +} + +// AsAzureIaaSComputeVMContainer is the BasicProtectionContainer implementation for DpmContainer. +func (dc DpmContainer) AsAzureIaaSComputeVMContainer() (*AzureIaaSComputeVMContainer, bool) { + return nil, false +} + +// AsAzureSQLAGWorkloadContainerProtectionContainer is the BasicProtectionContainer implementation for DpmContainer. +func (dc DpmContainer) AsAzureSQLAGWorkloadContainerProtectionContainer() (*AzureSQLAGWorkloadContainerProtectionContainer, bool) { + return nil, false +} + +// AsAzureSQLContainer is the BasicProtectionContainer implementation for DpmContainer. +func (dc DpmContainer) AsAzureSQLContainer() (*AzureSQLContainer, bool) { + return nil, false +} + +// AsAzureStorageContainer is the BasicProtectionContainer implementation for DpmContainer. +func (dc DpmContainer) AsAzureStorageContainer() (*AzureStorageContainer, bool) { + return nil, false +} + +// AsAzureVMAppContainerProtectionContainer is the BasicProtectionContainer implementation for DpmContainer. +func (dc DpmContainer) AsAzureVMAppContainerProtectionContainer() (*AzureVMAppContainerProtectionContainer, bool) { + return nil, false +} + +// AsAzureWorkloadContainer is the BasicProtectionContainer implementation for DpmContainer. +func (dc DpmContainer) AsAzureWorkloadContainer() (*AzureWorkloadContainer, bool) { + return nil, false +} + +// AsBasicAzureWorkloadContainer is the BasicProtectionContainer implementation for DpmContainer. +func (dc DpmContainer) AsBasicAzureWorkloadContainer() (BasicAzureWorkloadContainer, bool) { + return nil, false +} + +// AsDpmContainer is the BasicProtectionContainer implementation for DpmContainer. +func (dc DpmContainer) AsDpmContainer() (*DpmContainer, bool) { + return &dc, true +} + +// AsBasicDpmContainer is the BasicProtectionContainer implementation for DpmContainer. +func (dc DpmContainer) AsBasicDpmContainer() (BasicDpmContainer, bool) { + return &dc, true +} + +// AsGenericContainer is the BasicProtectionContainer implementation for DpmContainer. +func (dc DpmContainer) AsGenericContainer() (*GenericContainer, bool) { + return nil, false +} + +// AsIaaSVMContainer is the BasicProtectionContainer implementation for DpmContainer. +func (dc DpmContainer) AsIaaSVMContainer() (*IaaSVMContainer, bool) { + return nil, false +} + +// AsBasicIaaSVMContainer is the BasicProtectionContainer implementation for DpmContainer. +func (dc DpmContainer) AsBasicIaaSVMContainer() (BasicIaaSVMContainer, bool) { + return nil, false +} + +// AsMabContainer is the BasicProtectionContainer implementation for DpmContainer. +func (dc DpmContainer) AsMabContainer() (*MabContainer, bool) { + return nil, false +} + +// AsProtectionContainer is the BasicProtectionContainer implementation for DpmContainer. +func (dc DpmContainer) AsProtectionContainer() (*ProtectionContainer, bool) { + return nil, false +} + +// AsBasicProtectionContainer is the BasicProtectionContainer implementation for DpmContainer. +func (dc DpmContainer) AsBasicProtectionContainer() (BasicProtectionContainer, bool) { + return &dc, true +} + +// DPMContainerExtendedInfo additional information of the DPMContainer. +type DPMContainerExtendedInfo struct { + // LastRefreshedAt - Last refresh time of the DPMContainer. + LastRefreshedAt *date.Time `json:"lastRefreshedAt,omitempty"` +} + +// DpmErrorInfo DPM workload-specific error information. +type DpmErrorInfo struct { + // ErrorString - Localized error string. + ErrorString *string `json:"errorString,omitempty"` + // Recommendations - List of localized recommendations for above error code. + Recommendations *[]string `json:"recommendations,omitempty"` +} + +// DpmJob DPM workload-specific job object. +type DpmJob struct { + // Duration - Time elapsed for job. + Duration *string `json:"duration,omitempty"` + // DpmServerName - DPM server name managing the backup item or backup job. + DpmServerName *string `json:"dpmServerName,omitempty"` + // ContainerName - Name of cluster/server protecting current backup item, if any. + ContainerName *string `json:"containerName,omitempty"` + // ContainerType - Type of container. + ContainerType *string `json:"containerType,omitempty"` + // WorkloadType - Type of backup item. + WorkloadType *string `json:"workloadType,omitempty"` + // ActionsInfo - The state/actions applicable on this job like cancel/retry. + ActionsInfo *[]JobSupportedAction `json:"actionsInfo,omitempty"` + // ErrorDetails - The errors. + ErrorDetails *[]DpmErrorInfo `json:"errorDetails,omitempty"` + // ExtendedInfo - Additional information for this job. + ExtendedInfo *DpmJobExtendedInfo `json:"extendedInfo,omitempty"` + // EntityFriendlyName - Friendly name of the entity on which the current job is executing. + EntityFriendlyName *string `json:"entityFriendlyName,omitempty"` + // BackupManagementType - Backup management type to execute the current job. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // Operation - The operation name. + Operation *string `json:"operation,omitempty"` + // Status - Job status. + Status *string `json:"status,omitempty"` + // StartTime - The start time. + StartTime *date.Time `json:"startTime,omitempty"` + // EndTime - The end time. + EndTime *date.Time `json:"endTime,omitempty"` + // ActivityID - ActivityId of job. + ActivityID *string `json:"activityId,omitempty"` + // JobType - Possible values include: 'JobTypeJob', 'JobTypeAzureIaaSVMJob', 'JobTypeAzureStorageJob', 'JobTypeAzureWorkloadJob', 'JobTypeDpmJob', 'JobTypeMabJob', 'JobTypeVaultJob' + JobType JobType `json:"jobType,omitempty"` +} + +// MarshalJSON is the custom marshaler for DpmJob. +func (dj DpmJob) MarshalJSON() ([]byte, error) { + dj.JobType = JobTypeDpmJob + objectMap := make(map[string]interface{}) + if dj.Duration != nil { + objectMap["duration"] = dj.Duration + } + if dj.DpmServerName != nil { + objectMap["dpmServerName"] = dj.DpmServerName + } + if dj.ContainerName != nil { + objectMap["containerName"] = dj.ContainerName + } + if dj.ContainerType != nil { + objectMap["containerType"] = dj.ContainerType + } + if dj.WorkloadType != nil { + objectMap["workloadType"] = dj.WorkloadType + } + if dj.ActionsInfo != nil { + objectMap["actionsInfo"] = dj.ActionsInfo + } + if dj.ErrorDetails != nil { + objectMap["errorDetails"] = dj.ErrorDetails + } + if dj.ExtendedInfo != nil { + objectMap["extendedInfo"] = dj.ExtendedInfo + } + if dj.EntityFriendlyName != nil { + objectMap["entityFriendlyName"] = dj.EntityFriendlyName + } + if dj.BackupManagementType != "" { + objectMap["backupManagementType"] = dj.BackupManagementType + } + if dj.Operation != nil { + objectMap["operation"] = dj.Operation + } + if dj.Status != nil { + objectMap["status"] = dj.Status + } + if dj.StartTime != nil { + objectMap["startTime"] = dj.StartTime + } + if dj.EndTime != nil { + objectMap["endTime"] = dj.EndTime + } + if dj.ActivityID != nil { + objectMap["activityId"] = dj.ActivityID + } + if dj.JobType != "" { + objectMap["jobType"] = dj.JobType + } + return json.Marshal(objectMap) +} + +// AsAzureIaaSVMJob is the BasicJob implementation for DpmJob. +func (dj DpmJob) AsAzureIaaSVMJob() (*AzureIaaSVMJob, bool) { + return nil, false +} + +// AsAzureStorageJob is the BasicJob implementation for DpmJob. +func (dj DpmJob) AsAzureStorageJob() (*AzureStorageJob, bool) { + return nil, false +} + +// AsAzureWorkloadJob is the BasicJob implementation for DpmJob. +func (dj DpmJob) AsAzureWorkloadJob() (*AzureWorkloadJob, bool) { + return nil, false +} + +// AsDpmJob is the BasicJob implementation for DpmJob. +func (dj DpmJob) AsDpmJob() (*DpmJob, bool) { + return &dj, true +} + +// AsMabJob is the BasicJob implementation for DpmJob. +func (dj DpmJob) AsMabJob() (*MabJob, bool) { + return nil, false +} + +// AsVaultJob is the BasicJob implementation for DpmJob. +func (dj DpmJob) AsVaultJob() (*VaultJob, bool) { + return nil, false +} + +// AsJob is the BasicJob implementation for DpmJob. +func (dj DpmJob) AsJob() (*Job, bool) { + return nil, false +} + +// AsBasicJob is the BasicJob implementation for DpmJob. +func (dj DpmJob) AsBasicJob() (BasicJob, bool) { + return &dj, true +} + +// DpmJobExtendedInfo additional information on the DPM workload-specific job. +type DpmJobExtendedInfo struct { + // TasksList - List of tasks associated with this job. + TasksList *[]DpmJobTaskDetails `json:"tasksList,omitempty"` + // PropertyBag - The job properties. + PropertyBag map[string]*string `json:"propertyBag"` + // DynamicErrorMessage - Non localized error message on job execution. + DynamicErrorMessage *string `json:"dynamicErrorMessage,omitempty"` +} + +// MarshalJSON is the custom marshaler for DpmJobExtendedInfo. +func (djei DpmJobExtendedInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if djei.TasksList != nil { + objectMap["tasksList"] = djei.TasksList + } + if djei.PropertyBag != nil { + objectMap["propertyBag"] = djei.PropertyBag + } + if djei.DynamicErrorMessage != nil { + objectMap["dynamicErrorMessage"] = djei.DynamicErrorMessage + } + return json.Marshal(objectMap) +} + +// DpmJobTaskDetails DPM workload-specific job task details. +type DpmJobTaskDetails struct { + // TaskID - The task display name. + TaskID *string `json:"taskId,omitempty"` + // StartTime - The start time. + StartTime *date.Time `json:"startTime,omitempty"` + // EndTime - The end time. + EndTime *date.Time `json:"endTime,omitempty"` + // Duration - Time elapsed for task. + Duration *string `json:"duration,omitempty"` + // Status - The status. + Status *string `json:"status,omitempty"` +} + +// DPMProtectedItem additional information on Backup engine specific backup item. +type DPMProtectedItem struct { + // FriendlyName - Friendly name of the managed item + FriendlyName *string `json:"friendlyName,omitempty"` + // BackupEngineName - Backup Management server protecting this backup item + BackupEngineName *string `json:"backupEngineName,omitempty"` + // ProtectionState - Protection state of the backup engine. Possible values include: 'ProtectedItemStateInvalid', 'ProtectedItemStateIRPending', 'ProtectedItemStateProtected', 'ProtectedItemStateProtectionError', 'ProtectedItemStateProtectionStopped', 'ProtectedItemStateProtectionPaused' + ProtectionState ProtectedItemState `json:"protectionState,omitempty"` + // ExtendedInfo - Extended info of the backup item. + ExtendedInfo *DPMProtectedItemExtendedInfo `json:"extendedInfo,omitempty"` + // BackupManagementType - Type of backup management for the backed up item. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // WorkloadType - Type of workload this item represents. Possible values include: 'DataSourceTypeInvalid', 'DataSourceTypeVM', 'DataSourceTypeFileFolder', 'DataSourceTypeAzureSQLDb', 'DataSourceTypeSQLDB', 'DataSourceTypeExchange', 'DataSourceTypeSharepoint', 'DataSourceTypeVMwareVM', 'DataSourceTypeSystemState', 'DataSourceTypeClient', 'DataSourceTypeGenericDataSource', 'DataSourceTypeSQLDataBase', 'DataSourceTypeAzureFileShare', 'DataSourceTypeSAPHanaDatabase', 'DataSourceTypeSAPAseDatabase' + WorkloadType DataSourceType `json:"workloadType,omitempty"` + // ContainerName - Unique name of container + ContainerName *string `json:"containerName,omitempty"` + // SourceResourceID - ARM ID of the resource to be backed up. + SourceResourceID *string `json:"sourceResourceId,omitempty"` + // PolicyID - ID of the backup policy with which this item is backed up. + PolicyID *string `json:"policyId,omitempty"` + // LastRecoveryPoint - Timestamp when the last (latest) backup copy was created for this backup item. + LastRecoveryPoint *date.Time `json:"lastRecoveryPoint,omitempty"` + // BackupSetName - Name of the backup set the backup item belongs to + BackupSetName *string `json:"backupSetName,omitempty"` + // CreateMode - Create mode to indicate recovery of existing soft deleted data source or creation of new data source. Possible values include: 'CreateModeInvalid', 'CreateModeDefault', 'CreateModeRecover' + CreateMode CreateMode `json:"createMode,omitempty"` + // DeferredDeleteTimeInUTC - Time for deferred deletion in UTC + DeferredDeleteTimeInUTC *date.Time `json:"deferredDeleteTimeInUTC,omitempty"` + // IsScheduledForDeferredDelete - Flag to identify whether the DS is scheduled for deferred delete + IsScheduledForDeferredDelete *bool `json:"isScheduledForDeferredDelete,omitempty"` + // DeferredDeleteTimeRemaining - Time remaining before the DS marked for deferred delete is permanently deleted + DeferredDeleteTimeRemaining *string `json:"deferredDeleteTimeRemaining,omitempty"` + // IsDeferredDeleteScheduleUpcoming - Flag to identify whether the deferred deleted DS is to be purged soon + IsDeferredDeleteScheduleUpcoming *bool `json:"isDeferredDeleteScheduleUpcoming,omitempty"` + // IsRehydrate - Flag to identify that deferred deleted DS is to be moved into Pause state + IsRehydrate *bool `json:"isRehydrate,omitempty"` + // ProtectedItemType - Possible values include: 'ProtectedItemTypeProtectedItem', 'ProtectedItemTypeAzureFileShareProtectedItem', 'ProtectedItemTypeMicrosoftClassicComputevirtualMachines', 'ProtectedItemTypeMicrosoftComputevirtualMachines', 'ProtectedItemTypeAzureIaaSVMProtectedItem', 'ProtectedItemTypeMicrosoftSqlserversdatabases', 'ProtectedItemTypeAzureVMWorkloadProtectedItem', 'ProtectedItemTypeAzureVMWorkloadSAPAseDatabase', 'ProtectedItemTypeAzureVMWorkloadSAPHanaDatabase', 'ProtectedItemTypeAzureVMWorkloadSQLDatabase', 'ProtectedItemTypeDPMProtectedItem', 'ProtectedItemTypeGenericProtectedItem', 'ProtectedItemTypeMabFileFolderProtectedItem' + ProtectedItemType ProtectedItemType `json:"protectedItemType,omitempty"` +} + +// MarshalJSON is the custom marshaler for DPMProtectedItem. +func (dpi DPMProtectedItem) MarshalJSON() ([]byte, error) { + dpi.ProtectedItemType = ProtectedItemTypeDPMProtectedItem + objectMap := make(map[string]interface{}) + if dpi.FriendlyName != nil { + objectMap["friendlyName"] = dpi.FriendlyName + } + if dpi.BackupEngineName != nil { + objectMap["backupEngineName"] = dpi.BackupEngineName + } + if dpi.ProtectionState != "" { + objectMap["protectionState"] = dpi.ProtectionState + } + if dpi.ExtendedInfo != nil { + objectMap["extendedInfo"] = dpi.ExtendedInfo + } + if dpi.BackupManagementType != "" { + objectMap["backupManagementType"] = dpi.BackupManagementType + } + if dpi.WorkloadType != "" { + objectMap["workloadType"] = dpi.WorkloadType + } + if dpi.ContainerName != nil { + objectMap["containerName"] = dpi.ContainerName + } + if dpi.SourceResourceID != nil { + objectMap["sourceResourceId"] = dpi.SourceResourceID + } + if dpi.PolicyID != nil { + objectMap["policyId"] = dpi.PolicyID + } + if dpi.LastRecoveryPoint != nil { + objectMap["lastRecoveryPoint"] = dpi.LastRecoveryPoint + } + if dpi.BackupSetName != nil { + objectMap["backupSetName"] = dpi.BackupSetName + } + if dpi.CreateMode != "" { + objectMap["createMode"] = dpi.CreateMode + } + if dpi.DeferredDeleteTimeInUTC != nil { + objectMap["deferredDeleteTimeInUTC"] = dpi.DeferredDeleteTimeInUTC + } + if dpi.IsScheduledForDeferredDelete != nil { + objectMap["isScheduledForDeferredDelete"] = dpi.IsScheduledForDeferredDelete + } + if dpi.DeferredDeleteTimeRemaining != nil { + objectMap["deferredDeleteTimeRemaining"] = dpi.DeferredDeleteTimeRemaining + } + if dpi.IsDeferredDeleteScheduleUpcoming != nil { + objectMap["isDeferredDeleteScheduleUpcoming"] = dpi.IsDeferredDeleteScheduleUpcoming + } + if dpi.IsRehydrate != nil { + objectMap["isRehydrate"] = dpi.IsRehydrate + } + if dpi.ProtectedItemType != "" { + objectMap["protectedItemType"] = dpi.ProtectedItemType + } + return json.Marshal(objectMap) +} + +// AsAzureFileshareProtectedItem is the BasicProtectedItem implementation for DPMProtectedItem. +func (dpi DPMProtectedItem) AsAzureFileshareProtectedItem() (*AzureFileshareProtectedItem, bool) { + return nil, false +} + +// AsAzureIaaSClassicComputeVMProtectedItem is the BasicProtectedItem implementation for DPMProtectedItem. +func (dpi DPMProtectedItem) AsAzureIaaSClassicComputeVMProtectedItem() (*AzureIaaSClassicComputeVMProtectedItem, bool) { + return nil, false +} + +// AsAzureIaaSComputeVMProtectedItem is the BasicProtectedItem implementation for DPMProtectedItem. +func (dpi DPMProtectedItem) AsAzureIaaSComputeVMProtectedItem() (*AzureIaaSComputeVMProtectedItem, bool) { + return nil, false +} + +// AsAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for DPMProtectedItem. +func (dpi DPMProtectedItem) AsAzureIaaSVMProtectedItem() (*AzureIaaSVMProtectedItem, bool) { + return nil, false +} + +// AsBasicAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for DPMProtectedItem. +func (dpi DPMProtectedItem) AsBasicAzureIaaSVMProtectedItem() (BasicAzureIaaSVMProtectedItem, bool) { + return nil, false +} + +// AsAzureSQLProtectedItem is the BasicProtectedItem implementation for DPMProtectedItem. +func (dpi DPMProtectedItem) AsAzureSQLProtectedItem() (*AzureSQLProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadProtectedItem is the BasicProtectedItem implementation for DPMProtectedItem. +func (dpi DPMProtectedItem) AsAzureVMWorkloadProtectedItem() (*AzureVMWorkloadProtectedItem, bool) { + return nil, false +} + +// AsBasicAzureVMWorkloadProtectedItem is the BasicProtectedItem implementation for DPMProtectedItem. +func (dpi DPMProtectedItem) AsBasicAzureVMWorkloadProtectedItem() (BasicAzureVMWorkloadProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPAseDatabaseProtectedItem is the BasicProtectedItem implementation for DPMProtectedItem. +func (dpi DPMProtectedItem) AsAzureVMWorkloadSAPAseDatabaseProtectedItem() (*AzureVMWorkloadSAPAseDatabaseProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaDatabaseProtectedItem is the BasicProtectedItem implementation for DPMProtectedItem. +func (dpi DPMProtectedItem) AsAzureVMWorkloadSAPHanaDatabaseProtectedItem() (*AzureVMWorkloadSAPHanaDatabaseProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLDatabaseProtectedItem is the BasicProtectedItem implementation for DPMProtectedItem. +func (dpi DPMProtectedItem) AsAzureVMWorkloadSQLDatabaseProtectedItem() (*AzureVMWorkloadSQLDatabaseProtectedItem, bool) { + return nil, false +} + +// AsDPMProtectedItem is the BasicProtectedItem implementation for DPMProtectedItem. +func (dpi DPMProtectedItem) AsDPMProtectedItem() (*DPMProtectedItem, bool) { + return &dpi, true +} + +// AsGenericProtectedItem is the BasicProtectedItem implementation for DPMProtectedItem. +func (dpi DPMProtectedItem) AsGenericProtectedItem() (*GenericProtectedItem, bool) { + return nil, false +} + +// AsMabFileFolderProtectedItem is the BasicProtectedItem implementation for DPMProtectedItem. +func (dpi DPMProtectedItem) AsMabFileFolderProtectedItem() (*MabFileFolderProtectedItem, bool) { + return nil, false +} + +// AsProtectedItem is the BasicProtectedItem implementation for DPMProtectedItem. +func (dpi DPMProtectedItem) AsProtectedItem() (*ProtectedItem, bool) { + return nil, false +} + +// AsBasicProtectedItem is the BasicProtectedItem implementation for DPMProtectedItem. +func (dpi DPMProtectedItem) AsBasicProtectedItem() (BasicProtectedItem, bool) { + return &dpi, true +} + +// DPMProtectedItemExtendedInfo additional information of DPM Protected item. +type DPMProtectedItemExtendedInfo struct { + // ProtectableObjectLoadPath - Attribute to provide information on various DBs. + ProtectableObjectLoadPath map[string]*string `json:"protectableObjectLoadPath"` + // Protected - To check if backup item is disk protected. + Protected *bool `json:"protected,omitempty"` + // IsPresentOnCloud - To check if backup item is cloud protected. + IsPresentOnCloud *bool `json:"isPresentOnCloud,omitempty"` + // LastBackupStatus - Last backup status information on backup item. + LastBackupStatus *string `json:"lastBackupStatus,omitempty"` + // LastRefreshedAt - Last refresh time on backup item. + LastRefreshedAt *date.Time `json:"lastRefreshedAt,omitempty"` + // OldestRecoveryPoint - Oldest cloud recovery point time. + OldestRecoveryPoint *date.Time `json:"oldestRecoveryPoint,omitempty"` + // RecoveryPointCount - cloud recovery point count. + RecoveryPointCount *int32 `json:"recoveryPointCount,omitempty"` + // OnPremiseOldestRecoveryPoint - Oldest disk recovery point time. + OnPremiseOldestRecoveryPoint *date.Time `json:"onPremiseOldestRecoveryPoint,omitempty"` + // OnPremiseLatestRecoveryPoint - latest disk recovery point time. + OnPremiseLatestRecoveryPoint *date.Time `json:"onPremiseLatestRecoveryPoint,omitempty"` + // OnPremiseRecoveryPointCount - disk recovery point count. + OnPremiseRecoveryPointCount *int32 `json:"onPremiseRecoveryPointCount,omitempty"` + // IsCollocated - To check if backup item is collocated. + IsCollocated *bool `json:"isCollocated,omitempty"` + // ProtectionGroupName - Protection group name of the backup item. + ProtectionGroupName *string `json:"protectionGroupName,omitempty"` + // DiskStorageUsedInBytes - Used Disk storage in bytes. + DiskStorageUsedInBytes *string `json:"diskStorageUsedInBytes,omitempty"` + // TotalDiskStorageSizeInBytes - total Disk storage in bytes. + TotalDiskStorageSizeInBytes *string `json:"totalDiskStorageSizeInBytes,omitempty"` +} + +// MarshalJSON is the custom marshaler for DPMProtectedItemExtendedInfo. +func (dpiei DPMProtectedItemExtendedInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dpiei.ProtectableObjectLoadPath != nil { + objectMap["protectableObjectLoadPath"] = dpiei.ProtectableObjectLoadPath + } + if dpiei.Protected != nil { + objectMap["protected"] = dpiei.Protected + } + if dpiei.IsPresentOnCloud != nil { + objectMap["isPresentOnCloud"] = dpiei.IsPresentOnCloud + } + if dpiei.LastBackupStatus != nil { + objectMap["lastBackupStatus"] = dpiei.LastBackupStatus + } + if dpiei.LastRefreshedAt != nil { + objectMap["lastRefreshedAt"] = dpiei.LastRefreshedAt + } + if dpiei.OldestRecoveryPoint != nil { + objectMap["oldestRecoveryPoint"] = dpiei.OldestRecoveryPoint + } + if dpiei.RecoveryPointCount != nil { + objectMap["recoveryPointCount"] = dpiei.RecoveryPointCount + } + if dpiei.OnPremiseOldestRecoveryPoint != nil { + objectMap["onPremiseOldestRecoveryPoint"] = dpiei.OnPremiseOldestRecoveryPoint + } + if dpiei.OnPremiseLatestRecoveryPoint != nil { + objectMap["onPremiseLatestRecoveryPoint"] = dpiei.OnPremiseLatestRecoveryPoint + } + if dpiei.OnPremiseRecoveryPointCount != nil { + objectMap["onPremiseRecoveryPointCount"] = dpiei.OnPremiseRecoveryPointCount + } + if dpiei.IsCollocated != nil { + objectMap["isCollocated"] = dpiei.IsCollocated + } + if dpiei.ProtectionGroupName != nil { + objectMap["protectionGroupName"] = dpiei.ProtectionGroupName + } + if dpiei.DiskStorageUsedInBytes != nil { + objectMap["diskStorageUsedInBytes"] = dpiei.DiskStorageUsedInBytes + } + if dpiei.TotalDiskStorageSizeInBytes != nil { + objectMap["totalDiskStorageSizeInBytes"] = dpiei.TotalDiskStorageSizeInBytes + } + return json.Marshal(objectMap) +} + +// EncryptionDetails details needed if the VM was encrypted at the time of backup. +type EncryptionDetails struct { + // EncryptionEnabled - Identifies whether this backup copy represents an encrypted VM at the time of backup. + EncryptionEnabled *bool `json:"encryptionEnabled,omitempty"` + // KekURL - Key Url. + KekURL *string `json:"kekUrl,omitempty"` + // SecretKeyURL - Secret Url. + SecretKeyURL *string `json:"secretKeyUrl,omitempty"` + // KekVaultID - ID of Key Vault where KEK is stored. + KekVaultID *string `json:"kekVaultId,omitempty"` + // SecretKeyVaultID - ID of Key Vault where Secret is stored. + SecretKeyVaultID *string `json:"secretKeyVaultId,omitempty"` +} + +// BasicEngineBase the base backup engine class. All workload specific backup engines derive from this class. +type BasicEngineBase interface { + AsAzureBackupServerEngine() (*AzureBackupServerEngine, bool) + AsDpmBackupEngine() (*DpmBackupEngine, bool) + AsEngineBase() (*EngineBase, bool) +} + +// EngineBase the base backup engine class. All workload specific backup engines derive from this class. +type EngineBase struct { + // FriendlyName - Friendly name of the backup engine. + FriendlyName *string `json:"friendlyName,omitempty"` + // BackupManagementType - Type of backup management for the backup engine. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // RegistrationStatus - Registration status of the backup engine with the Recovery Services Vault. + RegistrationStatus *string `json:"registrationStatus,omitempty"` + // BackupEngineState - Status of the backup engine with the Recovery Services Vault. = {Active/Deleting/DeleteFailed} + BackupEngineState *string `json:"backupEngineState,omitempty"` + // HealthStatus - Backup status of the backup engine. + HealthStatus *string `json:"healthStatus,omitempty"` + // CanReRegister - Flag indicating if the backup engine be registered, once already registered. + CanReRegister *bool `json:"canReRegister,omitempty"` + // BackupEngineID - ID of the backup engine. + BackupEngineID *string `json:"backupEngineId,omitempty"` + // DpmVersion - Backup engine version + DpmVersion *string `json:"dpmVersion,omitempty"` + // AzureBackupAgentVersion - Backup agent version + AzureBackupAgentVersion *string `json:"azureBackupAgentVersion,omitempty"` + // IsAzureBackupAgentUpgradeAvailable - To check if backup agent upgrade available + IsAzureBackupAgentUpgradeAvailable *bool `json:"isAzureBackupAgentUpgradeAvailable,omitempty"` + // IsDpmUpgradeAvailable - To check if backup engine upgrade available + IsDpmUpgradeAvailable *bool `json:"isDpmUpgradeAvailable,omitempty"` + // ExtendedInfo - Extended info of the backupengine + ExtendedInfo *EngineExtendedInfo `json:"extendedInfo,omitempty"` + // BackupEngineType - Possible values include: 'EngineTypeBackupEngineTypeBackupEngineBase', 'EngineTypeBackupEngineTypeAzureBackupServerEngine', 'EngineTypeBackupEngineTypeDpmBackupEngine' + BackupEngineType EngineType `json:"backupEngineType,omitempty"` +} + +func unmarshalBasicEngineBase(body []byte) (BasicEngineBase, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["backupEngineType"] { + case string(EngineTypeBackupEngineTypeAzureBackupServerEngine): + var abse AzureBackupServerEngine + err := json.Unmarshal(body, &abse) + return abse, err + case string(EngineTypeBackupEngineTypeDpmBackupEngine): + var dbe DpmBackupEngine + err := json.Unmarshal(body, &dbe) + return dbe, err + default: + var eb EngineBase + err := json.Unmarshal(body, &eb) + return eb, err + } +} +func unmarshalBasicEngineBaseArray(body []byte) ([]BasicEngineBase, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + ebArray := make([]BasicEngineBase, len(rawMessages)) + + for index, rawMessage := range rawMessages { + eb, err := unmarshalBasicEngineBase(*rawMessage) + if err != nil { + return nil, err + } + ebArray[index] = eb + } + return ebArray, nil +} + +// MarshalJSON is the custom marshaler for EngineBase. +func (eb EngineBase) MarshalJSON() ([]byte, error) { + eb.BackupEngineType = EngineTypeBackupEngineTypeBackupEngineBase + objectMap := make(map[string]interface{}) + if eb.FriendlyName != nil { + objectMap["friendlyName"] = eb.FriendlyName + } + if eb.BackupManagementType != "" { + objectMap["backupManagementType"] = eb.BackupManagementType + } + if eb.RegistrationStatus != nil { + objectMap["registrationStatus"] = eb.RegistrationStatus + } + if eb.BackupEngineState != nil { + objectMap["backupEngineState"] = eb.BackupEngineState + } + if eb.HealthStatus != nil { + objectMap["healthStatus"] = eb.HealthStatus + } + if eb.CanReRegister != nil { + objectMap["canReRegister"] = eb.CanReRegister + } + if eb.BackupEngineID != nil { + objectMap["backupEngineId"] = eb.BackupEngineID + } + if eb.DpmVersion != nil { + objectMap["dpmVersion"] = eb.DpmVersion + } + if eb.AzureBackupAgentVersion != nil { + objectMap["azureBackupAgentVersion"] = eb.AzureBackupAgentVersion + } + if eb.IsAzureBackupAgentUpgradeAvailable != nil { + objectMap["isAzureBackupAgentUpgradeAvailable"] = eb.IsAzureBackupAgentUpgradeAvailable + } + if eb.IsDpmUpgradeAvailable != nil { + objectMap["isDpmUpgradeAvailable"] = eb.IsDpmUpgradeAvailable + } + if eb.ExtendedInfo != nil { + objectMap["extendedInfo"] = eb.ExtendedInfo + } + if eb.BackupEngineType != "" { + objectMap["backupEngineType"] = eb.BackupEngineType + } + return json.Marshal(objectMap) +} + +// AsAzureBackupServerEngine is the BasicEngineBase implementation for EngineBase. +func (eb EngineBase) AsAzureBackupServerEngine() (*AzureBackupServerEngine, bool) { + return nil, false +} + +// AsDpmBackupEngine is the BasicEngineBase implementation for EngineBase. +func (eb EngineBase) AsDpmBackupEngine() (*DpmBackupEngine, bool) { + return nil, false +} + +// AsEngineBase is the BasicEngineBase implementation for EngineBase. +func (eb EngineBase) AsEngineBase() (*EngineBase, bool) { + return &eb, true +} + +// AsBasicEngineBase is the BasicEngineBase implementation for EngineBase. +func (eb EngineBase) AsBasicEngineBase() (BasicEngineBase, bool) { + return &eb, true +} + +// EngineBaseResource the base backup engine class. All workload specific backup engines derive from this +// class. +type EngineBaseResource struct { + autorest.Response `json:"-"` + // Properties - BackupEngineBaseResource properties + Properties BasicEngineBase `json:"properties,omitempty"` + // ID - READ-ONLY; Resource Id represents the complete path to the resource. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name associated with the resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // ETag - Optional ETag. + ETag *string `json:"eTag,omitempty"` +} + +// MarshalJSON is the custom marshaler for EngineBaseResource. +func (ebr EngineBaseResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + objectMap["properties"] = ebr.Properties + if ebr.Location != nil { + objectMap["location"] = ebr.Location + } + if ebr.Tags != nil { + objectMap["tags"] = ebr.Tags + } + if ebr.ETag != nil { + objectMap["eTag"] = ebr.ETag + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for EngineBaseResource struct. +func (ebr *EngineBaseResource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + properties, err := unmarshalBasicEngineBase(*v) + if err != nil { + return err + } + ebr.Properties = properties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + ebr.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + ebr.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ebr.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + ebr.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + ebr.Tags = tags + } + case "eTag": + if v != nil { + var eTag string + err = json.Unmarshal(*v, &eTag) + if err != nil { + return err + } + ebr.ETag = &eTag + } + } + } + + return nil +} + +// EngineBaseResourceList list of BackupEngineBase resources +type EngineBaseResourceList struct { + autorest.Response `json:"-"` + // Value - List of resources. + Value *[]EngineBaseResource `json:"value,omitempty"` + // NextLink - The uri to fetch the next page of resources. Call ListNext() fetches next page of resources. + NextLink *string `json:"nextLink,omitempty"` +} + +// EngineBaseResourceListIterator provides access to a complete listing of EngineBaseResource values. +type EngineBaseResourceListIterator struct { + i int + page EngineBaseResourceListPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *EngineBaseResourceListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/EngineBaseResourceListIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *EngineBaseResourceListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter EngineBaseResourceListIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter EngineBaseResourceListIterator) Response() EngineBaseResourceList { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter EngineBaseResourceListIterator) Value() EngineBaseResource { + if !iter.page.NotDone() { + return EngineBaseResource{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the EngineBaseResourceListIterator type. +func NewEngineBaseResourceListIterator(page EngineBaseResourceListPage) EngineBaseResourceListIterator { + return EngineBaseResourceListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (ebrl EngineBaseResourceList) IsEmpty() bool { + return ebrl.Value == nil || len(*ebrl.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (ebrl EngineBaseResourceList) hasNextLink() bool { + return ebrl.NextLink != nil && len(*ebrl.NextLink) != 0 +} + +// engineBaseResourceListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (ebrl EngineBaseResourceList) engineBaseResourceListPreparer(ctx context.Context) (*http.Request, error) { + if !ebrl.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(ebrl.NextLink))) +} + +// EngineBaseResourceListPage contains a page of EngineBaseResource values. +type EngineBaseResourceListPage struct { + fn func(context.Context, EngineBaseResourceList) (EngineBaseResourceList, error) + ebrl EngineBaseResourceList +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *EngineBaseResourceListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/EngineBaseResourceListPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.ebrl) + if err != nil { + return err + } + page.ebrl = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *EngineBaseResourceListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page EngineBaseResourceListPage) NotDone() bool { + return !page.ebrl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page EngineBaseResourceListPage) Response() EngineBaseResourceList { + return page.ebrl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page EngineBaseResourceListPage) Values() []EngineBaseResource { + if page.ebrl.IsEmpty() { + return nil + } + return *page.ebrl.Value +} + +// Creates a new instance of the EngineBaseResourceListPage type. +func NewEngineBaseResourceListPage(cur EngineBaseResourceList, getNextPage func(context.Context, EngineBaseResourceList) (EngineBaseResourceList, error)) EngineBaseResourceListPage { + return EngineBaseResourceListPage{ + fn: getNextPage, + ebrl: cur, + } +} + +// EngineExtendedInfo additional information on backup engine. +type EngineExtendedInfo struct { + // DatabaseName - Database name of backup engine. + DatabaseName *string `json:"databaseName,omitempty"` + // ProtectedItemsCount - Number of protected items in the backup engine. + ProtectedItemsCount *int32 `json:"protectedItemsCount,omitempty"` + // ProtectedServersCount - Number of protected servers in the backup engine. + ProtectedServersCount *int32 `json:"protectedServersCount,omitempty"` + // DiskCount - Number of disks in the backup engine. + DiskCount *int32 `json:"diskCount,omitempty"` + // UsedDiskSpace - Disk space used in the backup engine. + UsedDiskSpace *float64 `json:"usedDiskSpace,omitempty"` + // AvailableDiskSpace - Disk space currently available in the backup engine. + AvailableDiskSpace *float64 `json:"availableDiskSpace,omitempty"` + // RefreshedAt - Last refresh time in the backup engine. + RefreshedAt *date.Time `json:"refreshedAt,omitempty"` + // AzureProtectedInstances - Protected instances in the backup engine. + AzureProtectedInstances *int32 `json:"azureProtectedInstances,omitempty"` +} + +// ErrorAdditionalInfo the resource management error additional info. +type ErrorAdditionalInfo struct { + // Type - READ-ONLY; The additional info type. + Type *string `json:"type,omitempty"` + // Info - READ-ONLY; The additional info. + Info interface{} `json:"info,omitempty"` +} + +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// ErrorDetail error Detail class which encapsulates Code, Message and Recommendations. +type ErrorDetail struct { + // Code - READ-ONLY; Error code. + Code *string `json:"code,omitempty"` + // Message - READ-ONLY; Error Message related to the Code. + Message *string `json:"message,omitempty"` + // Recommendations - READ-ONLY; List of recommendation strings. + Recommendations *[]string `json:"recommendations,omitempty"` +} + +// MarshalJSON is the custom marshaler for ErrorDetail. +func (ed ErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// ExportJobsOperationResultInfo this class is used to send blob details after exporting jobs. +type ExportJobsOperationResultInfo struct { + // BlobURL - URL of the blob into which the serialized string of list of jobs is exported. + BlobURL *string `json:"blobUrl,omitempty"` + // BlobSasKey - SAS key to access the blob. It expires in 15 mins. + BlobSasKey *string `json:"blobSasKey,omitempty"` + // ExcelFileBlobURL - URL of the blob into which the ExcelFile is uploaded. + ExcelFileBlobURL *string `json:"excelFileBlobUrl,omitempty"` + // ExcelFileBlobSasKey - SAS key to access the blob. It expires in 15 mins. + ExcelFileBlobSasKey *string `json:"excelFileBlobSasKey,omitempty"` + // ObjectType - Possible values include: 'ObjectTypeOperationResultInfoBase', 'ObjectTypeExportJobsOperationResultInfo', 'ObjectTypeOperationResultInfo' + ObjectType ObjectType `json:"objectType,omitempty"` +} + +// MarshalJSON is the custom marshaler for ExportJobsOperationResultInfo. +func (ejori ExportJobsOperationResultInfo) MarshalJSON() ([]byte, error) { + ejori.ObjectType = ObjectTypeExportJobsOperationResultInfo + objectMap := make(map[string]interface{}) + if ejori.BlobURL != nil { + objectMap["blobUrl"] = ejori.BlobURL + } + if ejori.BlobSasKey != nil { + objectMap["blobSasKey"] = ejori.BlobSasKey + } + if ejori.ExcelFileBlobURL != nil { + objectMap["excelFileBlobUrl"] = ejori.ExcelFileBlobURL + } + if ejori.ExcelFileBlobSasKey != nil { + objectMap["excelFileBlobSasKey"] = ejori.ExcelFileBlobSasKey + } + if ejori.ObjectType != "" { + objectMap["objectType"] = ejori.ObjectType + } + return json.Marshal(objectMap) +} + +// AsExportJobsOperationResultInfo is the BasicOperationResultInfoBase implementation for ExportJobsOperationResultInfo. +func (ejori ExportJobsOperationResultInfo) AsExportJobsOperationResultInfo() (*ExportJobsOperationResultInfo, bool) { + return &ejori, true +} + +// AsOperationResultInfo is the BasicOperationResultInfoBase implementation for ExportJobsOperationResultInfo. +func (ejori ExportJobsOperationResultInfo) AsOperationResultInfo() (*OperationResultInfo, bool) { + return nil, false +} + +// AsOperationResultInfoBase is the BasicOperationResultInfoBase implementation for ExportJobsOperationResultInfo. +func (ejori ExportJobsOperationResultInfo) AsOperationResultInfoBase() (*OperationResultInfoBase, bool) { + return nil, false +} + +// AsBasicOperationResultInfoBase is the BasicOperationResultInfoBase implementation for ExportJobsOperationResultInfo. +func (ejori ExportJobsOperationResultInfo) AsBasicOperationResultInfoBase() (BasicOperationResultInfoBase, bool) { + return &ejori, true +} + +// ExtendedProperties extended Properties for Azure IaasVM Backup. +type ExtendedProperties struct { + // DiskExclusionProperties - Extended Properties for Disk Exclusion. + DiskExclusionProperties *DiskExclusionProperties `json:"diskExclusionProperties,omitempty"` +} + +// BasicFeatureSupportRequest base class for feature request +type BasicFeatureSupportRequest interface { + AsAzureBackupGoalFeatureSupportRequest() (*AzureBackupGoalFeatureSupportRequest, bool) + AsAzureVMResourceFeatureSupportRequest() (*AzureVMResourceFeatureSupportRequest, bool) + AsFeatureSupportRequest() (*FeatureSupportRequest, bool) +} + +// FeatureSupportRequest base class for feature request +type FeatureSupportRequest struct { + // FeatureType - Possible values include: 'FeatureTypeFeatureSupportRequest', 'FeatureTypeAzureBackupGoals', 'FeatureTypeAzureVMResourceBackup' + FeatureType FeatureType `json:"featureType,omitempty"` +} + +func unmarshalBasicFeatureSupportRequest(body []byte) (BasicFeatureSupportRequest, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["featureType"] { + case string(FeatureTypeAzureBackupGoals): + var abgfsr AzureBackupGoalFeatureSupportRequest + err := json.Unmarshal(body, &abgfsr) + return abgfsr, err + case string(FeatureTypeAzureVMResourceBackup): + var avrfsr AzureVMResourceFeatureSupportRequest + err := json.Unmarshal(body, &avrfsr) + return avrfsr, err + default: + var fsr FeatureSupportRequest + err := json.Unmarshal(body, &fsr) + return fsr, err + } +} +func unmarshalBasicFeatureSupportRequestArray(body []byte) ([]BasicFeatureSupportRequest, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + fsrArray := make([]BasicFeatureSupportRequest, len(rawMessages)) + + for index, rawMessage := range rawMessages { + fsr, err := unmarshalBasicFeatureSupportRequest(*rawMessage) + if err != nil { + return nil, err + } + fsrArray[index] = fsr + } + return fsrArray, nil +} + +// MarshalJSON is the custom marshaler for FeatureSupportRequest. +func (fsr FeatureSupportRequest) MarshalJSON() ([]byte, error) { + fsr.FeatureType = FeatureTypeFeatureSupportRequest + objectMap := make(map[string]interface{}) + if fsr.FeatureType != "" { + objectMap["featureType"] = fsr.FeatureType + } + return json.Marshal(objectMap) +} + +// AsAzureBackupGoalFeatureSupportRequest is the BasicFeatureSupportRequest implementation for FeatureSupportRequest. +func (fsr FeatureSupportRequest) AsAzureBackupGoalFeatureSupportRequest() (*AzureBackupGoalFeatureSupportRequest, bool) { + return nil, false +} + +// AsAzureVMResourceFeatureSupportRequest is the BasicFeatureSupportRequest implementation for FeatureSupportRequest. +func (fsr FeatureSupportRequest) AsAzureVMResourceFeatureSupportRequest() (*AzureVMResourceFeatureSupportRequest, bool) { + return nil, false +} + +// AsFeatureSupportRequest is the BasicFeatureSupportRequest implementation for FeatureSupportRequest. +func (fsr FeatureSupportRequest) AsFeatureSupportRequest() (*FeatureSupportRequest, bool) { + return &fsr, true +} + +// AsBasicFeatureSupportRequest is the BasicFeatureSupportRequest implementation for FeatureSupportRequest. +func (fsr FeatureSupportRequest) AsBasicFeatureSupportRequest() (BasicFeatureSupportRequest, bool) { + return &fsr, true +} + +// GenericContainer base class for generic container of backup items +type GenericContainer struct { + // FabricName - Name of the container's fabric + FabricName *string `json:"fabricName,omitempty"` + // ExtendedInformation - Extended information (not returned in List container API calls) + ExtendedInformation *GenericContainerExtendedInfo `json:"extendedInformation,omitempty"` + // FriendlyName - Friendly name of the container. + FriendlyName *string `json:"friendlyName,omitempty"` + // BackupManagementType - Type of backup management for the container. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // RegistrationStatus - Status of registration of the container with the Recovery Services Vault. + RegistrationStatus *string `json:"registrationStatus,omitempty"` + // HealthStatus - Status of health of the container. + HealthStatus *string `json:"healthStatus,omitempty"` + // ContainerType - Possible values include: 'ContainerTypeBasicProtectionContainerContainerTypeProtectionContainer', 'ContainerTypeBasicProtectionContainerContainerTypeAzureBackupServerContainer', 'ContainerTypeBasicProtectionContainerContainerTypeMicrosoftClassicComputevirtualMachines', 'ContainerTypeBasicProtectionContainerContainerTypeMicrosoftComputevirtualMachines', 'ContainerTypeBasicProtectionContainerContainerTypeSQLAGWorkLoadContainer', 'ContainerTypeBasicProtectionContainerContainerTypeAzureSQLContainer', 'ContainerTypeBasicProtectionContainerContainerTypeStorageContainer', 'ContainerTypeBasicProtectionContainerContainerTypeVMAppContainer', 'ContainerTypeBasicProtectionContainerContainerTypeAzureWorkloadContainer', 'ContainerTypeBasicProtectionContainerContainerTypeDPMContainer', 'ContainerTypeBasicProtectionContainerContainerTypeGenericContainer', 'ContainerTypeBasicProtectionContainerContainerTypeIaaSVMContainer', 'ContainerTypeBasicProtectionContainerContainerTypeWindows' + ContainerType ContainerTypeBasicProtectionContainer `json:"containerType,omitempty"` +} + +// MarshalJSON is the custom marshaler for GenericContainer. +func (gc GenericContainer) MarshalJSON() ([]byte, error) { + gc.ContainerType = ContainerTypeBasicProtectionContainerContainerTypeGenericContainer + objectMap := make(map[string]interface{}) + if gc.FabricName != nil { + objectMap["fabricName"] = gc.FabricName + } + if gc.ExtendedInformation != nil { + objectMap["extendedInformation"] = gc.ExtendedInformation + } + if gc.FriendlyName != nil { + objectMap["friendlyName"] = gc.FriendlyName + } + if gc.BackupManagementType != "" { + objectMap["backupManagementType"] = gc.BackupManagementType + } + if gc.RegistrationStatus != nil { + objectMap["registrationStatus"] = gc.RegistrationStatus + } + if gc.HealthStatus != nil { + objectMap["healthStatus"] = gc.HealthStatus + } + if gc.ContainerType != "" { + objectMap["containerType"] = gc.ContainerType + } + return json.Marshal(objectMap) +} + +// AsAzureBackupServerContainer is the BasicProtectionContainer implementation for GenericContainer. +func (gc GenericContainer) AsAzureBackupServerContainer() (*AzureBackupServerContainer, bool) { + return nil, false +} + +// AsAzureIaaSClassicComputeVMContainer is the BasicProtectionContainer implementation for GenericContainer. +func (gc GenericContainer) AsAzureIaaSClassicComputeVMContainer() (*AzureIaaSClassicComputeVMContainer, bool) { + return nil, false +} + +// AsAzureIaaSComputeVMContainer is the BasicProtectionContainer implementation for GenericContainer. +func (gc GenericContainer) AsAzureIaaSComputeVMContainer() (*AzureIaaSComputeVMContainer, bool) { + return nil, false +} + +// AsAzureSQLAGWorkloadContainerProtectionContainer is the BasicProtectionContainer implementation for GenericContainer. +func (gc GenericContainer) AsAzureSQLAGWorkloadContainerProtectionContainer() (*AzureSQLAGWorkloadContainerProtectionContainer, bool) { + return nil, false +} + +// AsAzureSQLContainer is the BasicProtectionContainer implementation for GenericContainer. +func (gc GenericContainer) AsAzureSQLContainer() (*AzureSQLContainer, bool) { + return nil, false +} + +// AsAzureStorageContainer is the BasicProtectionContainer implementation for GenericContainer. +func (gc GenericContainer) AsAzureStorageContainer() (*AzureStorageContainer, bool) { + return nil, false +} + +// AsAzureVMAppContainerProtectionContainer is the BasicProtectionContainer implementation for GenericContainer. +func (gc GenericContainer) AsAzureVMAppContainerProtectionContainer() (*AzureVMAppContainerProtectionContainer, bool) { + return nil, false +} + +// AsAzureWorkloadContainer is the BasicProtectionContainer implementation for GenericContainer. +func (gc GenericContainer) AsAzureWorkloadContainer() (*AzureWorkloadContainer, bool) { + return nil, false +} + +// AsBasicAzureWorkloadContainer is the BasicProtectionContainer implementation for GenericContainer. +func (gc GenericContainer) AsBasicAzureWorkloadContainer() (BasicAzureWorkloadContainer, bool) { + return nil, false +} + +// AsDpmContainer is the BasicProtectionContainer implementation for GenericContainer. +func (gc GenericContainer) AsDpmContainer() (*DpmContainer, bool) { + return nil, false +} + +// AsBasicDpmContainer is the BasicProtectionContainer implementation for GenericContainer. +func (gc GenericContainer) AsBasicDpmContainer() (BasicDpmContainer, bool) { + return nil, false +} + +// AsGenericContainer is the BasicProtectionContainer implementation for GenericContainer. +func (gc GenericContainer) AsGenericContainer() (*GenericContainer, bool) { + return &gc, true +} + +// AsIaaSVMContainer is the BasicProtectionContainer implementation for GenericContainer. +func (gc GenericContainer) AsIaaSVMContainer() (*IaaSVMContainer, bool) { + return nil, false +} + +// AsBasicIaaSVMContainer is the BasicProtectionContainer implementation for GenericContainer. +func (gc GenericContainer) AsBasicIaaSVMContainer() (BasicIaaSVMContainer, bool) { + return nil, false +} + +// AsMabContainer is the BasicProtectionContainer implementation for GenericContainer. +func (gc GenericContainer) AsMabContainer() (*MabContainer, bool) { + return nil, false +} + +// AsProtectionContainer is the BasicProtectionContainer implementation for GenericContainer. +func (gc GenericContainer) AsProtectionContainer() (*ProtectionContainer, bool) { + return nil, false +} + +// AsBasicProtectionContainer is the BasicProtectionContainer implementation for GenericContainer. +func (gc GenericContainer) AsBasicProtectionContainer() (BasicProtectionContainer, bool) { + return &gc, true +} + +// GenericContainerExtendedInfo container extended information +type GenericContainerExtendedInfo struct { + // RawCertData - Public key of container cert + RawCertData *string `json:"rawCertData,omitempty"` + // ContainerIdentityInfo - Container identity information + ContainerIdentityInfo *ContainerIdentityInfo `json:"containerIdentityInfo,omitempty"` + // ServiceEndpoints - Azure Backup Service Endpoints for the container + ServiceEndpoints map[string]*string `json:"serviceEndpoints"` +} + +// MarshalJSON is the custom marshaler for GenericContainerExtendedInfo. +func (gcei GenericContainerExtendedInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if gcei.RawCertData != nil { + objectMap["rawCertData"] = gcei.RawCertData + } + if gcei.ContainerIdentityInfo != nil { + objectMap["containerIdentityInfo"] = gcei.ContainerIdentityInfo + } + if gcei.ServiceEndpoints != nil { + objectMap["serviceEndpoints"] = gcei.ServiceEndpoints + } + return json.Marshal(objectMap) +} + +// GenericProtectedItem base class for backup items. +type GenericProtectedItem struct { + // FriendlyName - Friendly name of the container. + FriendlyName *string `json:"friendlyName,omitempty"` + // PolicyState - Indicates consistency of policy object and policy applied to this backup item. + PolicyState *string `json:"policyState,omitempty"` + // ProtectionState - Backup state of this backup item. Possible values include: 'ProtectionStateInvalid', 'ProtectionStateIRPending', 'ProtectionStateProtected', 'ProtectionStateProtectionError', 'ProtectionStateProtectionStopped', 'ProtectionStateProtectionPaused' + ProtectionState ProtectionState `json:"protectionState,omitempty"` + // ProtectedItemID - Data Plane Service ID of the protected item. + ProtectedItemID *int64 `json:"protectedItemId,omitempty"` + // SourceAssociations - Loosely coupled (type, value) associations (example - parent of a protected item) + SourceAssociations map[string]*string `json:"sourceAssociations"` + // FabricName - Name of this backup item's fabric. + FabricName *string `json:"fabricName,omitempty"` + // BackupManagementType - Type of backup management for the backed up item. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // WorkloadType - Type of workload this item represents. Possible values include: 'DataSourceTypeInvalid', 'DataSourceTypeVM', 'DataSourceTypeFileFolder', 'DataSourceTypeAzureSQLDb', 'DataSourceTypeSQLDB', 'DataSourceTypeExchange', 'DataSourceTypeSharepoint', 'DataSourceTypeVMwareVM', 'DataSourceTypeSystemState', 'DataSourceTypeClient', 'DataSourceTypeGenericDataSource', 'DataSourceTypeSQLDataBase', 'DataSourceTypeAzureFileShare', 'DataSourceTypeSAPHanaDatabase', 'DataSourceTypeSAPAseDatabase' + WorkloadType DataSourceType `json:"workloadType,omitempty"` + // ContainerName - Unique name of container + ContainerName *string `json:"containerName,omitempty"` + // SourceResourceID - ARM ID of the resource to be backed up. + SourceResourceID *string `json:"sourceResourceId,omitempty"` + // PolicyID - ID of the backup policy with which this item is backed up. + PolicyID *string `json:"policyId,omitempty"` + // LastRecoveryPoint - Timestamp when the last (latest) backup copy was created for this backup item. + LastRecoveryPoint *date.Time `json:"lastRecoveryPoint,omitempty"` + // BackupSetName - Name of the backup set the backup item belongs to + BackupSetName *string `json:"backupSetName,omitempty"` + // CreateMode - Create mode to indicate recovery of existing soft deleted data source or creation of new data source. Possible values include: 'CreateModeInvalid', 'CreateModeDefault', 'CreateModeRecover' + CreateMode CreateMode `json:"createMode,omitempty"` + // DeferredDeleteTimeInUTC - Time for deferred deletion in UTC + DeferredDeleteTimeInUTC *date.Time `json:"deferredDeleteTimeInUTC,omitempty"` + // IsScheduledForDeferredDelete - Flag to identify whether the DS is scheduled for deferred delete + IsScheduledForDeferredDelete *bool `json:"isScheduledForDeferredDelete,omitempty"` + // DeferredDeleteTimeRemaining - Time remaining before the DS marked for deferred delete is permanently deleted + DeferredDeleteTimeRemaining *string `json:"deferredDeleteTimeRemaining,omitempty"` + // IsDeferredDeleteScheduleUpcoming - Flag to identify whether the deferred deleted DS is to be purged soon + IsDeferredDeleteScheduleUpcoming *bool `json:"isDeferredDeleteScheduleUpcoming,omitempty"` + // IsRehydrate - Flag to identify that deferred deleted DS is to be moved into Pause state + IsRehydrate *bool `json:"isRehydrate,omitempty"` + // ProtectedItemType - Possible values include: 'ProtectedItemTypeProtectedItem', 'ProtectedItemTypeAzureFileShareProtectedItem', 'ProtectedItemTypeMicrosoftClassicComputevirtualMachines', 'ProtectedItemTypeMicrosoftComputevirtualMachines', 'ProtectedItemTypeAzureIaaSVMProtectedItem', 'ProtectedItemTypeMicrosoftSqlserversdatabases', 'ProtectedItemTypeAzureVMWorkloadProtectedItem', 'ProtectedItemTypeAzureVMWorkloadSAPAseDatabase', 'ProtectedItemTypeAzureVMWorkloadSAPHanaDatabase', 'ProtectedItemTypeAzureVMWorkloadSQLDatabase', 'ProtectedItemTypeDPMProtectedItem', 'ProtectedItemTypeGenericProtectedItem', 'ProtectedItemTypeMabFileFolderProtectedItem' + ProtectedItemType ProtectedItemType `json:"protectedItemType,omitempty"` +} + +// MarshalJSON is the custom marshaler for GenericProtectedItem. +func (gpi GenericProtectedItem) MarshalJSON() ([]byte, error) { + gpi.ProtectedItemType = ProtectedItemTypeGenericProtectedItem + objectMap := make(map[string]interface{}) + if gpi.FriendlyName != nil { + objectMap["friendlyName"] = gpi.FriendlyName + } + if gpi.PolicyState != nil { + objectMap["policyState"] = gpi.PolicyState + } + if gpi.ProtectionState != "" { + objectMap["protectionState"] = gpi.ProtectionState + } + if gpi.ProtectedItemID != nil { + objectMap["protectedItemId"] = gpi.ProtectedItemID + } + if gpi.SourceAssociations != nil { + objectMap["sourceAssociations"] = gpi.SourceAssociations + } + if gpi.FabricName != nil { + objectMap["fabricName"] = gpi.FabricName + } + if gpi.BackupManagementType != "" { + objectMap["backupManagementType"] = gpi.BackupManagementType + } + if gpi.WorkloadType != "" { + objectMap["workloadType"] = gpi.WorkloadType + } + if gpi.ContainerName != nil { + objectMap["containerName"] = gpi.ContainerName + } + if gpi.SourceResourceID != nil { + objectMap["sourceResourceId"] = gpi.SourceResourceID + } + if gpi.PolicyID != nil { + objectMap["policyId"] = gpi.PolicyID + } + if gpi.LastRecoveryPoint != nil { + objectMap["lastRecoveryPoint"] = gpi.LastRecoveryPoint + } + if gpi.BackupSetName != nil { + objectMap["backupSetName"] = gpi.BackupSetName + } + if gpi.CreateMode != "" { + objectMap["createMode"] = gpi.CreateMode + } + if gpi.DeferredDeleteTimeInUTC != nil { + objectMap["deferredDeleteTimeInUTC"] = gpi.DeferredDeleteTimeInUTC + } + if gpi.IsScheduledForDeferredDelete != nil { + objectMap["isScheduledForDeferredDelete"] = gpi.IsScheduledForDeferredDelete + } + if gpi.DeferredDeleteTimeRemaining != nil { + objectMap["deferredDeleteTimeRemaining"] = gpi.DeferredDeleteTimeRemaining + } + if gpi.IsDeferredDeleteScheduleUpcoming != nil { + objectMap["isDeferredDeleteScheduleUpcoming"] = gpi.IsDeferredDeleteScheduleUpcoming + } + if gpi.IsRehydrate != nil { + objectMap["isRehydrate"] = gpi.IsRehydrate + } + if gpi.ProtectedItemType != "" { + objectMap["protectedItemType"] = gpi.ProtectedItemType + } + return json.Marshal(objectMap) +} + +// AsAzureFileshareProtectedItem is the BasicProtectedItem implementation for GenericProtectedItem. +func (gpi GenericProtectedItem) AsAzureFileshareProtectedItem() (*AzureFileshareProtectedItem, bool) { + return nil, false +} + +// AsAzureIaaSClassicComputeVMProtectedItem is the BasicProtectedItem implementation for GenericProtectedItem. +func (gpi GenericProtectedItem) AsAzureIaaSClassicComputeVMProtectedItem() (*AzureIaaSClassicComputeVMProtectedItem, bool) { + return nil, false +} + +// AsAzureIaaSComputeVMProtectedItem is the BasicProtectedItem implementation for GenericProtectedItem. +func (gpi GenericProtectedItem) AsAzureIaaSComputeVMProtectedItem() (*AzureIaaSComputeVMProtectedItem, bool) { + return nil, false +} + +// AsAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for GenericProtectedItem. +func (gpi GenericProtectedItem) AsAzureIaaSVMProtectedItem() (*AzureIaaSVMProtectedItem, bool) { + return nil, false +} + +// AsBasicAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for GenericProtectedItem. +func (gpi GenericProtectedItem) AsBasicAzureIaaSVMProtectedItem() (BasicAzureIaaSVMProtectedItem, bool) { + return nil, false +} + +// AsAzureSQLProtectedItem is the BasicProtectedItem implementation for GenericProtectedItem. +func (gpi GenericProtectedItem) AsAzureSQLProtectedItem() (*AzureSQLProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadProtectedItem is the BasicProtectedItem implementation for GenericProtectedItem. +func (gpi GenericProtectedItem) AsAzureVMWorkloadProtectedItem() (*AzureVMWorkloadProtectedItem, bool) { + return nil, false +} + +// AsBasicAzureVMWorkloadProtectedItem is the BasicProtectedItem implementation for GenericProtectedItem. +func (gpi GenericProtectedItem) AsBasicAzureVMWorkloadProtectedItem() (BasicAzureVMWorkloadProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPAseDatabaseProtectedItem is the BasicProtectedItem implementation for GenericProtectedItem. +func (gpi GenericProtectedItem) AsAzureVMWorkloadSAPAseDatabaseProtectedItem() (*AzureVMWorkloadSAPAseDatabaseProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaDatabaseProtectedItem is the BasicProtectedItem implementation for GenericProtectedItem. +func (gpi GenericProtectedItem) AsAzureVMWorkloadSAPHanaDatabaseProtectedItem() (*AzureVMWorkloadSAPHanaDatabaseProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLDatabaseProtectedItem is the BasicProtectedItem implementation for GenericProtectedItem. +func (gpi GenericProtectedItem) AsAzureVMWorkloadSQLDatabaseProtectedItem() (*AzureVMWorkloadSQLDatabaseProtectedItem, bool) { + return nil, false +} + +// AsDPMProtectedItem is the BasicProtectedItem implementation for GenericProtectedItem. +func (gpi GenericProtectedItem) AsDPMProtectedItem() (*DPMProtectedItem, bool) { + return nil, false +} + +// AsGenericProtectedItem is the BasicProtectedItem implementation for GenericProtectedItem. +func (gpi GenericProtectedItem) AsGenericProtectedItem() (*GenericProtectedItem, bool) { + return &gpi, true +} + +// AsMabFileFolderProtectedItem is the BasicProtectedItem implementation for GenericProtectedItem. +func (gpi GenericProtectedItem) AsMabFileFolderProtectedItem() (*MabFileFolderProtectedItem, bool) { + return nil, false +} + +// AsProtectedItem is the BasicProtectedItem implementation for GenericProtectedItem. +func (gpi GenericProtectedItem) AsProtectedItem() (*ProtectedItem, bool) { + return nil, false +} + +// AsBasicProtectedItem is the BasicProtectedItem implementation for GenericProtectedItem. +func (gpi GenericProtectedItem) AsBasicProtectedItem() (BasicProtectedItem, bool) { + return &gpi, true +} + +// GenericProtectionPolicy azure VM (Mercury) workload-specific backup policy. +type GenericProtectionPolicy struct { + // SubProtectionPolicy - List of sub-protection policies which includes schedule and retention + SubProtectionPolicy *[]SubProtectionPolicy `json:"subProtectionPolicy,omitempty"` + // TimeZone - TimeZone optional input as string. For example: TimeZone = "Pacific Standard Time". + TimeZone *string `json:"timeZone,omitempty"` + // FabricName - Name of this policy's fabric. + FabricName *string `json:"fabricName,omitempty"` + // ProtectedItemsCount - Number of items associated with this policy. + ProtectedItemsCount *int32 `json:"protectedItemsCount,omitempty"` + // BackupManagementType - Possible values include: 'ManagementTypeBasicProtectionPolicyBackupManagementTypeProtectionPolicy', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureWorkload', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureStorage', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureIaasVM', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureSQL', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeGenericProtectionPolicy', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeMAB' + BackupManagementType ManagementTypeBasicProtectionPolicy `json:"backupManagementType,omitempty"` +} + +// MarshalJSON is the custom marshaler for GenericProtectionPolicy. +func (gpp GenericProtectionPolicy) MarshalJSON() ([]byte, error) { + gpp.BackupManagementType = ManagementTypeBasicProtectionPolicyBackupManagementTypeGenericProtectionPolicy + objectMap := make(map[string]interface{}) + if gpp.SubProtectionPolicy != nil { + objectMap["subProtectionPolicy"] = gpp.SubProtectionPolicy + } + if gpp.TimeZone != nil { + objectMap["timeZone"] = gpp.TimeZone + } + if gpp.FabricName != nil { + objectMap["fabricName"] = gpp.FabricName + } + if gpp.ProtectedItemsCount != nil { + objectMap["protectedItemsCount"] = gpp.ProtectedItemsCount + } + if gpp.BackupManagementType != "" { + objectMap["backupManagementType"] = gpp.BackupManagementType + } + return json.Marshal(objectMap) +} + +// AsAzureVMWorkloadProtectionPolicy is the BasicProtectionPolicy implementation for GenericProtectionPolicy. +func (gpp GenericProtectionPolicy) AsAzureVMWorkloadProtectionPolicy() (*AzureVMWorkloadProtectionPolicy, bool) { + return nil, false +} + +// AsAzureFileShareProtectionPolicy is the BasicProtectionPolicy implementation for GenericProtectionPolicy. +func (gpp GenericProtectionPolicy) AsAzureFileShareProtectionPolicy() (*AzureFileShareProtectionPolicy, bool) { + return nil, false +} + +// AsAzureIaaSVMProtectionPolicy is the BasicProtectionPolicy implementation for GenericProtectionPolicy. +func (gpp GenericProtectionPolicy) AsAzureIaaSVMProtectionPolicy() (*AzureIaaSVMProtectionPolicy, bool) { + return nil, false +} + +// AsAzureSQLProtectionPolicy is the BasicProtectionPolicy implementation for GenericProtectionPolicy. +func (gpp GenericProtectionPolicy) AsAzureSQLProtectionPolicy() (*AzureSQLProtectionPolicy, bool) { + return nil, false +} + +// AsGenericProtectionPolicy is the BasicProtectionPolicy implementation for GenericProtectionPolicy. +func (gpp GenericProtectionPolicy) AsGenericProtectionPolicy() (*GenericProtectionPolicy, bool) { + return &gpp, true +} + +// AsMabProtectionPolicy is the BasicProtectionPolicy implementation for GenericProtectionPolicy. +func (gpp GenericProtectionPolicy) AsMabProtectionPolicy() (*MabProtectionPolicy, bool) { + return nil, false +} + +// AsProtectionPolicy is the BasicProtectionPolicy implementation for GenericProtectionPolicy. +func (gpp GenericProtectionPolicy) AsProtectionPolicy() (*ProtectionPolicy, bool) { + return nil, false +} + +// AsBasicProtectionPolicy is the BasicProtectionPolicy implementation for GenericProtectionPolicy. +func (gpp GenericProtectionPolicy) AsBasicProtectionPolicy() (BasicProtectionPolicy, bool) { + return &gpp, true +} + +// GenericRecoveryPoint generic backup copy. +type GenericRecoveryPoint struct { + // FriendlyName - Friendly name of the backup copy. + FriendlyName *string `json:"friendlyName,omitempty"` + // RecoveryPointType - Type of the backup copy. + RecoveryPointType *string `json:"recoveryPointType,omitempty"` + // RecoveryPointTime - Time at which this backup copy was created. + RecoveryPointTime *date.Time `json:"recoveryPointTime,omitempty"` + // RecoveryPointAdditionalInfo - Additional information associated with this backup copy. + RecoveryPointAdditionalInfo *string `json:"recoveryPointAdditionalInfo,omitempty"` + // ObjectType - Possible values include: 'ObjectTypeBasicRecoveryPointObjectTypeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureFileShareRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadPointInTimeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeGenericRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeIaasVMRecoveryPoint' + ObjectType ObjectTypeBasicRecoveryPoint `json:"objectType,omitempty"` +} + +// MarshalJSON is the custom marshaler for GenericRecoveryPoint. +func (grp GenericRecoveryPoint) MarshalJSON() ([]byte, error) { + grp.ObjectType = ObjectTypeBasicRecoveryPointObjectTypeGenericRecoveryPoint + objectMap := make(map[string]interface{}) + if grp.FriendlyName != nil { + objectMap["friendlyName"] = grp.FriendlyName + } + if grp.RecoveryPointType != nil { + objectMap["recoveryPointType"] = grp.RecoveryPointType + } + if grp.RecoveryPointTime != nil { + objectMap["recoveryPointTime"] = grp.RecoveryPointTime + } + if grp.RecoveryPointAdditionalInfo != nil { + objectMap["recoveryPointAdditionalInfo"] = grp.RecoveryPointAdditionalInfo + } + if grp.ObjectType != "" { + objectMap["objectType"] = grp.ObjectType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareRecoveryPoint is the BasicRecoveryPoint implementation for GenericRecoveryPoint. +func (grp GenericRecoveryPoint) AsAzureFileShareRecoveryPoint() (*AzureFileShareRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for GenericRecoveryPoint. +func (grp GenericRecoveryPoint) AsAzureWorkloadPointInTimeRecoveryPoint() (*AzureWorkloadPointInTimeRecoveryPoint, bool) { + return nil, false +} + +// AsBasicAzureWorkloadPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for GenericRecoveryPoint. +func (grp GenericRecoveryPoint) AsBasicAzureWorkloadPointInTimeRecoveryPoint() (BasicAzureWorkloadPointInTimeRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadRecoveryPoint is the BasicRecoveryPoint implementation for GenericRecoveryPoint. +func (grp GenericRecoveryPoint) AsAzureWorkloadRecoveryPoint() (*AzureWorkloadRecoveryPoint, bool) { + return nil, false +} + +// AsBasicAzureWorkloadRecoveryPoint is the BasicRecoveryPoint implementation for GenericRecoveryPoint. +func (grp GenericRecoveryPoint) AsBasicAzureWorkloadRecoveryPoint() (BasicAzureWorkloadRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for GenericRecoveryPoint. +func (grp GenericRecoveryPoint) AsAzureWorkloadSAPHanaPointInTimeRecoveryPoint() (*AzureWorkloadSAPHanaPointInTimeRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaRecoveryPoint is the BasicRecoveryPoint implementation for GenericRecoveryPoint. +func (grp GenericRecoveryPoint) AsAzureWorkloadSAPHanaRecoveryPoint() (*AzureWorkloadSAPHanaRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadSQLPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for GenericRecoveryPoint. +func (grp GenericRecoveryPoint) AsAzureWorkloadSQLPointInTimeRecoveryPoint() (*AzureWorkloadSQLPointInTimeRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadSQLRecoveryPoint is the BasicRecoveryPoint implementation for GenericRecoveryPoint. +func (grp GenericRecoveryPoint) AsAzureWorkloadSQLRecoveryPoint() (*AzureWorkloadSQLRecoveryPoint, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSQLRecoveryPoint is the BasicRecoveryPoint implementation for GenericRecoveryPoint. +func (grp GenericRecoveryPoint) AsBasicAzureWorkloadSQLRecoveryPoint() (BasicAzureWorkloadSQLRecoveryPoint, bool) { + return nil, false +} + +// AsGenericRecoveryPoint is the BasicRecoveryPoint implementation for GenericRecoveryPoint. +func (grp GenericRecoveryPoint) AsGenericRecoveryPoint() (*GenericRecoveryPoint, bool) { + return &grp, true +} + +// AsIaasVMRecoveryPoint is the BasicRecoveryPoint implementation for GenericRecoveryPoint. +func (grp GenericRecoveryPoint) AsIaasVMRecoveryPoint() (*IaasVMRecoveryPoint, bool) { + return nil, false +} + +// AsRecoveryPoint is the BasicRecoveryPoint implementation for GenericRecoveryPoint. +func (grp GenericRecoveryPoint) AsRecoveryPoint() (*RecoveryPoint, bool) { + return nil, false +} + +// AsBasicRecoveryPoint is the BasicRecoveryPoint implementation for GenericRecoveryPoint. +func (grp GenericRecoveryPoint) AsBasicRecoveryPoint() (BasicRecoveryPoint, bool) { + return &grp, true +} + +// GetProtectedItemQueryObject filters to list backup items. +type GetProtectedItemQueryObject struct { + // Expand - Specifies if the additional information should be provided for this item. + Expand *string `json:"expand,omitempty"` +} + +// IaasVMBackupRequest iaaS VM workload-specific backup request. +type IaasVMBackupRequest struct { + // RecoveryPointExpiryTimeInUTC - Backup copy will expire after the time specified (UTC). + RecoveryPointExpiryTimeInUTC *date.Time `json:"recoveryPointExpiryTimeInUTC,omitempty"` + // ObjectType - Possible values include: 'ObjectTypeBasicRequestObjectTypeBackupRequest', 'ObjectTypeBasicRequestObjectTypeAzureFileShareBackupRequest', 'ObjectTypeBasicRequestObjectTypeAzureWorkloadBackupRequest', 'ObjectTypeBasicRequestObjectTypeIaasVMBackupRequest' + ObjectType ObjectTypeBasicRequest `json:"objectType,omitempty"` +} + +// MarshalJSON is the custom marshaler for IaasVMBackupRequest. +func (ivbr IaasVMBackupRequest) MarshalJSON() ([]byte, error) { + ivbr.ObjectType = ObjectTypeBasicRequestObjectTypeIaasVMBackupRequest + objectMap := make(map[string]interface{}) + if ivbr.RecoveryPointExpiryTimeInUTC != nil { + objectMap["recoveryPointExpiryTimeInUTC"] = ivbr.RecoveryPointExpiryTimeInUTC + } + if ivbr.ObjectType != "" { + objectMap["objectType"] = ivbr.ObjectType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareBackupRequest is the BasicRequest implementation for IaasVMBackupRequest. +func (ivbr IaasVMBackupRequest) AsAzureFileShareBackupRequest() (*AzureFileShareBackupRequest, bool) { + return nil, false +} + +// AsAzureWorkloadBackupRequest is the BasicRequest implementation for IaasVMBackupRequest. +func (ivbr IaasVMBackupRequest) AsAzureWorkloadBackupRequest() (*AzureWorkloadBackupRequest, bool) { + return nil, false +} + +// AsIaasVMBackupRequest is the BasicRequest implementation for IaasVMBackupRequest. +func (ivbr IaasVMBackupRequest) AsIaasVMBackupRequest() (*IaasVMBackupRequest, bool) { + return &ivbr, true +} + +// AsRequest is the BasicRequest implementation for IaasVMBackupRequest. +func (ivbr IaasVMBackupRequest) AsRequest() (*Request, bool) { + return nil, false +} + +// AsBasicRequest is the BasicRequest implementation for IaasVMBackupRequest. +func (ivbr IaasVMBackupRequest) AsBasicRequest() (BasicRequest, bool) { + return &ivbr, true +} + +// BasicIaaSVMContainer iaaS VM workload-specific container. +type BasicIaaSVMContainer interface { + AsAzureIaaSClassicComputeVMContainer() (*AzureIaaSClassicComputeVMContainer, bool) + AsAzureIaaSComputeVMContainer() (*AzureIaaSComputeVMContainer, bool) + AsIaaSVMContainer() (*IaaSVMContainer, bool) +} + +// IaaSVMContainer iaaS VM workload-specific container. +type IaaSVMContainer struct { + // VirtualMachineID - Fully qualified ARM url of the virtual machine represented by this Azure IaaS VM container. + VirtualMachineID *string `json:"virtualMachineId,omitempty"` + // VirtualMachineVersion - Specifies whether the container represents a Classic or an Azure Resource Manager VM. + VirtualMachineVersion *string `json:"virtualMachineVersion,omitempty"` + // ResourceGroup - Resource group name of Recovery Services Vault. + ResourceGroup *string `json:"resourceGroup,omitempty"` + // FriendlyName - Friendly name of the container. + FriendlyName *string `json:"friendlyName,omitempty"` + // BackupManagementType - Type of backup management for the container. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // RegistrationStatus - Status of registration of the container with the Recovery Services Vault. + RegistrationStatus *string `json:"registrationStatus,omitempty"` + // HealthStatus - Status of health of the container. + HealthStatus *string `json:"healthStatus,omitempty"` + // ContainerType - Possible values include: 'ContainerTypeBasicProtectionContainerContainerTypeProtectionContainer', 'ContainerTypeBasicProtectionContainerContainerTypeAzureBackupServerContainer', 'ContainerTypeBasicProtectionContainerContainerTypeMicrosoftClassicComputevirtualMachines', 'ContainerTypeBasicProtectionContainerContainerTypeMicrosoftComputevirtualMachines', 'ContainerTypeBasicProtectionContainerContainerTypeSQLAGWorkLoadContainer', 'ContainerTypeBasicProtectionContainerContainerTypeAzureSQLContainer', 'ContainerTypeBasicProtectionContainerContainerTypeStorageContainer', 'ContainerTypeBasicProtectionContainerContainerTypeVMAppContainer', 'ContainerTypeBasicProtectionContainerContainerTypeAzureWorkloadContainer', 'ContainerTypeBasicProtectionContainerContainerTypeDPMContainer', 'ContainerTypeBasicProtectionContainerContainerTypeGenericContainer', 'ContainerTypeBasicProtectionContainerContainerTypeIaaSVMContainer', 'ContainerTypeBasicProtectionContainerContainerTypeWindows' + ContainerType ContainerTypeBasicProtectionContainer `json:"containerType,omitempty"` +} + +func unmarshalBasicIaaSVMContainer(body []byte) (BasicIaaSVMContainer, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["containerType"] { + case string(ContainerTypeBasicProtectionContainerContainerTypeMicrosoftClassicComputevirtualMachines): + var aisccvc AzureIaaSClassicComputeVMContainer + err := json.Unmarshal(body, &aisccvc) + return aisccvc, err + case string(ContainerTypeBasicProtectionContainerContainerTypeMicrosoftComputevirtualMachines): + var aiscvc AzureIaaSComputeVMContainer + err := json.Unmarshal(body, &aiscvc) + return aiscvc, err + default: + var isc IaaSVMContainer + err := json.Unmarshal(body, &isc) + return isc, err + } +} +func unmarshalBasicIaaSVMContainerArray(body []byte) ([]BasicIaaSVMContainer, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + iscArray := make([]BasicIaaSVMContainer, len(rawMessages)) + + for index, rawMessage := range rawMessages { + isc, err := unmarshalBasicIaaSVMContainer(*rawMessage) + if err != nil { + return nil, err + } + iscArray[index] = isc + } + return iscArray, nil +} + +// MarshalJSON is the custom marshaler for IaaSVMContainer. +func (isc IaaSVMContainer) MarshalJSON() ([]byte, error) { + isc.ContainerType = ContainerTypeBasicProtectionContainerContainerTypeIaaSVMContainer + objectMap := make(map[string]interface{}) + if isc.VirtualMachineID != nil { + objectMap["virtualMachineId"] = isc.VirtualMachineID + } + if isc.VirtualMachineVersion != nil { + objectMap["virtualMachineVersion"] = isc.VirtualMachineVersion + } + if isc.ResourceGroup != nil { + objectMap["resourceGroup"] = isc.ResourceGroup + } + if isc.FriendlyName != nil { + objectMap["friendlyName"] = isc.FriendlyName + } + if isc.BackupManagementType != "" { + objectMap["backupManagementType"] = isc.BackupManagementType + } + if isc.RegistrationStatus != nil { + objectMap["registrationStatus"] = isc.RegistrationStatus + } + if isc.HealthStatus != nil { + objectMap["healthStatus"] = isc.HealthStatus + } + if isc.ContainerType != "" { + objectMap["containerType"] = isc.ContainerType + } + return json.Marshal(objectMap) +} + +// AsAzureBackupServerContainer is the BasicProtectionContainer implementation for IaaSVMContainer. +func (isc IaaSVMContainer) AsAzureBackupServerContainer() (*AzureBackupServerContainer, bool) { + return nil, false +} + +// AsAzureIaaSClassicComputeVMContainer is the BasicProtectionContainer implementation for IaaSVMContainer. +func (isc IaaSVMContainer) AsAzureIaaSClassicComputeVMContainer() (*AzureIaaSClassicComputeVMContainer, bool) { + return nil, false +} + +// AsAzureIaaSComputeVMContainer is the BasicProtectionContainer implementation for IaaSVMContainer. +func (isc IaaSVMContainer) AsAzureIaaSComputeVMContainer() (*AzureIaaSComputeVMContainer, bool) { + return nil, false +} + +// AsAzureSQLAGWorkloadContainerProtectionContainer is the BasicProtectionContainer implementation for IaaSVMContainer. +func (isc IaaSVMContainer) AsAzureSQLAGWorkloadContainerProtectionContainer() (*AzureSQLAGWorkloadContainerProtectionContainer, bool) { + return nil, false +} + +// AsAzureSQLContainer is the BasicProtectionContainer implementation for IaaSVMContainer. +func (isc IaaSVMContainer) AsAzureSQLContainer() (*AzureSQLContainer, bool) { + return nil, false +} + +// AsAzureStorageContainer is the BasicProtectionContainer implementation for IaaSVMContainer. +func (isc IaaSVMContainer) AsAzureStorageContainer() (*AzureStorageContainer, bool) { + return nil, false +} + +// AsAzureVMAppContainerProtectionContainer is the BasicProtectionContainer implementation for IaaSVMContainer. +func (isc IaaSVMContainer) AsAzureVMAppContainerProtectionContainer() (*AzureVMAppContainerProtectionContainer, bool) { + return nil, false +} + +// AsAzureWorkloadContainer is the BasicProtectionContainer implementation for IaaSVMContainer. +func (isc IaaSVMContainer) AsAzureWorkloadContainer() (*AzureWorkloadContainer, bool) { + return nil, false +} + +// AsBasicAzureWorkloadContainer is the BasicProtectionContainer implementation for IaaSVMContainer. +func (isc IaaSVMContainer) AsBasicAzureWorkloadContainer() (BasicAzureWorkloadContainer, bool) { + return nil, false +} + +// AsDpmContainer is the BasicProtectionContainer implementation for IaaSVMContainer. +func (isc IaaSVMContainer) AsDpmContainer() (*DpmContainer, bool) { + return nil, false +} + +// AsBasicDpmContainer is the BasicProtectionContainer implementation for IaaSVMContainer. +func (isc IaaSVMContainer) AsBasicDpmContainer() (BasicDpmContainer, bool) { + return nil, false +} + +// AsGenericContainer is the BasicProtectionContainer implementation for IaaSVMContainer. +func (isc IaaSVMContainer) AsGenericContainer() (*GenericContainer, bool) { + return nil, false +} + +// AsIaaSVMContainer is the BasicProtectionContainer implementation for IaaSVMContainer. +func (isc IaaSVMContainer) AsIaaSVMContainer() (*IaaSVMContainer, bool) { + return &isc, true +} + +// AsBasicIaaSVMContainer is the BasicProtectionContainer implementation for IaaSVMContainer. +func (isc IaaSVMContainer) AsBasicIaaSVMContainer() (BasicIaaSVMContainer, bool) { + return &isc, true +} + +// AsMabContainer is the BasicProtectionContainer implementation for IaaSVMContainer. +func (isc IaaSVMContainer) AsMabContainer() (*MabContainer, bool) { + return nil, false +} + +// AsProtectionContainer is the BasicProtectionContainer implementation for IaaSVMContainer. +func (isc IaaSVMContainer) AsProtectionContainer() (*ProtectionContainer, bool) { + return nil, false +} + +// AsBasicProtectionContainer is the BasicProtectionContainer implementation for IaaSVMContainer. +func (isc IaaSVMContainer) AsBasicProtectionContainer() (BasicProtectionContainer, bool) { + return &isc, true +} + +// IaasVMILRRegistrationRequest restore files/folders from a backup copy of IaaS VM. +type IaasVMILRRegistrationRequest struct { + // RecoveryPointID - ID of the IaaS VM backup copy from where the files/folders have to be restored. + RecoveryPointID *string `json:"recoveryPointId,omitempty"` + // VirtualMachineID - Fully qualified ARM ID of the virtual machine whose the files / folders have to be restored. + VirtualMachineID *string `json:"virtualMachineId,omitempty"` + // InitiatorName - iSCSI initiator name. + InitiatorName *string `json:"initiatorName,omitempty"` + // RenewExistingRegistration - Whether to renew existing registration with the iSCSI server. + RenewExistingRegistration *bool `json:"renewExistingRegistration,omitempty"` + // ObjectType - Possible values include: 'ObjectTypeBasicILRRequestObjectTypeILRRequest', 'ObjectTypeBasicILRRequestObjectTypeAzureFileShareProvisionILRRequest', 'ObjectTypeBasicILRRequestObjectTypeIaasVMILRRegistrationRequest' + ObjectType ObjectTypeBasicILRRequest `json:"objectType,omitempty"` +} + +// MarshalJSON is the custom marshaler for IaasVMILRRegistrationRequest. +func (ivrr IaasVMILRRegistrationRequest) MarshalJSON() ([]byte, error) { + ivrr.ObjectType = ObjectTypeBasicILRRequestObjectTypeIaasVMILRRegistrationRequest + objectMap := make(map[string]interface{}) + if ivrr.RecoveryPointID != nil { + objectMap["recoveryPointId"] = ivrr.RecoveryPointID + } + if ivrr.VirtualMachineID != nil { + objectMap["virtualMachineId"] = ivrr.VirtualMachineID + } + if ivrr.InitiatorName != nil { + objectMap["initiatorName"] = ivrr.InitiatorName + } + if ivrr.RenewExistingRegistration != nil { + objectMap["renewExistingRegistration"] = ivrr.RenewExistingRegistration + } + if ivrr.ObjectType != "" { + objectMap["objectType"] = ivrr.ObjectType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareProvisionILRRequest is the BasicILRRequest implementation for IaasVMILRRegistrationRequest. +func (ivrr IaasVMILRRegistrationRequest) AsAzureFileShareProvisionILRRequest() (*AzureFileShareProvisionILRRequest, bool) { + return nil, false +} + +// AsIaasVMILRRegistrationRequest is the BasicILRRequest implementation for IaasVMILRRegistrationRequest. +func (ivrr IaasVMILRRegistrationRequest) AsIaasVMILRRegistrationRequest() (*IaasVMILRRegistrationRequest, bool) { + return &ivrr, true +} + +// AsILRRequest is the BasicILRRequest implementation for IaasVMILRRegistrationRequest. +func (ivrr IaasVMILRRegistrationRequest) AsILRRequest() (*ILRRequest, bool) { + return nil, false +} + +// AsBasicILRRequest is the BasicILRRequest implementation for IaasVMILRRegistrationRequest. +func (ivrr IaasVMILRRegistrationRequest) AsBasicILRRequest() (BasicILRRequest, bool) { + return &ivrr, true +} + +// BasicIaaSVMProtectableItem iaaS VM workload-specific backup item. +type BasicIaaSVMProtectableItem interface { + AsAzureIaaSClassicComputeVMProtectableItem() (*AzureIaaSClassicComputeVMProtectableItem, bool) + AsAzureIaaSComputeVMProtectableItem() (*AzureIaaSComputeVMProtectableItem, bool) + AsIaaSVMProtectableItem() (*IaaSVMProtectableItem, bool) +} + +// IaaSVMProtectableItem iaaS VM workload-specific backup item. +type IaaSVMProtectableItem struct { + // VirtualMachineID - Fully qualified ARM ID of the virtual machine. + VirtualMachineID *string `json:"virtualMachineId,omitempty"` + // BackupManagementType - Type of backup management to backup an item. + BackupManagementType *string `json:"backupManagementType,omitempty"` + // WorkloadType - Type of workload for the backup management + WorkloadType *string `json:"workloadType,omitempty"` + // FriendlyName - Friendly name of the backup item. + FriendlyName *string `json:"friendlyName,omitempty"` + // ProtectionState - State of the back up item. Possible values include: 'ProtectionStatusInvalid', 'ProtectionStatusNotProtected', 'ProtectionStatusProtecting', 'ProtectionStatusProtected', 'ProtectionStatusProtectionFailed' + ProtectionState ProtectionStatus `json:"protectionState,omitempty"` + // ProtectableItemType - Possible values include: 'ProtectableItemTypeWorkloadProtectableItem', 'ProtectableItemTypeAzureFileShare', 'ProtectableItemTypeMicrosoftClassicComputevirtualMachines', 'ProtectableItemTypeMicrosoftComputevirtualMachines', 'ProtectableItemTypeAzureVMWorkloadProtectableItem', 'ProtectableItemTypeSAPAseSystem', 'ProtectableItemTypeSAPHanaDatabase', 'ProtectableItemTypeSAPHanaSystem', 'ProtectableItemTypeSQLAvailabilityGroupContainer', 'ProtectableItemTypeSQLDataBase', 'ProtectableItemTypeSQLInstance', 'ProtectableItemTypeIaaSVMProtectableItem' + ProtectableItemType ProtectableItemType `json:"protectableItemType,omitempty"` +} + +func unmarshalBasicIaaSVMProtectableItem(body []byte) (BasicIaaSVMProtectableItem, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["protectableItemType"] { + case string(ProtectableItemTypeMicrosoftClassicComputevirtualMachines): + var aisccvpi AzureIaaSClassicComputeVMProtectableItem + err := json.Unmarshal(body, &aisccvpi) + return aisccvpi, err + case string(ProtectableItemTypeMicrosoftComputevirtualMachines): + var aiscvpi AzureIaaSComputeVMProtectableItem + err := json.Unmarshal(body, &aiscvpi) + return aiscvpi, err + default: + var ispi IaaSVMProtectableItem + err := json.Unmarshal(body, &ispi) + return ispi, err + } +} +func unmarshalBasicIaaSVMProtectableItemArray(body []byte) ([]BasicIaaSVMProtectableItem, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + ispiArray := make([]BasicIaaSVMProtectableItem, len(rawMessages)) + + for index, rawMessage := range rawMessages { + ispi, err := unmarshalBasicIaaSVMProtectableItem(*rawMessage) + if err != nil { + return nil, err + } + ispiArray[index] = ispi + } + return ispiArray, nil +} + +// MarshalJSON is the custom marshaler for IaaSVMProtectableItem. +func (ispi IaaSVMProtectableItem) MarshalJSON() ([]byte, error) { + ispi.ProtectableItemType = ProtectableItemTypeIaaSVMProtectableItem + objectMap := make(map[string]interface{}) + if ispi.VirtualMachineID != nil { + objectMap["virtualMachineId"] = ispi.VirtualMachineID + } + if ispi.BackupManagementType != nil { + objectMap["backupManagementType"] = ispi.BackupManagementType + } + if ispi.WorkloadType != nil { + objectMap["workloadType"] = ispi.WorkloadType + } + if ispi.FriendlyName != nil { + objectMap["friendlyName"] = ispi.FriendlyName + } + if ispi.ProtectionState != "" { + objectMap["protectionState"] = ispi.ProtectionState + } + if ispi.ProtectableItemType != "" { + objectMap["protectableItemType"] = ispi.ProtectableItemType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareProtectableItem is the BasicWorkloadProtectableItem implementation for IaaSVMProtectableItem. +func (ispi IaaSVMProtectableItem) AsAzureFileShareProtectableItem() (*AzureFileShareProtectableItem, bool) { + return nil, false +} + +// AsAzureIaaSClassicComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for IaaSVMProtectableItem. +func (ispi IaaSVMProtectableItem) AsAzureIaaSClassicComputeVMProtectableItem() (*AzureIaaSClassicComputeVMProtectableItem, bool) { + return nil, false +} + +// AsAzureIaaSComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for IaaSVMProtectableItem. +func (ispi IaaSVMProtectableItem) AsAzureIaaSComputeVMProtectableItem() (*AzureIaaSComputeVMProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for IaaSVMProtectableItem. +func (ispi IaaSVMProtectableItem) AsAzureVMWorkloadProtectableItem() (*AzureVMWorkloadProtectableItem, bool) { + return nil, false +} + +// AsBasicAzureVMWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for IaaSVMProtectableItem. +func (ispi IaaSVMProtectableItem) AsBasicAzureVMWorkloadProtectableItem() (BasicAzureVMWorkloadProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPAseSystemProtectableItem is the BasicWorkloadProtectableItem implementation for IaaSVMProtectableItem. +func (ispi IaaSVMProtectableItem) AsAzureVMWorkloadSAPAseSystemProtectableItem() (*AzureVMWorkloadSAPAseSystemProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaDatabaseProtectableItem is the BasicWorkloadProtectableItem implementation for IaaSVMProtectableItem. +func (ispi IaaSVMProtectableItem) AsAzureVMWorkloadSAPHanaDatabaseProtectableItem() (*AzureVMWorkloadSAPHanaDatabaseProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaSystemProtectableItem is the BasicWorkloadProtectableItem implementation for IaaSVMProtectableItem. +func (ispi IaaSVMProtectableItem) AsAzureVMWorkloadSAPHanaSystemProtectableItem() (*AzureVMWorkloadSAPHanaSystemProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLAvailabilityGroupProtectableItem is the BasicWorkloadProtectableItem implementation for IaaSVMProtectableItem. +func (ispi IaaSVMProtectableItem) AsAzureVMWorkloadSQLAvailabilityGroupProtectableItem() (*AzureVMWorkloadSQLAvailabilityGroupProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLDatabaseProtectableItem is the BasicWorkloadProtectableItem implementation for IaaSVMProtectableItem. +func (ispi IaaSVMProtectableItem) AsAzureVMWorkloadSQLDatabaseProtectableItem() (*AzureVMWorkloadSQLDatabaseProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLInstanceProtectableItem is the BasicWorkloadProtectableItem implementation for IaaSVMProtectableItem. +func (ispi IaaSVMProtectableItem) AsAzureVMWorkloadSQLInstanceProtectableItem() (*AzureVMWorkloadSQLInstanceProtectableItem, bool) { + return nil, false +} + +// AsIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for IaaSVMProtectableItem. +func (ispi IaaSVMProtectableItem) AsIaaSVMProtectableItem() (*IaaSVMProtectableItem, bool) { + return &ispi, true +} + +// AsBasicIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for IaaSVMProtectableItem. +func (ispi IaaSVMProtectableItem) AsBasicIaaSVMProtectableItem() (BasicIaaSVMProtectableItem, bool) { + return &ispi, true +} + +// AsWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for IaaSVMProtectableItem. +func (ispi IaaSVMProtectableItem) AsWorkloadProtectableItem() (*WorkloadProtectableItem, bool) { + return nil, false +} + +// AsBasicWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for IaaSVMProtectableItem. +func (ispi IaaSVMProtectableItem) AsBasicWorkloadProtectableItem() (BasicWorkloadProtectableItem, bool) { + return &ispi, true +} + +// IaasVMRecoveryPoint iaaS VM workload specific backup copy. +type IaasVMRecoveryPoint struct { + // RecoveryPointType - READ-ONLY; Type of the backup copy. + RecoveryPointType *string `json:"recoveryPointType,omitempty"` + // RecoveryPointTime - READ-ONLY; Time at which this backup copy was created. + RecoveryPointTime *date.Time `json:"recoveryPointTime,omitempty"` + // RecoveryPointAdditionalInfo - READ-ONLY; Additional information associated with this backup copy. + RecoveryPointAdditionalInfo *string `json:"recoveryPointAdditionalInfo,omitempty"` + // SourceVMStorageType - READ-ONLY; Storage type of the VM whose backup copy is created. + SourceVMStorageType *string `json:"sourceVMStorageType,omitempty"` + // IsSourceVMEncrypted - READ-ONLY; Identifies whether the VM was encrypted when the backup copy is created. + IsSourceVMEncrypted *bool `json:"isSourceVMEncrypted,omitempty"` + // KeyAndSecret - Required details for recovering an encrypted VM. Applicable only when IsSourceVMEncrypted is true. + KeyAndSecret *KeyAndSecretDetails `json:"keyAndSecret,omitempty"` + // IsInstantIlrSessionActive - Is the session to recover items from this backup copy still active. + IsInstantIlrSessionActive *bool `json:"isInstantIlrSessionActive,omitempty"` + // RecoveryPointTierDetails - Recovery point tier information. + RecoveryPointTierDetails *[]RecoveryPointTierInformation `json:"recoveryPointTierDetails,omitempty"` + // IsManagedVirtualMachine - Whether VM is with Managed Disks + IsManagedVirtualMachine *bool `json:"isManagedVirtualMachine,omitempty"` + // VirtualMachineSize - Virtual Machine Size + VirtualMachineSize *string `json:"virtualMachineSize,omitempty"` + // OriginalStorageAccountOption - Original Storage Account Option + OriginalStorageAccountOption *bool `json:"originalStorageAccountOption,omitempty"` + // OsType - OS type + OsType *string `json:"osType,omitempty"` + // RecoveryPointDiskConfiguration - Disk configuration + RecoveryPointDiskConfiguration *RecoveryPointDiskConfiguration `json:"recoveryPointDiskConfiguration,omitempty"` + // Zones - Identifies the zone of the VM at the time of backup. Applicable only for zone-pinned Vms + Zones *[]string `json:"zones,omitempty"` + // RecoveryPointMoveReadinessInfo - Eligibility of RP to be moved to another tier + RecoveryPointMoveReadinessInfo map[string]*RecoveryPointMoveReadinessInfo `json:"recoveryPointMoveReadinessInfo"` + // ObjectType - Possible values include: 'ObjectTypeBasicRecoveryPointObjectTypeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureFileShareRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadPointInTimeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeGenericRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeIaasVMRecoveryPoint' + ObjectType ObjectTypeBasicRecoveryPoint `json:"objectType,omitempty"` +} + +// MarshalJSON is the custom marshaler for IaasVMRecoveryPoint. +func (ivrp IaasVMRecoveryPoint) MarshalJSON() ([]byte, error) { + ivrp.ObjectType = ObjectTypeBasicRecoveryPointObjectTypeIaasVMRecoveryPoint + objectMap := make(map[string]interface{}) + if ivrp.KeyAndSecret != nil { + objectMap["keyAndSecret"] = ivrp.KeyAndSecret + } + if ivrp.IsInstantIlrSessionActive != nil { + objectMap["isInstantIlrSessionActive"] = ivrp.IsInstantIlrSessionActive + } + if ivrp.RecoveryPointTierDetails != nil { + objectMap["recoveryPointTierDetails"] = ivrp.RecoveryPointTierDetails + } + if ivrp.IsManagedVirtualMachine != nil { + objectMap["isManagedVirtualMachine"] = ivrp.IsManagedVirtualMachine + } + if ivrp.VirtualMachineSize != nil { + objectMap["virtualMachineSize"] = ivrp.VirtualMachineSize + } + if ivrp.OriginalStorageAccountOption != nil { + objectMap["originalStorageAccountOption"] = ivrp.OriginalStorageAccountOption + } + if ivrp.OsType != nil { + objectMap["osType"] = ivrp.OsType + } + if ivrp.RecoveryPointDiskConfiguration != nil { + objectMap["recoveryPointDiskConfiguration"] = ivrp.RecoveryPointDiskConfiguration + } + if ivrp.Zones != nil { + objectMap["zones"] = ivrp.Zones + } + if ivrp.RecoveryPointMoveReadinessInfo != nil { + objectMap["recoveryPointMoveReadinessInfo"] = ivrp.RecoveryPointMoveReadinessInfo + } + if ivrp.ObjectType != "" { + objectMap["objectType"] = ivrp.ObjectType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareRecoveryPoint is the BasicRecoveryPoint implementation for IaasVMRecoveryPoint. +func (ivrp IaasVMRecoveryPoint) AsAzureFileShareRecoveryPoint() (*AzureFileShareRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for IaasVMRecoveryPoint. +func (ivrp IaasVMRecoveryPoint) AsAzureWorkloadPointInTimeRecoveryPoint() (*AzureWorkloadPointInTimeRecoveryPoint, bool) { + return nil, false +} + +// AsBasicAzureWorkloadPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for IaasVMRecoveryPoint. +func (ivrp IaasVMRecoveryPoint) AsBasicAzureWorkloadPointInTimeRecoveryPoint() (BasicAzureWorkloadPointInTimeRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadRecoveryPoint is the BasicRecoveryPoint implementation for IaasVMRecoveryPoint. +func (ivrp IaasVMRecoveryPoint) AsAzureWorkloadRecoveryPoint() (*AzureWorkloadRecoveryPoint, bool) { + return nil, false +} + +// AsBasicAzureWorkloadRecoveryPoint is the BasicRecoveryPoint implementation for IaasVMRecoveryPoint. +func (ivrp IaasVMRecoveryPoint) AsBasicAzureWorkloadRecoveryPoint() (BasicAzureWorkloadRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for IaasVMRecoveryPoint. +func (ivrp IaasVMRecoveryPoint) AsAzureWorkloadSAPHanaPointInTimeRecoveryPoint() (*AzureWorkloadSAPHanaPointInTimeRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaRecoveryPoint is the BasicRecoveryPoint implementation for IaasVMRecoveryPoint. +func (ivrp IaasVMRecoveryPoint) AsAzureWorkloadSAPHanaRecoveryPoint() (*AzureWorkloadSAPHanaRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadSQLPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for IaasVMRecoveryPoint. +func (ivrp IaasVMRecoveryPoint) AsAzureWorkloadSQLPointInTimeRecoveryPoint() (*AzureWorkloadSQLPointInTimeRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadSQLRecoveryPoint is the BasicRecoveryPoint implementation for IaasVMRecoveryPoint. +func (ivrp IaasVMRecoveryPoint) AsAzureWorkloadSQLRecoveryPoint() (*AzureWorkloadSQLRecoveryPoint, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSQLRecoveryPoint is the BasicRecoveryPoint implementation for IaasVMRecoveryPoint. +func (ivrp IaasVMRecoveryPoint) AsBasicAzureWorkloadSQLRecoveryPoint() (BasicAzureWorkloadSQLRecoveryPoint, bool) { + return nil, false +} + +// AsGenericRecoveryPoint is the BasicRecoveryPoint implementation for IaasVMRecoveryPoint. +func (ivrp IaasVMRecoveryPoint) AsGenericRecoveryPoint() (*GenericRecoveryPoint, bool) { + return nil, false +} + +// AsIaasVMRecoveryPoint is the BasicRecoveryPoint implementation for IaasVMRecoveryPoint. +func (ivrp IaasVMRecoveryPoint) AsIaasVMRecoveryPoint() (*IaasVMRecoveryPoint, bool) { + return &ivrp, true +} + +// AsRecoveryPoint is the BasicRecoveryPoint implementation for IaasVMRecoveryPoint. +func (ivrp IaasVMRecoveryPoint) AsRecoveryPoint() (*RecoveryPoint, bool) { + return nil, false +} + +// AsBasicRecoveryPoint is the BasicRecoveryPoint implementation for IaasVMRecoveryPoint. +func (ivrp IaasVMRecoveryPoint) AsBasicRecoveryPoint() (BasicRecoveryPoint, bool) { + return &ivrp, true +} + +// BasicIaasVMRestoreRequest iaaS VM workload-specific restore. +type BasicIaasVMRestoreRequest interface { + AsIaasVMRestoreWithRehydrationRequest() (*IaasVMRestoreWithRehydrationRequest, bool) + AsIaasVMRestoreRequest() (*IaasVMRestoreRequest, bool) +} + +// IaasVMRestoreRequest iaaS VM workload-specific restore. +type IaasVMRestoreRequest struct { + // RecoveryPointID - ID of the backup copy to be recovered. + RecoveryPointID *string `json:"recoveryPointId,omitempty"` + // RecoveryType - Type of this recovery. Possible values include: 'RecoveryTypeInvalid', 'RecoveryTypeOriginalLocation', 'RecoveryTypeAlternateLocation', 'RecoveryTypeRestoreDisks', 'RecoveryTypeOffline' + RecoveryType RecoveryType `json:"recoveryType,omitempty"` + // SourceResourceID - Fully qualified ARM ID of the VM which is being recovered. + SourceResourceID *string `json:"sourceResourceId,omitempty"` + // TargetVirtualMachineID - This is the complete ARM Id of the VM that will be created. + // For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + TargetVirtualMachineID *string `json:"targetVirtualMachineId,omitempty"` + // TargetResourceGroupID - This is the ARM Id of the resource group that you want to create for this Virtual machine and other artifacts. + // For e.g. /subscriptions/{subId}/resourcegroups/{rg} + TargetResourceGroupID *string `json:"targetResourceGroupId,omitempty"` + // StorageAccountID - Fully qualified ARM ID of the storage account to which the VM has to be restored. + StorageAccountID *string `json:"storageAccountId,omitempty"` + // VirtualNetworkID - This is the virtual network Id of the vnet that will be attached to the virtual machine. + // User will be validated for join action permissions in the linked access. + VirtualNetworkID *string `json:"virtualNetworkId,omitempty"` + // SubnetID - Subnet ID, is the subnet ID associated with the to be restored VM. For Classic VMs it would be + // {VnetID}/Subnet/{SubnetName} and, for the Azure Resource Manager VMs it would be ARM resource ID used to represent + // the subnet. + SubnetID *string `json:"subnetId,omitempty"` + // TargetDomainNameID - Fully qualified ARM ID of the domain name to be associated to the VM being restored. This applies only to Classic + // Virtual Machines. + TargetDomainNameID *string `json:"targetDomainNameId,omitempty"` + // Region - Region in which the virtual machine is restored. + Region *string `json:"region,omitempty"` + // AffinityGroup - Affinity group associated to VM to be restored. Used only for Classic Compute Virtual Machines. + AffinityGroup *string `json:"affinityGroup,omitempty"` + // CreateNewCloudService - Should a new cloud service be created while restoring the VM. If this is false, VM will be restored to the same + // cloud service as it was at the time of backup. + CreateNewCloudService *bool `json:"createNewCloudService,omitempty"` + // OriginalStorageAccountOption - Original Storage Account Option + OriginalStorageAccountOption *bool `json:"originalStorageAccountOption,omitempty"` + // EncryptionDetails - Details needed if the VM was encrypted at the time of backup. + EncryptionDetails *EncryptionDetails `json:"encryptionDetails,omitempty"` + // RestoreDiskLunList - List of Disk LUNs for partial restore + RestoreDiskLunList *[]int32 `json:"restoreDiskLunList,omitempty"` + // RestoreWithManagedDisks - Flag to denote of an Unmanaged disk VM should be restored with Managed disks. + RestoreWithManagedDisks *bool `json:"restoreWithManagedDisks,omitempty"` + // DiskEncryptionSetID - DiskEncryptionSet's ID - needed if the VM needs to be encrypted at rest during restore with customer managed key. + DiskEncryptionSetID *string `json:"diskEncryptionSetId,omitempty"` + // Zones - Target zone where the VM and its disks should be restored. + Zones *[]string `json:"zones,omitempty"` + // ObjectType - Possible values include: 'ObjectTypeBasicRestoreRequestObjectTypeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureFileShareRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreWithRehydrationRequest' + ObjectType ObjectTypeBasicRestoreRequest `json:"objectType,omitempty"` +} + +func unmarshalBasicIaasVMRestoreRequest(body []byte) (BasicIaasVMRestoreRequest, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["objectType"] { + case string(ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreWithRehydrationRequest): + var ivrwrr IaasVMRestoreWithRehydrationRequest + err := json.Unmarshal(body, &ivrwrr) + return ivrwrr, err + default: + var ivrr IaasVMRestoreRequest + err := json.Unmarshal(body, &ivrr) + return ivrr, err + } +} +func unmarshalBasicIaasVMRestoreRequestArray(body []byte) ([]BasicIaasVMRestoreRequest, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + ivrrArray := make([]BasicIaasVMRestoreRequest, len(rawMessages)) + + for index, rawMessage := range rawMessages { + ivrr, err := unmarshalBasicIaasVMRestoreRequest(*rawMessage) + if err != nil { + return nil, err + } + ivrrArray[index] = ivrr + } + return ivrrArray, nil +} + +// MarshalJSON is the custom marshaler for IaasVMRestoreRequest. +func (ivrr IaasVMRestoreRequest) MarshalJSON() ([]byte, error) { + ivrr.ObjectType = ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreRequest + objectMap := make(map[string]interface{}) + if ivrr.RecoveryPointID != nil { + objectMap["recoveryPointId"] = ivrr.RecoveryPointID + } + if ivrr.RecoveryType != "" { + objectMap["recoveryType"] = ivrr.RecoveryType + } + if ivrr.SourceResourceID != nil { + objectMap["sourceResourceId"] = ivrr.SourceResourceID + } + if ivrr.TargetVirtualMachineID != nil { + objectMap["targetVirtualMachineId"] = ivrr.TargetVirtualMachineID + } + if ivrr.TargetResourceGroupID != nil { + objectMap["targetResourceGroupId"] = ivrr.TargetResourceGroupID + } + if ivrr.StorageAccountID != nil { + objectMap["storageAccountId"] = ivrr.StorageAccountID + } + if ivrr.VirtualNetworkID != nil { + objectMap["virtualNetworkId"] = ivrr.VirtualNetworkID + } + if ivrr.SubnetID != nil { + objectMap["subnetId"] = ivrr.SubnetID + } + if ivrr.TargetDomainNameID != nil { + objectMap["targetDomainNameId"] = ivrr.TargetDomainNameID + } + if ivrr.Region != nil { + objectMap["region"] = ivrr.Region + } + if ivrr.AffinityGroup != nil { + objectMap["affinityGroup"] = ivrr.AffinityGroup + } + if ivrr.CreateNewCloudService != nil { + objectMap["createNewCloudService"] = ivrr.CreateNewCloudService + } + if ivrr.OriginalStorageAccountOption != nil { + objectMap["originalStorageAccountOption"] = ivrr.OriginalStorageAccountOption + } + if ivrr.EncryptionDetails != nil { + objectMap["encryptionDetails"] = ivrr.EncryptionDetails + } + if ivrr.RestoreDiskLunList != nil { + objectMap["restoreDiskLunList"] = ivrr.RestoreDiskLunList + } + if ivrr.RestoreWithManagedDisks != nil { + objectMap["restoreWithManagedDisks"] = ivrr.RestoreWithManagedDisks + } + if ivrr.DiskEncryptionSetID != nil { + objectMap["diskEncryptionSetId"] = ivrr.DiskEncryptionSetID + } + if ivrr.Zones != nil { + objectMap["zones"] = ivrr.Zones + } + if ivrr.ObjectType != "" { + objectMap["objectType"] = ivrr.ObjectType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareRestoreRequest is the BasicRestoreRequest implementation for IaasVMRestoreRequest. +func (ivrr IaasVMRestoreRequest) AsAzureFileShareRestoreRequest() (*AzureFileShareRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadPointInTimeRestoreRequest is the BasicRestoreRequest implementation for IaasVMRestoreRequest. +func (ivrr IaasVMRestoreRequest) AsAzureWorkloadPointInTimeRestoreRequest() (*AzureWorkloadPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadRestoreRequest is the BasicRestoreRequest implementation for IaasVMRestoreRequest. +func (ivrr IaasVMRestoreRequest) AsAzureWorkloadRestoreRequest() (*AzureWorkloadRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadRestoreRequest is the BasicRestoreRequest implementation for IaasVMRestoreRequest. +func (ivrr IaasVMRestoreRequest) AsBasicAzureWorkloadRestoreRequest() (BasicAzureWorkloadRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaPointInTimeRestoreRequest is the BasicRestoreRequest implementation for IaasVMRestoreRequest. +func (ivrr IaasVMRestoreRequest) AsAzureWorkloadSAPHanaPointInTimeRestoreRequest() (*AzureWorkloadSAPHanaPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSAPHanaPointInTimeRestoreRequest is the BasicRestoreRequest implementation for IaasVMRestoreRequest. +func (ivrr IaasVMRestoreRequest) AsBasicAzureWorkloadSAPHanaPointInTimeRestoreRequest() (BasicAzureWorkloadSAPHanaPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaRestoreRequest is the BasicRestoreRequest implementation for IaasVMRestoreRequest. +func (ivrr IaasVMRestoreRequest) AsAzureWorkloadSAPHanaRestoreRequest() (*AzureWorkloadSAPHanaRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSAPHanaRestoreRequest is the BasicRestoreRequest implementation for IaasVMRestoreRequest. +func (ivrr IaasVMRestoreRequest) AsBasicAzureWorkloadSAPHanaRestoreRequest() (BasicAzureWorkloadSAPHanaRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLPointInTimeRestoreRequest is the BasicRestoreRequest implementation for IaasVMRestoreRequest. +func (ivrr IaasVMRestoreRequest) AsAzureWorkloadSQLPointInTimeRestoreRequest() (*AzureWorkloadSQLPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSQLPointInTimeRestoreRequest is the BasicRestoreRequest implementation for IaasVMRestoreRequest. +func (ivrr IaasVMRestoreRequest) AsBasicAzureWorkloadSQLPointInTimeRestoreRequest() (BasicAzureWorkloadSQLPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLRestoreRequest is the BasicRestoreRequest implementation for IaasVMRestoreRequest. +func (ivrr IaasVMRestoreRequest) AsAzureWorkloadSQLRestoreRequest() (*AzureWorkloadSQLRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSQLRestoreRequest is the BasicRestoreRequest implementation for IaasVMRestoreRequest. +func (ivrr IaasVMRestoreRequest) AsBasicAzureWorkloadSQLRestoreRequest() (BasicAzureWorkloadSQLRestoreRequest, bool) { + return nil, false +} + +// AsIaasVMRestoreRequest is the BasicRestoreRequest implementation for IaasVMRestoreRequest. +func (ivrr IaasVMRestoreRequest) AsIaasVMRestoreRequest() (*IaasVMRestoreRequest, bool) { + return &ivrr, true +} + +// AsBasicIaasVMRestoreRequest is the BasicRestoreRequest implementation for IaasVMRestoreRequest. +func (ivrr IaasVMRestoreRequest) AsBasicIaasVMRestoreRequest() (BasicIaasVMRestoreRequest, bool) { + return &ivrr, true +} + +// AsAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for IaasVMRestoreRequest. +func (ivrr IaasVMRestoreRequest) AsAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest() (*AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for IaasVMRestoreRequest. +func (ivrr IaasVMRestoreRequest) AsAzureWorkloadSAPHanaRestoreWithRehydrateRequest() (*AzureWorkloadSAPHanaRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for IaasVMRestoreRequest. +func (ivrr IaasVMRestoreRequest) AsAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest() (*AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for IaasVMRestoreRequest. +func (ivrr IaasVMRestoreRequest) AsAzureWorkloadSQLRestoreWithRehydrateRequest() (*AzureWorkloadSQLRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsIaasVMRestoreWithRehydrationRequest is the BasicRestoreRequest implementation for IaasVMRestoreRequest. +func (ivrr IaasVMRestoreRequest) AsIaasVMRestoreWithRehydrationRequest() (*IaasVMRestoreWithRehydrationRequest, bool) { + return nil, false +} + +// AsRestoreRequest is the BasicRestoreRequest implementation for IaasVMRestoreRequest. +func (ivrr IaasVMRestoreRequest) AsRestoreRequest() (*RestoreRequest, bool) { + return nil, false +} + +// AsBasicRestoreRequest is the BasicRestoreRequest implementation for IaasVMRestoreRequest. +func (ivrr IaasVMRestoreRequest) AsBasicRestoreRequest() (BasicRestoreRequest, bool) { + return &ivrr, true +} + +// IaasVMRestoreWithRehydrationRequest iaaS VM workload-specific restore with integrated rehydration of +// recovery point. +type IaasVMRestoreWithRehydrationRequest struct { + // RecoveryPointRehydrationInfo - RP Rehydration Info + RecoveryPointRehydrationInfo *RecoveryPointRehydrationInfo `json:"recoveryPointRehydrationInfo,omitempty"` + // RecoveryPointID - ID of the backup copy to be recovered. + RecoveryPointID *string `json:"recoveryPointId,omitempty"` + // RecoveryType - Type of this recovery. Possible values include: 'RecoveryTypeInvalid', 'RecoveryTypeOriginalLocation', 'RecoveryTypeAlternateLocation', 'RecoveryTypeRestoreDisks', 'RecoveryTypeOffline' + RecoveryType RecoveryType `json:"recoveryType,omitempty"` + // SourceResourceID - Fully qualified ARM ID of the VM which is being recovered. + SourceResourceID *string `json:"sourceResourceId,omitempty"` + // TargetVirtualMachineID - This is the complete ARM Id of the VM that will be created. + // For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + TargetVirtualMachineID *string `json:"targetVirtualMachineId,omitempty"` + // TargetResourceGroupID - This is the ARM Id of the resource group that you want to create for this Virtual machine and other artifacts. + // For e.g. /subscriptions/{subId}/resourcegroups/{rg} + TargetResourceGroupID *string `json:"targetResourceGroupId,omitempty"` + // StorageAccountID - Fully qualified ARM ID of the storage account to which the VM has to be restored. + StorageAccountID *string `json:"storageAccountId,omitempty"` + // VirtualNetworkID - This is the virtual network Id of the vnet that will be attached to the virtual machine. + // User will be validated for join action permissions in the linked access. + VirtualNetworkID *string `json:"virtualNetworkId,omitempty"` + // SubnetID - Subnet ID, is the subnet ID associated with the to be restored VM. For Classic VMs it would be + // {VnetID}/Subnet/{SubnetName} and, for the Azure Resource Manager VMs it would be ARM resource ID used to represent + // the subnet. + SubnetID *string `json:"subnetId,omitempty"` + // TargetDomainNameID - Fully qualified ARM ID of the domain name to be associated to the VM being restored. This applies only to Classic + // Virtual Machines. + TargetDomainNameID *string `json:"targetDomainNameId,omitempty"` + // Region - Region in which the virtual machine is restored. + Region *string `json:"region,omitempty"` + // AffinityGroup - Affinity group associated to VM to be restored. Used only for Classic Compute Virtual Machines. + AffinityGroup *string `json:"affinityGroup,omitempty"` + // CreateNewCloudService - Should a new cloud service be created while restoring the VM. If this is false, VM will be restored to the same + // cloud service as it was at the time of backup. + CreateNewCloudService *bool `json:"createNewCloudService,omitempty"` + // OriginalStorageAccountOption - Original Storage Account Option + OriginalStorageAccountOption *bool `json:"originalStorageAccountOption,omitempty"` + // EncryptionDetails - Details needed if the VM was encrypted at the time of backup. + EncryptionDetails *EncryptionDetails `json:"encryptionDetails,omitempty"` + // RestoreDiskLunList - List of Disk LUNs for partial restore + RestoreDiskLunList *[]int32 `json:"restoreDiskLunList,omitempty"` + // RestoreWithManagedDisks - Flag to denote of an Unmanaged disk VM should be restored with Managed disks. + RestoreWithManagedDisks *bool `json:"restoreWithManagedDisks,omitempty"` + // DiskEncryptionSetID - DiskEncryptionSet's ID - needed if the VM needs to be encrypted at rest during restore with customer managed key. + DiskEncryptionSetID *string `json:"diskEncryptionSetId,omitempty"` + // Zones - Target zone where the VM and its disks should be restored. + Zones *[]string `json:"zones,omitempty"` + // ObjectType - Possible values include: 'ObjectTypeBasicRestoreRequestObjectTypeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureFileShareRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreWithRehydrationRequest' + ObjectType ObjectTypeBasicRestoreRequest `json:"objectType,omitempty"` +} + +// MarshalJSON is the custom marshaler for IaasVMRestoreWithRehydrationRequest. +func (ivrwrr IaasVMRestoreWithRehydrationRequest) MarshalJSON() ([]byte, error) { + ivrwrr.ObjectType = ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreWithRehydrationRequest + objectMap := make(map[string]interface{}) + if ivrwrr.RecoveryPointRehydrationInfo != nil { + objectMap["recoveryPointRehydrationInfo"] = ivrwrr.RecoveryPointRehydrationInfo + } + if ivrwrr.RecoveryPointID != nil { + objectMap["recoveryPointId"] = ivrwrr.RecoveryPointID + } + if ivrwrr.RecoveryType != "" { + objectMap["recoveryType"] = ivrwrr.RecoveryType + } + if ivrwrr.SourceResourceID != nil { + objectMap["sourceResourceId"] = ivrwrr.SourceResourceID + } + if ivrwrr.TargetVirtualMachineID != nil { + objectMap["targetVirtualMachineId"] = ivrwrr.TargetVirtualMachineID + } + if ivrwrr.TargetResourceGroupID != nil { + objectMap["targetResourceGroupId"] = ivrwrr.TargetResourceGroupID + } + if ivrwrr.StorageAccountID != nil { + objectMap["storageAccountId"] = ivrwrr.StorageAccountID + } + if ivrwrr.VirtualNetworkID != nil { + objectMap["virtualNetworkId"] = ivrwrr.VirtualNetworkID + } + if ivrwrr.SubnetID != nil { + objectMap["subnetId"] = ivrwrr.SubnetID + } + if ivrwrr.TargetDomainNameID != nil { + objectMap["targetDomainNameId"] = ivrwrr.TargetDomainNameID + } + if ivrwrr.Region != nil { + objectMap["region"] = ivrwrr.Region + } + if ivrwrr.AffinityGroup != nil { + objectMap["affinityGroup"] = ivrwrr.AffinityGroup + } + if ivrwrr.CreateNewCloudService != nil { + objectMap["createNewCloudService"] = ivrwrr.CreateNewCloudService + } + if ivrwrr.OriginalStorageAccountOption != nil { + objectMap["originalStorageAccountOption"] = ivrwrr.OriginalStorageAccountOption + } + if ivrwrr.EncryptionDetails != nil { + objectMap["encryptionDetails"] = ivrwrr.EncryptionDetails + } + if ivrwrr.RestoreDiskLunList != nil { + objectMap["restoreDiskLunList"] = ivrwrr.RestoreDiskLunList + } + if ivrwrr.RestoreWithManagedDisks != nil { + objectMap["restoreWithManagedDisks"] = ivrwrr.RestoreWithManagedDisks + } + if ivrwrr.DiskEncryptionSetID != nil { + objectMap["diskEncryptionSetId"] = ivrwrr.DiskEncryptionSetID + } + if ivrwrr.Zones != nil { + objectMap["zones"] = ivrwrr.Zones + } + if ivrwrr.ObjectType != "" { + objectMap["objectType"] = ivrwrr.ObjectType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareRestoreRequest is the BasicRestoreRequest implementation for IaasVMRestoreWithRehydrationRequest. +func (ivrwrr IaasVMRestoreWithRehydrationRequest) AsAzureFileShareRestoreRequest() (*AzureFileShareRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadPointInTimeRestoreRequest is the BasicRestoreRequest implementation for IaasVMRestoreWithRehydrationRequest. +func (ivrwrr IaasVMRestoreWithRehydrationRequest) AsAzureWorkloadPointInTimeRestoreRequest() (*AzureWorkloadPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadRestoreRequest is the BasicRestoreRequest implementation for IaasVMRestoreWithRehydrationRequest. +func (ivrwrr IaasVMRestoreWithRehydrationRequest) AsAzureWorkloadRestoreRequest() (*AzureWorkloadRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadRestoreRequest is the BasicRestoreRequest implementation for IaasVMRestoreWithRehydrationRequest. +func (ivrwrr IaasVMRestoreWithRehydrationRequest) AsBasicAzureWorkloadRestoreRequest() (BasicAzureWorkloadRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaPointInTimeRestoreRequest is the BasicRestoreRequest implementation for IaasVMRestoreWithRehydrationRequest. +func (ivrwrr IaasVMRestoreWithRehydrationRequest) AsAzureWorkloadSAPHanaPointInTimeRestoreRequest() (*AzureWorkloadSAPHanaPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSAPHanaPointInTimeRestoreRequest is the BasicRestoreRequest implementation for IaasVMRestoreWithRehydrationRequest. +func (ivrwrr IaasVMRestoreWithRehydrationRequest) AsBasicAzureWorkloadSAPHanaPointInTimeRestoreRequest() (BasicAzureWorkloadSAPHanaPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaRestoreRequest is the BasicRestoreRequest implementation for IaasVMRestoreWithRehydrationRequest. +func (ivrwrr IaasVMRestoreWithRehydrationRequest) AsAzureWorkloadSAPHanaRestoreRequest() (*AzureWorkloadSAPHanaRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSAPHanaRestoreRequest is the BasicRestoreRequest implementation for IaasVMRestoreWithRehydrationRequest. +func (ivrwrr IaasVMRestoreWithRehydrationRequest) AsBasicAzureWorkloadSAPHanaRestoreRequest() (BasicAzureWorkloadSAPHanaRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLPointInTimeRestoreRequest is the BasicRestoreRequest implementation for IaasVMRestoreWithRehydrationRequest. +func (ivrwrr IaasVMRestoreWithRehydrationRequest) AsAzureWorkloadSQLPointInTimeRestoreRequest() (*AzureWorkloadSQLPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSQLPointInTimeRestoreRequest is the BasicRestoreRequest implementation for IaasVMRestoreWithRehydrationRequest. +func (ivrwrr IaasVMRestoreWithRehydrationRequest) AsBasicAzureWorkloadSQLPointInTimeRestoreRequest() (BasicAzureWorkloadSQLPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLRestoreRequest is the BasicRestoreRequest implementation for IaasVMRestoreWithRehydrationRequest. +func (ivrwrr IaasVMRestoreWithRehydrationRequest) AsAzureWorkloadSQLRestoreRequest() (*AzureWorkloadSQLRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSQLRestoreRequest is the BasicRestoreRequest implementation for IaasVMRestoreWithRehydrationRequest. +func (ivrwrr IaasVMRestoreWithRehydrationRequest) AsBasicAzureWorkloadSQLRestoreRequest() (BasicAzureWorkloadSQLRestoreRequest, bool) { + return nil, false +} + +// AsIaasVMRestoreRequest is the BasicRestoreRequest implementation for IaasVMRestoreWithRehydrationRequest. +func (ivrwrr IaasVMRestoreWithRehydrationRequest) AsIaasVMRestoreRequest() (*IaasVMRestoreRequest, bool) { + return nil, false +} + +// AsBasicIaasVMRestoreRequest is the BasicRestoreRequest implementation for IaasVMRestoreWithRehydrationRequest. +func (ivrwrr IaasVMRestoreWithRehydrationRequest) AsBasicIaasVMRestoreRequest() (BasicIaasVMRestoreRequest, bool) { + return &ivrwrr, true +} + +// AsAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for IaasVMRestoreWithRehydrationRequest. +func (ivrwrr IaasVMRestoreWithRehydrationRequest) AsAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest() (*AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for IaasVMRestoreWithRehydrationRequest. +func (ivrwrr IaasVMRestoreWithRehydrationRequest) AsAzureWorkloadSAPHanaRestoreWithRehydrateRequest() (*AzureWorkloadSAPHanaRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for IaasVMRestoreWithRehydrationRequest. +func (ivrwrr IaasVMRestoreWithRehydrationRequest) AsAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest() (*AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for IaasVMRestoreWithRehydrationRequest. +func (ivrwrr IaasVMRestoreWithRehydrationRequest) AsAzureWorkloadSQLRestoreWithRehydrateRequest() (*AzureWorkloadSQLRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsIaasVMRestoreWithRehydrationRequest is the BasicRestoreRequest implementation for IaasVMRestoreWithRehydrationRequest. +func (ivrwrr IaasVMRestoreWithRehydrationRequest) AsIaasVMRestoreWithRehydrationRequest() (*IaasVMRestoreWithRehydrationRequest, bool) { + return &ivrwrr, true +} + +// AsRestoreRequest is the BasicRestoreRequest implementation for IaasVMRestoreWithRehydrationRequest. +func (ivrwrr IaasVMRestoreWithRehydrationRequest) AsRestoreRequest() (*RestoreRequest, bool) { + return nil, false +} + +// AsBasicRestoreRequest is the BasicRestoreRequest implementation for IaasVMRestoreWithRehydrationRequest. +func (ivrwrr IaasVMRestoreWithRehydrationRequest) AsBasicRestoreRequest() (BasicRestoreRequest, bool) { + return &ivrwrr, true +} + +// BasicILRRequest parameters to Provision ILR API. +type BasicILRRequest interface { + AsAzureFileShareProvisionILRRequest() (*AzureFileShareProvisionILRRequest, bool) + AsIaasVMILRRegistrationRequest() (*IaasVMILRRegistrationRequest, bool) + AsILRRequest() (*ILRRequest, bool) +} + +// ILRRequest parameters to Provision ILR API. +type ILRRequest struct { + // ObjectType - Possible values include: 'ObjectTypeBasicILRRequestObjectTypeILRRequest', 'ObjectTypeBasicILRRequestObjectTypeAzureFileShareProvisionILRRequest', 'ObjectTypeBasicILRRequestObjectTypeIaasVMILRRegistrationRequest' + ObjectType ObjectTypeBasicILRRequest `json:"objectType,omitempty"` +} + +func unmarshalBasicILRRequest(body []byte) (BasicILRRequest, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["objectType"] { + case string(ObjectTypeBasicILRRequestObjectTypeAzureFileShareProvisionILRRequest): + var afspir AzureFileShareProvisionILRRequest + err := json.Unmarshal(body, &afspir) + return afspir, err + case string(ObjectTypeBasicILRRequestObjectTypeIaasVMILRRegistrationRequest): + var ivrr IaasVMILRRegistrationRequest + err := json.Unmarshal(body, &ivrr) + return ivrr, err + default: + var ir ILRRequest + err := json.Unmarshal(body, &ir) + return ir, err + } +} +func unmarshalBasicILRRequestArray(body []byte) ([]BasicILRRequest, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + irArray := make([]BasicILRRequest, len(rawMessages)) + + for index, rawMessage := range rawMessages { + ir, err := unmarshalBasicILRRequest(*rawMessage) + if err != nil { + return nil, err + } + irArray[index] = ir + } + return irArray, nil +} + +// MarshalJSON is the custom marshaler for ILRRequest. +func (ir ILRRequest) MarshalJSON() ([]byte, error) { + ir.ObjectType = ObjectTypeBasicILRRequestObjectTypeILRRequest + objectMap := make(map[string]interface{}) + if ir.ObjectType != "" { + objectMap["objectType"] = ir.ObjectType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareProvisionILRRequest is the BasicILRRequest implementation for ILRRequest. +func (ir ILRRequest) AsAzureFileShareProvisionILRRequest() (*AzureFileShareProvisionILRRequest, bool) { + return nil, false +} + +// AsIaasVMILRRegistrationRequest is the BasicILRRequest implementation for ILRRequest. +func (ir ILRRequest) AsIaasVMILRRegistrationRequest() (*IaasVMILRRegistrationRequest, bool) { + return nil, false +} + +// AsILRRequest is the BasicILRRequest implementation for ILRRequest. +func (ir ILRRequest) AsILRRequest() (*ILRRequest, bool) { + return &ir, true +} + +// AsBasicILRRequest is the BasicILRRequest implementation for ILRRequest. +func (ir ILRRequest) AsBasicILRRequest() (BasicILRRequest, bool) { + return &ir, true +} + +// ILRRequestResource parameters to Provision ILR API. +type ILRRequestResource struct { + // Properties - ILRRequestResource properties + Properties BasicILRRequest `json:"properties,omitempty"` + // ID - READ-ONLY; Resource Id represents the complete path to the resource. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name associated with the resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // ETag - Optional ETag. + ETag *string `json:"eTag,omitempty"` +} + +// MarshalJSON is the custom marshaler for ILRRequestResource. +func (irr ILRRequestResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + objectMap["properties"] = irr.Properties + if irr.Location != nil { + objectMap["location"] = irr.Location + } + if irr.Tags != nil { + objectMap["tags"] = irr.Tags + } + if irr.ETag != nil { + objectMap["eTag"] = irr.ETag + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ILRRequestResource struct. +func (irr *ILRRequestResource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + properties, err := unmarshalBasicILRRequest(*v) + if err != nil { + return err + } + irr.Properties = properties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + irr.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + irr.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + irr.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + irr.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + irr.Tags = tags + } + case "eTag": + if v != nil { + var eTag string + err = json.Unmarshal(*v, &eTag) + if err != nil { + return err + } + irr.ETag = &eTag + } + } + } + + return nil +} + +// InquiryInfo details about inquired protectable items under a given container. +type InquiryInfo struct { + // Status - Inquiry Status for this container such as + // InProgress | Failed | Succeeded + Status *string `json:"status,omitempty"` + // ErrorDetail - Error Details if the Status is non-success. + ErrorDetail *ErrorDetail `json:"errorDetail,omitempty"` + // InquiryDetails - Inquiry Details which will have workload specific details. + // For e.g. - For SQL and oracle this will contain different details. + InquiryDetails *[]WorkloadInquiryDetails `json:"inquiryDetails,omitempty"` +} + +// InquiryValidation validation for inquired protectable items under a given container. +type InquiryValidation struct { + // Status - Status for the Inquiry Validation. + Status *string `json:"status,omitempty"` + // ErrorDetail - Error Detail in case the status is non-success. + ErrorDetail *ErrorDetail `json:"errorDetail,omitempty"` + // AdditionalDetail - READ-ONLY; Error Additional Detail in case the status is non-success. + AdditionalDetail *string `json:"additionalDetail,omitempty"` +} + +// MarshalJSON is the custom marshaler for InquiryValidation. +func (iv InquiryValidation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if iv.Status != nil { + objectMap["status"] = iv.Status + } + if iv.ErrorDetail != nil { + objectMap["errorDetail"] = iv.ErrorDetail + } + return json.Marshal(objectMap) +} + +// InstantItemRecoveryTarget target details for file / folder restore. +type InstantItemRecoveryTarget struct { + // ClientScripts - List of client scripts. + ClientScripts *[]ClientScriptForConnect `json:"clientScripts,omitempty"` +} + +// InstantRPAdditionalDetails ... +type InstantRPAdditionalDetails struct { + AzureBackupRGNamePrefix *string `json:"azureBackupRGNamePrefix,omitempty"` + AzureBackupRGNameSuffix *string `json:"azureBackupRGNameSuffix,omitempty"` +} + +// BasicJob defines workload agnostic properties for a job. +type BasicJob interface { + AsAzureIaaSVMJob() (*AzureIaaSVMJob, bool) + AsAzureStorageJob() (*AzureStorageJob, bool) + AsAzureWorkloadJob() (*AzureWorkloadJob, bool) + AsDpmJob() (*DpmJob, bool) + AsMabJob() (*MabJob, bool) + AsVaultJob() (*VaultJob, bool) + AsJob() (*Job, bool) +} + +// Job defines workload agnostic properties for a job. +type Job struct { + // EntityFriendlyName - Friendly name of the entity on which the current job is executing. + EntityFriendlyName *string `json:"entityFriendlyName,omitempty"` + // BackupManagementType - Backup management type to execute the current job. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // Operation - The operation name. + Operation *string `json:"operation,omitempty"` + // Status - Job status. + Status *string `json:"status,omitempty"` + // StartTime - The start time. + StartTime *date.Time `json:"startTime,omitempty"` + // EndTime - The end time. + EndTime *date.Time `json:"endTime,omitempty"` + // ActivityID - ActivityId of job. + ActivityID *string `json:"activityId,omitempty"` + // JobType - Possible values include: 'JobTypeJob', 'JobTypeAzureIaaSVMJob', 'JobTypeAzureStorageJob', 'JobTypeAzureWorkloadJob', 'JobTypeDpmJob', 'JobTypeMabJob', 'JobTypeVaultJob' + JobType JobType `json:"jobType,omitempty"` +} + +func unmarshalBasicJob(body []byte) (BasicJob, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["jobType"] { + case string(JobTypeAzureIaaSVMJob): + var aisj AzureIaaSVMJob + err := json.Unmarshal(body, &aisj) + return aisj, err + case string(JobTypeAzureStorageJob): + var asj AzureStorageJob + err := json.Unmarshal(body, &asj) + return asj, err + case string(JobTypeAzureWorkloadJob): + var awj AzureWorkloadJob + err := json.Unmarshal(body, &awj) + return awj, err + case string(JobTypeDpmJob): + var dj DpmJob + err := json.Unmarshal(body, &dj) + return dj, err + case string(JobTypeMabJob): + var mj MabJob + err := json.Unmarshal(body, &mj) + return mj, err + case string(JobTypeVaultJob): + var vj VaultJob + err := json.Unmarshal(body, &vj) + return vj, err + default: + var j Job + err := json.Unmarshal(body, &j) + return j, err + } +} +func unmarshalBasicJobArray(body []byte) ([]BasicJob, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + jArray := make([]BasicJob, len(rawMessages)) + + for index, rawMessage := range rawMessages { + j, err := unmarshalBasicJob(*rawMessage) + if err != nil { + return nil, err + } + jArray[index] = j + } + return jArray, nil +} + +// MarshalJSON is the custom marshaler for Job. +func (j Job) MarshalJSON() ([]byte, error) { + j.JobType = JobTypeJob + objectMap := make(map[string]interface{}) + if j.EntityFriendlyName != nil { + objectMap["entityFriendlyName"] = j.EntityFriendlyName + } + if j.BackupManagementType != "" { + objectMap["backupManagementType"] = j.BackupManagementType + } + if j.Operation != nil { + objectMap["operation"] = j.Operation + } + if j.Status != nil { + objectMap["status"] = j.Status + } + if j.StartTime != nil { + objectMap["startTime"] = j.StartTime + } + if j.EndTime != nil { + objectMap["endTime"] = j.EndTime + } + if j.ActivityID != nil { + objectMap["activityId"] = j.ActivityID + } + if j.JobType != "" { + objectMap["jobType"] = j.JobType + } + return json.Marshal(objectMap) +} + +// AsAzureIaaSVMJob is the BasicJob implementation for Job. +func (j Job) AsAzureIaaSVMJob() (*AzureIaaSVMJob, bool) { + return nil, false +} + +// AsAzureStorageJob is the BasicJob implementation for Job. +func (j Job) AsAzureStorageJob() (*AzureStorageJob, bool) { + return nil, false +} + +// AsAzureWorkloadJob is the BasicJob implementation for Job. +func (j Job) AsAzureWorkloadJob() (*AzureWorkloadJob, bool) { + return nil, false +} + +// AsDpmJob is the BasicJob implementation for Job. +func (j Job) AsDpmJob() (*DpmJob, bool) { + return nil, false +} + +// AsMabJob is the BasicJob implementation for Job. +func (j Job) AsMabJob() (*MabJob, bool) { + return nil, false +} + +// AsVaultJob is the BasicJob implementation for Job. +func (j Job) AsVaultJob() (*VaultJob, bool) { + return nil, false +} + +// AsJob is the BasicJob implementation for Job. +func (j Job) AsJob() (*Job, bool) { + return &j, true +} + +// AsBasicJob is the BasicJob implementation for Job. +func (j Job) AsBasicJob() (BasicJob, bool) { + return &j, true +} + +// JobQueryObject filters to list the jobs. +type JobQueryObject struct { + // Status - Status of the job. Possible values include: 'JobStatusInvalid', 'JobStatusInProgress', 'JobStatusCompleted', 'JobStatusFailed', 'JobStatusCompletedWithWarnings', 'JobStatusCancelled', 'JobStatusCancelling' + Status JobStatus `json:"status,omitempty"` + // BackupManagementType - Type of backup management for the job. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // Operation - Type of operation. Possible values include: 'JobOperationTypeInvalid', 'JobOperationTypeRegister', 'JobOperationTypeUnRegister', 'JobOperationTypeConfigureBackup', 'JobOperationTypeBackup', 'JobOperationTypeRestore', 'JobOperationTypeDisableBackup', 'JobOperationTypeDeleteBackupData', 'JobOperationTypeCrossRegionRestore', 'JobOperationTypeUndelete', 'JobOperationTypeUpdateCustomerManagedKey' + Operation JobOperationType `json:"operation,omitempty"` + // JobID - JobID represents the job uniquely. + JobID *string `json:"jobId,omitempty"` + // StartTime - Job has started at this time. Value is in UTC. + StartTime *date.Time `json:"startTime,omitempty"` + // EndTime - Job has ended at this time. Value is in UTC. + EndTime *date.Time `json:"endTime,omitempty"` +} + +// JobResource defines workload agnostic properties for a job. +type JobResource struct { + autorest.Response `json:"-"` + // Properties - JobResource properties + Properties BasicJob `json:"properties,omitempty"` + // ID - READ-ONLY; Resource Id represents the complete path to the resource. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name associated with the resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // ETag - Optional ETag. + ETag *string `json:"eTag,omitempty"` +} + +// MarshalJSON is the custom marshaler for JobResource. +func (jr JobResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + objectMap["properties"] = jr.Properties + if jr.Location != nil { + objectMap["location"] = jr.Location + } + if jr.Tags != nil { + objectMap["tags"] = jr.Tags + } + if jr.ETag != nil { + objectMap["eTag"] = jr.ETag + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for JobResource struct. +func (jr *JobResource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + properties, err := unmarshalBasicJob(*v) + if err != nil { + return err + } + jr.Properties = properties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + jr.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + jr.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + jr.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + jr.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + jr.Tags = tags + } + case "eTag": + if v != nil { + var eTag string + err = json.Unmarshal(*v, &eTag) + if err != nil { + return err + } + jr.ETag = &eTag + } + } + } + + return nil +} + +// JobResourceList list of Job resources +type JobResourceList struct { + autorest.Response `json:"-"` + // Value - List of resources. + Value *[]JobResource `json:"value,omitempty"` + // NextLink - The uri to fetch the next page of resources. Call ListNext() fetches next page of resources. + NextLink *string `json:"nextLink,omitempty"` +} + +// JobResourceListIterator provides access to a complete listing of JobResource values. +type JobResourceListIterator struct { + i int + page JobResourceListPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *JobResourceListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/JobResourceListIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *JobResourceListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter JobResourceListIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter JobResourceListIterator) Response() JobResourceList { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter JobResourceListIterator) Value() JobResource { + if !iter.page.NotDone() { + return JobResource{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the JobResourceListIterator type. +func NewJobResourceListIterator(page JobResourceListPage) JobResourceListIterator { + return JobResourceListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (jrl JobResourceList) IsEmpty() bool { + return jrl.Value == nil || len(*jrl.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (jrl JobResourceList) hasNextLink() bool { + return jrl.NextLink != nil && len(*jrl.NextLink) != 0 +} + +// jobResourceListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (jrl JobResourceList) jobResourceListPreparer(ctx context.Context) (*http.Request, error) { + if !jrl.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(jrl.NextLink))) +} + +// JobResourceListPage contains a page of JobResource values. +type JobResourceListPage struct { + fn func(context.Context, JobResourceList) (JobResourceList, error) + jrl JobResourceList +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *JobResourceListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/JobResourceListPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.jrl) + if err != nil { + return err + } + page.jrl = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *JobResourceListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page JobResourceListPage) NotDone() bool { + return !page.jrl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page JobResourceListPage) Response() JobResourceList { + return page.jrl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page JobResourceListPage) Values() []JobResource { + if page.jrl.IsEmpty() { + return nil + } + return *page.jrl.Value +} + +// Creates a new instance of the JobResourceListPage type. +func NewJobResourceListPage(cur JobResourceList, getNextPage func(context.Context, JobResourceList) (JobResourceList, error)) JobResourceListPage { + return JobResourceListPage{ + fn: getNextPage, + jrl: cur, + } +} + +// KEKDetails KEK is encryption key for BEK. +type KEKDetails struct { + // KeyURL - Key is KEK. + KeyURL *string `json:"keyUrl,omitempty"` + // KeyVaultID - Key Vault ID where this Key is stored. + KeyVaultID *string `json:"keyVaultId,omitempty"` + // KeyBackupData - KEK data. + KeyBackupData *string `json:"keyBackupData,omitempty"` +} + +// KeyAndSecretDetails BEK is bitlocker key. +// KEK is encryption key for BEK +// If the VM was encrypted then we will store following details : +// 1. Secret(BEK) - Url + Backup Data + vaultId. +// 2. Key(KEK) - Url + Backup Data + vaultId. +// 3. EncryptionMechanism +// BEK and KEK can potentially have different vault ids. +type KeyAndSecretDetails struct { + // KekDetails - KEK is encryption key for BEK. + KekDetails *KEKDetails `json:"kekDetails,omitempty"` + // BekDetails - BEK is bitlocker encryption key. + BekDetails *BEKDetails `json:"bekDetails,omitempty"` + // EncryptionMechanism - Encryption mechanism: None/ SinglePass/ DoublePass + EncryptionMechanism *string `json:"encryptionMechanism,omitempty"` +} + +// KPIResourceHealthDetails KPI Resource Health Details +type KPIResourceHealthDetails struct { + // ResourceHealthStatus - Resource Health Status. Possible values include: 'ResourceHealthStatusHealthy', 'ResourceHealthStatusTransientDegraded', 'ResourceHealthStatusPersistentDegraded', 'ResourceHealthStatusTransientUnhealthy', 'ResourceHealthStatusPersistentUnhealthy', 'ResourceHealthStatusInvalid' + ResourceHealthStatus ResourceHealthStatus `json:"resourceHealthStatus,omitempty"` + // ResourceHealthDetails - Resource Health Status + ResourceHealthDetails *[]ResourceHealthDetails `json:"resourceHealthDetails,omitempty"` +} + +// ListRecoveryPointsRecommendedForMoveRequest listRecoveryPointsRecommendedForMoveRequest Request +type ListRecoveryPointsRecommendedForMoveRequest struct { + // ObjectType - Gets the class type. + ObjectType *string `json:"objectType,omitempty"` + // ExcludedRPList - List of Recovery Points excluded from Move + ExcludedRPList *[]string `json:"excludedRPList,omitempty"` +} + +// LogSchedulePolicy log policy schedule. +type LogSchedulePolicy struct { + // ScheduleFrequencyInMins - Frequency of the log schedule operation of this policy in minutes. + ScheduleFrequencyInMins *int32 `json:"scheduleFrequencyInMins,omitempty"` + // SchedulePolicyType - Possible values include: 'SchedulePolicyTypeSchedulePolicy', 'SchedulePolicyTypeLogSchedulePolicy', 'SchedulePolicyTypeLongTermSchedulePolicy', 'SchedulePolicyTypeSimpleSchedulePolicy' + SchedulePolicyType SchedulePolicyType `json:"schedulePolicyType,omitempty"` +} + +// MarshalJSON is the custom marshaler for LogSchedulePolicy. +func (lsp LogSchedulePolicy) MarshalJSON() ([]byte, error) { + lsp.SchedulePolicyType = SchedulePolicyTypeLogSchedulePolicy + objectMap := make(map[string]interface{}) + if lsp.ScheduleFrequencyInMins != nil { + objectMap["scheduleFrequencyInMins"] = lsp.ScheduleFrequencyInMins + } + if lsp.SchedulePolicyType != "" { + objectMap["schedulePolicyType"] = lsp.SchedulePolicyType + } + return json.Marshal(objectMap) +} + +// AsLogSchedulePolicy is the BasicSchedulePolicy implementation for LogSchedulePolicy. +func (lsp LogSchedulePolicy) AsLogSchedulePolicy() (*LogSchedulePolicy, bool) { + return &lsp, true +} + +// AsLongTermSchedulePolicy is the BasicSchedulePolicy implementation for LogSchedulePolicy. +func (lsp LogSchedulePolicy) AsLongTermSchedulePolicy() (*LongTermSchedulePolicy, bool) { + return nil, false +} + +// AsSimpleSchedulePolicy is the BasicSchedulePolicy implementation for LogSchedulePolicy. +func (lsp LogSchedulePolicy) AsSimpleSchedulePolicy() (*SimpleSchedulePolicy, bool) { + return nil, false +} + +// AsSchedulePolicy is the BasicSchedulePolicy implementation for LogSchedulePolicy. +func (lsp LogSchedulePolicy) AsSchedulePolicy() (*SchedulePolicy, bool) { + return nil, false +} + +// AsBasicSchedulePolicy is the BasicSchedulePolicy implementation for LogSchedulePolicy. +func (lsp LogSchedulePolicy) AsBasicSchedulePolicy() (BasicSchedulePolicy, bool) { + return &lsp, true +} + +// LongTermRetentionPolicy long term retention policy. +type LongTermRetentionPolicy struct { + // DailySchedule - Daily retention schedule of the protection policy. + DailySchedule *DailyRetentionSchedule `json:"dailySchedule,omitempty"` + // WeeklySchedule - Weekly retention schedule of the protection policy. + WeeklySchedule *WeeklyRetentionSchedule `json:"weeklySchedule,omitempty"` + // MonthlySchedule - Monthly retention schedule of the protection policy. + MonthlySchedule *MonthlyRetentionSchedule `json:"monthlySchedule,omitempty"` + // YearlySchedule - Yearly retention schedule of the protection policy. + YearlySchedule *YearlyRetentionSchedule `json:"yearlySchedule,omitempty"` + // RetentionPolicyType - Possible values include: 'RetentionPolicyTypeRetentionPolicy', 'RetentionPolicyTypeLongTermRetentionPolicy', 'RetentionPolicyTypeSimpleRetentionPolicy' + RetentionPolicyType RetentionPolicyType `json:"retentionPolicyType,omitempty"` +} + +// MarshalJSON is the custom marshaler for LongTermRetentionPolicy. +func (ltrp LongTermRetentionPolicy) MarshalJSON() ([]byte, error) { + ltrp.RetentionPolicyType = RetentionPolicyTypeLongTermRetentionPolicy + objectMap := make(map[string]interface{}) + if ltrp.DailySchedule != nil { + objectMap["dailySchedule"] = ltrp.DailySchedule + } + if ltrp.WeeklySchedule != nil { + objectMap["weeklySchedule"] = ltrp.WeeklySchedule + } + if ltrp.MonthlySchedule != nil { + objectMap["monthlySchedule"] = ltrp.MonthlySchedule + } + if ltrp.YearlySchedule != nil { + objectMap["yearlySchedule"] = ltrp.YearlySchedule + } + if ltrp.RetentionPolicyType != "" { + objectMap["retentionPolicyType"] = ltrp.RetentionPolicyType + } + return json.Marshal(objectMap) +} + +// AsLongTermRetentionPolicy is the BasicRetentionPolicy implementation for LongTermRetentionPolicy. +func (ltrp LongTermRetentionPolicy) AsLongTermRetentionPolicy() (*LongTermRetentionPolicy, bool) { + return <rp, true +} + +// AsSimpleRetentionPolicy is the BasicRetentionPolicy implementation for LongTermRetentionPolicy. +func (ltrp LongTermRetentionPolicy) AsSimpleRetentionPolicy() (*SimpleRetentionPolicy, bool) { + return nil, false +} + +// AsRetentionPolicy is the BasicRetentionPolicy implementation for LongTermRetentionPolicy. +func (ltrp LongTermRetentionPolicy) AsRetentionPolicy() (*RetentionPolicy, bool) { + return nil, false +} + +// AsBasicRetentionPolicy is the BasicRetentionPolicy implementation for LongTermRetentionPolicy. +func (ltrp LongTermRetentionPolicy) AsBasicRetentionPolicy() (BasicRetentionPolicy, bool) { + return <rp, true +} + +// LongTermSchedulePolicy long term policy schedule. +type LongTermSchedulePolicy struct { + // SchedulePolicyType - Possible values include: 'SchedulePolicyTypeSchedulePolicy', 'SchedulePolicyTypeLogSchedulePolicy', 'SchedulePolicyTypeLongTermSchedulePolicy', 'SchedulePolicyTypeSimpleSchedulePolicy' + SchedulePolicyType SchedulePolicyType `json:"schedulePolicyType,omitempty"` +} + +// MarshalJSON is the custom marshaler for LongTermSchedulePolicy. +func (ltsp LongTermSchedulePolicy) MarshalJSON() ([]byte, error) { + ltsp.SchedulePolicyType = SchedulePolicyTypeLongTermSchedulePolicy + objectMap := make(map[string]interface{}) + if ltsp.SchedulePolicyType != "" { + objectMap["schedulePolicyType"] = ltsp.SchedulePolicyType + } + return json.Marshal(objectMap) +} + +// AsLogSchedulePolicy is the BasicSchedulePolicy implementation for LongTermSchedulePolicy. +func (ltsp LongTermSchedulePolicy) AsLogSchedulePolicy() (*LogSchedulePolicy, bool) { + return nil, false +} + +// AsLongTermSchedulePolicy is the BasicSchedulePolicy implementation for LongTermSchedulePolicy. +func (ltsp LongTermSchedulePolicy) AsLongTermSchedulePolicy() (*LongTermSchedulePolicy, bool) { + return <sp, true +} + +// AsSimpleSchedulePolicy is the BasicSchedulePolicy implementation for LongTermSchedulePolicy. +func (ltsp LongTermSchedulePolicy) AsSimpleSchedulePolicy() (*SimpleSchedulePolicy, bool) { + return nil, false +} + +// AsSchedulePolicy is the BasicSchedulePolicy implementation for LongTermSchedulePolicy. +func (ltsp LongTermSchedulePolicy) AsSchedulePolicy() (*SchedulePolicy, bool) { + return nil, false +} + +// AsBasicSchedulePolicy is the BasicSchedulePolicy implementation for LongTermSchedulePolicy. +func (ltsp LongTermSchedulePolicy) AsBasicSchedulePolicy() (BasicSchedulePolicy, bool) { + return <sp, true +} + +// MabContainer container with items backed up using MAB backup engine. +type MabContainer struct { + // CanReRegister - Can the container be registered one more time. + CanReRegister *bool `json:"canReRegister,omitempty"` + // ContainerID - ContainerID represents the container. + ContainerID *int64 `json:"containerId,omitempty"` + // ProtectedItemCount - Number of items backed up in this container. + ProtectedItemCount *int64 `json:"protectedItemCount,omitempty"` + // AgentVersion - Agent version of this container. + AgentVersion *string `json:"agentVersion,omitempty"` + // ExtendedInfo - Additional information for this container + ExtendedInfo *MabContainerExtendedInfo `json:"extendedInfo,omitempty"` + // MabContainerHealthDetails - Health details on this mab container. + MabContainerHealthDetails *[]MABContainerHealthDetails `json:"mabContainerHealthDetails,omitempty"` + // ContainerHealthState - Health state of mab container. + ContainerHealthState *string `json:"containerHealthState,omitempty"` + // FriendlyName - Friendly name of the container. + FriendlyName *string `json:"friendlyName,omitempty"` + // BackupManagementType - Type of backup management for the container. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // RegistrationStatus - Status of registration of the container with the Recovery Services Vault. + RegistrationStatus *string `json:"registrationStatus,omitempty"` + // HealthStatus - Status of health of the container. + HealthStatus *string `json:"healthStatus,omitempty"` + // ContainerType - Possible values include: 'ContainerTypeBasicProtectionContainerContainerTypeProtectionContainer', 'ContainerTypeBasicProtectionContainerContainerTypeAzureBackupServerContainer', 'ContainerTypeBasicProtectionContainerContainerTypeMicrosoftClassicComputevirtualMachines', 'ContainerTypeBasicProtectionContainerContainerTypeMicrosoftComputevirtualMachines', 'ContainerTypeBasicProtectionContainerContainerTypeSQLAGWorkLoadContainer', 'ContainerTypeBasicProtectionContainerContainerTypeAzureSQLContainer', 'ContainerTypeBasicProtectionContainerContainerTypeStorageContainer', 'ContainerTypeBasicProtectionContainerContainerTypeVMAppContainer', 'ContainerTypeBasicProtectionContainerContainerTypeAzureWorkloadContainer', 'ContainerTypeBasicProtectionContainerContainerTypeDPMContainer', 'ContainerTypeBasicProtectionContainerContainerTypeGenericContainer', 'ContainerTypeBasicProtectionContainerContainerTypeIaaSVMContainer', 'ContainerTypeBasicProtectionContainerContainerTypeWindows' + ContainerType ContainerTypeBasicProtectionContainer `json:"containerType,omitempty"` +} + +// MarshalJSON is the custom marshaler for MabContainer. +func (mc MabContainer) MarshalJSON() ([]byte, error) { + mc.ContainerType = ContainerTypeBasicProtectionContainerContainerTypeWindows + objectMap := make(map[string]interface{}) + if mc.CanReRegister != nil { + objectMap["canReRegister"] = mc.CanReRegister + } + if mc.ContainerID != nil { + objectMap["containerId"] = mc.ContainerID + } + if mc.ProtectedItemCount != nil { + objectMap["protectedItemCount"] = mc.ProtectedItemCount + } + if mc.AgentVersion != nil { + objectMap["agentVersion"] = mc.AgentVersion + } + if mc.ExtendedInfo != nil { + objectMap["extendedInfo"] = mc.ExtendedInfo + } + if mc.MabContainerHealthDetails != nil { + objectMap["mabContainerHealthDetails"] = mc.MabContainerHealthDetails + } + if mc.ContainerHealthState != nil { + objectMap["containerHealthState"] = mc.ContainerHealthState + } + if mc.FriendlyName != nil { + objectMap["friendlyName"] = mc.FriendlyName + } + if mc.BackupManagementType != "" { + objectMap["backupManagementType"] = mc.BackupManagementType + } + if mc.RegistrationStatus != nil { + objectMap["registrationStatus"] = mc.RegistrationStatus + } + if mc.HealthStatus != nil { + objectMap["healthStatus"] = mc.HealthStatus + } + if mc.ContainerType != "" { + objectMap["containerType"] = mc.ContainerType + } + return json.Marshal(objectMap) +} + +// AsAzureBackupServerContainer is the BasicProtectionContainer implementation for MabContainer. +func (mc MabContainer) AsAzureBackupServerContainer() (*AzureBackupServerContainer, bool) { + return nil, false +} + +// AsAzureIaaSClassicComputeVMContainer is the BasicProtectionContainer implementation for MabContainer. +func (mc MabContainer) AsAzureIaaSClassicComputeVMContainer() (*AzureIaaSClassicComputeVMContainer, bool) { + return nil, false +} + +// AsAzureIaaSComputeVMContainer is the BasicProtectionContainer implementation for MabContainer. +func (mc MabContainer) AsAzureIaaSComputeVMContainer() (*AzureIaaSComputeVMContainer, bool) { + return nil, false +} + +// AsAzureSQLAGWorkloadContainerProtectionContainer is the BasicProtectionContainer implementation for MabContainer. +func (mc MabContainer) AsAzureSQLAGWorkloadContainerProtectionContainer() (*AzureSQLAGWorkloadContainerProtectionContainer, bool) { + return nil, false +} + +// AsAzureSQLContainer is the BasicProtectionContainer implementation for MabContainer. +func (mc MabContainer) AsAzureSQLContainer() (*AzureSQLContainer, bool) { + return nil, false +} + +// AsAzureStorageContainer is the BasicProtectionContainer implementation for MabContainer. +func (mc MabContainer) AsAzureStorageContainer() (*AzureStorageContainer, bool) { + return nil, false +} + +// AsAzureVMAppContainerProtectionContainer is the BasicProtectionContainer implementation for MabContainer. +func (mc MabContainer) AsAzureVMAppContainerProtectionContainer() (*AzureVMAppContainerProtectionContainer, bool) { + return nil, false +} + +// AsAzureWorkloadContainer is the BasicProtectionContainer implementation for MabContainer. +func (mc MabContainer) AsAzureWorkloadContainer() (*AzureWorkloadContainer, bool) { + return nil, false +} + +// AsBasicAzureWorkloadContainer is the BasicProtectionContainer implementation for MabContainer. +func (mc MabContainer) AsBasicAzureWorkloadContainer() (BasicAzureWorkloadContainer, bool) { + return nil, false +} + +// AsDpmContainer is the BasicProtectionContainer implementation for MabContainer. +func (mc MabContainer) AsDpmContainer() (*DpmContainer, bool) { + return nil, false +} + +// AsBasicDpmContainer is the BasicProtectionContainer implementation for MabContainer. +func (mc MabContainer) AsBasicDpmContainer() (BasicDpmContainer, bool) { + return nil, false +} + +// AsGenericContainer is the BasicProtectionContainer implementation for MabContainer. +func (mc MabContainer) AsGenericContainer() (*GenericContainer, bool) { + return nil, false +} + +// AsIaaSVMContainer is the BasicProtectionContainer implementation for MabContainer. +func (mc MabContainer) AsIaaSVMContainer() (*IaaSVMContainer, bool) { + return nil, false +} + +// AsBasicIaaSVMContainer is the BasicProtectionContainer implementation for MabContainer. +func (mc MabContainer) AsBasicIaaSVMContainer() (BasicIaaSVMContainer, bool) { + return nil, false +} + +// AsMabContainer is the BasicProtectionContainer implementation for MabContainer. +func (mc MabContainer) AsMabContainer() (*MabContainer, bool) { + return &mc, true +} + +// AsProtectionContainer is the BasicProtectionContainer implementation for MabContainer. +func (mc MabContainer) AsProtectionContainer() (*ProtectionContainer, bool) { + return nil, false +} + +// AsBasicProtectionContainer is the BasicProtectionContainer implementation for MabContainer. +func (mc MabContainer) AsBasicProtectionContainer() (BasicProtectionContainer, bool) { + return &mc, true +} + +// MabContainerExtendedInfo additional information of the container. +type MabContainerExtendedInfo struct { + // LastRefreshedAt - Time stamp when this container was refreshed. + LastRefreshedAt *date.Time `json:"lastRefreshedAt,omitempty"` + // BackupItemType - Type of backup items associated with this container. Possible values include: 'ItemTypeInvalid', 'ItemTypeVM', 'ItemTypeFileFolder', 'ItemTypeAzureSQLDb', 'ItemTypeSQLDB', 'ItemTypeExchange', 'ItemTypeSharepoint', 'ItemTypeVMwareVM', 'ItemTypeSystemState', 'ItemTypeClient', 'ItemTypeGenericDataSource', 'ItemTypeSQLDataBase', 'ItemTypeAzureFileShare', 'ItemTypeSAPHanaDatabase', 'ItemTypeSAPAseDatabase' + BackupItemType ItemType `json:"backupItemType,omitempty"` + // BackupItems - List of backup items associated with this container. + BackupItems *[]string `json:"backupItems,omitempty"` + // PolicyName - Backup policy associated with this container. + PolicyName *string `json:"policyName,omitempty"` + // LastBackupStatus - Latest backup status of this container. + LastBackupStatus *string `json:"lastBackupStatus,omitempty"` +} + +// MABContainerHealthDetails MAB workload-specific Health Details. +type MABContainerHealthDetails struct { + // Code - Health Code + Code *int32 `json:"code,omitempty"` + // Title - Health Title + Title *string `json:"title,omitempty"` + // Message - Health Message + Message *string `json:"message,omitempty"` + // Recommendations - Health Recommended Actions + Recommendations *[]string `json:"recommendations,omitempty"` +} + +// MabErrorInfo MAB workload-specific error information. +type MabErrorInfo struct { + // ErrorString - READ-ONLY; Localized error string. + ErrorString *string `json:"errorString,omitempty"` + // Recommendations - READ-ONLY; List of localized recommendations. + Recommendations *[]string `json:"recommendations,omitempty"` +} + +// MarshalJSON is the custom marshaler for MabErrorInfo. +func (mei MabErrorInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// MabFileFolderProtectedItem MAB workload-specific backup item. +type MabFileFolderProtectedItem struct { + // FriendlyName - Friendly name of this backup item. + FriendlyName *string `json:"friendlyName,omitempty"` + // ComputerName - Name of the computer associated with this backup item. + ComputerName *string `json:"computerName,omitempty"` + // LastBackupStatus - Status of last backup operation. + LastBackupStatus *string `json:"lastBackupStatus,omitempty"` + // LastBackupTime - Timestamp of the last backup operation on this backup item. + LastBackupTime *date.Time `json:"lastBackupTime,omitempty"` + // ProtectionState - Protected, ProtectionStopped, IRPending or ProtectionError + ProtectionState *string `json:"protectionState,omitempty"` + // DeferredDeleteSyncTimeInUTC - Sync time for deferred deletion in UTC + DeferredDeleteSyncTimeInUTC *int64 `json:"deferredDeleteSyncTimeInUTC,omitempty"` + // ExtendedInfo - Additional information with this backup item. + ExtendedInfo *MabFileFolderProtectedItemExtendedInfo `json:"extendedInfo,omitempty"` + // BackupManagementType - Type of backup management for the backed up item. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // WorkloadType - Type of workload this item represents. Possible values include: 'DataSourceTypeInvalid', 'DataSourceTypeVM', 'DataSourceTypeFileFolder', 'DataSourceTypeAzureSQLDb', 'DataSourceTypeSQLDB', 'DataSourceTypeExchange', 'DataSourceTypeSharepoint', 'DataSourceTypeVMwareVM', 'DataSourceTypeSystemState', 'DataSourceTypeClient', 'DataSourceTypeGenericDataSource', 'DataSourceTypeSQLDataBase', 'DataSourceTypeAzureFileShare', 'DataSourceTypeSAPHanaDatabase', 'DataSourceTypeSAPAseDatabase' + WorkloadType DataSourceType `json:"workloadType,omitempty"` + // ContainerName - Unique name of container + ContainerName *string `json:"containerName,omitempty"` + // SourceResourceID - ARM ID of the resource to be backed up. + SourceResourceID *string `json:"sourceResourceId,omitempty"` + // PolicyID - ID of the backup policy with which this item is backed up. + PolicyID *string `json:"policyId,omitempty"` + // LastRecoveryPoint - Timestamp when the last (latest) backup copy was created for this backup item. + LastRecoveryPoint *date.Time `json:"lastRecoveryPoint,omitempty"` + // BackupSetName - Name of the backup set the backup item belongs to + BackupSetName *string `json:"backupSetName,omitempty"` + // CreateMode - Create mode to indicate recovery of existing soft deleted data source or creation of new data source. Possible values include: 'CreateModeInvalid', 'CreateModeDefault', 'CreateModeRecover' + CreateMode CreateMode `json:"createMode,omitempty"` + // DeferredDeleteTimeInUTC - Time for deferred deletion in UTC + DeferredDeleteTimeInUTC *date.Time `json:"deferredDeleteTimeInUTC,omitempty"` + // IsScheduledForDeferredDelete - Flag to identify whether the DS is scheduled for deferred delete + IsScheduledForDeferredDelete *bool `json:"isScheduledForDeferredDelete,omitempty"` + // DeferredDeleteTimeRemaining - Time remaining before the DS marked for deferred delete is permanently deleted + DeferredDeleteTimeRemaining *string `json:"deferredDeleteTimeRemaining,omitempty"` + // IsDeferredDeleteScheduleUpcoming - Flag to identify whether the deferred deleted DS is to be purged soon + IsDeferredDeleteScheduleUpcoming *bool `json:"isDeferredDeleteScheduleUpcoming,omitempty"` + // IsRehydrate - Flag to identify that deferred deleted DS is to be moved into Pause state + IsRehydrate *bool `json:"isRehydrate,omitempty"` + // ProtectedItemType - Possible values include: 'ProtectedItemTypeProtectedItem', 'ProtectedItemTypeAzureFileShareProtectedItem', 'ProtectedItemTypeMicrosoftClassicComputevirtualMachines', 'ProtectedItemTypeMicrosoftComputevirtualMachines', 'ProtectedItemTypeAzureIaaSVMProtectedItem', 'ProtectedItemTypeMicrosoftSqlserversdatabases', 'ProtectedItemTypeAzureVMWorkloadProtectedItem', 'ProtectedItemTypeAzureVMWorkloadSAPAseDatabase', 'ProtectedItemTypeAzureVMWorkloadSAPHanaDatabase', 'ProtectedItemTypeAzureVMWorkloadSQLDatabase', 'ProtectedItemTypeDPMProtectedItem', 'ProtectedItemTypeGenericProtectedItem', 'ProtectedItemTypeMabFileFolderProtectedItem' + ProtectedItemType ProtectedItemType `json:"protectedItemType,omitempty"` +} + +// MarshalJSON is the custom marshaler for MabFileFolderProtectedItem. +func (mffpi MabFileFolderProtectedItem) MarshalJSON() ([]byte, error) { + mffpi.ProtectedItemType = ProtectedItemTypeMabFileFolderProtectedItem + objectMap := make(map[string]interface{}) + if mffpi.FriendlyName != nil { + objectMap["friendlyName"] = mffpi.FriendlyName + } + if mffpi.ComputerName != nil { + objectMap["computerName"] = mffpi.ComputerName + } + if mffpi.LastBackupStatus != nil { + objectMap["lastBackupStatus"] = mffpi.LastBackupStatus + } + if mffpi.LastBackupTime != nil { + objectMap["lastBackupTime"] = mffpi.LastBackupTime + } + if mffpi.ProtectionState != nil { + objectMap["protectionState"] = mffpi.ProtectionState + } + if mffpi.DeferredDeleteSyncTimeInUTC != nil { + objectMap["deferredDeleteSyncTimeInUTC"] = mffpi.DeferredDeleteSyncTimeInUTC + } + if mffpi.ExtendedInfo != nil { + objectMap["extendedInfo"] = mffpi.ExtendedInfo + } + if mffpi.BackupManagementType != "" { + objectMap["backupManagementType"] = mffpi.BackupManagementType + } + if mffpi.WorkloadType != "" { + objectMap["workloadType"] = mffpi.WorkloadType + } + if mffpi.ContainerName != nil { + objectMap["containerName"] = mffpi.ContainerName + } + if mffpi.SourceResourceID != nil { + objectMap["sourceResourceId"] = mffpi.SourceResourceID + } + if mffpi.PolicyID != nil { + objectMap["policyId"] = mffpi.PolicyID + } + if mffpi.LastRecoveryPoint != nil { + objectMap["lastRecoveryPoint"] = mffpi.LastRecoveryPoint + } + if mffpi.BackupSetName != nil { + objectMap["backupSetName"] = mffpi.BackupSetName + } + if mffpi.CreateMode != "" { + objectMap["createMode"] = mffpi.CreateMode + } + if mffpi.DeferredDeleteTimeInUTC != nil { + objectMap["deferredDeleteTimeInUTC"] = mffpi.DeferredDeleteTimeInUTC + } + if mffpi.IsScheduledForDeferredDelete != nil { + objectMap["isScheduledForDeferredDelete"] = mffpi.IsScheduledForDeferredDelete + } + if mffpi.DeferredDeleteTimeRemaining != nil { + objectMap["deferredDeleteTimeRemaining"] = mffpi.DeferredDeleteTimeRemaining + } + if mffpi.IsDeferredDeleteScheduleUpcoming != nil { + objectMap["isDeferredDeleteScheduleUpcoming"] = mffpi.IsDeferredDeleteScheduleUpcoming + } + if mffpi.IsRehydrate != nil { + objectMap["isRehydrate"] = mffpi.IsRehydrate + } + if mffpi.ProtectedItemType != "" { + objectMap["protectedItemType"] = mffpi.ProtectedItemType + } + return json.Marshal(objectMap) +} + +// AsAzureFileshareProtectedItem is the BasicProtectedItem implementation for MabFileFolderProtectedItem. +func (mffpi MabFileFolderProtectedItem) AsAzureFileshareProtectedItem() (*AzureFileshareProtectedItem, bool) { + return nil, false +} + +// AsAzureIaaSClassicComputeVMProtectedItem is the BasicProtectedItem implementation for MabFileFolderProtectedItem. +func (mffpi MabFileFolderProtectedItem) AsAzureIaaSClassicComputeVMProtectedItem() (*AzureIaaSClassicComputeVMProtectedItem, bool) { + return nil, false +} + +// AsAzureIaaSComputeVMProtectedItem is the BasicProtectedItem implementation for MabFileFolderProtectedItem. +func (mffpi MabFileFolderProtectedItem) AsAzureIaaSComputeVMProtectedItem() (*AzureIaaSComputeVMProtectedItem, bool) { + return nil, false +} + +// AsAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for MabFileFolderProtectedItem. +func (mffpi MabFileFolderProtectedItem) AsAzureIaaSVMProtectedItem() (*AzureIaaSVMProtectedItem, bool) { + return nil, false +} + +// AsBasicAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for MabFileFolderProtectedItem. +func (mffpi MabFileFolderProtectedItem) AsBasicAzureIaaSVMProtectedItem() (BasicAzureIaaSVMProtectedItem, bool) { + return nil, false +} + +// AsAzureSQLProtectedItem is the BasicProtectedItem implementation for MabFileFolderProtectedItem. +func (mffpi MabFileFolderProtectedItem) AsAzureSQLProtectedItem() (*AzureSQLProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadProtectedItem is the BasicProtectedItem implementation for MabFileFolderProtectedItem. +func (mffpi MabFileFolderProtectedItem) AsAzureVMWorkloadProtectedItem() (*AzureVMWorkloadProtectedItem, bool) { + return nil, false +} + +// AsBasicAzureVMWorkloadProtectedItem is the BasicProtectedItem implementation for MabFileFolderProtectedItem. +func (mffpi MabFileFolderProtectedItem) AsBasicAzureVMWorkloadProtectedItem() (BasicAzureVMWorkloadProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPAseDatabaseProtectedItem is the BasicProtectedItem implementation for MabFileFolderProtectedItem. +func (mffpi MabFileFolderProtectedItem) AsAzureVMWorkloadSAPAseDatabaseProtectedItem() (*AzureVMWorkloadSAPAseDatabaseProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaDatabaseProtectedItem is the BasicProtectedItem implementation for MabFileFolderProtectedItem. +func (mffpi MabFileFolderProtectedItem) AsAzureVMWorkloadSAPHanaDatabaseProtectedItem() (*AzureVMWorkloadSAPHanaDatabaseProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLDatabaseProtectedItem is the BasicProtectedItem implementation for MabFileFolderProtectedItem. +func (mffpi MabFileFolderProtectedItem) AsAzureVMWorkloadSQLDatabaseProtectedItem() (*AzureVMWorkloadSQLDatabaseProtectedItem, bool) { + return nil, false +} + +// AsDPMProtectedItem is the BasicProtectedItem implementation for MabFileFolderProtectedItem. +func (mffpi MabFileFolderProtectedItem) AsDPMProtectedItem() (*DPMProtectedItem, bool) { + return nil, false +} + +// AsGenericProtectedItem is the BasicProtectedItem implementation for MabFileFolderProtectedItem. +func (mffpi MabFileFolderProtectedItem) AsGenericProtectedItem() (*GenericProtectedItem, bool) { + return nil, false +} + +// AsMabFileFolderProtectedItem is the BasicProtectedItem implementation for MabFileFolderProtectedItem. +func (mffpi MabFileFolderProtectedItem) AsMabFileFolderProtectedItem() (*MabFileFolderProtectedItem, bool) { + return &mffpi, true +} + +// AsProtectedItem is the BasicProtectedItem implementation for MabFileFolderProtectedItem. +func (mffpi MabFileFolderProtectedItem) AsProtectedItem() (*ProtectedItem, bool) { + return nil, false +} + +// AsBasicProtectedItem is the BasicProtectedItem implementation for MabFileFolderProtectedItem. +func (mffpi MabFileFolderProtectedItem) AsBasicProtectedItem() (BasicProtectedItem, bool) { + return &mffpi, true +} + +// MabFileFolderProtectedItemExtendedInfo additional information on the backed up item. +type MabFileFolderProtectedItemExtendedInfo struct { + // LastRefreshedAt - Last time when the agent data synced to service. + LastRefreshedAt *date.Time `json:"lastRefreshedAt,omitempty"` + // OldestRecoveryPoint - The oldest backup copy available. + OldestRecoveryPoint *date.Time `json:"oldestRecoveryPoint,omitempty"` + // RecoveryPointCount - Number of backup copies associated with the backup item. + RecoveryPointCount *int32 `json:"recoveryPointCount,omitempty"` +} + +// MabJob MAB workload-specific job. +type MabJob struct { + // Duration - Time taken by job to run. + Duration *string `json:"duration,omitempty"` + // ActionsInfo - The state/actions applicable on jobs like cancel/retry. + ActionsInfo *[]JobSupportedAction `json:"actionsInfo,omitempty"` + // MabServerName - Name of server protecting the DS. + MabServerName *string `json:"mabServerName,omitempty"` + // MabServerType - Server type of MAB container. Possible values include: 'MabServerTypeInvalid', 'MabServerTypeUnknown', 'MabServerTypeIaasVMContainer', 'MabServerTypeIaasVMServiceContainer', 'MabServerTypeDPMContainer', 'MabServerTypeAzureBackupServerContainer', 'MabServerTypeMABContainer', 'MabServerTypeCluster', 'MabServerTypeAzureSQLContainer', 'MabServerTypeWindows', 'MabServerTypeVCenter', 'MabServerTypeVMAppContainer', 'MabServerTypeSQLAGWorkLoadContainer', 'MabServerTypeStorageContainer', 'MabServerTypeGenericContainer' + MabServerType MabServerType `json:"mabServerType,omitempty"` + // WorkloadType - Workload type of backup item. Possible values include: 'WorkloadTypeInvalid', 'WorkloadTypeVM', 'WorkloadTypeFileFolder', 'WorkloadTypeAzureSQLDb', 'WorkloadTypeSQLDB', 'WorkloadTypeExchange', 'WorkloadTypeSharepoint', 'WorkloadTypeVMwareVM', 'WorkloadTypeSystemState', 'WorkloadTypeClient', 'WorkloadTypeGenericDataSource', 'WorkloadTypeSQLDataBase', 'WorkloadTypeAzureFileShare', 'WorkloadTypeSAPHanaDatabase', 'WorkloadTypeSAPAseDatabase' + WorkloadType WorkloadType `json:"workloadType,omitempty"` + // ErrorDetails - The errors. + ErrorDetails *[]MabErrorInfo `json:"errorDetails,omitempty"` + // ExtendedInfo - Additional information on the job. + ExtendedInfo *MabJobExtendedInfo `json:"extendedInfo,omitempty"` + // EntityFriendlyName - Friendly name of the entity on which the current job is executing. + EntityFriendlyName *string `json:"entityFriendlyName,omitempty"` + // BackupManagementType - Backup management type to execute the current job. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // Operation - The operation name. + Operation *string `json:"operation,omitempty"` + // Status - Job status. + Status *string `json:"status,omitempty"` + // StartTime - The start time. + StartTime *date.Time `json:"startTime,omitempty"` + // EndTime - The end time. + EndTime *date.Time `json:"endTime,omitempty"` + // ActivityID - ActivityId of job. + ActivityID *string `json:"activityId,omitempty"` + // JobType - Possible values include: 'JobTypeJob', 'JobTypeAzureIaaSVMJob', 'JobTypeAzureStorageJob', 'JobTypeAzureWorkloadJob', 'JobTypeDpmJob', 'JobTypeMabJob', 'JobTypeVaultJob' + JobType JobType `json:"jobType,omitempty"` +} + +// MarshalJSON is the custom marshaler for MabJob. +func (mj MabJob) MarshalJSON() ([]byte, error) { + mj.JobType = JobTypeMabJob + objectMap := make(map[string]interface{}) + if mj.Duration != nil { + objectMap["duration"] = mj.Duration + } + if mj.ActionsInfo != nil { + objectMap["actionsInfo"] = mj.ActionsInfo + } + if mj.MabServerName != nil { + objectMap["mabServerName"] = mj.MabServerName + } + if mj.MabServerType != "" { + objectMap["mabServerType"] = mj.MabServerType + } + if mj.WorkloadType != "" { + objectMap["workloadType"] = mj.WorkloadType + } + if mj.ErrorDetails != nil { + objectMap["errorDetails"] = mj.ErrorDetails + } + if mj.ExtendedInfo != nil { + objectMap["extendedInfo"] = mj.ExtendedInfo + } + if mj.EntityFriendlyName != nil { + objectMap["entityFriendlyName"] = mj.EntityFriendlyName + } + if mj.BackupManagementType != "" { + objectMap["backupManagementType"] = mj.BackupManagementType + } + if mj.Operation != nil { + objectMap["operation"] = mj.Operation + } + if mj.Status != nil { + objectMap["status"] = mj.Status + } + if mj.StartTime != nil { + objectMap["startTime"] = mj.StartTime + } + if mj.EndTime != nil { + objectMap["endTime"] = mj.EndTime + } + if mj.ActivityID != nil { + objectMap["activityId"] = mj.ActivityID + } + if mj.JobType != "" { + objectMap["jobType"] = mj.JobType + } + return json.Marshal(objectMap) +} + +// AsAzureIaaSVMJob is the BasicJob implementation for MabJob. +func (mj MabJob) AsAzureIaaSVMJob() (*AzureIaaSVMJob, bool) { + return nil, false +} + +// AsAzureStorageJob is the BasicJob implementation for MabJob. +func (mj MabJob) AsAzureStorageJob() (*AzureStorageJob, bool) { + return nil, false +} + +// AsAzureWorkloadJob is the BasicJob implementation for MabJob. +func (mj MabJob) AsAzureWorkloadJob() (*AzureWorkloadJob, bool) { + return nil, false +} + +// AsDpmJob is the BasicJob implementation for MabJob. +func (mj MabJob) AsDpmJob() (*DpmJob, bool) { + return nil, false +} + +// AsMabJob is the BasicJob implementation for MabJob. +func (mj MabJob) AsMabJob() (*MabJob, bool) { + return &mj, true +} + +// AsVaultJob is the BasicJob implementation for MabJob. +func (mj MabJob) AsVaultJob() (*VaultJob, bool) { + return nil, false +} + +// AsJob is the BasicJob implementation for MabJob. +func (mj MabJob) AsJob() (*Job, bool) { + return nil, false +} + +// AsBasicJob is the BasicJob implementation for MabJob. +func (mj MabJob) AsBasicJob() (BasicJob, bool) { + return &mj, true +} + +// MabJobExtendedInfo additional information for the MAB workload-specific job. +type MabJobExtendedInfo struct { + // TasksList - List of tasks for this job. + TasksList *[]MabJobTaskDetails `json:"tasksList,omitempty"` + // PropertyBag - The job properties. + PropertyBag map[string]*string `json:"propertyBag"` + // DynamicErrorMessage - Non localized error message specific to this job. + DynamicErrorMessage *string `json:"dynamicErrorMessage,omitempty"` +} + +// MarshalJSON is the custom marshaler for MabJobExtendedInfo. +func (mjei MabJobExtendedInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if mjei.TasksList != nil { + objectMap["tasksList"] = mjei.TasksList + } + if mjei.PropertyBag != nil { + objectMap["propertyBag"] = mjei.PropertyBag + } + if mjei.DynamicErrorMessage != nil { + objectMap["dynamicErrorMessage"] = mjei.DynamicErrorMessage + } + return json.Marshal(objectMap) +} + +// MabJobTaskDetails MAB workload-specific job task details. +type MabJobTaskDetails struct { + // TaskID - The task display name. + TaskID *string `json:"taskId,omitempty"` + // StartTime - The start time. + StartTime *date.Time `json:"startTime,omitempty"` + // EndTime - The end time. + EndTime *date.Time `json:"endTime,omitempty"` + // Duration - Time elapsed for task. + Duration *string `json:"duration,omitempty"` + // Status - The status. + Status *string `json:"status,omitempty"` +} + +// MabProtectionPolicy mab container-specific backup policy. +type MabProtectionPolicy struct { + // SchedulePolicy - Backup schedule of backup policy. + SchedulePolicy BasicSchedulePolicy `json:"schedulePolicy,omitempty"` + // RetentionPolicy - Retention policy details. + RetentionPolicy BasicRetentionPolicy `json:"retentionPolicy,omitempty"` + // ProtectedItemsCount - Number of items associated with this policy. + ProtectedItemsCount *int32 `json:"protectedItemsCount,omitempty"` + // BackupManagementType - Possible values include: 'ManagementTypeBasicProtectionPolicyBackupManagementTypeProtectionPolicy', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureWorkload', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureStorage', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureIaasVM', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureSQL', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeGenericProtectionPolicy', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeMAB' + BackupManagementType ManagementTypeBasicProtectionPolicy `json:"backupManagementType,omitempty"` +} + +// MarshalJSON is the custom marshaler for MabProtectionPolicy. +func (mpp MabProtectionPolicy) MarshalJSON() ([]byte, error) { + mpp.BackupManagementType = ManagementTypeBasicProtectionPolicyBackupManagementTypeMAB + objectMap := make(map[string]interface{}) + objectMap["schedulePolicy"] = mpp.SchedulePolicy + objectMap["retentionPolicy"] = mpp.RetentionPolicy + if mpp.ProtectedItemsCount != nil { + objectMap["protectedItemsCount"] = mpp.ProtectedItemsCount + } + if mpp.BackupManagementType != "" { + objectMap["backupManagementType"] = mpp.BackupManagementType + } + return json.Marshal(objectMap) +} + +// AsAzureVMWorkloadProtectionPolicy is the BasicProtectionPolicy implementation for MabProtectionPolicy. +func (mpp MabProtectionPolicy) AsAzureVMWorkloadProtectionPolicy() (*AzureVMWorkloadProtectionPolicy, bool) { + return nil, false +} + +// AsAzureFileShareProtectionPolicy is the BasicProtectionPolicy implementation for MabProtectionPolicy. +func (mpp MabProtectionPolicy) AsAzureFileShareProtectionPolicy() (*AzureFileShareProtectionPolicy, bool) { + return nil, false +} + +// AsAzureIaaSVMProtectionPolicy is the BasicProtectionPolicy implementation for MabProtectionPolicy. +func (mpp MabProtectionPolicy) AsAzureIaaSVMProtectionPolicy() (*AzureIaaSVMProtectionPolicy, bool) { + return nil, false +} + +// AsAzureSQLProtectionPolicy is the BasicProtectionPolicy implementation for MabProtectionPolicy. +func (mpp MabProtectionPolicy) AsAzureSQLProtectionPolicy() (*AzureSQLProtectionPolicy, bool) { + return nil, false +} + +// AsGenericProtectionPolicy is the BasicProtectionPolicy implementation for MabProtectionPolicy. +func (mpp MabProtectionPolicy) AsGenericProtectionPolicy() (*GenericProtectionPolicy, bool) { + return nil, false +} + +// AsMabProtectionPolicy is the BasicProtectionPolicy implementation for MabProtectionPolicy. +func (mpp MabProtectionPolicy) AsMabProtectionPolicy() (*MabProtectionPolicy, bool) { + return &mpp, true +} + +// AsProtectionPolicy is the BasicProtectionPolicy implementation for MabProtectionPolicy. +func (mpp MabProtectionPolicy) AsProtectionPolicy() (*ProtectionPolicy, bool) { + return nil, false +} + +// AsBasicProtectionPolicy is the BasicProtectionPolicy implementation for MabProtectionPolicy. +func (mpp MabProtectionPolicy) AsBasicProtectionPolicy() (BasicProtectionPolicy, bool) { + return &mpp, true +} + +// UnmarshalJSON is the custom unmarshaler for MabProtectionPolicy struct. +func (mpp *MabProtectionPolicy) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "schedulePolicy": + if v != nil { + schedulePolicy, err := unmarshalBasicSchedulePolicy(*v) + if err != nil { + return err + } + mpp.SchedulePolicy = schedulePolicy + } + case "retentionPolicy": + if v != nil { + retentionPolicy, err := unmarshalBasicRetentionPolicy(*v) + if err != nil { + return err + } + mpp.RetentionPolicy = retentionPolicy + } + case "protectedItemsCount": + if v != nil { + var protectedItemsCount int32 + err = json.Unmarshal(*v, &protectedItemsCount) + if err != nil { + return err + } + mpp.ProtectedItemsCount = &protectedItemsCount + } + case "backupManagementType": + if v != nil { + var backupManagementType ManagementTypeBasicProtectionPolicy + err = json.Unmarshal(*v, &backupManagementType) + if err != nil { + return err + } + mpp.BackupManagementType = backupManagementType + } + } + } + + return nil +} + +// ManagementUsage backup management usages of a vault. +type ManagementUsage struct { + // Unit - Unit of the usage. Possible values include: 'UsagesUnitCount', 'UsagesUnitBytes', 'UsagesUnitSeconds', 'UsagesUnitPercent', 'UsagesUnitCountPerSecond', 'UsagesUnitBytesPerSecond' + Unit UsagesUnit `json:"unit,omitempty"` + // QuotaPeriod - Quota period of usage. + QuotaPeriod *string `json:"quotaPeriod,omitempty"` + // NextResetTime - Next reset time of usage. + NextResetTime *date.Time `json:"nextResetTime,omitempty"` + // CurrentValue - Current value of usage. + CurrentValue *int64 `json:"currentValue,omitempty"` + // Limit - Limit of usage. + Limit *int64 `json:"limit,omitempty"` + // Name - Name of usage. + Name *NameInfo `json:"name,omitempty"` +} + +// ManagementUsageList backup management usage for vault. +type ManagementUsageList struct { + autorest.Response `json:"-"` + // Value - The list of backup management usages for the given vault. + Value *[]ManagementUsage `json:"value,omitempty"` +} + +// MonthlyRetentionSchedule monthly retention schedule. +type MonthlyRetentionSchedule struct { + // RetentionScheduleFormatType - Retention schedule format type for monthly retention policy. Possible values include: 'RetentionScheduleFormatInvalid', 'RetentionScheduleFormatDaily', 'RetentionScheduleFormatWeekly' + RetentionScheduleFormatType RetentionScheduleFormat `json:"retentionScheduleFormatType,omitempty"` + // RetentionScheduleDaily - Daily retention format for monthly retention policy. + RetentionScheduleDaily *DailyRetentionFormat `json:"retentionScheduleDaily,omitempty"` + // RetentionScheduleWeekly - Weekly retention format for monthly retention policy. + RetentionScheduleWeekly *WeeklyRetentionFormat `json:"retentionScheduleWeekly,omitempty"` + // RetentionTimes - Retention times of retention policy. + RetentionTimes *[]date.Time `json:"retentionTimes,omitempty"` + // RetentionDuration - Retention duration of retention Policy. + RetentionDuration *RetentionDuration `json:"retentionDuration,omitempty"` +} + +// MoveRecoveryPointFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type MoveRecoveryPointFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(BaseClient) (autorest.Response, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *MoveRecoveryPointFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for MoveRecoveryPointFuture.Result. +func (future *MoveRecoveryPointFuture) result(client BaseClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.MoveRecoveryPointFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + ar.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("backup.MoveRecoveryPointFuture") + return + } + ar.Response = future.Response() + return +} + +// MoveRPAcrossTiersRequest ... +type MoveRPAcrossTiersRequest struct { + // ObjectType - Gets the class type. + ObjectType *string `json:"objectType,omitempty"` + // SourceTierType - Source tier from where RP needs to be moved. Possible values include: 'RecoveryPointTierTypeInvalid', 'RecoveryPointTierTypeInstantRP', 'RecoveryPointTierTypeHardenedRP', 'RecoveryPointTierTypeArchivedRP' + SourceTierType RecoveryPointTierType `json:"sourceTierType,omitempty"` + // TargetTierType - Target tier where RP needs to be moved. Possible values include: 'RecoveryPointTierTypeInvalid', 'RecoveryPointTierTypeInstantRP', 'RecoveryPointTierTypeHardenedRP', 'RecoveryPointTierTypeArchivedRP' + TargetTierType RecoveryPointTierType `json:"targetTierType,omitempty"` +} + +// NameInfo the name of usage. +type NameInfo struct { + // Value - Value of usage. + Value *string `json:"value,omitempty"` + // LocalizedValue - Localized value of usage. + LocalizedValue *string `json:"localizedValue,omitempty"` +} + +// NewErrorResponse the resource management error response. +type NewErrorResponse struct { + // Error - The error object. + Error *NewErrorResponseError `json:"error,omitempty"` +} + +// NewErrorResponseError the error object. +type NewErrorResponseError struct { + // Code - READ-ONLY; The error code. + Code *string `json:"code,omitempty"` + // Message - READ-ONLY; The error message. + Message *string `json:"message,omitempty"` + // Target - READ-ONLY; The error target. + Target *string `json:"target,omitempty"` + // Details - READ-ONLY; The error details. + Details *[]NewErrorResponse `json:"details,omitempty"` + // AdditionalInfo - READ-ONLY; The error additional info. + AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` +} + +// MarshalJSON is the custom marshaler for NewErrorResponseError. +func (ner NewErrorResponseError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// OperationResultInfo operation result info. +type OperationResultInfo struct { + // JobList - List of jobs created by this operation. + JobList *[]string `json:"jobList,omitempty"` + // ObjectType - Possible values include: 'ObjectTypeOperationResultInfoBase', 'ObjectTypeExportJobsOperationResultInfo', 'ObjectTypeOperationResultInfo' + ObjectType ObjectType `json:"objectType,omitempty"` +} + +// MarshalJSON is the custom marshaler for OperationResultInfo. +func (ori OperationResultInfo) MarshalJSON() ([]byte, error) { + ori.ObjectType = ObjectTypeOperationResultInfo + objectMap := make(map[string]interface{}) + if ori.JobList != nil { + objectMap["jobList"] = ori.JobList + } + if ori.ObjectType != "" { + objectMap["objectType"] = ori.ObjectType + } + return json.Marshal(objectMap) +} + +// AsExportJobsOperationResultInfo is the BasicOperationResultInfoBase implementation for OperationResultInfo. +func (ori OperationResultInfo) AsExportJobsOperationResultInfo() (*ExportJobsOperationResultInfo, bool) { + return nil, false +} + +// AsOperationResultInfo is the BasicOperationResultInfoBase implementation for OperationResultInfo. +func (ori OperationResultInfo) AsOperationResultInfo() (*OperationResultInfo, bool) { + return &ori, true +} + +// AsOperationResultInfoBase is the BasicOperationResultInfoBase implementation for OperationResultInfo. +func (ori OperationResultInfo) AsOperationResultInfoBase() (*OperationResultInfoBase, bool) { + return nil, false +} + +// AsBasicOperationResultInfoBase is the BasicOperationResultInfoBase implementation for OperationResultInfo. +func (ori OperationResultInfo) AsBasicOperationResultInfoBase() (BasicOperationResultInfoBase, bool) { + return &ori, true +} + +// BasicOperationResultInfoBase base class for operation result info. +type BasicOperationResultInfoBase interface { + AsExportJobsOperationResultInfo() (*ExportJobsOperationResultInfo, bool) + AsOperationResultInfo() (*OperationResultInfo, bool) + AsOperationResultInfoBase() (*OperationResultInfoBase, bool) +} + +// OperationResultInfoBase base class for operation result info. +type OperationResultInfoBase struct { + // ObjectType - Possible values include: 'ObjectTypeOperationResultInfoBase', 'ObjectTypeExportJobsOperationResultInfo', 'ObjectTypeOperationResultInfo' + ObjectType ObjectType `json:"objectType,omitempty"` +} + +func unmarshalBasicOperationResultInfoBase(body []byte) (BasicOperationResultInfoBase, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["objectType"] { + case string(ObjectTypeExportJobsOperationResultInfo): + var ejori ExportJobsOperationResultInfo + err := json.Unmarshal(body, &ejori) + return ejori, err + case string(ObjectTypeOperationResultInfo): + var ori OperationResultInfo + err := json.Unmarshal(body, &ori) + return ori, err + default: + var orib OperationResultInfoBase + err := json.Unmarshal(body, &orib) + return orib, err + } +} +func unmarshalBasicOperationResultInfoBaseArray(body []byte) ([]BasicOperationResultInfoBase, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + oribArray := make([]BasicOperationResultInfoBase, len(rawMessages)) + + for index, rawMessage := range rawMessages { + orib, err := unmarshalBasicOperationResultInfoBase(*rawMessage) + if err != nil { + return nil, err + } + oribArray[index] = orib + } + return oribArray, nil +} + +// MarshalJSON is the custom marshaler for OperationResultInfoBase. +func (orib OperationResultInfoBase) MarshalJSON() ([]byte, error) { + orib.ObjectType = ObjectTypeOperationResultInfoBase + objectMap := make(map[string]interface{}) + if orib.ObjectType != "" { + objectMap["objectType"] = orib.ObjectType + } + return json.Marshal(objectMap) +} + +// AsExportJobsOperationResultInfo is the BasicOperationResultInfoBase implementation for OperationResultInfoBase. +func (orib OperationResultInfoBase) AsExportJobsOperationResultInfo() (*ExportJobsOperationResultInfo, bool) { + return nil, false +} + +// AsOperationResultInfo is the BasicOperationResultInfoBase implementation for OperationResultInfoBase. +func (orib OperationResultInfoBase) AsOperationResultInfo() (*OperationResultInfo, bool) { + return nil, false +} + +// AsOperationResultInfoBase is the BasicOperationResultInfoBase implementation for OperationResultInfoBase. +func (orib OperationResultInfoBase) AsOperationResultInfoBase() (*OperationResultInfoBase, bool) { + return &orib, true +} + +// AsBasicOperationResultInfoBase is the BasicOperationResultInfoBase implementation for OperationResultInfoBase. +func (orib OperationResultInfoBase) AsBasicOperationResultInfoBase() (BasicOperationResultInfoBase, bool) { + return &orib, true +} + +// OperationResultInfoBaseResource base class for operation result info. +type OperationResultInfoBaseResource struct { + autorest.Response `json:"-"` + // Operation - OperationResultInfoBaseResource operation + Operation BasicOperationResultInfoBase `json:"operation,omitempty"` + // StatusCode - HTTP Status Code of the operation. Possible values include: 'HTTPStatusCodeContinue', 'HTTPStatusCodeSwitchingProtocols', 'HTTPStatusCodeOK', 'HTTPStatusCodeCreated', 'HTTPStatusCodeAccepted', 'HTTPStatusCodeNonAuthoritativeInformation', 'HTTPStatusCodeNoContent', 'HTTPStatusCodeResetContent', 'HTTPStatusCodePartialContent', 'HTTPStatusCodeMultipleChoices', 'HTTPStatusCodeAmbiguous', 'HTTPStatusCodeMovedPermanently', 'HTTPStatusCodeMoved', 'HTTPStatusCodeFound', 'HTTPStatusCodeRedirect', 'HTTPStatusCodeSeeOther', 'HTTPStatusCodeRedirectMethod', 'HTTPStatusCodeNotModified', 'HTTPStatusCodeUseProxy', 'HTTPStatusCodeUnused', 'HTTPStatusCodeTemporaryRedirect', 'HTTPStatusCodeRedirectKeepVerb', 'HTTPStatusCodeBadRequest', 'HTTPStatusCodeUnauthorized', 'HTTPStatusCodePaymentRequired', 'HTTPStatusCodeForbidden', 'HTTPStatusCodeNotFound', 'HTTPStatusCodeMethodNotAllowed', 'HTTPStatusCodeNotAcceptable', 'HTTPStatusCodeProxyAuthenticationRequired', 'HTTPStatusCodeRequestTimeout', 'HTTPStatusCodeConflict', 'HTTPStatusCodeGone', 'HTTPStatusCodeLengthRequired', 'HTTPStatusCodePreconditionFailed', 'HTTPStatusCodeRequestEntityTooLarge', 'HTTPStatusCodeRequestURITooLong', 'HTTPStatusCodeUnsupportedMediaType', 'HTTPStatusCodeRequestedRangeNotSatisfiable', 'HTTPStatusCodeExpectationFailed', 'HTTPStatusCodeUpgradeRequired', 'HTTPStatusCodeInternalServerError', 'HTTPStatusCodeNotImplemented', 'HTTPStatusCodeBadGateway', 'HTTPStatusCodeServiceUnavailable', 'HTTPStatusCodeGatewayTimeout', 'HTTPStatusCodeHTTPVersionNotSupported' + StatusCode HTTPStatusCode `json:"statusCode,omitempty"` + // Headers - HTTP headers associated with this operation. + Headers map[string][]string `json:"headers"` +} + +// MarshalJSON is the custom marshaler for OperationResultInfoBaseResource. +func (oribr OperationResultInfoBaseResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + objectMap["operation"] = oribr.Operation + if oribr.StatusCode != "" { + objectMap["statusCode"] = oribr.StatusCode + } + if oribr.Headers != nil { + objectMap["headers"] = oribr.Headers + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for OperationResultInfoBaseResource struct. +func (oribr *OperationResultInfoBaseResource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "operation": + if v != nil { + operation, err := unmarshalBasicOperationResultInfoBase(*v) + if err != nil { + return err + } + oribr.Operation = operation + } + case "statusCode": + if v != nil { + var statusCode HTTPStatusCode + err = json.Unmarshal(*v, &statusCode) + if err != nil { + return err + } + oribr.StatusCode = statusCode + } + case "headers": + if v != nil { + var headers map[string][]string + err = json.Unmarshal(*v, &headers) + if err != nil { + return err + } + oribr.Headers = headers + } + } + } + + return nil +} + +// OperationStatus operation status. +type OperationStatus struct { + autorest.Response `json:"-"` + // ID - ID of the operation. + ID *string `json:"id,omitempty"` + // Name - Name of the operation. + Name *string `json:"name,omitempty"` + // Status - Operation status. Possible values include: 'OperationStatusValuesInvalid', 'OperationStatusValuesInProgress', 'OperationStatusValuesSucceeded', 'OperationStatusValuesFailed', 'OperationStatusValuesCanceled' + Status OperationStatusValues `json:"status,omitempty"` + // StartTime - Operation start time. Format: ISO-8601. + StartTime *date.Time `json:"startTime,omitempty"` + // EndTime - Operation end time. Format: ISO-8601. + EndTime *date.Time `json:"endTime,omitempty"` + // Error - Error information related to this operation. + Error *OperationStatusError `json:"error,omitempty"` + // Properties - Additional information associated with this operation. + Properties BasicOperationStatusExtendedInfo `json:"properties,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for OperationStatus struct. +func (osVar *OperationStatus) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + osVar.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + osVar.Name = &name + } + case "status": + if v != nil { + var status OperationStatusValues + err = json.Unmarshal(*v, &status) + if err != nil { + return err + } + osVar.Status = status + } + case "startTime": + if v != nil { + var startTime date.Time + err = json.Unmarshal(*v, &startTime) + if err != nil { + return err + } + osVar.StartTime = &startTime + } + case "endTime": + if v != nil { + var endTime date.Time + err = json.Unmarshal(*v, &endTime) + if err != nil { + return err + } + osVar.EndTime = &endTime + } + case "error": + if v != nil { + var errorVar OperationStatusError + err = json.Unmarshal(*v, &errorVar) + if err != nil { + return err + } + osVar.Error = &errorVar + } + case "properties": + if v != nil { + properties, err := unmarshalBasicOperationStatusExtendedInfo(*v) + if err != nil { + return err + } + osVar.Properties = properties + } + } + } + + return nil +} + +// OperationStatusError error information associated with operation status call. +type OperationStatusError struct { + // Code - Error code of the operation failure. + Code *string `json:"code,omitempty"` + // Message - Error message displayed if the operation failure. + Message *string `json:"message,omitempty"` +} + +// BasicOperationStatusExtendedInfo base class for additional information of operation status. +type BasicOperationStatusExtendedInfo interface { + AsOperationStatusJobExtendedInfo() (*OperationStatusJobExtendedInfo, bool) + AsOperationStatusJobsExtendedInfo() (*OperationStatusJobsExtendedInfo, bool) + AsOperationStatusProvisionILRExtendedInfo() (*OperationStatusProvisionILRExtendedInfo, bool) + AsOperationStatusRecoveryPointExtendedInfo() (*OperationStatusRecoveryPointExtendedInfo, bool) + AsOperationStatusExtendedInfo() (*OperationStatusExtendedInfo, bool) +} + +// OperationStatusExtendedInfo base class for additional information of operation status. +type OperationStatusExtendedInfo struct { + // ObjectType - Possible values include: 'ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusExtendedInfo', 'ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusJobExtendedInfo', 'ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusJobsExtendedInfo', 'ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusProvisionILRExtendedInfo', 'ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusRecoveryPointExtendedInfo' + ObjectType ObjectTypeBasicOperationStatusExtendedInfo `json:"objectType,omitempty"` +} + +func unmarshalBasicOperationStatusExtendedInfo(body []byte) (BasicOperationStatusExtendedInfo, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["objectType"] { + case string(ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusJobExtendedInfo): + var osjei OperationStatusJobExtendedInfo + err := json.Unmarshal(body, &osjei) + return osjei, err + case string(ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusJobsExtendedInfo): + var osjei OperationStatusJobsExtendedInfo + err := json.Unmarshal(body, &osjei) + return osjei, err + case string(ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusProvisionILRExtendedInfo): + var ospiei OperationStatusProvisionILRExtendedInfo + err := json.Unmarshal(body, &ospiei) + return ospiei, err + case string(ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusRecoveryPointExtendedInfo): + var osrpei OperationStatusRecoveryPointExtendedInfo + err := json.Unmarshal(body, &osrpei) + return osrpei, err + default: + var osei OperationStatusExtendedInfo + err := json.Unmarshal(body, &osei) + return osei, err + } +} +func unmarshalBasicOperationStatusExtendedInfoArray(body []byte) ([]BasicOperationStatusExtendedInfo, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + oseiArray := make([]BasicOperationStatusExtendedInfo, len(rawMessages)) + + for index, rawMessage := range rawMessages { + osei, err := unmarshalBasicOperationStatusExtendedInfo(*rawMessage) + if err != nil { + return nil, err + } + oseiArray[index] = osei + } + return oseiArray, nil +} + +// MarshalJSON is the custom marshaler for OperationStatusExtendedInfo. +func (osei OperationStatusExtendedInfo) MarshalJSON() ([]byte, error) { + osei.ObjectType = ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusExtendedInfo + objectMap := make(map[string]interface{}) + if osei.ObjectType != "" { + objectMap["objectType"] = osei.ObjectType + } + return json.Marshal(objectMap) +} + +// AsOperationStatusJobExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusExtendedInfo. +func (osei OperationStatusExtendedInfo) AsOperationStatusJobExtendedInfo() (*OperationStatusJobExtendedInfo, bool) { + return nil, false +} + +// AsOperationStatusJobsExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusExtendedInfo. +func (osei OperationStatusExtendedInfo) AsOperationStatusJobsExtendedInfo() (*OperationStatusJobsExtendedInfo, bool) { + return nil, false +} + +// AsOperationStatusProvisionILRExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusExtendedInfo. +func (osei OperationStatusExtendedInfo) AsOperationStatusProvisionILRExtendedInfo() (*OperationStatusProvisionILRExtendedInfo, bool) { + return nil, false +} + +// AsOperationStatusRecoveryPointExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusExtendedInfo. +func (osei OperationStatusExtendedInfo) AsOperationStatusRecoveryPointExtendedInfo() (*OperationStatusRecoveryPointExtendedInfo, bool) { + return nil, false +} + +// AsOperationStatusExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusExtendedInfo. +func (osei OperationStatusExtendedInfo) AsOperationStatusExtendedInfo() (*OperationStatusExtendedInfo, bool) { + return &osei, true +} + +// AsBasicOperationStatusExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusExtendedInfo. +func (osei OperationStatusExtendedInfo) AsBasicOperationStatusExtendedInfo() (BasicOperationStatusExtendedInfo, bool) { + return &osei, true +} + +// OperationStatusJobExtendedInfo operation status job extended info. +type OperationStatusJobExtendedInfo struct { + // JobID - ID of the job created for this protected item. + JobID *string `json:"jobId,omitempty"` + // ObjectType - Possible values include: 'ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusExtendedInfo', 'ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusJobExtendedInfo', 'ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusJobsExtendedInfo', 'ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusProvisionILRExtendedInfo', 'ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusRecoveryPointExtendedInfo' + ObjectType ObjectTypeBasicOperationStatusExtendedInfo `json:"objectType,omitempty"` +} + +// MarshalJSON is the custom marshaler for OperationStatusJobExtendedInfo. +func (osjei OperationStatusJobExtendedInfo) MarshalJSON() ([]byte, error) { + osjei.ObjectType = ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusJobExtendedInfo + objectMap := make(map[string]interface{}) + if osjei.JobID != nil { + objectMap["jobId"] = osjei.JobID + } + if osjei.ObjectType != "" { + objectMap["objectType"] = osjei.ObjectType + } + return json.Marshal(objectMap) +} + +// AsOperationStatusJobExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusJobExtendedInfo. +func (osjei OperationStatusJobExtendedInfo) AsOperationStatusJobExtendedInfo() (*OperationStatusJobExtendedInfo, bool) { + return &osjei, true +} + +// AsOperationStatusJobsExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusJobExtendedInfo. +func (osjei OperationStatusJobExtendedInfo) AsOperationStatusJobsExtendedInfo() (*OperationStatusJobsExtendedInfo, bool) { + return nil, false +} + +// AsOperationStatusProvisionILRExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusJobExtendedInfo. +func (osjei OperationStatusJobExtendedInfo) AsOperationStatusProvisionILRExtendedInfo() (*OperationStatusProvisionILRExtendedInfo, bool) { + return nil, false +} + +// AsOperationStatusRecoveryPointExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusJobExtendedInfo. +func (osjei OperationStatusJobExtendedInfo) AsOperationStatusRecoveryPointExtendedInfo() (*OperationStatusRecoveryPointExtendedInfo, bool) { + return nil, false +} + +// AsOperationStatusExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusJobExtendedInfo. +func (osjei OperationStatusJobExtendedInfo) AsOperationStatusExtendedInfo() (*OperationStatusExtendedInfo, bool) { + return nil, false +} + +// AsBasicOperationStatusExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusJobExtendedInfo. +func (osjei OperationStatusJobExtendedInfo) AsBasicOperationStatusExtendedInfo() (BasicOperationStatusExtendedInfo, bool) { + return &osjei, true +} + +// OperationStatusJobsExtendedInfo operation status extended info for list of jobs. +type OperationStatusJobsExtendedInfo struct { + // JobIds - IDs of the jobs created for the protected item. + JobIds *[]string `json:"jobIds,omitempty"` + // FailedJobsError - Stores all the failed jobs along with the corresponding error codes. + FailedJobsError map[string]*string `json:"failedJobsError"` + // ObjectType - Possible values include: 'ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusExtendedInfo', 'ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusJobExtendedInfo', 'ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusJobsExtendedInfo', 'ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusProvisionILRExtendedInfo', 'ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusRecoveryPointExtendedInfo' + ObjectType ObjectTypeBasicOperationStatusExtendedInfo `json:"objectType,omitempty"` +} + +// MarshalJSON is the custom marshaler for OperationStatusJobsExtendedInfo. +func (osjei OperationStatusJobsExtendedInfo) MarshalJSON() ([]byte, error) { + osjei.ObjectType = ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusJobsExtendedInfo + objectMap := make(map[string]interface{}) + if osjei.JobIds != nil { + objectMap["jobIds"] = osjei.JobIds + } + if osjei.FailedJobsError != nil { + objectMap["failedJobsError"] = osjei.FailedJobsError + } + if osjei.ObjectType != "" { + objectMap["objectType"] = osjei.ObjectType + } + return json.Marshal(objectMap) +} + +// AsOperationStatusJobExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusJobsExtendedInfo. +func (osjei OperationStatusJobsExtendedInfo) AsOperationStatusJobExtendedInfo() (*OperationStatusJobExtendedInfo, bool) { + return nil, false +} + +// AsOperationStatusJobsExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusJobsExtendedInfo. +func (osjei OperationStatusJobsExtendedInfo) AsOperationStatusJobsExtendedInfo() (*OperationStatusJobsExtendedInfo, bool) { + return &osjei, true +} + +// AsOperationStatusProvisionILRExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusJobsExtendedInfo. +func (osjei OperationStatusJobsExtendedInfo) AsOperationStatusProvisionILRExtendedInfo() (*OperationStatusProvisionILRExtendedInfo, bool) { + return nil, false +} + +// AsOperationStatusRecoveryPointExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusJobsExtendedInfo. +func (osjei OperationStatusJobsExtendedInfo) AsOperationStatusRecoveryPointExtendedInfo() (*OperationStatusRecoveryPointExtendedInfo, bool) { + return nil, false +} + +// AsOperationStatusExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusJobsExtendedInfo. +func (osjei OperationStatusJobsExtendedInfo) AsOperationStatusExtendedInfo() (*OperationStatusExtendedInfo, bool) { + return nil, false +} + +// AsBasicOperationStatusExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusJobsExtendedInfo. +func (osjei OperationStatusJobsExtendedInfo) AsBasicOperationStatusExtendedInfo() (BasicOperationStatusExtendedInfo, bool) { + return &osjei, true +} + +// OperationStatusProvisionILRExtendedInfo operation status extended info for ILR provision action. +type OperationStatusProvisionILRExtendedInfo struct { + // RecoveryTarget - Target details for file / folder restore. + RecoveryTarget *InstantItemRecoveryTarget `json:"recoveryTarget,omitempty"` + // ObjectType - Possible values include: 'ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusExtendedInfo', 'ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusJobExtendedInfo', 'ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusJobsExtendedInfo', 'ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusProvisionILRExtendedInfo', 'ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusRecoveryPointExtendedInfo' + ObjectType ObjectTypeBasicOperationStatusExtendedInfo `json:"objectType,omitempty"` +} + +// MarshalJSON is the custom marshaler for OperationStatusProvisionILRExtendedInfo. +func (ospiei OperationStatusProvisionILRExtendedInfo) MarshalJSON() ([]byte, error) { + ospiei.ObjectType = ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusProvisionILRExtendedInfo + objectMap := make(map[string]interface{}) + if ospiei.RecoveryTarget != nil { + objectMap["recoveryTarget"] = ospiei.RecoveryTarget + } + if ospiei.ObjectType != "" { + objectMap["objectType"] = ospiei.ObjectType + } + return json.Marshal(objectMap) +} + +// AsOperationStatusJobExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusProvisionILRExtendedInfo. +func (ospiei OperationStatusProvisionILRExtendedInfo) AsOperationStatusJobExtendedInfo() (*OperationStatusJobExtendedInfo, bool) { + return nil, false +} + +// AsOperationStatusJobsExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusProvisionILRExtendedInfo. +func (ospiei OperationStatusProvisionILRExtendedInfo) AsOperationStatusJobsExtendedInfo() (*OperationStatusJobsExtendedInfo, bool) { + return nil, false +} + +// AsOperationStatusProvisionILRExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusProvisionILRExtendedInfo. +func (ospiei OperationStatusProvisionILRExtendedInfo) AsOperationStatusProvisionILRExtendedInfo() (*OperationStatusProvisionILRExtendedInfo, bool) { + return &ospiei, true +} + +// AsOperationStatusRecoveryPointExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusProvisionILRExtendedInfo. +func (ospiei OperationStatusProvisionILRExtendedInfo) AsOperationStatusRecoveryPointExtendedInfo() (*OperationStatusRecoveryPointExtendedInfo, bool) { + return nil, false +} + +// AsOperationStatusExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusProvisionILRExtendedInfo. +func (ospiei OperationStatusProvisionILRExtendedInfo) AsOperationStatusExtendedInfo() (*OperationStatusExtendedInfo, bool) { + return nil, false +} + +// AsBasicOperationStatusExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusProvisionILRExtendedInfo. +func (ospiei OperationStatusProvisionILRExtendedInfo) AsBasicOperationStatusExtendedInfo() (BasicOperationStatusExtendedInfo, bool) { + return &ospiei, true +} + +// OperationStatusRecoveryPointExtendedInfo operation status extended info for Updated Recovery Point. +type OperationStatusRecoveryPointExtendedInfo struct { + // UpdatedRecoveryPoint - Recovery Point info with updated source snapshot URI + UpdatedRecoveryPoint BasicRecoveryPoint `json:"updatedRecoveryPoint,omitempty"` + // DeletedBackupItemVersion - In case the share is in soft-deleted state, populate this field with deleted backup item + DeletedBackupItemVersion *string `json:"deletedBackupItemVersion,omitempty"` + // ObjectType - Possible values include: 'ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusExtendedInfo', 'ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusJobExtendedInfo', 'ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusJobsExtendedInfo', 'ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusProvisionILRExtendedInfo', 'ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusRecoveryPointExtendedInfo' + ObjectType ObjectTypeBasicOperationStatusExtendedInfo `json:"objectType,omitempty"` +} + +// MarshalJSON is the custom marshaler for OperationStatusRecoveryPointExtendedInfo. +func (osrpei OperationStatusRecoveryPointExtendedInfo) MarshalJSON() ([]byte, error) { + osrpei.ObjectType = ObjectTypeBasicOperationStatusExtendedInfoObjectTypeOperationStatusRecoveryPointExtendedInfo + objectMap := make(map[string]interface{}) + objectMap["updatedRecoveryPoint"] = osrpei.UpdatedRecoveryPoint + if osrpei.DeletedBackupItemVersion != nil { + objectMap["deletedBackupItemVersion"] = osrpei.DeletedBackupItemVersion + } + if osrpei.ObjectType != "" { + objectMap["objectType"] = osrpei.ObjectType + } + return json.Marshal(objectMap) +} + +// AsOperationStatusJobExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusRecoveryPointExtendedInfo. +func (osrpei OperationStatusRecoveryPointExtendedInfo) AsOperationStatusJobExtendedInfo() (*OperationStatusJobExtendedInfo, bool) { + return nil, false +} + +// AsOperationStatusJobsExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusRecoveryPointExtendedInfo. +func (osrpei OperationStatusRecoveryPointExtendedInfo) AsOperationStatusJobsExtendedInfo() (*OperationStatusJobsExtendedInfo, bool) { + return nil, false +} + +// AsOperationStatusProvisionILRExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusRecoveryPointExtendedInfo. +func (osrpei OperationStatusRecoveryPointExtendedInfo) AsOperationStatusProvisionILRExtendedInfo() (*OperationStatusProvisionILRExtendedInfo, bool) { + return nil, false +} + +// AsOperationStatusRecoveryPointExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusRecoveryPointExtendedInfo. +func (osrpei OperationStatusRecoveryPointExtendedInfo) AsOperationStatusRecoveryPointExtendedInfo() (*OperationStatusRecoveryPointExtendedInfo, bool) { + return &osrpei, true +} + +// AsOperationStatusExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusRecoveryPointExtendedInfo. +func (osrpei OperationStatusRecoveryPointExtendedInfo) AsOperationStatusExtendedInfo() (*OperationStatusExtendedInfo, bool) { + return nil, false +} + +// AsBasicOperationStatusExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusRecoveryPointExtendedInfo. +func (osrpei OperationStatusRecoveryPointExtendedInfo) AsBasicOperationStatusExtendedInfo() (BasicOperationStatusExtendedInfo, bool) { + return &osrpei, true +} + +// UnmarshalJSON is the custom unmarshaler for OperationStatusRecoveryPointExtendedInfo struct. +func (osrpei *OperationStatusRecoveryPointExtendedInfo) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "updatedRecoveryPoint": + if v != nil { + updatedRecoveryPoint, err := unmarshalBasicRecoveryPoint(*v) + if err != nil { + return err + } + osrpei.UpdatedRecoveryPoint = updatedRecoveryPoint + } + case "deletedBackupItemVersion": + if v != nil { + var deletedBackupItemVersion string + err = json.Unmarshal(*v, &deletedBackupItemVersion) + if err != nil { + return err + } + osrpei.DeletedBackupItemVersion = &deletedBackupItemVersion + } + case "objectType": + if v != nil { + var objectType ObjectTypeBasicOperationStatusExtendedInfo + err = json.Unmarshal(*v, &objectType) + if err != nil { + return err + } + osrpei.ObjectType = objectType + } + } + } + + return nil +} + +// OperationWorkerResponse this is the base class for operation result responses. +type OperationWorkerResponse struct { + // StatusCode - HTTP Status Code of the operation. Possible values include: 'HTTPStatusCodeContinue', 'HTTPStatusCodeSwitchingProtocols', 'HTTPStatusCodeOK', 'HTTPStatusCodeCreated', 'HTTPStatusCodeAccepted', 'HTTPStatusCodeNonAuthoritativeInformation', 'HTTPStatusCodeNoContent', 'HTTPStatusCodeResetContent', 'HTTPStatusCodePartialContent', 'HTTPStatusCodeMultipleChoices', 'HTTPStatusCodeAmbiguous', 'HTTPStatusCodeMovedPermanently', 'HTTPStatusCodeMoved', 'HTTPStatusCodeFound', 'HTTPStatusCodeRedirect', 'HTTPStatusCodeSeeOther', 'HTTPStatusCodeRedirectMethod', 'HTTPStatusCodeNotModified', 'HTTPStatusCodeUseProxy', 'HTTPStatusCodeUnused', 'HTTPStatusCodeTemporaryRedirect', 'HTTPStatusCodeRedirectKeepVerb', 'HTTPStatusCodeBadRequest', 'HTTPStatusCodeUnauthorized', 'HTTPStatusCodePaymentRequired', 'HTTPStatusCodeForbidden', 'HTTPStatusCodeNotFound', 'HTTPStatusCodeMethodNotAllowed', 'HTTPStatusCodeNotAcceptable', 'HTTPStatusCodeProxyAuthenticationRequired', 'HTTPStatusCodeRequestTimeout', 'HTTPStatusCodeConflict', 'HTTPStatusCodeGone', 'HTTPStatusCodeLengthRequired', 'HTTPStatusCodePreconditionFailed', 'HTTPStatusCodeRequestEntityTooLarge', 'HTTPStatusCodeRequestURITooLong', 'HTTPStatusCodeUnsupportedMediaType', 'HTTPStatusCodeRequestedRangeNotSatisfiable', 'HTTPStatusCodeExpectationFailed', 'HTTPStatusCodeUpgradeRequired', 'HTTPStatusCodeInternalServerError', 'HTTPStatusCodeNotImplemented', 'HTTPStatusCodeBadGateway', 'HTTPStatusCodeServiceUnavailable', 'HTTPStatusCodeGatewayTimeout', 'HTTPStatusCodeHTTPVersionNotSupported' + StatusCode HTTPStatusCode `json:"statusCode,omitempty"` + // Headers - HTTP headers associated with this operation. + Headers map[string][]string `json:"headers"` +} + +// MarshalJSON is the custom marshaler for OperationWorkerResponse. +func (owr OperationWorkerResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if owr.StatusCode != "" { + objectMap["statusCode"] = owr.StatusCode + } + if owr.Headers != nil { + objectMap["headers"] = owr.Headers + } + return json.Marshal(objectMap) +} + +// PointInTimeRange provides details for log ranges +type PointInTimeRange struct { + // StartTime - Start time of the time range for log recovery. + StartTime *date.Time `json:"startTime,omitempty"` + // EndTime - End time of the time range for log recovery. + EndTime *date.Time `json:"endTime,omitempty"` +} + +// PreBackupValidation pre-backup validation for Azure VM Workload provider. +type PreBackupValidation struct { + // Status - Status of protectable item, i.e. InProgress,Succeeded,Failed. Possible values include: 'InquiryStatusInvalid', 'InquiryStatusSuccess', 'InquiryStatusFailed' + Status InquiryStatus `json:"status,omitempty"` + // Code - Error code of protectable item + Code *string `json:"code,omitempty"` + // Message - Message corresponding to the error code for the protectable item + Message *string `json:"message,omitempty"` +} + +// PrepareDataMoveRequest prepare DataMove Request +type PrepareDataMoveRequest struct { + // TargetResourceID - ARM Id of target vault + TargetResourceID *string `json:"targetResourceId,omitempty"` + // TargetRegion - Target Region + TargetRegion *string `json:"targetRegion,omitempty"` + // DataMoveLevel - DataMove Level. Possible values include: 'DataMoveLevelInvalid', 'DataMoveLevelVault', 'DataMoveLevelContainer' + DataMoveLevel DataMoveLevel `json:"dataMoveLevel,omitempty"` + // SourceContainerArmIds - Source Container ArmIds + // This needs to be populated only if DataMoveLevel is set to container + SourceContainerArmIds *[]string `json:"sourceContainerArmIds,omitempty"` + // IgnoreMoved - Ignore the artifacts which are already moved. + IgnoreMoved *bool `json:"ignoreMoved,omitempty"` +} + +// PrepareDataMoveResponse prepare DataMove Response +type PrepareDataMoveResponse struct { + // CorrelationID - Co-relationId for move operation + CorrelationID *string `json:"correlationId,omitempty"` + // SourceVaultProperties - Source Vault Properties + SourceVaultProperties map[string]*string `json:"sourceVaultProperties"` + // ObjectType - Possible values include: 'ObjectTypeBasicVaultStorageConfigOperationResultResponseObjectTypeVaultStorageConfigOperationResultResponse', 'ObjectTypeBasicVaultStorageConfigOperationResultResponseObjectTypePrepareDataMoveResponse' + ObjectType ObjectTypeBasicVaultStorageConfigOperationResultResponse `json:"objectType,omitempty"` +} + +// MarshalJSON is the custom marshaler for PrepareDataMoveResponse. +func (pdmr PrepareDataMoveResponse) MarshalJSON() ([]byte, error) { + pdmr.ObjectType = ObjectTypeBasicVaultStorageConfigOperationResultResponseObjectTypePrepareDataMoveResponse + objectMap := make(map[string]interface{}) + if pdmr.CorrelationID != nil { + objectMap["correlationId"] = pdmr.CorrelationID + } + if pdmr.SourceVaultProperties != nil { + objectMap["sourceVaultProperties"] = pdmr.SourceVaultProperties + } + if pdmr.ObjectType != "" { + objectMap["objectType"] = pdmr.ObjectType + } + return json.Marshal(objectMap) +} + +// AsPrepareDataMoveResponse is the BasicVaultStorageConfigOperationResultResponse implementation for PrepareDataMoveResponse. +func (pdmr PrepareDataMoveResponse) AsPrepareDataMoveResponse() (*PrepareDataMoveResponse, bool) { + return &pdmr, true +} + +// AsVaultStorageConfigOperationResultResponse is the BasicVaultStorageConfigOperationResultResponse implementation for PrepareDataMoveResponse. +func (pdmr PrepareDataMoveResponse) AsVaultStorageConfigOperationResultResponse() (*VaultStorageConfigOperationResultResponse, bool) { + return nil, false +} + +// AsBasicVaultStorageConfigOperationResultResponse is the BasicVaultStorageConfigOperationResultResponse implementation for PrepareDataMoveResponse. +func (pdmr PrepareDataMoveResponse) AsBasicVaultStorageConfigOperationResultResponse() (BasicVaultStorageConfigOperationResultResponse, bool) { + return &pdmr, true +} + +// PreValidateEnableBackupRequest contract to validate if backup can be enabled on the given resource in a +// given vault and given configuration. +// It will validate followings +// 1. Vault capacity +// 2. VM is already protected +// 3. Any VM related configuration passed in properties. +type PreValidateEnableBackupRequest struct { + // ResourceType - ProtectedItem Type- VM, SqlDataBase, AzureFileShare etc. Possible values include: 'DataSourceTypeInvalid', 'DataSourceTypeVM', 'DataSourceTypeFileFolder', 'DataSourceTypeAzureSQLDb', 'DataSourceTypeSQLDB', 'DataSourceTypeExchange', 'DataSourceTypeSharepoint', 'DataSourceTypeVMwareVM', 'DataSourceTypeSystemState', 'DataSourceTypeClient', 'DataSourceTypeGenericDataSource', 'DataSourceTypeSQLDataBase', 'DataSourceTypeAzureFileShare', 'DataSourceTypeSAPHanaDatabase', 'DataSourceTypeSAPAseDatabase' + ResourceType DataSourceType `json:"resourceType,omitempty"` + // ResourceID - ARM Virtual Machine Id + ResourceID *string `json:"resourceId,omitempty"` + // VaultID - ARM id of the Recovery Services Vault + VaultID *string `json:"vaultId,omitempty"` + // Properties - Configuration of VM if any needs to be validated like OS type etc + Properties *string `json:"properties,omitempty"` +} + +// PreValidateEnableBackupResponse response contract for enable backup validation request +type PreValidateEnableBackupResponse struct { + autorest.Response `json:"-"` + // Status - Validation Status. Possible values include: 'ValidationStatusInvalid', 'ValidationStatusSucceeded', 'ValidationStatusFailed' + Status ValidationStatus `json:"status,omitempty"` + // ErrorCode - Response error code + ErrorCode *string `json:"errorCode,omitempty"` + // ErrorMessage - Response error message + ErrorMessage *string `json:"errorMessage,omitempty"` + // Recommendation - Recommended action for user + Recommendation *string `json:"recommendation,omitempty"` + // ContainerName - Specifies the product specific container name. E.g. iaasvmcontainer;iaasvmcontainer;rgname;vmname. This is required + // for portal + ContainerName *string `json:"containerName,omitempty"` + // ProtectedItemName - Specifies the product specific ds name. E.g. vm;iaasvmcontainer;rgname;vmname. This is required for portal + ProtectedItemName *string `json:"protectedItemName,omitempty"` +} + +// PrivateEndpoint the Private Endpoint network resource that is linked to the Private Endpoint connection +type PrivateEndpoint struct { + // ID - Gets or sets id + ID *string `json:"id,omitempty"` +} + +// PrivateEndpointConnection private Endpoint Connection Response Properties +type PrivateEndpointConnection struct { + // ProvisioningState - Gets or sets provisioning state of the private endpoint connection. Possible values include: 'ProvisioningStateSucceeded', 'ProvisioningStateDeleting', 'ProvisioningStateFailed', 'ProvisioningStatePending' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // PrivateEndpoint - Gets or sets private endpoint associated with the private endpoint connection + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + // PrivateLinkServiceConnectionState - Gets or sets private link service connection state + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` +} + +// PrivateEndpointConnectionDeleteFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type PrivateEndpointConnectionDeleteFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(PrivateEndpointConnectionClient) (autorest.Response, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *PrivateEndpointConnectionDeleteFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for PrivateEndpointConnectionDeleteFuture.Result. +func (future *PrivateEndpointConnectionDeleteFuture) result(client PrivateEndpointConnectionClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.PrivateEndpointConnectionDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + ar.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("backup.PrivateEndpointConnectionDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// PrivateEndpointConnectionPutFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type PrivateEndpointConnectionPutFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(PrivateEndpointConnectionClient) (PrivateEndpointConnectionResource, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *PrivateEndpointConnectionPutFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for PrivateEndpointConnectionPutFuture.Result. +func (future *PrivateEndpointConnectionPutFuture) result(client PrivateEndpointConnectionClient) (pecr PrivateEndpointConnectionResource, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.PrivateEndpointConnectionPutFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + pecr.Response.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("backup.PrivateEndpointConnectionPutFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if pecr.Response.Response, err = future.GetResult(sender); err == nil && pecr.Response.Response.StatusCode != http.StatusNoContent { + pecr, err = client.PutResponder(pecr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.PrivateEndpointConnectionPutFuture", "Result", pecr.Response.Response, "Failure responding to request") + } + } + return +} + +// PrivateEndpointConnectionResource private Endpoint Connection Response Properties +type PrivateEndpointConnectionResource struct { + autorest.Response `json:"-"` + // Properties - PrivateEndpointConnectionResource properties + Properties *PrivateEndpointConnection `json:"properties,omitempty"` + // ID - READ-ONLY; Resource Id represents the complete path to the resource. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name associated with the resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // ETag - Optional ETag. + ETag *string `json:"eTag,omitempty"` +} + +// MarshalJSON is the custom marshaler for PrivateEndpointConnectionResource. +func (pecr PrivateEndpointConnectionResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if pecr.Properties != nil { + objectMap["properties"] = pecr.Properties + } + if pecr.Location != nil { + objectMap["location"] = pecr.Location + } + if pecr.Tags != nil { + objectMap["tags"] = pecr.Tags + } + if pecr.ETag != nil { + objectMap["eTag"] = pecr.ETag + } + return json.Marshal(objectMap) +} + +// PrivateLinkServiceConnectionState private Link Service Connection State +type PrivateLinkServiceConnectionState struct { + // Status - Gets or sets the status. Possible values include: 'PrivateEndpointConnectionStatusPending', 'PrivateEndpointConnectionStatusApproved', 'PrivateEndpointConnectionStatusRejected', 'PrivateEndpointConnectionStatusDisconnected' + Status PrivateEndpointConnectionStatus `json:"status,omitempty"` + // Description - Gets or sets description + Description *string `json:"description,omitempty"` + // ActionRequired - Gets or sets actions required + ActionRequired *string `json:"actionRequired,omitempty"` +} + +// BasicProtectableContainer protectable Container Class. +type BasicProtectableContainer interface { + AsAzureStorageProtectableContainer() (*AzureStorageProtectableContainer, bool) + AsAzureVMAppContainerProtectableContainer() (*AzureVMAppContainerProtectableContainer, bool) + AsProtectableContainer() (*ProtectableContainer, bool) +} + +// ProtectableContainer protectable Container Class. +type ProtectableContainer struct { + // FriendlyName - Friendly name of the container. + FriendlyName *string `json:"friendlyName,omitempty"` + // BackupManagementType - Type of backup management for the container. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // HealthStatus - Status of health of the container. + HealthStatus *string `json:"healthStatus,omitempty"` + // ContainerID - Fabric Id of the container such as ARM Id. + ContainerID *string `json:"containerId,omitempty"` + // ProtectableContainerType - Possible values include: 'ProtectableContainerTypeProtectableContainer', 'ProtectableContainerTypeStorageContainer', 'ProtectableContainerTypeVMAppContainer' + ProtectableContainerType ProtectableContainerType `json:"protectableContainerType,omitempty"` +} + +func unmarshalBasicProtectableContainer(body []byte) (BasicProtectableContainer, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["protectableContainerType"] { + case string(ProtectableContainerTypeStorageContainer): + var aspc AzureStorageProtectableContainer + err := json.Unmarshal(body, &aspc) + return aspc, err + case string(ProtectableContainerTypeVMAppContainer): + var avacpc AzureVMAppContainerProtectableContainer + err := json.Unmarshal(body, &avacpc) + return avacpc, err + default: + var pc ProtectableContainer + err := json.Unmarshal(body, &pc) + return pc, err + } +} +func unmarshalBasicProtectableContainerArray(body []byte) ([]BasicProtectableContainer, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + pcArray := make([]BasicProtectableContainer, len(rawMessages)) + + for index, rawMessage := range rawMessages { + pc, err := unmarshalBasicProtectableContainer(*rawMessage) + if err != nil { + return nil, err + } + pcArray[index] = pc + } + return pcArray, nil +} + +// MarshalJSON is the custom marshaler for ProtectableContainer. +func (pc ProtectableContainer) MarshalJSON() ([]byte, error) { + pc.ProtectableContainerType = ProtectableContainerTypeProtectableContainer + objectMap := make(map[string]interface{}) + if pc.FriendlyName != nil { + objectMap["friendlyName"] = pc.FriendlyName + } + if pc.BackupManagementType != "" { + objectMap["backupManagementType"] = pc.BackupManagementType + } + if pc.HealthStatus != nil { + objectMap["healthStatus"] = pc.HealthStatus + } + if pc.ContainerID != nil { + objectMap["containerId"] = pc.ContainerID + } + if pc.ProtectableContainerType != "" { + objectMap["protectableContainerType"] = pc.ProtectableContainerType + } + return json.Marshal(objectMap) +} + +// AsAzureStorageProtectableContainer is the BasicProtectableContainer implementation for ProtectableContainer. +func (pc ProtectableContainer) AsAzureStorageProtectableContainer() (*AzureStorageProtectableContainer, bool) { + return nil, false +} + +// AsAzureVMAppContainerProtectableContainer is the BasicProtectableContainer implementation for ProtectableContainer. +func (pc ProtectableContainer) AsAzureVMAppContainerProtectableContainer() (*AzureVMAppContainerProtectableContainer, bool) { + return nil, false +} + +// AsProtectableContainer is the BasicProtectableContainer implementation for ProtectableContainer. +func (pc ProtectableContainer) AsProtectableContainer() (*ProtectableContainer, bool) { + return &pc, true +} + +// AsBasicProtectableContainer is the BasicProtectableContainer implementation for ProtectableContainer. +func (pc ProtectableContainer) AsBasicProtectableContainer() (BasicProtectableContainer, bool) { + return &pc, true +} + +// ProtectableContainerResource protectable Container Class. +type ProtectableContainerResource struct { + // Properties - ProtectableContainerResource properties + Properties BasicProtectableContainer `json:"properties,omitempty"` + // ID - READ-ONLY; Resource Id represents the complete path to the resource. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name associated with the resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // ETag - Optional ETag. + ETag *string `json:"eTag,omitempty"` +} + +// MarshalJSON is the custom marshaler for ProtectableContainerResource. +func (pcr ProtectableContainerResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + objectMap["properties"] = pcr.Properties + if pcr.Location != nil { + objectMap["location"] = pcr.Location + } + if pcr.Tags != nil { + objectMap["tags"] = pcr.Tags + } + if pcr.ETag != nil { + objectMap["eTag"] = pcr.ETag + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ProtectableContainerResource struct. +func (pcr *ProtectableContainerResource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + properties, err := unmarshalBasicProtectableContainer(*v) + if err != nil { + return err + } + pcr.Properties = properties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + pcr.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + pcr.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + pcr.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + pcr.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + pcr.Tags = tags + } + case "eTag": + if v != nil { + var eTag string + err = json.Unmarshal(*v, &eTag) + if err != nil { + return err + } + pcr.ETag = &eTag + } + } + } + + return nil +} + +// ProtectableContainerResourceList list of ProtectableContainer resources +type ProtectableContainerResourceList struct { + autorest.Response `json:"-"` + // Value - List of resources. + Value *[]ProtectableContainerResource `json:"value,omitempty"` + // NextLink - The uri to fetch the next page of resources. Call ListNext() fetches next page of resources. + NextLink *string `json:"nextLink,omitempty"` +} + +// ProtectableContainerResourceListIterator provides access to a complete listing of +// ProtectableContainerResource values. +type ProtectableContainerResourceListIterator struct { + i int + page ProtectableContainerResourceListPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ProtectableContainerResourceListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectableContainerResourceListIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ProtectableContainerResourceListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ProtectableContainerResourceListIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ProtectableContainerResourceListIterator) Response() ProtectableContainerResourceList { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ProtectableContainerResourceListIterator) Value() ProtectableContainerResource { + if !iter.page.NotDone() { + return ProtectableContainerResource{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ProtectableContainerResourceListIterator type. +func NewProtectableContainerResourceListIterator(page ProtectableContainerResourceListPage) ProtectableContainerResourceListIterator { + return ProtectableContainerResourceListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (pcrl ProtectableContainerResourceList) IsEmpty() bool { + return pcrl.Value == nil || len(*pcrl.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (pcrl ProtectableContainerResourceList) hasNextLink() bool { + return pcrl.NextLink != nil && len(*pcrl.NextLink) != 0 +} + +// protectableContainerResourceListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (pcrl ProtectableContainerResourceList) protectableContainerResourceListPreparer(ctx context.Context) (*http.Request, error) { + if !pcrl.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(pcrl.NextLink))) +} + +// ProtectableContainerResourceListPage contains a page of ProtectableContainerResource values. +type ProtectableContainerResourceListPage struct { + fn func(context.Context, ProtectableContainerResourceList) (ProtectableContainerResourceList, error) + pcrl ProtectableContainerResourceList +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ProtectableContainerResourceListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectableContainerResourceListPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.pcrl) + if err != nil { + return err + } + page.pcrl = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ProtectableContainerResourceListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ProtectableContainerResourceListPage) NotDone() bool { + return !page.pcrl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ProtectableContainerResourceListPage) Response() ProtectableContainerResourceList { + return page.pcrl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ProtectableContainerResourceListPage) Values() []ProtectableContainerResource { + if page.pcrl.IsEmpty() { + return nil + } + return *page.pcrl.Value +} + +// Creates a new instance of the ProtectableContainerResourceListPage type. +func NewProtectableContainerResourceListPage(cur ProtectableContainerResourceList, getNextPage func(context.Context, ProtectableContainerResourceList) (ProtectableContainerResourceList, error)) ProtectableContainerResourceListPage { + return ProtectableContainerResourceListPage{ + fn: getNextPage, + pcrl: cur, + } +} + +// BasicProtectedItem base class for backup items. +type BasicProtectedItem interface { + AsAzureFileshareProtectedItem() (*AzureFileshareProtectedItem, bool) + AsAzureIaaSClassicComputeVMProtectedItem() (*AzureIaaSClassicComputeVMProtectedItem, bool) + AsAzureIaaSComputeVMProtectedItem() (*AzureIaaSComputeVMProtectedItem, bool) + AsAzureIaaSVMProtectedItem() (*AzureIaaSVMProtectedItem, bool) + AsBasicAzureIaaSVMProtectedItem() (BasicAzureIaaSVMProtectedItem, bool) + AsAzureSQLProtectedItem() (*AzureSQLProtectedItem, bool) + AsAzureVMWorkloadProtectedItem() (*AzureVMWorkloadProtectedItem, bool) + AsBasicAzureVMWorkloadProtectedItem() (BasicAzureVMWorkloadProtectedItem, bool) + AsAzureVMWorkloadSAPAseDatabaseProtectedItem() (*AzureVMWorkloadSAPAseDatabaseProtectedItem, bool) + AsAzureVMWorkloadSAPHanaDatabaseProtectedItem() (*AzureVMWorkloadSAPHanaDatabaseProtectedItem, bool) + AsAzureVMWorkloadSQLDatabaseProtectedItem() (*AzureVMWorkloadSQLDatabaseProtectedItem, bool) + AsDPMProtectedItem() (*DPMProtectedItem, bool) + AsGenericProtectedItem() (*GenericProtectedItem, bool) + AsMabFileFolderProtectedItem() (*MabFileFolderProtectedItem, bool) + AsProtectedItem() (*ProtectedItem, bool) +} + +// ProtectedItem base class for backup items. +type ProtectedItem struct { + // BackupManagementType - Type of backup management for the backed up item. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // WorkloadType - Type of workload this item represents. Possible values include: 'DataSourceTypeInvalid', 'DataSourceTypeVM', 'DataSourceTypeFileFolder', 'DataSourceTypeAzureSQLDb', 'DataSourceTypeSQLDB', 'DataSourceTypeExchange', 'DataSourceTypeSharepoint', 'DataSourceTypeVMwareVM', 'DataSourceTypeSystemState', 'DataSourceTypeClient', 'DataSourceTypeGenericDataSource', 'DataSourceTypeSQLDataBase', 'DataSourceTypeAzureFileShare', 'DataSourceTypeSAPHanaDatabase', 'DataSourceTypeSAPAseDatabase' + WorkloadType DataSourceType `json:"workloadType,omitempty"` + // ContainerName - Unique name of container + ContainerName *string `json:"containerName,omitempty"` + // SourceResourceID - ARM ID of the resource to be backed up. + SourceResourceID *string `json:"sourceResourceId,omitempty"` + // PolicyID - ID of the backup policy with which this item is backed up. + PolicyID *string `json:"policyId,omitempty"` + // LastRecoveryPoint - Timestamp when the last (latest) backup copy was created for this backup item. + LastRecoveryPoint *date.Time `json:"lastRecoveryPoint,omitempty"` + // BackupSetName - Name of the backup set the backup item belongs to + BackupSetName *string `json:"backupSetName,omitempty"` + // CreateMode - Create mode to indicate recovery of existing soft deleted data source or creation of new data source. Possible values include: 'CreateModeInvalid', 'CreateModeDefault', 'CreateModeRecover' + CreateMode CreateMode `json:"createMode,omitempty"` + // DeferredDeleteTimeInUTC - Time for deferred deletion in UTC + DeferredDeleteTimeInUTC *date.Time `json:"deferredDeleteTimeInUTC,omitempty"` + // IsScheduledForDeferredDelete - Flag to identify whether the DS is scheduled for deferred delete + IsScheduledForDeferredDelete *bool `json:"isScheduledForDeferredDelete,omitempty"` + // DeferredDeleteTimeRemaining - Time remaining before the DS marked for deferred delete is permanently deleted + DeferredDeleteTimeRemaining *string `json:"deferredDeleteTimeRemaining,omitempty"` + // IsDeferredDeleteScheduleUpcoming - Flag to identify whether the deferred deleted DS is to be purged soon + IsDeferredDeleteScheduleUpcoming *bool `json:"isDeferredDeleteScheduleUpcoming,omitempty"` + // IsRehydrate - Flag to identify that deferred deleted DS is to be moved into Pause state + IsRehydrate *bool `json:"isRehydrate,omitempty"` + // ProtectedItemType - Possible values include: 'ProtectedItemTypeProtectedItem', 'ProtectedItemTypeAzureFileShareProtectedItem', 'ProtectedItemTypeMicrosoftClassicComputevirtualMachines', 'ProtectedItemTypeMicrosoftComputevirtualMachines', 'ProtectedItemTypeAzureIaaSVMProtectedItem', 'ProtectedItemTypeMicrosoftSqlserversdatabases', 'ProtectedItemTypeAzureVMWorkloadProtectedItem', 'ProtectedItemTypeAzureVMWorkloadSAPAseDatabase', 'ProtectedItemTypeAzureVMWorkloadSAPHanaDatabase', 'ProtectedItemTypeAzureVMWorkloadSQLDatabase', 'ProtectedItemTypeDPMProtectedItem', 'ProtectedItemTypeGenericProtectedItem', 'ProtectedItemTypeMabFileFolderProtectedItem' + ProtectedItemType ProtectedItemType `json:"protectedItemType,omitempty"` +} + +func unmarshalBasicProtectedItem(body []byte) (BasicProtectedItem, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["protectedItemType"] { + case string(ProtectedItemTypeAzureFileShareProtectedItem): + var afpi AzureFileshareProtectedItem + err := json.Unmarshal(body, &afpi) + return afpi, err + case string(ProtectedItemTypeMicrosoftClassicComputevirtualMachines): + var aisccvpi AzureIaaSClassicComputeVMProtectedItem + err := json.Unmarshal(body, &aisccvpi) + return aisccvpi, err + case string(ProtectedItemTypeMicrosoftComputevirtualMachines): + var aiscvpi AzureIaaSComputeVMProtectedItem + err := json.Unmarshal(body, &aiscvpi) + return aiscvpi, err + case string(ProtectedItemTypeAzureIaaSVMProtectedItem): + var aispi AzureIaaSVMProtectedItem + err := json.Unmarshal(body, &aispi) + return aispi, err + case string(ProtectedItemTypeMicrosoftSqlserversdatabases): + var aspi AzureSQLProtectedItem + err := json.Unmarshal(body, &aspi) + return aspi, err + case string(ProtectedItemTypeAzureVMWorkloadProtectedItem): + var avwpi AzureVMWorkloadProtectedItem + err := json.Unmarshal(body, &avwpi) + return avwpi, err + case string(ProtectedItemTypeAzureVMWorkloadSAPAseDatabase): + var avwsadpi AzureVMWorkloadSAPAseDatabaseProtectedItem + err := json.Unmarshal(body, &avwsadpi) + return avwsadpi, err + case string(ProtectedItemTypeAzureVMWorkloadSAPHanaDatabase): + var avwshdpi AzureVMWorkloadSAPHanaDatabaseProtectedItem + err := json.Unmarshal(body, &avwshdpi) + return avwshdpi, err + case string(ProtectedItemTypeAzureVMWorkloadSQLDatabase): + var avwsdpi AzureVMWorkloadSQLDatabaseProtectedItem + err := json.Unmarshal(body, &avwsdpi) + return avwsdpi, err + case string(ProtectedItemTypeDPMProtectedItem): + var dpi DPMProtectedItem + err := json.Unmarshal(body, &dpi) + return dpi, err + case string(ProtectedItemTypeGenericProtectedItem): + var gpi GenericProtectedItem + err := json.Unmarshal(body, &gpi) + return gpi, err + case string(ProtectedItemTypeMabFileFolderProtectedItem): + var mffpi MabFileFolderProtectedItem + err := json.Unmarshal(body, &mffpi) + return mffpi, err + default: + var pi ProtectedItem + err := json.Unmarshal(body, &pi) + return pi, err + } +} +func unmarshalBasicProtectedItemArray(body []byte) ([]BasicProtectedItem, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + piArray := make([]BasicProtectedItem, len(rawMessages)) + + for index, rawMessage := range rawMessages { + pi, err := unmarshalBasicProtectedItem(*rawMessage) + if err != nil { + return nil, err + } + piArray[index] = pi + } + return piArray, nil +} + +// MarshalJSON is the custom marshaler for ProtectedItem. +func (pi ProtectedItem) MarshalJSON() ([]byte, error) { + pi.ProtectedItemType = ProtectedItemTypeProtectedItem + objectMap := make(map[string]interface{}) + if pi.BackupManagementType != "" { + objectMap["backupManagementType"] = pi.BackupManagementType + } + if pi.WorkloadType != "" { + objectMap["workloadType"] = pi.WorkloadType + } + if pi.ContainerName != nil { + objectMap["containerName"] = pi.ContainerName + } + if pi.SourceResourceID != nil { + objectMap["sourceResourceId"] = pi.SourceResourceID + } + if pi.PolicyID != nil { + objectMap["policyId"] = pi.PolicyID + } + if pi.LastRecoveryPoint != nil { + objectMap["lastRecoveryPoint"] = pi.LastRecoveryPoint + } + if pi.BackupSetName != nil { + objectMap["backupSetName"] = pi.BackupSetName + } + if pi.CreateMode != "" { + objectMap["createMode"] = pi.CreateMode + } + if pi.DeferredDeleteTimeInUTC != nil { + objectMap["deferredDeleteTimeInUTC"] = pi.DeferredDeleteTimeInUTC + } + if pi.IsScheduledForDeferredDelete != nil { + objectMap["isScheduledForDeferredDelete"] = pi.IsScheduledForDeferredDelete + } + if pi.DeferredDeleteTimeRemaining != nil { + objectMap["deferredDeleteTimeRemaining"] = pi.DeferredDeleteTimeRemaining + } + if pi.IsDeferredDeleteScheduleUpcoming != nil { + objectMap["isDeferredDeleteScheduleUpcoming"] = pi.IsDeferredDeleteScheduleUpcoming + } + if pi.IsRehydrate != nil { + objectMap["isRehydrate"] = pi.IsRehydrate + } + if pi.ProtectedItemType != "" { + objectMap["protectedItemType"] = pi.ProtectedItemType + } + return json.Marshal(objectMap) +} + +// AsAzureFileshareProtectedItem is the BasicProtectedItem implementation for ProtectedItem. +func (pi ProtectedItem) AsAzureFileshareProtectedItem() (*AzureFileshareProtectedItem, bool) { + return nil, false +} + +// AsAzureIaaSClassicComputeVMProtectedItem is the BasicProtectedItem implementation for ProtectedItem. +func (pi ProtectedItem) AsAzureIaaSClassicComputeVMProtectedItem() (*AzureIaaSClassicComputeVMProtectedItem, bool) { + return nil, false +} + +// AsAzureIaaSComputeVMProtectedItem is the BasicProtectedItem implementation for ProtectedItem. +func (pi ProtectedItem) AsAzureIaaSComputeVMProtectedItem() (*AzureIaaSComputeVMProtectedItem, bool) { + return nil, false +} + +// AsAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for ProtectedItem. +func (pi ProtectedItem) AsAzureIaaSVMProtectedItem() (*AzureIaaSVMProtectedItem, bool) { + return nil, false +} + +// AsBasicAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for ProtectedItem. +func (pi ProtectedItem) AsBasicAzureIaaSVMProtectedItem() (BasicAzureIaaSVMProtectedItem, bool) { + return nil, false +} + +// AsAzureSQLProtectedItem is the BasicProtectedItem implementation for ProtectedItem. +func (pi ProtectedItem) AsAzureSQLProtectedItem() (*AzureSQLProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadProtectedItem is the BasicProtectedItem implementation for ProtectedItem. +func (pi ProtectedItem) AsAzureVMWorkloadProtectedItem() (*AzureVMWorkloadProtectedItem, bool) { + return nil, false +} + +// AsBasicAzureVMWorkloadProtectedItem is the BasicProtectedItem implementation for ProtectedItem. +func (pi ProtectedItem) AsBasicAzureVMWorkloadProtectedItem() (BasicAzureVMWorkloadProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPAseDatabaseProtectedItem is the BasicProtectedItem implementation for ProtectedItem. +func (pi ProtectedItem) AsAzureVMWorkloadSAPAseDatabaseProtectedItem() (*AzureVMWorkloadSAPAseDatabaseProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaDatabaseProtectedItem is the BasicProtectedItem implementation for ProtectedItem. +func (pi ProtectedItem) AsAzureVMWorkloadSAPHanaDatabaseProtectedItem() (*AzureVMWorkloadSAPHanaDatabaseProtectedItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLDatabaseProtectedItem is the BasicProtectedItem implementation for ProtectedItem. +func (pi ProtectedItem) AsAzureVMWorkloadSQLDatabaseProtectedItem() (*AzureVMWorkloadSQLDatabaseProtectedItem, bool) { + return nil, false +} + +// AsDPMProtectedItem is the BasicProtectedItem implementation for ProtectedItem. +func (pi ProtectedItem) AsDPMProtectedItem() (*DPMProtectedItem, bool) { + return nil, false +} + +// AsGenericProtectedItem is the BasicProtectedItem implementation for ProtectedItem. +func (pi ProtectedItem) AsGenericProtectedItem() (*GenericProtectedItem, bool) { + return nil, false +} + +// AsMabFileFolderProtectedItem is the BasicProtectedItem implementation for ProtectedItem. +func (pi ProtectedItem) AsMabFileFolderProtectedItem() (*MabFileFolderProtectedItem, bool) { + return nil, false +} + +// AsProtectedItem is the BasicProtectedItem implementation for ProtectedItem. +func (pi ProtectedItem) AsProtectedItem() (*ProtectedItem, bool) { + return &pi, true +} + +// AsBasicProtectedItem is the BasicProtectedItem implementation for ProtectedItem. +func (pi ProtectedItem) AsBasicProtectedItem() (BasicProtectedItem, bool) { + return &pi, true +} + +// ProtectedItemQueryObject filters to list backup items. +type ProtectedItemQueryObject struct { + // HealthState - Health State for the backed up item. Possible values include: 'HealthStatePassed', 'HealthStateActionRequired', 'HealthStateActionSuggested', 'HealthStateInvalid' + HealthState HealthState `json:"healthState,omitempty"` + // BackupManagementType - Backup management type for the backed up item. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // ItemType - Type of workload this item represents. Possible values include: 'DataSourceTypeInvalid', 'DataSourceTypeVM', 'DataSourceTypeFileFolder', 'DataSourceTypeAzureSQLDb', 'DataSourceTypeSQLDB', 'DataSourceTypeExchange', 'DataSourceTypeSharepoint', 'DataSourceTypeVMwareVM', 'DataSourceTypeSystemState', 'DataSourceTypeClient', 'DataSourceTypeGenericDataSource', 'DataSourceTypeSQLDataBase', 'DataSourceTypeAzureFileShare', 'DataSourceTypeSAPHanaDatabase', 'DataSourceTypeSAPAseDatabase' + ItemType DataSourceType `json:"itemType,omitempty"` + // PolicyName - Backup policy name associated with the backup item. + PolicyName *string `json:"policyName,omitempty"` + // ContainerName - Name of the container. + ContainerName *string `json:"containerName,omitempty"` + // BackupEngineName - Backup Engine name + BackupEngineName *string `json:"backupEngineName,omitempty"` + // FriendlyName - Friendly name of protected item + FriendlyName *string `json:"friendlyName,omitempty"` + // FabricName - Name of the fabric. + FabricName *string `json:"fabricName,omitempty"` + // BackupSetName - Name of the backup set. + BackupSetName *string `json:"backupSetName,omitempty"` +} + +// ProtectedItemResource base class for backup items. +type ProtectedItemResource struct { + autorest.Response `json:"-"` + // Properties - ProtectedItemResource properties + Properties BasicProtectedItem `json:"properties,omitempty"` + // ID - READ-ONLY; Resource Id represents the complete path to the resource. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name associated with the resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // ETag - Optional ETag. + ETag *string `json:"eTag,omitempty"` +} + +// MarshalJSON is the custom marshaler for ProtectedItemResource. +func (pir ProtectedItemResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + objectMap["properties"] = pir.Properties + if pir.Location != nil { + objectMap["location"] = pir.Location + } + if pir.Tags != nil { + objectMap["tags"] = pir.Tags + } + if pir.ETag != nil { + objectMap["eTag"] = pir.ETag + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ProtectedItemResource struct. +func (pir *ProtectedItemResource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + properties, err := unmarshalBasicProtectedItem(*v) + if err != nil { + return err + } + pir.Properties = properties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + pir.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + pir.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + pir.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + pir.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + pir.Tags = tags + } + case "eTag": + if v != nil { + var eTag string + err = json.Unmarshal(*v, &eTag) + if err != nil { + return err + } + pir.ETag = &eTag + } + } + } + + return nil +} + +// ProtectedItemResourceList list of ProtectedItem resources +type ProtectedItemResourceList struct { + autorest.Response `json:"-"` + // Value - List of resources. + Value *[]ProtectedItemResource `json:"value,omitempty"` + // NextLink - The uri to fetch the next page of resources. Call ListNext() fetches next page of resources. + NextLink *string `json:"nextLink,omitempty"` +} + +// ProtectedItemResourceListIterator provides access to a complete listing of ProtectedItemResource values. +type ProtectedItemResourceListIterator struct { + i int + page ProtectedItemResourceListPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ProtectedItemResourceListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectedItemResourceListIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ProtectedItemResourceListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ProtectedItemResourceListIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ProtectedItemResourceListIterator) Response() ProtectedItemResourceList { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ProtectedItemResourceListIterator) Value() ProtectedItemResource { + if !iter.page.NotDone() { + return ProtectedItemResource{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ProtectedItemResourceListIterator type. +func NewProtectedItemResourceListIterator(page ProtectedItemResourceListPage) ProtectedItemResourceListIterator { + return ProtectedItemResourceListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (pirl ProtectedItemResourceList) IsEmpty() bool { + return pirl.Value == nil || len(*pirl.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (pirl ProtectedItemResourceList) hasNextLink() bool { + return pirl.NextLink != nil && len(*pirl.NextLink) != 0 +} + +// protectedItemResourceListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (pirl ProtectedItemResourceList) protectedItemResourceListPreparer(ctx context.Context) (*http.Request, error) { + if !pirl.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(pirl.NextLink))) +} + +// ProtectedItemResourceListPage contains a page of ProtectedItemResource values. +type ProtectedItemResourceListPage struct { + fn func(context.Context, ProtectedItemResourceList) (ProtectedItemResourceList, error) + pirl ProtectedItemResourceList +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ProtectedItemResourceListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectedItemResourceListPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.pirl) + if err != nil { + return err + } + page.pirl = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ProtectedItemResourceListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ProtectedItemResourceListPage) NotDone() bool { + return !page.pirl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ProtectedItemResourceListPage) Response() ProtectedItemResourceList { + return page.pirl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ProtectedItemResourceListPage) Values() []ProtectedItemResource { + if page.pirl.IsEmpty() { + return nil + } + return *page.pirl.Value +} + +// Creates a new instance of the ProtectedItemResourceListPage type. +func NewProtectedItemResourceListPage(cur ProtectedItemResourceList, getNextPage func(context.Context, ProtectedItemResourceList) (ProtectedItemResourceList, error)) ProtectedItemResourceListPage { + return ProtectedItemResourceListPage{ + fn: getNextPage, + pirl: cur, + } +} + +// BasicProtectionContainer base class for container with backup items. Containers with specific workloads are derived +// from this class. +type BasicProtectionContainer interface { + AsAzureBackupServerContainer() (*AzureBackupServerContainer, bool) + AsAzureIaaSClassicComputeVMContainer() (*AzureIaaSClassicComputeVMContainer, bool) + AsAzureIaaSComputeVMContainer() (*AzureIaaSComputeVMContainer, bool) + AsAzureSQLAGWorkloadContainerProtectionContainer() (*AzureSQLAGWorkloadContainerProtectionContainer, bool) + AsAzureSQLContainer() (*AzureSQLContainer, bool) + AsAzureStorageContainer() (*AzureStorageContainer, bool) + AsAzureVMAppContainerProtectionContainer() (*AzureVMAppContainerProtectionContainer, bool) + AsAzureWorkloadContainer() (*AzureWorkloadContainer, bool) + AsBasicAzureWorkloadContainer() (BasicAzureWorkloadContainer, bool) + AsDpmContainer() (*DpmContainer, bool) + AsBasicDpmContainer() (BasicDpmContainer, bool) + AsGenericContainer() (*GenericContainer, bool) + AsIaaSVMContainer() (*IaaSVMContainer, bool) + AsBasicIaaSVMContainer() (BasicIaaSVMContainer, bool) + AsMabContainer() (*MabContainer, bool) + AsProtectionContainer() (*ProtectionContainer, bool) +} + +// ProtectionContainer base class for container with backup items. Containers with specific workloads are +// derived from this class. +type ProtectionContainer struct { + // FriendlyName - Friendly name of the container. + FriendlyName *string `json:"friendlyName,omitempty"` + // BackupManagementType - Type of backup management for the container. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // RegistrationStatus - Status of registration of the container with the Recovery Services Vault. + RegistrationStatus *string `json:"registrationStatus,omitempty"` + // HealthStatus - Status of health of the container. + HealthStatus *string `json:"healthStatus,omitempty"` + // ContainerType - Possible values include: 'ContainerTypeBasicProtectionContainerContainerTypeProtectionContainer', 'ContainerTypeBasicProtectionContainerContainerTypeAzureBackupServerContainer', 'ContainerTypeBasicProtectionContainerContainerTypeMicrosoftClassicComputevirtualMachines', 'ContainerTypeBasicProtectionContainerContainerTypeMicrosoftComputevirtualMachines', 'ContainerTypeBasicProtectionContainerContainerTypeSQLAGWorkLoadContainer', 'ContainerTypeBasicProtectionContainerContainerTypeAzureSQLContainer', 'ContainerTypeBasicProtectionContainerContainerTypeStorageContainer', 'ContainerTypeBasicProtectionContainerContainerTypeVMAppContainer', 'ContainerTypeBasicProtectionContainerContainerTypeAzureWorkloadContainer', 'ContainerTypeBasicProtectionContainerContainerTypeDPMContainer', 'ContainerTypeBasicProtectionContainerContainerTypeGenericContainer', 'ContainerTypeBasicProtectionContainerContainerTypeIaaSVMContainer', 'ContainerTypeBasicProtectionContainerContainerTypeWindows' + ContainerType ContainerTypeBasicProtectionContainer `json:"containerType,omitempty"` +} + +func unmarshalBasicProtectionContainer(body []byte) (BasicProtectionContainer, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["containerType"] { + case string(ContainerTypeBasicProtectionContainerContainerTypeAzureBackupServerContainer): + var absc AzureBackupServerContainer + err := json.Unmarshal(body, &absc) + return absc, err + case string(ContainerTypeBasicProtectionContainerContainerTypeMicrosoftClassicComputevirtualMachines): + var aisccvc AzureIaaSClassicComputeVMContainer + err := json.Unmarshal(body, &aisccvc) + return aisccvc, err + case string(ContainerTypeBasicProtectionContainerContainerTypeMicrosoftComputevirtualMachines): + var aiscvc AzureIaaSComputeVMContainer + err := json.Unmarshal(body, &aiscvc) + return aiscvc, err + case string(ContainerTypeBasicProtectionContainerContainerTypeSQLAGWorkLoadContainer): + var aswcpc AzureSQLAGWorkloadContainerProtectionContainer + err := json.Unmarshal(body, &aswcpc) + return aswcpc, err + case string(ContainerTypeBasicProtectionContainerContainerTypeAzureSQLContainer): + var asc AzureSQLContainer + err := json.Unmarshal(body, &asc) + return asc, err + case string(ContainerTypeBasicProtectionContainerContainerTypeStorageContainer): + var asc AzureStorageContainer + err := json.Unmarshal(body, &asc) + return asc, err + case string(ContainerTypeBasicProtectionContainerContainerTypeVMAppContainer): + var avacpc AzureVMAppContainerProtectionContainer + err := json.Unmarshal(body, &avacpc) + return avacpc, err + case string(ContainerTypeBasicProtectionContainerContainerTypeAzureWorkloadContainer): + var awc AzureWorkloadContainer + err := json.Unmarshal(body, &awc) + return awc, err + case string(ContainerTypeBasicProtectionContainerContainerTypeDPMContainer): + var dc DpmContainer + err := json.Unmarshal(body, &dc) + return dc, err + case string(ContainerTypeBasicProtectionContainerContainerTypeGenericContainer): + var gc GenericContainer + err := json.Unmarshal(body, &gc) + return gc, err + case string(ContainerTypeBasicProtectionContainerContainerTypeIaaSVMContainer): + var isc IaaSVMContainer + err := json.Unmarshal(body, &isc) + return isc, err + case string(ContainerTypeBasicProtectionContainerContainerTypeWindows): + var mc MabContainer + err := json.Unmarshal(body, &mc) + return mc, err + default: + var pc ProtectionContainer + err := json.Unmarshal(body, &pc) + return pc, err + } +} +func unmarshalBasicProtectionContainerArray(body []byte) ([]BasicProtectionContainer, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + pcArray := make([]BasicProtectionContainer, len(rawMessages)) + + for index, rawMessage := range rawMessages { + pc, err := unmarshalBasicProtectionContainer(*rawMessage) + if err != nil { + return nil, err + } + pcArray[index] = pc + } + return pcArray, nil +} + +// MarshalJSON is the custom marshaler for ProtectionContainer. +func (pc ProtectionContainer) MarshalJSON() ([]byte, error) { + pc.ContainerType = ContainerTypeBasicProtectionContainerContainerTypeProtectionContainer + objectMap := make(map[string]interface{}) + if pc.FriendlyName != nil { + objectMap["friendlyName"] = pc.FriendlyName + } + if pc.BackupManagementType != "" { + objectMap["backupManagementType"] = pc.BackupManagementType + } + if pc.RegistrationStatus != nil { + objectMap["registrationStatus"] = pc.RegistrationStatus + } + if pc.HealthStatus != nil { + objectMap["healthStatus"] = pc.HealthStatus + } + if pc.ContainerType != "" { + objectMap["containerType"] = pc.ContainerType + } + return json.Marshal(objectMap) +} + +// AsAzureBackupServerContainer is the BasicProtectionContainer implementation for ProtectionContainer. +func (pc ProtectionContainer) AsAzureBackupServerContainer() (*AzureBackupServerContainer, bool) { + return nil, false +} + +// AsAzureIaaSClassicComputeVMContainer is the BasicProtectionContainer implementation for ProtectionContainer. +func (pc ProtectionContainer) AsAzureIaaSClassicComputeVMContainer() (*AzureIaaSClassicComputeVMContainer, bool) { + return nil, false +} + +// AsAzureIaaSComputeVMContainer is the BasicProtectionContainer implementation for ProtectionContainer. +func (pc ProtectionContainer) AsAzureIaaSComputeVMContainer() (*AzureIaaSComputeVMContainer, bool) { + return nil, false +} + +// AsAzureSQLAGWorkloadContainerProtectionContainer is the BasicProtectionContainer implementation for ProtectionContainer. +func (pc ProtectionContainer) AsAzureSQLAGWorkloadContainerProtectionContainer() (*AzureSQLAGWorkloadContainerProtectionContainer, bool) { + return nil, false +} + +// AsAzureSQLContainer is the BasicProtectionContainer implementation for ProtectionContainer. +func (pc ProtectionContainer) AsAzureSQLContainer() (*AzureSQLContainer, bool) { + return nil, false +} + +// AsAzureStorageContainer is the BasicProtectionContainer implementation for ProtectionContainer. +func (pc ProtectionContainer) AsAzureStorageContainer() (*AzureStorageContainer, bool) { + return nil, false +} + +// AsAzureVMAppContainerProtectionContainer is the BasicProtectionContainer implementation for ProtectionContainer. +func (pc ProtectionContainer) AsAzureVMAppContainerProtectionContainer() (*AzureVMAppContainerProtectionContainer, bool) { + return nil, false +} + +// AsAzureWorkloadContainer is the BasicProtectionContainer implementation for ProtectionContainer. +func (pc ProtectionContainer) AsAzureWorkloadContainer() (*AzureWorkloadContainer, bool) { + return nil, false +} + +// AsBasicAzureWorkloadContainer is the BasicProtectionContainer implementation for ProtectionContainer. +func (pc ProtectionContainer) AsBasicAzureWorkloadContainer() (BasicAzureWorkloadContainer, bool) { + return nil, false +} + +// AsDpmContainer is the BasicProtectionContainer implementation for ProtectionContainer. +func (pc ProtectionContainer) AsDpmContainer() (*DpmContainer, bool) { + return nil, false +} + +// AsBasicDpmContainer is the BasicProtectionContainer implementation for ProtectionContainer. +func (pc ProtectionContainer) AsBasicDpmContainer() (BasicDpmContainer, bool) { + return nil, false +} + +// AsGenericContainer is the BasicProtectionContainer implementation for ProtectionContainer. +func (pc ProtectionContainer) AsGenericContainer() (*GenericContainer, bool) { + return nil, false +} + +// AsIaaSVMContainer is the BasicProtectionContainer implementation for ProtectionContainer. +func (pc ProtectionContainer) AsIaaSVMContainer() (*IaaSVMContainer, bool) { + return nil, false +} + +// AsBasicIaaSVMContainer is the BasicProtectionContainer implementation for ProtectionContainer. +func (pc ProtectionContainer) AsBasicIaaSVMContainer() (BasicIaaSVMContainer, bool) { + return nil, false +} + +// AsMabContainer is the BasicProtectionContainer implementation for ProtectionContainer. +func (pc ProtectionContainer) AsMabContainer() (*MabContainer, bool) { + return nil, false +} + +// AsProtectionContainer is the BasicProtectionContainer implementation for ProtectionContainer. +func (pc ProtectionContainer) AsProtectionContainer() (*ProtectionContainer, bool) { + return &pc, true +} + +// AsBasicProtectionContainer is the BasicProtectionContainer implementation for ProtectionContainer. +func (pc ProtectionContainer) AsBasicProtectionContainer() (BasicProtectionContainer, bool) { + return &pc, true +} + +// ProtectionContainerResource base class for container with backup items. Containers with specific +// workloads are derived from this class. +type ProtectionContainerResource struct { + autorest.Response `json:"-"` + // Properties - ProtectionContainerResource properties + Properties BasicProtectionContainer `json:"properties,omitempty"` + // ID - READ-ONLY; Resource Id represents the complete path to the resource. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name associated with the resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // ETag - Optional ETag. + ETag *string `json:"eTag,omitempty"` +} + +// MarshalJSON is the custom marshaler for ProtectionContainerResource. +func (pcr ProtectionContainerResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + objectMap["properties"] = pcr.Properties + if pcr.Location != nil { + objectMap["location"] = pcr.Location + } + if pcr.Tags != nil { + objectMap["tags"] = pcr.Tags + } + if pcr.ETag != nil { + objectMap["eTag"] = pcr.ETag + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ProtectionContainerResource struct. +func (pcr *ProtectionContainerResource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + properties, err := unmarshalBasicProtectionContainer(*v) + if err != nil { + return err + } + pcr.Properties = properties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + pcr.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + pcr.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + pcr.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + pcr.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + pcr.Tags = tags + } + case "eTag": + if v != nil { + var eTag string + err = json.Unmarshal(*v, &eTag) + if err != nil { + return err + } + pcr.ETag = &eTag + } + } + } + + return nil +} + +// ProtectionContainerResourceList list of ProtectionContainer resources +type ProtectionContainerResourceList struct { + autorest.Response `json:"-"` + // Value - List of resources. + Value *[]ProtectionContainerResource `json:"value,omitempty"` + // NextLink - The uri to fetch the next page of resources. Call ListNext() fetches next page of resources. + NextLink *string `json:"nextLink,omitempty"` +} + +// ProtectionContainerResourceListIterator provides access to a complete listing of +// ProtectionContainerResource values. +type ProtectionContainerResourceListIterator struct { + i int + page ProtectionContainerResourceListPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ProtectionContainerResourceListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectionContainerResourceListIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ProtectionContainerResourceListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ProtectionContainerResourceListIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ProtectionContainerResourceListIterator) Response() ProtectionContainerResourceList { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ProtectionContainerResourceListIterator) Value() ProtectionContainerResource { + if !iter.page.NotDone() { + return ProtectionContainerResource{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ProtectionContainerResourceListIterator type. +func NewProtectionContainerResourceListIterator(page ProtectionContainerResourceListPage) ProtectionContainerResourceListIterator { + return ProtectionContainerResourceListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (pcrl ProtectionContainerResourceList) IsEmpty() bool { + return pcrl.Value == nil || len(*pcrl.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (pcrl ProtectionContainerResourceList) hasNextLink() bool { + return pcrl.NextLink != nil && len(*pcrl.NextLink) != 0 +} + +// protectionContainerResourceListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (pcrl ProtectionContainerResourceList) protectionContainerResourceListPreparer(ctx context.Context) (*http.Request, error) { + if !pcrl.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(pcrl.NextLink))) +} + +// ProtectionContainerResourceListPage contains a page of ProtectionContainerResource values. +type ProtectionContainerResourceListPage struct { + fn func(context.Context, ProtectionContainerResourceList) (ProtectionContainerResourceList, error) + pcrl ProtectionContainerResourceList +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ProtectionContainerResourceListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectionContainerResourceListPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.pcrl) + if err != nil { + return err + } + page.pcrl = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ProtectionContainerResourceListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ProtectionContainerResourceListPage) NotDone() bool { + return !page.pcrl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ProtectionContainerResourceListPage) Response() ProtectionContainerResourceList { + return page.pcrl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ProtectionContainerResourceListPage) Values() []ProtectionContainerResource { + if page.pcrl.IsEmpty() { + return nil + } + return *page.pcrl.Value +} + +// Creates a new instance of the ProtectionContainerResourceListPage type. +func NewProtectionContainerResourceListPage(cur ProtectionContainerResourceList, getNextPage func(context.Context, ProtectionContainerResourceList) (ProtectionContainerResourceList, error)) ProtectionContainerResourceListPage { + return ProtectionContainerResourceListPage{ + fn: getNextPage, + pcrl: cur, + } +} + +// BasicProtectionIntent base class for backup ProtectionIntent. +type BasicProtectionIntent interface { + AsAzureRecoveryServiceVaultProtectionIntent() (*AzureRecoveryServiceVaultProtectionIntent, bool) + AsBasicAzureRecoveryServiceVaultProtectionIntent() (BasicAzureRecoveryServiceVaultProtectionIntent, bool) + AsAzureResourceProtectionIntent() (*AzureResourceProtectionIntent, bool) + AsAzureWorkloadAutoProtectionIntent() (*AzureWorkloadAutoProtectionIntent, bool) + AsBasicAzureWorkloadAutoProtectionIntent() (BasicAzureWorkloadAutoProtectionIntent, bool) + AsAzureWorkloadSQLAutoProtectionIntent() (*AzureWorkloadSQLAutoProtectionIntent, bool) + AsProtectionIntent() (*ProtectionIntent, bool) +} + +// ProtectionIntent base class for backup ProtectionIntent. +type ProtectionIntent struct { + // BackupManagementType - Type of backup management for the backed up item. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // SourceResourceID - ARM ID of the resource to be backed up. + SourceResourceID *string `json:"sourceResourceId,omitempty"` + // ItemID - ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId + ItemID *string `json:"itemId,omitempty"` + // PolicyID - ID of the backup policy with which this item is backed up. + PolicyID *string `json:"policyId,omitempty"` + // ProtectionState - Backup state of this backup item. Possible values include: 'ProtectionStatusInvalid', 'ProtectionStatusNotProtected', 'ProtectionStatusProtecting', 'ProtectionStatusProtected', 'ProtectionStatusProtectionFailed' + ProtectionState ProtectionStatus `json:"protectionState,omitempty"` + // ProtectionIntentItemType - Possible values include: 'ProtectionIntentItemTypeProtectionIntent', 'ProtectionIntentItemTypeRecoveryServiceVaultItem', 'ProtectionIntentItemTypeAzureResourceItem', 'ProtectionIntentItemTypeAzureWorkloadAutoProtectionIntent', 'ProtectionIntentItemTypeAzureWorkloadSQLAutoProtectionIntent' + ProtectionIntentItemType ProtectionIntentItemType `json:"protectionIntentItemType,omitempty"` +} + +func unmarshalBasicProtectionIntent(body []byte) (BasicProtectionIntent, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["protectionIntentItemType"] { + case string(ProtectionIntentItemTypeRecoveryServiceVaultItem): + var arsvpi AzureRecoveryServiceVaultProtectionIntent + err := json.Unmarshal(body, &arsvpi) + return arsvpi, err + case string(ProtectionIntentItemTypeAzureResourceItem): + var arpi AzureResourceProtectionIntent + err := json.Unmarshal(body, &arpi) + return arpi, err + case string(ProtectionIntentItemTypeAzureWorkloadAutoProtectionIntent): + var awapi AzureWorkloadAutoProtectionIntent + err := json.Unmarshal(body, &awapi) + return awapi, err + case string(ProtectionIntentItemTypeAzureWorkloadSQLAutoProtectionIntent): + var awsapi AzureWorkloadSQLAutoProtectionIntent + err := json.Unmarshal(body, &awsapi) + return awsapi, err + default: + var pi ProtectionIntent + err := json.Unmarshal(body, &pi) + return pi, err + } +} +func unmarshalBasicProtectionIntentArray(body []byte) ([]BasicProtectionIntent, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + piArray := make([]BasicProtectionIntent, len(rawMessages)) + + for index, rawMessage := range rawMessages { + pi, err := unmarshalBasicProtectionIntent(*rawMessage) + if err != nil { + return nil, err + } + piArray[index] = pi + } + return piArray, nil +} + +// MarshalJSON is the custom marshaler for ProtectionIntent. +func (pi ProtectionIntent) MarshalJSON() ([]byte, error) { + pi.ProtectionIntentItemType = ProtectionIntentItemTypeProtectionIntent + objectMap := make(map[string]interface{}) + if pi.BackupManagementType != "" { + objectMap["backupManagementType"] = pi.BackupManagementType + } + if pi.SourceResourceID != nil { + objectMap["sourceResourceId"] = pi.SourceResourceID + } + if pi.ItemID != nil { + objectMap["itemId"] = pi.ItemID + } + if pi.PolicyID != nil { + objectMap["policyId"] = pi.PolicyID + } + if pi.ProtectionState != "" { + objectMap["protectionState"] = pi.ProtectionState + } + if pi.ProtectionIntentItemType != "" { + objectMap["protectionIntentItemType"] = pi.ProtectionIntentItemType + } + return json.Marshal(objectMap) +} + +// AsAzureRecoveryServiceVaultProtectionIntent is the BasicProtectionIntent implementation for ProtectionIntent. +func (pi ProtectionIntent) AsAzureRecoveryServiceVaultProtectionIntent() (*AzureRecoveryServiceVaultProtectionIntent, bool) { + return nil, false +} + +// AsBasicAzureRecoveryServiceVaultProtectionIntent is the BasicProtectionIntent implementation for ProtectionIntent. +func (pi ProtectionIntent) AsBasicAzureRecoveryServiceVaultProtectionIntent() (BasicAzureRecoveryServiceVaultProtectionIntent, bool) { + return nil, false +} + +// AsAzureResourceProtectionIntent is the BasicProtectionIntent implementation for ProtectionIntent. +func (pi ProtectionIntent) AsAzureResourceProtectionIntent() (*AzureResourceProtectionIntent, bool) { + return nil, false +} + +// AsAzureWorkloadAutoProtectionIntent is the BasicProtectionIntent implementation for ProtectionIntent. +func (pi ProtectionIntent) AsAzureWorkloadAutoProtectionIntent() (*AzureWorkloadAutoProtectionIntent, bool) { + return nil, false +} + +// AsBasicAzureWorkloadAutoProtectionIntent is the BasicProtectionIntent implementation for ProtectionIntent. +func (pi ProtectionIntent) AsBasicAzureWorkloadAutoProtectionIntent() (BasicAzureWorkloadAutoProtectionIntent, bool) { + return nil, false +} + +// AsAzureWorkloadSQLAutoProtectionIntent is the BasicProtectionIntent implementation for ProtectionIntent. +func (pi ProtectionIntent) AsAzureWorkloadSQLAutoProtectionIntent() (*AzureWorkloadSQLAutoProtectionIntent, bool) { + return nil, false +} + +// AsProtectionIntent is the BasicProtectionIntent implementation for ProtectionIntent. +func (pi ProtectionIntent) AsProtectionIntent() (*ProtectionIntent, bool) { + return &pi, true +} + +// AsBasicProtectionIntent is the BasicProtectionIntent implementation for ProtectionIntent. +func (pi ProtectionIntent) AsBasicProtectionIntent() (BasicProtectionIntent, bool) { + return &pi, true +} + +// ProtectionIntentQueryObject filters to list protection intent. +type ProtectionIntentQueryObject struct { + // BackupManagementType - Backup management type for the backed up item. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // ItemType - Type of workload this item represents. Possible values include: 'IntentItemTypeInvalid', 'IntentItemTypeSQLInstance', 'IntentItemTypeSQLAvailabilityGroupContainer' + ItemType IntentItemType `json:"itemType,omitempty"` + // ParentName - Parent name of the intent + ParentName *string `json:"parentName,omitempty"` + // ItemName - Item name of the intent + ItemName *string `json:"itemName,omitempty"` +} + +// ProtectionIntentResource base class for backup ProtectionIntent. +type ProtectionIntentResource struct { + autorest.Response `json:"-"` + // Properties - ProtectionIntentResource properties + Properties BasicProtectionIntent `json:"properties,omitempty"` + // ID - READ-ONLY; Resource Id represents the complete path to the resource. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name associated with the resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // ETag - Optional ETag. + ETag *string `json:"eTag,omitempty"` +} + +// MarshalJSON is the custom marshaler for ProtectionIntentResource. +func (pir ProtectionIntentResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + objectMap["properties"] = pir.Properties + if pir.Location != nil { + objectMap["location"] = pir.Location + } + if pir.Tags != nil { + objectMap["tags"] = pir.Tags + } + if pir.ETag != nil { + objectMap["eTag"] = pir.ETag + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ProtectionIntentResource struct. +func (pir *ProtectionIntentResource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + properties, err := unmarshalBasicProtectionIntent(*v) + if err != nil { + return err + } + pir.Properties = properties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + pir.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + pir.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + pir.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + pir.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + pir.Tags = tags + } + case "eTag": + if v != nil { + var eTag string + err = json.Unmarshal(*v, &eTag) + if err != nil { + return err + } + pir.ETag = &eTag + } + } + } + + return nil +} + +// ProtectionIntentResourceList list of ProtectionIntent resources +type ProtectionIntentResourceList struct { + autorest.Response `json:"-"` + // Value - List of resources. + Value *[]ProtectionIntentResource `json:"value,omitempty"` + // NextLink - The uri to fetch the next page of resources. Call ListNext() fetches next page of resources. + NextLink *string `json:"nextLink,omitempty"` +} + +// ProtectionIntentResourceListIterator provides access to a complete listing of ProtectionIntentResource +// values. +type ProtectionIntentResourceListIterator struct { + i int + page ProtectionIntentResourceListPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ProtectionIntentResourceListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectionIntentResourceListIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ProtectionIntentResourceListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ProtectionIntentResourceListIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ProtectionIntentResourceListIterator) Response() ProtectionIntentResourceList { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ProtectionIntentResourceListIterator) Value() ProtectionIntentResource { + if !iter.page.NotDone() { + return ProtectionIntentResource{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ProtectionIntentResourceListIterator type. +func NewProtectionIntentResourceListIterator(page ProtectionIntentResourceListPage) ProtectionIntentResourceListIterator { + return ProtectionIntentResourceListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (pirl ProtectionIntentResourceList) IsEmpty() bool { + return pirl.Value == nil || len(*pirl.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (pirl ProtectionIntentResourceList) hasNextLink() bool { + return pirl.NextLink != nil && len(*pirl.NextLink) != 0 +} + +// protectionIntentResourceListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (pirl ProtectionIntentResourceList) protectionIntentResourceListPreparer(ctx context.Context) (*http.Request, error) { + if !pirl.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(pirl.NextLink))) +} + +// ProtectionIntentResourceListPage contains a page of ProtectionIntentResource values. +type ProtectionIntentResourceListPage struct { + fn func(context.Context, ProtectionIntentResourceList) (ProtectionIntentResourceList, error) + pirl ProtectionIntentResourceList +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ProtectionIntentResourceListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectionIntentResourceListPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.pirl) + if err != nil { + return err + } + page.pirl = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ProtectionIntentResourceListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ProtectionIntentResourceListPage) NotDone() bool { + return !page.pirl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ProtectionIntentResourceListPage) Response() ProtectionIntentResourceList { + return page.pirl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ProtectionIntentResourceListPage) Values() []ProtectionIntentResource { + if page.pirl.IsEmpty() { + return nil + } + return *page.pirl.Value +} + +// Creates a new instance of the ProtectionIntentResourceListPage type. +func NewProtectionIntentResourceListPage(cur ProtectionIntentResourceList, getNextPage func(context.Context, ProtectionIntentResourceList) (ProtectionIntentResourceList, error)) ProtectionIntentResourceListPage { + return ProtectionIntentResourceListPage{ + fn: getNextPage, + pirl: cur, + } +} + +// ProtectionPoliciesDeleteFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type ProtectionPoliciesDeleteFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(ProtectionPoliciesClient) (autorest.Response, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *ProtectionPoliciesDeleteFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for ProtectionPoliciesDeleteFuture.Result. +func (future *ProtectionPoliciesDeleteFuture) result(client ProtectionPoliciesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectionPoliciesDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + ar.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("backup.ProtectionPoliciesDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// BasicProtectionPolicy base class for backup policy. Workload-specific backup policies are derived from this class. +type BasicProtectionPolicy interface { + AsAzureVMWorkloadProtectionPolicy() (*AzureVMWorkloadProtectionPolicy, bool) + AsAzureFileShareProtectionPolicy() (*AzureFileShareProtectionPolicy, bool) + AsAzureIaaSVMProtectionPolicy() (*AzureIaaSVMProtectionPolicy, bool) + AsAzureSQLProtectionPolicy() (*AzureSQLProtectionPolicy, bool) + AsGenericProtectionPolicy() (*GenericProtectionPolicy, bool) + AsMabProtectionPolicy() (*MabProtectionPolicy, bool) + AsProtectionPolicy() (*ProtectionPolicy, bool) +} + +// ProtectionPolicy base class for backup policy. Workload-specific backup policies are derived from this +// class. +type ProtectionPolicy struct { + // ProtectedItemsCount - Number of items associated with this policy. + ProtectedItemsCount *int32 `json:"protectedItemsCount,omitempty"` + // BackupManagementType - Possible values include: 'ManagementTypeBasicProtectionPolicyBackupManagementTypeProtectionPolicy', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureWorkload', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureStorage', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureIaasVM', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureSQL', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeGenericProtectionPolicy', 'ManagementTypeBasicProtectionPolicyBackupManagementTypeMAB' + BackupManagementType ManagementTypeBasicProtectionPolicy `json:"backupManagementType,omitempty"` +} + +func unmarshalBasicProtectionPolicy(body []byte) (BasicProtectionPolicy, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["backupManagementType"] { + case string(ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureWorkload): + var avwpp AzureVMWorkloadProtectionPolicy + err := json.Unmarshal(body, &avwpp) + return avwpp, err + case string(ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureStorage): + var afspp AzureFileShareProtectionPolicy + err := json.Unmarshal(body, &afspp) + return afspp, err + case string(ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureIaasVM): + var aispp AzureIaaSVMProtectionPolicy + err := json.Unmarshal(body, &aispp) + return aispp, err + case string(ManagementTypeBasicProtectionPolicyBackupManagementTypeAzureSQL): + var aspp AzureSQLProtectionPolicy + err := json.Unmarshal(body, &aspp) + return aspp, err + case string(ManagementTypeBasicProtectionPolicyBackupManagementTypeGenericProtectionPolicy): + var gpp GenericProtectionPolicy + err := json.Unmarshal(body, &gpp) + return gpp, err + case string(ManagementTypeBasicProtectionPolicyBackupManagementTypeMAB): + var mpp MabProtectionPolicy + err := json.Unmarshal(body, &mpp) + return mpp, err + default: + var pp ProtectionPolicy + err := json.Unmarshal(body, &pp) + return pp, err + } +} +func unmarshalBasicProtectionPolicyArray(body []byte) ([]BasicProtectionPolicy, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + ppArray := make([]BasicProtectionPolicy, len(rawMessages)) + + for index, rawMessage := range rawMessages { + pp, err := unmarshalBasicProtectionPolicy(*rawMessage) + if err != nil { + return nil, err + } + ppArray[index] = pp + } + return ppArray, nil +} + +// MarshalJSON is the custom marshaler for ProtectionPolicy. +func (pp ProtectionPolicy) MarshalJSON() ([]byte, error) { + pp.BackupManagementType = ManagementTypeBasicProtectionPolicyBackupManagementTypeProtectionPolicy + objectMap := make(map[string]interface{}) + if pp.ProtectedItemsCount != nil { + objectMap["protectedItemsCount"] = pp.ProtectedItemsCount + } + if pp.BackupManagementType != "" { + objectMap["backupManagementType"] = pp.BackupManagementType + } + return json.Marshal(objectMap) +} + +// AsAzureVMWorkloadProtectionPolicy is the BasicProtectionPolicy implementation for ProtectionPolicy. +func (pp ProtectionPolicy) AsAzureVMWorkloadProtectionPolicy() (*AzureVMWorkloadProtectionPolicy, bool) { + return nil, false +} + +// AsAzureFileShareProtectionPolicy is the BasicProtectionPolicy implementation for ProtectionPolicy. +func (pp ProtectionPolicy) AsAzureFileShareProtectionPolicy() (*AzureFileShareProtectionPolicy, bool) { + return nil, false +} + +// AsAzureIaaSVMProtectionPolicy is the BasicProtectionPolicy implementation for ProtectionPolicy. +func (pp ProtectionPolicy) AsAzureIaaSVMProtectionPolicy() (*AzureIaaSVMProtectionPolicy, bool) { + return nil, false +} + +// AsAzureSQLProtectionPolicy is the BasicProtectionPolicy implementation for ProtectionPolicy. +func (pp ProtectionPolicy) AsAzureSQLProtectionPolicy() (*AzureSQLProtectionPolicy, bool) { + return nil, false +} + +// AsGenericProtectionPolicy is the BasicProtectionPolicy implementation for ProtectionPolicy. +func (pp ProtectionPolicy) AsGenericProtectionPolicy() (*GenericProtectionPolicy, bool) { + return nil, false +} + +// AsMabProtectionPolicy is the BasicProtectionPolicy implementation for ProtectionPolicy. +func (pp ProtectionPolicy) AsMabProtectionPolicy() (*MabProtectionPolicy, bool) { + return nil, false +} + +// AsProtectionPolicy is the BasicProtectionPolicy implementation for ProtectionPolicy. +func (pp ProtectionPolicy) AsProtectionPolicy() (*ProtectionPolicy, bool) { + return &pp, true +} + +// AsBasicProtectionPolicy is the BasicProtectionPolicy implementation for ProtectionPolicy. +func (pp ProtectionPolicy) AsBasicProtectionPolicy() (BasicProtectionPolicy, bool) { + return &pp, true +} + +// ProtectionPolicyQueryObject filters the list backup policies API. +type ProtectionPolicyQueryObject struct { + // BackupManagementType - Backup management type for the backup policy. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // FabricName - Fabric name for filter + FabricName *string `json:"fabricName,omitempty"` + // WorkloadType - Workload type for the backup policy. Possible values include: 'WorkloadTypeInvalid', 'WorkloadTypeVM', 'WorkloadTypeFileFolder', 'WorkloadTypeAzureSQLDb', 'WorkloadTypeSQLDB', 'WorkloadTypeExchange', 'WorkloadTypeSharepoint', 'WorkloadTypeVMwareVM', 'WorkloadTypeSystemState', 'WorkloadTypeClient', 'WorkloadTypeGenericDataSource', 'WorkloadTypeSQLDataBase', 'WorkloadTypeAzureFileShare', 'WorkloadTypeSAPHanaDatabase', 'WorkloadTypeSAPAseDatabase' + WorkloadType WorkloadType `json:"workloadType,omitempty"` +} + +// ProtectionPolicyResource base class for backup policy. Workload-specific backup policies are derived +// from this class. +type ProtectionPolicyResource struct { + autorest.Response `json:"-"` + // Properties - ProtectionPolicyResource properties + Properties BasicProtectionPolicy `json:"properties,omitempty"` + // ID - READ-ONLY; Resource Id represents the complete path to the resource. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name associated with the resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // ETag - Optional ETag. + ETag *string `json:"eTag,omitempty"` +} + +// MarshalJSON is the custom marshaler for ProtectionPolicyResource. +func (ppr ProtectionPolicyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + objectMap["properties"] = ppr.Properties + if ppr.Location != nil { + objectMap["location"] = ppr.Location + } + if ppr.Tags != nil { + objectMap["tags"] = ppr.Tags + } + if ppr.ETag != nil { + objectMap["eTag"] = ppr.ETag + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ProtectionPolicyResource struct. +func (ppr *ProtectionPolicyResource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + properties, err := unmarshalBasicProtectionPolicy(*v) + if err != nil { + return err + } + ppr.Properties = properties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + ppr.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + ppr.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ppr.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + ppr.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + ppr.Tags = tags + } + case "eTag": + if v != nil { + var eTag string + err = json.Unmarshal(*v, &eTag) + if err != nil { + return err + } + ppr.ETag = &eTag + } + } + } + + return nil +} + +// ProtectionPolicyResourceList list of ProtectionPolicy resources +type ProtectionPolicyResourceList struct { + autorest.Response `json:"-"` + // Value - List of resources. + Value *[]ProtectionPolicyResource `json:"value,omitempty"` + // NextLink - The uri to fetch the next page of resources. Call ListNext() fetches next page of resources. + NextLink *string `json:"nextLink,omitempty"` +} + +// ProtectionPolicyResourceListIterator provides access to a complete listing of ProtectionPolicyResource +// values. +type ProtectionPolicyResourceListIterator struct { + i int + page ProtectionPolicyResourceListPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ProtectionPolicyResourceListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectionPolicyResourceListIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ProtectionPolicyResourceListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ProtectionPolicyResourceListIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ProtectionPolicyResourceListIterator) Response() ProtectionPolicyResourceList { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ProtectionPolicyResourceListIterator) Value() ProtectionPolicyResource { + if !iter.page.NotDone() { + return ProtectionPolicyResource{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ProtectionPolicyResourceListIterator type. +func NewProtectionPolicyResourceListIterator(page ProtectionPolicyResourceListPage) ProtectionPolicyResourceListIterator { + return ProtectionPolicyResourceListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (pprl ProtectionPolicyResourceList) IsEmpty() bool { + return pprl.Value == nil || len(*pprl.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (pprl ProtectionPolicyResourceList) hasNextLink() bool { + return pprl.NextLink != nil && len(*pprl.NextLink) != 0 +} + +// protectionPolicyResourceListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (pprl ProtectionPolicyResourceList) protectionPolicyResourceListPreparer(ctx context.Context) (*http.Request, error) { + if !pprl.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(pprl.NextLink))) +} + +// ProtectionPolicyResourceListPage contains a page of ProtectionPolicyResource values. +type ProtectionPolicyResourceListPage struct { + fn func(context.Context, ProtectionPolicyResourceList) (ProtectionPolicyResourceList, error) + pprl ProtectionPolicyResourceList +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ProtectionPolicyResourceListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectionPolicyResourceListPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.pprl) + if err != nil { + return err + } + page.pprl = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ProtectionPolicyResourceListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ProtectionPolicyResourceListPage) NotDone() bool { + return !page.pprl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ProtectionPolicyResourceListPage) Response() ProtectionPolicyResourceList { + return page.pprl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ProtectionPolicyResourceListPage) Values() []ProtectionPolicyResource { + if page.pprl.IsEmpty() { + return nil + } + return *page.pprl.Value +} + +// Creates a new instance of the ProtectionPolicyResourceListPage type. +func NewProtectionPolicyResourceListPage(cur ProtectionPolicyResourceList, getNextPage func(context.Context, ProtectionPolicyResourceList) (ProtectionPolicyResourceList, error)) ProtectionPolicyResourceListPage { + return ProtectionPolicyResourceListPage{ + fn: getNextPage, + pprl: cur, + } +} + +// BasicRecoveryPoint base class for backup copies. Workload-specific backup copies are derived from this class. +type BasicRecoveryPoint interface { + AsAzureFileShareRecoveryPoint() (*AzureFileShareRecoveryPoint, bool) + AsAzureWorkloadPointInTimeRecoveryPoint() (*AzureWorkloadPointInTimeRecoveryPoint, bool) + AsBasicAzureWorkloadPointInTimeRecoveryPoint() (BasicAzureWorkloadPointInTimeRecoveryPoint, bool) + AsAzureWorkloadRecoveryPoint() (*AzureWorkloadRecoveryPoint, bool) + AsBasicAzureWorkloadRecoveryPoint() (BasicAzureWorkloadRecoveryPoint, bool) + AsAzureWorkloadSAPHanaPointInTimeRecoveryPoint() (*AzureWorkloadSAPHanaPointInTimeRecoveryPoint, bool) + AsAzureWorkloadSAPHanaRecoveryPoint() (*AzureWorkloadSAPHanaRecoveryPoint, bool) + AsAzureWorkloadSQLPointInTimeRecoveryPoint() (*AzureWorkloadSQLPointInTimeRecoveryPoint, bool) + AsAzureWorkloadSQLRecoveryPoint() (*AzureWorkloadSQLRecoveryPoint, bool) + AsBasicAzureWorkloadSQLRecoveryPoint() (BasicAzureWorkloadSQLRecoveryPoint, bool) + AsGenericRecoveryPoint() (*GenericRecoveryPoint, bool) + AsIaasVMRecoveryPoint() (*IaasVMRecoveryPoint, bool) + AsRecoveryPoint() (*RecoveryPoint, bool) +} + +// RecoveryPoint base class for backup copies. Workload-specific backup copies are derived from this class. +type RecoveryPoint struct { + // ObjectType - Possible values include: 'ObjectTypeBasicRecoveryPointObjectTypeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureFileShareRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadPointInTimeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeGenericRecoveryPoint', 'ObjectTypeBasicRecoveryPointObjectTypeIaasVMRecoveryPoint' + ObjectType ObjectTypeBasicRecoveryPoint `json:"objectType,omitempty"` +} + +func unmarshalBasicRecoveryPoint(body []byte) (BasicRecoveryPoint, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["objectType"] { + case string(ObjectTypeBasicRecoveryPointObjectTypeAzureFileShareRecoveryPoint): + var afsrp AzureFileShareRecoveryPoint + err := json.Unmarshal(body, &afsrp) + return afsrp, err + case string(ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadPointInTimeRecoveryPoint): + var awpitrp AzureWorkloadPointInTimeRecoveryPoint + err := json.Unmarshal(body, &awpitrp) + return awpitrp, err + case string(ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadRecoveryPoint): + var awrp AzureWorkloadRecoveryPoint + err := json.Unmarshal(body, &awrp) + return awrp, err + case string(ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint): + var awshpitrp AzureWorkloadSAPHanaPointInTimeRecoveryPoint + err := json.Unmarshal(body, &awshpitrp) + return awshpitrp, err + case string(ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSAPHanaRecoveryPoint): + var awshrp AzureWorkloadSAPHanaRecoveryPoint + err := json.Unmarshal(body, &awshrp) + return awshrp, err + case string(ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint): + var awspitrp AzureWorkloadSQLPointInTimeRecoveryPoint + err := json.Unmarshal(body, &awspitrp) + return awspitrp, err + case string(ObjectTypeBasicRecoveryPointObjectTypeAzureWorkloadSQLRecoveryPoint): + var awsrp AzureWorkloadSQLRecoveryPoint + err := json.Unmarshal(body, &awsrp) + return awsrp, err + case string(ObjectTypeBasicRecoveryPointObjectTypeGenericRecoveryPoint): + var grp GenericRecoveryPoint + err := json.Unmarshal(body, &grp) + return grp, err + case string(ObjectTypeBasicRecoveryPointObjectTypeIaasVMRecoveryPoint): + var ivrp IaasVMRecoveryPoint + err := json.Unmarshal(body, &ivrp) + return ivrp, err + default: + var rp RecoveryPoint + err := json.Unmarshal(body, &rp) + return rp, err + } +} +func unmarshalBasicRecoveryPointArray(body []byte) ([]BasicRecoveryPoint, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + rpArray := make([]BasicRecoveryPoint, len(rawMessages)) + + for index, rawMessage := range rawMessages { + rp, err := unmarshalBasicRecoveryPoint(*rawMessage) + if err != nil { + return nil, err + } + rpArray[index] = rp + } + return rpArray, nil +} + +// MarshalJSON is the custom marshaler for RecoveryPoint. +func (rp RecoveryPoint) MarshalJSON() ([]byte, error) { + rp.ObjectType = ObjectTypeBasicRecoveryPointObjectTypeRecoveryPoint + objectMap := make(map[string]interface{}) + if rp.ObjectType != "" { + objectMap["objectType"] = rp.ObjectType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareRecoveryPoint is the BasicRecoveryPoint implementation for RecoveryPoint. +func (rp RecoveryPoint) AsAzureFileShareRecoveryPoint() (*AzureFileShareRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for RecoveryPoint. +func (rp RecoveryPoint) AsAzureWorkloadPointInTimeRecoveryPoint() (*AzureWorkloadPointInTimeRecoveryPoint, bool) { + return nil, false +} + +// AsBasicAzureWorkloadPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for RecoveryPoint. +func (rp RecoveryPoint) AsBasicAzureWorkloadPointInTimeRecoveryPoint() (BasicAzureWorkloadPointInTimeRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadRecoveryPoint is the BasicRecoveryPoint implementation for RecoveryPoint. +func (rp RecoveryPoint) AsAzureWorkloadRecoveryPoint() (*AzureWorkloadRecoveryPoint, bool) { + return nil, false +} + +// AsBasicAzureWorkloadRecoveryPoint is the BasicRecoveryPoint implementation for RecoveryPoint. +func (rp RecoveryPoint) AsBasicAzureWorkloadRecoveryPoint() (BasicAzureWorkloadRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for RecoveryPoint. +func (rp RecoveryPoint) AsAzureWorkloadSAPHanaPointInTimeRecoveryPoint() (*AzureWorkloadSAPHanaPointInTimeRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaRecoveryPoint is the BasicRecoveryPoint implementation for RecoveryPoint. +func (rp RecoveryPoint) AsAzureWorkloadSAPHanaRecoveryPoint() (*AzureWorkloadSAPHanaRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadSQLPointInTimeRecoveryPoint is the BasicRecoveryPoint implementation for RecoveryPoint. +func (rp RecoveryPoint) AsAzureWorkloadSQLPointInTimeRecoveryPoint() (*AzureWorkloadSQLPointInTimeRecoveryPoint, bool) { + return nil, false +} + +// AsAzureWorkloadSQLRecoveryPoint is the BasicRecoveryPoint implementation for RecoveryPoint. +func (rp RecoveryPoint) AsAzureWorkloadSQLRecoveryPoint() (*AzureWorkloadSQLRecoveryPoint, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSQLRecoveryPoint is the BasicRecoveryPoint implementation for RecoveryPoint. +func (rp RecoveryPoint) AsBasicAzureWorkloadSQLRecoveryPoint() (BasicAzureWorkloadSQLRecoveryPoint, bool) { + return nil, false +} + +// AsGenericRecoveryPoint is the BasicRecoveryPoint implementation for RecoveryPoint. +func (rp RecoveryPoint) AsGenericRecoveryPoint() (*GenericRecoveryPoint, bool) { + return nil, false +} + +// AsIaasVMRecoveryPoint is the BasicRecoveryPoint implementation for RecoveryPoint. +func (rp RecoveryPoint) AsIaasVMRecoveryPoint() (*IaasVMRecoveryPoint, bool) { + return nil, false +} + +// AsRecoveryPoint is the BasicRecoveryPoint implementation for RecoveryPoint. +func (rp RecoveryPoint) AsRecoveryPoint() (*RecoveryPoint, bool) { + return &rp, true +} + +// AsBasicRecoveryPoint is the BasicRecoveryPoint implementation for RecoveryPoint. +func (rp RecoveryPoint) AsBasicRecoveryPoint() (BasicRecoveryPoint, bool) { + return &rp, true +} + +// RecoveryPointDiskConfiguration disk configuration +type RecoveryPointDiskConfiguration struct { + // NumberOfDisksIncludedInBackup - Number of disks included in backup + NumberOfDisksIncludedInBackup *int32 `json:"numberOfDisksIncludedInBackup,omitempty"` + // NumberOfDisksAttachedToVM - Number of disks attached to the VM + NumberOfDisksAttachedToVM *int32 `json:"numberOfDisksAttachedToVm,omitempty"` + // IncludedDiskList - Information of disks included in backup + IncludedDiskList *[]DiskInformation `json:"includedDiskList,omitempty"` + // ExcludedDiskList - Information of disks excluded from backup + ExcludedDiskList *[]DiskInformation `json:"excludedDiskList,omitempty"` +} + +// RecoveryPointMoveReadinessInfo ... +type RecoveryPointMoveReadinessInfo struct { + IsReadyForMove *bool `json:"isReadyForMove,omitempty"` + AdditionalInfo *string `json:"additionalInfo,omitempty"` +} + +// RecoveryPointRehydrationInfo RP Rehydration Info +type RecoveryPointRehydrationInfo struct { + // RehydrationRetentionDuration - How long the rehydrated RP should be kept + // Should be ISO8601 Duration format e.g. "P7D" + RehydrationRetentionDuration *string `json:"rehydrationRetentionDuration,omitempty"` + // RehydrationPriority - Rehydration Priority. Possible values include: 'RehydrationPriorityStandard', 'RehydrationPriorityHigh' + RehydrationPriority RehydrationPriority `json:"rehydrationPriority,omitempty"` +} + +// RecoveryPointResource base class for backup copies. Workload-specific backup copies are derived from +// this class. +type RecoveryPointResource struct { + autorest.Response `json:"-"` + // Properties - RecoveryPointResource properties + Properties BasicRecoveryPoint `json:"properties,omitempty"` + // ID - READ-ONLY; Resource Id represents the complete path to the resource. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name associated with the resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // ETag - Optional ETag. + ETag *string `json:"eTag,omitempty"` +} + +// MarshalJSON is the custom marshaler for RecoveryPointResource. +func (rpr RecoveryPointResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + objectMap["properties"] = rpr.Properties + if rpr.Location != nil { + objectMap["location"] = rpr.Location + } + if rpr.Tags != nil { + objectMap["tags"] = rpr.Tags + } + if rpr.ETag != nil { + objectMap["eTag"] = rpr.ETag + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for RecoveryPointResource struct. +func (rpr *RecoveryPointResource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + properties, err := unmarshalBasicRecoveryPoint(*v) + if err != nil { + return err + } + rpr.Properties = properties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + rpr.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + rpr.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + rpr.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + rpr.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + rpr.Tags = tags + } + case "eTag": + if v != nil { + var eTag string + err = json.Unmarshal(*v, &eTag) + if err != nil { + return err + } + rpr.ETag = &eTag + } + } + } + + return nil +} + +// RecoveryPointResourceList list of RecoveryPoint resources +type RecoveryPointResourceList struct { + autorest.Response `json:"-"` + // Value - List of resources. + Value *[]RecoveryPointResource `json:"value,omitempty"` + // NextLink - The uri to fetch the next page of resources. Call ListNext() fetches next page of resources. + NextLink *string `json:"nextLink,omitempty"` +} + +// RecoveryPointResourceListIterator provides access to a complete listing of RecoveryPointResource values. +type RecoveryPointResourceListIterator struct { + i int + page RecoveryPointResourceListPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *RecoveryPointResourceListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RecoveryPointResourceListIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *RecoveryPointResourceListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter RecoveryPointResourceListIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter RecoveryPointResourceListIterator) Response() RecoveryPointResourceList { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter RecoveryPointResourceListIterator) Value() RecoveryPointResource { + if !iter.page.NotDone() { + return RecoveryPointResource{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the RecoveryPointResourceListIterator type. +func NewRecoveryPointResourceListIterator(page RecoveryPointResourceListPage) RecoveryPointResourceListIterator { + return RecoveryPointResourceListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (rprl RecoveryPointResourceList) IsEmpty() bool { + return rprl.Value == nil || len(*rprl.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (rprl RecoveryPointResourceList) hasNextLink() bool { + return rprl.NextLink != nil && len(*rprl.NextLink) != 0 +} + +// recoveryPointResourceListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (rprl RecoveryPointResourceList) recoveryPointResourceListPreparer(ctx context.Context) (*http.Request, error) { + if !rprl.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(rprl.NextLink))) +} + +// RecoveryPointResourceListPage contains a page of RecoveryPointResource values. +type RecoveryPointResourceListPage struct { + fn func(context.Context, RecoveryPointResourceList) (RecoveryPointResourceList, error) + rprl RecoveryPointResourceList +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *RecoveryPointResourceListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RecoveryPointResourceListPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.rprl) + if err != nil { + return err + } + page.rprl = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *RecoveryPointResourceListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page RecoveryPointResourceListPage) NotDone() bool { + return !page.rprl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page RecoveryPointResourceListPage) Response() RecoveryPointResourceList { + return page.rprl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page RecoveryPointResourceListPage) Values() []RecoveryPointResource { + if page.rprl.IsEmpty() { + return nil + } + return *page.rprl.Value +} + +// Creates a new instance of the RecoveryPointResourceListPage type. +func NewRecoveryPointResourceListPage(cur RecoveryPointResourceList, getNextPage func(context.Context, RecoveryPointResourceList) (RecoveryPointResourceList, error)) RecoveryPointResourceListPage { + return RecoveryPointResourceListPage{ + fn: getNextPage, + rprl: cur, + } +} + +// RecoveryPointTierInformation recovery point tier information. +type RecoveryPointTierInformation struct { + // Type - Recovery point tier type. Possible values include: 'RecoveryPointTierTypeInvalid', 'RecoveryPointTierTypeInstantRP', 'RecoveryPointTierTypeHardenedRP', 'RecoveryPointTierTypeArchivedRP' + Type RecoveryPointTierType `json:"type,omitempty"` + // Status - Recovery point tier status. Possible values include: 'RecoveryPointTierStatusInvalid', 'RecoveryPointTierStatusValid', 'RecoveryPointTierStatusDisabled', 'RecoveryPointTierStatusDeleted', 'RecoveryPointTierStatusRehydrated' + Status RecoveryPointTierStatus `json:"status,omitempty"` + // ExtendedInfo - Recovery point tier status. + ExtendedInfo map[string]*string `json:"extendedInfo"` +} + +// MarshalJSON is the custom marshaler for RecoveryPointTierInformation. +func (rpti RecoveryPointTierInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rpti.Type != "" { + objectMap["type"] = rpti.Type + } + if rpti.Status != "" { + objectMap["status"] = rpti.Status + } + if rpti.ExtendedInfo != nil { + objectMap["extendedInfo"] = rpti.ExtendedInfo + } + return json.Marshal(objectMap) +} + +// BasicRequest base class for backup request. Workload-specific backup requests are derived from this class. +type BasicRequest interface { + AsAzureFileShareBackupRequest() (*AzureFileShareBackupRequest, bool) + AsAzureWorkloadBackupRequest() (*AzureWorkloadBackupRequest, bool) + AsIaasVMBackupRequest() (*IaasVMBackupRequest, bool) + AsRequest() (*Request, bool) +} + +// Request base class for backup request. Workload-specific backup requests are derived from this class. +type Request struct { + // ObjectType - Possible values include: 'ObjectTypeBasicRequestObjectTypeBackupRequest', 'ObjectTypeBasicRequestObjectTypeAzureFileShareBackupRequest', 'ObjectTypeBasicRequestObjectTypeAzureWorkloadBackupRequest', 'ObjectTypeBasicRequestObjectTypeIaasVMBackupRequest' + ObjectType ObjectTypeBasicRequest `json:"objectType,omitempty"` +} + +func unmarshalBasicRequest(body []byte) (BasicRequest, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["objectType"] { + case string(ObjectTypeBasicRequestObjectTypeAzureFileShareBackupRequest): + var afsbr AzureFileShareBackupRequest + err := json.Unmarshal(body, &afsbr) + return afsbr, err + case string(ObjectTypeBasicRequestObjectTypeAzureWorkloadBackupRequest): + var awbr AzureWorkloadBackupRequest + err := json.Unmarshal(body, &awbr) + return awbr, err + case string(ObjectTypeBasicRequestObjectTypeIaasVMBackupRequest): + var ivbr IaasVMBackupRequest + err := json.Unmarshal(body, &ivbr) + return ivbr, err + default: + var r Request + err := json.Unmarshal(body, &r) + return r, err + } +} +func unmarshalBasicRequestArray(body []byte) ([]BasicRequest, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + rArray := make([]BasicRequest, len(rawMessages)) + + for index, rawMessage := range rawMessages { + r, err := unmarshalBasicRequest(*rawMessage) + if err != nil { + return nil, err + } + rArray[index] = r + } + return rArray, nil +} + +// MarshalJSON is the custom marshaler for Request. +func (r Request) MarshalJSON() ([]byte, error) { + r.ObjectType = ObjectTypeBasicRequestObjectTypeBackupRequest + objectMap := make(map[string]interface{}) + if r.ObjectType != "" { + objectMap["objectType"] = r.ObjectType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareBackupRequest is the BasicRequest implementation for Request. +func (r Request) AsAzureFileShareBackupRequest() (*AzureFileShareBackupRequest, bool) { + return nil, false +} + +// AsAzureWorkloadBackupRequest is the BasicRequest implementation for Request. +func (r Request) AsAzureWorkloadBackupRequest() (*AzureWorkloadBackupRequest, bool) { + return nil, false +} + +// AsIaasVMBackupRequest is the BasicRequest implementation for Request. +func (r Request) AsIaasVMBackupRequest() (*IaasVMBackupRequest, bool) { + return nil, false +} + +// AsRequest is the BasicRequest implementation for Request. +func (r Request) AsRequest() (*Request, bool) { + return &r, true +} + +// AsBasicRequest is the BasicRequest implementation for Request. +func (r Request) AsBasicRequest() (BasicRequest, bool) { + return &r, true +} + +// RequestResource base class for backup request. Workload-specific backup requests are derived from this +// class. +type RequestResource struct { + // Properties - BackupRequestResource properties + Properties BasicRequest `json:"properties,omitempty"` + // ID - READ-ONLY; Resource Id represents the complete path to the resource. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name associated with the resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // ETag - Optional ETag. + ETag *string `json:"eTag,omitempty"` +} + +// MarshalJSON is the custom marshaler for RequestResource. +func (rr RequestResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + objectMap["properties"] = rr.Properties + if rr.Location != nil { + objectMap["location"] = rr.Location + } + if rr.Tags != nil { + objectMap["tags"] = rr.Tags + } + if rr.ETag != nil { + objectMap["eTag"] = rr.ETag + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for RequestResource struct. +func (rr *RequestResource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + properties, err := unmarshalBasicRequest(*v) + if err != nil { + return err + } + rr.Properties = properties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + rr.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + rr.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + rr.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + rr.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + rr.Tags = tags + } + case "eTag": + if v != nil { + var eTag string + err = json.Unmarshal(*v, &eTag) + if err != nil { + return err + } + rr.ETag = &eTag + } + } + } + + return nil +} + +// Resource ARM Resource. +type Resource struct { + // ID - READ-ONLY; Resource Id represents the complete path to the resource. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name associated with the resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // ETag - Optional ETag. + ETag *string `json:"eTag,omitempty"` +} + +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if r.Location != nil { + objectMap["location"] = r.Location + } + if r.Tags != nil { + objectMap["tags"] = r.Tags + } + if r.ETag != nil { + objectMap["eTag"] = r.ETag + } + return json.Marshal(objectMap) +} + +// ResourceConfig the resource storage details. +type ResourceConfig struct { + // StorageModelType - Storage type. Possible values include: 'StorageTypeInvalid', 'StorageTypeGeoRedundant', 'StorageTypeLocallyRedundant', 'StorageTypeZoneRedundant', 'StorageTypeReadAccessGeoZoneRedundant' + StorageModelType StorageType `json:"storageModelType,omitempty"` + // StorageType - Storage type. Possible values include: 'StorageTypeInvalid', 'StorageTypeGeoRedundant', 'StorageTypeLocallyRedundant', 'StorageTypeZoneRedundant', 'StorageTypeReadAccessGeoZoneRedundant' + StorageType StorageType `json:"storageType,omitempty"` + // StorageTypeState - Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is always Locked. Possible values include: 'StorageTypeStateInvalid', 'StorageTypeStateLocked', 'StorageTypeStateUnlocked' + StorageTypeState StorageTypeState `json:"storageTypeState,omitempty"` + // CrossRegionRestoreFlag - Opt in details of Cross Region Restore feature. + CrossRegionRestoreFlag *bool `json:"crossRegionRestoreFlag,omitempty"` +} + +// ResourceConfigResource the resource storage details. +type ResourceConfigResource struct { + autorest.Response `json:"-"` + // Properties - BackupResourceConfigResource properties + Properties *ResourceConfig `json:"properties,omitempty"` + // ID - READ-ONLY; Resource Id represents the complete path to the resource. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name associated with the resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // ETag - Optional ETag. + ETag *string `json:"eTag,omitempty"` +} + +// MarshalJSON is the custom marshaler for ResourceConfigResource. +func (rcr ResourceConfigResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rcr.Properties != nil { + objectMap["properties"] = rcr.Properties + } + if rcr.Location != nil { + objectMap["location"] = rcr.Location + } + if rcr.Tags != nil { + objectMap["tags"] = rcr.Tags + } + if rcr.ETag != nil { + objectMap["eTag"] = rcr.ETag + } + return json.Marshal(objectMap) +} + +// ResourceEncryptionConfig ... +type ResourceEncryptionConfig struct { + // EncryptionAtRestType - Encryption At Rest Type. Possible values include: 'EncryptionAtRestTypeInvalid', 'EncryptionAtRestTypeMicrosoftManaged', 'EncryptionAtRestTypeCustomerManaged' + EncryptionAtRestType EncryptionAtRestType `json:"encryptionAtRestType,omitempty"` + // KeyURI - Key Vault Key URI + KeyURI *string `json:"keyUri,omitempty"` + // SubscriptionID - Key Vault Subscription Id + SubscriptionID *string `json:"subscriptionId,omitempty"` + // LastUpdateStatus - Possible values include: 'LastUpdateStatusInvalid', 'LastUpdateStatusNotEnabled', 'LastUpdateStatusPartiallySucceeded', 'LastUpdateStatusPartiallyFailed', 'LastUpdateStatusFailed', 'LastUpdateStatusSucceeded' + LastUpdateStatus LastUpdateStatus `json:"lastUpdateStatus,omitempty"` + // InfrastructureEncryptionState - Possible values include: 'InfrastructureEncryptionStateInvalid', 'InfrastructureEncryptionStateDisabled', 'InfrastructureEncryptionStateEnabled' + InfrastructureEncryptionState InfrastructureEncryptionState `json:"infrastructureEncryptionState,omitempty"` +} + +// ResourceEncryptionConfigResource ... +type ResourceEncryptionConfigResource struct { + autorest.Response `json:"-"` + // Properties - BackupResourceEncryptionConfigResource properties + Properties *ResourceEncryptionConfig `json:"properties,omitempty"` + // ID - READ-ONLY; Resource Id represents the complete path to the resource. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name associated with the resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // ETag - Optional ETag. + ETag *string `json:"eTag,omitempty"` +} + +// MarshalJSON is the custom marshaler for ResourceEncryptionConfigResource. +func (recr ResourceEncryptionConfigResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if recr.Properties != nil { + objectMap["properties"] = recr.Properties + } + if recr.Location != nil { + objectMap["location"] = recr.Location + } + if recr.Tags != nil { + objectMap["tags"] = recr.Tags + } + if recr.ETag != nil { + objectMap["eTag"] = recr.ETag + } + return json.Marshal(objectMap) +} + +// ResourceHealthDetails health Details for backup items. +type ResourceHealthDetails struct { + // Code - READ-ONLY; Health Code + Code *int32 `json:"code,omitempty"` + // Title - READ-ONLY; Health Title + Title *string `json:"title,omitempty"` + // Message - READ-ONLY; Health Message + Message *string `json:"message,omitempty"` + // Recommendations - READ-ONLY; Health Recommended Actions + Recommendations *[]string `json:"recommendations,omitempty"` +} + +// MarshalJSON is the custom marshaler for ResourceHealthDetails. +func (rhd ResourceHealthDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// ResourceList base for all lists of resources. +type ResourceList struct { + // NextLink - The uri to fetch the next page of resources. Call ListNext() fetches next page of resources. + NextLink *string `json:"nextLink,omitempty"` +} + +// ResourceVaultConfig backup resource vault config details. +type ResourceVaultConfig struct { + // StorageModelType - Storage type. Possible values include: 'StorageTypeInvalid', 'StorageTypeGeoRedundant', 'StorageTypeLocallyRedundant', 'StorageTypeZoneRedundant', 'StorageTypeReadAccessGeoZoneRedundant' + StorageModelType StorageType `json:"storageModelType,omitempty"` + // StorageType - Storage type. Possible values include: 'StorageTypeInvalid', 'StorageTypeGeoRedundant', 'StorageTypeLocallyRedundant', 'StorageTypeZoneRedundant', 'StorageTypeReadAccessGeoZoneRedundant' + StorageType StorageType `json:"storageType,omitempty"` + // StorageTypeState - Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is always Locked. Possible values include: 'StorageTypeStateInvalid', 'StorageTypeStateLocked', 'StorageTypeStateUnlocked' + StorageTypeState StorageTypeState `json:"storageTypeState,omitempty"` + // EnhancedSecurityState - Enabled or Disabled. Possible values include: 'EnhancedSecurityStateInvalid', 'EnhancedSecurityStateEnabled', 'EnhancedSecurityStateDisabled' + EnhancedSecurityState EnhancedSecurityState `json:"enhancedSecurityState,omitempty"` + // SoftDeleteFeatureState - Soft Delete feature state. Possible values include: 'SoftDeleteFeatureStateInvalid', 'SoftDeleteFeatureStateEnabled', 'SoftDeleteFeatureStateDisabled' + SoftDeleteFeatureState SoftDeleteFeatureState `json:"softDeleteFeatureState,omitempty"` +} + +// ResourceVaultConfigResource backup resource vault config details. +type ResourceVaultConfigResource struct { + autorest.Response `json:"-"` + // Properties - BackupResourceVaultConfigResource properties + Properties *ResourceVaultConfig `json:"properties,omitempty"` + // ID - READ-ONLY; Resource Id represents the complete path to the resource. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name associated with the resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // ETag - Optional ETag. + ETag *string `json:"eTag,omitempty"` +} + +// MarshalJSON is the custom marshaler for ResourceVaultConfigResource. +func (rvcr ResourceVaultConfigResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rvcr.Properties != nil { + objectMap["properties"] = rvcr.Properties + } + if rvcr.Location != nil { + objectMap["location"] = rvcr.Location + } + if rvcr.Tags != nil { + objectMap["tags"] = rvcr.Tags + } + if rvcr.ETag != nil { + objectMap["eTag"] = rvcr.ETag + } + return json.Marshal(objectMap) +} + +// RestoreFileSpecs restore file specs like file path, type and target folder path info. +type RestoreFileSpecs struct { + // Path - Source File/Folder path + Path *string `json:"path,omitempty"` + // FileSpecType - Indicates what the Path variable stands for + FileSpecType *string `json:"fileSpecType,omitempty"` + // TargetFolderPath - Destination folder path in target FileShare + TargetFolderPath *string `json:"targetFolderPath,omitempty"` +} + +// BasicRestoreRequest base class for restore request. Workload-specific restore requests are derived from this class. +type BasicRestoreRequest interface { + AsAzureFileShareRestoreRequest() (*AzureFileShareRestoreRequest, bool) + AsAzureWorkloadPointInTimeRestoreRequest() (*AzureWorkloadPointInTimeRestoreRequest, bool) + AsAzureWorkloadRestoreRequest() (*AzureWorkloadRestoreRequest, bool) + AsBasicAzureWorkloadRestoreRequest() (BasicAzureWorkloadRestoreRequest, bool) + AsAzureWorkloadSAPHanaPointInTimeRestoreRequest() (*AzureWorkloadSAPHanaPointInTimeRestoreRequest, bool) + AsBasicAzureWorkloadSAPHanaPointInTimeRestoreRequest() (BasicAzureWorkloadSAPHanaPointInTimeRestoreRequest, bool) + AsAzureWorkloadSAPHanaRestoreRequest() (*AzureWorkloadSAPHanaRestoreRequest, bool) + AsBasicAzureWorkloadSAPHanaRestoreRequest() (BasicAzureWorkloadSAPHanaRestoreRequest, bool) + AsAzureWorkloadSQLPointInTimeRestoreRequest() (*AzureWorkloadSQLPointInTimeRestoreRequest, bool) + AsBasicAzureWorkloadSQLPointInTimeRestoreRequest() (BasicAzureWorkloadSQLPointInTimeRestoreRequest, bool) + AsAzureWorkloadSQLRestoreRequest() (*AzureWorkloadSQLRestoreRequest, bool) + AsBasicAzureWorkloadSQLRestoreRequest() (BasicAzureWorkloadSQLRestoreRequest, bool) + AsIaasVMRestoreRequest() (*IaasVMRestoreRequest, bool) + AsBasicIaasVMRestoreRequest() (BasicIaasVMRestoreRequest, bool) + AsAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest() (*AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, bool) + AsAzureWorkloadSAPHanaRestoreWithRehydrateRequest() (*AzureWorkloadSAPHanaRestoreWithRehydrateRequest, bool) + AsAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest() (*AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, bool) + AsAzureWorkloadSQLRestoreWithRehydrateRequest() (*AzureWorkloadSQLRestoreWithRehydrateRequest, bool) + AsIaasVMRestoreWithRehydrationRequest() (*IaasVMRestoreWithRehydrationRequest, bool) + AsRestoreRequest() (*RestoreRequest, bool) +} + +// RestoreRequest base class for restore request. Workload-specific restore requests are derived from this +// class. +type RestoreRequest struct { + // ObjectType - Possible values include: 'ObjectTypeBasicRestoreRequestObjectTypeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureFileShareRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreWithRehydrateRequest', 'ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreWithRehydrationRequest' + ObjectType ObjectTypeBasicRestoreRequest `json:"objectType,omitempty"` +} + +func unmarshalBasicRestoreRequest(body []byte) (BasicRestoreRequest, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["objectType"] { + case string(ObjectTypeBasicRestoreRequestObjectTypeAzureFileShareRestoreRequest): + var afsrr AzureFileShareRestoreRequest + err := json.Unmarshal(body, &afsrr) + return afsrr, err + case string(ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadPointInTimeRestoreRequest): + var awpitrr AzureWorkloadPointInTimeRestoreRequest + err := json.Unmarshal(body, &awpitrr) + return awpitrr, err + case string(ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadRestoreRequest): + var awrr AzureWorkloadRestoreRequest + err := json.Unmarshal(body, &awrr) + return awrr, err + case string(ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest): + var awshpitrr AzureWorkloadSAPHanaPointInTimeRestoreRequest + err := json.Unmarshal(body, &awshpitrr) + return awshpitrr, err + case string(ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreRequest): + var awshrr AzureWorkloadSAPHanaRestoreRequest + err := json.Unmarshal(body, &awshrr) + return awshrr, err + case string(ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest): + var awspitrr AzureWorkloadSQLPointInTimeRestoreRequest + err := json.Unmarshal(body, &awspitrr) + return awspitrr, err + case string(ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreRequest): + var awsrr AzureWorkloadSQLRestoreRequest + err := json.Unmarshal(body, &awsrr) + return awsrr, err + case string(ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreRequest): + var ivrr IaasVMRestoreRequest + err := json.Unmarshal(body, &ivrr) + return ivrr, err + case string(ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest): + var awshpitrwrr AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest + err := json.Unmarshal(body, &awshpitrwrr) + return awshpitrwrr, err + case string(ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSAPHanaRestoreWithRehydrateRequest): + var awshrwrr AzureWorkloadSAPHanaRestoreWithRehydrateRequest + err := json.Unmarshal(body, &awshrwrr) + return awshrwrr, err + case string(ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest): + var awspitrwrr AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest + err := json.Unmarshal(body, &awspitrwrr) + return awspitrwrr, err + case string(ObjectTypeBasicRestoreRequestObjectTypeAzureWorkloadSQLRestoreWithRehydrateRequest): + var awsrwrr AzureWorkloadSQLRestoreWithRehydrateRequest + err := json.Unmarshal(body, &awsrwrr) + return awsrwrr, err + case string(ObjectTypeBasicRestoreRequestObjectTypeIaasVMRestoreWithRehydrationRequest): + var ivrwrr IaasVMRestoreWithRehydrationRequest + err := json.Unmarshal(body, &ivrwrr) + return ivrwrr, err + default: + var rr RestoreRequest + err := json.Unmarshal(body, &rr) + return rr, err + } +} +func unmarshalBasicRestoreRequestArray(body []byte) ([]BasicRestoreRequest, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + rrArray := make([]BasicRestoreRequest, len(rawMessages)) + + for index, rawMessage := range rawMessages { + rr, err := unmarshalBasicRestoreRequest(*rawMessage) + if err != nil { + return nil, err + } + rrArray[index] = rr + } + return rrArray, nil +} + +// MarshalJSON is the custom marshaler for RestoreRequest. +func (rr RestoreRequest) MarshalJSON() ([]byte, error) { + rr.ObjectType = ObjectTypeBasicRestoreRequestObjectTypeRestoreRequest + objectMap := make(map[string]interface{}) + if rr.ObjectType != "" { + objectMap["objectType"] = rr.ObjectType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareRestoreRequest is the BasicRestoreRequest implementation for RestoreRequest. +func (rr RestoreRequest) AsAzureFileShareRestoreRequest() (*AzureFileShareRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadPointInTimeRestoreRequest is the BasicRestoreRequest implementation for RestoreRequest. +func (rr RestoreRequest) AsAzureWorkloadPointInTimeRestoreRequest() (*AzureWorkloadPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadRestoreRequest is the BasicRestoreRequest implementation for RestoreRequest. +func (rr RestoreRequest) AsAzureWorkloadRestoreRequest() (*AzureWorkloadRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadRestoreRequest is the BasicRestoreRequest implementation for RestoreRequest. +func (rr RestoreRequest) AsBasicAzureWorkloadRestoreRequest() (BasicAzureWorkloadRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaPointInTimeRestoreRequest is the BasicRestoreRequest implementation for RestoreRequest. +func (rr RestoreRequest) AsAzureWorkloadSAPHanaPointInTimeRestoreRequest() (*AzureWorkloadSAPHanaPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSAPHanaPointInTimeRestoreRequest is the BasicRestoreRequest implementation for RestoreRequest. +func (rr RestoreRequest) AsBasicAzureWorkloadSAPHanaPointInTimeRestoreRequest() (BasicAzureWorkloadSAPHanaPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaRestoreRequest is the BasicRestoreRequest implementation for RestoreRequest. +func (rr RestoreRequest) AsAzureWorkloadSAPHanaRestoreRequest() (*AzureWorkloadSAPHanaRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSAPHanaRestoreRequest is the BasicRestoreRequest implementation for RestoreRequest. +func (rr RestoreRequest) AsBasicAzureWorkloadSAPHanaRestoreRequest() (BasicAzureWorkloadSAPHanaRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLPointInTimeRestoreRequest is the BasicRestoreRequest implementation for RestoreRequest. +func (rr RestoreRequest) AsAzureWorkloadSQLPointInTimeRestoreRequest() (*AzureWorkloadSQLPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSQLPointInTimeRestoreRequest is the BasicRestoreRequest implementation for RestoreRequest. +func (rr RestoreRequest) AsBasicAzureWorkloadSQLPointInTimeRestoreRequest() (BasicAzureWorkloadSQLPointInTimeRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLRestoreRequest is the BasicRestoreRequest implementation for RestoreRequest. +func (rr RestoreRequest) AsAzureWorkloadSQLRestoreRequest() (*AzureWorkloadSQLRestoreRequest, bool) { + return nil, false +} + +// AsBasicAzureWorkloadSQLRestoreRequest is the BasicRestoreRequest implementation for RestoreRequest. +func (rr RestoreRequest) AsBasicAzureWorkloadSQLRestoreRequest() (BasicAzureWorkloadSQLRestoreRequest, bool) { + return nil, false +} + +// AsIaasVMRestoreRequest is the BasicRestoreRequest implementation for RestoreRequest. +func (rr RestoreRequest) AsIaasVMRestoreRequest() (*IaasVMRestoreRequest, bool) { + return nil, false +} + +// AsBasicIaasVMRestoreRequest is the BasicRestoreRequest implementation for RestoreRequest. +func (rr RestoreRequest) AsBasicIaasVMRestoreRequest() (BasicIaasVMRestoreRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for RestoreRequest. +func (rr RestoreRequest) AsAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest() (*AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSAPHanaRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for RestoreRequest. +func (rr RestoreRequest) AsAzureWorkloadSAPHanaRestoreWithRehydrateRequest() (*AzureWorkloadSAPHanaRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for RestoreRequest. +func (rr RestoreRequest) AsAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest() (*AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsAzureWorkloadSQLRestoreWithRehydrateRequest is the BasicRestoreRequest implementation for RestoreRequest. +func (rr RestoreRequest) AsAzureWorkloadSQLRestoreWithRehydrateRequest() (*AzureWorkloadSQLRestoreWithRehydrateRequest, bool) { + return nil, false +} + +// AsIaasVMRestoreWithRehydrationRequest is the BasicRestoreRequest implementation for RestoreRequest. +func (rr RestoreRequest) AsIaasVMRestoreWithRehydrationRequest() (*IaasVMRestoreWithRehydrationRequest, bool) { + return nil, false +} + +// AsRestoreRequest is the BasicRestoreRequest implementation for RestoreRequest. +func (rr RestoreRequest) AsRestoreRequest() (*RestoreRequest, bool) { + return &rr, true +} + +// AsBasicRestoreRequest is the BasicRestoreRequest implementation for RestoreRequest. +func (rr RestoreRequest) AsBasicRestoreRequest() (BasicRestoreRequest, bool) { + return &rr, true +} + +// RestoreRequestResource base class for restore request. Workload-specific restore requests are derived +// from this class. +type RestoreRequestResource struct { + // Properties - RestoreRequestResource properties + Properties BasicRestoreRequest `json:"properties,omitempty"` + // ID - READ-ONLY; Resource Id represents the complete path to the resource. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name associated with the resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // ETag - Optional ETag. + ETag *string `json:"eTag,omitempty"` +} + +// MarshalJSON is the custom marshaler for RestoreRequestResource. +func (rrr RestoreRequestResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + objectMap["properties"] = rrr.Properties + if rrr.Location != nil { + objectMap["location"] = rrr.Location + } + if rrr.Tags != nil { + objectMap["tags"] = rrr.Tags + } + if rrr.ETag != nil { + objectMap["eTag"] = rrr.ETag + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for RestoreRequestResource struct. +func (rrr *RestoreRequestResource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + properties, err := unmarshalBasicRestoreRequest(*v) + if err != nil { + return err + } + rrr.Properties = properties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + rrr.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + rrr.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + rrr.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + rrr.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + rrr.Tags = tags + } + case "eTag": + if v != nil { + var eTag string + err = json.Unmarshal(*v, &eTag) + if err != nil { + return err + } + rrr.ETag = &eTag + } + } + } + + return nil +} + +// RestoresTriggerFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type RestoresTriggerFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(RestoresClient) (autorest.Response, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *RestoresTriggerFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for RestoresTriggerFuture.Result. +func (future *RestoresTriggerFuture) result(client RestoresClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.RestoresTriggerFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + ar.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("backup.RestoresTriggerFuture") + return + } + ar.Response = future.Response() + return +} + +// RetentionDuration retention duration. +type RetentionDuration struct { + // Count - Count of duration types. Retention duration is obtained by the counting the duration type Count times. + // For example, when Count = 3 and DurationType = Weeks, retention duration will be three weeks. + Count *int32 `json:"count,omitempty"` + // DurationType - Retention duration type of retention policy. Possible values include: 'RetentionDurationTypeInvalid', 'RetentionDurationTypeDays', 'RetentionDurationTypeWeeks', 'RetentionDurationTypeMonths', 'RetentionDurationTypeYears' + DurationType RetentionDurationType `json:"durationType,omitempty"` +} + +// BasicRetentionPolicy base class for retention policy. +type BasicRetentionPolicy interface { + AsLongTermRetentionPolicy() (*LongTermRetentionPolicy, bool) + AsSimpleRetentionPolicy() (*SimpleRetentionPolicy, bool) + AsRetentionPolicy() (*RetentionPolicy, bool) +} + +// RetentionPolicy base class for retention policy. +type RetentionPolicy struct { + // RetentionPolicyType - Possible values include: 'RetentionPolicyTypeRetentionPolicy', 'RetentionPolicyTypeLongTermRetentionPolicy', 'RetentionPolicyTypeSimpleRetentionPolicy' + RetentionPolicyType RetentionPolicyType `json:"retentionPolicyType,omitempty"` +} + +func unmarshalBasicRetentionPolicy(body []byte) (BasicRetentionPolicy, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["retentionPolicyType"] { + case string(RetentionPolicyTypeLongTermRetentionPolicy): + var ltrp LongTermRetentionPolicy + err := json.Unmarshal(body, <rp) + return ltrp, err + case string(RetentionPolicyTypeSimpleRetentionPolicy): + var srp SimpleRetentionPolicy + err := json.Unmarshal(body, &srp) + return srp, err + default: + var rp RetentionPolicy + err := json.Unmarshal(body, &rp) + return rp, err + } +} +func unmarshalBasicRetentionPolicyArray(body []byte) ([]BasicRetentionPolicy, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + rpArray := make([]BasicRetentionPolicy, len(rawMessages)) + + for index, rawMessage := range rawMessages { + rp, err := unmarshalBasicRetentionPolicy(*rawMessage) + if err != nil { + return nil, err + } + rpArray[index] = rp + } + return rpArray, nil +} + +// MarshalJSON is the custom marshaler for RetentionPolicy. +func (rp RetentionPolicy) MarshalJSON() ([]byte, error) { + rp.RetentionPolicyType = RetentionPolicyTypeRetentionPolicy + objectMap := make(map[string]interface{}) + if rp.RetentionPolicyType != "" { + objectMap["retentionPolicyType"] = rp.RetentionPolicyType + } + return json.Marshal(objectMap) +} + +// AsLongTermRetentionPolicy is the BasicRetentionPolicy implementation for RetentionPolicy. +func (rp RetentionPolicy) AsLongTermRetentionPolicy() (*LongTermRetentionPolicy, bool) { + return nil, false +} + +// AsSimpleRetentionPolicy is the BasicRetentionPolicy implementation for RetentionPolicy. +func (rp RetentionPolicy) AsSimpleRetentionPolicy() (*SimpleRetentionPolicy, bool) { + return nil, false +} + +// AsRetentionPolicy is the BasicRetentionPolicy implementation for RetentionPolicy. +func (rp RetentionPolicy) AsRetentionPolicy() (*RetentionPolicy, bool) { + return &rp, true +} + +// AsBasicRetentionPolicy is the BasicRetentionPolicy implementation for RetentionPolicy. +func (rp RetentionPolicy) AsBasicRetentionPolicy() (BasicRetentionPolicy, bool) { + return &rp, true +} + +// BasicSchedulePolicy base class for backup schedule. +type BasicSchedulePolicy interface { + AsLogSchedulePolicy() (*LogSchedulePolicy, bool) + AsLongTermSchedulePolicy() (*LongTermSchedulePolicy, bool) + AsSimpleSchedulePolicy() (*SimpleSchedulePolicy, bool) + AsSchedulePolicy() (*SchedulePolicy, bool) +} + +// SchedulePolicy base class for backup schedule. +type SchedulePolicy struct { + // SchedulePolicyType - Possible values include: 'SchedulePolicyTypeSchedulePolicy', 'SchedulePolicyTypeLogSchedulePolicy', 'SchedulePolicyTypeLongTermSchedulePolicy', 'SchedulePolicyTypeSimpleSchedulePolicy' + SchedulePolicyType SchedulePolicyType `json:"schedulePolicyType,omitempty"` +} + +func unmarshalBasicSchedulePolicy(body []byte) (BasicSchedulePolicy, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["schedulePolicyType"] { + case string(SchedulePolicyTypeLogSchedulePolicy): + var lsp LogSchedulePolicy + err := json.Unmarshal(body, &lsp) + return lsp, err + case string(SchedulePolicyTypeLongTermSchedulePolicy): + var ltsp LongTermSchedulePolicy + err := json.Unmarshal(body, <sp) + return ltsp, err + case string(SchedulePolicyTypeSimpleSchedulePolicy): + var ssp SimpleSchedulePolicy + err := json.Unmarshal(body, &ssp) + return ssp, err + default: + var sp SchedulePolicy + err := json.Unmarshal(body, &sp) + return sp, err + } +} +func unmarshalBasicSchedulePolicyArray(body []byte) ([]BasicSchedulePolicy, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + spArray := make([]BasicSchedulePolicy, len(rawMessages)) + + for index, rawMessage := range rawMessages { + sp, err := unmarshalBasicSchedulePolicy(*rawMessage) + if err != nil { + return nil, err + } + spArray[index] = sp + } + return spArray, nil +} + +// MarshalJSON is the custom marshaler for SchedulePolicy. +func (sp SchedulePolicy) MarshalJSON() ([]byte, error) { + sp.SchedulePolicyType = SchedulePolicyTypeSchedulePolicy + objectMap := make(map[string]interface{}) + if sp.SchedulePolicyType != "" { + objectMap["schedulePolicyType"] = sp.SchedulePolicyType + } + return json.Marshal(objectMap) +} + +// AsLogSchedulePolicy is the BasicSchedulePolicy implementation for SchedulePolicy. +func (sp SchedulePolicy) AsLogSchedulePolicy() (*LogSchedulePolicy, bool) { + return nil, false +} + +// AsLongTermSchedulePolicy is the BasicSchedulePolicy implementation for SchedulePolicy. +func (sp SchedulePolicy) AsLongTermSchedulePolicy() (*LongTermSchedulePolicy, bool) { + return nil, false +} + +// AsSimpleSchedulePolicy is the BasicSchedulePolicy implementation for SchedulePolicy. +func (sp SchedulePolicy) AsSimpleSchedulePolicy() (*SimpleSchedulePolicy, bool) { + return nil, false +} + +// AsSchedulePolicy is the BasicSchedulePolicy implementation for SchedulePolicy. +func (sp SchedulePolicy) AsSchedulePolicy() (*SchedulePolicy, bool) { + return &sp, true +} + +// AsBasicSchedulePolicy is the BasicSchedulePolicy implementation for SchedulePolicy. +func (sp SchedulePolicy) AsBasicSchedulePolicy() (BasicSchedulePolicy, bool) { + return &sp, true +} + +// Settings common settings field for backup management +type Settings struct { + // TimeZone - TimeZone optional input as string. For example: TimeZone = "Pacific Standard Time". + TimeZone *string `json:"timeZone,omitempty"` + // Issqlcompression - SQL compression flag + Issqlcompression *bool `json:"issqlcompression,omitempty"` + // IsCompression - Workload compression flag. This has been added so that 'isSqlCompression' + // will be deprecated once clients upgrade to consider this flag. + IsCompression *bool `json:"isCompression,omitempty"` +} + +// SimpleRetentionPolicy simple policy retention. +type SimpleRetentionPolicy struct { + // RetentionDuration - Retention duration of the protection policy. + RetentionDuration *RetentionDuration `json:"retentionDuration,omitempty"` + // RetentionPolicyType - Possible values include: 'RetentionPolicyTypeRetentionPolicy', 'RetentionPolicyTypeLongTermRetentionPolicy', 'RetentionPolicyTypeSimpleRetentionPolicy' + RetentionPolicyType RetentionPolicyType `json:"retentionPolicyType,omitempty"` +} + +// MarshalJSON is the custom marshaler for SimpleRetentionPolicy. +func (srp SimpleRetentionPolicy) MarshalJSON() ([]byte, error) { + srp.RetentionPolicyType = RetentionPolicyTypeSimpleRetentionPolicy + objectMap := make(map[string]interface{}) + if srp.RetentionDuration != nil { + objectMap["retentionDuration"] = srp.RetentionDuration + } + if srp.RetentionPolicyType != "" { + objectMap["retentionPolicyType"] = srp.RetentionPolicyType + } + return json.Marshal(objectMap) +} + +// AsLongTermRetentionPolicy is the BasicRetentionPolicy implementation for SimpleRetentionPolicy. +func (srp SimpleRetentionPolicy) AsLongTermRetentionPolicy() (*LongTermRetentionPolicy, bool) { + return nil, false +} + +// AsSimpleRetentionPolicy is the BasicRetentionPolicy implementation for SimpleRetentionPolicy. +func (srp SimpleRetentionPolicy) AsSimpleRetentionPolicy() (*SimpleRetentionPolicy, bool) { + return &srp, true +} + +// AsRetentionPolicy is the BasicRetentionPolicy implementation for SimpleRetentionPolicy. +func (srp SimpleRetentionPolicy) AsRetentionPolicy() (*RetentionPolicy, bool) { + return nil, false +} + +// AsBasicRetentionPolicy is the BasicRetentionPolicy implementation for SimpleRetentionPolicy. +func (srp SimpleRetentionPolicy) AsBasicRetentionPolicy() (BasicRetentionPolicy, bool) { + return &srp, true +} + +// SimpleSchedulePolicy simple policy schedule. +type SimpleSchedulePolicy struct { + // ScheduleRunFrequency - Frequency of the schedule operation of this policy. Possible values include: 'ScheduleRunTypeInvalid', 'ScheduleRunTypeDaily', 'ScheduleRunTypeWeekly' + ScheduleRunFrequency ScheduleRunType `json:"scheduleRunFrequency,omitempty"` + // ScheduleRunDays - List of days of week this schedule has to be run. + ScheduleRunDays *[]DayOfWeek `json:"scheduleRunDays,omitempty"` + // ScheduleRunTimes - List of times of day this schedule has to be run. + ScheduleRunTimes *[]date.Time `json:"scheduleRunTimes,omitempty"` + // ScheduleWeeklyFrequency - At every number weeks this schedule has to be run. + ScheduleWeeklyFrequency *int32 `json:"scheduleWeeklyFrequency,omitempty"` + // SchedulePolicyType - Possible values include: 'SchedulePolicyTypeSchedulePolicy', 'SchedulePolicyTypeLogSchedulePolicy', 'SchedulePolicyTypeLongTermSchedulePolicy', 'SchedulePolicyTypeSimpleSchedulePolicy' + SchedulePolicyType SchedulePolicyType `json:"schedulePolicyType,omitempty"` +} + +// MarshalJSON is the custom marshaler for SimpleSchedulePolicy. +func (ssp SimpleSchedulePolicy) MarshalJSON() ([]byte, error) { + ssp.SchedulePolicyType = SchedulePolicyTypeSimpleSchedulePolicy + objectMap := make(map[string]interface{}) + if ssp.ScheduleRunFrequency != "" { + objectMap["scheduleRunFrequency"] = ssp.ScheduleRunFrequency + } + if ssp.ScheduleRunDays != nil { + objectMap["scheduleRunDays"] = ssp.ScheduleRunDays + } + if ssp.ScheduleRunTimes != nil { + objectMap["scheduleRunTimes"] = ssp.ScheduleRunTimes + } + if ssp.ScheduleWeeklyFrequency != nil { + objectMap["scheduleWeeklyFrequency"] = ssp.ScheduleWeeklyFrequency + } + if ssp.SchedulePolicyType != "" { + objectMap["schedulePolicyType"] = ssp.SchedulePolicyType + } + return json.Marshal(objectMap) +} + +// AsLogSchedulePolicy is the BasicSchedulePolicy implementation for SimpleSchedulePolicy. +func (ssp SimpleSchedulePolicy) AsLogSchedulePolicy() (*LogSchedulePolicy, bool) { + return nil, false +} + +// AsLongTermSchedulePolicy is the BasicSchedulePolicy implementation for SimpleSchedulePolicy. +func (ssp SimpleSchedulePolicy) AsLongTermSchedulePolicy() (*LongTermSchedulePolicy, bool) { + return nil, false +} + +// AsSimpleSchedulePolicy is the BasicSchedulePolicy implementation for SimpleSchedulePolicy. +func (ssp SimpleSchedulePolicy) AsSimpleSchedulePolicy() (*SimpleSchedulePolicy, bool) { + return &ssp, true +} + +// AsSchedulePolicy is the BasicSchedulePolicy implementation for SimpleSchedulePolicy. +func (ssp SimpleSchedulePolicy) AsSchedulePolicy() (*SchedulePolicy, bool) { + return nil, false +} + +// AsBasicSchedulePolicy is the BasicSchedulePolicy implementation for SimpleSchedulePolicy. +func (ssp SimpleSchedulePolicy) AsBasicSchedulePolicy() (BasicSchedulePolicy, bool) { + return &ssp, true +} + +// SQLDataDirectory sQLDataDirectory info +type SQLDataDirectory struct { + // Type - Type of data directory mapping. Possible values include: 'SQLDataDirectoryTypeInvalid', 'SQLDataDirectoryTypeData', 'SQLDataDirectoryTypeLog' + Type SQLDataDirectoryType `json:"type,omitempty"` + // Path - File path + Path *string `json:"path,omitempty"` + // LogicalName - Logical name of the file + LogicalName *string `json:"logicalName,omitempty"` +} + +// SQLDataDirectoryMapping encapsulates information regarding data directory +type SQLDataDirectoryMapping struct { + // MappingType - Type of data directory mapping. Possible values include: 'SQLDataDirectoryTypeInvalid', 'SQLDataDirectoryTypeData', 'SQLDataDirectoryTypeLog' + MappingType SQLDataDirectoryType `json:"mappingType,omitempty"` + // SourceLogicalName - Restore source logical name path + SourceLogicalName *string `json:"sourceLogicalName,omitempty"` + // SourcePath - Restore source path + SourcePath *string `json:"sourcePath,omitempty"` + // TargetPath - Target path + TargetPath *string `json:"targetPath,omitempty"` +} + +// StatusRequest backupStatus request. +type StatusRequest struct { + // ResourceType - Container Type - VM, SQLPaaS, DPM, AzureFileShare. Possible values include: 'DataSourceTypeInvalid', 'DataSourceTypeVM', 'DataSourceTypeFileFolder', 'DataSourceTypeAzureSQLDb', 'DataSourceTypeSQLDB', 'DataSourceTypeExchange', 'DataSourceTypeSharepoint', 'DataSourceTypeVMwareVM', 'DataSourceTypeSystemState', 'DataSourceTypeClient', 'DataSourceTypeGenericDataSource', 'DataSourceTypeSQLDataBase', 'DataSourceTypeAzureFileShare', 'DataSourceTypeSAPHanaDatabase', 'DataSourceTypeSAPAseDatabase' + ResourceType DataSourceType `json:"resourceType,omitempty"` + // ResourceID - Entire ARM resource id of the resource + ResourceID *string `json:"resourceId,omitempty"` + // PoLogicalName - Protectable Item Logical Name + PoLogicalName *string `json:"poLogicalName,omitempty"` +} + +// StatusResponse backupStatus response. +type StatusResponse struct { + autorest.Response `json:"-"` + // ProtectionStatus - Specifies whether the container is registered or not. Possible values include: 'ProtectionStatusInvalid', 'ProtectionStatusNotProtected', 'ProtectionStatusProtecting', 'ProtectionStatusProtected', 'ProtectionStatusProtectionFailed' + ProtectionStatus ProtectionStatus `json:"protectionStatus,omitempty"` + // VaultID - Specifies the arm resource id of the vault + VaultID *string `json:"vaultId,omitempty"` + // FabricName - Specifies the fabric name - Azure or AD. Possible values include: 'FabricNameInvalid', 'FabricNameAzure' + FabricName FabricName `json:"fabricName,omitempty"` + // ContainerName - Specifies the product specific container name. E.g. iaasvmcontainer;iaasvmcontainer;csname;vmname. + ContainerName *string `json:"containerName,omitempty"` + // ProtectedItemName - Specifies the product specific ds name. E.g. vm;iaasvmcontainer;csname;vmname. + ProtectedItemName *string `json:"protectedItemName,omitempty"` + // ErrorCode - ErrorCode in case of intent failed + ErrorCode *string `json:"errorCode,omitempty"` + // ErrorMessage - ErrorMessage in case of intent failed. + ErrorMessage *string `json:"errorMessage,omitempty"` + // PolicyName - Specifies the policy name which is used for protection + PolicyName *string `json:"policyName,omitempty"` + // RegistrationStatus - Container registration status + RegistrationStatus *string `json:"registrationStatus,omitempty"` +} + +// SubProtectionPolicy sub-protection policy which includes schedule and retention +type SubProtectionPolicy struct { + // PolicyType - Type of backup policy type. Possible values include: 'PolicyTypeInvalid', 'PolicyTypeFull', 'PolicyTypeDifferential', 'PolicyTypeLog', 'PolicyTypeCopyOnlyFull', 'PolicyTypeIncremental' + PolicyType PolicyType `json:"policyType,omitempty"` + // SchedulePolicy - Backup schedule specified as part of backup policy. + SchedulePolicy BasicSchedulePolicy `json:"schedulePolicy,omitempty"` + // RetentionPolicy - Retention policy with the details on backup copy retention ranges. + RetentionPolicy BasicRetentionPolicy `json:"retentionPolicy,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for SubProtectionPolicy struct. +func (spp *SubProtectionPolicy) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "policyType": + if v != nil { + var policyType PolicyType + err = json.Unmarshal(*v, &policyType) + if err != nil { + return err + } + spp.PolicyType = policyType + } + case "schedulePolicy": + if v != nil { + schedulePolicy, err := unmarshalBasicSchedulePolicy(*v) + if err != nil { + return err + } + spp.SchedulePolicy = schedulePolicy + } + case "retentionPolicy": + if v != nil { + retentionPolicy, err := unmarshalBasicRetentionPolicy(*v) + if err != nil { + return err + } + spp.RetentionPolicy = retentionPolicy + } + } + } + + return nil +} + +// TargetAFSRestoreInfo target Azure File Share Info. +type TargetAFSRestoreInfo struct { + // Name - File share name + Name *string `json:"name,omitempty"` + // TargetResourceID - Target file share resource ARM ID + TargetResourceID *string `json:"targetResourceId,omitempty"` +} + +// TargetRestoreInfo details about target workload during restore operation. +type TargetRestoreInfo struct { + // OverwriteOption - Can Overwrite if Target DataBase already exists. Possible values include: 'OverwriteOptionsInvalid', 'OverwriteOptionsFailOnConflict', 'OverwriteOptionsOverwrite' + OverwriteOption OverwriteOptions `json:"overwriteOption,omitempty"` + // ContainerID - Resource Id name of the container in which Target DataBase resides + ContainerID *string `json:"containerId,omitempty"` + // DatabaseName - Database name InstanceName/DataBaseName for SQL or System/DbName for SAP Hana + DatabaseName *string `json:"databaseName,omitempty"` + // TargetDirectoryForFileRestore - Target directory location for restore as files. + TargetDirectoryForFileRestore *string `json:"targetDirectoryForFileRestore,omitempty"` +} + +// TokenInformation the token information details. +type TokenInformation struct { + autorest.Response `json:"-"` + // Token - Token value. + Token *string `json:"token,omitempty"` + // ExpiryTimeInUtcTicks - Expiry time of token. + ExpiryTimeInUtcTicks *int64 `json:"expiryTimeInUtcTicks,omitempty"` + // SecurityPIN - Security PIN + SecurityPIN *string `json:"securityPIN,omitempty"` +} + +// TriggerDataMoveRequest trigger DataMove Request +type TriggerDataMoveRequest struct { + // SourceResourceID - ARM Id of source vault + SourceResourceID *string `json:"sourceResourceId,omitempty"` + // SourceRegion - Source Region + SourceRegion *string `json:"sourceRegion,omitempty"` + // DataMoveLevel - DataMove Level. Possible values include: 'DataMoveLevelInvalid', 'DataMoveLevelVault', 'DataMoveLevelContainer' + DataMoveLevel DataMoveLevel `json:"dataMoveLevel,omitempty"` + // CorrelationID - Correlation Id + CorrelationID *string `json:"correlationId,omitempty"` + // SourceContainerArmIds - Source Container ArmIds + SourceContainerArmIds *[]string `json:"sourceContainerArmIds,omitempty"` + // PauseGC - Pause GC + PauseGC *bool `json:"pauseGC,omitempty"` +} + +// ValidateIaasVMRestoreOperationRequest azureRestoreValidation request. +type ValidateIaasVMRestoreOperationRequest struct { + // RestoreRequest - Sets restore request to be validated + RestoreRequest BasicRestoreRequest `json:"restoreRequest,omitempty"` + // ObjectType - Possible values include: 'ObjectTypeBasicValidateOperationRequestObjectTypeValidateOperationRequest', 'ObjectTypeBasicValidateOperationRequestObjectTypeValidateIaasVMRestoreOperationRequest', 'ObjectTypeBasicValidateOperationRequestObjectTypeValidateRestoreOperationRequest' + ObjectType ObjectTypeBasicValidateOperationRequest `json:"objectType,omitempty"` +} + +// MarshalJSON is the custom marshaler for ValidateIaasVMRestoreOperationRequest. +func (vivror ValidateIaasVMRestoreOperationRequest) MarshalJSON() ([]byte, error) { + vivror.ObjectType = ObjectTypeBasicValidateOperationRequestObjectTypeValidateIaasVMRestoreOperationRequest + objectMap := make(map[string]interface{}) + objectMap["restoreRequest"] = vivror.RestoreRequest + if vivror.ObjectType != "" { + objectMap["objectType"] = vivror.ObjectType + } + return json.Marshal(objectMap) +} + +// AsValidateIaasVMRestoreOperationRequest is the BasicValidateOperationRequest implementation for ValidateIaasVMRestoreOperationRequest. +func (vivror ValidateIaasVMRestoreOperationRequest) AsValidateIaasVMRestoreOperationRequest() (*ValidateIaasVMRestoreOperationRequest, bool) { + return &vivror, true +} + +// AsValidateRestoreOperationRequest is the BasicValidateOperationRequest implementation for ValidateIaasVMRestoreOperationRequest. +func (vivror ValidateIaasVMRestoreOperationRequest) AsValidateRestoreOperationRequest() (*ValidateRestoreOperationRequest, bool) { + return nil, false +} + +// AsBasicValidateRestoreOperationRequest is the BasicValidateOperationRequest implementation for ValidateIaasVMRestoreOperationRequest. +func (vivror ValidateIaasVMRestoreOperationRequest) AsBasicValidateRestoreOperationRequest() (BasicValidateRestoreOperationRequest, bool) { + return &vivror, true +} + +// AsValidateOperationRequest is the BasicValidateOperationRequest implementation for ValidateIaasVMRestoreOperationRequest. +func (vivror ValidateIaasVMRestoreOperationRequest) AsValidateOperationRequest() (*ValidateOperationRequest, bool) { + return nil, false +} + +// AsBasicValidateOperationRequest is the BasicValidateOperationRequest implementation for ValidateIaasVMRestoreOperationRequest. +func (vivror ValidateIaasVMRestoreOperationRequest) AsBasicValidateOperationRequest() (BasicValidateOperationRequest, bool) { + return &vivror, true +} + +// UnmarshalJSON is the custom unmarshaler for ValidateIaasVMRestoreOperationRequest struct. +func (vivror *ValidateIaasVMRestoreOperationRequest) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "restoreRequest": + if v != nil { + restoreRequest, err := unmarshalBasicRestoreRequest(*v) + if err != nil { + return err + } + vivror.RestoreRequest = restoreRequest + } + case "objectType": + if v != nil { + var objectType ObjectTypeBasicValidateOperationRequest + err = json.Unmarshal(*v, &objectType) + if err != nil { + return err + } + vivror.ObjectType = objectType + } + } + } + + return nil +} + +// BasicValidateOperationRequest base class for validate operation request. +type BasicValidateOperationRequest interface { + AsValidateIaasVMRestoreOperationRequest() (*ValidateIaasVMRestoreOperationRequest, bool) + AsValidateRestoreOperationRequest() (*ValidateRestoreOperationRequest, bool) + AsBasicValidateRestoreOperationRequest() (BasicValidateRestoreOperationRequest, bool) + AsValidateOperationRequest() (*ValidateOperationRequest, bool) +} + +// ValidateOperationRequest base class for validate operation request. +type ValidateOperationRequest struct { + // ObjectType - Possible values include: 'ObjectTypeBasicValidateOperationRequestObjectTypeValidateOperationRequest', 'ObjectTypeBasicValidateOperationRequestObjectTypeValidateIaasVMRestoreOperationRequest', 'ObjectTypeBasicValidateOperationRequestObjectTypeValidateRestoreOperationRequest' + ObjectType ObjectTypeBasicValidateOperationRequest `json:"objectType,omitempty"` +} + +func unmarshalBasicValidateOperationRequest(body []byte) (BasicValidateOperationRequest, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["objectType"] { + case string(ObjectTypeBasicValidateOperationRequestObjectTypeValidateIaasVMRestoreOperationRequest): + var vivror ValidateIaasVMRestoreOperationRequest + err := json.Unmarshal(body, &vivror) + return vivror, err + case string(ObjectTypeBasicValidateOperationRequestObjectTypeValidateRestoreOperationRequest): + var vror ValidateRestoreOperationRequest + err := json.Unmarshal(body, &vror) + return vror, err + default: + var vor ValidateOperationRequest + err := json.Unmarshal(body, &vor) + return vor, err + } +} +func unmarshalBasicValidateOperationRequestArray(body []byte) ([]BasicValidateOperationRequest, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + vorArray := make([]BasicValidateOperationRequest, len(rawMessages)) + + for index, rawMessage := range rawMessages { + vor, err := unmarshalBasicValidateOperationRequest(*rawMessage) + if err != nil { + return nil, err + } + vorArray[index] = vor + } + return vorArray, nil +} + +// MarshalJSON is the custom marshaler for ValidateOperationRequest. +func (vor ValidateOperationRequest) MarshalJSON() ([]byte, error) { + vor.ObjectType = ObjectTypeBasicValidateOperationRequestObjectTypeValidateOperationRequest + objectMap := make(map[string]interface{}) + if vor.ObjectType != "" { + objectMap["objectType"] = vor.ObjectType + } + return json.Marshal(objectMap) +} + +// AsValidateIaasVMRestoreOperationRequest is the BasicValidateOperationRequest implementation for ValidateOperationRequest. +func (vor ValidateOperationRequest) AsValidateIaasVMRestoreOperationRequest() (*ValidateIaasVMRestoreOperationRequest, bool) { + return nil, false +} + +// AsValidateRestoreOperationRequest is the BasicValidateOperationRequest implementation for ValidateOperationRequest. +func (vor ValidateOperationRequest) AsValidateRestoreOperationRequest() (*ValidateRestoreOperationRequest, bool) { + return nil, false +} + +// AsBasicValidateRestoreOperationRequest is the BasicValidateOperationRequest implementation for ValidateOperationRequest. +func (vor ValidateOperationRequest) AsBasicValidateRestoreOperationRequest() (BasicValidateRestoreOperationRequest, bool) { + return nil, false +} + +// AsValidateOperationRequest is the BasicValidateOperationRequest implementation for ValidateOperationRequest. +func (vor ValidateOperationRequest) AsValidateOperationRequest() (*ValidateOperationRequest, bool) { + return &vor, true +} + +// AsBasicValidateOperationRequest is the BasicValidateOperationRequest implementation for ValidateOperationRequest. +func (vor ValidateOperationRequest) AsBasicValidateOperationRequest() (BasicValidateOperationRequest, bool) { + return &vor, true +} + +// ValidateOperationResponse base class for validate operation response. +type ValidateOperationResponse struct { + // ValidationResults - Gets the validation result + ValidationResults *[]ErrorDetail `json:"validationResults,omitempty"` +} + +// ValidateOperationsResponse ... +type ValidateOperationsResponse struct { + autorest.Response `json:"-"` + ValidateOperationResponse *ValidateOperationResponse `json:"validateOperationResponse,omitempty"` +} + +// BasicValidateRestoreOperationRequest azureRestoreValidation request. +type BasicValidateRestoreOperationRequest interface { + AsValidateIaasVMRestoreOperationRequest() (*ValidateIaasVMRestoreOperationRequest, bool) + AsValidateRestoreOperationRequest() (*ValidateRestoreOperationRequest, bool) +} + +// ValidateRestoreOperationRequest azureRestoreValidation request. +type ValidateRestoreOperationRequest struct { + // RestoreRequest - Sets restore request to be validated + RestoreRequest BasicRestoreRequest `json:"restoreRequest,omitempty"` + // ObjectType - Possible values include: 'ObjectTypeBasicValidateOperationRequestObjectTypeValidateOperationRequest', 'ObjectTypeBasicValidateOperationRequestObjectTypeValidateIaasVMRestoreOperationRequest', 'ObjectTypeBasicValidateOperationRequestObjectTypeValidateRestoreOperationRequest' + ObjectType ObjectTypeBasicValidateOperationRequest `json:"objectType,omitempty"` +} + +func unmarshalBasicValidateRestoreOperationRequest(body []byte) (BasicValidateRestoreOperationRequest, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["objectType"] { + case string(ObjectTypeBasicValidateOperationRequestObjectTypeValidateIaasVMRestoreOperationRequest): + var vivror ValidateIaasVMRestoreOperationRequest + err := json.Unmarshal(body, &vivror) + return vivror, err + default: + var vror ValidateRestoreOperationRequest + err := json.Unmarshal(body, &vror) + return vror, err + } +} +func unmarshalBasicValidateRestoreOperationRequestArray(body []byte) ([]BasicValidateRestoreOperationRequest, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + vrorArray := make([]BasicValidateRestoreOperationRequest, len(rawMessages)) + + for index, rawMessage := range rawMessages { + vror, err := unmarshalBasicValidateRestoreOperationRequest(*rawMessage) + if err != nil { + return nil, err + } + vrorArray[index] = vror + } + return vrorArray, nil +} + +// MarshalJSON is the custom marshaler for ValidateRestoreOperationRequest. +func (vror ValidateRestoreOperationRequest) MarshalJSON() ([]byte, error) { + vror.ObjectType = ObjectTypeBasicValidateOperationRequestObjectTypeValidateRestoreOperationRequest + objectMap := make(map[string]interface{}) + objectMap["restoreRequest"] = vror.RestoreRequest + if vror.ObjectType != "" { + objectMap["objectType"] = vror.ObjectType + } + return json.Marshal(objectMap) +} + +// AsValidateIaasVMRestoreOperationRequest is the BasicValidateOperationRequest implementation for ValidateRestoreOperationRequest. +func (vror ValidateRestoreOperationRequest) AsValidateIaasVMRestoreOperationRequest() (*ValidateIaasVMRestoreOperationRequest, bool) { + return nil, false +} + +// AsValidateRestoreOperationRequest is the BasicValidateOperationRequest implementation for ValidateRestoreOperationRequest. +func (vror ValidateRestoreOperationRequest) AsValidateRestoreOperationRequest() (*ValidateRestoreOperationRequest, bool) { + return &vror, true +} + +// AsBasicValidateRestoreOperationRequest is the BasicValidateOperationRequest implementation for ValidateRestoreOperationRequest. +func (vror ValidateRestoreOperationRequest) AsBasicValidateRestoreOperationRequest() (BasicValidateRestoreOperationRequest, bool) { + return &vror, true +} + +// AsValidateOperationRequest is the BasicValidateOperationRequest implementation for ValidateRestoreOperationRequest. +func (vror ValidateRestoreOperationRequest) AsValidateOperationRequest() (*ValidateOperationRequest, bool) { + return nil, false +} + +// AsBasicValidateOperationRequest is the BasicValidateOperationRequest implementation for ValidateRestoreOperationRequest. +func (vror ValidateRestoreOperationRequest) AsBasicValidateOperationRequest() (BasicValidateOperationRequest, bool) { + return &vror, true +} + +// UnmarshalJSON is the custom unmarshaler for ValidateRestoreOperationRequest struct. +func (vror *ValidateRestoreOperationRequest) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "restoreRequest": + if v != nil { + restoreRequest, err := unmarshalBasicRestoreRequest(*v) + if err != nil { + return err + } + vror.RestoreRequest = restoreRequest + } + case "objectType": + if v != nil { + var objectType ObjectTypeBasicValidateOperationRequest + err = json.Unmarshal(*v, &objectType) + if err != nil { + return err + } + vror.ObjectType = objectType + } + } + } + + return nil +} + +// VaultJob vault level Job +type VaultJob struct { + // Duration - Time elapsed during the execution of this job. + Duration *string `json:"duration,omitempty"` + // ActionsInfo - Gets or sets the state/actions applicable on this job like cancel/retry. + ActionsInfo *[]JobSupportedAction `json:"actionsInfo,omitempty"` + // ErrorDetails - Error details on execution of this job. + ErrorDetails *[]VaultJobErrorInfo `json:"errorDetails,omitempty"` + // ExtendedInfo - Additional information about the job. + ExtendedInfo *VaultJobExtendedInfo `json:"extendedInfo,omitempty"` + // EntityFriendlyName - Friendly name of the entity on which the current job is executing. + EntityFriendlyName *string `json:"entityFriendlyName,omitempty"` + // BackupManagementType - Backup management type to execute the current job. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL', 'ManagementTypeAzureStorage', 'ManagementTypeAzureWorkload', 'ManagementTypeDefaultBackup' + BackupManagementType ManagementType `json:"backupManagementType,omitempty"` + // Operation - The operation name. + Operation *string `json:"operation,omitempty"` + // Status - Job status. + Status *string `json:"status,omitempty"` + // StartTime - The start time. + StartTime *date.Time `json:"startTime,omitempty"` + // EndTime - The end time. + EndTime *date.Time `json:"endTime,omitempty"` + // ActivityID - ActivityId of job. + ActivityID *string `json:"activityId,omitempty"` + // JobType - Possible values include: 'JobTypeJob', 'JobTypeAzureIaaSVMJob', 'JobTypeAzureStorageJob', 'JobTypeAzureWorkloadJob', 'JobTypeDpmJob', 'JobTypeMabJob', 'JobTypeVaultJob' + JobType JobType `json:"jobType,omitempty"` +} + +// MarshalJSON is the custom marshaler for VaultJob. +func (vj VaultJob) MarshalJSON() ([]byte, error) { + vj.JobType = JobTypeVaultJob + objectMap := make(map[string]interface{}) + if vj.Duration != nil { + objectMap["duration"] = vj.Duration + } + if vj.ActionsInfo != nil { + objectMap["actionsInfo"] = vj.ActionsInfo + } + if vj.ErrorDetails != nil { + objectMap["errorDetails"] = vj.ErrorDetails + } + if vj.ExtendedInfo != nil { + objectMap["extendedInfo"] = vj.ExtendedInfo + } + if vj.EntityFriendlyName != nil { + objectMap["entityFriendlyName"] = vj.EntityFriendlyName + } + if vj.BackupManagementType != "" { + objectMap["backupManagementType"] = vj.BackupManagementType + } + if vj.Operation != nil { + objectMap["operation"] = vj.Operation + } + if vj.Status != nil { + objectMap["status"] = vj.Status + } + if vj.StartTime != nil { + objectMap["startTime"] = vj.StartTime + } + if vj.EndTime != nil { + objectMap["endTime"] = vj.EndTime + } + if vj.ActivityID != nil { + objectMap["activityId"] = vj.ActivityID + } + if vj.JobType != "" { + objectMap["jobType"] = vj.JobType + } + return json.Marshal(objectMap) +} + +// AsAzureIaaSVMJob is the BasicJob implementation for VaultJob. +func (vj VaultJob) AsAzureIaaSVMJob() (*AzureIaaSVMJob, bool) { + return nil, false +} + +// AsAzureStorageJob is the BasicJob implementation for VaultJob. +func (vj VaultJob) AsAzureStorageJob() (*AzureStorageJob, bool) { + return nil, false +} + +// AsAzureWorkloadJob is the BasicJob implementation for VaultJob. +func (vj VaultJob) AsAzureWorkloadJob() (*AzureWorkloadJob, bool) { + return nil, false +} + +// AsDpmJob is the BasicJob implementation for VaultJob. +func (vj VaultJob) AsDpmJob() (*DpmJob, bool) { + return nil, false +} + +// AsMabJob is the BasicJob implementation for VaultJob. +func (vj VaultJob) AsMabJob() (*MabJob, bool) { + return nil, false +} + +// AsVaultJob is the BasicJob implementation for VaultJob. +func (vj VaultJob) AsVaultJob() (*VaultJob, bool) { + return &vj, true +} + +// AsJob is the BasicJob implementation for VaultJob. +func (vj VaultJob) AsJob() (*Job, bool) { + return nil, false +} + +// AsBasicJob is the BasicJob implementation for VaultJob. +func (vj VaultJob) AsBasicJob() (BasicJob, bool) { + return &vj, true +} + +// VaultJobErrorInfo vault Job specific error information +type VaultJobErrorInfo struct { + // ErrorCode - Error code. + ErrorCode *int32 `json:"errorCode,omitempty"` + // ErrorString - Localized error string. + ErrorString *string `json:"errorString,omitempty"` + // Recommendations - List of localized recommendations for above error code. + Recommendations *[]string `json:"recommendations,omitempty"` +} + +// VaultJobExtendedInfo vault Job for CMK - has CMK specific info. +type VaultJobExtendedInfo struct { + // PropertyBag - Job properties. + PropertyBag map[string]*string `json:"propertyBag"` +} + +// MarshalJSON is the custom marshaler for VaultJobExtendedInfo. +func (vjei VaultJobExtendedInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vjei.PropertyBag != nil { + objectMap["propertyBag"] = vjei.PropertyBag + } + return json.Marshal(objectMap) +} + +// BasicVaultStorageConfigOperationResultResponse operation result response for Vault Storage Config +type BasicVaultStorageConfigOperationResultResponse interface { + AsPrepareDataMoveResponse() (*PrepareDataMoveResponse, bool) + AsVaultStorageConfigOperationResultResponse() (*VaultStorageConfigOperationResultResponse, bool) +} + +// VaultStorageConfigOperationResultResponse operation result response for Vault Storage Config +type VaultStorageConfigOperationResultResponse struct { + autorest.Response `json:"-"` + // ObjectType - Possible values include: 'ObjectTypeBasicVaultStorageConfigOperationResultResponseObjectTypeVaultStorageConfigOperationResultResponse', 'ObjectTypeBasicVaultStorageConfigOperationResultResponseObjectTypePrepareDataMoveResponse' + ObjectType ObjectTypeBasicVaultStorageConfigOperationResultResponse `json:"objectType,omitempty"` +} + +func unmarshalBasicVaultStorageConfigOperationResultResponse(body []byte) (BasicVaultStorageConfigOperationResultResponse, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["objectType"] { + case string(ObjectTypeBasicVaultStorageConfigOperationResultResponseObjectTypePrepareDataMoveResponse): + var pdmr PrepareDataMoveResponse + err := json.Unmarshal(body, &pdmr) + return pdmr, err + default: + var vscorr VaultStorageConfigOperationResultResponse + err := json.Unmarshal(body, &vscorr) + return vscorr, err + } +} +func unmarshalBasicVaultStorageConfigOperationResultResponseArray(body []byte) ([]BasicVaultStorageConfigOperationResultResponse, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + vscorrArray := make([]BasicVaultStorageConfigOperationResultResponse, len(rawMessages)) + + for index, rawMessage := range rawMessages { + vscorr, err := unmarshalBasicVaultStorageConfigOperationResultResponse(*rawMessage) + if err != nil { + return nil, err + } + vscorrArray[index] = vscorr + } + return vscorrArray, nil +} + +// MarshalJSON is the custom marshaler for VaultStorageConfigOperationResultResponse. +func (vscorr VaultStorageConfigOperationResultResponse) MarshalJSON() ([]byte, error) { + vscorr.ObjectType = ObjectTypeBasicVaultStorageConfigOperationResultResponseObjectTypeVaultStorageConfigOperationResultResponse + objectMap := make(map[string]interface{}) + if vscorr.ObjectType != "" { + objectMap["objectType"] = vscorr.ObjectType + } + return json.Marshal(objectMap) +} + +// AsPrepareDataMoveResponse is the BasicVaultStorageConfigOperationResultResponse implementation for VaultStorageConfigOperationResultResponse. +func (vscorr VaultStorageConfigOperationResultResponse) AsPrepareDataMoveResponse() (*PrepareDataMoveResponse, bool) { + return nil, false +} + +// AsVaultStorageConfigOperationResultResponse is the BasicVaultStorageConfigOperationResultResponse implementation for VaultStorageConfigOperationResultResponse. +func (vscorr VaultStorageConfigOperationResultResponse) AsVaultStorageConfigOperationResultResponse() (*VaultStorageConfigOperationResultResponse, bool) { + return &vscorr, true +} + +// AsBasicVaultStorageConfigOperationResultResponse is the BasicVaultStorageConfigOperationResultResponse implementation for VaultStorageConfigOperationResultResponse. +func (vscorr VaultStorageConfigOperationResultResponse) AsBasicVaultStorageConfigOperationResultResponse() (BasicVaultStorageConfigOperationResultResponse, bool) { + return &vscorr, true +} + +// VaultStorageConfigOperationResultResponseModel ... +type VaultStorageConfigOperationResultResponseModel struct { + autorest.Response `json:"-"` + Value BasicVaultStorageConfigOperationResultResponse `json:"value,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for VaultStorageConfigOperationResultResponseModel struct. +func (vscorrm *VaultStorageConfigOperationResultResponseModel) UnmarshalJSON(body []byte) error { + vscorr, err := unmarshalBasicVaultStorageConfigOperationResultResponse(body) + if err != nil { + return err + } + vscorrm.Value = vscorr + + return nil +} + +// WeeklyRetentionFormat weekly retention format. +type WeeklyRetentionFormat struct { + // DaysOfTheWeek - List of days of the week. + DaysOfTheWeek *[]DayOfWeek `json:"daysOfTheWeek,omitempty"` + // WeeksOfTheMonth - List of weeks of month. + WeeksOfTheMonth *[]WeekOfMonth `json:"weeksOfTheMonth,omitempty"` +} + +// WeeklyRetentionSchedule weekly retention schedule. +type WeeklyRetentionSchedule struct { + // DaysOfTheWeek - List of days of week for weekly retention policy. + DaysOfTheWeek *[]DayOfWeek `json:"daysOfTheWeek,omitempty"` + // RetentionTimes - Retention times of retention policy. + RetentionTimes *[]date.Time `json:"retentionTimes,omitempty"` + // RetentionDuration - Retention duration of retention Policy. + RetentionDuration *RetentionDuration `json:"retentionDuration,omitempty"` +} + +// WorkloadCrrAccessToken ... +type WorkloadCrrAccessToken struct { + ProtectableObjectUniqueName *string `json:"protectableObjectUniqueName,omitempty"` + ProtectableObjectFriendlyName *string `json:"protectableObjectFriendlyName,omitempty"` + ProtectableObjectWorkloadType *string `json:"protectableObjectWorkloadType,omitempty"` + ProtectableObjectProtectionState *string `json:"protectableObjectProtectionState,omitempty"` + ProtectableObjectContainerHostOsName *string `json:"protectableObjectContainerHostOsName,omitempty"` + ProtectableObjectParentLogicalContainerName *string `json:"protectableObjectParentLogicalContainerName,omitempty"` + // ContainerID - Container Id + ContainerID *string `json:"containerId,omitempty"` + // PolicyName - Policy Name + PolicyName *string `json:"policyName,omitempty"` + // PolicyID - Policy Id + PolicyID *string `json:"policyId,omitempty"` + // AccessTokenString - Access token used for authentication + AccessTokenString *string `json:"accessTokenString,omitempty"` + // SubscriptionID - Subscription Id of the source vault + SubscriptionID *string `json:"subscriptionId,omitempty"` + // ResourceGroupName - Resource Group name of the source vault + ResourceGroupName *string `json:"resourceGroupName,omitempty"` + // ResourceName - Resource Name of the source vault + ResourceName *string `json:"resourceName,omitempty"` + // ResourceID - Resource Id of the source vault + ResourceID *string `json:"resourceId,omitempty"` + // ProtectionContainerID - Protected item container id + ProtectionContainerID *int64 `json:"protectionContainerId,omitempty"` + // RecoveryPointID - Recovery Point Id + RecoveryPointID *string `json:"recoveryPointId,omitempty"` + // RecoveryPointTime - Recovery Point Time + RecoveryPointTime *string `json:"recoveryPointTime,omitempty"` + // ContainerName - Container Unique name + ContainerName *string `json:"containerName,omitempty"` + // ContainerType - Container Type + ContainerType *string `json:"containerType,omitempty"` + // BackupManagementType - Backup Management Type + BackupManagementType *string `json:"backupManagementType,omitempty"` + // DatasourceType - Datasource Type + DatasourceType *string `json:"datasourceType,omitempty"` + // DatasourceName - Datasource Friendly Name + DatasourceName *string `json:"datasourceName,omitempty"` + // DatasourceID - Datasource Id + DatasourceID *string `json:"datasourceId,omitempty"` + // DatasourceContainerName - Datasource Container Unique Name + DatasourceContainerName *string `json:"datasourceContainerName,omitempty"` + // CoordinatorServiceStampID - CoordinatorServiceStampId to be used by BCM in restore call + CoordinatorServiceStampID *string `json:"coordinatorServiceStampId,omitempty"` + // CoordinatorServiceStampURI - CoordinatorServiceStampUri to be used by BCM in restore call + CoordinatorServiceStampURI *string `json:"coordinatorServiceStampUri,omitempty"` + // ProtectionServiceStampID - ProtectionServiceStampId to be used by BCM in restore call + ProtectionServiceStampID *string `json:"protectionServiceStampId,omitempty"` + // ProtectionServiceStampURI - ProtectionServiceStampUri to be used by BCM in restore call + ProtectionServiceStampURI *string `json:"protectionServiceStampUri,omitempty"` + // TokenExtendedInformation - Extended Information about the token like FileSpec etc. + TokenExtendedInformation *string `json:"tokenExtendedInformation,omitempty"` + // RpTierInformation - Recovery point Tier Information + RpTierInformation map[string]*string `json:"rpTierInformation"` + // RpOriginalSAOption - Recovery point information: Original SA option + RpOriginalSAOption *bool `json:"rpOriginalSAOption,omitempty"` + // RpIsManagedVirtualMachine - Recovery point information: Managed virtual machine + RpIsManagedVirtualMachine *bool `json:"rpIsManagedVirtualMachine,omitempty"` + // RpVMSizeDescription - Recovery point information: VM size description + RpVMSizeDescription *string `json:"rpVMSizeDescription,omitempty"` + // BMSActiveRegion - Active region name of BMS Stamp + BMSActiveRegion *string `json:"bMSActiveRegion,omitempty"` + // ObjectType - Possible values include: 'ObjectTypeBasicCrrAccessTokenObjectTypeCrrAccessToken', 'ObjectTypeBasicCrrAccessTokenObjectTypeWorkloadCrrAccessToken' + ObjectType ObjectTypeBasicCrrAccessToken `json:"objectType,omitempty"` +} + +// MarshalJSON is the custom marshaler for WorkloadCrrAccessToken. +func (wcat WorkloadCrrAccessToken) MarshalJSON() ([]byte, error) { + wcat.ObjectType = ObjectTypeBasicCrrAccessTokenObjectTypeWorkloadCrrAccessToken + objectMap := make(map[string]interface{}) + if wcat.ProtectableObjectUniqueName != nil { + objectMap["protectableObjectUniqueName"] = wcat.ProtectableObjectUniqueName + } + if wcat.ProtectableObjectFriendlyName != nil { + objectMap["protectableObjectFriendlyName"] = wcat.ProtectableObjectFriendlyName + } + if wcat.ProtectableObjectWorkloadType != nil { + objectMap["protectableObjectWorkloadType"] = wcat.ProtectableObjectWorkloadType + } + if wcat.ProtectableObjectProtectionState != nil { + objectMap["protectableObjectProtectionState"] = wcat.ProtectableObjectProtectionState + } + if wcat.ProtectableObjectContainerHostOsName != nil { + objectMap["protectableObjectContainerHostOsName"] = wcat.ProtectableObjectContainerHostOsName + } + if wcat.ProtectableObjectParentLogicalContainerName != nil { + objectMap["protectableObjectParentLogicalContainerName"] = wcat.ProtectableObjectParentLogicalContainerName + } + if wcat.ContainerID != nil { + objectMap["containerId"] = wcat.ContainerID + } + if wcat.PolicyName != nil { + objectMap["policyName"] = wcat.PolicyName + } + if wcat.PolicyID != nil { + objectMap["policyId"] = wcat.PolicyID + } + if wcat.AccessTokenString != nil { + objectMap["accessTokenString"] = wcat.AccessTokenString + } + if wcat.SubscriptionID != nil { + objectMap["subscriptionId"] = wcat.SubscriptionID + } + if wcat.ResourceGroupName != nil { + objectMap["resourceGroupName"] = wcat.ResourceGroupName + } + if wcat.ResourceName != nil { + objectMap["resourceName"] = wcat.ResourceName + } + if wcat.ResourceID != nil { + objectMap["resourceId"] = wcat.ResourceID + } + if wcat.ProtectionContainerID != nil { + objectMap["protectionContainerId"] = wcat.ProtectionContainerID + } + if wcat.RecoveryPointID != nil { + objectMap["recoveryPointId"] = wcat.RecoveryPointID + } + if wcat.RecoveryPointTime != nil { + objectMap["recoveryPointTime"] = wcat.RecoveryPointTime + } + if wcat.ContainerName != nil { + objectMap["containerName"] = wcat.ContainerName + } + if wcat.ContainerType != nil { + objectMap["containerType"] = wcat.ContainerType + } + if wcat.BackupManagementType != nil { + objectMap["backupManagementType"] = wcat.BackupManagementType + } + if wcat.DatasourceType != nil { + objectMap["datasourceType"] = wcat.DatasourceType + } + if wcat.DatasourceName != nil { + objectMap["datasourceName"] = wcat.DatasourceName + } + if wcat.DatasourceID != nil { + objectMap["datasourceId"] = wcat.DatasourceID + } + if wcat.DatasourceContainerName != nil { + objectMap["datasourceContainerName"] = wcat.DatasourceContainerName + } + if wcat.CoordinatorServiceStampID != nil { + objectMap["coordinatorServiceStampId"] = wcat.CoordinatorServiceStampID + } + if wcat.CoordinatorServiceStampURI != nil { + objectMap["coordinatorServiceStampUri"] = wcat.CoordinatorServiceStampURI + } + if wcat.ProtectionServiceStampID != nil { + objectMap["protectionServiceStampId"] = wcat.ProtectionServiceStampID + } + if wcat.ProtectionServiceStampURI != nil { + objectMap["protectionServiceStampUri"] = wcat.ProtectionServiceStampURI + } + if wcat.TokenExtendedInformation != nil { + objectMap["tokenExtendedInformation"] = wcat.TokenExtendedInformation + } + if wcat.RpTierInformation != nil { + objectMap["rpTierInformation"] = wcat.RpTierInformation + } + if wcat.RpOriginalSAOption != nil { + objectMap["rpOriginalSAOption"] = wcat.RpOriginalSAOption + } + if wcat.RpIsManagedVirtualMachine != nil { + objectMap["rpIsManagedVirtualMachine"] = wcat.RpIsManagedVirtualMachine + } + if wcat.RpVMSizeDescription != nil { + objectMap["rpVMSizeDescription"] = wcat.RpVMSizeDescription + } + if wcat.BMSActiveRegion != nil { + objectMap["bMSActiveRegion"] = wcat.BMSActiveRegion + } + if wcat.ObjectType != "" { + objectMap["objectType"] = wcat.ObjectType + } + return json.Marshal(objectMap) +} + +// AsWorkloadCrrAccessToken is the BasicCrrAccessToken implementation for WorkloadCrrAccessToken. +func (wcat WorkloadCrrAccessToken) AsWorkloadCrrAccessToken() (*WorkloadCrrAccessToken, bool) { + return &wcat, true +} + +// AsCrrAccessToken is the BasicCrrAccessToken implementation for WorkloadCrrAccessToken. +func (wcat WorkloadCrrAccessToken) AsCrrAccessToken() (*CrrAccessToken, bool) { + return nil, false +} + +// AsBasicCrrAccessToken is the BasicCrrAccessToken implementation for WorkloadCrrAccessToken. +func (wcat WorkloadCrrAccessToken) AsBasicCrrAccessToken() (BasicCrrAccessToken, bool) { + return &wcat, true +} + +// WorkloadInquiryDetails details of an inquired protectable item. +type WorkloadInquiryDetails struct { + // Type - Type of the Workload such as SQL, Oracle etc. + Type *string `json:"type,omitempty"` + // ItemCount - Contains the protectable item Count inside this Container. + ItemCount *int64 `json:"itemCount,omitempty"` + // InquiryValidation - Inquiry validation such as permissions and other backup validations. + InquiryValidation *InquiryValidation `json:"inquiryValidation,omitempty"` +} + +// BasicWorkloadItem base class for backup item. Workload-specific backup items are derived from this class. +type BasicWorkloadItem interface { + AsAzureVMWorkloadItem() (*AzureVMWorkloadItem, bool) + AsBasicAzureVMWorkloadItem() (BasicAzureVMWorkloadItem, bool) + AsAzureVMWorkloadSAPAseDatabaseWorkloadItem() (*AzureVMWorkloadSAPAseDatabaseWorkloadItem, bool) + AsAzureVMWorkloadSAPAseSystemWorkloadItem() (*AzureVMWorkloadSAPAseSystemWorkloadItem, bool) + AsAzureVMWorkloadSAPHanaDatabaseWorkloadItem() (*AzureVMWorkloadSAPHanaDatabaseWorkloadItem, bool) + AsAzureVMWorkloadSAPHanaSystemWorkloadItem() (*AzureVMWorkloadSAPHanaSystemWorkloadItem, bool) + AsAzureVMWorkloadSQLDatabaseWorkloadItem() (*AzureVMWorkloadSQLDatabaseWorkloadItem, bool) + AsAzureVMWorkloadSQLInstanceWorkloadItem() (*AzureVMWorkloadSQLInstanceWorkloadItem, bool) + AsWorkloadItem() (*WorkloadItem, bool) +} + +// WorkloadItem base class for backup item. Workload-specific backup items are derived from this class. +type WorkloadItem struct { + // BackupManagementType - Type of backup management to backup an item. + BackupManagementType *string `json:"backupManagementType,omitempty"` + // WorkloadType - Type of workload for the backup management + WorkloadType *string `json:"workloadType,omitempty"` + // FriendlyName - Friendly name of the backup item. + FriendlyName *string `json:"friendlyName,omitempty"` + // ProtectionState - State of the back up item. Possible values include: 'ProtectionStatusInvalid', 'ProtectionStatusNotProtected', 'ProtectionStatusProtecting', 'ProtectionStatusProtected', 'ProtectionStatusProtectionFailed' + ProtectionState ProtectionStatus `json:"protectionState,omitempty"` + // WorkloadItemType - Possible values include: 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeWorkloadItem', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeAzureVMWorkloadItem', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPAseDatabase', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPAseSystem', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPHanaDatabase', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPHanaSystem', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSQLDataBase', 'WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSQLInstance' + WorkloadItemType WorkloadItemTypeBasicWorkloadItem `json:"workloadItemType,omitempty"` +} + +func unmarshalBasicWorkloadItem(body []byte) (BasicWorkloadItem, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["workloadItemType"] { + case string(WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeAzureVMWorkloadItem): + var avwi AzureVMWorkloadItem + err := json.Unmarshal(body, &avwi) + return avwi, err + case string(WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPAseDatabase): + var avwsadwi AzureVMWorkloadSAPAseDatabaseWorkloadItem + err := json.Unmarshal(body, &avwsadwi) + return avwsadwi, err + case string(WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPAseSystem): + var avwsaswi AzureVMWorkloadSAPAseSystemWorkloadItem + err := json.Unmarshal(body, &avwsaswi) + return avwsaswi, err + case string(WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPHanaDatabase): + var avwshdwi AzureVMWorkloadSAPHanaDatabaseWorkloadItem + err := json.Unmarshal(body, &avwshdwi) + return avwshdwi, err + case string(WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSAPHanaSystem): + var avwshswi AzureVMWorkloadSAPHanaSystemWorkloadItem + err := json.Unmarshal(body, &avwshswi) + return avwshswi, err + case string(WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSQLDataBase): + var avwsdwi AzureVMWorkloadSQLDatabaseWorkloadItem + err := json.Unmarshal(body, &avwsdwi) + return avwsdwi, err + case string(WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeSQLInstance): + var avwsiwi AzureVMWorkloadSQLInstanceWorkloadItem + err := json.Unmarshal(body, &avwsiwi) + return avwsiwi, err + default: + var wi WorkloadItem + err := json.Unmarshal(body, &wi) + return wi, err + } +} +func unmarshalBasicWorkloadItemArray(body []byte) ([]BasicWorkloadItem, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + wiArray := make([]BasicWorkloadItem, len(rawMessages)) + + for index, rawMessage := range rawMessages { + wi, err := unmarshalBasicWorkloadItem(*rawMessage) + if err != nil { + return nil, err + } + wiArray[index] = wi + } + return wiArray, nil +} + +// MarshalJSON is the custom marshaler for WorkloadItem. +func (wi WorkloadItem) MarshalJSON() ([]byte, error) { + wi.WorkloadItemType = WorkloadItemTypeBasicWorkloadItemWorkloadItemTypeWorkloadItem + objectMap := make(map[string]interface{}) + if wi.BackupManagementType != nil { + objectMap["backupManagementType"] = wi.BackupManagementType + } + if wi.WorkloadType != nil { + objectMap["workloadType"] = wi.WorkloadType + } + if wi.FriendlyName != nil { + objectMap["friendlyName"] = wi.FriendlyName + } + if wi.ProtectionState != "" { + objectMap["protectionState"] = wi.ProtectionState + } + if wi.WorkloadItemType != "" { + objectMap["workloadItemType"] = wi.WorkloadItemType + } + return json.Marshal(objectMap) +} + +// AsAzureVMWorkloadItem is the BasicWorkloadItem implementation for WorkloadItem. +func (wi WorkloadItem) AsAzureVMWorkloadItem() (*AzureVMWorkloadItem, bool) { + return nil, false +} + +// AsBasicAzureVMWorkloadItem is the BasicWorkloadItem implementation for WorkloadItem. +func (wi WorkloadItem) AsBasicAzureVMWorkloadItem() (BasicAzureVMWorkloadItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPAseDatabaseWorkloadItem is the BasicWorkloadItem implementation for WorkloadItem. +func (wi WorkloadItem) AsAzureVMWorkloadSAPAseDatabaseWorkloadItem() (*AzureVMWorkloadSAPAseDatabaseWorkloadItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPAseSystemWorkloadItem is the BasicWorkloadItem implementation for WorkloadItem. +func (wi WorkloadItem) AsAzureVMWorkloadSAPAseSystemWorkloadItem() (*AzureVMWorkloadSAPAseSystemWorkloadItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaDatabaseWorkloadItem is the BasicWorkloadItem implementation for WorkloadItem. +func (wi WorkloadItem) AsAzureVMWorkloadSAPHanaDatabaseWorkloadItem() (*AzureVMWorkloadSAPHanaDatabaseWorkloadItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaSystemWorkloadItem is the BasicWorkloadItem implementation for WorkloadItem. +func (wi WorkloadItem) AsAzureVMWorkloadSAPHanaSystemWorkloadItem() (*AzureVMWorkloadSAPHanaSystemWorkloadItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLDatabaseWorkloadItem is the BasicWorkloadItem implementation for WorkloadItem. +func (wi WorkloadItem) AsAzureVMWorkloadSQLDatabaseWorkloadItem() (*AzureVMWorkloadSQLDatabaseWorkloadItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLInstanceWorkloadItem is the BasicWorkloadItem implementation for WorkloadItem. +func (wi WorkloadItem) AsAzureVMWorkloadSQLInstanceWorkloadItem() (*AzureVMWorkloadSQLInstanceWorkloadItem, bool) { + return nil, false +} + +// AsWorkloadItem is the BasicWorkloadItem implementation for WorkloadItem. +func (wi WorkloadItem) AsWorkloadItem() (*WorkloadItem, bool) { + return &wi, true +} + +// AsBasicWorkloadItem is the BasicWorkloadItem implementation for WorkloadItem. +func (wi WorkloadItem) AsBasicWorkloadItem() (BasicWorkloadItem, bool) { + return &wi, true +} + +// WorkloadItemResource base class for backup item. Workload-specific backup items are derived from this +// class. +type WorkloadItemResource struct { + // Properties - WorkloadItemResource properties + Properties BasicWorkloadItem `json:"properties,omitempty"` + // ID - READ-ONLY; Resource Id represents the complete path to the resource. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name associated with the resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // ETag - Optional ETag. + ETag *string `json:"eTag,omitempty"` +} + +// MarshalJSON is the custom marshaler for WorkloadItemResource. +func (wir WorkloadItemResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + objectMap["properties"] = wir.Properties + if wir.Location != nil { + objectMap["location"] = wir.Location + } + if wir.Tags != nil { + objectMap["tags"] = wir.Tags + } + if wir.ETag != nil { + objectMap["eTag"] = wir.ETag + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for WorkloadItemResource struct. +func (wir *WorkloadItemResource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + properties, err := unmarshalBasicWorkloadItem(*v) + if err != nil { + return err + } + wir.Properties = properties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + wir.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + wir.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + wir.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + wir.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + wir.Tags = tags + } + case "eTag": + if v != nil { + var eTag string + err = json.Unmarshal(*v, &eTag) + if err != nil { + return err + } + wir.ETag = &eTag + } + } + } + + return nil +} + +// WorkloadItemResourceList list of WorkloadItem resources +type WorkloadItemResourceList struct { + autorest.Response `json:"-"` + // Value - List of resources. + Value *[]WorkloadItemResource `json:"value,omitempty"` + // NextLink - The uri to fetch the next page of resources. Call ListNext() fetches next page of resources. + NextLink *string `json:"nextLink,omitempty"` +} + +// WorkloadItemResourceListIterator provides access to a complete listing of WorkloadItemResource values. +type WorkloadItemResourceListIterator struct { + i int + page WorkloadItemResourceListPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *WorkloadItemResourceListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WorkloadItemResourceListIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *WorkloadItemResourceListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter WorkloadItemResourceListIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter WorkloadItemResourceListIterator) Response() WorkloadItemResourceList { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter WorkloadItemResourceListIterator) Value() WorkloadItemResource { + if !iter.page.NotDone() { + return WorkloadItemResource{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the WorkloadItemResourceListIterator type. +func NewWorkloadItemResourceListIterator(page WorkloadItemResourceListPage) WorkloadItemResourceListIterator { + return WorkloadItemResourceListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (wirl WorkloadItemResourceList) IsEmpty() bool { + return wirl.Value == nil || len(*wirl.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (wirl WorkloadItemResourceList) hasNextLink() bool { + return wirl.NextLink != nil && len(*wirl.NextLink) != 0 +} + +// workloadItemResourceListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (wirl WorkloadItemResourceList) workloadItemResourceListPreparer(ctx context.Context) (*http.Request, error) { + if !wirl.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(wirl.NextLink))) +} + +// WorkloadItemResourceListPage contains a page of WorkloadItemResource values. +type WorkloadItemResourceListPage struct { + fn func(context.Context, WorkloadItemResourceList) (WorkloadItemResourceList, error) + wirl WorkloadItemResourceList +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *WorkloadItemResourceListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WorkloadItemResourceListPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.wirl) + if err != nil { + return err + } + page.wirl = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *WorkloadItemResourceListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page WorkloadItemResourceListPage) NotDone() bool { + return !page.wirl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page WorkloadItemResourceListPage) Response() WorkloadItemResourceList { + return page.wirl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page WorkloadItemResourceListPage) Values() []WorkloadItemResource { + if page.wirl.IsEmpty() { + return nil + } + return *page.wirl.Value +} + +// Creates a new instance of the WorkloadItemResourceListPage type. +func NewWorkloadItemResourceListPage(cur WorkloadItemResourceList, getNextPage func(context.Context, WorkloadItemResourceList) (WorkloadItemResourceList, error)) WorkloadItemResourceListPage { + return WorkloadItemResourceListPage{ + fn: getNextPage, + wirl: cur, + } +} + +// BasicWorkloadProtectableItem base class for backup item. Workload-specific backup items are derived from this class. +type BasicWorkloadProtectableItem interface { + AsAzureFileShareProtectableItem() (*AzureFileShareProtectableItem, bool) + AsAzureIaaSClassicComputeVMProtectableItem() (*AzureIaaSClassicComputeVMProtectableItem, bool) + AsAzureIaaSComputeVMProtectableItem() (*AzureIaaSComputeVMProtectableItem, bool) + AsAzureVMWorkloadProtectableItem() (*AzureVMWorkloadProtectableItem, bool) + AsBasicAzureVMWorkloadProtectableItem() (BasicAzureVMWorkloadProtectableItem, bool) + AsAzureVMWorkloadSAPAseSystemProtectableItem() (*AzureVMWorkloadSAPAseSystemProtectableItem, bool) + AsAzureVMWorkloadSAPHanaDatabaseProtectableItem() (*AzureVMWorkloadSAPHanaDatabaseProtectableItem, bool) + AsAzureVMWorkloadSAPHanaSystemProtectableItem() (*AzureVMWorkloadSAPHanaSystemProtectableItem, bool) + AsAzureVMWorkloadSQLAvailabilityGroupProtectableItem() (*AzureVMWorkloadSQLAvailabilityGroupProtectableItem, bool) + AsAzureVMWorkloadSQLDatabaseProtectableItem() (*AzureVMWorkloadSQLDatabaseProtectableItem, bool) + AsAzureVMWorkloadSQLInstanceProtectableItem() (*AzureVMWorkloadSQLInstanceProtectableItem, bool) + AsIaaSVMProtectableItem() (*IaaSVMProtectableItem, bool) + AsBasicIaaSVMProtectableItem() (BasicIaaSVMProtectableItem, bool) + AsWorkloadProtectableItem() (*WorkloadProtectableItem, bool) +} + +// WorkloadProtectableItem base class for backup item. Workload-specific backup items are derived from this +// class. +type WorkloadProtectableItem struct { + // BackupManagementType - Type of backup management to backup an item. + BackupManagementType *string `json:"backupManagementType,omitempty"` + // WorkloadType - Type of workload for the backup management + WorkloadType *string `json:"workloadType,omitempty"` + // FriendlyName - Friendly name of the backup item. + FriendlyName *string `json:"friendlyName,omitempty"` + // ProtectionState - State of the back up item. Possible values include: 'ProtectionStatusInvalid', 'ProtectionStatusNotProtected', 'ProtectionStatusProtecting', 'ProtectionStatusProtected', 'ProtectionStatusProtectionFailed' + ProtectionState ProtectionStatus `json:"protectionState,omitempty"` + // ProtectableItemType - Possible values include: 'ProtectableItemTypeWorkloadProtectableItem', 'ProtectableItemTypeAzureFileShare', 'ProtectableItemTypeMicrosoftClassicComputevirtualMachines', 'ProtectableItemTypeMicrosoftComputevirtualMachines', 'ProtectableItemTypeAzureVMWorkloadProtectableItem', 'ProtectableItemTypeSAPAseSystem', 'ProtectableItemTypeSAPHanaDatabase', 'ProtectableItemTypeSAPHanaSystem', 'ProtectableItemTypeSQLAvailabilityGroupContainer', 'ProtectableItemTypeSQLDataBase', 'ProtectableItemTypeSQLInstance', 'ProtectableItemTypeIaaSVMProtectableItem' + ProtectableItemType ProtectableItemType `json:"protectableItemType,omitempty"` +} + +func unmarshalBasicWorkloadProtectableItem(body []byte) (BasicWorkloadProtectableItem, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["protectableItemType"] { + case string(ProtectableItemTypeAzureFileShare): + var afspi AzureFileShareProtectableItem + err := json.Unmarshal(body, &afspi) + return afspi, err + case string(ProtectableItemTypeMicrosoftClassicComputevirtualMachines): + var aisccvpi AzureIaaSClassicComputeVMProtectableItem + err := json.Unmarshal(body, &aisccvpi) + return aisccvpi, err + case string(ProtectableItemTypeMicrosoftComputevirtualMachines): + var aiscvpi AzureIaaSComputeVMProtectableItem + err := json.Unmarshal(body, &aiscvpi) + return aiscvpi, err + case string(ProtectableItemTypeAzureVMWorkloadProtectableItem): + var avwpi AzureVMWorkloadProtectableItem + err := json.Unmarshal(body, &avwpi) + return avwpi, err + case string(ProtectableItemTypeSAPAseSystem): + var avwsaspi AzureVMWorkloadSAPAseSystemProtectableItem + err := json.Unmarshal(body, &avwsaspi) + return avwsaspi, err + case string(ProtectableItemTypeSAPHanaDatabase): + var avwshdpi AzureVMWorkloadSAPHanaDatabaseProtectableItem + err := json.Unmarshal(body, &avwshdpi) + return avwshdpi, err + case string(ProtectableItemTypeSAPHanaSystem): + var avwshspi AzureVMWorkloadSAPHanaSystemProtectableItem + err := json.Unmarshal(body, &avwshspi) + return avwshspi, err + case string(ProtectableItemTypeSQLAvailabilityGroupContainer): + var avwsagpi AzureVMWorkloadSQLAvailabilityGroupProtectableItem + err := json.Unmarshal(body, &avwsagpi) + return avwsagpi, err + case string(ProtectableItemTypeSQLDataBase): + var avwsdpi AzureVMWorkloadSQLDatabaseProtectableItem + err := json.Unmarshal(body, &avwsdpi) + return avwsdpi, err + case string(ProtectableItemTypeSQLInstance): + var avwsipi AzureVMWorkloadSQLInstanceProtectableItem + err := json.Unmarshal(body, &avwsipi) + return avwsipi, err + case string(ProtectableItemTypeIaaSVMProtectableItem): + var ispi IaaSVMProtectableItem + err := json.Unmarshal(body, &ispi) + return ispi, err + default: + var wpi WorkloadProtectableItem + err := json.Unmarshal(body, &wpi) + return wpi, err + } +} +func unmarshalBasicWorkloadProtectableItemArray(body []byte) ([]BasicWorkloadProtectableItem, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + wpiArray := make([]BasicWorkloadProtectableItem, len(rawMessages)) + + for index, rawMessage := range rawMessages { + wpi, err := unmarshalBasicWorkloadProtectableItem(*rawMessage) + if err != nil { + return nil, err + } + wpiArray[index] = wpi + } + return wpiArray, nil +} + +// MarshalJSON is the custom marshaler for WorkloadProtectableItem. +func (wpi WorkloadProtectableItem) MarshalJSON() ([]byte, error) { + wpi.ProtectableItemType = ProtectableItemTypeWorkloadProtectableItem + objectMap := make(map[string]interface{}) + if wpi.BackupManagementType != nil { + objectMap["backupManagementType"] = wpi.BackupManagementType + } + if wpi.WorkloadType != nil { + objectMap["workloadType"] = wpi.WorkloadType + } + if wpi.FriendlyName != nil { + objectMap["friendlyName"] = wpi.FriendlyName + } + if wpi.ProtectionState != "" { + objectMap["protectionState"] = wpi.ProtectionState + } + if wpi.ProtectableItemType != "" { + objectMap["protectableItemType"] = wpi.ProtectableItemType + } + return json.Marshal(objectMap) +} + +// AsAzureFileShareProtectableItem is the BasicWorkloadProtectableItem implementation for WorkloadProtectableItem. +func (wpi WorkloadProtectableItem) AsAzureFileShareProtectableItem() (*AzureFileShareProtectableItem, bool) { + return nil, false +} + +// AsAzureIaaSClassicComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for WorkloadProtectableItem. +func (wpi WorkloadProtectableItem) AsAzureIaaSClassicComputeVMProtectableItem() (*AzureIaaSClassicComputeVMProtectableItem, bool) { + return nil, false +} + +// AsAzureIaaSComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for WorkloadProtectableItem. +func (wpi WorkloadProtectableItem) AsAzureIaaSComputeVMProtectableItem() (*AzureIaaSComputeVMProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for WorkloadProtectableItem. +func (wpi WorkloadProtectableItem) AsAzureVMWorkloadProtectableItem() (*AzureVMWorkloadProtectableItem, bool) { + return nil, false +} + +// AsBasicAzureVMWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for WorkloadProtectableItem. +func (wpi WorkloadProtectableItem) AsBasicAzureVMWorkloadProtectableItem() (BasicAzureVMWorkloadProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPAseSystemProtectableItem is the BasicWorkloadProtectableItem implementation for WorkloadProtectableItem. +func (wpi WorkloadProtectableItem) AsAzureVMWorkloadSAPAseSystemProtectableItem() (*AzureVMWorkloadSAPAseSystemProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaDatabaseProtectableItem is the BasicWorkloadProtectableItem implementation for WorkloadProtectableItem. +func (wpi WorkloadProtectableItem) AsAzureVMWorkloadSAPHanaDatabaseProtectableItem() (*AzureVMWorkloadSAPHanaDatabaseProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSAPHanaSystemProtectableItem is the BasicWorkloadProtectableItem implementation for WorkloadProtectableItem. +func (wpi WorkloadProtectableItem) AsAzureVMWorkloadSAPHanaSystemProtectableItem() (*AzureVMWorkloadSAPHanaSystemProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLAvailabilityGroupProtectableItem is the BasicWorkloadProtectableItem implementation for WorkloadProtectableItem. +func (wpi WorkloadProtectableItem) AsAzureVMWorkloadSQLAvailabilityGroupProtectableItem() (*AzureVMWorkloadSQLAvailabilityGroupProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLDatabaseProtectableItem is the BasicWorkloadProtectableItem implementation for WorkloadProtectableItem. +func (wpi WorkloadProtectableItem) AsAzureVMWorkloadSQLDatabaseProtectableItem() (*AzureVMWorkloadSQLDatabaseProtectableItem, bool) { + return nil, false +} + +// AsAzureVMWorkloadSQLInstanceProtectableItem is the BasicWorkloadProtectableItem implementation for WorkloadProtectableItem. +func (wpi WorkloadProtectableItem) AsAzureVMWorkloadSQLInstanceProtectableItem() (*AzureVMWorkloadSQLInstanceProtectableItem, bool) { + return nil, false +} + +// AsIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for WorkloadProtectableItem. +func (wpi WorkloadProtectableItem) AsIaaSVMProtectableItem() (*IaaSVMProtectableItem, bool) { + return nil, false +} + +// AsBasicIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for WorkloadProtectableItem. +func (wpi WorkloadProtectableItem) AsBasicIaaSVMProtectableItem() (BasicIaaSVMProtectableItem, bool) { + return nil, false +} + +// AsWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for WorkloadProtectableItem. +func (wpi WorkloadProtectableItem) AsWorkloadProtectableItem() (*WorkloadProtectableItem, bool) { + return &wpi, true +} + +// AsBasicWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for WorkloadProtectableItem. +func (wpi WorkloadProtectableItem) AsBasicWorkloadProtectableItem() (BasicWorkloadProtectableItem, bool) { + return &wpi, true +} + +// WorkloadProtectableItemResource base class for backup item. Workload-specific backup items are derived +// from this class. +type WorkloadProtectableItemResource struct { + // Properties - WorkloadProtectableItemResource properties + Properties BasicWorkloadProtectableItem `json:"properties,omitempty"` + // ID - READ-ONLY; Resource Id represents the complete path to the resource. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name associated with the resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // ETag - Optional ETag. + ETag *string `json:"eTag,omitempty"` +} + +// MarshalJSON is the custom marshaler for WorkloadProtectableItemResource. +func (wpir WorkloadProtectableItemResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + objectMap["properties"] = wpir.Properties + if wpir.Location != nil { + objectMap["location"] = wpir.Location + } + if wpir.Tags != nil { + objectMap["tags"] = wpir.Tags + } + if wpir.ETag != nil { + objectMap["eTag"] = wpir.ETag + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for WorkloadProtectableItemResource struct. +func (wpir *WorkloadProtectableItemResource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + properties, err := unmarshalBasicWorkloadProtectableItem(*v) + if err != nil { + return err + } + wpir.Properties = properties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + wpir.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + wpir.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + wpir.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + wpir.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + wpir.Tags = tags + } + case "eTag": + if v != nil { + var eTag string + err = json.Unmarshal(*v, &eTag) + if err != nil { + return err + } + wpir.ETag = &eTag + } + } + } + + return nil +} + +// WorkloadProtectableItemResourceList list of WorkloadProtectableItem resources +type WorkloadProtectableItemResourceList struct { + autorest.Response `json:"-"` + // Value - List of resources. + Value *[]WorkloadProtectableItemResource `json:"value,omitempty"` + // NextLink - The uri to fetch the next page of resources. Call ListNext() fetches next page of resources. + NextLink *string `json:"nextLink,omitempty"` +} + +// WorkloadProtectableItemResourceListIterator provides access to a complete listing of +// WorkloadProtectableItemResource values. +type WorkloadProtectableItemResourceListIterator struct { + i int + page WorkloadProtectableItemResourceListPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *WorkloadProtectableItemResourceListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WorkloadProtectableItemResourceListIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *WorkloadProtectableItemResourceListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter WorkloadProtectableItemResourceListIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter WorkloadProtectableItemResourceListIterator) Response() WorkloadProtectableItemResourceList { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter WorkloadProtectableItemResourceListIterator) Value() WorkloadProtectableItemResource { + if !iter.page.NotDone() { + return WorkloadProtectableItemResource{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the WorkloadProtectableItemResourceListIterator type. +func NewWorkloadProtectableItemResourceListIterator(page WorkloadProtectableItemResourceListPage) WorkloadProtectableItemResourceListIterator { + return WorkloadProtectableItemResourceListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (wpirl WorkloadProtectableItemResourceList) IsEmpty() bool { + return wpirl.Value == nil || len(*wpirl.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (wpirl WorkloadProtectableItemResourceList) hasNextLink() bool { + return wpirl.NextLink != nil && len(*wpirl.NextLink) != 0 +} + +// workloadProtectableItemResourceListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (wpirl WorkloadProtectableItemResourceList) workloadProtectableItemResourceListPreparer(ctx context.Context) (*http.Request, error) { + if !wpirl.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(wpirl.NextLink))) +} + +// WorkloadProtectableItemResourceListPage contains a page of WorkloadProtectableItemResource values. +type WorkloadProtectableItemResourceListPage struct { + fn func(context.Context, WorkloadProtectableItemResourceList) (WorkloadProtectableItemResourceList, error) + wpirl WorkloadProtectableItemResourceList +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *WorkloadProtectableItemResourceListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WorkloadProtectableItemResourceListPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.wpirl) + if err != nil { + return err + } + page.wpirl = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *WorkloadProtectableItemResourceListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page WorkloadProtectableItemResourceListPage) NotDone() bool { + return !page.wpirl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page WorkloadProtectableItemResourceListPage) Response() WorkloadProtectableItemResourceList { + return page.wpirl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page WorkloadProtectableItemResourceListPage) Values() []WorkloadProtectableItemResource { + if page.wpirl.IsEmpty() { + return nil + } + return *page.wpirl.Value +} + +// Creates a new instance of the WorkloadProtectableItemResourceListPage type. +func NewWorkloadProtectableItemResourceListPage(cur WorkloadProtectableItemResourceList, getNextPage func(context.Context, WorkloadProtectableItemResourceList) (WorkloadProtectableItemResourceList, error)) WorkloadProtectableItemResourceListPage { + return WorkloadProtectableItemResourceListPage{ + fn: getNextPage, + wpirl: cur, + } +} + +// YearlyRetentionSchedule yearly retention schedule. +type YearlyRetentionSchedule struct { + // RetentionScheduleFormatType - Retention schedule format for yearly retention policy. Possible values include: 'RetentionScheduleFormatInvalid', 'RetentionScheduleFormatDaily', 'RetentionScheduleFormatWeekly' + RetentionScheduleFormatType RetentionScheduleFormat `json:"retentionScheduleFormatType,omitempty"` + // MonthsOfYear - List of months of year of yearly retention policy. + MonthsOfYear *[]MonthOfYear `json:"monthsOfYear,omitempty"` + // RetentionScheduleDaily - Daily retention format for yearly retention policy. + RetentionScheduleDaily *DailyRetentionFormat `json:"retentionScheduleDaily,omitempty"` + // RetentionScheduleWeekly - Weekly retention format for yearly retention policy. + RetentionScheduleWeekly *WeeklyRetentionFormat `json:"retentionScheduleWeekly,omitempty"` + // RetentionTimes - Retention times of retention policy. + RetentionTimes *[]date.Time `json:"retentionTimes,omitempty"` + // RetentionDuration - Retention duration of retention Policy. + RetentionDuration *RetentionDuration `json:"retentionDuration,omitempty"` +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/operation.go b/services/recoveryservices/mgmt/2021-01-01/backup/operation.go new file mode 100644 index 000000000000..e243ae1abed1 --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/operation.go @@ -0,0 +1,110 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// OperationClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type OperationClient struct { + BaseClient +} + +// NewOperationClient creates an instance of the OperationClient client. +func NewOperationClient(subscriptionID string) OperationClient { + return NewOperationClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewOperationClientWithBaseURI creates an instance of the OperationClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewOperationClientWithBaseURI(baseURI string, subscriptionID string) OperationClient { + return OperationClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Validate validate operation for specified backed up item. This is a synchronous operation. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// parameters - resource validate operation request +func (client OperationClient) Validate(ctx context.Context, vaultName string, resourceGroupName string, parameters BasicValidateOperationRequest) (result ValidateOperationsResponse, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationClient.Validate") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ValidatePreparer(ctx, vaultName, resourceGroupName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.OperationClient", "Validate", nil, "Failure preparing request") + return + } + + resp, err := client.ValidateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.OperationClient", "Validate", resp, "Failure sending request") + return + } + + result, err = client.ValidateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.OperationClient", "Validate", resp, "Failure responding to request") + return + } + + return +} + +// ValidatePreparer prepares the Validate request. +func (client OperationClient) ValidatePreparer(ctx context.Context, vaultName string, resourceGroupName string, parameters BasicValidateOperationRequest) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupValidateOperation", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ValidateSender sends the Validate request. The method will close the +// http.Response Body if it receives an error. +func (client OperationClient) ValidateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ValidateResponder handles the response to the Validate request. The method always +// closes the http.Response Body. +func (client OperationClient) ValidateResponder(resp *http.Response) (result ValidateOperationsResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/operationresults.go b/services/recoveryservices/mgmt/2021-01-01/backup/operationresults.go new file mode 100644 index 000000000000..fb05c574463c --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/operationresults.go @@ -0,0 +1,113 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// OperationResultsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type OperationResultsClient struct { + BaseClient +} + +// NewOperationResultsClient creates an instance of the OperationResultsClient client. +func NewOperationResultsClient(subscriptionID string) OperationResultsClient { + return NewOperationResultsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewOperationResultsClientWithBaseURI creates an instance of the OperationResultsClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewOperationResultsClientWithBaseURI(baseURI string, subscriptionID string) OperationResultsClient { + return OperationResultsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get provides the status of the delete operations such as deleting backed up item. Once the operation has started, +// the +// status code in the response would be Accepted. It will continue to be in this state till it reaches completion. On +// successful completion, the status code will be OK. This method expects OperationID as an argument. OperationID is +// part of the Location header of the operation response. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// operationID - operationID which represents the operation. +func (client OperationResultsClient) Get(ctx context.Context, vaultName string, resourceGroupName string, operationID string) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationResultsClient.Get") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, vaultName, resourceGroupName, operationID) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.OperationResultsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "backup.OperationResultsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.OperationResultsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client OperationResultsClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, operationID string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "operationId": autorest.Encode("path", operationID), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupOperationResults/{operationId}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client OperationResultsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client OperationResultsClient) GetResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/operations.go b/services/recoveryservices/mgmt/2021-01-01/backup/operations.go new file mode 100644 index 000000000000..75e1357de17f --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/operations.go @@ -0,0 +1,140 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// OperationsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type OperationsClient struct { + BaseClient +} + +// NewOperationsClient creates an instance of the OperationsClient client. +func NewOperationsClient(subscriptionID string) OperationsClient { + return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient { + return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List returns the list of available operations. +func (client OperationsClient) List(ctx context.Context) (result ClientDiscoveryResponsePage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List") + defer func() { + sc := -1 + if result.cdr.Response.Response != nil { + sc = result.cdr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.OperationsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.cdr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.OperationsClient", "List", resp, "Failure sending request") + return + } + + result.cdr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.OperationsClient", "List", resp, "Failure responding to request") + return + } + if result.cdr.hasNextLink() && result.cdr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) { + const APIVersion = "2016-08-10" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPath("/providers/Microsoft.RecoveryServices/operations"), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client OperationsClient) ListResponder(resp *http.Response) (result ClientDiscoveryResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client OperationsClient) listNextResults(ctx context.Context, lastResults ClientDiscoveryResponse) (result ClientDiscoveryResponse, err error) { + req, err := lastResults.clientDiscoveryResponsePreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "backup.OperationsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "backup.OperationsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client OperationsClient) ListComplete(ctx context.Context) (result ClientDiscoveryResponseIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/operationstatuses.go b/services/recoveryservices/mgmt/2021-01-01/backup/operationstatuses.go new file mode 100644 index 000000000000..bb24b5298e65 --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/operationstatuses.go @@ -0,0 +1,113 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// OperationStatusesClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type OperationStatusesClient struct { + BaseClient +} + +// NewOperationStatusesClient creates an instance of the OperationStatusesClient client. +func NewOperationStatusesClient(subscriptionID string) OperationStatusesClient { + return NewOperationStatusesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewOperationStatusesClientWithBaseURI creates an instance of the OperationStatusesClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewOperationStatusesClientWithBaseURI(baseURI string, subscriptionID string) OperationStatusesClient { + return OperationStatusesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get fetches the status of an operation such as triggering a backup, restore. The status can be in progress, +// completed +// or failed. You can refer to the OperationStatus enum for all the possible states of an operation. Some operations +// create jobs. This method returns the list of jobs when the operation is complete. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// operationID - operationID which represents the operation. +func (client OperationStatusesClient) Get(ctx context.Context, vaultName string, resourceGroupName string, operationID string) (result OperationStatus, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationStatusesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, vaultName, resourceGroupName, operationID) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.OperationStatusesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.OperationStatusesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.OperationStatusesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client OperationStatusesClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, operationID string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "operationId": autorest.Encode("path", operationID), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupOperations/{operationId}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client OperationStatusesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client OperationStatusesClient) GetResponder(resp *http.Response) (result OperationStatus, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/policies.go b/services/recoveryservices/mgmt/2021-01-01/backup/policies.go new file mode 100644 index 000000000000..aca164d6f595 --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/policies.go @@ -0,0 +1,154 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// PoliciesClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type PoliciesClient struct { + BaseClient +} + +// NewPoliciesClient creates an instance of the PoliciesClient client. +func NewPoliciesClient(subscriptionID string) PoliciesClient { + return NewPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewPoliciesClientWithBaseURI creates an instance of the PoliciesClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewPoliciesClientWithBaseURI(baseURI string, subscriptionID string) PoliciesClient { + return PoliciesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List lists of backup policies associated with Recovery Services Vault. API provides pagination parameters to fetch +// scoped results. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// filter - oData filter options. +func (client PoliciesClient) List(ctx context.Context, vaultName string, resourceGroupName string, filter string) (result ProtectionPolicyResourceListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PoliciesClient.List") + defer func() { + sc := -1 + if result.pprl.Response.Response != nil { + sc = result.pprl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, vaultName, resourceGroupName, filter) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.PoliciesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.pprl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.PoliciesClient", "List", resp, "Failure sending request") + return + } + + result.pprl, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.PoliciesClient", "List", resp, "Failure responding to request") + return + } + if result.pprl.hasNextLink() && result.pprl.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client PoliciesClient) ListPreparer(ctx context.Context, vaultName string, resourceGroupName string, filter string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(filter) > 0 { + queryParameters["$filter"] = autorest.Encode("query", filter) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client PoliciesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client PoliciesClient) ListResponder(resp *http.Response) (result ProtectionPolicyResourceList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client PoliciesClient) listNextResults(ctx context.Context, lastResults ProtectionPolicyResourceList) (result ProtectionPolicyResourceList, err error) { + req, err := lastResults.protectionPolicyResourceListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "backup.PoliciesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "backup.PoliciesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.PoliciesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client PoliciesClient) ListComplete(ctx context.Context, vaultName string, resourceGroupName string, filter string) (result ProtectionPolicyResourceListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PoliciesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, vaultName, resourceGroupName, filter) + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/privateendpoint.go b/services/recoveryservices/mgmt/2021-01-01/backup/privateendpoint.go new file mode 100644 index 000000000000..61ebcb428e0b --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/privateendpoint.go @@ -0,0 +1,111 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// PrivateEndpointClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type PrivateEndpointClient struct { + BaseClient +} + +// NewPrivateEndpointClient creates an instance of the PrivateEndpointClient client. +func NewPrivateEndpointClient(subscriptionID string) PrivateEndpointClient { + return NewPrivateEndpointClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewPrivateEndpointClientWithBaseURI creates an instance of the PrivateEndpointClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewPrivateEndpointClientWithBaseURI(baseURI string, subscriptionID string) PrivateEndpointClient { + return PrivateEndpointClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// GetOperationStatus sends the get operation status request. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// privateEndpointConnectionName - the name of the private endpoint connection. +// operationID - operation id +func (client PrivateEndpointClient) GetOperationStatus(ctx context.Context, vaultName string, resourceGroupName string, privateEndpointConnectionName string, operationID string) (result OperationStatus, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointClient.GetOperationStatus") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetOperationStatusPreparer(ctx, vaultName, resourceGroupName, privateEndpointConnectionName, operationID) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.PrivateEndpointClient", "GetOperationStatus", nil, "Failure preparing request") + return + } + + resp, err := client.GetOperationStatusSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.PrivateEndpointClient", "GetOperationStatus", resp, "Failure sending request") + return + } + + result, err = client.GetOperationStatusResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.PrivateEndpointClient", "GetOperationStatus", resp, "Failure responding to request") + return + } + + return +} + +// GetOperationStatusPreparer prepares the GetOperationStatus request. +func (client PrivateEndpointClient) GetOperationStatusPreparer(ctx context.Context, vaultName string, resourceGroupName string, privateEndpointConnectionName string, operationID string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "operationId": autorest.Encode("path", operationID), + "privateEndpointConnectionName": autorest.Encode("path", privateEndpointConnectionName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}/operationsStatus/{operationId}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetOperationStatusSender sends the GetOperationStatus request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateEndpointClient) GetOperationStatusSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetOperationStatusResponder handles the response to the GetOperationStatus request. The method always +// closes the http.Response Body. +func (client PrivateEndpointClient) GetOperationStatusResponder(resp *http.Response) (result OperationStatus, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/privateendpointconnection.go b/services/recoveryservices/mgmt/2021-01-01/backup/privateendpointconnection.go new file mode 100644 index 000000000000..209f642140f5 --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/privateendpointconnection.go @@ -0,0 +1,272 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// PrivateEndpointConnectionClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type PrivateEndpointConnectionClient struct { + BaseClient +} + +// NewPrivateEndpointConnectionClient creates an instance of the PrivateEndpointConnectionClient client. +func NewPrivateEndpointConnectionClient(subscriptionID string) PrivateEndpointConnectionClient { + return NewPrivateEndpointConnectionClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewPrivateEndpointConnectionClientWithBaseURI creates an instance of the PrivateEndpointConnectionClient client +// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign +// clouds, Azure stack). +func NewPrivateEndpointConnectionClientWithBaseURI(baseURI string, subscriptionID string) PrivateEndpointConnectionClient { + return PrivateEndpointConnectionClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Delete delete Private Endpoint requests. This call is made by Backup Admin. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// privateEndpointConnectionName - the name of the private endpoint connection. +func (client PrivateEndpointConnectionClient) Delete(ctx context.Context, vaultName string, resourceGroupName string, privateEndpointConnectionName string) (result PrivateEndpointConnectionDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointConnectionClient.Delete") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, vaultName, resourceGroupName, privateEndpointConnectionName) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.PrivateEndpointConnectionClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.PrivateEndpointConnectionClient", "Delete", nil, "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client PrivateEndpointConnectionClient) DeletePreparer(ctx context.Context, vaultName string, resourceGroupName string, privateEndpointConnectionName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "privateEndpointConnectionName": autorest.Encode("path", privateEndpointConnectionName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateEndpointConnectionClient) DeleteSender(req *http.Request) (future PrivateEndpointConnectionDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client PrivateEndpointConnectionClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get get Private Endpoint Connection. This call is made by Backup Admin. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// privateEndpointConnectionName - the name of the private endpoint connection. +func (client PrivateEndpointConnectionClient) Get(ctx context.Context, vaultName string, resourceGroupName string, privateEndpointConnectionName string) (result PrivateEndpointConnectionResource, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointConnectionClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, vaultName, resourceGroupName, privateEndpointConnectionName) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.PrivateEndpointConnectionClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.PrivateEndpointConnectionClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.PrivateEndpointConnectionClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client PrivateEndpointConnectionClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, privateEndpointConnectionName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "privateEndpointConnectionName": autorest.Encode("path", privateEndpointConnectionName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateEndpointConnectionClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client PrivateEndpointConnectionClient) GetResponder(resp *http.Response) (result PrivateEndpointConnectionResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Put approve or Reject Private Endpoint requests. This call is made by Backup Admin. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// privateEndpointConnectionName - the name of the private endpoint connection. +// parameters - request body for operation +func (client PrivateEndpointConnectionClient) Put(ctx context.Context, vaultName string, resourceGroupName string, privateEndpointConnectionName string, parameters PrivateEndpointConnectionResource) (result PrivateEndpointConnectionPutFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointConnectionClient.Put") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.PutPreparer(ctx, vaultName, resourceGroupName, privateEndpointConnectionName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.PrivateEndpointConnectionClient", "Put", nil, "Failure preparing request") + return + } + + result, err = client.PutSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.PrivateEndpointConnectionClient", "Put", nil, "Failure sending request") + return + } + + return +} + +// PutPreparer prepares the Put request. +func (client PrivateEndpointConnectionClient) PutPreparer(ctx context.Context, vaultName string, resourceGroupName string, privateEndpointConnectionName string, parameters PrivateEndpointConnectionResource) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "privateEndpointConnectionName": autorest.Encode("path", privateEndpointConnectionName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// PutSender sends the Put request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateEndpointConnectionClient) PutSender(req *http.Request) (future PrivateEndpointConnectionPutFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// PutResponder handles the response to the Put request. The method always +// closes the http.Response Body. +func (client PrivateEndpointConnectionClient) PutResponder(resp *http.Response) (result PrivateEndpointConnectionResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/protectablecontainers.go b/services/recoveryservices/mgmt/2021-01-01/backup/protectablecontainers.go new file mode 100644 index 000000000000..9696cfdcd368 --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/protectablecontainers.go @@ -0,0 +1,155 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ProtectableContainersClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type ProtectableContainersClient struct { + BaseClient +} + +// NewProtectableContainersClient creates an instance of the ProtectableContainersClient client. +func NewProtectableContainersClient(subscriptionID string) ProtectableContainersClient { + return NewProtectableContainersClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewProtectableContainersClientWithBaseURI creates an instance of the ProtectableContainersClient client using a +// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, +// Azure stack). +func NewProtectableContainersClientWithBaseURI(baseURI string, subscriptionID string) ProtectableContainersClient { + return ProtectableContainersClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List lists the containers that can be registered to Recovery Services Vault. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// filter - oData filter options. +func (client ProtectableContainersClient) List(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, filter string) (result ProtectableContainerResourceListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectableContainersClient.List") + defer func() { + sc := -1 + if result.pcrl.Response.Response != nil { + sc = result.pcrl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, vaultName, resourceGroupName, fabricName, filter) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectableContainersClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.pcrl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.ProtectableContainersClient", "List", resp, "Failure sending request") + return + } + + result.pcrl, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectableContainersClient", "List", resp, "Failure responding to request") + return + } + if result.pcrl.hasNextLink() && result.pcrl.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client ProtectableContainersClient) ListPreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, filter string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "fabricName": autorest.Encode("path", fabricName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(filter) > 0 { + queryParameters["$filter"] = autorest.Encode("query", filter) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectableContainers", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client ProtectableContainersClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client ProtectableContainersClient) ListResponder(resp *http.Response) (result ProtectableContainerResourceList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client ProtectableContainersClient) listNextResults(ctx context.Context, lastResults ProtectableContainerResourceList) (result ProtectableContainerResourceList, err error) { + req, err := lastResults.protectableContainerResourceListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "backup.ProtectableContainersClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "backup.ProtectableContainersClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectableContainersClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client ProtectableContainersClient) ListComplete(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, filter string) (result ProtectableContainerResourceListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectableContainersClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, vaultName, resourceGroupName, fabricName, filter) + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/protectableitems.go b/services/recoveryservices/mgmt/2021-01-01/backup/protectableitems.go new file mode 100644 index 000000000000..04239d192ab7 --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/protectableitems.go @@ -0,0 +1,159 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ProtectableItemsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type ProtectableItemsClient struct { + BaseClient +} + +// NewProtectableItemsClient creates an instance of the ProtectableItemsClient client. +func NewProtectableItemsClient(subscriptionID string) ProtectableItemsClient { + return NewProtectableItemsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewProtectableItemsClientWithBaseURI creates an instance of the ProtectableItemsClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewProtectableItemsClientWithBaseURI(baseURI string, subscriptionID string) ProtectableItemsClient { + return ProtectableItemsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List provides a pageable list of protectable objects within your subscription according to the query filter and the +// pagination parameters. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// filter - oData filter options. +// skipToken - skipToken Filter. +func (client ProtectableItemsClient) List(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result WorkloadProtectableItemResourceListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectableItemsClient.List") + defer func() { + sc := -1 + if result.wpirl.Response.Response != nil { + sc = result.wpirl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, vaultName, resourceGroupName, filter, skipToken) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectableItemsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.wpirl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.ProtectableItemsClient", "List", resp, "Failure sending request") + return + } + + result.wpirl, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectableItemsClient", "List", resp, "Failure responding to request") + return + } + if result.wpirl.hasNextLink() && result.wpirl.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client ProtectableItemsClient) ListPreparer(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(filter) > 0 { + queryParameters["$filter"] = autorest.Encode("query", filter) + } + if len(skipToken) > 0 { + queryParameters["$skipToken"] = autorest.Encode("query", skipToken) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectableItems", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client ProtectableItemsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client ProtectableItemsClient) ListResponder(resp *http.Response) (result WorkloadProtectableItemResourceList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client ProtectableItemsClient) listNextResults(ctx context.Context, lastResults WorkloadProtectableItemResourceList) (result WorkloadProtectableItemResourceList, err error) { + req, err := lastResults.workloadProtectableItemResourceListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "backup.ProtectableItemsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "backup.ProtectableItemsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectableItemsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client ProtectableItemsClient) ListComplete(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result WorkloadProtectableItemResourceListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectableItemsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, vaultName, resourceGroupName, filter, skipToken) + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/protecteditemoperationresults.go b/services/recoveryservices/mgmt/2021-01-01/backup/protecteditemoperationresults.go new file mode 100644 index 000000000000..487eba3f6500 --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/protecteditemoperationresults.go @@ -0,0 +1,116 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ProtectedItemOperationResultsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type ProtectedItemOperationResultsClient struct { + BaseClient +} + +// NewProtectedItemOperationResultsClient creates an instance of the ProtectedItemOperationResultsClient client. +func NewProtectedItemOperationResultsClient(subscriptionID string) ProtectedItemOperationResultsClient { + return NewProtectedItemOperationResultsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewProtectedItemOperationResultsClientWithBaseURI creates an instance of the ProtectedItemOperationResultsClient +// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI +// (sovereign clouds, Azure stack). +func NewProtectedItemOperationResultsClientWithBaseURI(baseURI string, subscriptionID string) ProtectedItemOperationResultsClient { + return ProtectedItemOperationResultsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get fetches the result of any operation on the backup item. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// fabricName - fabric name associated with the backup item. +// containerName - container name associated with the backup item. +// protectedItemName - backup item name whose details are to be fetched. +// operationID - operationID which represents the operation whose result needs to be fetched. +func (client ProtectedItemOperationResultsClient) Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, operationID string) (result ProtectedItemResource, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectedItemOperationResultsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, vaultName, resourceGroupName, fabricName, containerName, protectedItemName, operationID) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectedItemOperationResultsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.ProtectedItemOperationResultsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectedItemOperationResultsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client ProtectedItemOperationResultsClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, operationID string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "containerName": autorest.Encode("path", containerName), + "fabricName": autorest.Encode("path", fabricName), + "operationId": autorest.Encode("path", operationID), + "protectedItemName": autorest.Encode("path", protectedItemName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/operationResults/{operationId}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client ProtectedItemOperationResultsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ProtectedItemOperationResultsClient) GetResponder(resp *http.Response) (result ProtectedItemResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/protecteditemoperationstatuses.go b/services/recoveryservices/mgmt/2021-01-01/backup/protecteditemoperationstatuses.go new file mode 100644 index 000000000000..c5919725df8d --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/protecteditemoperationstatuses.go @@ -0,0 +1,119 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ProtectedItemOperationStatusesClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type ProtectedItemOperationStatusesClient struct { + BaseClient +} + +// NewProtectedItemOperationStatusesClient creates an instance of the ProtectedItemOperationStatusesClient client. +func NewProtectedItemOperationStatusesClient(subscriptionID string) ProtectedItemOperationStatusesClient { + return NewProtectedItemOperationStatusesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewProtectedItemOperationStatusesClientWithBaseURI creates an instance of the ProtectedItemOperationStatusesClient +// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI +// (sovereign clouds, Azure stack). +func NewProtectedItemOperationStatusesClientWithBaseURI(baseURI string, subscriptionID string) ProtectedItemOperationStatusesClient { + return ProtectedItemOperationStatusesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get fetches the status of an operation such as triggering a backup, restore. The status can be in progress, +// completed +// or failed. You can refer to the OperationStatus enum for all the possible states of the operation. Some operations +// create jobs. This method returns the list of jobs associated with the operation. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// fabricName - fabric name associated with the backup item. +// containerName - container name associated with the backup item. +// protectedItemName - backup item name whose details are to be fetched. +// operationID - operationID represents the operation whose status needs to be fetched. +func (client ProtectedItemOperationStatusesClient) Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, operationID string) (result OperationStatus, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectedItemOperationStatusesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, vaultName, resourceGroupName, fabricName, containerName, protectedItemName, operationID) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectedItemOperationStatusesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.ProtectedItemOperationStatusesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectedItemOperationStatusesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client ProtectedItemOperationStatusesClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, operationID string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "containerName": autorest.Encode("path", containerName), + "fabricName": autorest.Encode("path", fabricName), + "operationId": autorest.Encode("path", operationID), + "protectedItemName": autorest.Encode("path", protectedItemName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/operationsStatus/{operationId}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client ProtectedItemOperationStatusesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ProtectedItemOperationStatusesClient) GetResponder(resp *http.Response) (result OperationStatus, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/protecteditems.go b/services/recoveryservices/mgmt/2021-01-01/backup/protecteditems.go new file mode 100644 index 000000000000..32a26bd1c79f --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/protecteditems.go @@ -0,0 +1,289 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ProtectedItemsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type ProtectedItemsClient struct { + BaseClient +} + +// NewProtectedItemsClient creates an instance of the ProtectedItemsClient client. +func NewProtectedItemsClient(subscriptionID string) ProtectedItemsClient { + return NewProtectedItemsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewProtectedItemsClientWithBaseURI creates an instance of the ProtectedItemsClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewProtectedItemsClientWithBaseURI(baseURI string, subscriptionID string) ProtectedItemsClient { + return ProtectedItemsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate enables backup of an item or to modifies the backup policy information of an already backed up item. +// This is an +// asynchronous operation. To know the status of the operation, call the GetItemOperationResult API. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// fabricName - fabric name associated with the backup item. +// containerName - container name associated with the backup item. +// protectedItemName - item name to be backed up. +// parameters - resource backed up item +func (client ProtectedItemsClient) CreateOrUpdate(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, parameters ProtectedItemResource) (result ProtectedItemResource, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectedItemsClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, vaultName, resourceGroupName, fabricName, containerName, protectedItemName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectedItemsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + resp, err := client.CreateOrUpdateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.ProtectedItemsClient", "CreateOrUpdate", resp, "Failure sending request") + return + } + + result, err = client.CreateOrUpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectedItemsClient", "CreateOrUpdate", resp, "Failure responding to request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client ProtectedItemsClient) CreateOrUpdatePreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, parameters ProtectedItemResource) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "containerName": autorest.Encode("path", containerName), + "fabricName": autorest.Encode("path", fabricName), + "protectedItemName": autorest.Encode("path", protectedItemName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client ProtectedItemsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client ProtectedItemsClient) CreateOrUpdateResponder(resp *http.Response) (result ProtectedItemResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete used to disable backup of an item within a container. This is an asynchronous operation. To know the status +// of the +// request, call the GetItemOperationResult API. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// fabricName - fabric name associated with the backed up item. +// containerName - container name associated with the backed up item. +// protectedItemName - backed up item to be deleted. +func (client ProtectedItemsClient) Delete(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectedItemsClient.Delete") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, vaultName, resourceGroupName, fabricName, containerName, protectedItemName) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectedItemsClient", "Delete", nil, "Failure preparing request") + return + } + + resp, err := client.DeleteSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "backup.ProtectedItemsClient", "Delete", resp, "Failure sending request") + return + } + + result, err = client.DeleteResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectedItemsClient", "Delete", resp, "Failure responding to request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client ProtectedItemsClient) DeletePreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "containerName": autorest.Encode("path", containerName), + "fabricName": autorest.Encode("path", fabricName), + "protectedItemName": autorest.Encode("path", protectedItemName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client ProtectedItemsClient) DeleteSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client ProtectedItemsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get provides the details of the backed up item. This is an asynchronous operation. To know the status of the +// operation, +// call the GetItemOperationResult API. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// fabricName - fabric name associated with the backed up item. +// containerName - container name associated with the backed up item. +// protectedItemName - backed up item name whose details are to be fetched. +// filter - oData filter options. +func (client ProtectedItemsClient) Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, filter string) (result ProtectedItemResource, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectedItemsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, vaultName, resourceGroupName, fabricName, containerName, protectedItemName, filter) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectedItemsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.ProtectedItemsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectedItemsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client ProtectedItemsClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, filter string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "containerName": autorest.Encode("path", containerName), + "fabricName": autorest.Encode("path", fabricName), + "protectedItemName": autorest.Encode("path", protectedItemName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(filter) > 0 { + queryParameters["$filter"] = autorest.Encode("query", filter) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client ProtectedItemsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ProtectedItemsClient) GetResponder(resp *http.Response) (result ProtectedItemResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/protecteditemscrr.go b/services/recoveryservices/mgmt/2021-01-01/backup/protecteditemscrr.go new file mode 100644 index 000000000000..74fb6bf3b709 --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/protecteditemscrr.go @@ -0,0 +1,158 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ProtectedItemsCrrClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type ProtectedItemsCrrClient struct { + BaseClient +} + +// NewProtectedItemsCrrClient creates an instance of the ProtectedItemsCrrClient client. +func NewProtectedItemsCrrClient(subscriptionID string) ProtectedItemsCrrClient { + return NewProtectedItemsCrrClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewProtectedItemsCrrClientWithBaseURI creates an instance of the ProtectedItemsCrrClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewProtectedItemsCrrClientWithBaseURI(baseURI string, subscriptionID string) ProtectedItemsCrrClient { + return ProtectedItemsCrrClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List provides a pageable list of all items that are backed up within a vault. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// filter - oData filter options. +// skipToken - skipToken Filter. +func (client ProtectedItemsCrrClient) List(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result ProtectedItemResourceListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectedItemsCrrClient.List") + defer func() { + sc := -1 + if result.pirl.Response.Response != nil { + sc = result.pirl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, vaultName, resourceGroupName, filter, skipToken) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectedItemsCrrClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.pirl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.ProtectedItemsCrrClient", "List", resp, "Failure sending request") + return + } + + result.pirl, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectedItemsCrrClient", "List", resp, "Failure responding to request") + return + } + if result.pirl.hasNextLink() && result.pirl.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client ProtectedItemsCrrClient) ListPreparer(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2018-12-20" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(filter) > 0 { + queryParameters["$filter"] = autorest.Encode("query", filter) + } + if len(skipToken) > 0 { + queryParameters["$skipToken"] = autorest.Encode("query", skipToken) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectedItems/", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client ProtectedItemsCrrClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client ProtectedItemsCrrClient) ListResponder(resp *http.Response) (result ProtectedItemResourceList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client ProtectedItemsCrrClient) listNextResults(ctx context.Context, lastResults ProtectedItemResourceList) (result ProtectedItemResourceList, err error) { + req, err := lastResults.protectedItemResourceListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "backup.ProtectedItemsCrrClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "backup.ProtectedItemsCrrClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectedItemsCrrClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client ProtectedItemsCrrClient) ListComplete(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result ProtectedItemResourceListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectedItemsCrrClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, vaultName, resourceGroupName, filter, skipToken) + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/protecteditemsgroup.go b/services/recoveryservices/mgmt/2021-01-01/backup/protecteditemsgroup.go new file mode 100644 index 000000000000..0cf0d5bc2582 --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/protecteditemsgroup.go @@ -0,0 +1,158 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ProtectedItemsGroupClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type ProtectedItemsGroupClient struct { + BaseClient +} + +// NewProtectedItemsGroupClient creates an instance of the ProtectedItemsGroupClient client. +func NewProtectedItemsGroupClient(subscriptionID string) ProtectedItemsGroupClient { + return NewProtectedItemsGroupClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewProtectedItemsGroupClientWithBaseURI creates an instance of the ProtectedItemsGroupClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewProtectedItemsGroupClientWithBaseURI(baseURI string, subscriptionID string) ProtectedItemsGroupClient { + return ProtectedItemsGroupClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List provides a pageable list of all items that are backed up within a vault. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// filter - oData filter options. +// skipToken - skipToken Filter. +func (client ProtectedItemsGroupClient) List(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result ProtectedItemResourceListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectedItemsGroupClient.List") + defer func() { + sc := -1 + if result.pirl.Response.Response != nil { + sc = result.pirl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, vaultName, resourceGroupName, filter, skipToken) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectedItemsGroupClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.pirl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.ProtectedItemsGroupClient", "List", resp, "Failure sending request") + return + } + + result.pirl, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectedItemsGroupClient", "List", resp, "Failure responding to request") + return + } + if result.pirl.hasNextLink() && result.pirl.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client ProtectedItemsGroupClient) ListPreparer(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(filter) > 0 { + queryParameters["$filter"] = autorest.Encode("query", filter) + } + if len(skipToken) > 0 { + queryParameters["$skipToken"] = autorest.Encode("query", skipToken) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectedItems", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client ProtectedItemsGroupClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client ProtectedItemsGroupClient) ListResponder(resp *http.Response) (result ProtectedItemResourceList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client ProtectedItemsGroupClient) listNextResults(ctx context.Context, lastResults ProtectedItemResourceList) (result ProtectedItemResourceList, err error) { + req, err := lastResults.protectedItemResourceListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "backup.ProtectedItemsGroupClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "backup.ProtectedItemsGroupClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectedItemsGroupClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client ProtectedItemsGroupClient) ListComplete(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result ProtectedItemResourceListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectedItemsGroupClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, vaultName, resourceGroupName, filter, skipToken) + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/protectioncontaineroperationresults.go b/services/recoveryservices/mgmt/2021-01-01/backup/protectioncontaineroperationresults.go new file mode 100644 index 000000000000..aa8abe3b757e --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/protectioncontaineroperationresults.go @@ -0,0 +1,115 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ProtectionContainerOperationResultsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type ProtectionContainerOperationResultsClient struct { + BaseClient +} + +// NewProtectionContainerOperationResultsClient creates an instance of the ProtectionContainerOperationResultsClient +// client. +func NewProtectionContainerOperationResultsClient(subscriptionID string) ProtectionContainerOperationResultsClient { + return NewProtectionContainerOperationResultsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewProtectionContainerOperationResultsClientWithBaseURI creates an instance of the +// ProtectionContainerOperationResultsClient client using a custom endpoint. Use this when interacting with an Azure +// cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewProtectionContainerOperationResultsClientWithBaseURI(baseURI string, subscriptionID string) ProtectionContainerOperationResultsClient { + return ProtectionContainerOperationResultsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get fetches the result of any operation on the container. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// fabricName - fabric name associated with the container. +// containerName - container name whose information should be fetched. +// operationID - operation ID which represents the operation whose result needs to be fetched. +func (client ProtectionContainerOperationResultsClient) Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, operationID string) (result ProtectionContainerResource, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectionContainerOperationResultsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, vaultName, resourceGroupName, fabricName, containerName, operationID) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectionContainerOperationResultsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.ProtectionContainerOperationResultsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectionContainerOperationResultsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client ProtectionContainerOperationResultsClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, operationID string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "containerName": autorest.Encode("path", containerName), + "fabricName": autorest.Encode("path", fabricName), + "operationId": autorest.Encode("path", operationID), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/operationResults/{operationId}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client ProtectionContainerOperationResultsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ProtectionContainerOperationResultsClient) GetResponder(resp *http.Response) (result ProtectionContainerResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/protectioncontainerrefreshoperationresults.go b/services/recoveryservices/mgmt/2021-01-01/backup/protectioncontainerrefreshoperationresults.go new file mode 100644 index 000000000000..23a52302c9c7 --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/protectioncontainerrefreshoperationresults.go @@ -0,0 +1,112 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ProtectionContainerRefreshOperationResultsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type ProtectionContainerRefreshOperationResultsClient struct { + BaseClient +} + +// NewProtectionContainerRefreshOperationResultsClient creates an instance of the +// ProtectionContainerRefreshOperationResultsClient client. +func NewProtectionContainerRefreshOperationResultsClient(subscriptionID string) ProtectionContainerRefreshOperationResultsClient { + return NewProtectionContainerRefreshOperationResultsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewProtectionContainerRefreshOperationResultsClientWithBaseURI creates an instance of the +// ProtectionContainerRefreshOperationResultsClient client using a custom endpoint. Use this when interacting with an +// Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewProtectionContainerRefreshOperationResultsClientWithBaseURI(baseURI string, subscriptionID string) ProtectionContainerRefreshOperationResultsClient { + return ProtectionContainerRefreshOperationResultsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get provides the result of the refresh operation triggered by the BeginRefresh operation. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// fabricName - fabric name associated with the container. +// operationID - operation ID associated with the operation whose result needs to be fetched. +func (client ProtectionContainerRefreshOperationResultsClient) Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, operationID string) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectionContainerRefreshOperationResultsClient.Get") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, vaultName, resourceGroupName, fabricName, operationID) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectionContainerRefreshOperationResultsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "backup.ProtectionContainerRefreshOperationResultsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectionContainerRefreshOperationResultsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client ProtectionContainerRefreshOperationResultsClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, operationID string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "fabricName": autorest.Encode("path", fabricName), + "operationId": autorest.Encode("path", operationID), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/operationResults/{operationId}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client ProtectionContainerRefreshOperationResultsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ProtectionContainerRefreshOperationResultsClient) GetResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/protectioncontainers.go b/services/recoveryservices/mgmt/2021-01-01/backup/protectioncontainers.go new file mode 100644 index 000000000000..44d01b2ea157 --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/protectioncontainers.go @@ -0,0 +1,444 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ProtectionContainersClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type ProtectionContainersClient struct { + BaseClient +} + +// NewProtectionContainersClient creates an instance of the ProtectionContainersClient client. +func NewProtectionContainersClient(subscriptionID string) ProtectionContainersClient { + return NewProtectionContainersClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewProtectionContainersClientWithBaseURI creates an instance of the ProtectionContainersClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewProtectionContainersClientWithBaseURI(baseURI string, subscriptionID string) ProtectionContainersClient { + return ProtectionContainersClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get gets details of the specific container registered to your Recovery Services Vault. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// fabricName - name of the fabric where the container belongs. +// containerName - name of the container whose details need to be fetched. +func (client ProtectionContainersClient) Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string) (result ProtectionContainerResource, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectionContainersClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, vaultName, resourceGroupName, fabricName, containerName) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectionContainersClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.ProtectionContainersClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectionContainersClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client ProtectionContainersClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "containerName": autorest.Encode("path", containerName), + "fabricName": autorest.Encode("path", fabricName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client ProtectionContainersClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ProtectionContainersClient) GetResponder(resp *http.Response) (result ProtectionContainerResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Inquire this is an async operation and the results should be tracked using location header or Azure-async-url. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// fabricName - fabric Name associated with the container. +// containerName - name of the container in which inquiry needs to be triggered. +// filter - oData filter options. +func (client ProtectionContainersClient) Inquire(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, filter string) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectionContainersClient.Inquire") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.InquirePreparer(ctx, vaultName, resourceGroupName, fabricName, containerName, filter) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectionContainersClient", "Inquire", nil, "Failure preparing request") + return + } + + resp, err := client.InquireSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "backup.ProtectionContainersClient", "Inquire", resp, "Failure sending request") + return + } + + result, err = client.InquireResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectionContainersClient", "Inquire", resp, "Failure responding to request") + return + } + + return +} + +// InquirePreparer prepares the Inquire request. +func (client ProtectionContainersClient) InquirePreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, filter string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "containerName": autorest.Encode("path", containerName), + "fabricName": autorest.Encode("path", fabricName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(filter) > 0 { + queryParameters["$filter"] = autorest.Encode("query", filter) + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/inquire", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// InquireSender sends the Inquire request. The method will close the +// http.Response Body if it receives an error. +func (client ProtectionContainersClient) InquireSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// InquireResponder handles the response to the Inquire request. The method always +// closes the http.Response Body. +func (client ProtectionContainersClient) InquireResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} + +// Refresh discovers all the containers in the subscription that can be backed up to Recovery Services Vault. This is +// an +// asynchronous operation. To know the status of the operation, call GetRefreshOperationResult API. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// fabricName - fabric name associated the container. +// filter - oData filter options. +func (client ProtectionContainersClient) Refresh(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, filter string) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectionContainersClient.Refresh") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.RefreshPreparer(ctx, vaultName, resourceGroupName, fabricName, filter) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectionContainersClient", "Refresh", nil, "Failure preparing request") + return + } + + resp, err := client.RefreshSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "backup.ProtectionContainersClient", "Refresh", resp, "Failure sending request") + return + } + + result, err = client.RefreshResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectionContainersClient", "Refresh", resp, "Failure responding to request") + return + } + + return +} + +// RefreshPreparer prepares the Refresh request. +func (client ProtectionContainersClient) RefreshPreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, filter string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "fabricName": autorest.Encode("path", fabricName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(filter) > 0 { + queryParameters["$filter"] = autorest.Encode("query", filter) + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/refreshContainers", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// RefreshSender sends the Refresh request. The method will close the +// http.Response Body if it receives an error. +func (client ProtectionContainersClient) RefreshSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// RefreshResponder handles the response to the Refresh request. The method always +// closes the http.Response Body. +func (client ProtectionContainersClient) RefreshResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} + +// Register registers the container with Recovery Services vault. +// This is an asynchronous operation. To track the operation status, use location header to call get latest status of +// the operation. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// fabricName - fabric name associated with the container. +// containerName - name of the container to be registered. +// parameters - request body for operation +func (client ProtectionContainersClient) Register(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, parameters ProtectionContainerResource) (result ProtectionContainerResource, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectionContainersClient.Register") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.RegisterPreparer(ctx, vaultName, resourceGroupName, fabricName, containerName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectionContainersClient", "Register", nil, "Failure preparing request") + return + } + + resp, err := client.RegisterSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.ProtectionContainersClient", "Register", resp, "Failure sending request") + return + } + + result, err = client.RegisterResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectionContainersClient", "Register", resp, "Failure responding to request") + return + } + + return +} + +// RegisterPreparer prepares the Register request. +func (client ProtectionContainersClient) RegisterPreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, parameters ProtectionContainerResource) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "containerName": autorest.Encode("path", containerName), + "fabricName": autorest.Encode("path", fabricName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// RegisterSender sends the Register request. The method will close the +// http.Response Body if it receives an error. +func (client ProtectionContainersClient) RegisterSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// RegisterResponder handles the response to the Register request. The method always +// closes the http.Response Body. +func (client ProtectionContainersClient) RegisterResponder(resp *http.Response) (result ProtectionContainerResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Unregister unregisters the given container from your Recovery Services Vault. This is an asynchronous operation. To +// determine +// whether the backend service has finished processing the request, call Get Container Operation Result API. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// fabricName - name of the fabric where the container belongs. +// containerName - name of the container which needs to be unregistered from the Recovery Services Vault. +func (client ProtectionContainersClient) Unregister(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectionContainersClient.Unregister") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UnregisterPreparer(ctx, vaultName, resourceGroupName, fabricName, containerName) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectionContainersClient", "Unregister", nil, "Failure preparing request") + return + } + + resp, err := client.UnregisterSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "backup.ProtectionContainersClient", "Unregister", resp, "Failure sending request") + return + } + + result, err = client.UnregisterResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectionContainersClient", "Unregister", resp, "Failure responding to request") + return + } + + return +} + +// UnregisterPreparer prepares the Unregister request. +func (client ProtectionContainersClient) UnregisterPreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "containerName": autorest.Encode("path", containerName), + "fabricName": autorest.Encode("path", fabricName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UnregisterSender sends the Unregister request. The method will close the +// http.Response Body if it receives an error. +func (client ProtectionContainersClient) UnregisterSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UnregisterResponder handles the response to the Unregister request. The method always +// closes the http.Response Body. +func (client ProtectionContainersClient) UnregisterResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/protectioncontainersgroup.go b/services/recoveryservices/mgmt/2021-01-01/backup/protectioncontainersgroup.go new file mode 100644 index 000000000000..102153827bfc --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/protectioncontainersgroup.go @@ -0,0 +1,154 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ProtectionContainersGroupClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type ProtectionContainersGroupClient struct { + BaseClient +} + +// NewProtectionContainersGroupClient creates an instance of the ProtectionContainersGroupClient client. +func NewProtectionContainersGroupClient(subscriptionID string) ProtectionContainersGroupClient { + return NewProtectionContainersGroupClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewProtectionContainersGroupClientWithBaseURI creates an instance of the ProtectionContainersGroupClient client +// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign +// clouds, Azure stack). +func NewProtectionContainersGroupClientWithBaseURI(baseURI string, subscriptionID string) ProtectionContainersGroupClient { + return ProtectionContainersGroupClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List lists the containers registered to Recovery Services Vault. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// filter - oData filter options. +func (client ProtectionContainersGroupClient) List(ctx context.Context, vaultName string, resourceGroupName string, filter string) (result ProtectionContainerResourceListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectionContainersGroupClient.List") + defer func() { + sc := -1 + if result.pcrl.Response.Response != nil { + sc = result.pcrl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, vaultName, resourceGroupName, filter) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectionContainersGroupClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.pcrl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.ProtectionContainersGroupClient", "List", resp, "Failure sending request") + return + } + + result.pcrl, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectionContainersGroupClient", "List", resp, "Failure responding to request") + return + } + if result.pcrl.hasNextLink() && result.pcrl.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client ProtectionContainersGroupClient) ListPreparer(ctx context.Context, vaultName string, resourceGroupName string, filter string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(filter) > 0 { + queryParameters["$filter"] = autorest.Encode("query", filter) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectionContainers", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client ProtectionContainersGroupClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client ProtectionContainersGroupClient) ListResponder(resp *http.Response) (result ProtectionContainerResourceList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client ProtectionContainersGroupClient) listNextResults(ctx context.Context, lastResults ProtectionContainerResourceList) (result ProtectionContainerResourceList, err error) { + req, err := lastResults.protectionContainerResourceListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "backup.ProtectionContainersGroupClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "backup.ProtectionContainersGroupClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectionContainersGroupClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client ProtectionContainersGroupClient) ListComplete(ctx context.Context, vaultName string, resourceGroupName string, filter string) (result ProtectionContainerResourceListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectionContainersGroupClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, vaultName, resourceGroupName, filter) + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/protectionintent.go b/services/recoveryservices/mgmt/2021-01-01/backup/protectionintent.go new file mode 100644 index 000000000000..0327017ed0bb --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/protectionintent.go @@ -0,0 +1,353 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ProtectionIntentClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type ProtectionIntentClient struct { + BaseClient +} + +// NewProtectionIntentClient creates an instance of the ProtectionIntentClient client. +func NewProtectionIntentClient(subscriptionID string) ProtectionIntentClient { + return NewProtectionIntentClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewProtectionIntentClientWithBaseURI creates an instance of the ProtectionIntentClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewProtectionIntentClientWithBaseURI(baseURI string, subscriptionID string) ProtectionIntentClient { + return ProtectionIntentClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate create Intent for Enabling backup of an item. This is a synchronous operation. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// fabricName - fabric name associated with the backup item. +// intentObjectName - intent object name. +// parameters - resource backed up item +func (client ProtectionIntentClient) CreateOrUpdate(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, intentObjectName string, parameters ProtectionIntentResource) (result ProtectionIntentResource, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectionIntentClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, vaultName, resourceGroupName, fabricName, intentObjectName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectionIntentClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + resp, err := client.CreateOrUpdateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.ProtectionIntentClient", "CreateOrUpdate", resp, "Failure sending request") + return + } + + result, err = client.CreateOrUpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectionIntentClient", "CreateOrUpdate", resp, "Failure responding to request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client ProtectionIntentClient) CreateOrUpdatePreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, intentObjectName string, parameters ProtectionIntentResource) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "fabricName": autorest.Encode("path", fabricName), + "intentObjectName": autorest.Encode("path", intentObjectName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2017-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/backupProtectionIntent/{intentObjectName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client ProtectionIntentClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client ProtectionIntentClient) CreateOrUpdateResponder(resp *http.Response) (result ProtectionIntentResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete used to remove intent from an item +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// fabricName - fabric name associated with the intent. +// intentObjectName - intent to be deleted. +func (client ProtectionIntentClient) Delete(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, intentObjectName string) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectionIntentClient.Delete") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, vaultName, resourceGroupName, fabricName, intentObjectName) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectionIntentClient", "Delete", nil, "Failure preparing request") + return + } + + resp, err := client.DeleteSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "backup.ProtectionIntentClient", "Delete", resp, "Failure sending request") + return + } + + result, err = client.DeleteResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectionIntentClient", "Delete", resp, "Failure responding to request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client ProtectionIntentClient) DeletePreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, intentObjectName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "fabricName": autorest.Encode("path", fabricName), + "intentObjectName": autorest.Encode("path", intentObjectName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2017-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/backupProtectionIntent/{intentObjectName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client ProtectionIntentClient) DeleteSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client ProtectionIntentClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get provides the details of the protection intent up item. This is an asynchronous operation. To know the status of +// the operation, +// call the GetItemOperationResult API. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// fabricName - fabric name associated with the backed up item. +// intentObjectName - backed up item name whose details are to be fetched. +func (client ProtectionIntentClient) Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, intentObjectName string) (result ProtectionIntentResource, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectionIntentClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, vaultName, resourceGroupName, fabricName, intentObjectName) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectionIntentClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.ProtectionIntentClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectionIntentClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client ProtectionIntentClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, intentObjectName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "fabricName": autorest.Encode("path", fabricName), + "intentObjectName": autorest.Encode("path", intentObjectName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2017-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/backupProtectionIntent/{intentObjectName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client ProtectionIntentClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ProtectionIntentClient) GetResponder(resp *http.Response) (result ProtectionIntentResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Validate sends the validate request. +// Parameters: +// azureRegion - azure region to hit Api +// parameters - enable backup validation request on Virtual Machine +func (client ProtectionIntentClient) Validate(ctx context.Context, azureRegion string, parameters PreValidateEnableBackupRequest) (result PreValidateEnableBackupResponse, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectionIntentClient.Validate") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ValidatePreparer(ctx, azureRegion, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectionIntentClient", "Validate", nil, "Failure preparing request") + return + } + + resp, err := client.ValidateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.ProtectionIntentClient", "Validate", resp, "Failure sending request") + return + } + + result, err = client.ValidateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectionIntentClient", "Validate", resp, "Failure responding to request") + return + } + + return +} + +// ValidatePreparer prepares the Validate request. +func (client ProtectionIntentClient) ValidatePreparer(ctx context.Context, azureRegion string, parameters PreValidateEnableBackupRequest) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "azureRegion": autorest.Encode("path", azureRegion), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2017-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/Subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupPreValidateProtection", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ValidateSender sends the Validate request. The method will close the +// http.Response Body if it receives an error. +func (client ProtectionIntentClient) ValidateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ValidateResponder handles the response to the Validate request. The method always +// closes the http.Response Body. +func (client ProtectionIntentClient) ValidateResponder(resp *http.Response) (result PreValidateEnableBackupResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/protectionintentgroup.go b/services/recoveryservices/mgmt/2021-01-01/backup/protectionintentgroup.go new file mode 100644 index 000000000000..a7975f8baaec --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/protectionintentgroup.go @@ -0,0 +1,158 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ProtectionIntentGroupClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type ProtectionIntentGroupClient struct { + BaseClient +} + +// NewProtectionIntentGroupClient creates an instance of the ProtectionIntentGroupClient client. +func NewProtectionIntentGroupClient(subscriptionID string) ProtectionIntentGroupClient { + return NewProtectionIntentGroupClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewProtectionIntentGroupClientWithBaseURI creates an instance of the ProtectionIntentGroupClient client using a +// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, +// Azure stack). +func NewProtectionIntentGroupClientWithBaseURI(baseURI string, subscriptionID string) ProtectionIntentGroupClient { + return ProtectionIntentGroupClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List provides a pageable list of all intents that are present within a vault. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// filter - oData filter options. +// skipToken - skipToken Filter. +func (client ProtectionIntentGroupClient) List(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result ProtectionIntentResourceListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectionIntentGroupClient.List") + defer func() { + sc := -1 + if result.pirl.Response.Response != nil { + sc = result.pirl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, vaultName, resourceGroupName, filter, skipToken) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectionIntentGroupClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.pirl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.ProtectionIntentGroupClient", "List", resp, "Failure sending request") + return + } + + result.pirl, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectionIntentGroupClient", "List", resp, "Failure responding to request") + return + } + if result.pirl.hasNextLink() && result.pirl.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client ProtectionIntentGroupClient) ListPreparer(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2017-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(filter) > 0 { + queryParameters["$filter"] = autorest.Encode("query", filter) + } + if len(skipToken) > 0 { + queryParameters["$skipToken"] = autorest.Encode("query", skipToken) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectionIntents", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client ProtectionIntentGroupClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client ProtectionIntentGroupClient) ListResponder(resp *http.Response) (result ProtectionIntentResourceList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client ProtectionIntentGroupClient) listNextResults(ctx context.Context, lastResults ProtectionIntentResourceList) (result ProtectionIntentResourceList, err error) { + req, err := lastResults.protectionIntentResourceListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "backup.ProtectionIntentGroupClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "backup.ProtectionIntentGroupClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectionIntentGroupClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client ProtectionIntentGroupClient) ListComplete(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result ProtectionIntentResourceListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectionIntentGroupClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, vaultName, resourceGroupName, filter, skipToken) + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/protectionpolicies.go b/services/recoveryservices/mgmt/2021-01-01/backup/protectionpolicies.go new file mode 100644 index 000000000000..cef3fa28d38a --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/protectionpolicies.go @@ -0,0 +1,275 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ProtectionPoliciesClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type ProtectionPoliciesClient struct { + BaseClient +} + +// NewProtectionPoliciesClient creates an instance of the ProtectionPoliciesClient client. +func NewProtectionPoliciesClient(subscriptionID string) ProtectionPoliciesClient { + return NewProtectionPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewProtectionPoliciesClientWithBaseURI creates an instance of the ProtectionPoliciesClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewProtectionPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ProtectionPoliciesClient { + return ProtectionPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or modifies a backup policy. This is an asynchronous operation. Status of the operation can +// be fetched +// using GetPolicyOperationResult API. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// policyName - backup policy to be created. +// parameters - resource backup policy +func (client ProtectionPoliciesClient) CreateOrUpdate(ctx context.Context, vaultName string, resourceGroupName string, policyName string, parameters ProtectionPolicyResource) (result ProtectionPolicyResource, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectionPoliciesClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, vaultName, resourceGroupName, policyName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectionPoliciesClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + resp, err := client.CreateOrUpdateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.ProtectionPoliciesClient", "CreateOrUpdate", resp, "Failure sending request") + return + } + + result, err = client.CreateOrUpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectionPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client ProtectionPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, vaultName string, resourceGroupName string, policyName string, parameters ProtectionPolicyResource) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "policyName": autorest.Encode("path", policyName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client ProtectionPoliciesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client ProtectionPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result ProtectionPolicyResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes specified backup policy from your Recovery Services Vault. This is an asynchronous operation. Status +// of the +// operation can be fetched using GetProtectionPolicyOperationResult API. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// policyName - backup policy to be deleted. +func (client ProtectionPoliciesClient) Delete(ctx context.Context, vaultName string, resourceGroupName string, policyName string) (result ProtectionPoliciesDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectionPoliciesClient.Delete") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, vaultName, resourceGroupName, policyName) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectionPoliciesClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectionPoliciesClient", "Delete", nil, "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client ProtectionPoliciesClient) DeletePreparer(ctx context.Context, vaultName string, resourceGroupName string, policyName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "policyName": autorest.Encode("path", policyName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client ProtectionPoliciesClient) DeleteSender(req *http.Request) (future ProtectionPoliciesDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client ProtectionPoliciesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get provides the details of the backup policies associated to Recovery Services Vault. This is an asynchronous +// operation. Status of the operation can be fetched using GetPolicyOperationResult API. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// policyName - backup policy information to be fetched. +func (client ProtectionPoliciesClient) Get(ctx context.Context, vaultName string, resourceGroupName string, policyName string) (result ProtectionPolicyResource, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectionPoliciesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, vaultName, resourceGroupName, policyName) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectionPoliciesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.ProtectionPoliciesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectionPoliciesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client ProtectionPoliciesClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, policyName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "policyName": autorest.Encode("path", policyName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client ProtectionPoliciesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ProtectionPoliciesClient) GetResponder(resp *http.Response) (result ProtectionPolicyResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/protectionpolicyoperationresults.go b/services/recoveryservices/mgmt/2021-01-01/backup/protectionpolicyoperationresults.go new file mode 100644 index 000000000000..8391775741b7 --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/protectionpolicyoperationresults.go @@ -0,0 +1,112 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ProtectionPolicyOperationResultsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type ProtectionPolicyOperationResultsClient struct { + BaseClient +} + +// NewProtectionPolicyOperationResultsClient creates an instance of the ProtectionPolicyOperationResultsClient client. +func NewProtectionPolicyOperationResultsClient(subscriptionID string) ProtectionPolicyOperationResultsClient { + return NewProtectionPolicyOperationResultsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewProtectionPolicyOperationResultsClientWithBaseURI creates an instance of the +// ProtectionPolicyOperationResultsClient client using a custom endpoint. Use this when interacting with an Azure +// cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewProtectionPolicyOperationResultsClientWithBaseURI(baseURI string, subscriptionID string) ProtectionPolicyOperationResultsClient { + return ProtectionPolicyOperationResultsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get provides the result of an operation. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// policyName - backup policy name whose operation's result needs to be fetched. +// operationID - operation ID which represents the operation whose result needs to be fetched. +func (client ProtectionPolicyOperationResultsClient) Get(ctx context.Context, vaultName string, resourceGroupName string, policyName string, operationID string) (result ProtectionPolicyResource, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectionPolicyOperationResultsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, vaultName, resourceGroupName, policyName, operationID) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectionPolicyOperationResultsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.ProtectionPolicyOperationResultsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectionPolicyOperationResultsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client ProtectionPolicyOperationResultsClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, policyName string, operationID string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "operationId": autorest.Encode("path", operationID), + "policyName": autorest.Encode("path", policyName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}/operationResults/{operationId}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client ProtectionPolicyOperationResultsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ProtectionPolicyOperationResultsClient) GetResponder(resp *http.Response) (result ProtectionPolicyResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/protectionpolicyoperationstatuses.go b/services/recoveryservices/mgmt/2021-01-01/backup/protectionpolicyoperationstatuses.go new file mode 100644 index 000000000000..98a254cc3fbc --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/protectionpolicyoperationstatuses.go @@ -0,0 +1,116 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ProtectionPolicyOperationStatusesClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type ProtectionPolicyOperationStatusesClient struct { + BaseClient +} + +// NewProtectionPolicyOperationStatusesClient creates an instance of the ProtectionPolicyOperationStatusesClient +// client. +func NewProtectionPolicyOperationStatusesClient(subscriptionID string) ProtectionPolicyOperationStatusesClient { + return NewProtectionPolicyOperationStatusesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewProtectionPolicyOperationStatusesClientWithBaseURI creates an instance of the +// ProtectionPolicyOperationStatusesClient client using a custom endpoint. Use this when interacting with an Azure +// cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewProtectionPolicyOperationStatusesClientWithBaseURI(baseURI string, subscriptionID string) ProtectionPolicyOperationStatusesClient { + return ProtectionPolicyOperationStatusesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get provides the status of the asynchronous operations like backup, restore. The status can be in progress, +// completed +// or failed. You can refer to the Operation Status enum for all the possible states of an operation. Some operations +// create jobs. This method returns the list of jobs associated with operation. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// policyName - backup policy name whose operation's status needs to be fetched. +// operationID - operation ID which represents an operation whose status needs to be fetched. +func (client ProtectionPolicyOperationStatusesClient) Get(ctx context.Context, vaultName string, resourceGroupName string, policyName string, operationID string) (result OperationStatus, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProtectionPolicyOperationStatusesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, vaultName, resourceGroupName, policyName, operationID) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectionPolicyOperationStatusesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.ProtectionPolicyOperationStatusesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ProtectionPolicyOperationStatusesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client ProtectionPolicyOperationStatusesClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, policyName string, operationID string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "operationId": autorest.Encode("path", operationID), + "policyName": autorest.Encode("path", policyName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}/operations/{operationId}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client ProtectionPolicyOperationStatusesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ProtectionPolicyOperationStatusesClient) GetResponder(resp *http.Response) (result OperationStatus, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/recoverypoints.go b/services/recoveryservices/mgmt/2021-01-01/backup/recoverypoints.go new file mode 100644 index 000000000000..3789c1b063e7 --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/recoverypoints.go @@ -0,0 +1,332 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// RecoveryPointsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type RecoveryPointsClient struct { + BaseClient +} + +// NewRecoveryPointsClient creates an instance of the RecoveryPointsClient client. +func NewRecoveryPointsClient(subscriptionID string) RecoveryPointsClient { + return NewRecoveryPointsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewRecoveryPointsClientWithBaseURI creates an instance of the RecoveryPointsClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewRecoveryPointsClientWithBaseURI(baseURI string, subscriptionID string) RecoveryPointsClient { + return RecoveryPointsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get provides the information of the backed up data identified using RecoveryPointID. This is an asynchronous +// operation. +// To know the status of the operation, call the GetProtectedItemOperationResult API. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// fabricName - fabric name associated with backed up item. +// containerName - container name associated with backed up item. +// protectedItemName - backed up item name whose backup data needs to be fetched. +// recoveryPointID - recoveryPointID represents the backed up data to be fetched. +func (client RecoveryPointsClient) Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, recoveryPointID string) (result RecoveryPointResource, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RecoveryPointsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, vaultName, resourceGroupName, fabricName, containerName, protectedItemName, recoveryPointID) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.RecoveryPointsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.RecoveryPointsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.RecoveryPointsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client RecoveryPointsClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, recoveryPointID string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "containerName": autorest.Encode("path", containerName), + "fabricName": autorest.Encode("path", fabricName), + "protectedItemName": autorest.Encode("path", protectedItemName), + "recoveryPointId": autorest.Encode("path", recoveryPointID), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client RecoveryPointsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client RecoveryPointsClient) GetResponder(resp *http.Response) (result RecoveryPointResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetAccessToken sends the get access token request. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// fabricName - fabric name associated with the container. +// containerName - name of the container. +// protectedItemName - name of the Protected Item. +// recoveryPointID - recovery Point Id +// parameters - get Access Token request +func (client RecoveryPointsClient) GetAccessToken(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, recoveryPointID string, parameters AADPropertiesResource) (result CrrAccessTokenResource, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RecoveryPointsClient.GetAccessToken") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetAccessTokenPreparer(ctx, vaultName, resourceGroupName, fabricName, containerName, protectedItemName, recoveryPointID, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.RecoveryPointsClient", "GetAccessToken", nil, "Failure preparing request") + return + } + + resp, err := client.GetAccessTokenSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.RecoveryPointsClient", "GetAccessToken", resp, "Failure sending request") + return + } + + result, err = client.GetAccessTokenResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.RecoveryPointsClient", "GetAccessToken", resp, "Failure responding to request") + return + } + + return +} + +// GetAccessTokenPreparer prepares the GetAccessToken request. +func (client RecoveryPointsClient) GetAccessTokenPreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, recoveryPointID string, parameters AADPropertiesResource) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "containerName": autorest.Encode("path", containerName), + "fabricName": autorest.Encode("path", fabricName), + "protectedItemName": autorest.Encode("path", protectedItemName), + "recoveryPointId": autorest.Encode("path", recoveryPointID), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2018-12-20" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}/accessToken", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetAccessTokenSender sends the GetAccessToken request. The method will close the +// http.Response Body if it receives an error. +func (client RecoveryPointsClient) GetAccessTokenSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetAccessTokenResponder handles the response to the GetAccessToken request. The method always +// closes the http.Response Body. +func (client RecoveryPointsClient) GetAccessTokenResponder(resp *http.Response) (result CrrAccessTokenResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusBadRequest), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List lists the backup copies for the backed up item. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// fabricName - fabric name associated with the backed up item. +// containerName - container name associated with the backed up item. +// protectedItemName - backed up item whose backup copies are to be fetched. +// filter - oData filter options. +func (client RecoveryPointsClient) List(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, filter string) (result RecoveryPointResourceListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RecoveryPointsClient.List") + defer func() { + sc := -1 + if result.rprl.Response.Response != nil { + sc = result.rprl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, vaultName, resourceGroupName, fabricName, containerName, protectedItemName, filter) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.RecoveryPointsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.rprl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.RecoveryPointsClient", "List", resp, "Failure sending request") + return + } + + result.rprl, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.RecoveryPointsClient", "List", resp, "Failure responding to request") + return + } + if result.rprl.hasNextLink() && result.rprl.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client RecoveryPointsClient) ListPreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, filter string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "containerName": autorest.Encode("path", containerName), + "fabricName": autorest.Encode("path", fabricName), + "protectedItemName": autorest.Encode("path", protectedItemName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(filter) > 0 { + queryParameters["$filter"] = autorest.Encode("query", filter) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client RecoveryPointsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client RecoveryPointsClient) ListResponder(resp *http.Response) (result RecoveryPointResourceList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client RecoveryPointsClient) listNextResults(ctx context.Context, lastResults RecoveryPointResourceList) (result RecoveryPointResourceList, err error) { + req, err := lastResults.recoveryPointResourceListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "backup.RecoveryPointsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "backup.RecoveryPointsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.RecoveryPointsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client RecoveryPointsClient) ListComplete(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, filter string) (result RecoveryPointResourceListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RecoveryPointsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, vaultName, resourceGroupName, fabricName, containerName, protectedItemName, filter) + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/recoverypointscrr.go b/services/recoveryservices/mgmt/2021-01-01/backup/recoverypointscrr.go new file mode 100644 index 000000000000..65031ef88a9e --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/recoverypointscrr.go @@ -0,0 +1,160 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// RecoveryPointsCrrClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type RecoveryPointsCrrClient struct { + BaseClient +} + +// NewRecoveryPointsCrrClient creates an instance of the RecoveryPointsCrrClient client. +func NewRecoveryPointsCrrClient(subscriptionID string) RecoveryPointsCrrClient { + return NewRecoveryPointsCrrClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewRecoveryPointsCrrClientWithBaseURI creates an instance of the RecoveryPointsCrrClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewRecoveryPointsCrrClientWithBaseURI(baseURI string, subscriptionID string) RecoveryPointsCrrClient { + return RecoveryPointsCrrClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List lists the backup copies for the backed up item. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// fabricName - fabric name associated with the backed up item. +// containerName - container name associated with the backed up item. +// protectedItemName - backed up item whose backup copies are to be fetched. +// filter - oData filter options. +func (client RecoveryPointsCrrClient) List(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, filter string) (result RecoveryPointResourceListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RecoveryPointsCrrClient.List") + defer func() { + sc := -1 + if result.rprl.Response.Response != nil { + sc = result.rprl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, vaultName, resourceGroupName, fabricName, containerName, protectedItemName, filter) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.RecoveryPointsCrrClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.rprl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.RecoveryPointsCrrClient", "List", resp, "Failure sending request") + return + } + + result.rprl, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.RecoveryPointsCrrClient", "List", resp, "Failure responding to request") + return + } + if result.rprl.hasNextLink() && result.rprl.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client RecoveryPointsCrrClient) ListPreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, filter string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "containerName": autorest.Encode("path", containerName), + "fabricName": autorest.Encode("path", fabricName), + "protectedItemName": autorest.Encode("path", protectedItemName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2018-12-20" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(filter) > 0 { + queryParameters["$filter"] = autorest.Encode("query", filter) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client RecoveryPointsCrrClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client RecoveryPointsCrrClient) ListResponder(resp *http.Response) (result RecoveryPointResourceList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client RecoveryPointsCrrClient) listNextResults(ctx context.Context, lastResults RecoveryPointResourceList) (result RecoveryPointResourceList, err error) { + req, err := lastResults.recoveryPointResourceListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "backup.RecoveryPointsCrrClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "backup.RecoveryPointsCrrClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.RecoveryPointsCrrClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client RecoveryPointsCrrClient) ListComplete(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, filter string) (result RecoveryPointResourceListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RecoveryPointsCrrClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, vaultName, resourceGroupName, fabricName, containerName, protectedItemName, filter) + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/recoverypointsrecommendedformove.go b/services/recoveryservices/mgmt/2021-01-01/backup/recoverypointsrecommendedformove.go new file mode 100644 index 000000000000..36aee7c4d99f --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/recoverypointsrecommendedformove.go @@ -0,0 +1,156 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// RecoveryPointsRecommendedForMoveClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type RecoveryPointsRecommendedForMoveClient struct { + BaseClient +} + +// NewRecoveryPointsRecommendedForMoveClient creates an instance of the RecoveryPointsRecommendedForMoveClient client. +func NewRecoveryPointsRecommendedForMoveClient(subscriptionID string) RecoveryPointsRecommendedForMoveClient { + return NewRecoveryPointsRecommendedForMoveClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewRecoveryPointsRecommendedForMoveClientWithBaseURI creates an instance of the +// RecoveryPointsRecommendedForMoveClient client using a custom endpoint. Use this when interacting with an Azure +// cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewRecoveryPointsRecommendedForMoveClientWithBaseURI(baseURI string, subscriptionID string) RecoveryPointsRecommendedForMoveClient { + return RecoveryPointsRecommendedForMoveClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List lists the recovery points recommended for move to another tier +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// parameters - list Recovery points Recommended for Move Request +func (client RecoveryPointsRecommendedForMoveClient) List(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, parameters ListRecoveryPointsRecommendedForMoveRequest) (result RecoveryPointResourceListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RecoveryPointsRecommendedForMoveClient.List") + defer func() { + sc := -1 + if result.rprl.Response.Response != nil { + sc = result.rprl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, vaultName, resourceGroupName, fabricName, containerName, protectedItemName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.RecoveryPointsRecommendedForMoveClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.rprl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.RecoveryPointsRecommendedForMoveClient", "List", resp, "Failure sending request") + return + } + + result.rprl, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.RecoveryPointsRecommendedForMoveClient", "List", resp, "Failure responding to request") + return + } + if result.rprl.hasNextLink() && result.rprl.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client RecoveryPointsRecommendedForMoveClient) ListPreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, parameters ListRecoveryPointsRecommendedForMoveRequest) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "containerName": autorest.Encode("path", containerName), + "fabricName": autorest.Encode("path", fabricName), + "protectedItemName": autorest.Encode("path", protectedItemName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPointsRecommendedForMove", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client RecoveryPointsRecommendedForMoveClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client RecoveryPointsRecommendedForMoveClient) ListResponder(resp *http.Response) (result RecoveryPointResourceList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client RecoveryPointsRecommendedForMoveClient) listNextResults(ctx context.Context, lastResults RecoveryPointResourceList) (result RecoveryPointResourceList, err error) { + req, err := lastResults.recoveryPointResourceListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "backup.RecoveryPointsRecommendedForMoveClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "backup.RecoveryPointsRecommendedForMoveClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.RecoveryPointsRecommendedForMoveClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client RecoveryPointsRecommendedForMoveClient) ListComplete(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, parameters ListRecoveryPointsRecommendedForMoveRequest) (result RecoveryPointResourceListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RecoveryPointsRecommendedForMoveClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, vaultName, resourceGroupName, fabricName, containerName, protectedItemName, parameters) + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/resourceencryptionconfigs.go b/services/recoveryservices/mgmt/2021-01-01/backup/resourceencryptionconfigs.go new file mode 100644 index 000000000000..fa8627095860 --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/resourceencryptionconfigs.go @@ -0,0 +1,186 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ResourceEncryptionConfigsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type ResourceEncryptionConfigsClient struct { + BaseClient +} + +// NewResourceEncryptionConfigsClient creates an instance of the ResourceEncryptionConfigsClient client. +func NewResourceEncryptionConfigsClient(subscriptionID string) ResourceEncryptionConfigsClient { + return NewResourceEncryptionConfigsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewResourceEncryptionConfigsClientWithBaseURI creates an instance of the ResourceEncryptionConfigsClient client +// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign +// clouds, Azure stack). +func NewResourceEncryptionConfigsClientWithBaseURI(baseURI string, subscriptionID string) ResourceEncryptionConfigsClient { + return ResourceEncryptionConfigsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get fetches Vault Encryption config. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +func (client ResourceEncryptionConfigsClient) Get(ctx context.Context, vaultName string, resourceGroupName string) (result ResourceEncryptionConfigResource, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ResourceEncryptionConfigsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, vaultName, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ResourceEncryptionConfigsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.ResourceEncryptionConfigsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ResourceEncryptionConfigsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client ResourceEncryptionConfigsClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupEncryptionConfigs/backupResourceEncryptionConfig", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client ResourceEncryptionConfigsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ResourceEncryptionConfigsClient) GetResponder(resp *http.Response) (result ResourceEncryptionConfigResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Update updates Vault encryption config. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// parameters - vault encryption input config request +func (client ResourceEncryptionConfigsClient) Update(ctx context.Context, vaultName string, resourceGroupName string, parameters ResourceEncryptionConfigResource) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ResourceEncryptionConfigsClient.Update") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdatePreparer(ctx, vaultName, resourceGroupName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ResourceEncryptionConfigsClient", "Update", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "backup.ResourceEncryptionConfigsClient", "Update", resp, "Failure sending request") + return + } + + result, err = client.UpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ResourceEncryptionConfigsClient", "Update", resp, "Failure responding to request") + return + } + + return +} + +// UpdatePreparer prepares the Update request. +func (client ResourceEncryptionConfigsClient) UpdatePreparer(ctx context.Context, vaultName string, resourceGroupName string, parameters ResourceEncryptionConfigResource) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupEncryptionConfigs/backupResourceEncryptionConfig", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateSender sends the Update request. The method will close the +// http.Response Body if it receives an error. +func (client ResourceEncryptionConfigsClient) UpdateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateResponder handles the response to the Update request. The method always +// closes the http.Response Body. +func (client ResourceEncryptionConfigsClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByClosing()) + result.Response = resp + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/resourcestorageconfigs.go b/services/recoveryservices/mgmt/2021-01-01/backup/resourcestorageconfigs.go new file mode 100644 index 000000000000..35cfa96543b8 --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/resourcestorageconfigs.go @@ -0,0 +1,265 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ResourceStorageConfigsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type ResourceStorageConfigsClient struct { + BaseClient +} + +// NewResourceStorageConfigsClient creates an instance of the ResourceStorageConfigsClient client. +func NewResourceStorageConfigsClient(subscriptionID string) ResourceStorageConfigsClient { + return NewResourceStorageConfigsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewResourceStorageConfigsClientWithBaseURI creates an instance of the ResourceStorageConfigsClient client using a +// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, +// Azure stack). +func NewResourceStorageConfigsClientWithBaseURI(baseURI string, subscriptionID string) ResourceStorageConfigsClient { + return ResourceStorageConfigsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get fetches resource storage config. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +func (client ResourceStorageConfigsClient) Get(ctx context.Context, vaultName string, resourceGroupName string) (result ResourceConfigResource, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ResourceStorageConfigsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, vaultName, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ResourceStorageConfigsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.ResourceStorageConfigsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ResourceStorageConfigsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client ResourceStorageConfigsClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2018-12-20" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client ResourceStorageConfigsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ResourceStorageConfigsClient) GetResponder(resp *http.Response) (result ResourceConfigResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Patch updates vault storage model type. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// parameters - vault storage config request +func (client ResourceStorageConfigsClient) Patch(ctx context.Context, vaultName string, resourceGroupName string, parameters ResourceConfigResource) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ResourceStorageConfigsClient.Patch") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.PatchPreparer(ctx, vaultName, resourceGroupName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ResourceStorageConfigsClient", "Patch", nil, "Failure preparing request") + return + } + + resp, err := client.PatchSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "backup.ResourceStorageConfigsClient", "Patch", resp, "Failure sending request") + return + } + + result, err = client.PatchResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ResourceStorageConfigsClient", "Patch", resp, "Failure responding to request") + return + } + + return +} + +// PatchPreparer prepares the Patch request. +func (client ResourceStorageConfigsClient) PatchPreparer(ctx context.Context, vaultName string, resourceGroupName string, parameters ResourceConfigResource) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2018-12-20" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// PatchSender sends the Patch request. The method will close the +// http.Response Body if it receives an error. +func (client ResourceStorageConfigsClient) PatchSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// PatchResponder handles the response to the Patch request. The method always +// closes the http.Response Body. +func (client ResourceStorageConfigsClient) PatchResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Update updates vault storage model type. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// parameters - vault storage config request +func (client ResourceStorageConfigsClient) Update(ctx context.Context, vaultName string, resourceGroupName string, parameters ResourceConfigResource) (result ResourceConfigResource, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ResourceStorageConfigsClient.Update") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdatePreparer(ctx, vaultName, resourceGroupName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ResourceStorageConfigsClient", "Update", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.ResourceStorageConfigsClient", "Update", resp, "Failure sending request") + return + } + + result, err = client.UpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ResourceStorageConfigsClient", "Update", resp, "Failure responding to request") + return + } + + return +} + +// UpdatePreparer prepares the Update request. +func (client ResourceStorageConfigsClient) UpdatePreparer(ctx context.Context, vaultName string, resourceGroupName string, parameters ResourceConfigResource) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2018-12-20" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateSender sends the Update request. The method will close the +// http.Response Body if it receives an error. +func (client ResourceStorageConfigsClient) UpdateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateResponder handles the response to the Update request. The method always +// closes the http.Response Body. +func (client ResourceStorageConfigsClient) UpdateResponder(resp *http.Response) (result ResourceConfigResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/resourcevaultconfigs.go b/services/recoveryservices/mgmt/2021-01-01/backup/resourcevaultconfigs.go new file mode 100644 index 000000000000..10f1477e3c30 --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/resourcevaultconfigs.go @@ -0,0 +1,266 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ResourceVaultConfigsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type ResourceVaultConfigsClient struct { + BaseClient +} + +// NewResourceVaultConfigsClient creates an instance of the ResourceVaultConfigsClient client. +func NewResourceVaultConfigsClient(subscriptionID string) ResourceVaultConfigsClient { + return NewResourceVaultConfigsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewResourceVaultConfigsClientWithBaseURI creates an instance of the ResourceVaultConfigsClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewResourceVaultConfigsClientWithBaseURI(baseURI string, subscriptionID string) ResourceVaultConfigsClient { + return ResourceVaultConfigsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get fetches resource vault config. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +func (client ResourceVaultConfigsClient) Get(ctx context.Context, vaultName string, resourceGroupName string) (result ResourceVaultConfigResource, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ResourceVaultConfigsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, vaultName, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ResourceVaultConfigsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.ResourceVaultConfigsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ResourceVaultConfigsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client ResourceVaultConfigsClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client ResourceVaultConfigsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ResourceVaultConfigsClient) GetResponder(resp *http.Response) (result ResourceVaultConfigResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Put updates vault security config. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// parameters - resource config request +func (client ResourceVaultConfigsClient) Put(ctx context.Context, vaultName string, resourceGroupName string, parameters ResourceVaultConfigResource) (result ResourceVaultConfigResource, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ResourceVaultConfigsClient.Put") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.PutPreparer(ctx, vaultName, resourceGroupName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ResourceVaultConfigsClient", "Put", nil, "Failure preparing request") + return + } + + resp, err := client.PutSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.ResourceVaultConfigsClient", "Put", resp, "Failure sending request") + return + } + + result, err = client.PutResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ResourceVaultConfigsClient", "Put", resp, "Failure responding to request") + return + } + + return +} + +// PutPreparer prepares the Put request. +func (client ResourceVaultConfigsClient) PutPreparer(ctx context.Context, vaultName string, resourceGroupName string, parameters ResourceVaultConfigResource) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// PutSender sends the Put request. The method will close the +// http.Response Body if it receives an error. +func (client ResourceVaultConfigsClient) PutSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// PutResponder handles the response to the Put request. The method always +// closes the http.Response Body. +func (client ResourceVaultConfigsClient) PutResponder(resp *http.Response) (result ResourceVaultConfigResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Update updates vault security config. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// parameters - resource config request +func (client ResourceVaultConfigsClient) Update(ctx context.Context, vaultName string, resourceGroupName string, parameters ResourceVaultConfigResource) (result ResourceVaultConfigResource, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ResourceVaultConfigsClient.Update") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdatePreparer(ctx, vaultName, resourceGroupName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ResourceVaultConfigsClient", "Update", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.ResourceVaultConfigsClient", "Update", resp, "Failure sending request") + return + } + + result, err = client.UpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.ResourceVaultConfigsClient", "Update", resp, "Failure responding to request") + return + } + + return +} + +// UpdatePreparer prepares the Update request. +func (client ResourceVaultConfigsClient) UpdatePreparer(ctx context.Context, vaultName string, resourceGroupName string, parameters ResourceVaultConfigResource) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateSender sends the Update request. The method will close the +// http.Response Body if it receives an error. +func (client ResourceVaultConfigsClient) UpdateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateResponder handles the response to the Update request. The method always +// closes the http.Response Body. +func (client ResourceVaultConfigsClient) UpdateResponder(resp *http.Response) (result ResourceVaultConfigResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/restores.go b/services/recoveryservices/mgmt/2021-01-01/backup/restores.go new file mode 100644 index 000000000000..ddd62a77cf7d --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/restores.go @@ -0,0 +1,121 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// RestoresClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type RestoresClient struct { + BaseClient +} + +// NewRestoresClient creates an instance of the RestoresClient client. +func NewRestoresClient(subscriptionID string) RestoresClient { + return NewRestoresClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewRestoresClientWithBaseURI creates an instance of the RestoresClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewRestoresClientWithBaseURI(baseURI string, subscriptionID string) RestoresClient { + return RestoresClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Trigger restores the specified backed up data. This is an asynchronous operation. To know the status of this API +// call, use +// GetProtectedItemOperationResult API. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// fabricName - fabric name associated with the backed up items. +// containerName - container name associated with the backed up items. +// protectedItemName - backed up item to be restored. +// recoveryPointID - recovery point ID which represents the backed up data to be restored. +// parameters - resource restore request +func (client RestoresClient) Trigger(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, recoveryPointID string, parameters RestoreRequestResource) (result RestoresTriggerFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RestoresClient.Trigger") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.TriggerPreparer(ctx, vaultName, resourceGroupName, fabricName, containerName, protectedItemName, recoveryPointID, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.RestoresClient", "Trigger", nil, "Failure preparing request") + return + } + + result, err = client.TriggerSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.RestoresClient", "Trigger", nil, "Failure sending request") + return + } + + return +} + +// TriggerPreparer prepares the Trigger request. +func (client RestoresClient) TriggerPreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, recoveryPointID string, parameters RestoreRequestResource) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "containerName": autorest.Encode("path", containerName), + "fabricName": autorest.Encode("path", fabricName), + "protectedItemName": autorest.Encode("path", protectedItemName), + "recoveryPointId": autorest.Encode("path", recoveryPointID), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}/restore", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// TriggerSender sends the Trigger request. The method will close the +// http.Response Body if it receives an error. +func (client RestoresClient) TriggerSender(req *http.Request) (future RestoresTriggerFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// TriggerResponder handles the response to the Trigger request. The method always +// closes the http.Response Body. +func (client RestoresClient) TriggerResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/securitypins.go b/services/recoveryservices/mgmt/2021-01-01/backup/securitypins.go new file mode 100644 index 000000000000..795fc113f894 --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/securitypins.go @@ -0,0 +1,107 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// SecurityPINsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type SecurityPINsClient struct { + BaseClient +} + +// NewSecurityPINsClient creates an instance of the SecurityPINsClient client. +func NewSecurityPINsClient(subscriptionID string) SecurityPINsClient { + return NewSecurityPINsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewSecurityPINsClientWithBaseURI creates an instance of the SecurityPINsClient client using a custom endpoint. Use +// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewSecurityPINsClientWithBaseURI(baseURI string, subscriptionID string) SecurityPINsClient { + return SecurityPINsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get get the security PIN. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +func (client SecurityPINsClient) Get(ctx context.Context, vaultName string, resourceGroupName string) (result TokenInformation, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SecurityPINsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, vaultName, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.SecurityPINsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.SecurityPINsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.SecurityPINsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client SecurityPINsClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupSecurityPIN", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client SecurityPINsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client SecurityPINsClient) GetResponder(resp *http.Response) (result TokenInformation, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/status.go b/services/recoveryservices/mgmt/2021-01-01/backup/status.go new file mode 100644 index 000000000000..4e62c544253c --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/status.go @@ -0,0 +1,108 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// StatusClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type StatusClient struct { + BaseClient +} + +// NewStatusClient creates an instance of the StatusClient client. +func NewStatusClient(subscriptionID string) StatusClient { + return NewStatusClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewStatusClientWithBaseURI creates an instance of the StatusClient client using a custom endpoint. Use this when +// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewStatusClientWithBaseURI(baseURI string, subscriptionID string) StatusClient { + return StatusClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get sends the get request. +// Parameters: +// azureRegion - azure region to hit Api +// parameters - container Backup Status Request +func (client StatusClient) Get(ctx context.Context, azureRegion string, parameters StatusRequest) (result StatusResponse, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/StatusClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, azureRegion, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.StatusClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.StatusClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.StatusClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client StatusClient) GetPreparer(ctx context.Context, azureRegion string, parameters StatusRequest) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "azureRegion": autorest.Encode("path", azureRegion), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2017-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/Subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupStatus", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client StatusClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client StatusClient) GetResponder(resp *http.Response) (result StatusResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/usagesummaries.go b/services/recoveryservices/mgmt/2021-01-01/backup/usagesummaries.go new file mode 100644 index 000000000000..1c70d7b13444 --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/usagesummaries.go @@ -0,0 +1,115 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// UsageSummariesClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type UsageSummariesClient struct { + BaseClient +} + +// NewUsageSummariesClient creates an instance of the UsageSummariesClient client. +func NewUsageSummariesClient(subscriptionID string) UsageSummariesClient { + return NewUsageSummariesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewUsageSummariesClientWithBaseURI creates an instance of the UsageSummariesClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewUsageSummariesClientWithBaseURI(baseURI string, subscriptionID string) UsageSummariesClient { + return UsageSummariesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List fetches the backup management usage summaries of the vault. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// filter - oData filter options. +// skipToken - skipToken Filter. +func (client UsageSummariesClient) List(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result ManagementUsageList, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/UsageSummariesClient.List") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListPreparer(ctx, vaultName, resourceGroupName, filter, skipToken) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.UsageSummariesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.UsageSummariesClient", "List", resp, "Failure sending request") + return + } + + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.UsageSummariesClient", "List", resp, "Failure responding to request") + return + } + + return +} + +// ListPreparer prepares the List request. +func (client UsageSummariesClient) ListPreparer(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2017-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(filter) > 0 { + queryParameters["$filter"] = autorest.Encode("query", filter) + } + if len(skipToken) > 0 { + queryParameters["$skipToken"] = autorest.Encode("query", skipToken) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupUsageSummaries", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client UsageSummariesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client UsageSummariesClient) ListResponder(resp *http.Response) (result ManagementUsageList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/usagesummariescrr.go b/services/recoveryservices/mgmt/2021-01-01/backup/usagesummariescrr.go new file mode 100644 index 000000000000..a2ae6f0ab9a9 --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/usagesummariescrr.go @@ -0,0 +1,116 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// UsageSummariesCRRClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type UsageSummariesCRRClient struct { + BaseClient +} + +// NewUsageSummariesCRRClient creates an instance of the UsageSummariesCRRClient client. +func NewUsageSummariesCRRClient(subscriptionID string) UsageSummariesCRRClient { + return NewUsageSummariesCRRClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewUsageSummariesCRRClientWithBaseURI creates an instance of the UsageSummariesCRRClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewUsageSummariesCRRClientWithBaseURI(baseURI string, subscriptionID string) UsageSummariesCRRClient { + return UsageSummariesCRRClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List fetches the backup management usage summaries of the vault. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// filter - oData filter options. +// skipToken - skipToken Filter. +func (client UsageSummariesCRRClient) List(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result ManagementUsageList, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/UsageSummariesCRRClient.List") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListPreparer(ctx, vaultName, resourceGroupName, filter, skipToken) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.UsageSummariesCRRClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.UsageSummariesCRRClient", "List", resp, "Failure sending request") + return + } + + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.UsageSummariesCRRClient", "List", resp, "Failure responding to request") + return + } + + return +} + +// ListPreparer prepares the List request. +func (client UsageSummariesCRRClient) ListPreparer(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2018-12-20" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(filter) > 0 { + queryParameters["$filter"] = autorest.Encode("query", filter) + } + if len(skipToken) > 0 { + queryParameters["$skipToken"] = autorest.Encode("query", skipToken) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupUsageSummaries", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client UsageSummariesCRRClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client UsageSummariesCRRClient) ListResponder(resp *http.Response) (result ManagementUsageList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/version.go b/services/recoveryservices/mgmt/2021-01-01/backup/version.go new file mode 100644 index 000000000000..77c652d03f0f --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/version.go @@ -0,0 +1,19 @@ +package backup + +import "github.com/Azure/azure-sdk-for-go/version" + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// UserAgent returns the UserAgent string to use when sending http.Requests. +func UserAgent() string { + return "Azure-SDK-For-Go/" + Version() + " backup/2021-01-01" +} + +// Version returns the semantic version (see http://semver.org) of the client. +func Version() string { + return version.Number +} diff --git a/services/recoveryservices/mgmt/2021-01-01/backup/workloaditems.go b/services/recoveryservices/mgmt/2021-01-01/backup/workloaditems.go new file mode 100644 index 000000000000..532f2f422504 --- /dev/null +++ b/services/recoveryservices/mgmt/2021-01-01/backup/workloaditems.go @@ -0,0 +1,163 @@ +package backup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// WorkloadItemsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service +type WorkloadItemsClient struct { + BaseClient +} + +// NewWorkloadItemsClient creates an instance of the WorkloadItemsClient client. +func NewWorkloadItemsClient(subscriptionID string) WorkloadItemsClient { + return NewWorkloadItemsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewWorkloadItemsClientWithBaseURI creates an instance of the WorkloadItemsClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewWorkloadItemsClientWithBaseURI(baseURI string, subscriptionID string) WorkloadItemsClient { + return WorkloadItemsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List provides a pageable list of workload item of a specific container according to the query filter and the +// pagination +// parameters. +// Parameters: +// vaultName - the name of the recovery services vault. +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// fabricName - fabric name associated with the container. +// containerName - name of the container. +// filter - oData filter options. +// skipToken - skipToken Filter. +func (client WorkloadItemsClient) List(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, filter string, skipToken string) (result WorkloadItemResourceListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WorkloadItemsClient.List") + defer func() { + sc := -1 + if result.wirl.Response.Response != nil { + sc = result.wirl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, vaultName, resourceGroupName, fabricName, containerName, filter, skipToken) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.WorkloadItemsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.wirl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "backup.WorkloadItemsClient", "List", resp, "Failure sending request") + return + } + + result.wirl, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.WorkloadItemsClient", "List", resp, "Failure responding to request") + return + } + if result.wirl.hasNextLink() && result.wirl.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client WorkloadItemsClient) ListPreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, filter string, skipToken string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "containerName": autorest.Encode("path", containerName), + "fabricName": autorest.Encode("path", fabricName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vaultName": autorest.Encode("path", vaultName), + } + + const APIVersion = "2021-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(filter) > 0 { + queryParameters["$filter"] = autorest.Encode("query", filter) + } + if len(skipToken) > 0 { + queryParameters["$skipToken"] = autorest.Encode("query", skipToken) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/items", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client WorkloadItemsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client WorkloadItemsClient) ListResponder(resp *http.Response) (result WorkloadItemResourceList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client WorkloadItemsClient) listNextResults(ctx context.Context, lastResults WorkloadItemResourceList) (result WorkloadItemResourceList, err error) { + req, err := lastResults.workloadItemResourceListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "backup.WorkloadItemsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "backup.WorkloadItemsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "backup.WorkloadItemsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client WorkloadItemsClient) ListComplete(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, filter string, skipToken string) (result WorkloadItemResourceListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WorkloadItemsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, vaultName, resourceGroupName, fabricName, containerName, filter, skipToken) + return +} diff --git a/services/redhatopenshift/mgmt/2020-04-30/redhatopenshift/CHANGELOG.md b/services/redhatopenshift/mgmt/2020-04-30/redhatopenshift/CHANGELOG.md index 52911e4cc5e4..4a0e9bec8e2f 100644 --- a/services/redhatopenshift/mgmt/2020-04-30/redhatopenshift/CHANGELOG.md +++ b/services/redhatopenshift/mgmt/2020-04-30/redhatopenshift/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/redhatopenshift/mgmt/2020-04-30/redhatopenshift/_meta.json b/services/redhatopenshift/mgmt/2020-04-30/redhatopenshift/_meta.json index dfde7d4893d5..63c9fbeff2bb 100644 --- a/services/redhatopenshift/mgmt/2020-04-30/redhatopenshift/_meta.json +++ b/services/redhatopenshift/mgmt/2020-04-30/redhatopenshift/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/redhatopenshift/resource-manager/readme.md", "tag": "package-2020-04-30", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-04-30 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/redhatopenshift/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-04-30 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/redhatopenshift/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/redhatopenshift/mgmt/2020-04-30/redhatopenshift/models.go b/services/redhatopenshift/mgmt/2020-04-30/redhatopenshift/models.go index ae946fd3c5b8..e792c581b3be 100644 --- a/services/redhatopenshift/mgmt/2020-04-30/redhatopenshift/models.go +++ b/services/redhatopenshift/mgmt/2020-04-30/redhatopenshift/models.go @@ -41,6 +41,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError cloudError represents a cloud error. type CloudError struct { // Error - An error response from the service. @@ -762,6 +768,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -772,6 +784,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServicePrincipalProfile servicePrincipalProfile represents a service principal profile. type ServicePrincipalProfile struct { // ClientID - The client ID used for the cluster (immutable). diff --git a/services/redis/mgmt/2015-08-01/redis/_meta.json b/services/redis/mgmt/2015-08-01/redis/_meta.json index 63c32de63b40..018a6c6f2000 100644 --- a/services/redis/mgmt/2015-08-01/redis/_meta.json +++ b/services/redis/mgmt/2015-08-01/redis/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/redis/resource-manager/readme.md", "tag": "package-2015-08", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2015-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/redis/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2015-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/redis/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/redis/mgmt/2016-04-01/redis/CHANGELOG.md b/services/redis/mgmt/2016-04-01/redis/CHANGELOG.md index 52911e4cc5e4..f5106d554301 100644 --- a/services/redis/mgmt/2016-04-01/redis/CHANGELOG.md +++ b/services/redis/mgmt/2016-04-01/redis/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccessKeys.MarshalJSON() ([]byte, error) +1. ForceRebootResponse.MarshalJSON() ([]byte, error) diff --git a/services/redis/mgmt/2016-04-01/redis/_meta.json b/services/redis/mgmt/2016-04-01/redis/_meta.json index 07188756c605..2eeda6881f1f 100644 --- a/services/redis/mgmt/2016-04-01/redis/_meta.json +++ b/services/redis/mgmt/2016-04-01/redis/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/redis/resource-manager/readme.md", "tag": "package-2016-04", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/redis/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/redis/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/redis/mgmt/2016-04-01/redis/models.go b/services/redis/mgmt/2016-04-01/redis/models.go index 432b0fb28c9c..58ebce6789e0 100644 --- a/services/redis/mgmt/2016-04-01/redis/models.go +++ b/services/redis/mgmt/2016-04-01/redis/models.go @@ -28,6 +28,12 @@ type AccessKeys struct { SecondaryKey *string `json:"secondaryKey,omitempty"` } +// MarshalJSON is the custom marshaler for AccessKeys. +func (ak AccessKeys) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CreateFuture an abstraction for monitoring and retrieving the results of a long-running operation. type CreateFuture struct { azure.FutureAPI @@ -545,6 +551,12 @@ type ForceRebootResponse struct { Message *string `json:"Message,omitempty"` } +// MarshalJSON is the custom marshaler for ForceRebootResponse. +func (frr ForceRebootResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImportDataFuture an abstraction for monitoring and retrieving the results of a long-running operation. type ImportDataFuture struct { azure.FutureAPI diff --git a/services/redis/mgmt/2017-02-01/redis/CHANGELOG.md b/services/redis/mgmt/2017-02-01/redis/CHANGELOG.md index 52911e4cc5e4..15e8828d671b 100644 --- a/services/redis/mgmt/2017-02-01/redis/CHANGELOG.md +++ b/services/redis/mgmt/2017-02-01/redis/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccessKeys.MarshalJSON() ([]byte, error) +1. ForceRebootResponse.MarshalJSON() ([]byte, error) +1. LinkedServer.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/redis/mgmt/2017-02-01/redis/_meta.json b/services/redis/mgmt/2017-02-01/redis/_meta.json index 0d9cb811b4b2..28215ad7dbb0 100644 --- a/services/redis/mgmt/2017-02-01/redis/_meta.json +++ b/services/redis/mgmt/2017-02-01/redis/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/redis/resource-manager/readme.md", "tag": "package-2017-02", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/redis/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/redis/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/redis/mgmt/2017-02-01/redis/models.go b/services/redis/mgmt/2017-02-01/redis/models.go index fcaff5287770..c999ed6e1e45 100644 --- a/services/redis/mgmt/2017-02-01/redis/models.go +++ b/services/redis/mgmt/2017-02-01/redis/models.go @@ -28,6 +28,12 @@ type AccessKeys struct { SecondaryKey *string `json:"secondaryKey,omitempty"` } +// MarshalJSON is the custom marshaler for AccessKeys. +func (ak AccessKeys) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CreateFuture an abstraction for monitoring and retrieving the results of a long-running operation. type CreateFuture struct { azure.FutureAPI @@ -554,6 +560,12 @@ type ForceRebootResponse struct { Message *string `json:"Message,omitempty"` } +// MarshalJSON is the custom marshaler for ForceRebootResponse. +func (frr ForceRebootResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImportDataFuture an abstraction for monitoring and retrieving the results of a long-running operation. type ImportDataFuture struct { azure.FutureAPI @@ -604,6 +616,12 @@ type LinkedServer struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for LinkedServer. +func (ls LinkedServer) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LinkedServerCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type LinkedServerCreateFuture struct { @@ -1301,6 +1319,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RebootParameters specifies which Redis node(s) to reboot. type RebootParameters struct { // RebootType - Which Redis node(s) to reboot. Depending on this value data loss is possible. Possible values include: 'PrimaryNode', 'SecondaryNode', 'AllNodes' @@ -1325,6 +1349,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceProperties parameters describing a Redis instance. type ResourceProperties struct { // Sku - The SKU of the Redis cache to deploy. diff --git a/services/redis/mgmt/2017-10-01/redis/CHANGELOG.md b/services/redis/mgmt/2017-10-01/redis/CHANGELOG.md index 52911e4cc5e4..15e8828d671b 100644 --- a/services/redis/mgmt/2017-10-01/redis/CHANGELOG.md +++ b/services/redis/mgmt/2017-10-01/redis/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccessKeys.MarshalJSON() ([]byte, error) +1. ForceRebootResponse.MarshalJSON() ([]byte, error) +1. LinkedServer.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/redis/mgmt/2017-10-01/redis/_meta.json b/services/redis/mgmt/2017-10-01/redis/_meta.json index 965b14a9b51d..0e535fbfa6ba 100644 --- a/services/redis/mgmt/2017-10-01/redis/_meta.json +++ b/services/redis/mgmt/2017-10-01/redis/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/redis/resource-manager/readme.md", "tag": "package-2017-10", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/redis/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/redis/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/redis/mgmt/2017-10-01/redis/models.go b/services/redis/mgmt/2017-10-01/redis/models.go index fa7f56d75269..7875d2d0f61d 100644 --- a/services/redis/mgmt/2017-10-01/redis/models.go +++ b/services/redis/mgmt/2017-10-01/redis/models.go @@ -29,6 +29,12 @@ type AccessKeys struct { SecondaryKey *string `json:"secondaryKey,omitempty"` } +// MarshalJSON is the custom marshaler for AccessKeys. +func (ak AccessKeys) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CheckNameAvailabilityParameters parameters body to pass for name availability check. type CheckNameAvailabilityParameters struct { // Name - Resource name. @@ -613,6 +619,12 @@ type ForceRebootResponse struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ForceRebootResponse. +func (frr ForceRebootResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImportDataFuture an abstraction for monitoring and retrieving the results of a long-running operation. type ImportDataFuture struct { azure.FutureAPI @@ -663,6 +675,12 @@ type LinkedServer struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for LinkedServer. +func (ls LinkedServer) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LinkedServerCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type LinkedServerCreateFuture struct { @@ -1710,6 +1728,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RebootParameters specifies which Redis node(s) to reboot. type RebootParameters struct { // RebootType - Which Redis node(s) to reboot. Depending on this value data loss is possible. Possible values include: 'PrimaryNode', 'SecondaryNode', 'AllNodes' @@ -1734,6 +1758,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceType a single Redis item in List or Get Operation. type ResourceType struct { autorest.Response `json:"-"` diff --git a/services/redis/mgmt/2018-03-01/redis/CHANGELOG.md b/services/redis/mgmt/2018-03-01/redis/CHANGELOG.md index 52911e4cc5e4..15e8828d671b 100644 --- a/services/redis/mgmt/2018-03-01/redis/CHANGELOG.md +++ b/services/redis/mgmt/2018-03-01/redis/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccessKeys.MarshalJSON() ([]byte, error) +1. ForceRebootResponse.MarshalJSON() ([]byte, error) +1. LinkedServer.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/redis/mgmt/2018-03-01/redis/_meta.json b/services/redis/mgmt/2018-03-01/redis/_meta.json index e656f313e394..07fd8c770d40 100644 --- a/services/redis/mgmt/2018-03-01/redis/_meta.json +++ b/services/redis/mgmt/2018-03-01/redis/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/redis/resource-manager/readme.md", "tag": "package-2018-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/redis/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/redis/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/redis/mgmt/2018-03-01/redis/models.go b/services/redis/mgmt/2018-03-01/redis/models.go index 64a8a1ce1dad..4acf29bf18f8 100644 --- a/services/redis/mgmt/2018-03-01/redis/models.go +++ b/services/redis/mgmt/2018-03-01/redis/models.go @@ -29,6 +29,12 @@ type AccessKeys struct { SecondaryKey *string `json:"secondaryKey,omitempty"` } +// MarshalJSON is the custom marshaler for AccessKeys. +func (ak AccessKeys) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CheckNameAvailabilityParameters parameters body to pass for resource name availability check. type CheckNameAvailabilityParameters struct { // Name - Resource name. @@ -623,6 +629,12 @@ type ForceRebootResponse struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ForceRebootResponse. +func (frr ForceRebootResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImportDataFuture an abstraction for monitoring and retrieving the results of a long-running operation. type ImportDataFuture struct { azure.FutureAPI @@ -673,6 +685,12 @@ type LinkedServer struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for LinkedServer. +func (ls LinkedServer) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LinkedServerCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type LinkedServerCreateFuture struct { @@ -1725,6 +1743,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RebootParameters specifies which Redis node(s) to reboot. type RebootParameters struct { // RebootType - Which Redis node(s) to reboot. Depending on this value data loss is possible. Possible values include: 'PrimaryNode', 'SecondaryNode', 'AllNodes' @@ -1749,6 +1773,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceType a single Redis item in List or Get Operation. type ResourceType struct { autorest.Response `json:"-"` diff --git a/services/redis/mgmt/2020-06-01/redis/CHANGELOG.md b/services/redis/mgmt/2020-06-01/redis/CHANGELOG.md index 52911e4cc5e4..b6960be28c27 100644 --- a/services/redis/mgmt/2020-06-01/redis/CHANGELOG.md +++ b/services/redis/mgmt/2020-06-01/redis/CHANGELOG.md @@ -1,2 +1,15 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccessKeys.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorDetail.MarshalJSON() ([]byte, error) +1. ForceRebootResponse.MarshalJSON() ([]byte, error) +1. InstanceDetails.MarshalJSON() ([]byte, error) +1. LinkedServer.MarshalJSON() ([]byte, error) +1. PrivateEndpoint.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/redis/mgmt/2020-06-01/redis/_meta.json b/services/redis/mgmt/2020-06-01/redis/_meta.json index 804460f7c11e..b6926d555507 100644 --- a/services/redis/mgmt/2020-06-01/redis/_meta.json +++ b/services/redis/mgmt/2020-06-01/redis/_meta.json @@ -2,9 +2,9 @@ "commit": "3a3a9452f965a227ce43e6b545035b99dd175f23", "readme": "/_/azure-rest-api-specs/specification/redis/resource-manager/readme.md", "tag": "package-2020-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/redis/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/redis/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/redis/mgmt/2020-06-01/redis/models.go b/services/redis/mgmt/2020-06-01/redis/models.go index 591255415a44..1c0f4cddf29a 100644 --- a/services/redis/mgmt/2020-06-01/redis/models.go +++ b/services/redis/mgmt/2020-06-01/redis/models.go @@ -29,6 +29,12 @@ type AccessKeys struct { SecondaryKey *string `json:"secondaryKey,omitempty"` } +// MarshalJSON is the custom marshaler for AccessKeys. +func (ak AccessKeys) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CheckNameAvailabilityParameters parameters body to pass for resource name availability check. type CheckNameAvailabilityParameters struct { // Name - Resource name. @@ -309,6 +315,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetail the error detail. type ErrorDetail struct { // Code - READ-ONLY; The error code. @@ -323,6 +335,12 @@ type ErrorDetail struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetail. +func (ed ErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.). type ErrorResponse struct { @@ -672,6 +690,12 @@ type ForceRebootResponse struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ForceRebootResponse. +func (frr ForceRebootResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImportDataFuture an abstraction for monitoring and retrieving the results of a long-running operation. type ImportDataFuture struct { azure.FutureAPI @@ -730,12 +754,24 @@ type InstanceDetails struct { IsMaster *bool `json:"isMaster,omitempty"` } +// MarshalJSON is the custom marshaler for InstanceDetails. +func (ID InstanceDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LinkedServer linked server Id type LinkedServer struct { // ID - READ-ONLY; Linked server Id. ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for LinkedServer. +func (ls LinkedServer) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LinkedServerCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type LinkedServerCreateFuture struct { @@ -1719,6 +1755,12 @@ type PrivateEndpoint struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpoint. +func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection the Private Endpoint Connection resource. type PrivateEndpointConnection struct { autorest.Response `json:"-"` @@ -2051,6 +2093,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RebootParameters specifies which Redis node(s) to reboot. type RebootParameters struct { // RebootType - Which Redis node(s) to reboot. Depending on this value data loss is possible. Possible values include: 'PrimaryNode', 'SecondaryNode', 'AllNodes' @@ -2077,6 +2125,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceType a single Redis item in List or Get Operation. type ResourceType struct { autorest.Response `json:"-"` diff --git a/services/redisenterprise/mgmt/2021-03-01/redisenterprise/CHANGELOG.md b/services/redisenterprise/mgmt/2021-03-01/redisenterprise/CHANGELOG.md index 52911e4cc5e4..54a0d70d0e0f 100644 --- a/services/redisenterprise/mgmt/2021-03-01/redisenterprise/CHANGELOG.md +++ b/services/redisenterprise/mgmt/2021-03-01/redisenterprise/CHANGELOG.md @@ -1,2 +1,15 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccessKeys.MarshalJSON() ([]byte, error) +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorDetail.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. PrivateEndpoint.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/redisenterprise/mgmt/2021-03-01/redisenterprise/_meta.json b/services/redisenterprise/mgmt/2021-03-01/redisenterprise/_meta.json index 18b53c2247df..c737e2aeb552 100644 --- a/services/redisenterprise/mgmt/2021-03-01/redisenterprise/_meta.json +++ b/services/redisenterprise/mgmt/2021-03-01/redisenterprise/_meta.json @@ -2,9 +2,9 @@ "commit": "a1eee0489c374782a934ec1f093abd16fa7718ca", "readme": "/_/azure-rest-api-specs/specification/redisenterprise/resource-manager/readme.md", "tag": "package-2021-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2021-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/redisenterprise/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2021-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/redisenterprise/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/redisenterprise/mgmt/2021-03-01/redisenterprise/models.go b/services/redisenterprise/mgmt/2021-03-01/redisenterprise/models.go index add43cbfbf54..fb78ec7d1b01 100644 --- a/services/redisenterprise/mgmt/2021-03-01/redisenterprise/models.go +++ b/services/redisenterprise/mgmt/2021-03-01/redisenterprise/models.go @@ -28,6 +28,12 @@ type AccessKeys struct { SecondaryKey *string `json:"secondaryKey,omitempty"` } +// MarshalJSON is the custom marshaler for AccessKeys. +func (ak AccessKeys) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureEntityResource the resource model definition for an Azure Resource Manager resource with an etag. type AzureEntityResource struct { // Etag - READ-ONLY; Resource Etag. @@ -40,6 +46,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Cluster describes the RedisEnterprise cluster type Cluster struct { autorest.Response `json:"-"` @@ -1081,6 +1093,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetail the error detail. type ErrorDetail struct { // Code - READ-ONLY; The error code. @@ -1095,6 +1113,12 @@ type ErrorDetail struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetail. +func (ed ErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.). type ErrorResponse struct { @@ -1171,6 +1195,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult a list of REST API operations supported by an Azure Resource Provider. It contains // an URL link to get the next set of results. type OperationListResult struct { @@ -1181,6 +1211,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -1366,6 +1402,12 @@ type PrivateEndpoint struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpoint. +func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection the Private Endpoint Connection resource. type PrivateEndpointConnection struct { autorest.Response `json:"-"` @@ -1620,6 +1662,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegenerateKeyParameters specifies which access keys to reset to a new random value. type RegenerateKeyParameters struct { // KeyType - Which access key to regenerate. Possible values include: 'Primary', 'Secondary' @@ -1636,6 +1684,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Sku SKU parameters supplied to the create RedisEnterprise operation. type Sku struct { // Name - The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.). Possible values include: 'EnterpriseE10', 'EnterpriseE20', 'EnterpriseE50', 'EnterpriseE100', 'EnterpriseFlashF300', 'EnterpriseFlashF700', 'EnterpriseFlashF1500' diff --git a/services/relay/mgmt/2016-07-01/relay/CHANGELOG.md b/services/relay/mgmt/2016-07-01/relay/CHANGELOG.md index 52911e4cc5e4..5872bfe27be8 100644 --- a/services/relay/mgmt/2016-07-01/relay/CHANGELOG.md +++ b/services/relay/mgmt/2016-07-01/relay/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. NamespaceProperties.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/relay/mgmt/2016-07-01/relay/_meta.json b/services/relay/mgmt/2016-07-01/relay/_meta.json index e9f448813b52..841ace31f072 100644 --- a/services/relay/mgmt/2016-07-01/relay/_meta.json +++ b/services/relay/mgmt/2016-07-01/relay/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/relay/resource-manager/readme.md", "tag": "package-2016-07", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/relay/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/relay/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/relay/mgmt/2016-07-01/relay/models.go b/services/relay/mgmt/2016-07-01/relay/models.go index f99ac8d518cf..23d3fb8acf06 100644 --- a/services/relay/mgmt/2016-07-01/relay/models.go +++ b/services/relay/mgmt/2016-07-01/relay/models.go @@ -857,6 +857,12 @@ type NamespaceProperties struct { MetricID *string `json:"metricId,omitempty"` } +// MarshalJSON is the custom marshaler for NamespaceProperties. +func (np NamespaceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NamespacesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type NamespacesCreateOrUpdateFuture struct { @@ -984,6 +990,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of the request to list EventHub operations. It contains a list of operations // and a URL link to get the next set of results. type OperationListResult struct { @@ -994,6 +1006,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -1160,6 +1178,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Sku sku of the Namespace. type Sku struct { // Name - Name of this Sku diff --git a/services/relay/mgmt/2017-04-01/relay/CHANGELOG.md b/services/relay/mgmt/2017-04-01/relay/CHANGELOG.md index 52911e4cc5e4..5872bfe27be8 100644 --- a/services/relay/mgmt/2017-04-01/relay/CHANGELOG.md +++ b/services/relay/mgmt/2017-04-01/relay/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. NamespaceProperties.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/relay/mgmt/2017-04-01/relay/_meta.json b/services/relay/mgmt/2017-04-01/relay/_meta.json index a9a96bffa33a..8a30f6441505 100644 --- a/services/relay/mgmt/2017-04-01/relay/_meta.json +++ b/services/relay/mgmt/2017-04-01/relay/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/relay/resource-manager/readme.md", "tag": "package-2017-04", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/relay/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/relay/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/relay/mgmt/2017-04-01/relay/models.go b/services/relay/mgmt/2017-04-01/relay/models.go index 1449f77e312d..e30c15b45a0c 100644 --- a/services/relay/mgmt/2017-04-01/relay/models.go +++ b/services/relay/mgmt/2017-04-01/relay/models.go @@ -857,6 +857,12 @@ type NamespaceProperties struct { MetricID *string `json:"metricId,omitempty"` } +// MarshalJSON is the custom marshaler for NamespaceProperties. +func (np NamespaceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NamespacesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type NamespacesCreateOrUpdateFuture struct { @@ -964,6 +970,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of the request to list Relay operations. It contains a list of operations and // a URL link to get the next set of results. type OperationListResult struct { @@ -974,6 +986,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -1143,6 +1161,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceNamespacePatch definition of resource. type ResourceNamespacePatch struct { // Tags - Resource tags. diff --git a/services/reservations/mgmt/2017-11-01/reservations/CHANGELOG.md b/services/reservations/mgmt/2017-11-01/reservations/CHANGELOG.md index 52911e4cc5e4..e92ff0480638 100644 --- a/services/reservations/mgmt/2017-11-01/reservations/CHANGELOG.md +++ b/services/reservations/mgmt/2017-11-01/reservations/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. Catalog.MarshalJSON() ([]byte, error) diff --git a/services/reservations/mgmt/2017-11-01/reservations/_meta.json b/services/reservations/mgmt/2017-11-01/reservations/_meta.json index 5f18145e3274..37bb6c027e22 100644 --- a/services/reservations/mgmt/2017-11-01/reservations/_meta.json +++ b/services/reservations/mgmt/2017-11-01/reservations/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/reservations/resource-manager/readme.md", "tag": "package-2017-11", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/reservations/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/reservations/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/reservations/mgmt/2017-11-01/reservations/models.go b/services/reservations/mgmt/2017-11-01/reservations/models.go index 1664b0aa2fcf..9f6b22d6294e 100644 --- a/services/reservations/mgmt/2017-11-01/reservations/models.go +++ b/services/reservations/mgmt/2017-11-01/reservations/models.go @@ -124,6 +124,12 @@ type Catalog struct { Restrictions *[]SkuRestriction `json:"restrictions,omitempty"` } +// MarshalJSON is the custom marshaler for Catalog. +func (c Catalog) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Error ... type Error struct { Error *ExtendedErrorInfo `json:"error,omitempty"` diff --git a/services/resourcegraph/mgmt/2019-04-01/resourcegraph/_meta.json b/services/resourcegraph/mgmt/2019-04-01/resourcegraph/_meta.json index d00aa2d7c264..376d3b53890d 100644 --- a/services/resourcegraph/mgmt/2019-04-01/resourcegraph/_meta.json +++ b/services/resourcegraph/mgmt/2019-04-01/resourcegraph/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/resourcegraph/resource-manager/readme.md", "tag": "package-2019-04", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resourcegraph/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resourcegraph/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/resourcegraph/mgmt/2021-03-01/resourcegraph/_meta.json b/services/resourcegraph/mgmt/2021-03-01/resourcegraph/_meta.json index 072e92d33bbf..97336bae9774 100644 --- a/services/resourcegraph/mgmt/2021-03-01/resourcegraph/_meta.json +++ b/services/resourcegraph/mgmt/2021-03-01/resourcegraph/_meta.json @@ -2,9 +2,9 @@ "commit": "e0f8b9ab0f5fe5e71b7429ebfea8a33c19ec9d8d", "readme": "/_/azure-rest-api-specs/specification/resourcegraph/resource-manager/readme.md", "tag": "package-2021-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2021-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resourcegraph/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2021-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resourcegraph/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/resourcehealth/mgmt/2015-01-01/resourcehealth/CHANGELOG.md b/services/resourcehealth/mgmt/2015-01-01/resourcehealth/CHANGELOG.md index 52911e4cc5e4..3942218f5486 100644 --- a/services/resourcehealth/mgmt/2015-01-01/resourcehealth/CHANGELOG.md +++ b/services/resourcehealth/mgmt/2015-01-01/resourcehealth/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. ErrorResponse.MarshalJSON() ([]byte, error) diff --git a/services/resourcehealth/mgmt/2015-01-01/resourcehealth/_meta.json b/services/resourcehealth/mgmt/2015-01-01/resourcehealth/_meta.json index b845020ab76b..b10aed94ecc7 100644 --- a/services/resourcehealth/mgmt/2015-01-01/resourcehealth/_meta.json +++ b/services/resourcehealth/mgmt/2015-01-01/resourcehealth/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/resourcehealth/resource-manager/readme.md", "tag": "package-2015-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2015-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resourcehealth/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2015-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resourcehealth/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/resourcehealth/mgmt/2015-01-01/resourcehealth/models.go b/services/resourcehealth/mgmt/2015-01-01/resourcehealth/models.go index 596d5f2f26ef..2742bdaf45a6 100644 --- a/services/resourcehealth/mgmt/2015-01-01/resourcehealth/models.go +++ b/services/resourcehealth/mgmt/2015-01-01/resourcehealth/models.go @@ -8,6 +8,7 @@ package resourcehealth import ( "context" + "encoding/json" "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/date" "github.com/Azure/go-autorest/autorest/to" @@ -243,6 +244,12 @@ type ErrorResponse struct { Details *string `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation operation available in the resourcehealth resource provider. type Operation struct { // Name - Name of the operation. diff --git a/services/resourcehealth/mgmt/2017-07-01/resourcehealth/CHANGELOG.md b/services/resourcehealth/mgmt/2017-07-01/resourcehealth/CHANGELOG.md index 52911e4cc5e4..56a2af30fbd5 100644 --- a/services/resourcehealth/mgmt/2017-07-01/resourcehealth/CHANGELOG.md +++ b/services/resourcehealth/mgmt/2017-07-01/resourcehealth/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/resourcehealth/mgmt/2017-07-01/resourcehealth/_meta.json b/services/resourcehealth/mgmt/2017-07-01/resourcehealth/_meta.json index e87b6e1d2605..2c43b69fdf3f 100644 --- a/services/resourcehealth/mgmt/2017-07-01/resourcehealth/_meta.json +++ b/services/resourcehealth/mgmt/2017-07-01/resourcehealth/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/resourcehealth/resource-manager/readme.md", "tag": "package-2017-07", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resourcehealth/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resourcehealth/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/resourcehealth/mgmt/2017-07-01/resourcehealth/models.go b/services/resourcehealth/mgmt/2017-07-01/resourcehealth/models.go index 0078a375a00f..8be67e9c6a4c 100644 --- a/services/resourcehealth/mgmt/2017-07-01/resourcehealth/models.go +++ b/services/resourcehealth/mgmt/2017-07-01/resourcehealth/models.go @@ -252,6 +252,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EmergingIssue on-going emerging issue from azure status. type EmergingIssue struct { // RefreshTimestamp - Timestamp for when last time refreshed for ongoing emerging issue. @@ -514,6 +520,12 @@ type ErrorResponse struct { Details *string `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImpactedRegion object of impacted region. type ImpactedRegion struct { // ID - The impacted region id. @@ -560,6 +572,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RecommendedAction lists actions the user can take based on the current availabilityState of the // resource. type RecommendedAction struct { @@ -581,6 +599,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceImpactingEvent lists the service impacting events that may be affecting the health of the // resource. type ServiceImpactingEvent struct { diff --git a/services/resourcemover/mgmt/2021-01-01/resourcemover/CHANGELOG.md b/services/resourcemover/mgmt/2021-01-01/resourcemover/CHANGELOG.md index 52911e4cc5e4..56e0aa29fbd5 100644 --- a/services/resourcemover/mgmt/2021-01-01/resourcemover/CHANGELOG.md +++ b/services/resourcemover/mgmt/2021-01-01/resourcemover/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. AffectedMoveResource.MarshalJSON() ([]byte, error) +1. MoveErrorInfo.MarshalJSON() ([]byte, error) +1. MoveResourceErrorBody.MarshalJSON() ([]byte, error) +1. OperationErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. OperationStatus.MarshalJSON() ([]byte, error) +1. OperationStatusError.MarshalJSON() ([]byte, error) diff --git a/services/resourcemover/mgmt/2021-01-01/resourcemover/_meta.json b/services/resourcemover/mgmt/2021-01-01/resourcemover/_meta.json index eb5d5704a8a1..a384b6c9a712 100644 --- a/services/resourcemover/mgmt/2021-01-01/resourcemover/_meta.json +++ b/services/resourcemover/mgmt/2021-01-01/resourcemover/_meta.json @@ -2,9 +2,9 @@ "commit": "a1eee0489c374782a934ec1f093abd16fa7718ca", "readme": "/_/azure-rest-api-specs/specification/resourcemover/resource-manager/readme.md", "tag": "package-2021-01-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2021-01-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resourcemover/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2021-01-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resourcemover/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/resourcemover/mgmt/2021-01-01/resourcemover/models.go b/services/resourcemover/mgmt/2021-01-01/resourcemover/models.go index d347bd4df7a5..3ee0f0fe53be 100644 --- a/services/resourcemover/mgmt/2021-01-01/resourcemover/models.go +++ b/services/resourcemover/mgmt/2021-01-01/resourcemover/models.go @@ -29,6 +29,12 @@ type AffectedMoveResource struct { MoveResources *[]AffectedMoveResource `json:"moveResources,omitempty"` } +// MarshalJSON is the custom marshaler for AffectedMoveResource. +func (amr AffectedMoveResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AutomaticResolutionProperties defines the properties for automatic resolution. type AutomaticResolutionProperties struct { // MoveResourceID - Gets the MoveResource ARM ID of @@ -1152,6 +1158,12 @@ type MoveErrorInfo struct { MoveResources *[]AffectedMoveResource `json:"moveResources,omitempty"` } +// MarshalJSON is the custom marshaler for MoveErrorInfo. +func (mei MoveErrorInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MoveResource defines the move resource. type MoveResource struct { autorest.Response `json:"-"` @@ -1394,6 +1406,12 @@ type MoveResourceErrorBody struct { Details *[]MoveResourceErrorBody `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for MoveResourceErrorBody. +func (mreb MoveResourceErrorBody) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MoveResourceFilter move resource filter. type MoveResourceFilter struct { Properties *MoveResourceFilterProperties `json:"properties,omitempty"` @@ -1944,6 +1962,12 @@ type OperationErrorAdditionalInfo struct { Info *MoveErrorInfo `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for OperationErrorAdditionalInfo. +func (oeai OperationErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationsDiscovery operations discovery class. type OperationsDiscovery struct { // Name - Gets or sets Name of the API. @@ -2008,6 +2032,12 @@ type OperationStatus struct { Properties interface{} `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for OperationStatus. +func (osVar OperationStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationStatusError class for operation status errors. type OperationStatusError struct { // Code - READ-ONLY; The error code. @@ -2020,6 +2050,12 @@ type OperationStatusError struct { AdditionalInfo *[]OperationErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for OperationStatusError. +func (ose OperationStatusError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrepareRequest defines the request body for initiate prepare operation. type PrepareRequest struct { // ValidateOnly - Gets or sets a value indicating whether the operation needs to only run pre-requisite. diff --git a/services/resources/mgmt/2015-01-01/locks/_meta.json b/services/resources/mgmt/2015-01-01/locks/_meta.json index 50cc6e39e1d6..62427edb7089 100644 --- a/services/resources/mgmt/2015-01-01/locks/_meta.json +++ b/services/resources/mgmt/2015-01-01/locks/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "tag": "package-locks-2015-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-locks-2015-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-locks-2015-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/resources/mgmt/2015-11-01/resources/CHANGELOG.md b/services/resources/mgmt/2015-11-01/resources/CHANGELOG.md index 52911e4cc5e4..4c4db56743f9 100644 --- a/services/resources/mgmt/2015-11-01/resources/CHANGELOG.md +++ b/services/resources/mgmt/2015-11-01/resources/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. GroupProperties.MarshalJSON() ([]byte, error) diff --git a/services/resources/mgmt/2015-11-01/resources/_meta.json b/services/resources/mgmt/2015-11-01/resources/_meta.json index e9a410e200fa..159d1db30596 100644 --- a/services/resources/mgmt/2015-11-01/resources/_meta.json +++ b/services/resources/mgmt/2015-11-01/resources/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "tag": "package-resources-2015-11", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-resources-2015-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-resources-2015-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/resources/mgmt/2015-11-01/resources/models.go b/services/resources/mgmt/2015-11-01/resources/models.go index 00653064b356..53a12c940975 100644 --- a/services/resources/mgmt/2015-11-01/resources/models.go +++ b/services/resources/mgmt/2015-11-01/resources/models.go @@ -563,6 +563,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.) type ErrorResponse struct { @@ -578,6 +584,12 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GenericResource resource information. type GenericResource struct { autorest.Response `json:"-"` @@ -872,6 +884,12 @@ type GroupProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for GroupProperties. +func (gp GroupProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GroupsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation. type GroupsDeleteFuture struct { azure.FutureAPI diff --git a/services/resources/mgmt/2015-11-01/subscriptions/_meta.json b/services/resources/mgmt/2015-11-01/subscriptions/_meta.json index 9b3983321489..f20984c2c5c1 100644 --- a/services/resources/mgmt/2015-11-01/subscriptions/_meta.json +++ b/services/resources/mgmt/2015-11-01/subscriptions/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "tag": "package-subscriptions-2015-11", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-subscriptions-2015-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-subscriptions-2015-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/resources/mgmt/2015-12-01/features/_meta.json b/services/resources/mgmt/2015-12-01/features/_meta.json index 300e59455f32..eeb401a2e66f 100644 --- a/services/resources/mgmt/2015-12-01/features/_meta.json +++ b/services/resources/mgmt/2015-12-01/features/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "tag": "package-features-2015-12", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-features-2015-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-features-2015-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/resources/mgmt/2016-02-01/resources/CHANGELOG.md b/services/resources/mgmt/2016-02-01/resources/CHANGELOG.md index 52911e4cc5e4..4c4db56743f9 100644 --- a/services/resources/mgmt/2016-02-01/resources/CHANGELOG.md +++ b/services/resources/mgmt/2016-02-01/resources/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. GroupProperties.MarshalJSON() ([]byte, error) diff --git a/services/resources/mgmt/2016-02-01/resources/_meta.json b/services/resources/mgmt/2016-02-01/resources/_meta.json index 253d111ebf34..ff826b5f1d76 100644 --- a/services/resources/mgmt/2016-02-01/resources/_meta.json +++ b/services/resources/mgmt/2016-02-01/resources/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "tag": "package-resources-2016-02", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-resources-2016-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-resources-2016-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/resources/mgmt/2016-02-01/resources/models.go b/services/resources/mgmt/2016-02-01/resources/models.go index 96f45da531fd..c45dbf0557c1 100644 --- a/services/resources/mgmt/2016-02-01/resources/models.go +++ b/services/resources/mgmt/2016-02-01/resources/models.go @@ -602,6 +602,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.) type ErrorResponse struct { @@ -617,6 +623,12 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExportTemplateRequest export resource group template request parameters. type ExportTemplateRequest struct { // ResourcesProperty - The IDs of the resources to filter the export by. To export all resources, supply an array with single entry '*'. @@ -968,6 +980,12 @@ type GroupProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for GroupProperties. +func (gp GroupProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GroupsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation. type GroupsDeleteFuture struct { azure.FutureAPI diff --git a/services/resources/mgmt/2016-04-01/policy/_meta.json b/services/resources/mgmt/2016-04-01/policy/_meta.json index 27c93611f3b2..a7931308bce9 100644 --- a/services/resources/mgmt/2016-04-01/policy/_meta.json +++ b/services/resources/mgmt/2016-04-01/policy/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "tag": "package-policy-2016-04", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-policy-2016-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-policy-2016-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/resources/mgmt/2016-06-01/subscriptions/CHANGELOG.md b/services/resources/mgmt/2016-06-01/subscriptions/CHANGELOG.md index 52911e4cc5e4..f82fe736f26d 100644 --- a/services/resources/mgmt/2016-06-01/subscriptions/CHANGELOG.md +++ b/services/resources/mgmt/2016-06-01/subscriptions/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. Location.MarshalJSON() ([]byte, error) +1. Policies.MarshalJSON() ([]byte, error) +1. TenantIDDescription.MarshalJSON() ([]byte, error) diff --git a/services/resources/mgmt/2016-06-01/subscriptions/_meta.json b/services/resources/mgmt/2016-06-01/subscriptions/_meta.json index ea158bea80fa..37fad977fbd7 100644 --- a/services/resources/mgmt/2016-06-01/subscriptions/_meta.json +++ b/services/resources/mgmt/2016-06-01/subscriptions/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "tag": "package-subscriptions-2016-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-subscriptions-2016-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-subscriptions-2016-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/resources/mgmt/2016-06-01/subscriptions/models.go b/services/resources/mgmt/2016-06-01/subscriptions/models.go index 0bd0fb46bd8c..b680c647a747 100644 --- a/services/resources/mgmt/2016-06-01/subscriptions/models.go +++ b/services/resources/mgmt/2016-06-01/subscriptions/models.go @@ -219,6 +219,12 @@ type Location struct { Longitude *string `json:"longitude,omitempty"` } +// MarshalJSON is the custom marshaler for Location. +func (l Location) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LocationListResult location list operation response. type LocationListResult struct { autorest.Response `json:"-"` @@ -416,6 +422,12 @@ type Policies struct { SpendingLimit SpendingLimit `json:"spendingLimit,omitempty"` } +// MarshalJSON is the custom marshaler for Policies. +func (p Policies) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceName name and Type of the Resource type ResourceName struct { // Name - Name of the resource @@ -461,6 +473,12 @@ type TenantIDDescription struct { TenantID *string `json:"tenantId,omitempty"` } +// MarshalJSON is the custom marshaler for TenantIDDescription. +func (tid TenantIDDescription) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TenantListResult tenant Ids information. type TenantListResult struct { autorest.Response `json:"-"` diff --git a/services/resources/mgmt/2016-07-01/resources/CHANGELOG.md b/services/resources/mgmt/2016-07-01/resources/CHANGELOG.md index 52911e4cc5e4..4c4db56743f9 100644 --- a/services/resources/mgmt/2016-07-01/resources/CHANGELOG.md +++ b/services/resources/mgmt/2016-07-01/resources/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. GroupProperties.MarshalJSON() ([]byte, error) diff --git a/services/resources/mgmt/2016-07-01/resources/_meta.json b/services/resources/mgmt/2016-07-01/resources/_meta.json index 14a2cf243ea0..0cc47e058ade 100644 --- a/services/resources/mgmt/2016-07-01/resources/_meta.json +++ b/services/resources/mgmt/2016-07-01/resources/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "tag": "package-resources-2016-07", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-resources-2016-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-resources-2016-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/resources/mgmt/2016-07-01/resources/models.go b/services/resources/mgmt/2016-07-01/resources/models.go index 381c1778fa16..a7d8a4f63a7f 100644 --- a/services/resources/mgmt/2016-07-01/resources/models.go +++ b/services/resources/mgmt/2016-07-01/resources/models.go @@ -602,6 +602,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.) type ErrorResponse struct { @@ -617,6 +623,12 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExportTemplateRequest export resource group template request parameters. type ExportTemplateRequest struct { // ResourcesProperty - The IDs of the resources to filter the export by. To export all resources, supply an array with single entry '*'. @@ -968,6 +980,12 @@ type GroupProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for GroupProperties. +func (gp GroupProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GroupsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation. type GroupsDeleteFuture struct { azure.FutureAPI diff --git a/services/resources/mgmt/2016-09-01/links/_meta.json b/services/resources/mgmt/2016-09-01/links/_meta.json index 67a4ca14144e..71c30474c13a 100644 --- a/services/resources/mgmt/2016-09-01/links/_meta.json +++ b/services/resources/mgmt/2016-09-01/links/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "tag": "package-links-2016-09", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-links-2016-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-links-2016-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/resources/mgmt/2016-09-01/locks/_meta.json b/services/resources/mgmt/2016-09-01/locks/_meta.json index 23007dffdc46..db35ae747232 100644 --- a/services/resources/mgmt/2016-09-01/locks/_meta.json +++ b/services/resources/mgmt/2016-09-01/locks/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "tag": "package-locks-2016-09", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-locks-2016-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-locks-2016-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/resources/mgmt/2016-09-01/resources/CHANGELOG.md b/services/resources/mgmt/2016-09-01/resources/CHANGELOG.md index 52911e4cc5e4..7ed92404977c 100644 --- a/services/resources/mgmt/2016-09-01/resources/CHANGELOG.md +++ b/services/resources/mgmt/2016-09-01/resources/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. DeploymentOperationProperties.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. GroupProperties.MarshalJSON() ([]byte, error) +1. ManagementErrorWithDetails.MarshalJSON() ([]byte, error) diff --git a/services/resources/mgmt/2016-09-01/resources/_meta.json b/services/resources/mgmt/2016-09-01/resources/_meta.json index da7ffafa2f7c..70ab317660d6 100644 --- a/services/resources/mgmt/2016-09-01/resources/_meta.json +++ b/services/resources/mgmt/2016-09-01/resources/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "tag": "package-resources-2016-09", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-resources-2016-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-resources-2016-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/resources/mgmt/2016-09-01/resources/models.go b/services/resources/mgmt/2016-09-01/resources/models.go index 92d51b44be11..a8abc105c7ab 100644 --- a/services/resources/mgmt/2016-09-01/resources/models.go +++ b/services/resources/mgmt/2016-09-01/resources/models.go @@ -477,6 +477,12 @@ type DeploymentOperationProperties struct { Response *HTTPMessage `json:"response,omitempty"` } +// MarshalJSON is the custom marshaler for DeploymentOperationProperties. +func (dop DeploymentOperationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeploymentOperationsListResult list of deployment operations. type DeploymentOperationsListResult struct { autorest.Response `json:"-"` @@ -820,6 +826,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.) type ErrorResponse struct { @@ -835,6 +847,12 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExportTemplateRequest export resource group template request parameters. type ExportTemplateRequest struct { // ResourcesProperty - The IDs of the resources to filter the export by. To export all resources, supply an array with single entry '*'. @@ -1200,6 +1218,12 @@ type GroupProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for GroupProperties. +func (gp GroupProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GroupsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation. type GroupsDeleteFuture struct { azure.FutureAPI @@ -1441,6 +1465,12 @@ type ManagementErrorWithDetails struct { Details *[]ManagementErrorWithDetails `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ManagementErrorWithDetails. +func (mewd ManagementErrorWithDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MoveInfo parameters of move resources. type MoveInfo struct { // ResourcesProperty - The IDs of the resources. diff --git a/services/resources/mgmt/2016-12-01/policy/_meta.json b/services/resources/mgmt/2016-12-01/policy/_meta.json index 0295d1ce065c..9d81de7cc9fd 100644 --- a/services/resources/mgmt/2016-12-01/policy/_meta.json +++ b/services/resources/mgmt/2016-12-01/policy/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "tag": "package-policy-2016-12", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-policy-2016-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-policy-2016-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/resources/mgmt/2017-05-10/resources/CHANGELOG.md b/services/resources/mgmt/2017-05-10/resources/CHANGELOG.md index 52911e4cc5e4..7ed92404977c 100644 --- a/services/resources/mgmt/2017-05-10/resources/CHANGELOG.md +++ b/services/resources/mgmt/2017-05-10/resources/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. DeploymentOperationProperties.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. GroupProperties.MarshalJSON() ([]byte, error) +1. ManagementErrorWithDetails.MarshalJSON() ([]byte, error) diff --git a/services/resources/mgmt/2017-05-10/resources/_meta.json b/services/resources/mgmt/2017-05-10/resources/_meta.json index 092dc6d12290..cbc226d83ef1 100644 --- a/services/resources/mgmt/2017-05-10/resources/_meta.json +++ b/services/resources/mgmt/2017-05-10/resources/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "tag": "package-resources-2017-05", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-resources-2017-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-resources-2017-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/resources/mgmt/2017-05-10/resources/models.go b/services/resources/mgmt/2017-05-10/resources/models.go index ea4cc0fc815a..8e3362fcb178 100644 --- a/services/resources/mgmt/2017-05-10/resources/models.go +++ b/services/resources/mgmt/2017-05-10/resources/models.go @@ -477,6 +477,12 @@ type DeploymentOperationProperties struct { Response *HTTPMessage `json:"response,omitempty"` } +// MarshalJSON is the custom marshaler for DeploymentOperationProperties. +func (dop DeploymentOperationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeploymentOperationsListResult list of deployment operations. type DeploymentOperationsListResult struct { autorest.Response `json:"-"` @@ -820,6 +826,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.) type ErrorResponse struct { @@ -835,6 +847,12 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExportTemplateRequest export resource group template request parameters. type ExportTemplateRequest struct { // ResourcesProperty - The IDs of the resources to filter the export by. To export all resources, supply an array with single entry '*'. @@ -1229,6 +1247,12 @@ type GroupProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for GroupProperties. +func (gp GroupProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GroupsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation. type GroupsDeleteFuture struct { azure.FutureAPI @@ -1470,6 +1494,12 @@ type ManagementErrorWithDetails struct { Details *[]ManagementErrorWithDetails `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ManagementErrorWithDetails. +func (mewd ManagementErrorWithDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MoveInfo parameters of move resources. type MoveInfo struct { // ResourcesProperty - The IDs of the resources. diff --git a/services/resources/mgmt/2017-09-01/managedapplications/_meta.json b/services/resources/mgmt/2017-09-01/managedapplications/_meta.json index 17a23f3baee0..ef8863eaeeed 100644 --- a/services/resources/mgmt/2017-09-01/managedapplications/_meta.json +++ b/services/resources/mgmt/2017-09-01/managedapplications/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "tag": "package-managedapplications-2017-09", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-managedapplications-2017-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-managedapplications-2017-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/resources/mgmt/2018-02-01/resources/CHANGELOG.md b/services/resources/mgmt/2018-02-01/resources/CHANGELOG.md index 52911e4cc5e4..7ed92404977c 100644 --- a/services/resources/mgmt/2018-02-01/resources/CHANGELOG.md +++ b/services/resources/mgmt/2018-02-01/resources/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. DeploymentOperationProperties.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. GroupProperties.MarshalJSON() ([]byte, error) +1. ManagementErrorWithDetails.MarshalJSON() ([]byte, error) diff --git a/services/resources/mgmt/2018-02-01/resources/_meta.json b/services/resources/mgmt/2018-02-01/resources/_meta.json index 37e0c2618b21..48a2624652ff 100644 --- a/services/resources/mgmt/2018-02-01/resources/_meta.json +++ b/services/resources/mgmt/2018-02-01/resources/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "tag": "package-resources-2018-02", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-resources-2018-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-resources-2018-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/resources/mgmt/2018-02-01/resources/models.go b/services/resources/mgmt/2018-02-01/resources/models.go index 0bdbf839a22b..8c8e6979ba32 100644 --- a/services/resources/mgmt/2018-02-01/resources/models.go +++ b/services/resources/mgmt/2018-02-01/resources/models.go @@ -477,6 +477,12 @@ type DeploymentOperationProperties struct { Response *HTTPMessage `json:"response,omitempty"` } +// MarshalJSON is the custom marshaler for DeploymentOperationProperties. +func (dop DeploymentOperationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeploymentOperationsListResult list of deployment operations. type DeploymentOperationsListResult struct { autorest.Response `json:"-"` @@ -827,6 +833,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.) type ErrorResponse struct { @@ -842,6 +854,12 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExportTemplateRequest export resource group template request parameters. type ExportTemplateRequest struct { // ResourcesProperty - The IDs of the resources to filter the export by. To export all resources, supply an array with single entry '*'. @@ -1236,6 +1254,12 @@ type GroupProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for GroupProperties. +func (gp GroupProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GroupsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation. type GroupsDeleteFuture struct { azure.FutureAPI @@ -1477,6 +1501,12 @@ type ManagementErrorWithDetails struct { Details *[]ManagementErrorWithDetails `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ManagementErrorWithDetails. +func (mewd ManagementErrorWithDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MoveInfo parameters of move resources. type MoveInfo struct { // ResourcesProperty - The IDs of the resources. diff --git a/services/resources/mgmt/2018-03-01/policy/_meta.json b/services/resources/mgmt/2018-03-01/policy/_meta.json index 8a5841e8ea5c..c0240e41c738 100644 --- a/services/resources/mgmt/2018-03-01/policy/_meta.json +++ b/services/resources/mgmt/2018-03-01/policy/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "tag": "package-policy-2018-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-policy-2018-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-policy-2018-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/resources/mgmt/2018-05-01/policy/_meta.json b/services/resources/mgmt/2018-05-01/policy/_meta.json index 7347d7fc55a2..32a60e874243 100644 --- a/services/resources/mgmt/2018-05-01/policy/_meta.json +++ b/services/resources/mgmt/2018-05-01/policy/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "tag": "package-policy-2018-05", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-policy-2018-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-policy-2018-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/resources/mgmt/2018-05-01/resources/CHANGELOG.md b/services/resources/mgmt/2018-05-01/resources/CHANGELOG.md index 52911e4cc5e4..b756f0b16b1f 100644 --- a/services/resources/mgmt/2018-05-01/resources/CHANGELOG.md +++ b/services/resources/mgmt/2018-05-01/resources/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. DeploymentOperationProperties.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. GroupProperties.MarshalJSON() ([]byte, error) +1. IdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. ManagementErrorWithDetails.MarshalJSON() ([]byte, error) diff --git a/services/resources/mgmt/2018-05-01/resources/_meta.json b/services/resources/mgmt/2018-05-01/resources/_meta.json index 3bb8eec4fd91..19a97c939735 100644 --- a/services/resources/mgmt/2018-05-01/resources/_meta.json +++ b/services/resources/mgmt/2018-05-01/resources/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "tag": "package-resources-2018-05", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-resources-2018-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-resources-2018-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/resources/mgmt/2018-05-01/resources/models.go b/services/resources/mgmt/2018-05-01/resources/models.go index 0b2bcab50d73..1de7478600bb 100644 --- a/services/resources/mgmt/2018-05-01/resources/models.go +++ b/services/resources/mgmt/2018-05-01/resources/models.go @@ -483,6 +483,12 @@ type DeploymentOperationProperties struct { Response *HTTPMessage `json:"response,omitempty"` } +// MarshalJSON is the custom marshaler for DeploymentOperationProperties. +func (dop DeploymentOperationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeploymentOperationsListResult list of deployment operations. type DeploymentOperationsListResult struct { autorest.Response `json:"-"` @@ -913,6 +919,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.) type ErrorResponse struct { @@ -928,6 +940,12 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExportTemplateRequest export resource group template request parameters. type ExportTemplateRequest struct { // ResourcesProperty - The IDs of the resources to filter the export by. To export all resources, supply an array with single entry '*'. @@ -1321,6 +1339,12 @@ type GroupProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for GroupProperties. +func (gp GroupProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GroupsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation. type GroupsDeleteFuture struct { azure.FutureAPI @@ -1395,6 +1419,12 @@ type IdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for IdentityUserAssignedIdentitiesValue. +func (iAiv IdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListResult list of resource groups. type ListResult struct { autorest.Response `json:"-"` @@ -1575,6 +1605,12 @@ type ManagementErrorWithDetails struct { Details *[]ManagementErrorWithDetails `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ManagementErrorWithDetails. +func (mewd ManagementErrorWithDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MoveInfo parameters of move resources. type MoveInfo struct { // ResourcesProperty - The IDs of the resources. diff --git a/services/resources/mgmt/2018-06-01/managedapplications/_meta.json b/services/resources/mgmt/2018-06-01/managedapplications/_meta.json index 98494ef5c701..9a5bd79bef82 100644 --- a/services/resources/mgmt/2018-06-01/managedapplications/_meta.json +++ b/services/resources/mgmt/2018-06-01/managedapplications/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "tag": "package-managedapplications-2018-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-managedapplications-2018-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-managedapplications-2018-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/resources/mgmt/2018-06-01/subscriptions/CHANGELOG.md b/services/resources/mgmt/2018-06-01/subscriptions/CHANGELOG.md index 52911e4cc5e4..f82fe736f26d 100644 --- a/services/resources/mgmt/2018-06-01/subscriptions/CHANGELOG.md +++ b/services/resources/mgmt/2018-06-01/subscriptions/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. Location.MarshalJSON() ([]byte, error) +1. Policies.MarshalJSON() ([]byte, error) +1. TenantIDDescription.MarshalJSON() ([]byte, error) diff --git a/services/resources/mgmt/2018-06-01/subscriptions/_meta.json b/services/resources/mgmt/2018-06-01/subscriptions/_meta.json index fda14d3b55da..e0206b13a95e 100644 --- a/services/resources/mgmt/2018-06-01/subscriptions/_meta.json +++ b/services/resources/mgmt/2018-06-01/subscriptions/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "tag": "package-subscriptions-2018-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-subscriptions-2018-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-subscriptions-2018-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/resources/mgmt/2018-06-01/subscriptions/models.go b/services/resources/mgmt/2018-06-01/subscriptions/models.go index 16902e30728a..f208562725ea 100644 --- a/services/resources/mgmt/2018-06-01/subscriptions/models.go +++ b/services/resources/mgmt/2018-06-01/subscriptions/models.go @@ -219,6 +219,12 @@ type Location struct { Longitude *string `json:"longitude,omitempty"` } +// MarshalJSON is the custom marshaler for Location. +func (l Location) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LocationListResult location list operation response. type LocationListResult struct { autorest.Response `json:"-"` @@ -416,6 +422,12 @@ type Policies struct { SpendingLimit SpendingLimit `json:"spendingLimit,omitempty"` } +// MarshalJSON is the custom marshaler for Policies. +func (p Policies) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceName name and Type of the Resource type ResourceName struct { // Name - Name of the resource @@ -471,6 +483,12 @@ type TenantIDDescription struct { Domains *[]string `json:"domains,omitempty"` } +// MarshalJSON is the custom marshaler for TenantIDDescription. +func (tid TenantIDDescription) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TenantListResult tenant Ids information. type TenantListResult struct { autorest.Response `json:"-"` diff --git a/services/resources/mgmt/2019-01-01/policy/_meta.json b/services/resources/mgmt/2019-01-01/policy/_meta.json index bf867d3983f5..ec219870e484 100644 --- a/services/resources/mgmt/2019-01-01/policy/_meta.json +++ b/services/resources/mgmt/2019-01-01/policy/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "tag": "package-policy-2019-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-policy-2019-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-policy-2019-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/resources/mgmt/2019-03-01/resources/CHANGELOG.md b/services/resources/mgmt/2019-03-01/resources/CHANGELOG.md index 52911e4cc5e4..b756f0b16b1f 100644 --- a/services/resources/mgmt/2019-03-01/resources/CHANGELOG.md +++ b/services/resources/mgmt/2019-03-01/resources/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. DeploymentOperationProperties.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. GroupProperties.MarshalJSON() ([]byte, error) +1. IdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. ManagementErrorWithDetails.MarshalJSON() ([]byte, error) diff --git a/services/resources/mgmt/2019-03-01/resources/_meta.json b/services/resources/mgmt/2019-03-01/resources/_meta.json index 1604ce9b9fc8..b2568038fa17 100644 --- a/services/resources/mgmt/2019-03-01/resources/_meta.json +++ b/services/resources/mgmt/2019-03-01/resources/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "tag": "package-resources-2019-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-resources-2019-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-resources-2019-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/resources/mgmt/2019-03-01/resources/models.go b/services/resources/mgmt/2019-03-01/resources/models.go index b0e880e796e8..54eb7e61a2d7 100644 --- a/services/resources/mgmt/2019-03-01/resources/models.go +++ b/services/resources/mgmt/2019-03-01/resources/models.go @@ -483,6 +483,12 @@ type DeploymentOperationProperties struct { Response *HTTPMessage `json:"response,omitempty"` } +// MarshalJSON is the custom marshaler for DeploymentOperationProperties. +func (dop DeploymentOperationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeploymentOperationsListResult list of deployment operations. type DeploymentOperationsListResult struct { autorest.Response `json:"-"` @@ -913,6 +919,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.) type ErrorResponse struct { @@ -928,6 +940,12 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExportTemplateRequest export resource group template request parameters. type ExportTemplateRequest struct { // ResourcesProperty - The IDs of the resources to filter the export by. To export all resources, supply an array with single entry '*'. @@ -1321,6 +1339,12 @@ type GroupProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for GroupProperties. +func (gp GroupProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GroupsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation. type GroupsDeleteFuture struct { azure.FutureAPI @@ -1395,6 +1419,12 @@ type IdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for IdentityUserAssignedIdentitiesValue. +func (iAiv IdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListResult list of resource groups. type ListResult struct { autorest.Response `json:"-"` @@ -1575,6 +1605,12 @@ type ManagementErrorWithDetails struct { Details *[]ManagementErrorWithDetails `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ManagementErrorWithDetails. +func (mewd ManagementErrorWithDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MoveInfo parameters of move resources. type MoveInfo struct { // ResourcesProperty - The IDs of the resources. diff --git a/services/resources/mgmt/2019-05-01/resources/CHANGELOG.md b/services/resources/mgmt/2019-05-01/resources/CHANGELOG.md index 52911e4cc5e4..b756f0b16b1f 100644 --- a/services/resources/mgmt/2019-05-01/resources/CHANGELOG.md +++ b/services/resources/mgmt/2019-05-01/resources/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. DeploymentOperationProperties.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. GroupProperties.MarshalJSON() ([]byte, error) +1. IdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. ManagementErrorWithDetails.MarshalJSON() ([]byte, error) diff --git a/services/resources/mgmt/2019-05-01/resources/_meta.json b/services/resources/mgmt/2019-05-01/resources/_meta.json index 356d46251c31..46d7a97adb18 100644 --- a/services/resources/mgmt/2019-05-01/resources/_meta.json +++ b/services/resources/mgmt/2019-05-01/resources/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "tag": "package-resources-2019-05", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-resources-2019-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-resources-2019-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/resources/mgmt/2019-05-01/resources/models.go b/services/resources/mgmt/2019-05-01/resources/models.go index e13346360e88..15973ee3a93a 100644 --- a/services/resources/mgmt/2019-05-01/resources/models.go +++ b/services/resources/mgmt/2019-05-01/resources/models.go @@ -485,6 +485,12 @@ type DeploymentOperationProperties struct { Response *HTTPMessage `json:"response,omitempty"` } +// MarshalJSON is the custom marshaler for DeploymentOperationProperties. +func (dop DeploymentOperationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeploymentOperationsListResult list of deployment operations. type DeploymentOperationsListResult struct { autorest.Response `json:"-"` @@ -997,6 +1003,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.) type ErrorResponse struct { @@ -1012,6 +1024,12 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExportTemplateRequest export resource group template request parameters. type ExportTemplateRequest struct { // ResourcesProperty - The IDs of the resources to filter the export by. To export all resources, supply an array with single entry '*'. @@ -1407,6 +1425,12 @@ type GroupProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for GroupProperties. +func (gp GroupProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GroupsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation. type GroupsDeleteFuture struct { azure.FutureAPI @@ -1481,6 +1505,12 @@ type IdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for IdentityUserAssignedIdentitiesValue. +func (iAiv IdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListResult list of resource groups. type ListResult struct { autorest.Response `json:"-"` @@ -1661,6 +1691,12 @@ type ManagementErrorWithDetails struct { Details *[]ManagementErrorWithDetails `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for ManagementErrorWithDetails. +func (mewd ManagementErrorWithDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MoveInfo parameters of move resources. type MoveInfo struct { // ResourcesProperty - The IDs of the resources. diff --git a/services/resources/mgmt/2019-06-01/policy/_meta.json b/services/resources/mgmt/2019-06-01/policy/_meta.json index be2a03fdfda7..c35c56ea0d4e 100644 --- a/services/resources/mgmt/2019-06-01/policy/_meta.json +++ b/services/resources/mgmt/2019-06-01/policy/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "tag": "package-policy-2019-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-policy-2019-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-policy-2019-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/resources/mgmt/2019-06-01/subscriptions/CHANGELOG.md b/services/resources/mgmt/2019-06-01/subscriptions/CHANGELOG.md index 52911e4cc5e4..b72c0b60c12e 100644 --- a/services/resources/mgmt/2019-06-01/subscriptions/CHANGELOG.md +++ b/services/resources/mgmt/2019-06-01/subscriptions/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. Location.MarshalJSON() ([]byte, error) +1. ManagedByTenant.MarshalJSON() ([]byte, error) +1. Policies.MarshalJSON() ([]byte, error) +1. TenantIDDescription.MarshalJSON() ([]byte, error) diff --git a/services/resources/mgmt/2019-06-01/subscriptions/_meta.json b/services/resources/mgmt/2019-06-01/subscriptions/_meta.json index 88d6ed7f8f67..8b2c3a07cb97 100644 --- a/services/resources/mgmt/2019-06-01/subscriptions/_meta.json +++ b/services/resources/mgmt/2019-06-01/subscriptions/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "tag": "package-subscriptions-2019-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-subscriptions-2019-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-subscriptions-2019-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/resources/mgmt/2019-06-01/subscriptions/models.go b/services/resources/mgmt/2019-06-01/subscriptions/models.go index 88cc65ce3924..2581c9f03424 100644 --- a/services/resources/mgmt/2019-06-01/subscriptions/models.go +++ b/services/resources/mgmt/2019-06-01/subscriptions/models.go @@ -219,6 +219,12 @@ type Location struct { Longitude *string `json:"longitude,omitempty"` } +// MarshalJSON is the custom marshaler for Location. +func (l Location) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LocationListResult location list operation response. type LocationListResult struct { autorest.Response `json:"-"` @@ -232,6 +238,12 @@ type ManagedByTenant struct { TenantID *string `json:"tenantId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedByTenant. +func (mbt ManagedByTenant) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation microsoft.Resources operation type Operation struct { // Name - Operation name: {provider}/{resource}/{operation} @@ -422,6 +434,12 @@ type Policies struct { SpendingLimit SpendingLimit `json:"spendingLimit,omitempty"` } +// MarshalJSON is the custom marshaler for Policies. +func (p Policies) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceName name and Type of the Resource type ResourceName struct { // Name - Name of the resource @@ -484,6 +502,12 @@ type TenantIDDescription struct { Domains *[]string `json:"domains,omitempty"` } +// MarshalJSON is the custom marshaler for TenantIDDescription. +func (tid TenantIDDescription) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TenantListResult tenant Ids information. type TenantListResult struct { autorest.Response `json:"-"` diff --git a/services/resources/mgmt/2019-07-01/features/CHANGELOG.md b/services/resources/mgmt/2019-07-01/features/CHANGELOG.md index 52911e4cc5e4..5d81772aa166 100644 --- a/services/resources/mgmt/2019-07-01/features/CHANGELOG.md +++ b/services/resources/mgmt/2019-07-01/features/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. DeploymentOperationProperties.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. IdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. ResourceGroupProperties.MarshalJSON() ([]byte, error) diff --git a/services/resources/mgmt/2019-07-01/features/_meta.json b/services/resources/mgmt/2019-07-01/features/_meta.json index 8267a2b458f1..e7bf1772932e 100644 --- a/services/resources/mgmt/2019-07-01/features/_meta.json +++ b/services/resources/mgmt/2019-07-01/features/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "tag": "package-resources-2019-07", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-resources-2019-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-resources-2019-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/resources/mgmt/2019-07-01/features/models.go b/services/resources/mgmt/2019-07-01/features/models.go index 99f81f73fdc9..73831e3ed1dd 100644 --- a/services/resources/mgmt/2019-07-01/features/models.go +++ b/services/resources/mgmt/2019-07-01/features/models.go @@ -327,6 +327,12 @@ type DeploymentOperationProperties struct { Response *HTTPMessage `json:"response,omitempty"` } +// MarshalJSON is the custom marshaler for DeploymentOperationProperties. +func (dop DeploymentOperationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeploymentOperationsListResult list of deployment operations. type DeploymentOperationsListResult struct { autorest.Response `json:"-"` @@ -1119,6 +1125,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.) type ErrorResponse struct { @@ -1134,6 +1146,12 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExportTemplateRequest export resource group template request parameters. type ExportTemplateRequest struct { // Resources - The IDs of the resources to filter the export by. To export all resources, supply an array with single entry '*'. @@ -1309,6 +1327,12 @@ type IdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for IdentityUserAssignedIdentitiesValue. +func (iAiv IdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OnErrorDeployment deployment on error behavior. type OnErrorDeployment struct { // Type - The deployment on error behavior type. Possible values are LastSuccessful and SpecificDeployment. Possible values include: 'LastSuccessful', 'SpecificDeployment' @@ -2057,6 +2081,12 @@ type ResourceGroupProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceGroupProperties. +func (rgp ResourceGroupProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceGroupsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ResourceGroupsDeleteFuture struct { diff --git a/services/resources/mgmt/2019-07-01/managedapplications/CHANGELOG.md b/services/resources/mgmt/2019-07-01/managedapplications/CHANGELOG.md index 52911e4cc5e4..a4170f8e2b73 100644 --- a/services/resources/mgmt/2019-07-01/managedapplications/CHANGELOG.md +++ b/services/resources/mgmt/2019-07-01/managedapplications/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. UserAssignedResourceIdentity.MarshalJSON() ([]byte, error) diff --git a/services/resources/mgmt/2019-07-01/managedapplications/_meta.json b/services/resources/mgmt/2019-07-01/managedapplications/_meta.json index 4ee2f3c360ed..754c121a24c9 100644 --- a/services/resources/mgmt/2019-07-01/managedapplications/_meta.json +++ b/services/resources/mgmt/2019-07-01/managedapplications/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "tag": "package-managedapplications-2019-07", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-managedapplications-2019-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-managedapplications-2019-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/resources/mgmt/2019-07-01/managedapplications/models.go b/services/resources/mgmt/2019-07-01/managedapplications/models.go index 1e0dfc2bcf92..e575e0711cc0 100644 --- a/services/resources/mgmt/2019-07-01/managedapplications/models.go +++ b/services/resources/mgmt/2019-07-01/managedapplications/models.go @@ -1951,3 +1951,9 @@ type UserAssignedResourceIdentity struct { // TenantID - READ-ONLY; The tenant id of user assigned identity. TenantID *string `json:"tenantId,omitempty"` } + +// MarshalJSON is the custom marshaler for UserAssignedResourceIdentity. +func (uari UserAssignedResourceIdentity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/resources/mgmt/2019-09-01/policy/CHANGELOG.md b/services/resources/mgmt/2019-09-01/policy/CHANGELOG.md index 52911e4cc5e4..06e1d34a0b93 100644 --- a/services/resources/mgmt/2019-09-01/policy/CHANGELOG.md +++ b/services/resources/mgmt/2019-09-01/policy/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) diff --git a/services/resources/mgmt/2019-09-01/policy/_meta.json b/services/resources/mgmt/2019-09-01/policy/_meta.json index ab9bb7095fce..e99ce2876b54 100644 --- a/services/resources/mgmt/2019-09-01/policy/_meta.json +++ b/services/resources/mgmt/2019-09-01/policy/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "tag": "package-policy-2019-09", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-policy-2019-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-policy-2019-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/resources/mgmt/2019-09-01/policy/models.go b/services/resources/mgmt/2019-09-01/policy/models.go index 902b058ff463..cfa555d98158 100644 --- a/services/resources/mgmt/2019-09-01/policy/models.go +++ b/services/resources/mgmt/2019-09-01/policy/models.go @@ -676,6 +676,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.) type ErrorResponse struct { @@ -691,6 +697,12 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Identity identity for the resource. type Identity struct { // PrincipalID - READ-ONLY; The principal ID of the resource identity. diff --git a/services/resources/mgmt/2019-10-01/resources/CHANGELOG.md b/services/resources/mgmt/2019-10-01/resources/CHANGELOG.md index 52911e4cc5e4..8fab42054385 100644 --- a/services/resources/mgmt/2019-10-01/resources/CHANGELOG.md +++ b/services/resources/mgmt/2019-10-01/resources/CHANGELOG.md @@ -1,2 +1,13 @@ # Change History +## Additive Changes + +### New Funcs + +1. DeploymentOperationProperties.MarshalJSON() ([]byte, error) +1. DeploymentPropertiesExtended.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. GroupProperties.MarshalJSON() ([]byte, error) +1. IdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. Reference.MarshalJSON() ([]byte, error) diff --git a/services/resources/mgmt/2019-10-01/resources/_meta.json b/services/resources/mgmt/2019-10-01/resources/_meta.json index 01e562039186..610ca5e60390 100644 --- a/services/resources/mgmt/2019-10-01/resources/_meta.json +++ b/services/resources/mgmt/2019-10-01/resources/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "tag": "package-resources-2019-10", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-resources-2019-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-resources-2019-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/resources/mgmt/2019-10-01/resources/models.go b/services/resources/mgmt/2019-10-01/resources/models.go index 222f26bdbdee..a8ff88548ed3 100644 --- a/services/resources/mgmt/2019-10-01/resources/models.go +++ b/services/resources/mgmt/2019-10-01/resources/models.go @@ -527,6 +527,12 @@ type DeploymentOperationProperties struct { Response *HTTPMessage `json:"response,omitempty"` } +// MarshalJSON is the custom marshaler for DeploymentOperationProperties. +func (dop DeploymentOperationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeploymentOperationsListResult list of deployment operations. type DeploymentOperationsListResult struct { autorest.Response `json:"-"` @@ -752,6 +758,12 @@ type DeploymentPropertiesExtended struct { Error *ErrorResponse `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for DeploymentPropertiesExtended. +func (dpe DeploymentPropertiesExtended) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeploymentsCreateOrUpdateAtManagementGroupScopeFuture an abstraction for monitoring and retrieving the // results of a long-running operation. type DeploymentsCreateOrUpdateAtManagementGroupScopeFuture struct { @@ -1599,6 +1611,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.) type ErrorResponse struct { @@ -1614,6 +1632,12 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExportTemplateRequest export resource group template request parameters. type ExportTemplateRequest struct { // ResourcesProperty - The IDs of the resources to filter the export by. To export all resources, supply an array with single entry '*'. @@ -2009,6 +2033,12 @@ type GroupProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for GroupProperties. +func (gp GroupProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GroupsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation. type GroupsDeleteFuture struct { azure.FutureAPI @@ -2126,6 +2156,12 @@ type IdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for IdentityUserAssignedIdentitiesValue. +func (iAiv IdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListResult list of resource groups. type ListResult struct { autorest.Response `json:"-"` @@ -2823,6 +2859,12 @@ type Reference struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for Reference. +func (r Reference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource specified resource. type Resource struct { // ID - READ-ONLY; Resource ID diff --git a/services/resources/mgmt/2019-11-01/managementgroups/CHANGELOG.md b/services/resources/mgmt/2019-11-01/managementgroups/CHANGELOG.md index 52911e4cc5e4..d752e0671e46 100644 --- a/services/resources/mgmt/2019-11-01/managementgroups/CHANGELOG.md +++ b/services/resources/mgmt/2019-11-01/managementgroups/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) +1. CreateManagementGroupChildInfo.MarshalJSON() ([]byte, error) +1. OperationDisplayProperties.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OperationResults.MarshalJSON() ([]byte, error) +1. TenantBackfillStatusResult.MarshalJSON() ([]byte, error) diff --git a/services/resources/mgmt/2019-11-01/managementgroups/_meta.json b/services/resources/mgmt/2019-11-01/managementgroups/_meta.json index 46c38e8edf1e..0c76b8b5b0dd 100644 --- a/services/resources/mgmt/2019-11-01/managementgroups/_meta.json +++ b/services/resources/mgmt/2019-11-01/managementgroups/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/managementgroups/resource-manager/readme.md", "tag": "package-2019-11", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/managementgroups/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/managementgroups/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/resources/mgmt/2019-11-01/managementgroups/models.go b/services/resources/mgmt/2019-11-01/managementgroups/models.go index b45eaf4001a0..60e43d601e59 100644 --- a/services/resources/mgmt/2019-11-01/managementgroups/models.go +++ b/services/resources/mgmt/2019-11-01/managementgroups/models.go @@ -40,6 +40,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ChildInfo the child information of a management group. type ChildInfo struct { // Type - The fully qualified resource type which includes provider namespace (e.g. Microsoft.Management/managementGroups). Possible values include: 'Type1MicrosoftManagementmanagementGroups', 'Type1Subscriptions' @@ -72,6 +78,12 @@ type CreateManagementGroupChildInfo struct { Children *[]CreateManagementGroupChildInfo `json:"children,omitempty"` } +// MarshalJSON is the custom marshaler for CreateManagementGroupChildInfo. +func (cmgci CreateManagementGroupChildInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CreateManagementGroupDetails the details of a management group used during creation. type CreateManagementGroupDetails struct { // Version - READ-ONLY; The version number of the object. @@ -1270,6 +1282,12 @@ type OperationDisplayProperties struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplayProperties. +func (odp OperationDisplayProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult describes the result of the request to list Microsoft.Management operations. type OperationListResult struct { autorest.Response `json:"-"` @@ -1279,6 +1297,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -1442,6 +1466,12 @@ type OperationResults struct { Status *string `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for OperationResults. +func (or OperationResults) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ParentGroupInfo (Optional) The ID of the parent management group. type ParentGroupInfo struct { // ID - The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 @@ -1497,3 +1527,9 @@ type TenantBackfillStatusResult struct { // Status - READ-ONLY; The status of the Tenant Backfill. Possible values include: 'NotStarted', 'NotStartedButGroupsExist', 'Started', 'Failed', 'Cancelled', 'Completed' Status Status `json:"status,omitempty"` } + +// MarshalJSON is the custom marshaler for TenantBackfillStatusResult. +func (tbsr TenantBackfillStatusResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/resources/mgmt/2019-11-01/subscriptions/CHANGELOG.md b/services/resources/mgmt/2019-11-01/subscriptions/CHANGELOG.md index 52911e4cc5e4..058bfed6f4d5 100644 --- a/services/resources/mgmt/2019-11-01/subscriptions/CHANGELOG.md +++ b/services/resources/mgmt/2019-11-01/subscriptions/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. ManagedByTenant.MarshalJSON() ([]byte, error) +1. PairedRegion.MarshalJSON() ([]byte, error) +1. Policies.MarshalJSON() ([]byte, error) +1. TenantIDDescription.MarshalJSON() ([]byte, error) diff --git a/services/resources/mgmt/2019-11-01/subscriptions/_meta.json b/services/resources/mgmt/2019-11-01/subscriptions/_meta.json index 5a8914d64c5a..e89b32dfc946 100644 --- a/services/resources/mgmt/2019-11-01/subscriptions/_meta.json +++ b/services/resources/mgmt/2019-11-01/subscriptions/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "tag": "package-subscriptions-2019-11", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-subscriptions-2019-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-subscriptions-2019-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/resources/mgmt/2019-11-01/subscriptions/models.go b/services/resources/mgmt/2019-11-01/subscriptions/models.go index 8eae19b2fc13..7c96596d4244 100644 --- a/services/resources/mgmt/2019-11-01/subscriptions/models.go +++ b/services/resources/mgmt/2019-11-01/subscriptions/models.go @@ -268,6 +268,12 @@ type ManagedByTenant struct { TenantID *string `json:"tenantId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedByTenant. +func (mbt ManagedByTenant) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation microsoft.Resources operation type Operation struct { // Name - Operation name: {provider}/{resource}/{operation} @@ -458,6 +464,12 @@ type PairedRegion struct { SubscriptionID *string `json:"subscriptionId,omitempty"` } +// MarshalJSON is the custom marshaler for PairedRegion. +func (pr PairedRegion) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Policies subscription policies. type Policies struct { // LocationPlacementID - READ-ONLY; The subscription location placement ID. The ID indicates which regions are visible for a subscription. For example, a subscription with a location placement Id of Public_2014-09-01 has access to Azure public regions. @@ -468,6 +480,12 @@ type Policies struct { SpendingLimit SpendingLimit `json:"spendingLimit,omitempty"` } +// MarshalJSON is the custom marshaler for Policies. +func (p Policies) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceName name and Type of the Resource type ResourceName struct { // Name - Name of the resource @@ -535,6 +553,12 @@ type TenantIDDescription struct { Domains *[]string `json:"domains,omitempty"` } +// MarshalJSON is the custom marshaler for TenantIDDescription. +func (tid TenantIDDescription) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TenantListResult tenant Ids information. type TenantListResult struct { autorest.Response `json:"-"` diff --git a/services/resources/mgmt/2020-02-01/managementgroups/CHANGELOG.md b/services/resources/mgmt/2020-02-01/managementgroups/CHANGELOG.md index 52911e4cc5e4..db8e13c6c9e7 100644 --- a/services/resources/mgmt/2020-02-01/managementgroups/CHANGELOG.md +++ b/services/resources/mgmt/2020-02-01/managementgroups/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) +1. CreateManagementGroupChildInfo.MarshalJSON() ([]byte, error) +1. OperationDisplayProperties.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. TenantBackfillStatusResult.MarshalJSON() ([]byte, error) diff --git a/services/resources/mgmt/2020-02-01/managementgroups/_meta.json b/services/resources/mgmt/2020-02-01/managementgroups/_meta.json index 0be0a4322b90..7c0808b672d5 100644 --- a/services/resources/mgmt/2020-02-01/managementgroups/_meta.json +++ b/services/resources/mgmt/2020-02-01/managementgroups/_meta.json @@ -2,9 +2,9 @@ "commit": "92ab22b49bd085116af0c61fada2c6c360702e9e", "readme": "/_/azure-rest-api-specs/specification/managementgroups/resource-manager/readme.md", "tag": "package-2020-02", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/managementgroups/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/managementgroups/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/resources/mgmt/2020-02-01/managementgroups/models.go b/services/resources/mgmt/2020-02-01/managementgroups/models.go index 6caa129d465f..ee10123f8ed1 100644 --- a/services/resources/mgmt/2020-02-01/managementgroups/models.go +++ b/services/resources/mgmt/2020-02-01/managementgroups/models.go @@ -123,6 +123,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ChildInfo the child information of a management group. type ChildInfo struct { // Type - The fully qualified resource type which includes provider namespace (e.g. Microsoft.Management/managementGroups). Possible values include: 'Type1MicrosoftManagementmanagementGroups', 'Type1Subscriptions' @@ -155,6 +161,12 @@ type CreateManagementGroupChildInfo struct { Children *[]CreateManagementGroupChildInfo `json:"children,omitempty"` } +// MarshalJSON is the custom marshaler for CreateManagementGroupChildInfo. +func (cmgci CreateManagementGroupChildInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CreateManagementGroupDetails the details of a management group used during creation. type CreateManagementGroupDetails struct { // Version - READ-ONLY; The version number of the object. @@ -1571,6 +1583,12 @@ type OperationDisplayProperties struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplayProperties. +func (odp OperationDisplayProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult describes the result of the request to list Microsoft.Management operations. type OperationListResult struct { autorest.Response `json:"-"` @@ -1580,6 +1598,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -1856,3 +1880,9 @@ type TenantBackfillStatusResult struct { // Status - READ-ONLY; The status of the Tenant Backfill. Possible values include: 'NotStarted', 'NotStartedButGroupsExist', 'Started', 'Failed', 'Cancelled', 'Completed' Status Status `json:"status,omitempty"` } + +// MarshalJSON is the custom marshaler for TenantBackfillStatusResult. +func (tbsr TenantBackfillStatusResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/resources/mgmt/2020-05-01/managementgroups/CHANGELOG.md b/services/resources/mgmt/2020-05-01/managementgroups/CHANGELOG.md index 52911e4cc5e4..db8e13c6c9e7 100644 --- a/services/resources/mgmt/2020-05-01/managementgroups/CHANGELOG.md +++ b/services/resources/mgmt/2020-05-01/managementgroups/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) +1. CreateManagementGroupChildInfo.MarshalJSON() ([]byte, error) +1. OperationDisplayProperties.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. TenantBackfillStatusResult.MarshalJSON() ([]byte, error) diff --git a/services/resources/mgmt/2020-05-01/managementgroups/_meta.json b/services/resources/mgmt/2020-05-01/managementgroups/_meta.json index b1422e80b07a..3cdd90c7dc5e 100644 --- a/services/resources/mgmt/2020-05-01/managementgroups/_meta.json +++ b/services/resources/mgmt/2020-05-01/managementgroups/_meta.json @@ -2,9 +2,9 @@ "commit": "92ab22b49bd085116af0c61fada2c6c360702e9e", "readme": "/_/azure-rest-api-specs/specification/managementgroups/resource-manager/readme.md", "tag": "package-2020-05", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/managementgroups/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/managementgroups/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/resources/mgmt/2020-05-01/managementgroups/models.go b/services/resources/mgmt/2020-05-01/managementgroups/models.go index 6ba36eabd945..c3c8ae1a97d8 100644 --- a/services/resources/mgmt/2020-05-01/managementgroups/models.go +++ b/services/resources/mgmt/2020-05-01/managementgroups/models.go @@ -123,6 +123,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ChildInfo the child information of a management group. type ChildInfo struct { // Type - The fully qualified resource type which includes provider namespace (e.g. Microsoft.Management/managementGroups). Possible values include: 'Type1MicrosoftManagementmanagementGroups', 'Type1Subscriptions' @@ -151,6 +157,12 @@ type CreateManagementGroupChildInfo struct { Children *[]CreateManagementGroupChildInfo `json:"children,omitempty"` } +// MarshalJSON is the custom marshaler for CreateManagementGroupChildInfo. +func (cmgci CreateManagementGroupChildInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CreateManagementGroupDetails the details of a management group used during creation. type CreateManagementGroupDetails struct { // Version - READ-ONLY; The version number of the object. @@ -1734,6 +1746,12 @@ type OperationDisplayProperties struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplayProperties. +func (odp OperationDisplayProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult describes the result of the request to list Microsoft.Management operations. type OperationListResult struct { autorest.Response `json:"-"` @@ -1743,6 +1761,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -2101,3 +2125,9 @@ type TenantBackfillStatusResult struct { // Status - READ-ONLY; The status of the Tenant Backfill. Possible values include: 'NotStarted', 'NotStartedButGroupsExist', 'Started', 'Failed', 'Cancelled', 'Completed' Status Status `json:"status,omitempty"` } + +// MarshalJSON is the custom marshaler for TenantBackfillStatusResult. +func (tbsr TenantBackfillStatusResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/resources/mgmt/2020-06-01/resources/CHANGELOG.md b/services/resources/mgmt/2020-06-01/resources/CHANGELOG.md index 846c728eb2c0..4c24d5f70a5e 100644 --- a/services/resources/mgmt/2020-06-01/resources/CHANGELOG.md +++ b/services/resources/mgmt/2020-06-01/resources/CHANGELOG.md @@ -1,78 +1,15 @@ # Change History -## Breaking Changes - -### Removed Constants - -1. AliasPathAttributes.Modifiable -1. AliasPathAttributes.None -1. AliasPathTokenType.Any -1. AliasPathTokenType.Array -1. AliasPathTokenType.Boolean -1. AliasPathTokenType.Integer -1. AliasPathTokenType.NotSpecified -1. AliasPathTokenType.Number -1. AliasPathTokenType.Object -1. AliasPathTokenType.String -1. ChangeType.Create -1. ChangeType.Delete -1. ChangeType.Deploy -1. ChangeType.Ignore -1. ChangeType.Modify -1. ChangeType.NoChange -1. DeploymentMode.Complete -1. DeploymentMode.Incremental -1. OnErrorDeploymentType.LastSuccessful -1. OnErrorDeploymentType.SpecificDeployment -1. WhatIfResultFormat.FullResourcePayloads -1. WhatIfResultFormat.ResourceIDOnly - -### Signature Changes - -#### Funcs - -1. GroupsClient.Delete - - Params - - From: context.Context, string - - To: context.Context, string, string -1. GroupsClient.DeletePreparer - - Params - - From: context.Context, string - - To: context.Context, string, string - ## Additive Changes -### New Constants - -1. AliasPathAttributes.AliasPathAttributesModifiable -1. AliasPathAttributes.AliasPathAttributesNone -1. AliasPathTokenType.AliasPathTokenTypeAny -1. AliasPathTokenType.AliasPathTokenTypeArray -1. AliasPathTokenType.AliasPathTokenTypeBoolean -1. AliasPathTokenType.AliasPathTokenTypeInteger -1. AliasPathTokenType.AliasPathTokenTypeNotSpecified -1. AliasPathTokenType.AliasPathTokenTypeNumber -1. AliasPathTokenType.AliasPathTokenTypeObject -1. AliasPathTokenType.AliasPathTokenTypeString -1. ChangeType.ChangeTypeCreate -1. ChangeType.ChangeTypeDelete -1. ChangeType.ChangeTypeDeploy -1. ChangeType.ChangeTypeIgnore -1. ChangeType.ChangeTypeModify -1. ChangeType.ChangeTypeNoChange -1. DeploymentMode.DeploymentModeComplete -1. DeploymentMode.DeploymentModeIncremental -1. OnErrorDeploymentType.OnErrorDeploymentTypeLastSuccessful -1. OnErrorDeploymentType.OnErrorDeploymentTypeSpecificDeployment -1. WhatIfResultFormat.WhatIfResultFormatFullResourcePayloads -1. WhatIfResultFormat.WhatIfResultFormatResourceIDOnly - -### Struct Changes - -#### New Structs - -1. ZoneMapping - -#### New Struct Fields - -1. ProviderResourceType.ZoneMappings +### New Funcs + +1. APIProfile.MarshalJSON() ([]byte, error) +1. AliasPathMetadata.MarshalJSON() ([]byte, error) +1. DeploymentOperationProperties.MarshalJSON() ([]byte, error) +1. DeploymentPropertiesExtended.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. GroupProperties.MarshalJSON() ([]byte, error) +1. IdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. Reference.MarshalJSON() ([]byte, error) diff --git a/services/resources/mgmt/2020-06-01/resources/_meta.json b/services/resources/mgmt/2020-06-01/resources/_meta.json index ab2e593c391f..8ec3c949e440 100644 --- a/services/resources/mgmt/2020-06-01/resources/_meta.json +++ b/services/resources/mgmt/2020-06-01/resources/_meta.json @@ -2,9 +2,9 @@ "commit": "c2ea3a3ccd14293b4bd1d17e684ef9129f0dc604", "readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "tag": "package-resources-2020-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-resources-2020-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-resources-2020-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix" } diff --git a/services/resources/mgmt/2020-06-01/resources/models.go b/services/resources/mgmt/2020-06-01/resources/models.go index 015a731b2170..ed315572d386 100644 --- a/services/resources/mgmt/2020-06-01/resources/models.go +++ b/services/resources/mgmt/2020-06-01/resources/models.go @@ -92,6 +92,12 @@ type AliasPathMetadata struct { Attributes AliasPathAttributes `json:"attributes,omitempty"` } +// MarshalJSON is the custom marshaler for AliasPathMetadata. +func (apm AliasPathMetadata) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AliasPattern the type of the pattern for an alias path. type AliasPattern struct { // Phrase - The alias pattern phrase. @@ -110,6 +116,12 @@ type APIProfile struct { APIVersion *string `json:"apiVersion,omitempty"` } +// MarshalJSON is the custom marshaler for APIProfile. +func (ap APIProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicDependency deployment dependency information. type BasicDependency struct { // ID - The ID of the dependency. @@ -583,6 +595,12 @@ type DeploymentOperationProperties struct { Response *HTTPMessage `json:"response,omitempty"` } +// MarshalJSON is the custom marshaler for DeploymentOperationProperties. +func (dop DeploymentOperationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeploymentOperationsListResult list of deployment operations. type DeploymentOperationsListResult struct { autorest.Response `json:"-"` @@ -810,6 +828,12 @@ type DeploymentPropertiesExtended struct { Error *ErrorResponse `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for DeploymentPropertiesExtended. +func (dpe DeploymentPropertiesExtended) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeploymentsCreateOrUpdateAtManagementGroupScopeFuture an abstraction for monitoring and retrieving the // results of a long-running operation. type DeploymentsCreateOrUpdateAtManagementGroupScopeFuture struct { @@ -1659,6 +1683,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.) type ErrorResponse struct { @@ -1674,6 +1704,12 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExportTemplateRequest export resource group template request parameters. type ExportTemplateRequest struct { // ResourcesProperty - The IDs of the resources to filter the export by. To export all resources, supply an array with single entry '*'. @@ -2076,6 +2112,12 @@ type GroupProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for GroupProperties. +func (gp GroupProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GroupsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation. type GroupsDeleteFuture struct { azure.FutureAPI @@ -2193,6 +2235,12 @@ type IdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for IdentityUserAssignedIdentitiesValue. +func (iAiv IdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListResult list of resource groups. type ListResult struct { autorest.Response `json:"-"` @@ -2898,6 +2946,12 @@ type Reference struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for Reference. +func (r Reference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource specified resource. type Resource struct { // ID - READ-ONLY; Resource ID diff --git a/services/resources/mgmt/2020-10-01/resources/CHANGELOG.md b/services/resources/mgmt/2020-10-01/resources/CHANGELOG.md index b2ba44bdb566..4c24d5f70a5e 100644 --- a/services/resources/mgmt/2020-10-01/resources/CHANGELOG.md +++ b/services/resources/mgmt/2020-10-01/resources/CHANGELOG.md @@ -1,65 +1,15 @@ # Change History -## Breaking Changes - -### Removed Constants - -1. AliasPathAttributes.Modifiable -1. AliasPathAttributes.None -1. AliasPathTokenType.Any -1. AliasPathTokenType.Array -1. AliasPathTokenType.Boolean -1. AliasPathTokenType.Integer -1. AliasPathTokenType.NotSpecified -1. AliasPathTokenType.Number -1. AliasPathTokenType.Object -1. AliasPathTokenType.String -1. ChangeType.Create -1. ChangeType.Delete -1. ChangeType.Deploy -1. ChangeType.Ignore -1. ChangeType.Modify -1. ChangeType.NoChange -1. DeploymentMode.Complete -1. DeploymentMode.Incremental -1. OnErrorDeploymentType.LastSuccessful -1. OnErrorDeploymentType.SpecificDeployment -1. WhatIfResultFormat.FullResourcePayloads -1. WhatIfResultFormat.ResourceIDOnly - ## Additive Changes -### New Constants - -1. AliasPathAttributes.AliasPathAttributesModifiable -1. AliasPathAttributes.AliasPathAttributesNone -1. AliasPathTokenType.AliasPathTokenTypeAny -1. AliasPathTokenType.AliasPathTokenTypeArray -1. AliasPathTokenType.AliasPathTokenTypeBoolean -1. AliasPathTokenType.AliasPathTokenTypeInteger -1. AliasPathTokenType.AliasPathTokenTypeNotSpecified -1. AliasPathTokenType.AliasPathTokenTypeNumber -1. AliasPathTokenType.AliasPathTokenTypeObject -1. AliasPathTokenType.AliasPathTokenTypeString -1. ChangeType.ChangeTypeCreate -1. ChangeType.ChangeTypeDelete -1. ChangeType.ChangeTypeDeploy -1. ChangeType.ChangeTypeIgnore -1. ChangeType.ChangeTypeModify -1. ChangeType.ChangeTypeNoChange -1. DeploymentMode.DeploymentModeComplete -1. DeploymentMode.DeploymentModeIncremental -1. OnErrorDeploymentType.OnErrorDeploymentTypeLastSuccessful -1. OnErrorDeploymentType.OnErrorDeploymentTypeSpecificDeployment -1. WhatIfResultFormat.WhatIfResultFormatFullResourcePayloads -1. WhatIfResultFormat.WhatIfResultFormatResourceIDOnly - -### Struct Changes - -#### New Structs - -1. ZoneMapping - -#### New Struct Fields - -1. ProviderResourceType.ZoneMappings +### New Funcs + +1. APIProfile.MarshalJSON() ([]byte, error) +1. AliasPathMetadata.MarshalJSON() ([]byte, error) +1. DeploymentOperationProperties.MarshalJSON() ([]byte, error) +1. DeploymentPropertiesExtended.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. GroupProperties.MarshalJSON() ([]byte, error) +1. IdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. Reference.MarshalJSON() ([]byte, error) diff --git a/services/resources/mgmt/2020-10-01/resources/_meta.json b/services/resources/mgmt/2020-10-01/resources/_meta.json index 983c0bac155a..c06bab7b41fb 100644 --- a/services/resources/mgmt/2020-10-01/resources/_meta.json +++ b/services/resources/mgmt/2020-10-01/resources/_meta.json @@ -2,9 +2,9 @@ "commit": "c2ea3a3ccd14293b4bd1d17e684ef9129f0dc604", "readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "tag": "package-resources-2020-10", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-resources-2020-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-resources-2020-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix" } diff --git a/services/resources/mgmt/2020-10-01/resources/models.go b/services/resources/mgmt/2020-10-01/resources/models.go index 9b4934f474ae..5d8ee75c9261 100644 --- a/services/resources/mgmt/2020-10-01/resources/models.go +++ b/services/resources/mgmt/2020-10-01/resources/models.go @@ -92,6 +92,12 @@ type AliasPathMetadata struct { Attributes AliasPathAttributes `json:"attributes,omitempty"` } +// MarshalJSON is the custom marshaler for AliasPathMetadata. +func (apm AliasPathMetadata) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AliasPattern the type of the pattern for an alias path. type AliasPattern struct { // Phrase - The alias pattern phrase. @@ -110,6 +116,12 @@ type APIProfile struct { APIVersion *string `json:"apiVersion,omitempty"` } +// MarshalJSON is the custom marshaler for APIProfile. +func (ap APIProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicDependency deployment dependency information. type BasicDependency struct { // ID - The ID of the dependency. @@ -583,6 +595,12 @@ type DeploymentOperationProperties struct { Response *HTTPMessage `json:"response,omitempty"` } +// MarshalJSON is the custom marshaler for DeploymentOperationProperties. +func (dop DeploymentOperationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeploymentOperationsListResult list of deployment operations. type DeploymentOperationsListResult struct { autorest.Response `json:"-"` @@ -810,6 +828,12 @@ type DeploymentPropertiesExtended struct { Error *ErrorResponse `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for DeploymentPropertiesExtended. +func (dpe DeploymentPropertiesExtended) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeploymentsCreateOrUpdateAtManagementGroupScopeFuture an abstraction for monitoring and retrieving the // results of a long-running operation. type DeploymentsCreateOrUpdateAtManagementGroupScopeFuture struct { @@ -1659,6 +1683,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.) type ErrorResponse struct { @@ -1674,6 +1704,12 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExportTemplateRequest export resource group template request parameters. type ExportTemplateRequest struct { // ResourcesProperty - The IDs of the resources to filter the export by. To export all resources, supply an array with single entry '*'. @@ -2076,6 +2112,12 @@ type GroupProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for GroupProperties. +func (gp GroupProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GroupsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation. type GroupsDeleteFuture struct { azure.FutureAPI @@ -2193,6 +2235,12 @@ type IdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for IdentityUserAssignedIdentitiesValue. +func (iAiv IdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListResult list of resource groups. type ListResult struct { autorest.Response `json:"-"` @@ -2931,6 +2979,12 @@ type Reference struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for Reference. +func (r Reference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource specified resource. type Resource struct { // ID - READ-ONLY; Resource ID diff --git a/services/resources/mgmt/2021-01-01/subscriptions/CHANGELOG.md b/services/resources/mgmt/2021-01-01/subscriptions/CHANGELOG.md index 52911e4cc5e4..2fd699d40bed 100644 --- a/services/resources/mgmt/2021-01-01/subscriptions/CHANGELOG.md +++ b/services/resources/mgmt/2021-01-01/subscriptions/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. ManagedByTenant.MarshalJSON() ([]byte, error) +1. PairedRegion.MarshalJSON() ([]byte, error) +1. Policies.MarshalJSON() ([]byte, error) +1. TenantIDDescription.MarshalJSON() ([]byte, error) diff --git a/services/resources/mgmt/2021-01-01/subscriptions/_meta.json b/services/resources/mgmt/2021-01-01/subscriptions/_meta.json index fb43bd882a75..eb2bb5556627 100644 --- a/services/resources/mgmt/2021-01-01/subscriptions/_meta.json +++ b/services/resources/mgmt/2021-01-01/subscriptions/_meta.json @@ -2,9 +2,9 @@ "commit": "225e4a77704766b9b6529c40c2677b22b58da9b9", "readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "tag": "package-subscriptions-2021-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-subscriptions-2021-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-subscriptions-2021-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix" } diff --git a/services/resources/mgmt/2021-01-01/subscriptions/models.go b/services/resources/mgmt/2021-01-01/subscriptions/models.go index e3f45ee17c87..b4322705c5cd 100644 --- a/services/resources/mgmt/2021-01-01/subscriptions/models.go +++ b/services/resources/mgmt/2021-01-01/subscriptions/models.go @@ -43,6 +43,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.) type ErrorResponse struct { @@ -58,6 +64,12 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListResult subscription list operation response. type ListResult struct { autorest.Response `json:"-"` @@ -286,6 +298,12 @@ type ManagedByTenant struct { TenantID *string `json:"tenantId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedByTenant. +func (mbt ManagedByTenant) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation microsoft.Resources operation type Operation struct { // Name - Operation name: {provider}/{resource}/{operation} @@ -476,6 +494,12 @@ type PairedRegion struct { SubscriptionID *string `json:"subscriptionId,omitempty"` } +// MarshalJSON is the custom marshaler for PairedRegion. +func (pr PairedRegion) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Policies subscription policies. type Policies struct { // LocationPlacementID - READ-ONLY; The subscription location placement ID. The ID indicates which regions are visible for a subscription. For example, a subscription with a location placement Id of Public_2014-09-01 has access to Azure public regions. @@ -486,6 +510,12 @@ type Policies struct { SpendingLimit SpendingLimit `json:"spendingLimit,omitempty"` } +// MarshalJSON is the custom marshaler for Policies. +func (p Policies) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceName name and Type of the Resource type ResourceName struct { // Name - Name of the resource @@ -559,6 +589,12 @@ type TenantIDDescription struct { TenantBrandingLogoURL *string `json:"tenantBrandingLogoUrl,omitempty"` } +// MarshalJSON is the custom marshaler for TenantIDDescription. +func (tid TenantIDDescription) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TenantListResult tenant Ids information. type TenantListResult struct { autorest.Response `json:"-"` diff --git a/services/scheduler/mgmt/2016-01-01/scheduler/CHANGELOG.md b/services/scheduler/mgmt/2016-01-01/scheduler/CHANGELOG.md index 52911e4cc5e4..4bb82b198781 100644 --- a/services/scheduler/mgmt/2016-01-01/scheduler/CHANGELOG.md +++ b/services/scheduler/mgmt/2016-01-01/scheduler/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. JobHistoryDefinition.MarshalJSON() ([]byte, error) +1. JobHistoryDefinitionProperties.MarshalJSON() ([]byte, error) +1. JobStatus.MarshalJSON() ([]byte, error) diff --git a/services/scheduler/mgmt/2016-01-01/scheduler/_meta.json b/services/scheduler/mgmt/2016-01-01/scheduler/_meta.json index 70e8b2ad505b..47937722dbe9 100644 --- a/services/scheduler/mgmt/2016-01-01/scheduler/_meta.json +++ b/services/scheduler/mgmt/2016-01-01/scheduler/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/scheduler/resource-manager/readme.md", "tag": "package-2016-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/scheduler/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/scheduler/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/scheduler/mgmt/2016-01-01/scheduler/models.go b/services/scheduler/mgmt/2016-01-01/scheduler/models.go index 40924fcc7cd4..06aa29512fa2 100644 --- a/services/scheduler/mgmt/2016-01-01/scheduler/models.go +++ b/services/scheduler/mgmt/2016-01-01/scheduler/models.go @@ -377,6 +377,12 @@ type JobHistoryDefinition struct { Properties *JobHistoryDefinitionProperties `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for JobHistoryDefinition. +func (jhd JobHistoryDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobHistoryDefinitionProperties ... type JobHistoryDefinitionProperties struct { // StartTime - READ-ONLY; Gets the start time for this job. @@ -397,6 +403,12 @@ type JobHistoryDefinitionProperties struct { RepeatCount *int32 `json:"repeatCount,omitempty"` } +// MarshalJSON is the custom marshaler for JobHistoryDefinitionProperties. +func (jhdp JobHistoryDefinitionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobHistoryFilter ... type JobHistoryFilter struct { // Status - Gets or sets the job execution status. Possible values include: 'Completed', 'Failed', 'Postponed' @@ -816,6 +828,12 @@ type JobStatus struct { NextExecutionTime *date.Time `json:"nextExecutionTime,omitempty"` } +// MarshalJSON is the custom marshaler for JobStatus. +func (js JobStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OAuthAuthentication ... type OAuthAuthentication struct { // Secret - Gets or sets the secret. diff --git a/services/scheduler/mgmt/2016-03-01/scheduler/CHANGELOG.md b/services/scheduler/mgmt/2016-03-01/scheduler/CHANGELOG.md index 52911e4cc5e4..4bb82b198781 100644 --- a/services/scheduler/mgmt/2016-03-01/scheduler/CHANGELOG.md +++ b/services/scheduler/mgmt/2016-03-01/scheduler/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. JobHistoryDefinition.MarshalJSON() ([]byte, error) +1. JobHistoryDefinitionProperties.MarshalJSON() ([]byte, error) +1. JobStatus.MarshalJSON() ([]byte, error) diff --git a/services/scheduler/mgmt/2016-03-01/scheduler/_meta.json b/services/scheduler/mgmt/2016-03-01/scheduler/_meta.json index e406a03c0e45..358d3380f297 100644 --- a/services/scheduler/mgmt/2016-03-01/scheduler/_meta.json +++ b/services/scheduler/mgmt/2016-03-01/scheduler/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/scheduler/resource-manager/readme.md", "tag": "package-2016-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/scheduler/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/scheduler/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/scheduler/mgmt/2016-03-01/scheduler/models.go b/services/scheduler/mgmt/2016-03-01/scheduler/models.go index 6ad14baa7ad0..7109b540d0a9 100644 --- a/services/scheduler/mgmt/2016-03-01/scheduler/models.go +++ b/services/scheduler/mgmt/2016-03-01/scheduler/models.go @@ -725,6 +725,12 @@ type JobHistoryDefinition struct { Properties *JobHistoryDefinitionProperties `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for JobHistoryDefinition. +func (jhd JobHistoryDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobHistoryDefinitionProperties ... type JobHistoryDefinitionProperties struct { // StartTime - READ-ONLY; Gets the start time for this job. @@ -745,6 +751,12 @@ type JobHistoryDefinitionProperties struct { RepeatCount *int32 `json:"repeatCount,omitempty"` } +// MarshalJSON is the custom marshaler for JobHistoryDefinitionProperties. +func (jhdp JobHistoryDefinitionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobHistoryFilter ... type JobHistoryFilter struct { // Status - Gets or sets the job execution status. Possible values include: 'Completed', 'Failed', 'Postponed' @@ -1164,6 +1176,12 @@ type JobStatus struct { NextExecutionTime *date.Time `json:"nextExecutionTime,omitempty"` } +// MarshalJSON is the custom marshaler for JobStatus. +func (js JobStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OAuthAuthentication ... type OAuthAuthentication struct { // Secret - Gets or sets the secret, return value will always be empty. diff --git a/services/search/mgmt/2015-02-28/search/CHANGELOG.md b/services/search/mgmt/2015-02-28/search/CHANGELOG.md index 52911e4cc5e4..bee2b17cee6f 100644 --- a/services/search/mgmt/2015-02-28/search/CHANGELOG.md +++ b/services/search/mgmt/2015-02-28/search/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. AdminKeyResult.MarshalJSON() ([]byte, error) +1. ListQueryKeysResult.MarshalJSON() ([]byte, error) +1. QueryKey.MarshalJSON() ([]byte, error) +1. ServiceListResult.MarshalJSON() ([]byte, error) diff --git a/services/search/mgmt/2015-02-28/search/_meta.json b/services/search/mgmt/2015-02-28/search/_meta.json index d593ce1f4445..14c5c794cd59 100644 --- a/services/search/mgmt/2015-02-28/search/_meta.json +++ b/services/search/mgmt/2015-02-28/search/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/search/resource-manager/readme.md", "tag": "package-2015-02", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2015-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/search/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2015-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/search/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/search/mgmt/2015-02-28/search/models.go b/services/search/mgmt/2015-02-28/search/models.go index 43a12e307127..82b27150572a 100644 --- a/services/search/mgmt/2015-02-28/search/models.go +++ b/services/search/mgmt/2015-02-28/search/models.go @@ -23,6 +23,12 @@ type AdminKeyResult struct { SecondaryKey *string `json:"secondaryKey,omitempty"` } +// MarshalJSON is the custom marshaler for AdminKeyResult. +func (akr AdminKeyResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListQueryKeysResult response containing the query API keys for a given Azure Search service. type ListQueryKeysResult struct { autorest.Response `json:"-"` @@ -30,6 +36,12 @@ type ListQueryKeysResult struct { Value *[]QueryKey `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ListQueryKeysResult. +func (lqkr ListQueryKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QueryKey describes an API key for a given Azure Search service that has permissions for query operations // only. type QueryKey struct { @@ -39,6 +51,12 @@ type QueryKey struct { Key *string `json:"key,omitempty"` } +// MarshalJSON is the custom marshaler for QueryKey. +func (qk QueryKey) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource ... type Resource struct { // ID - READ-ONLY; Resource Id @@ -97,6 +115,12 @@ type ServiceListResult struct { Value *[]ServiceResource `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceListResult. +func (slr ServiceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceProperties defines properties of an Azure Search service that can be modified. type ServiceProperties struct { // Sku - The SKU of the Search Service, which determines price tier and capacity limits. diff --git a/services/search/mgmt/2015-08-19/search/CHANGELOG.md b/services/search/mgmt/2015-08-19/search/CHANGELOG.md index 52911e4cc5e4..a52a873f1ac6 100644 --- a/services/search/mgmt/2015-08-19/search/CHANGELOG.md +++ b/services/search/mgmt/2015-08-19/search/CHANGELOG.md @@ -1,2 +1,14 @@ # Change History +## Additive Changes + +### New Funcs + +1. AdminKeyResult.MarshalJSON() ([]byte, error) +1. CheckNameAvailabilityOutput.MarshalJSON() ([]byte, error) +1. ListQueryKeysResult.MarshalJSON() ([]byte, error) +1. Operation.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. QueryKey.MarshalJSON() ([]byte, error) +1. ServiceListResult.MarshalJSON() ([]byte, error) diff --git a/services/search/mgmt/2015-08-19/search/_meta.json b/services/search/mgmt/2015-08-19/search/_meta.json index 3dc5ebb78eb7..99258b9a406f 100644 --- a/services/search/mgmt/2015-08-19/search/_meta.json +++ b/services/search/mgmt/2015-08-19/search/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/search/resource-manager/readme.md", "tag": "package-2015-08", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2015-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/search/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2015-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/search/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/search/mgmt/2015-08-19/search/models.go b/services/search/mgmt/2015-08-19/search/models.go index a849cfe78258..56223fd03137 100644 --- a/services/search/mgmt/2015-08-19/search/models.go +++ b/services/search/mgmt/2015-08-19/search/models.go @@ -27,6 +27,12 @@ type AdminKeyResult struct { SecondaryKey *string `json:"secondaryKey,omitempty"` } +// MarshalJSON is the custom marshaler for AdminKeyResult. +func (akr AdminKeyResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CheckNameAvailabilityInput input of check name availability API. type CheckNameAvailabilityInput struct { // Name - The Search service name to validate. Search service names must only contain lowercase letters, digits or dashes, cannot use dash as the first two or last one characters, cannot contain consecutive dashes, and must be between 2 and 60 characters in length. @@ -46,6 +52,12 @@ type CheckNameAvailabilityOutput struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityOutput. +func (cnao CheckNameAvailabilityOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError contains information about an API error. type CloudError struct { // Error - Describes a particular API error with an error code and a message. @@ -90,6 +102,12 @@ type ListQueryKeysResult struct { Value *[]QueryKey `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ListQueryKeysResult. +func (lqkr ListQueryKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation describes a REST API operation. type Operation struct { // Name - READ-ONLY; The name of the operation. This name is of the form {provider}/{resource}/{operation}. @@ -98,6 +116,12 @@ type Operation struct { Display *OperationDisplay `json:"display,omitempty"` } +// MarshalJSON is the custom marshaler for Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationDisplay the object that describes the operation. type OperationDisplay struct { // Provider - READ-ONLY; The friendly name of the resource provider. @@ -110,6 +134,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult the result of the request to list REST API operations. It contains a list of // operations and a URL to get the next set of results. type OperationListResult struct { @@ -120,6 +150,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QueryKey describes an API key for a given Azure Cognitive Search service that has permissions for query // operations only. type QueryKey struct { @@ -130,6 +166,12 @@ type QueryKey struct { Key *string `json:"key,omitempty"` } +// MarshalJSON is the custom marshaler for QueryKey. +func (qk QueryKey) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource base type for all Azure resources. type Resource struct { // ID - READ-ONLY; The ID of the resource. This can be used with the Azure Resource Manager to link resources together. @@ -297,6 +339,12 @@ type ServiceListResult struct { Value *[]Service `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceListResult. +func (slr ServiceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceProperties properties of the Search service. type ServiceProperties struct { // ReplicaCount - The number of replicas in the Search service. If specified, it must be a value between 1 and 12 inclusive for standard SKUs or between 1 and 3 inclusive for basic SKU. diff --git a/services/search/mgmt/2020-03-13/search/CHANGELOG.md b/services/search/mgmt/2020-03-13/search/CHANGELOG.md index 52911e4cc5e4..a9a7efa0dd3b 100644 --- a/services/search/mgmt/2020-03-13/search/CHANGELOG.md +++ b/services/search/mgmt/2020-03-13/search/CHANGELOG.md @@ -1,2 +1,18 @@ # Change History +## Additive Changes + +### New Funcs + +1. AdminKeyResult.MarshalJSON() ([]byte, error) +1. CheckNameAvailabilityOutput.MarshalJSON() ([]byte, error) +1. ListQueryKeysResult.MarshalJSON() ([]byte, error) +1. Operation.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. PrivateEndpointConnectionListResult.MarshalJSON() ([]byte, error) +1. PrivateLinkResource.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceProperties.MarshalJSON() ([]byte, error) +1. PrivateLinkResourcesResult.MarshalJSON() ([]byte, error) +1. QueryKey.MarshalJSON() ([]byte, error) +1. ServiceListResult.MarshalJSON() ([]byte, error) diff --git a/services/search/mgmt/2020-03-13/search/_meta.json b/services/search/mgmt/2020-03-13/search/_meta.json index 9dfbd04a2ce5..2ac8dc6dc3a7 100644 --- a/services/search/mgmt/2020-03-13/search/_meta.json +++ b/services/search/mgmt/2020-03-13/search/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/search/resource-manager/readme.md", "tag": "package-2020-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/search/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/search/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/search/mgmt/2020-03-13/search/models.go b/services/search/mgmt/2020-03-13/search/models.go index 8c25a7d6d053..5919f59892af 100644 --- a/services/search/mgmt/2020-03-13/search/models.go +++ b/services/search/mgmt/2020-03-13/search/models.go @@ -29,6 +29,12 @@ type AdminKeyResult struct { SecondaryKey *string `json:"secondaryKey,omitempty"` } +// MarshalJSON is the custom marshaler for AdminKeyResult. +func (akr AdminKeyResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CheckNameAvailabilityInput input of check name availability API. type CheckNameAvailabilityInput struct { // Name - The Search service name to validate. Search service names must only contain lowercase letters, digits or dashes, cannot use dash as the first two or last one characters, cannot contain consecutive dashes, and must be between 2 and 60 characters in length. @@ -48,6 +54,12 @@ type CheckNameAvailabilityOutput struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityOutput. +func (cnao CheckNameAvailabilityOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError contains information about an API error. type CloudError struct { // Error - Describes a particular API error with an error code and a message. @@ -100,6 +112,12 @@ type ListQueryKeysResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListQueryKeysResult. +func (lqkr ListQueryKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListQueryKeysResultIterator provides access to a complete listing of QueryKey values. type ListQueryKeysResultIterator struct { i int @@ -265,6 +283,12 @@ type Operation struct { Display *OperationDisplay `json:"display,omitempty"` } +// MarshalJSON is the custom marshaler for Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationDisplay the object that describes the operation. type OperationDisplay struct { // Provider - READ-ONLY; The friendly name of the resource provider. @@ -277,6 +301,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult the result of the request to list REST API operations. It contains a list of // operations and a URL to get the next set of results. type OperationListResult struct { @@ -287,6 +317,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection describes an existing Private Endpoint connection to the Azure Cognitive // Search service. type PrivateEndpointConnection struct { @@ -319,6 +355,12 @@ type PrivateEndpointConnectionListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpointConnectionListResult. +func (peclr PrivateEndpointConnectionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnectionListResultIterator provides access to a complete listing of // PrivateEndpointConnection values. type PrivateEndpointConnectionListResultIterator struct { @@ -509,6 +551,12 @@ type PrivateLinkResource struct { Properties *PrivateLinkResourceProperties `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResource. +func (plr PrivateLinkResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkResourceProperties describes the properties of a supported private link resource for the // Azure Cognitive Search service. type PrivateLinkResourceProperties struct { @@ -520,6 +568,12 @@ type PrivateLinkResourceProperties struct { RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. +func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkResourcesResult response containing a list of supported Private Link Resources. type PrivateLinkResourcesResult struct { autorest.Response `json:"-"` @@ -527,6 +581,12 @@ type PrivateLinkResourcesResult struct { Value *[]PrivateLinkResource `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourcesResult. +func (plrr PrivateLinkResourcesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QueryKey describes an API key for a given Azure Cognitive Search service that has permissions for query // operations only. type QueryKey struct { @@ -537,6 +597,12 @@ type QueryKey struct { Key *string `json:"key,omitempty"` } +// MarshalJSON is the custom marshaler for QueryKey. +func (qk QueryKey) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource base type for all Azure resources. type Resource struct { // ID - READ-ONLY; The ID of the resource. This can be used with the Azure Resource Manager to link resources together. @@ -706,6 +772,12 @@ type ServiceListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceListResult. +func (slr ServiceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceListResultIterator provides access to a complete listing of Service values. type ServiceListResultIterator struct { i int diff --git a/services/search/mgmt/2020-08-01/search/CHANGELOG.md b/services/search/mgmt/2020-08-01/search/CHANGELOG.md index 52911e4cc5e4..6647e79e0c7a 100644 --- a/services/search/mgmt/2020-08-01/search/CHANGELOG.md +++ b/services/search/mgmt/2020-08-01/search/CHANGELOG.md @@ -1,2 +1,23 @@ # Change History +## Additive Changes + +### New Funcs + +1. AdminKeyResult.MarshalJSON() ([]byte, error) +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. CheckNameAvailabilityOutput.MarshalJSON() ([]byte, error) +1. ListQueryKeysResult.MarshalJSON() ([]byte, error) +1. Operation.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. PrivateEndpointConnectionListResult.MarshalJSON() ([]byte, error) +1. PrivateLinkResource.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceProperties.MarshalJSON() ([]byte, error) +1. PrivateLinkResourcesResult.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. QueryKey.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ServiceListResult.MarshalJSON() ([]byte, error) +1. ShareablePrivateLinkResourceProperties.MarshalJSON() ([]byte, error) +1. ShareablePrivateLinkResourceType.MarshalJSON() ([]byte, error) diff --git a/services/search/mgmt/2020-08-01/search/_meta.json b/services/search/mgmt/2020-08-01/search/_meta.json index 26040c74d845..34797570d019 100644 --- a/services/search/mgmt/2020-08-01/search/_meta.json +++ b/services/search/mgmt/2020-08-01/search/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/search/resource-manager/readme.md", "tag": "package-2020-08", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/search/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/search/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/search/mgmt/2020-08-01/search/models.go b/services/search/mgmt/2020-08-01/search/models.go index cf79401763b7..55f3c9b3693d 100644 --- a/services/search/mgmt/2020-08-01/search/models.go +++ b/services/search/mgmt/2020-08-01/search/models.go @@ -29,6 +29,12 @@ type AdminKeyResult struct { SecondaryKey *string `json:"secondaryKey,omitempty"` } +// MarshalJSON is the custom marshaler for AdminKeyResult. +func (akr AdminKeyResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AsyncOperationResult the details of a long running asynchronous shared private link resource operation type AsyncOperationResult struct { // Status - The current status of the long running asynchronous shared private link resource operation. Possible values include: 'SharedPrivateLinkResourceAsyncOperationResultRunning', 'SharedPrivateLinkResourceAsyncOperationResultSucceeded', 'SharedPrivateLinkResourceAsyncOperationResultFailed' @@ -47,6 +53,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CheckNameAvailabilityInput input of check name availability API. type CheckNameAvailabilityInput struct { // Name - The search service name to validate. Search service names must only contain lowercase letters, digits or dashes, cannot use dash as the first two or last one characters, cannot contain consecutive dashes, and must be between 2 and 60 characters in length. @@ -66,6 +78,12 @@ type CheckNameAvailabilityOutput struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityOutput. +func (cnao CheckNameAvailabilityOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError contains information about an API error. type CloudError struct { // Error - Describes a particular API error with an error code and a message. @@ -118,6 +136,12 @@ type ListQueryKeysResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListQueryKeysResult. +func (lqkr ListQueryKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListQueryKeysResultIterator provides access to a complete listing of QueryKey values. type ListQueryKeysResultIterator struct { i int @@ -283,6 +307,12 @@ type Operation struct { Display *OperationDisplay `json:"display,omitempty"` } +// MarshalJSON is the custom marshaler for Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationDisplay the object that describes the operation. type OperationDisplay struct { // Provider - READ-ONLY; The friendly name of the resource provider. @@ -295,6 +325,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult the result of the request to list REST API operations. It contains a list of // operations and a URL to get the next set of results. type OperationListResult struct { @@ -305,6 +341,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection describes an existing Private Endpoint connection to the Azure Cognitive // Search service. type PrivateEndpointConnection struct { @@ -337,6 +379,12 @@ type PrivateEndpointConnectionListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpointConnectionListResult. +func (peclr PrivateEndpointConnectionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnectionListResultIterator provides access to a complete listing of // PrivateEndpointConnection values. type PrivateEndpointConnectionListResultIterator struct { @@ -527,6 +575,12 @@ type PrivateLinkResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResource. +func (plr PrivateLinkResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkResourceProperties describes the properties of a supported private link resource for the // Azure Cognitive Search service. For a given API version, this represents the 'supported' groupIds when // creating a shared private link resource. @@ -541,6 +595,12 @@ type PrivateLinkResourceProperties struct { ShareablePrivateLinkResourceTypes *[]ShareablePrivateLinkResourceType `json:"shareablePrivateLinkResourceTypes,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. +func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkResourcesResult response containing a list of supported Private Link Resources. type PrivateLinkResourcesResult struct { autorest.Response `json:"-"` @@ -548,6 +608,12 @@ type PrivateLinkResourcesResult struct { Value *[]PrivateLinkResource `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourcesResult. +func (plrr PrivateLinkResourcesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProxyResource the resource model definition for an Azure Resource Manager proxy resource. It will have // everything other than required location and tags type ProxyResource struct { @@ -559,6 +625,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QueryKey describes an API key for a given Azure Cognitive Search service that has permissions for query // operations only. type QueryKey struct { @@ -569,6 +641,12 @@ type QueryKey struct { Key *string `json:"key,omitempty"` } +// MarshalJSON is the custom marshaler for QueryKey. +func (qk QueryKey) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -579,6 +657,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Service describes an Azure Cognitive Search service and its current state. type Service struct { autorest.Response `json:"-"` @@ -717,6 +801,12 @@ type ServiceListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceListResult. +func (slr ServiceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceListResultIterator provides access to a complete listing of Service values. type ServiceListResultIterator struct { i int @@ -1094,6 +1184,12 @@ type ShareablePrivateLinkResourceProperties struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for ShareablePrivateLinkResourceProperties. +func (splrp ShareablePrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ShareablePrivateLinkResourceType describes an resource type that has been onboarded to private link // service, supported by Azure Cognitive Search. type ShareablePrivateLinkResourceType struct { @@ -1103,6 +1199,12 @@ type ShareablePrivateLinkResourceType struct { Properties *ShareablePrivateLinkResourceProperties `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for ShareablePrivateLinkResourceType. +func (splrt ShareablePrivateLinkResourceType) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SharedPrivateLinkResource describes a Shared Private Link Resource managed by the Azure Cognitive Search // service. type SharedPrivateLinkResource struct { diff --git a/services/securityinsight/mgmt/2020-01-01/securityinsight/CHANGELOG.md b/services/securityinsight/mgmt/2020-01-01/securityinsight/CHANGELOG.md index 52911e4cc5e4..33419c738c54 100644 --- a/services/securityinsight/mgmt/2020-01-01/securityinsight/CHANGELOG.md +++ b/services/securityinsight/mgmt/2020-01-01/securityinsight/CHANGELOG.md @@ -1,2 +1,27 @@ # Change History +## Breaking Changes + +### Removed Constants + +1. Kind.KindKindAlertRule +1. Kind.KindKindFusion +1. Kind.KindKindMicrosoftSecurityIncidentCreation +1. Kind.KindKindScheduled + +## Additive Changes + +### New Constants + +1. Kind.KindAlertRule +1. Kind.KindFusion +1. Kind.KindMicrosoftSecurityIncidentCreation +1. Kind.KindScheduled + +### New Funcs + +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. IncidentAdditionalData.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ThreatIntelligence.MarshalJSON() ([]byte, error) diff --git a/services/securityinsight/mgmt/2020-01-01/securityinsight/_meta.json b/services/securityinsight/mgmt/2020-01-01/securityinsight/_meta.json index 47c3744227ac..80f6e0e94d05 100644 --- a/services/securityinsight/mgmt/2020-01-01/securityinsight/_meta.json +++ b/services/securityinsight/mgmt/2020-01-01/securityinsight/_meta.json @@ -2,9 +2,9 @@ "commit": "c2ea3a3ccd14293b4bd1d17e684ef9129f0dc604", "readme": "/_/azure-rest-api-specs/specification/securityinsights/resource-manager/readme.md", "tag": "package-2020-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/securityinsights/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/securityinsights/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix" } diff --git a/services/securityinsight/mgmt/2020-01-01/securityinsight/enums.go b/services/securityinsight/mgmt/2020-01-01/securityinsight/enums.go index 2bcef0f65c7b..53a6b1cea03a 100644 --- a/services/securityinsight/mgmt/2020-01-01/securityinsight/enums.go +++ b/services/securityinsight/mgmt/2020-01-01/securityinsight/enums.go @@ -233,19 +233,19 @@ func PossibleIncidentStatusValues() []IncidentStatus { type Kind string const ( - // KindKindAlertRule ... - KindKindAlertRule Kind = "AlertRule" - // KindKindFusion ... - KindKindFusion Kind = "Fusion" - // KindKindMicrosoftSecurityIncidentCreation ... - KindKindMicrosoftSecurityIncidentCreation Kind = "MicrosoftSecurityIncidentCreation" - // KindKindScheduled ... - KindKindScheduled Kind = "Scheduled" + // KindAlertRule ... + KindAlertRule Kind = "AlertRule" + // KindFusion ... + KindFusion Kind = "Fusion" + // KindMicrosoftSecurityIncidentCreation ... + KindMicrosoftSecurityIncidentCreation Kind = "MicrosoftSecurityIncidentCreation" + // KindScheduled ... + KindScheduled Kind = "Scheduled" ) // PossibleKindValues returns an array of possible values for the Kind const type. func PossibleKindValues() []Kind { - return []Kind{KindKindAlertRule, KindKindFusion, KindKindMicrosoftSecurityIncidentCreation, KindKindScheduled} + return []Kind{KindAlertRule, KindFusion, KindMicrosoftSecurityIncidentCreation, KindScheduled} } // KindBasicAlertRuleTemplate enumerates the values for kind basic alert rule template. diff --git a/services/securityinsight/mgmt/2020-01-01/securityinsight/models.go b/services/securityinsight/mgmt/2020-01-01/securityinsight/models.go index fa9978fd2dba..8f78846cfc80 100644 --- a/services/securityinsight/mgmt/2020-01-01/securityinsight/models.go +++ b/services/securityinsight/mgmt/2020-01-01/securityinsight/models.go @@ -712,7 +712,7 @@ type BasicAlertRule interface { // AlertRule alert rule. type AlertRule struct { autorest.Response `json:"-"` - // Kind - Possible values include: 'KindKindAlertRule', 'KindKindFusion', 'KindKindMicrosoftSecurityIncidentCreation', 'KindKindScheduled' + // Kind - Possible values include: 'KindAlertRule', 'KindFusion', 'KindMicrosoftSecurityIncidentCreation', 'KindScheduled' Kind Kind `json:"kind,omitempty"` // ID - READ-ONLY; Azure resource Id ID *string `json:"id,omitempty"` @@ -732,15 +732,15 @@ func unmarshalBasicAlertRule(body []byte) (BasicAlertRule, error) { } switch m["kind"] { - case string(KindKindFusion): + case string(KindFusion): var far FusionAlertRule err := json.Unmarshal(body, &far) return far, err - case string(KindKindMicrosoftSecurityIncidentCreation): + case string(KindMicrosoftSecurityIncidentCreation): var msicar MicrosoftSecurityIncidentCreationAlertRule err := json.Unmarshal(body, &msicar) return msicar, err - case string(KindKindScheduled): + case string(KindScheduled): var sar ScheduledAlertRule err := json.Unmarshal(body, &sar) return sar, err @@ -771,7 +771,7 @@ func unmarshalBasicAlertRuleArray(body []byte) ([]BasicAlertRule, error) { // MarshalJSON is the custom marshaler for AlertRule. func (ar AlertRule) MarshalJSON() ([]byte, error) { - ar.Kind = KindKindAlertRule + ar.Kind = KindAlertRule objectMap := make(map[string]interface{}) if ar.Kind != "" { objectMap["kind"] = ar.Kind @@ -2389,6 +2389,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.) type ErrorResponse struct { @@ -2404,11 +2410,17 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FusionAlertRule represents Fusion alert rule. type FusionAlertRule struct { // FusionAlertRuleProperties - Fusion alert rule properties *FusionAlertRuleProperties `json:"properties,omitempty"` - // Kind - Possible values include: 'KindKindAlertRule', 'KindKindFusion', 'KindKindMicrosoftSecurityIncidentCreation', 'KindKindScheduled' + // Kind - Possible values include: 'KindAlertRule', 'KindFusion', 'KindMicrosoftSecurityIncidentCreation', 'KindScheduled' Kind Kind `json:"kind,omitempty"` // ID - READ-ONLY; Azure resource Id ID *string `json:"id,omitempty"` @@ -2422,7 +2434,7 @@ type FusionAlertRule struct { // MarshalJSON is the custom marshaler for FusionAlertRule. func (far FusionAlertRule) MarshalJSON() ([]byte, error) { - far.Kind = KindKindFusion + far.Kind = KindFusion objectMap := make(map[string]interface{}) if far.FusionAlertRuleProperties != nil { objectMap["properties"] = far.FusionAlertRuleProperties @@ -2820,6 +2832,12 @@ type IncidentAdditionalData struct { Tactics *[]AttackTactic `json:"tactics,omitempty"` } +// MarshalJSON is the custom marshaler for IncidentAdditionalData. +func (iad IncidentAdditionalData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IncidentComment represents an incident comment type IncidentComment struct { autorest.Response `json:"-"` @@ -3698,7 +3716,7 @@ type MDATPDataConnectorProperties struct { type MicrosoftSecurityIncidentCreationAlertRule struct { // MicrosoftSecurityIncidentCreationAlertRuleProperties - MicrosoftSecurityIncidentCreation rule properties *MicrosoftSecurityIncidentCreationAlertRuleProperties `json:"properties,omitempty"` - // Kind - Possible values include: 'KindKindAlertRule', 'KindKindFusion', 'KindKindMicrosoftSecurityIncidentCreation', 'KindKindScheduled' + // Kind - Possible values include: 'KindAlertRule', 'KindFusion', 'KindMicrosoftSecurityIncidentCreation', 'KindScheduled' Kind Kind `json:"kind,omitempty"` // ID - READ-ONLY; Azure resource Id ID *string `json:"id,omitempty"` @@ -3712,7 +3730,7 @@ type MicrosoftSecurityIncidentCreationAlertRule struct { // MarshalJSON is the custom marshaler for MicrosoftSecurityIncidentCreationAlertRule. func (msicar MicrosoftSecurityIncidentCreationAlertRule) MarshalJSON() ([]byte, error) { - msicar.Kind = KindKindMicrosoftSecurityIncidentCreation + msicar.Kind = KindMicrosoftSecurityIncidentCreation objectMap := make(map[string]interface{}) if msicar.MicrosoftSecurityIncidentCreationAlertRuleProperties != nil { objectMap["properties"] = msicar.MicrosoftSecurityIncidentCreationAlertRuleProperties @@ -4541,6 +4559,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceWithEtag an azure resource object with an Etag property type ResourceWithEtag struct { // ID - READ-ONLY; Azure resource Id @@ -4566,7 +4590,7 @@ func (rwe ResourceWithEtag) MarshalJSON() ([]byte, error) { type ScheduledAlertRule struct { // ScheduledAlertRuleProperties - Scheduled alert rule properties *ScheduledAlertRuleProperties `json:"properties,omitempty"` - // Kind - Possible values include: 'KindKindAlertRule', 'KindKindFusion', 'KindKindMicrosoftSecurityIncidentCreation', 'KindKindScheduled' + // Kind - Possible values include: 'KindAlertRule', 'KindFusion', 'KindMicrosoftSecurityIncidentCreation', 'KindScheduled' Kind Kind `json:"kind,omitempty"` // ID - READ-ONLY; Azure resource Id ID *string `json:"id,omitempty"` @@ -4580,7 +4604,7 @@ type ScheduledAlertRule struct { // MarshalJSON is the custom marshaler for ScheduledAlertRule. func (sar ScheduledAlertRule) MarshalJSON() ([]byte, error) { - sar.Kind = KindKindScheduled + sar.Kind = KindScheduled objectMap := make(map[string]interface{}) if sar.ScheduledAlertRuleProperties != nil { objectMap["properties"] = sar.ScheduledAlertRuleProperties @@ -5076,6 +5100,12 @@ type ThreatIntelligence struct { ThreatType *string `json:"threatType,omitempty"` } +// MarshalJSON is the custom marshaler for ThreatIntelligence. +func (ti ThreatIntelligence) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TIDataConnector represents threat intelligence data connector. type TIDataConnector struct { // TIDataConnectorProperties - TI (Threat Intelligence) data connector properties. diff --git a/services/securityinsight/mgmt/v1.0/securityinsight/CHANGELOG.md b/services/securityinsight/mgmt/v1.0/securityinsight/CHANGELOG.md index 52911e4cc5e4..3c456b5cf1f0 100644 --- a/services/securityinsight/mgmt/v1.0/securityinsight/CHANGELOG.md +++ b/services/securityinsight/mgmt/v1.0/securityinsight/CHANGELOG.md @@ -1,2 +1,11 @@ # Change History +## Additive Changes + +### New Funcs + +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. IncidentAdditionalData.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ThreatIntelligence.MarshalJSON() ([]byte, error) diff --git a/services/securityinsight/mgmt/v1.0/securityinsight/_meta.json b/services/securityinsight/mgmt/v1.0/securityinsight/_meta.json index 3da52395a680..99958e37d6bc 100644 --- a/services/securityinsight/mgmt/v1.0/securityinsight/_meta.json +++ b/services/securityinsight/mgmt/v1.0/securityinsight/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/securityinsights/resource-manager/readme.md", "tag": "package-composite-v1", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-composite-v1 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/securityinsights/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-composite-v1 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/securityinsights/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/securityinsight/mgmt/v1.0/securityinsight/models.go b/services/securityinsight/mgmt/v1.0/securityinsight/models.go index c8ae0bda6897..c803d1a90d2b 100644 --- a/services/securityinsight/mgmt/v1.0/securityinsight/models.go +++ b/services/securityinsight/mgmt/v1.0/securityinsight/models.go @@ -2383,6 +2383,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.) type ErrorResponse struct { @@ -2398,6 +2404,12 @@ type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FusionAlertRule represents Fusion alert rule. type FusionAlertRule struct { // FusionAlertRuleProperties - Fusion alert rule properties @@ -2814,6 +2826,12 @@ type IncidentAdditionalData struct { Tactics *[]AttackTactic `json:"tactics,omitempty"` } +// MarshalJSON is the custom marshaler for IncidentAdditionalData. +func (iad IncidentAdditionalData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IncidentComment represents an incident comment type IncidentComment struct { autorest.Response `json:"-"` @@ -4525,6 +4543,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceWithEtag an azure resource object with an Etag property type ResourceWithEtag struct { // ID - READ-ONLY; Azure resource Id @@ -5060,6 +5084,12 @@ type ThreatIntelligence struct { ThreatType *string `json:"threatType,omitempty"` } +// MarshalJSON is the custom marshaler for ThreatIntelligence. +func (ti ThreatIntelligence) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TIDataConnector represents threat intelligence data connector. type TIDataConnector struct { // TIDataConnectorProperties - TI (Threat Intelligence) data connector properties. diff --git a/services/serialconsole/mgmt/2018-05-01/serialconsole/_meta.json b/services/serialconsole/mgmt/2018-05-01/serialconsole/_meta.json index e76d5b8d4650..bd4dd9dc12fa 100644 --- a/services/serialconsole/mgmt/2018-05-01/serialconsole/_meta.json +++ b/services/serialconsole/mgmt/2018-05-01/serialconsole/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/serialconsole/resource-manager/readme.md", "tag": "package-2018-05", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/serialconsole/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/serialconsole/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/servicebus/mgmt/2015-08-01/servicebus/CHANGELOG.md b/services/servicebus/mgmt/2015-08-01/servicebus/CHANGELOG.md index 52911e4cc5e4..4445c5d58615 100644 --- a/services/servicebus/mgmt/2015-08-01/servicebus/CHANGELOG.md +++ b/services/servicebus/mgmt/2015-08-01/servicebus/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. MessageCountDetails.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) diff --git a/services/servicebus/mgmt/2015-08-01/servicebus/_meta.json b/services/servicebus/mgmt/2015-08-01/servicebus/_meta.json index 071cccb0da82..d0668f25be8d 100644 --- a/services/servicebus/mgmt/2015-08-01/servicebus/_meta.json +++ b/services/servicebus/mgmt/2015-08-01/servicebus/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/servicebus/resource-manager/readme.md", "tag": "package-2015-08", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2015-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/servicebus/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2015-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/servicebus/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/servicebus/mgmt/2015-08-01/servicebus/models.go b/services/servicebus/mgmt/2015-08-01/servicebus/models.go index f1fa17b3c697..ca2d051e1909 100644 --- a/services/servicebus/mgmt/2015-08-01/servicebus/models.go +++ b/services/servicebus/mgmt/2015-08-01/servicebus/models.go @@ -63,6 +63,12 @@ type MessageCountDetails struct { TransferMessageCount *int64 `json:"transferMessageCount,omitempty"` } +// MarshalJSON is the custom marshaler for MessageCountDetails. +func (mcd MessageCountDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NamespaceCreateOrUpdateParameters parameters supplied to the Create Or Update Namespace operation. type NamespaceCreateOrUpdateParameters struct { // Location - Namespace location. @@ -574,6 +580,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of the request to list ServiceBus operations. It contains a list of // operations and a URL link to get the next set of results. type OperationListResult struct { @@ -584,6 +596,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int diff --git a/services/servicebus/mgmt/2017-04-01/servicebus/CHANGELOG.md b/services/servicebus/mgmt/2017-04-01/servicebus/CHANGELOG.md index 52911e4cc5e4..c0a202601dc8 100644 --- a/services/servicebus/mgmt/2017-04-01/servicebus/CHANGELOG.md +++ b/services/servicebus/mgmt/2017-04-01/servicebus/CHANGELOG.md @@ -1,2 +1,15 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccessKeys.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorResponseError.MarshalJSON() ([]byte, error) +1. MessageCountDetails.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. PremiumMessagingRegionsProperties.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. SBNamespaceProperties.MarshalJSON() ([]byte, error) diff --git a/services/servicebus/mgmt/2017-04-01/servicebus/_meta.json b/services/servicebus/mgmt/2017-04-01/servicebus/_meta.json index 00d9898bb662..0ab5fb312604 100644 --- a/services/servicebus/mgmt/2017-04-01/servicebus/_meta.json +++ b/services/servicebus/mgmt/2017-04-01/servicebus/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/servicebus/resource-manager/readme.md", "tag": "package-2017-04", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/servicebus/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/servicebus/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/servicebus/mgmt/2017-04-01/servicebus/models.go b/services/servicebus/mgmt/2017-04-01/servicebus/models.go index f7acdeea00ad..452c480b69cb 100644 --- a/services/servicebus/mgmt/2017-04-01/servicebus/models.go +++ b/services/servicebus/mgmt/2017-04-01/servicebus/models.go @@ -39,6 +39,12 @@ type AccessKeys struct { KeyName *string `json:"keyName,omitempty"` } +// MarshalJSON is the custom marshaler for AccessKeys. +func (ak AccessKeys) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Action represents the filter actions which are allowed for the transformation of a message that have // been matched by a filter expression. type Action struct { @@ -494,6 +500,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse the resource management error response. type ErrorResponse struct { // Error - The error object. @@ -514,6 +526,12 @@ type ErrorResponseError struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponseError. +func (er ErrorResponseError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Eventhub single item in List or Get Event Hub operation type Eventhub struct { // EventhubProperties - Properties supplied to the Create Or Update Event Hub operation. @@ -804,6 +822,12 @@ type MessageCountDetails struct { TransferDeadLetterMessageCount *int64 `json:"transferDeadLetterMessageCount,omitempty"` } +// MarshalJSON is the custom marshaler for MessageCountDetails. +func (mcd MessageCountDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MigrationConfigListResult the result of the List migrationConfigurations operation. type MigrationConfigListResult struct { autorest.Response `json:"-"` @@ -1480,6 +1504,12 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of the request to list ServiceBus operations. It contains a list of // operations and a URL link to get the next set of results. type OperationListResult struct { @@ -1490,6 +1520,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -1847,6 +1883,12 @@ type PremiumMessagingRegionsProperties struct { FullName *string `json:"fullName,omitempty"` } +// MarshalJSON is the custom marshaler for PremiumMessagingRegionsProperties. +func (pmr PremiumMessagingRegionsProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegenerateAccessKeyParameters parameters supplied to the Regenerate Authorization Rule operation, // specifies which key needs to be reset. type RegenerateAccessKeyParameters struct { @@ -1866,6 +1908,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceNamespacePatch the Resource definition. type ResourceNamespacePatch struct { // Location - Resource location @@ -2669,6 +2717,12 @@ type SBNamespaceProperties struct { MetricID *string `json:"metricId,omitempty"` } +// MarshalJSON is the custom marshaler for SBNamespaceProperties. +func (snp SBNamespaceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SBNamespaceUpdateParameters description of a namespace resource. type SBNamespaceUpdateParameters struct { // Sku - Properties of Sku diff --git a/services/servicefabric/6.2/servicefabric/_meta.json b/services/servicefabric/6.2/servicefabric/_meta.json index ca23e0c0d8dc..05ae6fb0d738 100644 --- a/services/servicefabric/6.2/servicefabric/_meta.json +++ b/services/servicefabric/6.2/servicefabric/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/servicefabric/data-plane/readme.md", "tag": "6.2", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=6.2 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/servicefabric/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=6.2 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/servicefabric/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/servicefabric/6.3/servicefabric/_meta.json b/services/servicefabric/6.3/servicefabric/_meta.json index 0371a7d79e3f..3e12013d6624 100644 --- a/services/servicefabric/6.3/servicefabric/_meta.json +++ b/services/servicefabric/6.3/servicefabric/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/servicefabric/data-plane/readme.md", "tag": "6.3", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=6.3 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/servicefabric/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=6.3 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/servicefabric/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/servicefabric/6.4/servicefabric/_meta.json b/services/servicefabric/6.4/servicefabric/_meta.json index 55d86af4d969..5361ac829891 100644 --- a/services/servicefabric/6.4/servicefabric/_meta.json +++ b/services/servicefabric/6.4/servicefabric/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/servicefabric/data-plane/readme.md", "tag": "6.4", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=6.4 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/servicefabric/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=6.4 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/servicefabric/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/servicefabric/6.5/servicefabric/_meta.json b/services/servicefabric/6.5/servicefabric/_meta.json index 9ee4fe446304..cf7e4f8f08a4 100644 --- a/services/servicefabric/6.5/servicefabric/_meta.json +++ b/services/servicefabric/6.5/servicefabric/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/servicefabric/data-plane/readme.md", "tag": "6.5", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=6.5 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/servicefabric/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=6.5 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/servicefabric/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/servicefabric/7.0/servicefabric/_meta.json b/services/servicefabric/7.0/servicefabric/_meta.json index bfe45a77fb14..dfa1520f90e9 100644 --- a/services/servicefabric/7.0/servicefabric/_meta.json +++ b/services/servicefabric/7.0/servicefabric/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/servicefabric/data-plane/readme.md", "tag": "7.0", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=7.0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/servicefabric/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=7.0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/servicefabric/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/servicefabric/7.2/servicefabric/_meta.json b/services/servicefabric/7.2/servicefabric/_meta.json index 36c006e5d602..f28d75d60e48 100644 --- a/services/servicefabric/7.2/servicefabric/_meta.json +++ b/services/servicefabric/7.2/servicefabric/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/servicefabric/data-plane/readme.md", "tag": "7.2", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=7.2 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/servicefabric/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=7.2 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/servicefabric/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/servicefabric/mgmt/2016-09-01/servicefabric/CHANGELOG.md b/services/servicefabric/mgmt/2016-09-01/servicefabric/CHANGELOG.md index 52911e4cc5e4..97c7a48f8f7f 100644 --- a/services/servicefabric/mgmt/2016-09-01/servicefabric/CHANGELOG.md +++ b/services/servicefabric/mgmt/2016-09-01/servicefabric/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. OperationListResult.MarshalJSON() ([]byte, error) diff --git a/services/servicefabric/mgmt/2016-09-01/servicefabric/_meta.json b/services/servicefabric/mgmt/2016-09-01/servicefabric/_meta.json index 0a30f878ee7b..d4ae9cf1822f 100644 --- a/services/servicefabric/mgmt/2016-09-01/servicefabric/_meta.json +++ b/services/servicefabric/mgmt/2016-09-01/servicefabric/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/servicefabric/resource-manager/readme.md", "tag": "package-2016-09", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/servicefabric/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/servicefabric/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/servicefabric/mgmt/2016-09-01/servicefabric/models.go b/services/servicefabric/mgmt/2016-09-01/servicefabric/models.go index c262ba637cc0..5e26036ec886 100644 --- a/services/servicefabric/mgmt/2016-09-01/servicefabric/models.go +++ b/services/servicefabric/mgmt/2016-09-01/servicefabric/models.go @@ -984,6 +984,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of OperationResult values. type OperationListResultIterator struct { i int diff --git a/services/servicefabric/mgmt/2019-03-01/servicefabric/CHANGELOG.md b/services/servicefabric/mgmt/2019-03-01/servicefabric/CHANGELOG.md index 52911e4cc5e4..d306fe1ff4c3 100644 --- a/services/servicefabric/mgmt/2019-03-01/servicefabric/CHANGELOG.md +++ b/services/servicefabric/mgmt/2019-03-01/servicefabric/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. ApplicationTypeResourceProperties.MarshalJSON() ([]byte, error) diff --git a/services/servicefabric/mgmt/2019-03-01/servicefabric/_meta.json b/services/servicefabric/mgmt/2019-03-01/servicefabric/_meta.json index 306707295ab6..2c876e13fb61 100644 --- a/services/servicefabric/mgmt/2019-03-01/servicefabric/_meta.json +++ b/services/servicefabric/mgmt/2019-03-01/servicefabric/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/servicefabric/resource-manager/readme.md", "tag": "package-2019-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/servicefabric/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/servicefabric/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/servicefabric/mgmt/2019-03-01/servicefabric/models.go b/services/servicefabric/mgmt/2019-03-01/servicefabric/models.go index c29b0066b5a8..b45c6ade2883 100644 --- a/services/servicefabric/mgmt/2019-03-01/servicefabric/models.go +++ b/services/servicefabric/mgmt/2019-03-01/servicefabric/models.go @@ -680,6 +680,12 @@ type ApplicationTypeResourceProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationTypeResourceProperties. +func (atrp ApplicationTypeResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationTypesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ApplicationTypesDeleteFuture struct { diff --git a/services/signalr/mgmt/2018-10-01/signalr/CHANGELOG.md b/services/signalr/mgmt/2018-10-01/signalr/CHANGELOG.md index 52911e4cc5e4..f817772e217f 100644 --- a/services/signalr/mgmt/2018-10-01/signalr/CHANGELOG.md +++ b/services/signalr/mgmt/2018-10-01/signalr/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/signalr/mgmt/2018-10-01/signalr/_meta.json b/services/signalr/mgmt/2018-10-01/signalr/_meta.json index 037f9645dbc2..7053f3ced76f 100644 --- a/services/signalr/mgmt/2018-10-01/signalr/_meta.json +++ b/services/signalr/mgmt/2018-10-01/signalr/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/signalr/resource-manager/readme.md", "tag": "package-2018-10-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-10-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/signalr/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-10-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/signalr/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/signalr/mgmt/2018-10-01/signalr/models.go b/services/signalr/mgmt/2018-10-01/signalr/models.go index 2b750775870d..baa2ed2cc365 100644 --- a/services/signalr/mgmt/2018-10-01/signalr/models.go +++ b/services/signalr/mgmt/2018-10-01/signalr/models.go @@ -570,6 +570,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceList object that includes an array of SignalR services and a possible link for next set. type ResourceList struct { autorest.Response `json:"-"` diff --git a/services/signalr/mgmt/2020-05-01/signalr/CHANGELOG.md b/services/signalr/mgmt/2020-05-01/signalr/CHANGELOG.md index 52911e4cc5e4..c1bbea5cc91f 100644 --- a/services/signalr/mgmt/2020-05-01/signalr/CHANGELOG.md +++ b/services/signalr/mgmt/2020-05-01/signalr/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/signalr/mgmt/2020-05-01/signalr/_meta.json b/services/signalr/mgmt/2020-05-01/signalr/_meta.json index 4606fb43251e..045fb37badee 100644 --- a/services/signalr/mgmt/2020-05-01/signalr/_meta.json +++ b/services/signalr/mgmt/2020-05-01/signalr/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/signalr/resource-manager/readme.md", "tag": "package-2020-05-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-05-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/signalr/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-05-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/signalr/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/signalr/mgmt/2020-05-01/signalr/models.go b/services/signalr/mgmt/2020-05-01/signalr/models.go index 127295ef9d3d..5083df3069fc 100644 --- a/services/signalr/mgmt/2020-05-01/signalr/models.go +++ b/services/signalr/mgmt/2020-05-01/signalr/models.go @@ -923,6 +923,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RegenerateKeyFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type RegenerateKeyFuture struct { @@ -982,6 +988,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceList object that includes an array of SignalR services and a possible link for next set. type ResourceList struct { autorest.Response `json:"-"` diff --git a/services/sql/mgmt/2014-04-01/sql/CHANGELOG.md b/services/sql/mgmt/2014-04-01/sql/CHANGELOG.md index 52911e4cc5e4..d62f29075dba 100644 --- a/services/sql/mgmt/2014-04-01/sql/CHANGELOG.md +++ b/services/sql/mgmt/2014-04-01/sql/CHANGELOG.md @@ -1,2 +1,43 @@ # Change History +## Additive Changes + +### New Funcs + +1. CheckNameAvailabilityResponse.MarshalJSON() ([]byte, error) +1. DatabaseUsage.MarshalJSON() ([]byte, error) +1. EditionCapability.MarshalJSON() ([]byte, error) +1. ElasticPoolActivityProperties.MarshalJSON() ([]byte, error) +1. ElasticPoolDatabaseActivityProperties.MarshalJSON() ([]byte, error) +1. ElasticPoolDtuCapability.MarshalJSON() ([]byte, error) +1. ElasticPoolEditionCapability.MarshalJSON() ([]byte, error) +1. ElasticPoolPerDatabaseMaxDtuCapability.MarshalJSON() ([]byte, error) +1. ElasticPoolPerDatabaseMinDtuCapability.MarshalJSON() ([]byte, error) +1. ImportExportResponseProperties.MarshalJSON() ([]byte, error) +1. LocationCapabilities.MarshalJSON() ([]byte, error) +1. MaxSizeCapability.MarshalJSON() ([]byte, error) +1. Metric.MarshalJSON() ([]byte, error) +1. MetricAvailability.MarshalJSON() ([]byte, error) +1. MetricDefinition.MarshalJSON() ([]byte, error) +1. MetricName.MarshalJSON() ([]byte, error) +1. MetricValue.MarshalJSON() ([]byte, error) +1. OperationImpact.MarshalJSON() ([]byte, error) +1. PerformanceLevel.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. QueryInterval.MarshalJSON() ([]byte, error) +1. QueryMetric.MarshalJSON() ([]byte, error) +1. QueryStatistic.MarshalJSON() ([]byte, error) +1. QueryText.MarshalJSON() ([]byte, error) +1. RecommendedIndexProperties.MarshalJSON() ([]byte, error) +1. RecoverableDatabaseProperties.MarshalJSON() ([]byte, error) +1. ReplicationLinkProperties.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. RestorableDroppedDatabaseProperties.MarshalJSON() ([]byte, error) +1. RestorePointProperties.MarshalJSON() ([]byte, error) +1. ServerUsage.MarshalJSON() ([]byte, error) +1. ServerVersionCapability.MarshalJSON() ([]byte, error) +1. ServiceObjectiveProperties.MarshalJSON() ([]byte, error) +1. ServiceTierAdvisorProperties.MarshalJSON() ([]byte, error) +1. SloUsageMetric.MarshalJSON() ([]byte, error) +1. TopQueries.MarshalJSON() ([]byte, error) +1. TransparentDataEncryptionActivityProperties.MarshalJSON() ([]byte, error) diff --git a/services/sql/mgmt/2014-04-01/sql/_meta.json b/services/sql/mgmt/2014-04-01/sql/_meta.json index adb2dbd4dd7e..5da05cc1db34 100644 --- a/services/sql/mgmt/2014-04-01/sql/_meta.json +++ b/services/sql/mgmt/2014-04-01/sql/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/sql/resource-manager/readme.md", "tag": "package-pure-2014-04", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-pure-2014-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/sql/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-pure-2014-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/sql/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/sql/mgmt/2014-04-01/sql/models.go b/services/sql/mgmt/2014-04-01/sql/models.go index 8c65fc07b25a..4b06798f1445 100644 --- a/services/sql/mgmt/2014-04-01/sql/models.go +++ b/services/sql/mgmt/2014-04-01/sql/models.go @@ -164,6 +164,12 @@ type CheckNameAvailabilityResponse struct { Reason CheckNameAvailabilityReason `json:"reason,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResponse. +func (cnar CheckNameAvailabilityResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Database represents a database. type Database struct { autorest.Response `json:"-"` @@ -1174,6 +1180,12 @@ type DatabaseUsage struct { NextResetTime *date.Time `json:"nextResetTime,omitempty"` } +// MarshalJSON is the custom marshaler for DatabaseUsage. +func (du DatabaseUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DatabaseUsageListResult the response to a list database metrics request. type DatabaseUsageListResult struct { autorest.Response `json:"-"` @@ -1760,6 +1772,12 @@ type EditionCapability struct { ZoneRedundant *bool `json:"zoneRedundant,omitempty"` } +// MarshalJSON is the custom marshaler for EditionCapability. +func (ec EditionCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ElasticPool represents a database elastic pool. type ElasticPool struct { autorest.Response `json:"-"` @@ -2009,6 +2027,12 @@ type ElasticPoolActivityProperties struct { RequestedDtuGuarantee *int32 `json:"requestedDtuGuarantee,omitempty"` } +// MarshalJSON is the custom marshaler for ElasticPoolActivityProperties. +func (epap ElasticPoolActivityProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ElasticPoolDatabaseActivity represents the activity on an elastic pool. type ElasticPoolDatabaseActivity struct { // Location - The geo-location where the resource lives @@ -2137,6 +2161,12 @@ type ElasticPoolDatabaseActivityProperties struct { State *string `json:"state,omitempty"` } +// MarshalJSON is the custom marshaler for ElasticPoolDatabaseActivityProperties. +func (epdap ElasticPoolDatabaseActivityProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ElasticPoolDtuCapability the Elastic Pool DTU capability. type ElasticPoolDtuCapability struct { // Limit - READ-ONLY; The maximum size of the database (see 'unit' for the units). @@ -2155,6 +2185,12 @@ type ElasticPoolDtuCapability struct { SupportedPerDatabaseMaxDtus *[]ElasticPoolPerDatabaseMaxDtuCapability `json:"supportedPerDatabaseMaxDtus,omitempty"` } +// MarshalJSON is the custom marshaler for ElasticPoolDtuCapability. +func (epdc ElasticPoolDtuCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ElasticPoolEditionCapability the elastic pool edition capabilities. type ElasticPoolEditionCapability struct { // Name - READ-ONLY; The elastic pool edition name. @@ -2167,6 +2203,12 @@ type ElasticPoolEditionCapability struct { ZoneRedundant *bool `json:"zoneRedundant,omitempty"` } +// MarshalJSON is the custom marshaler for ElasticPoolEditionCapability. +func (epec ElasticPoolEditionCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ElasticPoolListResult represents the response to a list elastic pool request. type ElasticPoolListResult struct { autorest.Response `json:"-"` @@ -2184,6 +2226,12 @@ type ElasticPoolPerDatabaseMaxDtuCapability struct { SupportedPerDatabaseMinDtus *[]ElasticPoolPerDatabaseMinDtuCapability `json:"supportedPerDatabaseMinDtus,omitempty"` } +// MarshalJSON is the custom marshaler for ElasticPoolPerDatabaseMaxDtuCapability. +func (eppdmdc ElasticPoolPerDatabaseMaxDtuCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ElasticPoolPerDatabaseMinDtuCapability the minimum per-database DTU capability. type ElasticPoolPerDatabaseMinDtuCapability struct { // Limit - READ-ONLY; The maximum DTUs per database. @@ -2192,6 +2240,12 @@ type ElasticPoolPerDatabaseMinDtuCapability struct { Status CapabilityStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for ElasticPoolPerDatabaseMinDtuCapability. +func (eppdmdc ElasticPoolPerDatabaseMinDtuCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ElasticPoolProperties represents the properties of an elastic pool. type ElasticPoolProperties struct { // CreationDate - READ-ONLY; The creation date of the elastic pool (ISO8601 format). @@ -2755,6 +2809,12 @@ type ImportExportResponseProperties struct { ErrorMessage *string `json:"errorMessage,omitempty"` } +// MarshalJSON is the custom marshaler for ImportExportResponseProperties. +func (ierp ImportExportResponseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImportExtensionProperties represents the properties for an import operation type ImportExtensionProperties struct { // OperationMode - The type of import operation being performed. This is always Import. @@ -2886,6 +2946,12 @@ type LocationCapabilities struct { SupportedServerVersions *[]ServerVersionCapability `json:"supportedServerVersions,omitempty"` } +// MarshalJSON is the custom marshaler for LocationCapabilities. +func (lc LocationCapabilities) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MaxSizeCapability the maximum size limits for a database. type MaxSizeCapability struct { // Limit - READ-ONLY; The maximum size of the database (see 'unit' for the units). @@ -2896,6 +2962,12 @@ type MaxSizeCapability struct { Status CapabilityStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for MaxSizeCapability. +func (msc MaxSizeCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Metric database metrics. type Metric struct { // StartTime - READ-ONLY; The start time for the metric (ISO-8601 format). @@ -2912,6 +2984,12 @@ type Metric struct { MetricValues *[]MetricValue `json:"metricValues,omitempty"` } +// MarshalJSON is the custom marshaler for Metric. +func (mVar Metric) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricAvailability a metric availability value. type MetricAvailability struct { // Retention - READ-ONLY; The length of retention for the database metric. @@ -2920,6 +2998,12 @@ type MetricAvailability struct { TimeGrain *string `json:"timeGrain,omitempty"` } +// MarshalJSON is the custom marshaler for MetricAvailability. +func (ma MetricAvailability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricDefinition a database metric definition. type MetricDefinition struct { // Name - READ-ONLY; The name information for the metric. @@ -2934,6 +3018,12 @@ type MetricDefinition struct { MetricAvailabilities *[]MetricAvailability `json:"metricAvailabilities,omitempty"` } +// MarshalJSON is the custom marshaler for MetricDefinition. +func (md MetricDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricDefinitionListResult the response to a list database metric definitions request. type MetricDefinitionListResult struct { autorest.Response `json:"-"` @@ -2956,6 +3046,12 @@ type MetricName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for MetricName. +func (mn MetricName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricValue represents database metrics. type MetricValue struct { // Count - READ-ONLY; The number of values for the metric. @@ -2972,6 +3068,12 @@ type MetricValue struct { Total *float64 `json:"total,omitempty"` } +// MarshalJSON is the custom marshaler for MetricValue. +func (mv MetricValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation SQL REST API operation definition. type Operation struct { // Name - Operation name: {provider}/{resource}/{operation} @@ -3002,6 +3104,12 @@ type OperationImpact struct { ChangeValueRelative *float64 `json:"changeValueRelative,omitempty"` } +// MarshalJSON is the custom marshaler for OperationImpact. +func (oi OperationImpact) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of the request to list SQL operations. It contains a list of operations and a // URL link to get the next set of results. type OperationListResult struct { @@ -3020,6 +3128,12 @@ type PerformanceLevel struct { Value *int32 `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for PerformanceLevel. +func (pl PerformanceLevel) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ProxyResource ARM proxy resource. type ProxyResource struct { // ID - READ-ONLY; Resource ID. @@ -3030,6 +3144,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QueryInterval a database query. type QueryInterval struct { // IntervalStartTime - READ-ONLY; The start time of the measurement interval (ISO8601 format). @@ -3040,6 +3160,12 @@ type QueryInterval struct { Metrics *[]QueryMetric `json:"metrics,omitempty"` } +// MarshalJSON is the custom marshaler for QueryInterval. +func (qi QueryInterval) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QueryMetric a database query. type QueryMetric struct { // Name - READ-ONLY; The name of the metric @@ -3052,6 +3178,12 @@ type QueryMetric struct { Value *float64 `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for QueryMetric. +func (qm QueryMetric) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QueryStatistic a database query. type QueryStatistic struct { // QueryID - READ-ONLY; The id of the query @@ -3060,6 +3192,12 @@ type QueryStatistic struct { Intervals *[]QueryInterval `json:"intervals,omitempty"` } +// MarshalJSON is the custom marshaler for QueryStatistic. +func (qs QueryStatistic) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QueryStatisticListResult represents the response to a get query request. type QueryStatisticListResult struct { autorest.Response `json:"-"` @@ -3077,6 +3215,12 @@ type QueryText struct { QueryText *string `json:"queryText,omitempty"` } +// MarshalJSON is the custom marshaler for QueryText. +func (qt QueryText) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QueryTextListResult represents the response to a get query text request. type QueryTextListResult struct { autorest.Response `json:"-"` @@ -3323,6 +3467,12 @@ type RecommendedIndexProperties struct { ReportedImpact *[]OperationImpact `json:"reportedImpact,omitempty"` } +// MarshalJSON is the custom marshaler for RecommendedIndexProperties. +func (rip RecommendedIndexProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RecoverableDatabase a recoverable database type RecoverableDatabase struct { autorest.Response `json:"-"` @@ -3415,6 +3565,12 @@ type RecoverableDatabaseProperties struct { LastAvailableBackupDate *date.Time `json:"lastAvailableBackupDate,omitempty"` } +// MarshalJSON is the custom marshaler for RecoverableDatabaseProperties. +func (rdp RecoverableDatabaseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReplicationLink represents a database replication link. type ReplicationLink struct { autorest.Response `json:"-"` @@ -3530,6 +3686,12 @@ type ReplicationLinkProperties struct { ReplicationState ReplicationState `json:"replicationState,omitempty"` } +// MarshalJSON is the custom marshaler for ReplicationLinkProperties. +func (rlp ReplicationLinkProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReplicationLinksFailoverAllowDataLossFuture an abstraction for monitoring and retrieving the results of // a long-running operation. type ReplicationLinksFailoverAllowDataLossFuture struct { @@ -3651,6 +3813,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorableDroppedDatabase a restorable dropped database type RestorableDroppedDatabase struct { autorest.Response `json:"-"` @@ -3762,6 +3930,12 @@ type RestorableDroppedDatabaseProperties struct { EarliestRestoreDate *date.Time `json:"earliestRestoreDate,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableDroppedDatabaseProperties. +func (rddp RestorableDroppedDatabaseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorePoint a database restore point. type RestorePoint struct { // RestorePointProperties - The properties of the restore point. @@ -3851,6 +4025,12 @@ type RestorePointProperties struct { EarliestRestoreDate *date.Time `json:"earliestRestoreDate,omitempty"` } +// MarshalJSON is the custom marshaler for RestorePointProperties. +func (rpp RestorePointProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Server represents a server. type Server struct { autorest.Response `json:"-"` @@ -4677,6 +4857,12 @@ type ServerUsage struct { NextResetTime *date.Time `json:"nextResetTime,omitempty"` } +// MarshalJSON is the custom marshaler for ServerUsage. +func (su ServerUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerUsageListResult represents the response to a list server metrics request. type ServerUsageListResult struct { autorest.Response `json:"-"` @@ -4696,6 +4882,12 @@ type ServerVersionCapability struct { SupportedElasticPoolEditions *[]ElasticPoolEditionCapability `json:"supportedElasticPoolEditions,omitempty"` } +// MarshalJSON is the custom marshaler for ServerVersionCapability. +func (svc ServerVersionCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceObjective represents a database service objective. type ServiceObjective struct { autorest.Response `json:"-"` @@ -4881,6 +5073,12 @@ type ServiceObjectiveProperties struct { Enabled *bool `json:"enabled,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceObjectiveProperties. +func (sop ServiceObjectiveProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceTierAdvisor represents a Service Tier Advisor. type ServiceTierAdvisor struct { autorest.Response `json:"-"` @@ -5000,6 +5198,12 @@ type ServiceTierAdvisorProperties struct { Confidence *float64 `json:"confidence,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceTierAdvisorProperties. +func (stap ServiceTierAdvisorProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SloUsageMetric a Slo Usage Metric. type SloUsageMetric struct { // ServiceLevelObjective - READ-ONLY; The serviceLevelObjective for SLO usage metric. Possible values include: 'ServiceObjectiveNameSystem', 'ServiceObjectiveNameSystem0', 'ServiceObjectiveNameSystem1', 'ServiceObjectiveNameSystem2', 'ServiceObjectiveNameSystem3', 'ServiceObjectiveNameSystem4', 'ServiceObjectiveNameSystem2L', 'ServiceObjectiveNameSystem3L', 'ServiceObjectiveNameSystem4L', 'ServiceObjectiveNameFree', 'ServiceObjectiveNameBasic', 'ServiceObjectiveNameS0', 'ServiceObjectiveNameS1', 'ServiceObjectiveNameS2', 'ServiceObjectiveNameS3', 'ServiceObjectiveNameS4', 'ServiceObjectiveNameS6', 'ServiceObjectiveNameS7', 'ServiceObjectiveNameS9', 'ServiceObjectiveNameS12', 'ServiceObjectiveNameP1', 'ServiceObjectiveNameP2', 'ServiceObjectiveNameP3', 'ServiceObjectiveNameP4', 'ServiceObjectiveNameP6', 'ServiceObjectiveNameP11', 'ServiceObjectiveNameP15', 'ServiceObjectiveNamePRS1', 'ServiceObjectiveNamePRS2', 'ServiceObjectiveNamePRS4', 'ServiceObjectiveNamePRS6', 'ServiceObjectiveNameDW100', 'ServiceObjectiveNameDW200', 'ServiceObjectiveNameDW300', 'ServiceObjectiveNameDW400', 'ServiceObjectiveNameDW500', 'ServiceObjectiveNameDW600', 'ServiceObjectiveNameDW1000', 'ServiceObjectiveNameDW1200', 'ServiceObjectiveNameDW1000c', 'ServiceObjectiveNameDW1500', 'ServiceObjectiveNameDW1500c', 'ServiceObjectiveNameDW2000', 'ServiceObjectiveNameDW2000c', 'ServiceObjectiveNameDW3000', 'ServiceObjectiveNameDW2500c', 'ServiceObjectiveNameDW3000c', 'ServiceObjectiveNameDW6000', 'ServiceObjectiveNameDW5000c', 'ServiceObjectiveNameDW6000c', 'ServiceObjectiveNameDW7500c', 'ServiceObjectiveNameDW10000c', 'ServiceObjectiveNameDW15000c', 'ServiceObjectiveNameDW30000c', 'ServiceObjectiveNameDS100', 'ServiceObjectiveNameDS200', 'ServiceObjectiveNameDS300', 'ServiceObjectiveNameDS400', 'ServiceObjectiveNameDS500', 'ServiceObjectiveNameDS600', 'ServiceObjectiveNameDS1000', 'ServiceObjectiveNameDS1200', 'ServiceObjectiveNameDS1500', 'ServiceObjectiveNameDS2000', 'ServiceObjectiveNameElasticPool' @@ -5010,6 +5214,12 @@ type SloUsageMetric struct { InRangeTimeRatio *float64 `json:"inRangeTimeRatio,omitempty"` } +// MarshalJSON is the custom marshaler for SloUsageMetric. +func (sum SloUsageMetric) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TableAuditingPolicyProperties properties of a table auditing policy. type TableAuditingPolicyProperties struct { // AuditingState - The state of the policy. @@ -5056,6 +5266,12 @@ type TopQueries struct { Queries *[]QueryStatistic `json:"queries,omitempty"` } +// MarshalJSON is the custom marshaler for TopQueries. +func (tq TopQueries) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TopQueriesListResult represents the response to a get top queries request. type TopQueriesListResult struct { autorest.Response `json:"-"` @@ -5273,6 +5489,12 @@ type TransparentDataEncryptionActivityProperties struct { PercentComplete *float64 `json:"percentComplete,omitempty"` } +// MarshalJSON is the custom marshaler for TransparentDataEncryptionActivityProperties. +func (tdeap TransparentDataEncryptionActivityProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TransparentDataEncryptionListResult represents the response to a list transparent data encryption // configurations request. type TransparentDataEncryptionListResult struct { diff --git a/services/storage/datalake/2018-11-09/storagedatalake/_meta.json b/services/storage/datalake/2018-11-09/storagedatalake/_meta.json index 67188c39d1b1..760a4a12c40d 100644 --- a/services/storage/datalake/2018-11-09/storagedatalake/_meta.json +++ b/services/storage/datalake/2018-11-09/storagedatalake/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/storage/data-plane/readme.md", "tag": "package-2018-11", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storage/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storage/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/storage/datalake/2019-10-31/storagedatalake/_meta.json b/services/storage/datalake/2019-10-31/storagedatalake/_meta.json index 8458a92c2e03..60130fe1b01a 100644 --- a/services/storage/datalake/2019-10-31/storagedatalake/_meta.json +++ b/services/storage/datalake/2019-10-31/storagedatalake/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/storage/data-plane/readme.md", "tag": "package-2019-10", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storage/data-plane/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storage/data-plane/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/storage/mgmt/2015-06-15/storage/_meta.json b/services/storage/mgmt/2015-06-15/storage/_meta.json index 7b0ac2aad6fd..2aac978595a3 100644 --- a/services/storage/mgmt/2015-06-15/storage/_meta.json +++ b/services/storage/mgmt/2015-06-15/storage/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", "tag": "package-2015-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2015-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2015-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/storage/mgmt/2016-01-01/storage/CHANGELOG.md b/services/storage/mgmt/2016-01-01/storage/CHANGELOG.md index 52911e4cc5e4..9954cc16fe55 100644 --- a/services/storage/mgmt/2016-01-01/storage/CHANGELOG.md +++ b/services/storage/mgmt/2016-01-01/storage/CHANGELOG.md @@ -1,2 +1,14 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountKey.MarshalJSON() ([]byte, error) +1. AccountListKeysResult.MarshalJSON() ([]byte, error) +1. AccountListResult.MarshalJSON() ([]byte, error) +1. AccountProperties.MarshalJSON() ([]byte, error) +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) +1. Endpoints.MarshalJSON() ([]byte, error) +1. Usage.MarshalJSON() ([]byte, error) +1. UsageName.MarshalJSON() ([]byte, error) diff --git a/services/storage/mgmt/2016-01-01/storage/_meta.json b/services/storage/mgmt/2016-01-01/storage/_meta.json index dfe4ed0e8aaa..4aadc90cfcbb 100644 --- a/services/storage/mgmt/2016-01-01/storage/_meta.json +++ b/services/storage/mgmt/2016-01-01/storage/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", "tag": "package-2016-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/storage/mgmt/2016-01-01/storage/models.go b/services/storage/mgmt/2016-01-01/storage/models.go index eee20c737d11..1dc192ec6632 100644 --- a/services/storage/mgmt/2016-01-01/storage/models.go +++ b/services/storage/mgmt/2016-01-01/storage/models.go @@ -250,6 +250,12 @@ type AccountKey struct { Permissions KeyPermission `json:"permissions,omitempty"` } +// MarshalJSON is the custom marshaler for AccountKey. +func (ak AccountKey) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListKeysResult the response from the ListKeys operation. type AccountListKeysResult struct { autorest.Response `json:"-"` @@ -257,6 +263,12 @@ type AccountListKeysResult struct { Keys *[]AccountKey `json:"keys,omitempty"` } +// MarshalJSON is the custom marshaler for AccountListKeysResult. +func (alkr AccountListKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListResult the response from the List Storage Accounts operation. type AccountListResult struct { autorest.Response `json:"-"` @@ -264,6 +276,12 @@ type AccountListResult struct { Value *[]Account `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for AccountListResult. +func (alr AccountListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountProperties ... type AccountProperties struct { // ProvisioningState - READ-ONLY; Gets the status of the storage account at the time the operation was called. Possible values include: 'Creating', 'ResolvingDNS', 'Succeeded' @@ -292,6 +310,12 @@ type AccountProperties struct { AccessTier AccessTier `json:"accessTier,omitempty"` } +// MarshalJSON is the custom marshaler for AccountProperties. +func (ap AccountProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountPropertiesCreateParameters ... type AccountPropertiesCreateParameters struct { // CustomDomain - User domain assigned to the storage account. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property. @@ -438,6 +462,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CustomDomain the custom domain assigned to this storage account. This can be set via Update. type CustomDomain struct { // Name - Gets or sets the custom domain name assigned to the storage account. Name is the CNAME source. @@ -489,6 +519,12 @@ type Endpoints struct { File *string `json:"file,omitempty"` } +// MarshalJSON is the custom marshaler for Endpoints. +func (e Endpoints) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource ... type Resource struct { // ID - READ-ONLY; Resource Id @@ -544,6 +580,12 @@ type Usage struct { Name *UsageName `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for Usage. +func (u Usage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageListResult the response from the List Usages operation. type UsageListResult struct { autorest.Response `json:"-"` @@ -558,3 +600,9 @@ type UsageName struct { // LocalizedValue - READ-ONLY; Gets a localized string describing the resource name. LocalizedValue *string `json:"localizedValue,omitempty"` } + +// MarshalJSON is the custom marshaler for UsageName. +func (un UsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/storage/mgmt/2016-05-01/storage/CHANGELOG.md b/services/storage/mgmt/2016-05-01/storage/CHANGELOG.md index 52911e4cc5e4..ce4bfa708754 100644 --- a/services/storage/mgmt/2016-05-01/storage/CHANGELOG.md +++ b/services/storage/mgmt/2016-05-01/storage/CHANGELOG.md @@ -1,2 +1,16 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountKey.MarshalJSON() ([]byte, error) +1. AccountListKeysResult.MarshalJSON() ([]byte, error) +1. AccountListResult.MarshalJSON() ([]byte, error) +1. AccountProperties.MarshalJSON() ([]byte, error) +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) +1. Endpoints.MarshalJSON() ([]byte, error) +1. ListAccountSasResponse.MarshalJSON() ([]byte, error) +1. ListServiceSasResponse.MarshalJSON() ([]byte, error) +1. Usage.MarshalJSON() ([]byte, error) +1. UsageName.MarshalJSON() ([]byte, error) diff --git a/services/storage/mgmt/2016-05-01/storage/_meta.json b/services/storage/mgmt/2016-05-01/storage/_meta.json index cd2bf60e17f3..b55261879988 100644 --- a/services/storage/mgmt/2016-05-01/storage/_meta.json +++ b/services/storage/mgmt/2016-05-01/storage/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", "tag": "package-2016-05", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/storage/mgmt/2016-05-01/storage/models.go b/services/storage/mgmt/2016-05-01/storage/models.go index ea582c3024f0..7aae6939dcc3 100644 --- a/services/storage/mgmt/2016-05-01/storage/models.go +++ b/services/storage/mgmt/2016-05-01/storage/models.go @@ -251,6 +251,12 @@ type AccountKey struct { Permissions KeyPermission `json:"permissions,omitempty"` } +// MarshalJSON is the custom marshaler for AccountKey. +func (ak AccountKey) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListKeysResult the response from the ListKeys operation. type AccountListKeysResult struct { autorest.Response `json:"-"` @@ -258,6 +264,12 @@ type AccountListKeysResult struct { Keys *[]AccountKey `json:"keys,omitempty"` } +// MarshalJSON is the custom marshaler for AccountListKeysResult. +func (alkr AccountListKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListResult the response from the List Storage Accounts operation. type AccountListResult struct { autorest.Response `json:"-"` @@ -265,6 +277,12 @@ type AccountListResult struct { Value *[]Account `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for AccountListResult. +func (alr AccountListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountProperties properties of the storage account. type AccountProperties struct { // ProvisioningState - READ-ONLY; Gets the status of the storage account at the time the operation was called. Possible values include: 'Creating', 'ResolvingDNS', 'Succeeded' @@ -293,6 +311,12 @@ type AccountProperties struct { AccessTier AccessTier `json:"accessTier,omitempty"` } +// MarshalJSON is the custom marshaler for AccountProperties. +func (ap AccountProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountPropertiesCreateParameters the parameters used to create the storage account. type AccountPropertiesCreateParameters struct { // CustomDomain - User domain assigned to the storage account. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property. @@ -459,6 +483,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CustomDomain the custom domain assigned to this storage account. This can be set via Update. type CustomDomain struct { // Name - Gets or sets the custom domain name assigned to the storage account. Name is the CNAME source. @@ -510,6 +540,12 @@ type Endpoints struct { File *string `json:"file,omitempty"` } +// MarshalJSON is the custom marshaler for Endpoints. +func (e Endpoints) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListAccountSasResponse the List SAS credentials operation response. type ListAccountSasResponse struct { autorest.Response `json:"-"` @@ -517,6 +553,12 @@ type ListAccountSasResponse struct { AccountSasToken *string `json:"accountSasToken,omitempty"` } +// MarshalJSON is the custom marshaler for ListAccountSasResponse. +func (lasr ListAccountSasResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListServiceSasResponse the List service SAS credentials operation response. type ListServiceSasResponse struct { autorest.Response `json:"-"` @@ -524,6 +566,12 @@ type ListServiceSasResponse struct { ServiceSasToken *string `json:"serviceSasToken,omitempty"` } +// MarshalJSON is the custom marshaler for ListServiceSasResponse. +func (lssr ListServiceSasResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource describes a storage resource. type Resource struct { // ID - READ-ONLY; Resource Id @@ -619,6 +667,12 @@ type Usage struct { Name *UsageName `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for Usage. +func (u Usage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageListResult the response from the List Usages operation. type UsageListResult struct { autorest.Response `json:"-"` @@ -633,3 +687,9 @@ type UsageName struct { // LocalizedValue - READ-ONLY; Gets a localized string describing the resource name. LocalizedValue *string `json:"localizedValue,omitempty"` } + +// MarshalJSON is the custom marshaler for UsageName. +func (un UsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/storage/mgmt/2016-12-01/storage/CHANGELOG.md b/services/storage/mgmt/2016-12-01/storage/CHANGELOG.md index 52911e4cc5e4..93ce7cbcd471 100644 --- a/services/storage/mgmt/2016-12-01/storage/CHANGELOG.md +++ b/services/storage/mgmt/2016-12-01/storage/CHANGELOG.md @@ -1,2 +1,15 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountKey.MarshalJSON() ([]byte, error) +1. AccountListKeysResult.MarshalJSON() ([]byte, error) +1. AccountListResult.MarshalJSON() ([]byte, error) +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) +1. Endpoints.MarshalJSON() ([]byte, error) +1. ListAccountSasResponse.MarshalJSON() ([]byte, error) +1. ListServiceSasResponse.MarshalJSON() ([]byte, error) +1. Usage.MarshalJSON() ([]byte, error) +1. UsageName.MarshalJSON() ([]byte, error) diff --git a/services/storage/mgmt/2016-12-01/storage/_meta.json b/services/storage/mgmt/2016-12-01/storage/_meta.json index b7d6625a1714..30e3dacf2d4d 100644 --- a/services/storage/mgmt/2016-12-01/storage/_meta.json +++ b/services/storage/mgmt/2016-12-01/storage/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", "tag": "package-2016-12", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/storage/mgmt/2016-12-01/storage/models.go b/services/storage/mgmt/2016-12-01/storage/models.go index 6d5af9e4cc0c..d06f362dce2d 100644 --- a/services/storage/mgmt/2016-12-01/storage/models.go +++ b/services/storage/mgmt/2016-12-01/storage/models.go @@ -251,6 +251,12 @@ type AccountKey struct { Permissions KeyPermission `json:"permissions,omitempty"` } +// MarshalJSON is the custom marshaler for AccountKey. +func (ak AccountKey) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListKeysResult the response from the ListKeys operation. type AccountListKeysResult struct { autorest.Response `json:"-"` @@ -258,6 +264,12 @@ type AccountListKeysResult struct { Keys *[]AccountKey `json:"keys,omitempty"` } +// MarshalJSON is the custom marshaler for AccountListKeysResult. +func (alkr AccountListKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListResult the response from the List Storage Accounts operation. type AccountListResult struct { autorest.Response `json:"-"` @@ -265,6 +277,12 @@ type AccountListResult struct { Value *[]Account `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for AccountListResult. +func (alr AccountListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountProperties properties of the storage account. type AccountProperties struct { // ProvisioningState - READ-ONLY; Gets the status of the storage account at the time the operation was called. Possible values include: 'Creating', 'ResolvingDNS', 'Succeeded' @@ -474,6 +492,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CustomDomain the custom domain assigned to this storage account. This can be set via Update. type CustomDomain struct { // Name - Gets or sets the custom domain name assigned to the storage account. Name is the CNAME source. @@ -543,6 +567,12 @@ type Endpoints struct { File *string `json:"file,omitempty"` } +// MarshalJSON is the custom marshaler for Endpoints. +func (e Endpoints) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListAccountSasResponse the List SAS credentials operation response. type ListAccountSasResponse struct { autorest.Response `json:"-"` @@ -550,6 +580,12 @@ type ListAccountSasResponse struct { AccountSasToken *string `json:"accountSasToken,omitempty"` } +// MarshalJSON is the custom marshaler for ListAccountSasResponse. +func (lasr ListAccountSasResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListServiceSasResponse the List service SAS credentials operation response. type ListServiceSasResponse struct { autorest.Response `json:"-"` @@ -557,6 +593,12 @@ type ListServiceSasResponse struct { ServiceSasToken *string `json:"serviceSasToken,omitempty"` } +// MarshalJSON is the custom marshaler for ListServiceSasResponse. +func (lssr ListServiceSasResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource describes a storage resource. type Resource struct { // ID - READ-ONLY; Resource Id @@ -652,6 +694,12 @@ type Usage struct { Name *UsageName `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for Usage. +func (u Usage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageListResult the response from the List Usages operation. type UsageListResult struct { autorest.Response `json:"-"` @@ -666,3 +714,9 @@ type UsageName struct { // LocalizedValue - READ-ONLY; Gets a localized string describing the resource name. LocalizedValue *string `json:"localizedValue,omitempty"` } + +// MarshalJSON is the custom marshaler for UsageName. +func (un UsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} diff --git a/services/storage/mgmt/2017-06-01/storage/CHANGELOG.md b/services/storage/mgmt/2017-06-01/storage/CHANGELOG.md index 52911e4cc5e4..dbdc023bf0b0 100644 --- a/services/storage/mgmt/2017-06-01/storage/CHANGELOG.md +++ b/services/storage/mgmt/2017-06-01/storage/CHANGELOG.md @@ -1,2 +1,17 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountKey.MarshalJSON() ([]byte, error) +1. AccountListKeysResult.MarshalJSON() ([]byte, error) +1. AccountListResult.MarshalJSON() ([]byte, error) +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) +1. Endpoints.MarshalJSON() ([]byte, error) +1. ListAccountSasResponse.MarshalJSON() ([]byte, error) +1. ListServiceSasResponse.MarshalJSON() ([]byte, error) +1. SKUCapability.MarshalJSON() ([]byte, error) +1. SkuListResult.MarshalJSON() ([]byte, error) +1. Usage.MarshalJSON() ([]byte, error) +1. UsageName.MarshalJSON() ([]byte, error) diff --git a/services/storage/mgmt/2017-06-01/storage/_meta.json b/services/storage/mgmt/2017-06-01/storage/_meta.json index c24b77387f1c..4bd2c56cfdb8 100644 --- a/services/storage/mgmt/2017-06-01/storage/_meta.json +++ b/services/storage/mgmt/2017-06-01/storage/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", "tag": "package-2017-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/storage/mgmt/2017-06-01/storage/models.go b/services/storage/mgmt/2017-06-01/storage/models.go index f067b7cd89ce..77b83e2b85bb 100644 --- a/services/storage/mgmt/2017-06-01/storage/models.go +++ b/services/storage/mgmt/2017-06-01/storage/models.go @@ -283,6 +283,12 @@ type AccountKey struct { Permissions KeyPermission `json:"permissions,omitempty"` } +// MarshalJSON is the custom marshaler for AccountKey. +func (ak AccountKey) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListKeysResult the response from the ListKeys operation. type AccountListKeysResult struct { autorest.Response `json:"-"` @@ -290,6 +296,12 @@ type AccountListKeysResult struct { Keys *[]AccountKey `json:"keys,omitempty"` } +// MarshalJSON is the custom marshaler for AccountListKeysResult. +func (alkr AccountListKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListResult the response from the List Storage Accounts operation. type AccountListResult struct { autorest.Response `json:"-"` @@ -297,6 +309,12 @@ type AccountListResult struct { Value *[]Account `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for AccountListResult. +func (alr AccountListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountProperties properties of the storage account. type AccountProperties struct { // ProvisioningState - READ-ONLY; Gets the status of the storage account at the time the operation was called. Possible values include: 'Creating', 'ResolvingDNS', 'Succeeded' @@ -528,6 +546,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CustomDomain the custom domain assigned to this storage account. This can be set via Update. type CustomDomain struct { // Name - Gets or sets the custom domain name assigned to the storage account. Name is the CNAME source. @@ -607,6 +631,12 @@ type Endpoints struct { File *string `json:"file,omitempty"` } +// MarshalJSON is the custom marshaler for Endpoints. +func (e Endpoints) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Identity identity for the resource. type Identity struct { // PrincipalID - READ-ONLY; The principal ID of resource identity. @@ -651,6 +681,12 @@ type ListAccountSasResponse struct { AccountSasToken *string `json:"accountSasToken,omitempty"` } +// MarshalJSON is the custom marshaler for ListAccountSasResponse. +func (lasr ListAccountSasResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListServiceSasResponse the List service SAS credentials operation response. type ListServiceSasResponse struct { autorest.Response `json:"-"` @@ -658,6 +694,12 @@ type ListServiceSasResponse struct { ServiceSasToken *string `json:"serviceSasToken,omitempty"` } +// MarshalJSON is the custom marshaler for ListServiceSasResponse. +func (lssr ListServiceSasResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricSpecification metric specification of operation. type MetricSpecification struct { // Name - Name of metric specification. @@ -927,6 +969,12 @@ type SKUCapability struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SKUCapability. +func (sc SKUCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuListResult the response from the List Storage SKUs operation. type SkuListResult struct { autorest.Response `json:"-"` @@ -934,6 +982,12 @@ type SkuListResult struct { Value *[]Sku `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SkuListResult. +func (slr SkuListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage describes Storage Resource Usage. type Usage struct { // Unit - READ-ONLY; Gets the unit of measurement. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountsPerSecond', 'BytesPerSecond' @@ -946,6 +1000,12 @@ type Usage struct { Name *UsageName `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for Usage. +func (u Usage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageListResult the response from the List Usages operation. type UsageListResult struct { autorest.Response `json:"-"` @@ -961,6 +1021,12 @@ type UsageName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for UsageName. +func (un UsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkRule virtual Network rule. type VirtualNetworkRule struct { // VirtualNetworkResourceID - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. diff --git a/services/storage/mgmt/2017-10-01/storage/CHANGELOG.md b/services/storage/mgmt/2017-10-01/storage/CHANGELOG.md index 52911e4cc5e4..dbdc023bf0b0 100644 --- a/services/storage/mgmt/2017-10-01/storage/CHANGELOG.md +++ b/services/storage/mgmt/2017-10-01/storage/CHANGELOG.md @@ -1,2 +1,17 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountKey.MarshalJSON() ([]byte, error) +1. AccountListKeysResult.MarshalJSON() ([]byte, error) +1. AccountListResult.MarshalJSON() ([]byte, error) +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) +1. Endpoints.MarshalJSON() ([]byte, error) +1. ListAccountSasResponse.MarshalJSON() ([]byte, error) +1. ListServiceSasResponse.MarshalJSON() ([]byte, error) +1. SKUCapability.MarshalJSON() ([]byte, error) +1. SkuListResult.MarshalJSON() ([]byte, error) +1. Usage.MarshalJSON() ([]byte, error) +1. UsageName.MarshalJSON() ([]byte, error) diff --git a/services/storage/mgmt/2017-10-01/storage/_meta.json b/services/storage/mgmt/2017-10-01/storage/_meta.json index 560c71a4241f..ca250fc7c3e5 100644 --- a/services/storage/mgmt/2017-10-01/storage/_meta.json +++ b/services/storage/mgmt/2017-10-01/storage/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", "tag": "package-2017-10", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/storage/mgmt/2017-10-01/storage/models.go b/services/storage/mgmt/2017-10-01/storage/models.go index c70fe6732727..c5a3245e1684 100644 --- a/services/storage/mgmt/2017-10-01/storage/models.go +++ b/services/storage/mgmt/2017-10-01/storage/models.go @@ -283,6 +283,12 @@ type AccountKey struct { Permissions KeyPermission `json:"permissions,omitempty"` } +// MarshalJSON is the custom marshaler for AccountKey. +func (ak AccountKey) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListKeysResult the response from the ListKeys operation. type AccountListKeysResult struct { autorest.Response `json:"-"` @@ -290,6 +296,12 @@ type AccountListKeysResult struct { Keys *[]AccountKey `json:"keys,omitempty"` } +// MarshalJSON is the custom marshaler for AccountListKeysResult. +func (alkr AccountListKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListResult the response from the List Storage Accounts operation. type AccountListResult struct { autorest.Response `json:"-"` @@ -297,6 +309,12 @@ type AccountListResult struct { Value *[]Account `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for AccountListResult. +func (alr AccountListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountProperties properties of the storage account. type AccountProperties struct { // ProvisioningState - READ-ONLY; Gets the status of the storage account at the time the operation was called. Possible values include: 'Creating', 'ResolvingDNS', 'Succeeded' @@ -542,6 +560,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CustomDomain the custom domain assigned to this storage account. This can be set via Update. type CustomDomain struct { // Name - Gets or sets the custom domain name assigned to the storage account. Name is the CNAME source. @@ -621,6 +645,12 @@ type Endpoints struct { File *string `json:"file,omitempty"` } +// MarshalJSON is the custom marshaler for Endpoints. +func (e Endpoints) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Identity identity for the resource. type Identity struct { // PrincipalID - READ-ONLY; The principal ID of resource identity. @@ -665,6 +695,12 @@ type ListAccountSasResponse struct { AccountSasToken *string `json:"accountSasToken,omitempty"` } +// MarshalJSON is the custom marshaler for ListAccountSasResponse. +func (lasr ListAccountSasResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListServiceSasResponse the List service SAS credentials operation response. type ListServiceSasResponse struct { autorest.Response `json:"-"` @@ -672,6 +708,12 @@ type ListServiceSasResponse struct { ServiceSasToken *string `json:"serviceSasToken,omitempty"` } +// MarshalJSON is the custom marshaler for ListServiceSasResponse. +func (lssr ListServiceSasResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricSpecification metric specification of operation. type MetricSpecification struct { // Name - Name of metric specification. @@ -941,6 +983,12 @@ type SKUCapability struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SKUCapability. +func (sc SKUCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuListResult the response from the List Storage SKUs operation. type SkuListResult struct { autorest.Response `json:"-"` @@ -948,6 +996,12 @@ type SkuListResult struct { Value *[]Sku `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SkuListResult. +func (slr SkuListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage describes Storage Resource Usage. type Usage struct { // Unit - READ-ONLY; Gets the unit of measurement. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountsPerSecond', 'BytesPerSecond' @@ -960,6 +1014,12 @@ type Usage struct { Name *UsageName `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for Usage. +func (u Usage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageListResult the response from the List Usages operation. type UsageListResult struct { autorest.Response `json:"-"` @@ -975,6 +1035,12 @@ type UsageName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for UsageName. +func (un UsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkRule virtual Network rule. type VirtualNetworkRule struct { // VirtualNetworkResourceID - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. diff --git a/services/storage/mgmt/2018-02-01/storage/CHANGELOG.md b/services/storage/mgmt/2018-02-01/storage/CHANGELOG.md index 52911e4cc5e4..a4f2b84df631 100644 --- a/services/storage/mgmt/2018-02-01/storage/CHANGELOG.md +++ b/services/storage/mgmt/2018-02-01/storage/CHANGELOG.md @@ -1,2 +1,22 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountKey.MarshalJSON() ([]byte, error) +1. AccountListKeysResult.MarshalJSON() ([]byte, error) +1. AccountListResult.MarshalJSON() ([]byte, error) +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) +1. Endpoints.MarshalJSON() ([]byte, error) +1. ListAccountSasResponse.MarshalJSON() ([]byte, error) +1. ListServiceSasResponse.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. SKUCapability.MarshalJSON() ([]byte, error) +1. SkuListResult.MarshalJSON() ([]byte, error) +1. TagProperty.MarshalJSON() ([]byte, error) +1. UpdateHistoryProperty.MarshalJSON() ([]byte, error) +1. Usage.MarshalJSON() ([]byte, error) +1. UsageName.MarshalJSON() ([]byte, error) diff --git a/services/storage/mgmt/2018-02-01/storage/_meta.json b/services/storage/mgmt/2018-02-01/storage/_meta.json index 204cafa1c1ce..ad77376fc148 100644 --- a/services/storage/mgmt/2018-02-01/storage/_meta.json +++ b/services/storage/mgmt/2018-02-01/storage/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", "tag": "package-2018-02", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/storage/mgmt/2018-02-01/storage/models.go b/services/storage/mgmt/2018-02-01/storage/models.go index a003a4cea19f..cc2309fda769 100644 --- a/services/storage/mgmt/2018-02-01/storage/models.go +++ b/services/storage/mgmt/2018-02-01/storage/models.go @@ -283,6 +283,12 @@ type AccountKey struct { Permissions KeyPermission `json:"permissions,omitempty"` } +// MarshalJSON is the custom marshaler for AccountKey. +func (ak AccountKey) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListKeysResult the response from the ListKeys operation. type AccountListKeysResult struct { autorest.Response `json:"-"` @@ -290,6 +296,12 @@ type AccountListKeysResult struct { Keys *[]AccountKey `json:"keys,omitempty"` } +// MarshalJSON is the custom marshaler for AccountListKeysResult. +func (alkr AccountListKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListResult the response from the List Storage Accounts operation. type AccountListResult struct { autorest.Response `json:"-"` @@ -297,6 +309,12 @@ type AccountListResult struct { Value *[]Account `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for AccountListResult. +func (alr AccountListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountProperties properties of the storage account. type AccountProperties struct { // ProvisioningState - READ-ONLY; Gets the status of the storage account at the time the operation was called. Possible values include: 'Creating', 'ResolvingDNS', 'Succeeded' @@ -550,6 +568,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BlobContainer properties of the blob container, including Id, resource name, resource type, Etag. type BlobContainer struct { autorest.Response `json:"-"` @@ -645,6 +669,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerProperties the properties of a container. type ContainerProperties struct { // PublicAccess - Specifies whether data in the container may be accessed publicly and the level of access. Possible values include: 'PublicAccessContainer', 'PublicAccessBlob', 'PublicAccessNone' @@ -765,6 +795,12 @@ type Endpoints struct { Dfs *string `json:"dfs,omitempty"` } +// MarshalJSON is the custom marshaler for Endpoints. +func (e Endpoints) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Identity identity for the resource. type Identity struct { // PrincipalID - READ-ONLY; The principal ID of resource identity. @@ -1030,6 +1066,12 @@ type ListAccountSasResponse struct { AccountSasToken *string `json:"accountSasToken,omitempty"` } +// MarshalJSON is the custom marshaler for ListAccountSasResponse. +func (lasr ListAccountSasResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListContainerItem the blob container properties be listed out. type ListContainerItem struct { // ContainerProperties - The blob container properties be listed out. @@ -1127,6 +1169,12 @@ type ListServiceSasResponse struct { ServiceSasToken *string `json:"serviceSasToken,omitempty"` } +// MarshalJSON is the custom marshaler for ListServiceSasResponse. +func (lssr ListServiceSasResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricSpecification metric specification of operation. type MetricSpecification struct { // Name - Name of metric specification. @@ -1279,6 +1327,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -1289,6 +1343,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Restriction the restriction because of which SKU cannot be used. type Restriction struct { // Type - READ-ONLY; The type of restrictions. As of now only possible value for this is location. @@ -1393,6 +1453,12 @@ type SKUCapability struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SKUCapability. +func (sc SKUCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuListResult the response from the List Storage SKUs operation. type SkuListResult struct { autorest.Response `json:"-"` @@ -1400,6 +1466,12 @@ type SkuListResult struct { Value *[]Sku `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SkuListResult. +func (slr SkuListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TagProperty a tag of the LegalHold of a blob container. type TagProperty struct { // Tag - READ-ONLY; The tag value. @@ -1414,6 +1486,12 @@ type TagProperty struct { Upn *string `json:"upn,omitempty"` } +// MarshalJSON is the custom marshaler for TagProperty. +func (tp TagProperty) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource // which has 'tags' and a 'location' type TrackedResource struct { @@ -1457,6 +1535,12 @@ type UpdateHistoryProperty struct { Upn *string `json:"upn,omitempty"` } +// MarshalJSON is the custom marshaler for UpdateHistoryProperty. +func (uhp UpdateHistoryProperty) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage describes Storage Resource Usage. type Usage struct { // Unit - READ-ONLY; Gets the unit of measurement. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountsPerSecond', 'BytesPerSecond' @@ -1469,6 +1553,12 @@ type Usage struct { Name *UsageName `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for Usage. +func (u Usage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageListResult the response from the List Usages operation. type UsageListResult struct { autorest.Response `json:"-"` @@ -1484,6 +1574,12 @@ type UsageName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for UsageName. +func (un UsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkRule virtual Network rule. type VirtualNetworkRule struct { // VirtualNetworkResourceID - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. diff --git a/services/storage/mgmt/2018-11-01/storage/CHANGELOG.md b/services/storage/mgmt/2018-11-01/storage/CHANGELOG.md index 52911e4cc5e4..1dd15badca49 100644 --- a/services/storage/mgmt/2018-11-01/storage/CHANGELOG.md +++ b/services/storage/mgmt/2018-11-01/storage/CHANGELOG.md @@ -1,2 +1,23 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountKey.MarshalJSON() ([]byte, error) +1. AccountListKeysResult.MarshalJSON() ([]byte, error) +1. AccountListResult.MarshalJSON() ([]byte, error) +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) +1. Endpoints.MarshalJSON() ([]byte, error) +1. GeoReplicationStats.MarshalJSON() ([]byte, error) +1. ListAccountSasResponse.MarshalJSON() ([]byte, error) +1. ListServiceSasResponse.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. SKUCapability.MarshalJSON() ([]byte, error) +1. SkuListResult.MarshalJSON() ([]byte, error) +1. TagProperty.MarshalJSON() ([]byte, error) +1. UpdateHistoryProperty.MarshalJSON() ([]byte, error) +1. Usage.MarshalJSON() ([]byte, error) +1. UsageName.MarshalJSON() ([]byte, error) diff --git a/services/storage/mgmt/2018-11-01/storage/_meta.json b/services/storage/mgmt/2018-11-01/storage/_meta.json index 8b62cb76bb1d..f78f15755cce 100644 --- a/services/storage/mgmt/2018-11-01/storage/_meta.json +++ b/services/storage/mgmt/2018-11-01/storage/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", "tag": "package-2018-11", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/storage/mgmt/2018-11-01/storage/models.go b/services/storage/mgmt/2018-11-01/storage/models.go index 3324e4ce0594..120490aebd4f 100644 --- a/services/storage/mgmt/2018-11-01/storage/models.go +++ b/services/storage/mgmt/2018-11-01/storage/models.go @@ -283,6 +283,12 @@ type AccountKey struct { Permissions KeyPermission `json:"permissions,omitempty"` } +// MarshalJSON is the custom marshaler for AccountKey. +func (ak AccountKey) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListKeysResult the response from the ListKeys operation. type AccountListKeysResult struct { autorest.Response `json:"-"` @@ -290,6 +296,12 @@ type AccountListKeysResult struct { Keys *[]AccountKey `json:"keys,omitempty"` } +// MarshalJSON is the custom marshaler for AccountListKeysResult. +func (alkr AccountListKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListResult the response from the List Storage Accounts operation. type AccountListResult struct { autorest.Response `json:"-"` @@ -297,6 +309,12 @@ type AccountListResult struct { Value *[]Account `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for AccountListResult. +func (alr AccountListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountProperties properties of the storage account. type AccountProperties struct { // ProvisioningState - READ-ONLY; Gets the status of the storage account at the time the operation was called. Possible values include: 'Creating', 'ResolvingDNS', 'Succeeded' @@ -600,6 +618,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BlobContainer properties of the blob container, including Id, resource name, resource type, Etag. type BlobContainer struct { autorest.Response `json:"-"` @@ -778,6 +802,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ContainerProperties the properties of a container. type ContainerProperties struct { // PublicAccess - Specifies whether data in the container may be accessed publicly and the level of access. Possible values include: 'PublicAccessContainer', 'PublicAccessBlob', 'PublicAccessNone' @@ -938,6 +968,12 @@ type Endpoints struct { Dfs *string `json:"dfs,omitempty"` } +// MarshalJSON is the custom marshaler for Endpoints. +func (e Endpoints) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GeoReplicationStats statistics related to replication for storage account's Blob, Table, Queue and File // services. It is only available when geo-redundant replication is enabled for the storage account. type GeoReplicationStats struct { @@ -949,6 +985,12 @@ type GeoReplicationStats struct { CanFailover *bool `json:"canFailover,omitempty"` } +// MarshalJSON is the custom marshaler for GeoReplicationStats. +func (grs GeoReplicationStats) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Identity identity for the resource. type Identity struct { // PrincipalID - READ-ONLY; The principal ID of resource identity. @@ -1214,6 +1256,12 @@ type ListAccountSasResponse struct { AccountSasToken *string `json:"accountSasToken,omitempty"` } +// MarshalJSON is the custom marshaler for ListAccountSasResponse. +func (lasr ListAccountSasResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListContainerItem the blob container properties be listed out. type ListContainerItem struct { // ContainerProperties - The blob container properties be listed out. @@ -1311,6 +1359,12 @@ type ListServiceSasResponse struct { ServiceSasToken *string `json:"serviceSasToken,omitempty"` } +// MarshalJSON is the custom marshaler for ListServiceSasResponse. +func (lssr ListServiceSasResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagementPolicy the Get Storage Account ManagementPolicies operation response. type ManagementPolicy struct { autorest.Response `json:"-"` @@ -1611,6 +1665,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -1621,6 +1681,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Restriction the restriction because of which SKU cannot be used. type Restriction struct { // Type - READ-ONLY; The type of restrictions. As of now only possible value for this is location. @@ -1725,6 +1791,12 @@ type SKUCapability struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SKUCapability. +func (sc SKUCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuListResult the response from the List Storage SKUs operation. type SkuListResult struct { autorest.Response `json:"-"` @@ -1732,6 +1804,12 @@ type SkuListResult struct { Value *[]Sku `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SkuListResult. +func (slr SkuListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TagProperty a tag of the LegalHold of a blob container. type TagProperty struct { // Tag - READ-ONLY; The tag value. @@ -1746,6 +1824,12 @@ type TagProperty struct { Upn *string `json:"upn,omitempty"` } +// MarshalJSON is the custom marshaler for TagProperty. +func (tp TagProperty) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource // which has 'tags' and a 'location' type TrackedResource struct { @@ -1789,6 +1873,12 @@ type UpdateHistoryProperty struct { Upn *string `json:"upn,omitempty"` } +// MarshalJSON is the custom marshaler for UpdateHistoryProperty. +func (uhp UpdateHistoryProperty) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage describes Storage Resource Usage. type Usage struct { // Unit - READ-ONLY; Gets the unit of measurement. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountsPerSecond', 'BytesPerSecond' @@ -1801,6 +1891,12 @@ type Usage struct { Name *UsageName `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for Usage. +func (u Usage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageListResult the response from the List Usages operation. type UsageListResult struct { autorest.Response `json:"-"` @@ -1816,6 +1912,12 @@ type UsageName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for UsageName. +func (un UsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkRule virtual Network rule. type VirtualNetworkRule struct { // VirtualNetworkResourceID - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. diff --git a/services/storage/mgmt/2019-04-01/storage/CHANGELOG.md b/services/storage/mgmt/2019-04-01/storage/CHANGELOG.md index 52911e4cc5e4..e92b694f7bc1 100644 --- a/services/storage/mgmt/2019-04-01/storage/CHANGELOG.md +++ b/services/storage/mgmt/2019-04-01/storage/CHANGELOG.md @@ -1,2 +1,27 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountKey.MarshalJSON() ([]byte, error) +1. AccountListKeysResult.MarshalJSON() ([]byte, error) +1. AccountListResult.MarshalJSON() ([]byte, error) +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. BlobServiceItems.MarshalJSON() ([]byte, error) +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) +1. Endpoints.MarshalJSON() ([]byte, error) +1. FileServiceItems.MarshalJSON() ([]byte, error) +1. FileShareItems.MarshalJSON() ([]byte, error) +1. GeoReplicationStats.MarshalJSON() ([]byte, error) +1. ListAccountSasResponse.MarshalJSON() ([]byte, error) +1. ListContainerItems.MarshalJSON() ([]byte, error) +1. ListServiceSasResponse.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. SKUCapability.MarshalJSON() ([]byte, error) +1. SkuListResult.MarshalJSON() ([]byte, error) +1. TagProperty.MarshalJSON() ([]byte, error) +1. UpdateHistoryProperty.MarshalJSON() ([]byte, error) +1. Usage.MarshalJSON() ([]byte, error) +1. UsageName.MarshalJSON() ([]byte, error) diff --git a/services/storage/mgmt/2019-04-01/storage/_meta.json b/services/storage/mgmt/2019-04-01/storage/_meta.json index 5891246cb010..b944ebc5c94b 100644 --- a/services/storage/mgmt/2019-04-01/storage/_meta.json +++ b/services/storage/mgmt/2019-04-01/storage/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", "tag": "package-2019-04", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/storage/mgmt/2019-04-01/storage/models.go b/services/storage/mgmt/2019-04-01/storage/models.go index b4c0d22c5580..9440280cde72 100644 --- a/services/storage/mgmt/2019-04-01/storage/models.go +++ b/services/storage/mgmt/2019-04-01/storage/models.go @@ -285,6 +285,12 @@ type AccountKey struct { Permissions KeyPermission `json:"permissions,omitempty"` } +// MarshalJSON is the custom marshaler for AccountKey. +func (ak AccountKey) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListKeysResult the response from the ListKeys operation. type AccountListKeysResult struct { autorest.Response `json:"-"` @@ -292,6 +298,12 @@ type AccountListKeysResult struct { Keys *[]AccountKey `json:"keys,omitempty"` } +// MarshalJSON is the custom marshaler for AccountListKeysResult. +func (alkr AccountListKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListResult the response from the List Storage Accounts operation. type AccountListResult struct { autorest.Response `json:"-"` @@ -301,6 +313,12 @@ type AccountListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for AccountListResult. +func (alr AccountListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListResultIterator provides access to a complete listing of Account values. type AccountListResultIterator struct { i int @@ -797,6 +815,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureFilesIdentityBasedAuthentication settings for Azure Files identity based authentication. type AzureFilesIdentityBasedAuthentication struct { // DirectoryServiceOptions - Indicates the directory service used. Possible values include: 'DirectoryServiceOptionsNone', 'DirectoryServiceOptionsAADDS', 'DirectoryServiceOptionsAD' @@ -896,6 +920,12 @@ type BlobServiceItems struct { Value *[]BlobServiceProperties `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for BlobServiceItems. +func (bsi BlobServiceItems) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BlobServiceProperties the properties of a storage account’s Blob service. type BlobServiceProperties struct { autorest.Response `json:"-"` @@ -1000,6 +1030,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from the Storage service. type CloudError struct { Error *CloudErrorBody `json:"error,omitempty"` @@ -1177,6 +1213,12 @@ type Endpoints struct { Dfs *string `json:"dfs,omitempty"` } +// MarshalJSON is the custom marshaler for Endpoints. +func (e Endpoints) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FileServiceItems ... type FileServiceItems struct { autorest.Response `json:"-"` @@ -1184,6 +1226,12 @@ type FileServiceItems struct { Value *[]FileServiceProperties `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for FileServiceItems. +func (fsi FileServiceItems) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FileServiceProperties the properties of File services in storage account. type FileServiceProperties struct { autorest.Response `json:"-"` @@ -1440,6 +1488,12 @@ type FileShareItems struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for FileShareItems. +func (fsi FileShareItems) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FileShareItemsIterator provides access to a complete listing of FileShareItem values. type FileShareItemsIterator struct { i int @@ -1623,6 +1677,12 @@ type GeoReplicationStats struct { CanFailover *bool `json:"canFailover,omitempty"` } +// MarshalJSON is the custom marshaler for GeoReplicationStats. +func (grs GeoReplicationStats) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Identity identity for the resource. type Identity struct { // PrincipalID - READ-ONLY; The principal ID of resource identity. @@ -1888,6 +1948,12 @@ type ListAccountSasResponse struct { AccountSasToken *string `json:"accountSasToken,omitempty"` } +// MarshalJSON is the custom marshaler for ListAccountSasResponse. +func (lasr ListAccountSasResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListContainerItem the blob container properties be listed out. type ListContainerItem struct { // ContainerProperties - The blob container properties be listed out. @@ -1981,6 +2047,12 @@ type ListContainerItems struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListContainerItems. +func (lci ListContainerItems) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListContainerItemsIterator provides access to a complete listing of ListContainerItem values. type ListContainerItemsIterator struct { i int @@ -2138,6 +2210,12 @@ type ListServiceSasResponse struct { ServiceSasToken *string `json:"serviceSasToken,omitempty"` } +// MarshalJSON is the custom marshaler for ListServiceSasResponse. +func (lssr ListServiceSasResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagementPolicy the Get Storage Account ManagementPolicies operation response. type ManagementPolicy struct { autorest.Response `json:"-"` @@ -2441,6 +2519,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -2451,6 +2535,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Restriction the restriction because of which SKU cannot be used. type Restriction struct { // Type - READ-ONLY; The type of restrictions. As of now only possible value for this is location. @@ -2555,6 +2645,12 @@ type SKUCapability struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SKUCapability. +func (sc SKUCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuListResult the response from the List Storage SKUs operation. type SkuListResult struct { autorest.Response `json:"-"` @@ -2562,6 +2658,12 @@ type SkuListResult struct { Value *[]Sku `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SkuListResult. +func (slr SkuListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TagProperty a tag of the LegalHold of a blob container. type TagProperty struct { // Tag - READ-ONLY; The tag value. @@ -2576,6 +2678,12 @@ type TagProperty struct { Upn *string `json:"upn,omitempty"` } +// MarshalJSON is the custom marshaler for TagProperty. +func (tp TagProperty) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource // which has 'tags' and a 'location' type TrackedResource struct { @@ -2619,6 +2727,12 @@ type UpdateHistoryProperty struct { Upn *string `json:"upn,omitempty"` } +// MarshalJSON is the custom marshaler for UpdateHistoryProperty. +func (uhp UpdateHistoryProperty) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage describes Storage Resource Usage. type Usage struct { // Unit - READ-ONLY; Gets the unit of measurement. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountsPerSecond', 'BytesPerSecond' @@ -2631,6 +2745,12 @@ type Usage struct { Name *UsageName `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for Usage. +func (u Usage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageListResult the response from the List Usages operation. type UsageListResult struct { autorest.Response `json:"-"` @@ -2646,6 +2766,12 @@ type UsageName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for UsageName. +func (un UsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkRule virtual Network rule. type VirtualNetworkRule struct { // VirtualNetworkResourceID - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. diff --git a/services/storage/mgmt/2019-06-01/storage/CHANGELOG.md b/services/storage/mgmt/2019-06-01/storage/CHANGELOG.md index 52911e4cc5e4..7b5c5c968378 100644 --- a/services/storage/mgmt/2019-06-01/storage/CHANGELOG.md +++ b/services/storage/mgmt/2019-06-01/storage/CHANGELOG.md @@ -1,2 +1,36 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountInternetEndpoints.MarshalJSON() ([]byte, error) +1. AccountKey.MarshalJSON() ([]byte, error) +1. AccountListKeysResult.MarshalJSON() ([]byte, error) +1. AccountListResult.MarshalJSON() ([]byte, error) +1. AccountMicrosoftEndpoints.MarshalJSON() ([]byte, error) +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. BlobRestoreStatus.MarshalJSON() ([]byte, error) +1. BlobServiceItems.MarshalJSON() ([]byte, error) +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) +1. EncryptionScopeListResult.MarshalJSON() ([]byte, error) +1. FileServiceItems.MarshalJSON() ([]byte, error) +1. FileShareItems.MarshalJSON() ([]byte, error) +1. GeoReplicationStats.MarshalJSON() ([]byte, error) +1. ListAccountSasResponse.MarshalJSON() ([]byte, error) +1. ListContainerItems.MarshalJSON() ([]byte, error) +1. ListQueueResource.MarshalJSON() ([]byte, error) +1. ListQueueServices.MarshalJSON() ([]byte, error) +1. ListServiceSasResponse.MarshalJSON() ([]byte, error) +1. ListTableResource.MarshalJSON() ([]byte, error) +1. ListTableServices.MarshalJSON() ([]byte, error) +1. PrivateEndpoint.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. SKUCapability.MarshalJSON() ([]byte, error) +1. SkuListResult.MarshalJSON() ([]byte, error) +1. TableProperties.MarshalJSON() ([]byte, error) +1. TagProperty.MarshalJSON() ([]byte, error) +1. UpdateHistoryProperty.MarshalJSON() ([]byte, error) +1. Usage.MarshalJSON() ([]byte, error) +1. UsageName.MarshalJSON() ([]byte, error) diff --git a/services/storage/mgmt/2019-06-01/storage/_meta.json b/services/storage/mgmt/2019-06-01/storage/_meta.json index 8f298ab4de95..e9e533452515 100644 --- a/services/storage/mgmt/2019-06-01/storage/_meta.json +++ b/services/storage/mgmt/2019-06-01/storage/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", "tag": "package-2019-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/storage/mgmt/2019-06-01/storage/models.go b/services/storage/mgmt/2019-06-01/storage/models.go index db2182eed027..ba7702675388 100644 --- a/services/storage/mgmt/2019-06-01/storage/models.go +++ b/services/storage/mgmt/2019-06-01/storage/models.go @@ -288,6 +288,12 @@ type AccountInternetEndpoints struct { Dfs *string `json:"dfs,omitempty"` } +// MarshalJSON is the custom marshaler for AccountInternetEndpoints. +func (aie AccountInternetEndpoints) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountKey an access key for the storage account. type AccountKey struct { // KeyName - READ-ONLY; Name of the key. @@ -298,6 +304,12 @@ type AccountKey struct { Permissions KeyPermission `json:"permissions,omitempty"` } +// MarshalJSON is the custom marshaler for AccountKey. +func (ak AccountKey) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListKeysResult the response from the ListKeys operation. type AccountListKeysResult struct { autorest.Response `json:"-"` @@ -305,6 +317,12 @@ type AccountListKeysResult struct { Keys *[]AccountKey `json:"keys,omitempty"` } +// MarshalJSON is the custom marshaler for AccountListKeysResult. +func (alkr AccountListKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListResult the response from the List Storage Accounts operation. type AccountListResult struct { autorest.Response `json:"-"` @@ -314,6 +332,12 @@ type AccountListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for AccountListResult. +func (alr AccountListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListResultIterator provides access to a complete listing of Account values. type AccountListResultIterator struct { i int @@ -481,6 +505,12 @@ type AccountMicrosoftEndpoints struct { Dfs *string `json:"dfs,omitempty"` } +// MarshalJSON is the custom marshaler for AccountMicrosoftEndpoints. +func (ame AccountMicrosoftEndpoints) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountProperties properties of the storage account. type AccountProperties struct { // ProvisioningState - READ-ONLY; Gets the status of the storage account at the time the operation was called. Possible values include: 'Creating', 'ResolvingDNS', 'Succeeded' @@ -883,6 +913,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureFilesIdentityBasedAuthentication settings for Azure Files identity based authentication. type AzureFilesIdentityBasedAuthentication struct { // DirectoryServiceOptions - Indicates the directory service used. Possible values include: 'DirectoryServiceOptionsNone', 'DirectoryServiceOptionsAADDS', 'DirectoryServiceOptionsAD' @@ -1004,6 +1040,12 @@ type BlobRestoreStatus struct { Parameters *BlobRestoreParameters `json:"parameters,omitempty"` } +// MarshalJSON is the custom marshaler for BlobRestoreStatus. +func (brs BlobRestoreStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BlobServiceItems ... type BlobServiceItems struct { autorest.Response `json:"-"` @@ -1011,6 +1053,12 @@ type BlobServiceItems struct { Value *[]BlobServiceProperties `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for BlobServiceItems. +func (bsi BlobServiceItems) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BlobServiceProperties the properties of a storage account’s Blob service. type BlobServiceProperties struct { autorest.Response `json:"-"` @@ -1132,6 +1180,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from the Storage service. type CloudError struct { Error *CloudErrorBody `json:"error,omitempty"` @@ -1369,6 +1423,12 @@ type EncryptionScopeListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for EncryptionScopeListResult. +func (eslr EncryptionScopeListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EncryptionScopeListResultIterator provides access to a complete listing of EncryptionScope values. type EncryptionScopeListResultIterator struct { i int @@ -1630,6 +1690,12 @@ type FileServiceItems struct { Value *[]FileServiceProperties `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for FileServiceItems. +func (fsi FileServiceItems) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FileServiceProperties the properties of File services in storage account. type FileServiceProperties struct { autorest.Response `json:"-"` @@ -1899,6 +1965,12 @@ type FileShareItems struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for FileShareItems. +func (fsi FileShareItems) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FileShareItemsIterator provides access to a complete listing of FileShareItem values. type FileShareItemsIterator struct { i int @@ -2111,6 +2183,12 @@ type GeoReplicationStats struct { CanFailover *bool `json:"canFailover,omitempty"` } +// MarshalJSON is the custom marshaler for GeoReplicationStats. +func (grs GeoReplicationStats) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Identity identity for the resource. type Identity struct { // PrincipalID - READ-ONLY; The principal ID of resource identity. @@ -2400,6 +2478,12 @@ type ListAccountSasResponse struct { AccountSasToken *string `json:"accountSasToken,omitempty"` } +// MarshalJSON is the custom marshaler for ListAccountSasResponse. +func (lasr ListAccountSasResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListContainerItem the blob container properties be listed out. type ListContainerItem struct { // ContainerProperties - The blob container properties be listed out. @@ -2493,6 +2577,12 @@ type ListContainerItems struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListContainerItems. +func (lci ListContainerItems) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListContainerItemsIterator provides access to a complete listing of ListContainerItem values. type ListContainerItemsIterator struct { i int @@ -2739,6 +2829,12 @@ type ListQueueResource struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListQueueResource. +func (lqr ListQueueResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListQueueResourceIterator provides access to a complete listing of ListQueue values. type ListQueueResourceIterator struct { i int @@ -2896,6 +2992,12 @@ type ListQueueServices struct { Value *[]QueueServiceProperties `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ListQueueServices. +func (lqs ListQueueServices) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListServiceSasResponse the List service SAS credentials operation response. type ListServiceSasResponse struct { autorest.Response `json:"-"` @@ -2903,6 +3005,12 @@ type ListServiceSasResponse struct { ServiceSasToken *string `json:"serviceSasToken,omitempty"` } +// MarshalJSON is the custom marshaler for ListServiceSasResponse. +func (lssr ListServiceSasResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListTableResource response schema. Contains list of tables returned type ListTableResource struct { autorest.Response `json:"-"` @@ -2912,6 +3020,12 @@ type ListTableResource struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListTableResource. +func (ltr ListTableResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListTableResourceIterator provides access to a complete listing of Table values. type ListTableResourceIterator struct { i int @@ -3069,6 +3183,12 @@ type ListTableServices struct { Value *[]TableServiceProperties `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ListTableServices. +func (lts ListTableServices) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagementPolicy the Get Storage Account ManagementPolicies operation response. type ManagementPolicy struct { autorest.Response `json:"-"` @@ -3501,6 +3621,12 @@ type PrivateEndpoint struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpoint. +func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection the Private Endpoint Connection resource. type PrivateEndpointConnection struct { autorest.Response `json:"-"` @@ -3712,6 +3838,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Queue ... type Queue struct { autorest.Response `json:"-"` @@ -3891,6 +4023,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorePolicyProperties the blob service properties for blob restore policy type RestorePolicyProperties struct { // Enabled - Blob restore is enabled if set to true. @@ -4008,6 +4146,12 @@ type SKUCapability struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SKUCapability. +func (sc SKUCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuInformation storage SKU and its properties type SkuInformation struct { // Name - Possible values include: 'StandardLRS', 'StandardGRS', 'StandardRAGRS', 'StandardZRS', 'PremiumLRS', 'PremiumZRS', 'StandardGZRS', 'StandardRAGZRS' @@ -4048,6 +4192,12 @@ type SkuListResult struct { Value *[]SkuInformation `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SkuListResult. +func (slr SkuListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Table properties of the table, including Id, resource name, resource type. type Table struct { autorest.Response `json:"-"` @@ -4127,6 +4277,12 @@ type TableProperties struct { TableName *string `json:"tableName,omitempty"` } +// MarshalJSON is the custom marshaler for TableProperties. +func (tp TableProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TableServiceProperties the properties of a storage account’s Table service. type TableServiceProperties struct { autorest.Response `json:"-"` @@ -4230,6 +4386,12 @@ type TagProperty struct { Upn *string `json:"upn,omitempty"` } +// MarshalJSON is the custom marshaler for TagProperty. +func (tp TagProperty) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource // which has 'tags' and a 'location' type TrackedResource struct { @@ -4273,6 +4435,12 @@ type UpdateHistoryProperty struct { Upn *string `json:"upn,omitempty"` } +// MarshalJSON is the custom marshaler for UpdateHistoryProperty. +func (uhp UpdateHistoryProperty) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage describes Storage Resource Usage. type Usage struct { // Unit - READ-ONLY; Gets the unit of measurement. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountsPerSecond', 'BytesPerSecond' @@ -4285,6 +4453,12 @@ type Usage struct { Name *UsageName `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for Usage. +func (u Usage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageListResult the response from the List Usages operation. type UsageListResult struct { autorest.Response `json:"-"` @@ -4300,6 +4474,12 @@ type UsageName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for UsageName. +func (un UsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkRule virtual Network rule. type VirtualNetworkRule struct { // VirtualNetworkResourceID - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. diff --git a/services/storage/mgmt/2021-01-01/storage/CHANGELOG.md b/services/storage/mgmt/2021-01-01/storage/CHANGELOG.md index 52911e4cc5e4..df77cd141299 100644 --- a/services/storage/mgmt/2021-01-01/storage/CHANGELOG.md +++ b/services/storage/mgmt/2021-01-01/storage/CHANGELOG.md @@ -1,2 +1,40 @@ # Change History +## Additive Changes + +### New Funcs + +1. AccountInternetEndpoints.MarshalJSON() ([]byte, error) +1. AccountKey.MarshalJSON() ([]byte, error) +1. AccountListKeysResult.MarshalJSON() ([]byte, error) +1. AccountListResult.MarshalJSON() ([]byte, error) +1. AccountMicrosoftEndpoints.MarshalJSON() ([]byte, error) +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. BlobRestoreStatus.MarshalJSON() ([]byte, error) +1. BlobServiceItems.MarshalJSON() ([]byte, error) +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) +1. DeletedAccountListResult.MarshalJSON() ([]byte, error) +1. DeletedAccountProperties.MarshalJSON() ([]byte, error) +1. EncryptionScopeListResult.MarshalJSON() ([]byte, error) +1. FileServiceItems.MarshalJSON() ([]byte, error) +1. FileShareItems.MarshalJSON() ([]byte, error) +1. GeoReplicationStats.MarshalJSON() ([]byte, error) +1. ListAccountSasResponse.MarshalJSON() ([]byte, error) +1. ListBlobInventoryPolicy.MarshalJSON() ([]byte, error) +1. ListContainerItems.MarshalJSON() ([]byte, error) +1. ListQueueResource.MarshalJSON() ([]byte, error) +1. ListQueueServices.MarshalJSON() ([]byte, error) +1. ListServiceSasResponse.MarshalJSON() ([]byte, error) +1. ListTableResource.MarshalJSON() ([]byte, error) +1. ListTableServices.MarshalJSON() ([]byte, error) +1. PrivateEndpoint.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. SKUCapability.MarshalJSON() ([]byte, error) +1. SkuListResult.MarshalJSON() ([]byte, error) +1. TableProperties.MarshalJSON() ([]byte, error) +1. TagProperty.MarshalJSON() ([]byte, error) +1. UpdateHistoryProperty.MarshalJSON() ([]byte, error) +1. Usage.MarshalJSON() ([]byte, error) +1. UsageName.MarshalJSON() ([]byte, error) +1. UserAssignedIdentity.MarshalJSON() ([]byte, error) diff --git a/services/storage/mgmt/2021-01-01/storage/_meta.json b/services/storage/mgmt/2021-01-01/storage/_meta.json index 626be358c930..3442dfaf4f9d 100644 --- a/services/storage/mgmt/2021-01-01/storage/_meta.json +++ b/services/storage/mgmt/2021-01-01/storage/_meta.json @@ -2,9 +2,9 @@ "commit": "92ab22b49bd085116af0c61fada2c6c360702e9e", "readme": "/_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", "tag": "package-2021-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2021-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2021-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/storage/mgmt/2021-01-01/storage/models.go b/services/storage/mgmt/2021-01-01/storage/models.go index 0931da86661a..ef71b8f27c11 100644 --- a/services/storage/mgmt/2021-01-01/storage/models.go +++ b/services/storage/mgmt/2021-01-01/storage/models.go @@ -316,6 +316,12 @@ type AccountInternetEndpoints struct { Dfs *string `json:"dfs,omitempty"` } +// MarshalJSON is the custom marshaler for AccountInternetEndpoints. +func (aie AccountInternetEndpoints) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountKey an access key for the storage account. type AccountKey struct { // KeyName - READ-ONLY; Name of the key. @@ -326,6 +332,12 @@ type AccountKey struct { Permissions KeyPermission `json:"permissions,omitempty"` } +// MarshalJSON is the custom marshaler for AccountKey. +func (ak AccountKey) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListKeysResult the response from the ListKeys operation. type AccountListKeysResult struct { autorest.Response `json:"-"` @@ -333,6 +345,12 @@ type AccountListKeysResult struct { Keys *[]AccountKey `json:"keys,omitempty"` } +// MarshalJSON is the custom marshaler for AccountListKeysResult. +func (alkr AccountListKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListResult the response from the List Storage Accounts operation. type AccountListResult struct { autorest.Response `json:"-"` @@ -342,6 +360,12 @@ type AccountListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for AccountListResult. +func (alr AccountListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListResultIterator provides access to a complete listing of Account values. type AccountListResultIterator struct { i int @@ -509,6 +533,12 @@ type AccountMicrosoftEndpoints struct { Dfs *string `json:"dfs,omitempty"` } +// MarshalJSON is the custom marshaler for AccountMicrosoftEndpoints. +func (ame AccountMicrosoftEndpoints) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountProperties properties of the storage account. type AccountProperties struct { // ProvisioningState - READ-ONLY; Gets the status of the storage account at the time the operation was called. Possible values include: 'Creating', 'ResolvingDNS', 'Succeeded' @@ -927,6 +957,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureFilesIdentityBasedAuthentication settings for Azure Files identity based authentication. type AzureFilesIdentityBasedAuthentication struct { // DirectoryServiceOptions - Indicates the directory service used. Possible values include: 'DirectoryServiceOptionsNone', 'DirectoryServiceOptionsAADDS', 'DirectoryServiceOptionsAD' @@ -1193,6 +1229,12 @@ type BlobRestoreStatus struct { Parameters *BlobRestoreParameters `json:"parameters,omitempty"` } +// MarshalJSON is the custom marshaler for BlobRestoreStatus. +func (brs BlobRestoreStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BlobServiceItems ... type BlobServiceItems struct { autorest.Response `json:"-"` @@ -1200,6 +1242,12 @@ type BlobServiceItems struct { Value *[]BlobServiceProperties `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for BlobServiceItems. +func (bsi BlobServiceItems) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BlobServiceProperties the properties of a storage account’s Blob service. type BlobServiceProperties struct { autorest.Response `json:"-"` @@ -1325,6 +1373,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from the Storage service. type CloudError struct { Error *CloudErrorBody `json:"error,omitempty"` @@ -1522,6 +1576,12 @@ type DeletedAccountListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DeletedAccountListResult. +func (dalr DeletedAccountListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeletedAccountListResultIterator provides access to a complete listing of DeletedAccount values. type DeletedAccountListResultIterator struct { i int @@ -1686,6 +1746,12 @@ type DeletedAccountProperties struct { DeletionTime *string `json:"deletionTime,omitempty"` } +// MarshalJSON is the custom marshaler for DeletedAccountProperties. +func (dap DeletedAccountProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeletedShare the deleted share to be restored. type DeletedShare struct { // DeletedShareName - Required. Identify the name of the deleted share that will be restored. @@ -1833,6 +1899,12 @@ type EncryptionScopeListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for EncryptionScopeListResult. +func (eslr EncryptionScopeListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EncryptionScopeListResultIterator provides access to a complete listing of EncryptionScope values. type EncryptionScopeListResultIterator struct { i int @@ -2113,6 +2185,12 @@ type FileServiceItems struct { Value *[]FileServiceProperties `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for FileServiceItems. +func (fsi FileServiceItems) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FileServiceProperties the properties of File services in storage account. type FileServiceProperties struct { autorest.Response `json:"-"` @@ -2384,6 +2462,12 @@ type FileShareItems struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for FileShareItems. +func (fsi FileShareItems) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FileShareItemsIterator provides access to a complete listing of FileShareItem values. type FileShareItemsIterator struct { i int @@ -2598,6 +2682,12 @@ type GeoReplicationStats struct { CanFailover *bool `json:"canFailover,omitempty"` } +// MarshalJSON is the custom marshaler for GeoReplicationStats. +func (grs GeoReplicationStats) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Identity identity for the resource. type Identity struct { // PrincipalID - READ-ONLY; The principal ID of resource identity. @@ -2904,6 +2994,12 @@ type ListAccountSasResponse struct { AccountSasToken *string `json:"accountSasToken,omitempty"` } +// MarshalJSON is the custom marshaler for ListAccountSasResponse. +func (lasr ListAccountSasResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListBlobInventoryPolicy list of blob inventory policies returned. type ListBlobInventoryPolicy struct { autorest.Response `json:"-"` @@ -2911,6 +3007,12 @@ type ListBlobInventoryPolicy struct { Value *[]BlobInventoryPolicy `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ListBlobInventoryPolicy. +func (lbip ListBlobInventoryPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListContainerItem the blob container properties be listed out. type ListContainerItem struct { // ContainerProperties - The blob container properties be listed out. @@ -3004,6 +3106,12 @@ type ListContainerItems struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListContainerItems. +func (lci ListContainerItems) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListContainerItemsIterator provides access to a complete listing of ListContainerItem values. type ListContainerItemsIterator struct { i int @@ -3250,6 +3358,12 @@ type ListQueueResource struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListQueueResource. +func (lqr ListQueueResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListQueueResourceIterator provides access to a complete listing of ListQueue values. type ListQueueResourceIterator struct { i int @@ -3407,6 +3521,12 @@ type ListQueueServices struct { Value *[]QueueServiceProperties `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ListQueueServices. +func (lqs ListQueueServices) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListServiceSasResponse the List service SAS credentials operation response. type ListServiceSasResponse struct { autorest.Response `json:"-"` @@ -3414,6 +3534,12 @@ type ListServiceSasResponse struct { ServiceSasToken *string `json:"serviceSasToken,omitempty"` } +// MarshalJSON is the custom marshaler for ListServiceSasResponse. +func (lssr ListServiceSasResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListTableResource response schema. Contains list of tables returned type ListTableResource struct { autorest.Response `json:"-"` @@ -3423,6 +3549,12 @@ type ListTableResource struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListTableResource. +func (ltr ListTableResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListTableResourceIterator provides access to a complete listing of Table values. type ListTableResourceIterator struct { i int @@ -3580,6 +3712,12 @@ type ListTableServices struct { Value *[]TableServiceProperties `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ListTableServices. +func (lts ListTableServices) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagementPolicy the Get Storage Account ManagementPolicies operation response. type ManagementPolicy struct { autorest.Response `json:"-"` @@ -4038,6 +4176,12 @@ type PrivateEndpoint struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpoint. +func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection the Private Endpoint Connection resource. type PrivateEndpointConnection struct { autorest.Response `json:"-"` @@ -4255,6 +4399,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Queue ... type Queue struct { autorest.Response `json:"-"` @@ -4434,6 +4584,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceAccessRule resource Access Rule. type ResourceAccessRule struct { // TenantID - Tenant Id @@ -4559,6 +4715,12 @@ type SKUCapability struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SKUCapability. +func (sc SKUCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuInformation storage SKU and its properties type SkuInformation struct { // Name - Possible values include: 'StandardLRS', 'StandardGRS', 'StandardRAGRS', 'StandardZRS', 'PremiumLRS', 'PremiumZRS', 'StandardGZRS', 'StandardRAGZRS' @@ -4599,6 +4761,12 @@ type SkuListResult struct { Value *[]SkuInformation `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SkuListResult. +func (slr SkuListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SmbSetting setting for SMB protocol type SmbSetting struct { // Multichannel - Multichannel setting. Applies to Premium FileStorage only. @@ -4708,6 +4876,12 @@ type TableProperties struct { TableName *string `json:"tableName,omitempty"` } +// MarshalJSON is the custom marshaler for TableProperties. +func (tp TableProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TableServiceProperties the properties of a storage account’s Table service. type TableServiceProperties struct { autorest.Response `json:"-"` @@ -4811,6 +4985,12 @@ type TagProperty struct { Upn *string `json:"upn,omitempty"` } +// MarshalJSON is the custom marshaler for TagProperty. +func (tp TagProperty) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource // which has 'tags' and a 'location' type TrackedResource struct { @@ -4854,6 +5034,12 @@ type UpdateHistoryProperty struct { Upn *string `json:"upn,omitempty"` } +// MarshalJSON is the custom marshaler for UpdateHistoryProperty. +func (uhp UpdateHistoryProperty) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage describes Storage Resource Usage. type Usage struct { // Unit - READ-ONLY; Gets the unit of measurement. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountsPerSecond', 'BytesPerSecond' @@ -4866,6 +5052,12 @@ type Usage struct { Name *UsageName `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for Usage. +func (u Usage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageListResult the response from the List Usages operation. type UsageListResult struct { autorest.Response `json:"-"` @@ -4881,6 +5073,12 @@ type UsageName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for UsageName. +func (un UsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UserAssignedIdentity userAssignedIdentity for the resource. type UserAssignedIdentity struct { // PrincipalID - READ-ONLY; The principal ID of the identity. @@ -4889,6 +5087,12 @@ type UserAssignedIdentity struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for UserAssignedIdentity. +func (uai UserAssignedIdentity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkRule virtual Network rule. type VirtualNetworkRule struct { // VirtualNetworkResourceID - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. diff --git a/services/storage/mgmt/2021-02-01/storage/CHANGELOG.md b/services/storage/mgmt/2021-02-01/storage/CHANGELOG.md index 130dde5c0f40..df77cd141299 100644 --- a/services/storage/mgmt/2021-02-01/storage/CHANGELOG.md +++ b/services/storage/mgmt/2021-02-01/storage/CHANGELOG.md @@ -1,201 +1,40 @@ # Change History -## Breaking Changes - -### Removed Constants - -1. AccessTier.Cool -1. AccessTier.Hot -1. AccountStatus.Available -1. AccountStatus.Unavailable -1. Action.Allow -1. Action1.Acquire -1. Action1.Break -1. Action1.Change -1. Action1.Release -1. Action1.Renew -1. BlobRestoreProgressStatus.Complete -1. BlobRestoreProgressStatus.Failed -1. BlobRestoreProgressStatus.InProgress -1. Bypass.AzureServices -1. Bypass.Logging -1. Bypass.Metrics -1. Bypass.None -1. CreatedByType.Application -1. CreatedByType.Key -1. CreatedByType.ManagedIdentity -1. CreatedByType.User -1. EnabledProtocols.NFS -1. EnabledProtocols.SMB -1. EncryptionScopeSource.MicrosoftKeyVault -1. EncryptionScopeSource.MicrosoftStorage -1. EncryptionScopeState.Disabled -1. EncryptionScopeState.Enabled -1. ExtendedLocationTypes.EdgeZone -1. GetShareExpand.Stats -1. HTTPProtocol.HTTPS -1. HTTPProtocol.Httpshttp -1. ImmutabilityPolicyState.Locked -1. ImmutabilityPolicyState.Unlocked -1. ImmutabilityPolicyUpdateType.Extend -1. ImmutabilityPolicyUpdateType.Lock -1. ImmutabilityPolicyUpdateType.Put -1. KeyPermission.Full -1. KeyPermission.Read -1. Kind.BlobStorage -1. Kind.BlockBlobStorage -1. Kind.FileStorage -1. Kind.Storage -1. Kind.StorageV2 -1. LeaseDuration.Fixed -1. LeaseDuration.Infinite -1. ListContainersInclude.Deleted -1. ListKeyExpand.Kerb -1. MinimumTLSVersion.TLS10 -1. MinimumTLSVersion.TLS11 -1. MinimumTLSVersion.TLS12 -1. Name.AccessTimeTracking -1. Permissions.A -1. Permissions.C -1. Permissions.D -1. Permissions.L -1. Permissions.P -1. Permissions.R -1. Permissions.U -1. Permissions.W -1. PrivateEndpointServiceConnectionStatus.Approved -1. PrivateEndpointServiceConnectionStatus.Pending -1. PrivateEndpointServiceConnectionStatus.Rejected -1. ProvisioningState.Creating -1. ProvisioningState.ResolvingDNS -1. ProvisioningState.Succeeded -1. PutSharesExpand.Snapshots -1. Reason.AccountNameInvalid -1. Reason.AlreadyExists -1. ReasonCode.NotAvailableForSubscription -1. ReasonCode.QuotaID -1. RootSquashType.AllSquash -1. RootSquashType.NoRootSquash -1. RootSquashType.RootSquash -1. RoutingChoice.InternetRouting -1. RoutingChoice.MicrosoftRouting -1. Services.B -1. Services.F -1. Services.Q -1. Services.T -1. SkuName.PremiumLRS -1. SkuName.PremiumZRS -1. SkuName.StandardGRS -1. SkuName.StandardGZRS -1. SkuName.StandardLRS -1. SkuName.StandardRAGRS -1. SkuName.StandardRAGZRS -1. SkuName.StandardZRS -1. SkuTier.Premium -1. SkuTier.Standard -1. UsageUnit.Bytes -1. UsageUnit.BytesPerSecond -1. UsageUnit.Count -1. UsageUnit.CountsPerSecond -1. UsageUnit.Percent -1. UsageUnit.Seconds - ## Additive Changes -### New Constants +### New Funcs -1. AccessTier.AccessTierCool -1. AccessTier.AccessTierHot -1. AccountStatus.AccountStatusAvailable -1. AccountStatus.AccountStatusUnavailable -1. Action.ActionAllow -1. Action1.Action1Acquire -1. Action1.Action1Break -1. Action1.Action1Change -1. Action1.Action1Release -1. Action1.Action1Renew -1. BlobRestoreProgressStatus.BlobRestoreProgressStatusComplete -1. BlobRestoreProgressStatus.BlobRestoreProgressStatusFailed -1. BlobRestoreProgressStatus.BlobRestoreProgressStatusInProgress -1. Bypass.BypassAzureServices -1. Bypass.BypassLogging -1. Bypass.BypassMetrics -1. Bypass.BypassNone -1. CreatedByType.CreatedByTypeApplication -1. CreatedByType.CreatedByTypeKey -1. CreatedByType.CreatedByTypeManagedIdentity -1. CreatedByType.CreatedByTypeUser -1. EnabledProtocols.EnabledProtocolsNFS -1. EnabledProtocols.EnabledProtocolsSMB -1. EncryptionScopeSource.EncryptionScopeSourceMicrosoftKeyVault -1. EncryptionScopeSource.EncryptionScopeSourceMicrosoftStorage -1. EncryptionScopeState.EncryptionScopeStateDisabled -1. EncryptionScopeState.EncryptionScopeStateEnabled -1. ExtendedLocationTypes.ExtendedLocationTypesEdgeZone -1. GetShareExpand.GetShareExpandStats -1. HTTPProtocol.HTTPProtocolHTTPS -1. HTTPProtocol.HTTPProtocolHttpshttp -1. ImmutabilityPolicyState.ImmutabilityPolicyStateLocked -1. ImmutabilityPolicyState.ImmutabilityPolicyStateUnlocked -1. ImmutabilityPolicyUpdateType.ImmutabilityPolicyUpdateTypeExtend -1. ImmutabilityPolicyUpdateType.ImmutabilityPolicyUpdateTypeLock -1. ImmutabilityPolicyUpdateType.ImmutabilityPolicyUpdateTypePut -1. KeyPermission.KeyPermissionFull -1. KeyPermission.KeyPermissionRead -1. Kind.KindBlobStorage -1. Kind.KindBlockBlobStorage -1. Kind.KindFileStorage -1. Kind.KindStorage -1. Kind.KindStorageV2 -1. LeaseDuration.LeaseDurationFixed -1. LeaseDuration.LeaseDurationInfinite -1. ListContainersInclude.ListContainersIncludeDeleted -1. ListKeyExpand.ListKeyExpandKerb -1. MinimumTLSVersion.MinimumTLSVersionTLS10 -1. MinimumTLSVersion.MinimumTLSVersionTLS11 -1. MinimumTLSVersion.MinimumTLSVersionTLS12 -1. Name.NameAccessTimeTracking -1. Permissions.PermissionsA -1. Permissions.PermissionsC -1. Permissions.PermissionsD -1. Permissions.PermissionsL -1. Permissions.PermissionsP -1. Permissions.PermissionsR -1. Permissions.PermissionsU -1. Permissions.PermissionsW -1. PrivateEndpointServiceConnectionStatus.PrivateEndpointServiceConnectionStatusApproved -1. PrivateEndpointServiceConnectionStatus.PrivateEndpointServiceConnectionStatusPending -1. PrivateEndpointServiceConnectionStatus.PrivateEndpointServiceConnectionStatusRejected -1. ProvisioningState.ProvisioningStateCreating -1. ProvisioningState.ProvisioningStateResolvingDNS -1. ProvisioningState.ProvisioningStateSucceeded -1. PutSharesExpand.PutSharesExpandSnapshots -1. Reason.ReasonAccountNameInvalid -1. Reason.ReasonAlreadyExists -1. ReasonCode.ReasonCodeNotAvailableForSubscription -1. ReasonCode.ReasonCodeQuotaID -1. RootSquashType.RootSquashTypeAllSquash -1. RootSquashType.RootSquashTypeNoRootSquash -1. RootSquashType.RootSquashTypeRootSquash -1. RoutingChoice.RoutingChoiceInternetRouting -1. RoutingChoice.RoutingChoiceMicrosoftRouting -1. Services.ServicesB -1. Services.ServicesF -1. Services.ServicesQ -1. Services.ServicesT -1. SkuName.SkuNamePremiumLRS -1. SkuName.SkuNamePremiumZRS -1. SkuName.SkuNameStandardGRS -1. SkuName.SkuNameStandardGZRS -1. SkuName.SkuNameStandardLRS -1. SkuName.SkuNameStandardRAGRS -1. SkuName.SkuNameStandardRAGZRS -1. SkuName.SkuNameStandardZRS -1. SkuTier.SkuTierPremium -1. SkuTier.SkuTierStandard -1. UsageUnit.UsageUnitBytes -1. UsageUnit.UsageUnitBytesPerSecond -1. UsageUnit.UsageUnitCount -1. UsageUnit.UsageUnitCountsPerSecond -1. UsageUnit.UsageUnitPercent -1. UsageUnit.UsageUnitSeconds +1. AccountInternetEndpoints.MarshalJSON() ([]byte, error) +1. AccountKey.MarshalJSON() ([]byte, error) +1. AccountListKeysResult.MarshalJSON() ([]byte, error) +1. AccountListResult.MarshalJSON() ([]byte, error) +1. AccountMicrosoftEndpoints.MarshalJSON() ([]byte, error) +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. BlobRestoreStatus.MarshalJSON() ([]byte, error) +1. BlobServiceItems.MarshalJSON() ([]byte, error) +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) +1. DeletedAccountListResult.MarshalJSON() ([]byte, error) +1. DeletedAccountProperties.MarshalJSON() ([]byte, error) +1. EncryptionScopeListResult.MarshalJSON() ([]byte, error) +1. FileServiceItems.MarshalJSON() ([]byte, error) +1. FileShareItems.MarshalJSON() ([]byte, error) +1. GeoReplicationStats.MarshalJSON() ([]byte, error) +1. ListAccountSasResponse.MarshalJSON() ([]byte, error) +1. ListBlobInventoryPolicy.MarshalJSON() ([]byte, error) +1. ListContainerItems.MarshalJSON() ([]byte, error) +1. ListQueueResource.MarshalJSON() ([]byte, error) +1. ListQueueServices.MarshalJSON() ([]byte, error) +1. ListServiceSasResponse.MarshalJSON() ([]byte, error) +1. ListTableResource.MarshalJSON() ([]byte, error) +1. ListTableServices.MarshalJSON() ([]byte, error) +1. PrivateEndpoint.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. SKUCapability.MarshalJSON() ([]byte, error) +1. SkuListResult.MarshalJSON() ([]byte, error) +1. TableProperties.MarshalJSON() ([]byte, error) +1. TagProperty.MarshalJSON() ([]byte, error) +1. UpdateHistoryProperty.MarshalJSON() ([]byte, error) +1. Usage.MarshalJSON() ([]byte, error) +1. UsageName.MarshalJSON() ([]byte, error) +1. UserAssignedIdentity.MarshalJSON() ([]byte, error) diff --git a/services/storage/mgmt/2021-02-01/storage/_meta.json b/services/storage/mgmt/2021-02-01/storage/_meta.json index ea07f8785457..ab2950242e6e 100644 --- a/services/storage/mgmt/2021-02-01/storage/_meta.json +++ b/services/storage/mgmt/2021-02-01/storage/_meta.json @@ -2,9 +2,9 @@ "commit": "ea5bc27ee9cadeb67767d774c82095be2420bcad", "readme": "/_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", "tag": "package-2021-02", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2021-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2021-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/storage/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix" } diff --git a/services/storage/mgmt/2021-02-01/storage/models.go b/services/storage/mgmt/2021-02-01/storage/models.go index cf613e6e4089..1a7663011e13 100644 --- a/services/storage/mgmt/2021-02-01/storage/models.go +++ b/services/storage/mgmt/2021-02-01/storage/models.go @@ -316,6 +316,12 @@ type AccountInternetEndpoints struct { Dfs *string `json:"dfs,omitempty"` } +// MarshalJSON is the custom marshaler for AccountInternetEndpoints. +func (aie AccountInternetEndpoints) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountKey an access key for the storage account. type AccountKey struct { // KeyName - READ-ONLY; Name of the key. @@ -328,6 +334,12 @@ type AccountKey struct { CreationTime *date.Time `json:"creationTime,omitempty"` } +// MarshalJSON is the custom marshaler for AccountKey. +func (ak AccountKey) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListKeysResult the response from the ListKeys operation. type AccountListKeysResult struct { autorest.Response `json:"-"` @@ -335,6 +347,12 @@ type AccountListKeysResult struct { Keys *[]AccountKey `json:"keys,omitempty"` } +// MarshalJSON is the custom marshaler for AccountListKeysResult. +func (alkr AccountListKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListResult the response from the List Storage Accounts operation. type AccountListResult struct { autorest.Response `json:"-"` @@ -344,6 +362,12 @@ type AccountListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for AccountListResult. +func (alr AccountListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountListResultIterator provides access to a complete listing of Account values. type AccountListResultIterator struct { i int @@ -511,6 +535,12 @@ type AccountMicrosoftEndpoints struct { Dfs *string `json:"dfs,omitempty"` } +// MarshalJSON is the custom marshaler for AccountMicrosoftEndpoints. +func (ame AccountMicrosoftEndpoints) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AccountProperties properties of the storage account. type AccountProperties struct { // ProvisioningState - READ-ONLY; Gets the status of the storage account at the time the operation was called. Possible values include: 'ProvisioningStateCreating', 'ProvisioningStateResolvingDNS', 'ProvisioningStateSucceeded' @@ -943,6 +973,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AzureFilesIdentityBasedAuthentication settings for Azure Files identity based authentication. type AzureFilesIdentityBasedAuthentication struct { // DirectoryServiceOptions - Indicates the directory service used. Possible values include: 'DirectoryServiceOptionsNone', 'DirectoryServiceOptionsAADDS', 'DirectoryServiceOptionsAD' @@ -1209,6 +1245,12 @@ type BlobRestoreStatus struct { Parameters *BlobRestoreParameters `json:"parameters,omitempty"` } +// MarshalJSON is the custom marshaler for BlobRestoreStatus. +func (brs BlobRestoreStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BlobServiceItems ... type BlobServiceItems struct { autorest.Response `json:"-"` @@ -1216,6 +1258,12 @@ type BlobServiceItems struct { Value *[]BlobServiceProperties `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for BlobServiceItems. +func (bsi BlobServiceItems) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BlobServiceProperties the properties of a storage account’s Blob service. type BlobServiceProperties struct { autorest.Response `json:"-"` @@ -1341,6 +1389,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from the Storage service. type CloudError struct { Error *CloudErrorBody `json:"error,omitempty"` @@ -1538,6 +1592,12 @@ type DeletedAccountListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DeletedAccountListResult. +func (dalr DeletedAccountListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeletedAccountListResultIterator provides access to a complete listing of DeletedAccount values. type DeletedAccountListResultIterator struct { i int @@ -1702,6 +1762,12 @@ type DeletedAccountProperties struct { DeletionTime *string `json:"deletionTime,omitempty"` } +// MarshalJSON is the custom marshaler for DeletedAccountProperties. +func (dap DeletedAccountProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeletedShare the deleted share to be restored. type DeletedShare struct { // DeletedShareName - Required. Identify the name of the deleted share that will be restored. @@ -1849,6 +1915,12 @@ type EncryptionScopeListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for EncryptionScopeListResult. +func (eslr EncryptionScopeListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EncryptionScopeListResultIterator provides access to a complete listing of EncryptionScope values. type EncryptionScopeListResultIterator struct { i int @@ -2129,6 +2201,12 @@ type FileServiceItems struct { Value *[]FileServiceProperties `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for FileServiceItems. +func (fsi FileServiceItems) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FileServiceProperties the properties of File services in storage account. type FileServiceProperties struct { autorest.Response `json:"-"` @@ -2400,6 +2478,12 @@ type FileShareItems struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for FileShareItems. +func (fsi FileShareItems) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FileShareItemsIterator provides access to a complete listing of FileShareItem values. type FileShareItemsIterator struct { i int @@ -2614,6 +2698,12 @@ type GeoReplicationStats struct { CanFailover *bool `json:"canFailover,omitempty"` } +// MarshalJSON is the custom marshaler for GeoReplicationStats. +func (grs GeoReplicationStats) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Identity identity for the resource. type Identity struct { // PrincipalID - READ-ONLY; The principal ID of resource identity. @@ -2932,6 +3022,12 @@ type ListAccountSasResponse struct { AccountSasToken *string `json:"accountSasToken,omitempty"` } +// MarshalJSON is the custom marshaler for ListAccountSasResponse. +func (lasr ListAccountSasResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListBlobInventoryPolicy list of blob inventory policies returned. type ListBlobInventoryPolicy struct { autorest.Response `json:"-"` @@ -2939,6 +3035,12 @@ type ListBlobInventoryPolicy struct { Value *[]BlobInventoryPolicy `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ListBlobInventoryPolicy. +func (lbip ListBlobInventoryPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListContainerItem the blob container properties be listed out. type ListContainerItem struct { // ContainerProperties - The blob container properties be listed out. @@ -3032,6 +3134,12 @@ type ListContainerItems struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListContainerItems. +func (lci ListContainerItems) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListContainerItemsIterator provides access to a complete listing of ListContainerItem values. type ListContainerItemsIterator struct { i int @@ -3278,6 +3386,12 @@ type ListQueueResource struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListQueueResource. +func (lqr ListQueueResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListQueueResourceIterator provides access to a complete listing of ListQueue values. type ListQueueResourceIterator struct { i int @@ -3435,6 +3549,12 @@ type ListQueueServices struct { Value *[]QueueServiceProperties `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ListQueueServices. +func (lqs ListQueueServices) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListServiceSasResponse the List service SAS credentials operation response. type ListServiceSasResponse struct { autorest.Response `json:"-"` @@ -3442,6 +3562,12 @@ type ListServiceSasResponse struct { ServiceSasToken *string `json:"serviceSasToken,omitempty"` } +// MarshalJSON is the custom marshaler for ListServiceSasResponse. +func (lssr ListServiceSasResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListTableResource response schema. Contains list of tables returned type ListTableResource struct { autorest.Response `json:"-"` @@ -3451,6 +3577,12 @@ type ListTableResource struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListTableResource. +func (ltr ListTableResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListTableResourceIterator provides access to a complete listing of Table values. type ListTableResourceIterator struct { i int @@ -3608,6 +3740,12 @@ type ListTableServices struct { Value *[]TableServiceProperties `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for ListTableServices. +func (lts ListTableServices) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagementPolicy the Get Storage Account ManagementPolicies operation response. type ManagementPolicy struct { autorest.Response `json:"-"` @@ -4066,6 +4204,12 @@ type PrivateEndpoint struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpoint. +func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection the Private Endpoint Connection resource. type PrivateEndpointConnection struct { autorest.Response `json:"-"` @@ -4283,6 +4427,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Queue ... type Queue struct { autorest.Response `json:"-"` @@ -4462,6 +4612,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceAccessRule resource Access Rule. type ResourceAccessRule struct { // TenantID - Tenant Id @@ -4595,6 +4751,12 @@ type SKUCapability struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SKUCapability. +func (sc SKUCapability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SkuInformation storage SKU and its properties type SkuInformation struct { // Name - Possible values include: 'SkuNameStandardLRS', 'SkuNameStandardGRS', 'SkuNameStandardRAGRS', 'SkuNameStandardZRS', 'SkuNamePremiumLRS', 'SkuNamePremiumZRS', 'SkuNameStandardGZRS', 'SkuNameStandardRAGZRS' @@ -4635,6 +4797,12 @@ type SkuListResult struct { Value *[]SkuInformation `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SkuListResult. +func (slr SkuListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SmbSetting setting for SMB protocol type SmbSetting struct { // Multichannel - Multichannel setting. Applies to Premium FileStorage only. @@ -4744,6 +4912,12 @@ type TableProperties struct { TableName *string `json:"tableName,omitempty"` } +// MarshalJSON is the custom marshaler for TableProperties. +func (tp TableProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TableServiceProperties the properties of a storage account’s Table service. type TableServiceProperties struct { autorest.Response `json:"-"` @@ -4847,6 +5021,12 @@ type TagProperty struct { Upn *string `json:"upn,omitempty"` } +// MarshalJSON is the custom marshaler for TagProperty. +func (tp TagProperty) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource // which has 'tags' and a 'location' type TrackedResource struct { @@ -4890,6 +5070,12 @@ type UpdateHistoryProperty struct { Upn *string `json:"upn,omitempty"` } +// MarshalJSON is the custom marshaler for UpdateHistoryProperty. +func (uhp UpdateHistoryProperty) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Usage describes Storage Resource Usage. type Usage struct { // Unit - READ-ONLY; Gets the unit of measurement. Possible values include: 'UsageUnitCount', 'UsageUnitBytes', 'UsageUnitSeconds', 'UsageUnitPercent', 'UsageUnitCountsPerSecond', 'UsageUnitBytesPerSecond' @@ -4902,6 +5088,12 @@ type Usage struct { Name *UsageName `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for Usage. +func (u Usage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UsageListResult the response from the List Usages operation. type UsageListResult struct { autorest.Response `json:"-"` @@ -4917,6 +5109,12 @@ type UsageName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for UsageName. +func (un UsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UserAssignedIdentity userAssignedIdentity for the resource. type UserAssignedIdentity struct { // PrincipalID - READ-ONLY; The principal ID of the identity. @@ -4925,6 +5123,12 @@ type UserAssignedIdentity struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for UserAssignedIdentity. +func (uai UserAssignedIdentity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNetworkRule virtual Network rule. type VirtualNetworkRule struct { // VirtualNetworkResourceID - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. diff --git a/services/storagecache/mgmt/2019-11-01/storagecache/CHANGELOG.md b/services/storagecache/mgmt/2019-11-01/storagecache/CHANGELOG.md index 52911e4cc5e4..56ee61dc72b4 100644 --- a/services/storagecache/mgmt/2019-11-01/storagecache/CHANGELOG.md +++ b/services/storagecache/mgmt/2019-11-01/storagecache/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. CacheUpgradeStatus.MarshalJSON() ([]byte, error) diff --git a/services/storagecache/mgmt/2019-11-01/storagecache/_meta.json b/services/storagecache/mgmt/2019-11-01/storagecache/_meta.json index 9372408d0103..319a39a69c54 100644 --- a/services/storagecache/mgmt/2019-11-01/storagecache/_meta.json +++ b/services/storagecache/mgmt/2019-11-01/storagecache/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/storagecache/resource-manager/readme.md", "tag": "package-2019-11-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-11-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storagecache/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-11-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storagecache/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/storagecache/mgmt/2019-11-01/storagecache/models.go b/services/storagecache/mgmt/2019-11-01/storagecache/models.go index b9d1dc90f345..146ebb0f0d85 100644 --- a/services/storagecache/mgmt/2019-11-01/storagecache/models.go +++ b/services/storagecache/mgmt/2019-11-01/storagecache/models.go @@ -792,6 +792,12 @@ type CacheUpgradeStatus struct { PendingFirmwareVersion *string `json:"pendingFirmwareVersion,omitempty"` } +// MarshalJSON is the custom marshaler for CacheUpgradeStatus. +func (cus CacheUpgradeStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ClfsTarget storage container for use as a CLFS Storage Target. type ClfsTarget struct { // Target - Resource ID of storage container. diff --git a/services/storagecache/mgmt/2020-03-01/storagecache/CHANGELOG.md b/services/storagecache/mgmt/2020-03-01/storagecache/CHANGELOG.md index 52911e4cc5e4..0f173cffc60b 100644 --- a/services/storagecache/mgmt/2020-03-01/storagecache/CHANGELOG.md +++ b/services/storagecache/mgmt/2020-03-01/storagecache/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. CacheUpgradeStatus.MarshalJSON() ([]byte, error) +1. StorageTargetResource.MarshalJSON() ([]byte, error) diff --git a/services/storagecache/mgmt/2020-03-01/storagecache/_meta.json b/services/storagecache/mgmt/2020-03-01/storagecache/_meta.json index 89f2f4e2be4a..329681048875 100644 --- a/services/storagecache/mgmt/2020-03-01/storagecache/_meta.json +++ b/services/storagecache/mgmt/2020-03-01/storagecache/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/storagecache/resource-manager/readme.md", "tag": "package-2020-03-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-03-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storagecache/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-03-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storagecache/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/storagecache/mgmt/2020-03-01/storagecache/models.go b/services/storagecache/mgmt/2020-03-01/storagecache/models.go index 701124aff1a6..e84bdf4129aa 100644 --- a/services/storagecache/mgmt/2020-03-01/storagecache/models.go +++ b/services/storagecache/mgmt/2020-03-01/storagecache/models.go @@ -999,6 +999,12 @@ type CacheUpgradeStatus struct { PendingFirmwareVersion *string `json:"pendingFirmwareVersion,omitempty"` } +// MarshalJSON is the custom marshaler for CacheUpgradeStatus. +func (cus CacheUpgradeStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ClfsTarget properties pertained to ClfsTarget type ClfsTarget struct { // Target - Resource ID of storage container. @@ -1695,6 +1701,12 @@ type StorageTargetResource struct { SystemData *SystemData `json:"systemData,omitempty"` } +// MarshalJSON is the custom marshaler for StorageTargetResource. +func (str StorageTargetResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageTargetsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type StorageTargetsCreateOrUpdateFuture struct { diff --git a/services/storagecache/mgmt/2020-10-01/storagecache/CHANGELOG.md b/services/storagecache/mgmt/2020-10-01/storagecache/CHANGELOG.md index 52911e4cc5e4..0f173cffc60b 100644 --- a/services/storagecache/mgmt/2020-10-01/storagecache/CHANGELOG.md +++ b/services/storagecache/mgmt/2020-10-01/storagecache/CHANGELOG.md @@ -1,2 +1,8 @@ # Change History +## Additive Changes + +### New Funcs + +1. CacheUpgradeStatus.MarshalJSON() ([]byte, error) +1. StorageTargetResource.MarshalJSON() ([]byte, error) diff --git a/services/storagecache/mgmt/2020-10-01/storagecache/_meta.json b/services/storagecache/mgmt/2020-10-01/storagecache/_meta.json index a4e10b92fdb9..0065aee8f608 100644 --- a/services/storagecache/mgmt/2020-10-01/storagecache/_meta.json +++ b/services/storagecache/mgmt/2020-10-01/storagecache/_meta.json @@ -2,9 +2,9 @@ "commit": "8240593bde5350e6762015523ccd57cb61e32da5", "readme": "/_/azure-rest-api-specs/specification/storagecache/resource-manager/readme.md", "tag": "package-2020-10-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-10-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storagecache/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-10-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storagecache/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/storagecache/mgmt/2020-10-01/storagecache/models.go b/services/storagecache/mgmt/2020-10-01/storagecache/models.go index 47b9052accda..9bb60f21a374 100644 --- a/services/storagecache/mgmt/2020-10-01/storagecache/models.go +++ b/services/storagecache/mgmt/2020-10-01/storagecache/models.go @@ -1192,6 +1192,12 @@ type CacheUpgradeStatus struct { PendingFirmwareVersion *string `json:"pendingFirmwareVersion,omitempty"` } +// MarshalJSON is the custom marshaler for CacheUpgradeStatus. +func (cus CacheUpgradeStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CacheUsernameDownloadSettings settings for Extended Groups username and group download. type CacheUsernameDownloadSettings struct { // ExtendedGroups - Whether or not Extended Groups is enabled. @@ -1988,6 +1994,12 @@ type StorageTargetResource struct { SystemData *SystemData `json:"systemData,omitempty"` } +// MarshalJSON is the custom marshaler for StorageTargetResource. +func (str StorageTargetResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageTargetsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type StorageTargetsCreateOrUpdateFuture struct { diff --git a/services/storagecache/mgmt/2021-03-01/storagecache/CHANGELOG.md b/services/storagecache/mgmt/2021-03-01/storagecache/CHANGELOG.md index 52911e4cc5e4..8d5e8bda2dbf 100644 --- a/services/storagecache/mgmt/2021-03-01/storagecache/CHANGELOG.md +++ b/services/storagecache/mgmt/2021-03-01/storagecache/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. CacheUpgradeStatus.MarshalJSON() ([]byte, error) +1. Condition.MarshalJSON() ([]byte, error) +1. StorageTargetResource.MarshalJSON() ([]byte, error) diff --git a/services/storagecache/mgmt/2021-03-01/storagecache/_meta.json b/services/storagecache/mgmt/2021-03-01/storagecache/_meta.json index 0848b0801165..9a24b11830e3 100644 --- a/services/storagecache/mgmt/2021-03-01/storagecache/_meta.json +++ b/services/storagecache/mgmt/2021-03-01/storagecache/_meta.json @@ -2,9 +2,9 @@ "commit": "d9506558e6389e62926ae385f1d625a1376a0f9d", "readme": "/_/azure-rest-api-specs/specification/storagecache/resource-manager/readme.md", "tag": "package-2021-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2021-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storagecache/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2021-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storagecache/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/storagecache/mgmt/2021-03-01/storagecache/models.go b/services/storagecache/mgmt/2021-03-01/storagecache/models.go index 47ba6edf3c51..82d648aff169 100644 --- a/services/storagecache/mgmt/2021-03-01/storagecache/models.go +++ b/services/storagecache/mgmt/2021-03-01/storagecache/models.go @@ -1229,6 +1229,12 @@ type CacheUpgradeStatus struct { PendingFirmwareVersion *string `json:"pendingFirmwareVersion,omitempty"` } +// MarshalJSON is the custom marshaler for CacheUpgradeStatus. +func (cus CacheUpgradeStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CacheUsernameDownloadSettings settings for Extended Groups username and group download. type CacheUsernameDownloadSettings struct { // ExtendedGroups - Whether or not Extended Groups is enabled. @@ -1337,6 +1343,12 @@ type Condition struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for Condition. +func (c Condition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse describes the format of Error response. type ErrorResponse struct { // Code - Error code @@ -1803,6 +1815,12 @@ type StorageTargetResource struct { SystemData *SystemData `json:"systemData,omitempty"` } +// MarshalJSON is the custom marshaler for StorageTargetResource. +func (str StorageTargetResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StorageTargetsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type StorageTargetsCreateOrUpdateFuture struct { diff --git a/services/storageimportexport/mgmt/2016-11-01/storageimportexport/_meta.json b/services/storageimportexport/mgmt/2016-11-01/storageimportexport/_meta.json index b5e1da776a4d..32155b93e9b8 100644 --- a/services/storageimportexport/mgmt/2016-11-01/storageimportexport/_meta.json +++ b/services/storageimportexport/mgmt/2016-11-01/storageimportexport/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/storageimportexport/resource-manager/readme.md", "tag": "package-2016-11", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storageimportexport/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storageimportexport/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/storageimportexport/mgmt/2020-08-01/storageimportexport/_meta.json b/services/storageimportexport/mgmt/2020-08-01/storageimportexport/_meta.json index 96322dbee935..a8b71ffcaa23 100644 --- a/services/storageimportexport/mgmt/2020-08-01/storageimportexport/_meta.json +++ b/services/storageimportexport/mgmt/2020-08-01/storageimportexport/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/storageimportexport/resource-manager/readme.md", "tag": "package-2020-08", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storageimportexport/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storageimportexport/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/storagesync/mgmt/2018-04-02/storagesync/CHANGELOG.md b/services/storagesync/mgmt/2018-04-02/storagesync/CHANGELOG.md index 52911e4cc5e4..9543dc9b79ab 100644 --- a/services/storagesync/mgmt/2018-04-02/storagesync/CHANGELOG.md +++ b/services/storagesync/mgmt/2018-04-02/storagesync/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) +1. PostBackupResponseProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ServiceProperties.MarshalJSON() ([]byte, error) diff --git a/services/storagesync/mgmt/2018-04-02/storagesync/_meta.json b/services/storagesync/mgmt/2018-04-02/storagesync/_meta.json index 5a1b1fc93cb4..775de03f03b3 100644 --- a/services/storagesync/mgmt/2018-04-02/storagesync/_meta.json +++ b/services/storagesync/mgmt/2018-04-02/storagesync/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/storagesync/resource-manager/readme.md", "tag": "package-2018-04-02", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-04-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storagesync/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-04-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storagesync/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/storagesync/mgmt/2018-04-02/storagesync/models.go b/services/storagesync/mgmt/2018-04-02/storagesync/models.go index 931d8b771096..c1c567e5cf64 100644 --- a/services/storagesync/mgmt/2018-04-02/storagesync/models.go +++ b/services/storagesync/mgmt/2018-04-02/storagesync/models.go @@ -43,6 +43,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BackupRequest backup request type BackupRequest struct { // AzureFileShare - Azure File Share. @@ -68,6 +74,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudEndpoint cloud Endpoint object. type CloudEndpoint struct { autorest.Response `json:"-"` @@ -768,6 +780,12 @@ type PostBackupResponseProperties struct { CloudEndpointName *string `json:"cloudEndpointName,omitempty"` } +// MarshalJSON is the custom marshaler for PostBackupResponseProperties. +func (pbrp PostBackupResponseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PostRestoreRequest post Restore Request type PostRestoreRequest struct { // Partition - Post Restore partition. @@ -821,6 +839,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RecallActionParameters the parameters used when calling recall action on server endpoint. type RecallActionParameters struct { // Pattern - Pattern of the files. @@ -1128,6 +1152,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourcesMoveInfo resource Move Info. type ResourcesMoveInfo struct { // TargetResourceGroup - Target resource group. @@ -1693,6 +1723,12 @@ type ServiceProperties struct { StorageSyncServiceUID *string `json:"storageSyncServiceUid,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceProperties. +func (sp ServiceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceUpdateParameters parameters for updating an Storage sync service. type ServiceUpdateParameters struct { // Tags - The user-specified tags associated with the storage sync service. diff --git a/services/storagesync/mgmt/2018-07-01/storagesync/CHANGELOG.md b/services/storagesync/mgmt/2018-07-01/storagesync/CHANGELOG.md index 52911e4cc5e4..9543dc9b79ab 100644 --- a/services/storagesync/mgmt/2018-07-01/storagesync/CHANGELOG.md +++ b/services/storagesync/mgmt/2018-07-01/storagesync/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) +1. PostBackupResponseProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ServiceProperties.MarshalJSON() ([]byte, error) diff --git a/services/storagesync/mgmt/2018-07-01/storagesync/_meta.json b/services/storagesync/mgmt/2018-07-01/storagesync/_meta.json index c8eb4bc1f882..fbf1c8c5a7b8 100644 --- a/services/storagesync/mgmt/2018-07-01/storagesync/_meta.json +++ b/services/storagesync/mgmt/2018-07-01/storagesync/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/storagesync/resource-manager/readme.md", "tag": "package-2018-07-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-07-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storagesync/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-07-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storagesync/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/storagesync/mgmt/2018-07-01/storagesync/models.go b/services/storagesync/mgmt/2018-07-01/storagesync/models.go index 3a2d3da2f76a..12786dab9cd3 100644 --- a/services/storagesync/mgmt/2018-07-01/storagesync/models.go +++ b/services/storagesync/mgmt/2018-07-01/storagesync/models.go @@ -43,6 +43,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BackupRequest backup request type BackupRequest struct { // AzureFileShare - Azure File Share. @@ -68,6 +74,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudEndpoint cloud Endpoint object. type CloudEndpoint struct { autorest.Response `json:"-"` @@ -773,6 +785,12 @@ type PostBackupResponseProperties struct { CloudEndpointName *string `json:"cloudEndpointName,omitempty"` } +// MarshalJSON is the custom marshaler for PostBackupResponseProperties. +func (pbrp PostBackupResponseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PostRestoreRequest post Restore Request type PostRestoreRequest struct { // Partition - Post Restore partition. @@ -826,6 +844,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RecallActionParameters the parameters used when calling recall action on server endpoint. type RecallActionParameters struct { // Pattern - Pattern of the files. @@ -1177,6 +1201,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourcesMoveInfo resource Move Info. type ResourcesMoveInfo struct { // TargetResourceGroup - Target resource group. @@ -1743,6 +1773,12 @@ type ServiceProperties struct { StorageSyncServiceUID *string `json:"storageSyncServiceUid,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceProperties. +func (sp ServiceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceUpdateParameters parameters for updating an Storage sync service. type ServiceUpdateParameters struct { // Tags - The user-specified tags associated with the storage sync service. diff --git a/services/storagesync/mgmt/2018-10-01/storagesync/CHANGELOG.md b/services/storagesync/mgmt/2018-10-01/storagesync/CHANGELOG.md index 52911e4cc5e4..9543dc9b79ab 100644 --- a/services/storagesync/mgmt/2018-10-01/storagesync/CHANGELOG.md +++ b/services/storagesync/mgmt/2018-10-01/storagesync/CHANGELOG.md @@ -1,2 +1,12 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) +1. PostBackupResponseProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ServiceProperties.MarshalJSON() ([]byte, error) diff --git a/services/storagesync/mgmt/2018-10-01/storagesync/_meta.json b/services/storagesync/mgmt/2018-10-01/storagesync/_meta.json index 47922bedc817..8f7749c37087 100644 --- a/services/storagesync/mgmt/2018-10-01/storagesync/_meta.json +++ b/services/storagesync/mgmt/2018-10-01/storagesync/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/storagesync/resource-manager/readme.md", "tag": "package-2018-10-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-10-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storagesync/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-10-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storagesync/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/storagesync/mgmt/2018-10-01/storagesync/models.go b/services/storagesync/mgmt/2018-10-01/storagesync/models.go index db41b07e7e3a..842ea0978b0b 100644 --- a/services/storagesync/mgmt/2018-10-01/storagesync/models.go +++ b/services/storagesync/mgmt/2018-10-01/storagesync/models.go @@ -44,6 +44,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BackupRequest backup request type BackupRequest struct { // AzureFileShare - Azure File Share. @@ -69,6 +75,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudEndpoint cloud Endpoint object. type CloudEndpoint struct { autorest.Response `json:"-"` @@ -774,6 +786,12 @@ type PostBackupResponseProperties struct { CloudEndpointName *string `json:"cloudEndpointName,omitempty"` } +// MarshalJSON is the custom marshaler for PostBackupResponseProperties. +func (pbrp PostBackupResponseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PostRestoreRequest post Restore Request type PostRestoreRequest struct { // Partition - Post Restore partition. @@ -827,6 +845,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RecallActionParameters the parameters used when calling recall action on server endpoint. type RecallActionParameters struct { // Pattern - Pattern of the files. @@ -1178,6 +1202,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourcesMoveInfo resource Move Info. type ResourcesMoveInfo struct { // TargetResourceGroup - Target resource group. @@ -1822,6 +1852,12 @@ type ServiceProperties struct { StorageSyncServiceUID *string `json:"storageSyncServiceUid,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceProperties. +func (sp ServiceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceUpdateParameters parameters for updating an Storage sync service. type ServiceUpdateParameters struct { // Tags - The user-specified tags associated with the storage sync service. diff --git a/services/storagesync/mgmt/2019-02-01/storagesync/CHANGELOG.md b/services/storagesync/mgmt/2019-02-01/storagesync/CHANGELOG.md index 52911e4cc5e4..aeff6c3bdaf4 100644 --- a/services/storagesync/mgmt/2019-02-01/storagesync/CHANGELOG.md +++ b/services/storagesync/mgmt/2019-02-01/storagesync/CHANGELOG.md @@ -1,2 +1,16 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) +1. FilesNotSyncingError.MarshalJSON() ([]byte, error) +1. PostBackupResponseProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ServerEndpointSyncStatus.MarshalJSON() ([]byte, error) +1. ServiceProperties.MarshalJSON() ([]byte, error) +1. SyncActivityStatus.MarshalJSON() ([]byte, error) +1. SyncSessionStatus.MarshalJSON() ([]byte, error) diff --git a/services/storagesync/mgmt/2019-02-01/storagesync/_meta.json b/services/storagesync/mgmt/2019-02-01/storagesync/_meta.json index 3ed9859f64f1..e6f487d00b0c 100644 --- a/services/storagesync/mgmt/2019-02-01/storagesync/_meta.json +++ b/services/storagesync/mgmt/2019-02-01/storagesync/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/storagesync/resource-manager/readme.md", "tag": "package-2019-02-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-02-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storagesync/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-02-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storagesync/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/storagesync/mgmt/2019-02-01/storagesync/models.go b/services/storagesync/mgmt/2019-02-01/storagesync/models.go index 76f22f2ac59b..f69b8327da68 100644 --- a/services/storagesync/mgmt/2019-02-01/storagesync/models.go +++ b/services/storagesync/mgmt/2019-02-01/storagesync/models.go @@ -44,6 +44,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BackupRequest backup request type BackupRequest struct { // AzureFileShare - Azure File Share. @@ -69,6 +75,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudEndpoint cloud Endpoint object. type CloudEndpoint struct { autorest.Response `json:"-"` @@ -545,6 +557,12 @@ type FilesNotSyncingError struct { TransientCount *int64 `json:"transientCount,omitempty"` } +// MarshalJSON is the custom marshaler for FilesNotSyncingError. +func (fnse FilesNotSyncingError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationDisplayInfo the operation supported by storage sync. type OperationDisplayInfo struct { // Description - The description of the operation. @@ -784,6 +802,12 @@ type PostBackupResponseProperties struct { CloudEndpointName *string `json:"cloudEndpointName,omitempty"` } +// MarshalJSON is the custom marshaler for PostBackupResponseProperties. +func (pbrp PostBackupResponseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PostRestoreRequest post Restore Request type PostRestoreRequest struct { // Partition - Post Restore partition. @@ -837,6 +861,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RecallActionParameters the parameters used when calling recall action on server endpoint. type RecallActionParameters struct { // Pattern - Pattern of the files. @@ -1188,6 +1218,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourcesMoveInfo resource Move Info. type ResourcesMoveInfo struct { // TargetResourceGroup - Target resource group. @@ -1633,6 +1669,12 @@ type ServerEndpointSyncStatus struct { OfflineDataTransferStatus OfflineDataTransferStatus `json:"offlineDataTransferStatus,omitempty"` } +// MarshalJSON is the custom marshaler for ServerEndpointSyncStatus. +func (sess ServerEndpointSyncStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerEndpointUpdateParameters parameters for updating an Server Endpoint. type ServerEndpointUpdateParameters struct { // ServerEndpointUpdateProperties - The properties of the server endpoint. @@ -1826,6 +1868,12 @@ type ServiceProperties struct { StorageSyncServiceUID *string `json:"storageSyncServiceUid,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceProperties. +func (sp ServiceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceUpdateParameters parameters for updating an Storage sync service. type ServiceUpdateParameters struct { // Tags - The user-specified tags associated with the storage sync service. @@ -1884,6 +1932,12 @@ type SyncActivityStatus struct { TotalBytes *int64 `json:"totalBytes,omitempty"` } +// MarshalJSON is the custom marshaler for SyncActivityStatus. +func (sas SyncActivityStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncGroup sync Group object. type SyncGroup struct { autorest.Response `json:"-"` @@ -2020,6 +2074,12 @@ type SyncSessionStatus struct { FilesNotSyncingErrors *[]FilesNotSyncingError `json:"filesNotSyncingErrors,omitempty"` } +// MarshalJSON is the custom marshaler for SyncSessionStatus. +func (sss SyncSessionStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource // which has 'tags' and a 'location' type TrackedResource struct { diff --git a/services/storagesync/mgmt/2019-06-01/storagesync/CHANGELOG.md b/services/storagesync/mgmt/2019-06-01/storagesync/CHANGELOG.md index 52911e4cc5e4..93f99ba81125 100644 --- a/services/storagesync/mgmt/2019-06-01/storagesync/CHANGELOG.md +++ b/services/storagesync/mgmt/2019-06-01/storagesync/CHANGELOG.md @@ -1,2 +1,21 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) +1. OperationStatus.MarshalJSON() ([]byte, error) +1. PostBackupResponseProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ServerEndpointCloudTieringStatus.MarshalJSON() ([]byte, error) +1. ServerEndpointFilesNotSyncingError.MarshalJSON() ([]byte, error) +1. ServerEndpointRecallError.MarshalJSON() ([]byte, error) +1. ServerEndpointRecallStatus.MarshalJSON() ([]byte, error) +1. ServerEndpointSyncActivityStatus.MarshalJSON() ([]byte, error) +1. ServerEndpointSyncSessionStatus.MarshalJSON() ([]byte, error) +1. ServerEndpointSyncStatus.MarshalJSON() ([]byte, error) +1. ServiceProperties.MarshalJSON() ([]byte, error) +1. SyncGroupProperties.MarshalJSON() ([]byte, error) diff --git a/services/storagesync/mgmt/2019-06-01/storagesync/_meta.json b/services/storagesync/mgmt/2019-06-01/storagesync/_meta.json index bcdd2a85a4bf..37e04504f14d 100644 --- a/services/storagesync/mgmt/2019-06-01/storagesync/_meta.json +++ b/services/storagesync/mgmt/2019-06-01/storagesync/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/storagesync/resource-manager/readme.md", "tag": "package-2019-06-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-06-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storagesync/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-06-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storagesync/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/storagesync/mgmt/2019-06-01/storagesync/models.go b/services/storagesync/mgmt/2019-06-01/storagesync/models.go index 45737251847f..720adc781cb1 100644 --- a/services/storagesync/mgmt/2019-06-01/storagesync/models.go +++ b/services/storagesync/mgmt/2019-06-01/storagesync/models.go @@ -44,6 +44,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BackupRequest backup request type BackupRequest struct { // AzureFileShare - Azure File Share. @@ -69,6 +75,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudEndpoint cloud Endpoint object. type CloudEndpoint struct { autorest.Response `json:"-"` @@ -782,6 +794,12 @@ type OperationStatus struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for OperationStatus. +func (osVar OperationStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PostBackupResponse post Backup Response type PostBackupResponse struct { autorest.Response `json:"-"` @@ -828,6 +846,12 @@ type PostBackupResponseProperties struct { CloudEndpointName *string `json:"cloudEndpointName,omitempty"` } +// MarshalJSON is the custom marshaler for PostBackupResponseProperties. +func (pbrp PostBackupResponseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PostRestoreRequest post Restore Request type PostRestoreRequest struct { // Partition - Post Restore partition. @@ -881,6 +905,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RecallActionParameters the parameters used when calling recall action on server endpoint. type RecallActionParameters struct { // Pattern - Pattern of the files. @@ -1232,6 +1262,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourcesMoveInfo resource Move Info. type ResourcesMoveInfo struct { // TargetResourceGroup - Target resource group. @@ -1340,6 +1376,12 @@ type ServerEndpointCloudTieringStatus struct { LastSuccessTimestamp *date.Time `json:"lastSuccessTimestamp,omitempty"` } +// MarshalJSON is the custom marshaler for ServerEndpointCloudTieringStatus. +func (sects ServerEndpointCloudTieringStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerEndpointCreateParameters the parameters used when creating a server endpoint. type ServerEndpointCreateParameters struct { // ServerEndpointCreateParametersProperties - The parameters used to create the server endpoint. @@ -1442,6 +1484,12 @@ type ServerEndpointFilesNotSyncingError struct { TransientCount *int64 `json:"transientCount,omitempty"` } +// MarshalJSON is the custom marshaler for ServerEndpointFilesNotSyncingError. +func (sefnse ServerEndpointFilesNotSyncingError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerEndpointProperties serverEndpoint Properties object. type ServerEndpointProperties struct { // ServerLocalPath - Server Local path. @@ -1516,6 +1564,12 @@ type ServerEndpointRecallError struct { Count *int64 `json:"count,omitempty"` } +// MarshalJSON is the custom marshaler for ServerEndpointRecallError. +func (sere ServerEndpointRecallError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerEndpointRecallStatus server endpoint recall status object. type ServerEndpointRecallStatus struct { // LastUpdatedTimestamp - READ-ONLY; Last updated timestamp @@ -1526,6 +1580,12 @@ type ServerEndpointRecallStatus struct { RecallErrors *[]ServerEndpointRecallError `json:"recallErrors,omitempty"` } +// MarshalJSON is the custom marshaler for ServerEndpointRecallStatus. +func (sers ServerEndpointRecallStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerEndpointsCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ServerEndpointsCreateFuture struct { @@ -1702,6 +1762,12 @@ type ServerEndpointSyncActivityStatus struct { TotalBytes *int64 `json:"totalBytes,omitempty"` } +// MarshalJSON is the custom marshaler for ServerEndpointSyncActivityStatus. +func (sesas ServerEndpointSyncActivityStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerEndpointSyncSessionStatus sync Session status object. type ServerEndpointSyncSessionStatus struct { // LastSyncResult - READ-ONLY; Last sync result (HResult) @@ -1720,6 +1786,12 @@ type ServerEndpointSyncSessionStatus struct { FilesNotSyncingErrors *[]ServerEndpointFilesNotSyncingError `json:"filesNotSyncingErrors,omitempty"` } +// MarshalJSON is the custom marshaler for ServerEndpointSyncSessionStatus. +func (sesss ServerEndpointSyncSessionStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerEndpointSyncStatus server Endpoint sync status type ServerEndpointSyncStatus struct { // DownloadHealth - READ-ONLY; Download Health Status. Possible values include: 'DownloadHealthHealthy', 'DownloadHealthError', 'DownloadHealthSyncBlockedForRestore', 'DownloadHealthSyncBlockedForChangeDetectionPostRestore', 'DownloadHealthNoActivity' @@ -1746,6 +1818,12 @@ type ServerEndpointSyncStatus struct { OfflineDataTransferStatus OfflineDataTransferStatus `json:"offlineDataTransferStatus,omitempty"` } +// MarshalJSON is the custom marshaler for ServerEndpointSyncStatus. +func (sess ServerEndpointSyncStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerEndpointUpdateParameters parameters for updating an Server Endpoint. type ServerEndpointUpdateParameters struct { // ServerEndpointUpdateProperties - The properties of the server endpoint. @@ -1939,6 +2017,12 @@ type ServiceProperties struct { StorageSyncServiceUID *string `json:"storageSyncServiceUid,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceProperties. +func (sp ServiceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceUpdateParameters parameters for updating an Storage sync service. type ServiceUpdateParameters struct { // Tags - The user-specified tags associated with the storage sync service. @@ -2090,6 +2174,12 @@ type SyncGroupProperties struct { SyncGroupStatus *string `json:"syncGroupStatus,omitempty"` } +// MarshalJSON is the custom marshaler for SyncGroupProperties. +func (sgp SyncGroupProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource // which has 'tags' and a 'location' type TrackedResource struct { diff --git a/services/storagesync/mgmt/2019-10-01/storagesync/CHANGELOG.md b/services/storagesync/mgmt/2019-10-01/storagesync/CHANGELOG.md index 52911e4cc5e4..b2292263befd 100644 --- a/services/storagesync/mgmt/2019-10-01/storagesync/CHANGELOG.md +++ b/services/storagesync/mgmt/2019-10-01/storagesync/CHANGELOG.md @@ -1,2 +1,27 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) +1. CloudTieringCachePerformance.MarshalJSON() ([]byte, error) +1. CloudTieringDatePolicyStatus.MarshalJSON() ([]byte, error) +1. CloudTieringFilesNotTiering.MarshalJSON() ([]byte, error) +1. CloudTieringSpaceSavings.MarshalJSON() ([]byte, error) +1. CloudTieringVolumeFreeSpacePolicyStatus.MarshalJSON() ([]byte, error) +1. FilesNotTieringError.MarshalJSON() ([]byte, error) +1. OperationStatus.MarshalJSON() ([]byte, error) +1. PostBackupResponseProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ServerEndpointCloudTieringStatus.MarshalJSON() ([]byte, error) +1. ServerEndpointFilesNotSyncingError.MarshalJSON() ([]byte, error) +1. ServerEndpointRecallError.MarshalJSON() ([]byte, error) +1. ServerEndpointRecallStatus.MarshalJSON() ([]byte, error) +1. ServerEndpointSyncStatus.MarshalJSON() ([]byte, error) +1. ServiceProperties.MarshalJSON() ([]byte, error) +1. SyncActivityStatus.MarshalJSON() ([]byte, error) +1. SyncGroupProperties.MarshalJSON() ([]byte, error) +1. SyncSessionStatus.MarshalJSON() ([]byte, error) diff --git a/services/storagesync/mgmt/2019-10-01/storagesync/_meta.json b/services/storagesync/mgmt/2019-10-01/storagesync/_meta.json index a1e46ae79855..391ecf6c2010 100644 --- a/services/storagesync/mgmt/2019-10-01/storagesync/_meta.json +++ b/services/storagesync/mgmt/2019-10-01/storagesync/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/storagesync/resource-manager/readme.md", "tag": "package-2019-10-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-10-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storagesync/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-10-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storagesync/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/storagesync/mgmt/2019-10-01/storagesync/models.go b/services/storagesync/mgmt/2019-10-01/storagesync/models.go index 774420c7c504..79223bfc6b5f 100644 --- a/services/storagesync/mgmt/2019-10-01/storagesync/models.go +++ b/services/storagesync/mgmt/2019-10-01/storagesync/models.go @@ -44,6 +44,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BackupRequest backup request type BackupRequest struct { // AzureFileShare - Azure File Share. @@ -69,6 +75,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudEndpoint cloud Endpoint object. type CloudEndpoint struct { autorest.Response `json:"-"` @@ -568,6 +580,12 @@ type CloudTieringCachePerformance struct { CacheHitBytesPercent *int32 `json:"cacheHitBytesPercent,omitempty"` } +// MarshalJSON is the custom marshaler for CloudTieringCachePerformance. +func (ctcp CloudTieringCachePerformance) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudTieringDatePolicyStatus status of the date policy type CloudTieringDatePolicyStatus struct { // LastUpdatedTimestamp - READ-ONLY; Last updated timestamp @@ -576,6 +594,12 @@ type CloudTieringDatePolicyStatus struct { TieredFilesMostRecentAccessTimestamp *date.Time `json:"tieredFilesMostRecentAccessTimestamp,omitempty"` } +// MarshalJSON is the custom marshaler for CloudTieringDatePolicyStatus. +func (ctdps CloudTieringDatePolicyStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudTieringFilesNotTiering server endpoint cloud tiering status object. type CloudTieringFilesNotTiering struct { // LastUpdatedTimestamp - READ-ONLY; Last updated timestamp @@ -586,6 +610,12 @@ type CloudTieringFilesNotTiering struct { Errors *[]FilesNotTieringError `json:"errors,omitempty"` } +// MarshalJSON is the custom marshaler for CloudTieringFilesNotTiering. +func (ctfnt CloudTieringFilesNotTiering) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudTieringSpaceSavings server endpoint cloud tiering status object. type CloudTieringSpaceSavings struct { // LastUpdatedTimestamp - READ-ONLY; Last updated timestamp @@ -602,6 +632,12 @@ type CloudTieringSpaceSavings struct { SpaceSavingsBytes *int64 `json:"spaceSavingsBytes,omitempty"` } +// MarshalJSON is the custom marshaler for CloudTieringSpaceSavings. +func (ctss CloudTieringSpaceSavings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudTieringVolumeFreeSpacePolicyStatus status of the volume free space policy type CloudTieringVolumeFreeSpacePolicyStatus struct { // LastUpdatedTimestamp - READ-ONLY; Last updated timestamp @@ -612,6 +648,12 @@ type CloudTieringVolumeFreeSpacePolicyStatus struct { CurrentVolumeFreeSpacePercent *int32 `json:"currentVolumeFreeSpacePercent,omitempty"` } +// MarshalJSON is the custom marshaler for CloudTieringVolumeFreeSpacePolicyStatus. +func (ctvfsps CloudTieringVolumeFreeSpacePolicyStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Error error type type Error struct { // Error - Error details of the given entry. @@ -638,6 +680,12 @@ type FilesNotTieringError struct { FileCount *int64 `json:"fileCount,omitempty"` } +// MarshalJSON is the custom marshaler for FilesNotTieringError. +func (fnte FilesNotTieringError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationDisplayInfo the operation supported by storage sync. type OperationDisplayInfo struct { // Description - The description of the operation. @@ -846,6 +894,12 @@ type OperationStatus struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for OperationStatus. +func (osVar OperationStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PostBackupResponse post Backup Response type PostBackupResponse struct { autorest.Response `json:"-"` @@ -892,6 +946,12 @@ type PostBackupResponseProperties struct { CloudEndpointName *string `json:"cloudEndpointName,omitempty"` } +// MarshalJSON is the custom marshaler for PostBackupResponseProperties. +func (pbrp PostBackupResponseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PostRestoreRequest post Restore Request type PostRestoreRequest struct { // Partition - Post Restore partition. @@ -945,6 +1005,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RecallActionParameters the parameters used when calling recall action on server endpoint. type RecallActionParameters struct { // Pattern - Pattern of the files. @@ -1296,6 +1362,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourcesMoveInfo resource Move Info. type ResourcesMoveInfo struct { // TargetResourceGroup - Target resource group. @@ -1416,6 +1488,12 @@ type ServerEndpointCloudTieringStatus struct { DatePolicyStatus *CloudTieringDatePolicyStatus `json:"datePolicyStatus,omitempty"` } +// MarshalJSON is the custom marshaler for ServerEndpointCloudTieringStatus. +func (sects ServerEndpointCloudTieringStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerEndpointCreateParameters the parameters used when creating a server endpoint. type ServerEndpointCreateParameters struct { // ServerEndpointCreateParametersProperties - The parameters used to create the server endpoint. @@ -1518,6 +1596,12 @@ type ServerEndpointFilesNotSyncingError struct { TransientCount *int64 `json:"transientCount,omitempty"` } +// MarshalJSON is the custom marshaler for ServerEndpointFilesNotSyncingError. +func (sefnse ServerEndpointFilesNotSyncingError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerEndpointProperties serverEndpoint Properties object. type ServerEndpointProperties struct { // ServerLocalPath - Server Local path. @@ -1592,6 +1676,12 @@ type ServerEndpointRecallError struct { Count *int64 `json:"count,omitempty"` } +// MarshalJSON is the custom marshaler for ServerEndpointRecallError. +func (sere ServerEndpointRecallError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerEndpointRecallStatus server endpoint recall status object. type ServerEndpointRecallStatus struct { // LastUpdatedTimestamp - READ-ONLY; Last updated timestamp @@ -1602,6 +1692,12 @@ type ServerEndpointRecallStatus struct { RecallErrors *[]ServerEndpointRecallError `json:"recallErrors,omitempty"` } +// MarshalJSON is the custom marshaler for ServerEndpointRecallStatus. +func (sers ServerEndpointRecallStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerEndpointsCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ServerEndpointsCreateFuture struct { @@ -1788,6 +1884,12 @@ type ServerEndpointSyncStatus struct { OfflineDataTransferStatus OfflineDataTransferStatus `json:"offlineDataTransferStatus,omitempty"` } +// MarshalJSON is the custom marshaler for ServerEndpointSyncStatus. +func (sess ServerEndpointSyncStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerEndpointUpdateParameters parameters for updating an Server Endpoint. type ServerEndpointUpdateParameters struct { // ServerEndpointUpdateProperties - The properties of the server endpoint. @@ -1981,6 +2083,12 @@ type ServiceProperties struct { StorageSyncServiceUID *string `json:"storageSyncServiceUid,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceProperties. +func (sp ServiceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceUpdateParameters parameters for updating an Storage sync service. type ServiceUpdateParameters struct { // Tags - The user-specified tags associated with the storage sync service. @@ -2039,6 +2147,12 @@ type SyncActivityStatus struct { TotalBytes *int64 `json:"totalBytes,omitempty"` } +// MarshalJSON is the custom marshaler for SyncActivityStatus. +func (sas SyncActivityStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncGroup sync Group object. type SyncGroup struct { autorest.Response `json:"-"` @@ -2148,6 +2262,12 @@ type SyncGroupProperties struct { SyncGroupStatus *string `json:"syncGroupStatus,omitempty"` } +// MarshalJSON is the custom marshaler for SyncGroupProperties. +func (sgp SyncGroupProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SyncSessionStatus sync Session status object. type SyncSessionStatus struct { // LastSyncResult - READ-ONLY; Last sync result (HResult) @@ -2166,6 +2286,12 @@ type SyncSessionStatus struct { FilesNotSyncingErrors *[]ServerEndpointFilesNotSyncingError `json:"filesNotSyncingErrors,omitempty"` } +// MarshalJSON is the custom marshaler for SyncSessionStatus. +func (sss SyncSessionStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource // which has 'tags' and a 'location' type TrackedResource struct { diff --git a/services/storagesync/mgmt/2020-03-01/storagesync/CHANGELOG.md b/services/storagesync/mgmt/2020-03-01/storagesync/CHANGELOG.md index 52911e4cc5e4..25fdfae11a54 100644 --- a/services/storagesync/mgmt/2020-03-01/storagesync/CHANGELOG.md +++ b/services/storagesync/mgmt/2020-03-01/storagesync/CHANGELOG.md @@ -1,2 +1,27 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error) +1. CloudTieringCachePerformance.MarshalJSON() ([]byte, error) +1. CloudTieringDatePolicyStatus.MarshalJSON() ([]byte, error) +1. CloudTieringFilesNotTiering.MarshalJSON() ([]byte, error) +1. CloudTieringSpaceSavings.MarshalJSON() ([]byte, error) +1. CloudTieringVolumeFreeSpacePolicyStatus.MarshalJSON() ([]byte, error) +1. FilesNotTieringError.MarshalJSON() ([]byte, error) +1. OperationStatus.MarshalJSON() ([]byte, error) +1. PostBackupResponseProperties.MarshalJSON() ([]byte, error) +1. PrivateEndpoint.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. ServerEndpointCloudTieringStatus.MarshalJSON() ([]byte, error) +1. ServerEndpointFilesNotSyncingError.MarshalJSON() ([]byte, error) +1. ServerEndpointRecallError.MarshalJSON() ([]byte, error) +1. ServerEndpointRecallStatus.MarshalJSON() ([]byte, error) +1. ServerEndpointSyncActivityStatus.MarshalJSON() ([]byte, error) +1. ServerEndpointSyncSessionStatus.MarshalJSON() ([]byte, error) +1. ServerEndpointSyncStatus.MarshalJSON() ([]byte, error) +1. SyncGroupProperties.MarshalJSON() ([]byte, error) diff --git a/services/storagesync/mgmt/2020-03-01/storagesync/_meta.json b/services/storagesync/mgmt/2020-03-01/storagesync/_meta.json index 1e3ac7433e23..45e5b37b6441 100644 --- a/services/storagesync/mgmt/2020-03-01/storagesync/_meta.json +++ b/services/storagesync/mgmt/2020-03-01/storagesync/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/storagesync/resource-manager/readme.md", "tag": "package-2020-03-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-03-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storagesync/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-03-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storagesync/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/storagesync/mgmt/2020-03-01/storagesync/models.go b/services/storagesync/mgmt/2020-03-01/storagesync/models.go index 9e25c5212cf5..ff5aff5e17d8 100644 --- a/services/storagesync/mgmt/2020-03-01/storagesync/models.go +++ b/services/storagesync/mgmt/2020-03-01/storagesync/models.go @@ -44,6 +44,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BackupRequest backup request type BackupRequest struct { // AzureFileShare - Azure File Share. @@ -69,6 +75,12 @@ type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult. +func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudEndpoint cloud Endpoint object. type CloudEndpoint struct { autorest.Response `json:"-"` @@ -568,6 +580,12 @@ type CloudTieringCachePerformance struct { CacheHitBytesPercent *int32 `json:"cacheHitBytesPercent,omitempty"` } +// MarshalJSON is the custom marshaler for CloudTieringCachePerformance. +func (ctcp CloudTieringCachePerformance) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudTieringDatePolicyStatus status of the date policy type CloudTieringDatePolicyStatus struct { // LastUpdatedTimestamp - READ-ONLY; Last updated timestamp @@ -576,6 +594,12 @@ type CloudTieringDatePolicyStatus struct { TieredFilesMostRecentAccessTimestamp *date.Time `json:"tieredFilesMostRecentAccessTimestamp,omitempty"` } +// MarshalJSON is the custom marshaler for CloudTieringDatePolicyStatus. +func (ctdps CloudTieringDatePolicyStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudTieringFilesNotTiering server endpoint cloud tiering status object. type CloudTieringFilesNotTiering struct { // LastUpdatedTimestamp - READ-ONLY; Last updated timestamp @@ -586,6 +610,12 @@ type CloudTieringFilesNotTiering struct { Errors *[]FilesNotTieringError `json:"errors,omitempty"` } +// MarshalJSON is the custom marshaler for CloudTieringFilesNotTiering. +func (ctfnt CloudTieringFilesNotTiering) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudTieringSpaceSavings server endpoint cloud tiering status object. type CloudTieringSpaceSavings struct { // LastUpdatedTimestamp - READ-ONLY; Last updated timestamp @@ -602,6 +632,12 @@ type CloudTieringSpaceSavings struct { SpaceSavingsBytes *int64 `json:"spaceSavingsBytes,omitempty"` } +// MarshalJSON is the custom marshaler for CloudTieringSpaceSavings. +func (ctss CloudTieringSpaceSavings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudTieringVolumeFreeSpacePolicyStatus status of the volume free space policy type CloudTieringVolumeFreeSpacePolicyStatus struct { // LastUpdatedTimestamp - READ-ONLY; Last updated timestamp @@ -612,6 +648,12 @@ type CloudTieringVolumeFreeSpacePolicyStatus struct { CurrentVolumeFreeSpacePercent *int32 `json:"currentVolumeFreeSpacePercent,omitempty"` } +// MarshalJSON is the custom marshaler for CloudTieringVolumeFreeSpacePolicyStatus. +func (ctvfsps CloudTieringVolumeFreeSpacePolicyStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Error error type type Error struct { // Error - Error details of the given entry. @@ -638,6 +680,12 @@ type FilesNotTieringError struct { FileCount *int64 `json:"fileCount,omitempty"` } +// MarshalJSON is the custom marshaler for FilesNotTieringError. +func (fnte FilesNotTieringError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationDisplayInfo the operation supported by storage sync. type OperationDisplayInfo struct { // Description - The description of the operation. @@ -846,6 +894,12 @@ type OperationStatus struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for OperationStatus. +func (osVar OperationStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PostBackupResponse post Backup Response type PostBackupResponse struct { autorest.Response `json:"-"` @@ -892,6 +946,12 @@ type PostBackupResponseProperties struct { CloudEndpointName *string `json:"cloudEndpointName,omitempty"` } +// MarshalJSON is the custom marshaler for PostBackupResponseProperties. +func (pbrp PostBackupResponseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PostRestoreRequest post Restore Request type PostRestoreRequest struct { // Partition - Post Restore partition. @@ -940,6 +1000,12 @@ type PrivateEndpoint struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpoint. +func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection the Private Endpoint Connection resource. type PrivateEndpointConnection struct { autorest.Response `json:"-"` @@ -1231,6 +1297,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RecallActionParameters the parameters used when calling recall action on server endpoint. type RecallActionParameters struct { // Pattern - Pattern of the files. @@ -1584,6 +1656,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourcesMoveInfo resource Move Info. type ResourcesMoveInfo struct { // TargetResourceGroup - Target resource group. @@ -1704,6 +1782,12 @@ type ServerEndpointCloudTieringStatus struct { DatePolicyStatus *CloudTieringDatePolicyStatus `json:"datePolicyStatus,omitempty"` } +// MarshalJSON is the custom marshaler for ServerEndpointCloudTieringStatus. +func (sects ServerEndpointCloudTieringStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerEndpointCreateParameters the parameters used when creating a server endpoint. type ServerEndpointCreateParameters struct { // ServerEndpointCreateParametersProperties - The parameters used to create the server endpoint. @@ -1810,6 +1894,12 @@ type ServerEndpointFilesNotSyncingError struct { TransientCount *int64 `json:"transientCount,omitempty"` } +// MarshalJSON is the custom marshaler for ServerEndpointFilesNotSyncingError. +func (sefnse ServerEndpointFilesNotSyncingError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerEndpointProperties serverEndpoint Properties object. type ServerEndpointProperties struct { // ServerLocalPath - Server Local path. @@ -1894,6 +1984,12 @@ type ServerEndpointRecallError struct { Count *int64 `json:"count,omitempty"` } +// MarshalJSON is the custom marshaler for ServerEndpointRecallError. +func (sere ServerEndpointRecallError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerEndpointRecallStatus server endpoint recall status object. type ServerEndpointRecallStatus struct { // LastUpdatedTimestamp - READ-ONLY; Last updated timestamp @@ -1904,6 +2000,12 @@ type ServerEndpointRecallStatus struct { RecallErrors *[]ServerEndpointRecallError `json:"recallErrors,omitempty"` } +// MarshalJSON is the custom marshaler for ServerEndpointRecallStatus. +func (sers ServerEndpointRecallStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerEndpointsCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ServerEndpointsCreateFuture struct { @@ -2080,6 +2182,12 @@ type ServerEndpointSyncActivityStatus struct { TotalBytes *int64 `json:"totalBytes,omitempty"` } +// MarshalJSON is the custom marshaler for ServerEndpointSyncActivityStatus. +func (sesas ServerEndpointSyncActivityStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerEndpointSyncSessionStatus sync Session status object. type ServerEndpointSyncSessionStatus struct { // LastSyncResult - READ-ONLY; Last sync result (HResult) @@ -2098,6 +2206,12 @@ type ServerEndpointSyncSessionStatus struct { FilesNotSyncingErrors *[]ServerEndpointFilesNotSyncingError `json:"filesNotSyncingErrors,omitempty"` } +// MarshalJSON is the custom marshaler for ServerEndpointSyncSessionStatus. +func (sesss ServerEndpointSyncSessionStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerEndpointSyncStatus server Endpoint sync status type ServerEndpointSyncStatus struct { // DownloadHealth - READ-ONLY; Download Health Status. Possible values include: 'ServerEndpointSyncHealthStateHealthy', 'ServerEndpointSyncHealthStateError', 'ServerEndpointSyncHealthStateSyncBlockedForRestore', 'ServerEndpointSyncHealthStateSyncBlockedForChangeDetectionPostRestore', 'ServerEndpointSyncHealthStateNoActivity' @@ -2124,6 +2238,12 @@ type ServerEndpointSyncStatus struct { OfflineDataTransferStatus ServerEndpointOfflineDataTransferState `json:"offlineDataTransferStatus,omitempty"` } +// MarshalJSON is the custom marshaler for ServerEndpointSyncStatus. +func (sess ServerEndpointSyncStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerEndpointUpdateParameters parameters for updating an Server Endpoint. type ServerEndpointUpdateParameters struct { // ServerEndpointUpdateProperties - The properties of the server endpoint. @@ -2700,6 +2820,12 @@ type SyncGroupProperties struct { SyncGroupStatus *string `json:"syncGroupStatus,omitempty"` } +// MarshalJSON is the custom marshaler for SyncGroupProperties. +func (sgp SyncGroupProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource // which has 'tags' and a 'location' type TrackedResource struct { diff --git a/services/storsimple1200series/mgmt/2016-10-01/storsimple/CHANGELOG.md b/services/storsimple1200series/mgmt/2016-10-01/storsimple/CHANGELOG.md index 52911e4cc5e4..60f64cb0886a 100644 --- a/services/storsimple1200series/mgmt/2016-10-01/storsimple/CHANGELOG.md +++ b/services/storsimple1200series/mgmt/2016-10-01/storsimple/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. BaseModel.MarshalJSON() ([]byte, error) diff --git a/services/storsimple1200series/mgmt/2016-10-01/storsimple/_meta.json b/services/storsimple1200series/mgmt/2016-10-01/storsimple/_meta.json index 5a44d8a8b303..6ebda5f0e252 100644 --- a/services/storsimple1200series/mgmt/2016-10-01/storsimple/_meta.json +++ b/services/storsimple1200series/mgmt/2016-10-01/storsimple/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/storSimple1200Series/resource-manager/readme.md", "tag": "package-2016-10", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storSimple1200Series/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storSimple1200Series/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/storsimple1200series/mgmt/2016-10-01/storsimple/models.go b/services/storsimple1200series/mgmt/2016-10-01/storsimple/models.go index 79c6b3e63d09..e8b74ce50fc5 100644 --- a/services/storsimple1200series/mgmt/2016-10-01/storsimple/models.go +++ b/services/storsimple1200series/mgmt/2016-10-01/storsimple/models.go @@ -1424,6 +1424,12 @@ type BaseModel struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for BaseModel. +func (bm BaseModel) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ChapProperties chap properties type ChapProperties struct { // Password - The chap password. diff --git a/services/storsimple8000series/mgmt/2017-06-01/storsimple/_meta.json b/services/storsimple8000series/mgmt/2017-06-01/storsimple/_meta.json index 2ddb0c540c78..d15d694279ff 100644 --- a/services/storsimple8000series/mgmt/2017-06-01/storsimple/_meta.json +++ b/services/storsimple8000series/mgmt/2017-06-01/storsimple/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/storsimple8000series/resource-manager/readme.md", "tag": "package-2017-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storsimple8000series/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storsimple8000series/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/streamanalytics/mgmt/2016-03-01/streamanalytics/CHANGELOG.md b/services/streamanalytics/mgmt/2016-03-01/streamanalytics/CHANGELOG.md index 52911e4cc5e4..78283cafb67d 100644 --- a/services/streamanalytics/mgmt/2016-03-01/streamanalytics/CHANGELOG.md +++ b/services/streamanalytics/mgmt/2016-03-01/streamanalytics/CHANGELOG.md @@ -1,2 +1,19 @@ # Change History +## Additive Changes + +### New Funcs + +1. DiagnosticCondition.MarshalJSON() ([]byte, error) +1. Diagnostics.MarshalJSON() ([]byte, error) +1. ErrorResponse.MarshalJSON() ([]byte, error) +1. FunctionListResult.MarshalJSON() ([]byte, error) +1. InputListResult.MarshalJSON() ([]byte, error) +1. Operation.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. OutputListResult.MarshalJSON() ([]byte, error) +1. ResourceTestStatus.MarshalJSON() ([]byte, error) +1. StreamingJobListResult.MarshalJSON() ([]byte, error) +1. SubscriptionQuotaProperties.MarshalJSON() ([]byte, error) +1. SubscriptionQuotasListResult.MarshalJSON() ([]byte, error) diff --git a/services/streamanalytics/mgmt/2016-03-01/streamanalytics/_meta.json b/services/streamanalytics/mgmt/2016-03-01/streamanalytics/_meta.json index 57383f4d8e29..29d2c7578c6d 100644 --- a/services/streamanalytics/mgmt/2016-03-01/streamanalytics/_meta.json +++ b/services/streamanalytics/mgmt/2016-03-01/streamanalytics/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/streamanalytics/resource-manager/readme.md", "tag": "package-pure-2016-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-pure-2016-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/streamanalytics/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-pure-2016-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/streamanalytics/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/streamanalytics/mgmt/2016-03-01/streamanalytics/models.go b/services/streamanalytics/mgmt/2016-03-01/streamanalytics/models.go index 0c55bc045976..fc385424a951 100644 --- a/services/streamanalytics/mgmt/2016-03-01/streamanalytics/models.go +++ b/services/streamanalytics/mgmt/2016-03-01/streamanalytics/models.go @@ -1080,6 +1080,12 @@ type DiagnosticCondition struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for DiagnosticCondition. +func (dc DiagnosticCondition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Diagnostics describes conditions applicable to the Input, Output, or the job overall, that warrant // customer attention. type Diagnostics struct { @@ -1087,6 +1093,12 @@ type Diagnostics struct { Conditions *[]DiagnosticCondition `json:"conditions,omitempty"` } +// MarshalJSON is the custom marshaler for Diagnostics. +func (d Diagnostics) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DocumentDbOutputDataSource describes a DocumentDB output data source. type DocumentDbOutputDataSource struct { // DocumentDbOutputDataSourceProperties - The properties that are associated with a DocumentDB output. Required on PUT (CreateOrReplace) requests. @@ -1220,6 +1232,12 @@ type ErrorResponse struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorResponse. +func (er ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EventHubDataSourceProperties the common properties that are associated with Event Hub data sources. type EventHubDataSourceProperties struct { // EventHubName - The name of the Event Hub. Required on PUT (CreateOrReplace) requests. @@ -1626,6 +1644,12 @@ type FunctionListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for FunctionListResult. +func (flr FunctionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FunctionListResultIterator provides access to a complete listing of Function values. type FunctionListResultIterator struct { i int @@ -2070,6 +2094,12 @@ type InputListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for InputListResult. +func (ilr InputListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InputListResultIterator provides access to a complete listing of Input values. type InputListResultIterator struct { i int @@ -2768,6 +2798,12 @@ type Operation struct { Display *OperationDisplay `json:"display,omitempty"` } +// MarshalJSON is the custom marshaler for Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationDisplay contains the localized display information for this particular operation / action. type OperationDisplay struct { // Provider - READ-ONLY; The localized friendly form of the resource provider name. @@ -2780,6 +2816,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of the request to list Stream Analytics operations. It contains a list of // operations and a URL link to get the next set of results. type OperationListResult struct { @@ -2790,6 +2832,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -3180,6 +3228,12 @@ type OutputListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OutputListResult. +func (olr OutputListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OutputListResultIterator provides access to a complete listing of Output values. type OutputListResultIterator struct { i int @@ -3782,6 +3836,12 @@ type ResourceTestStatus struct { Error *ErrorResponse `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceTestStatus. +func (rts ResourceTestStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ScalarFunctionConfiguration describes the configuration of the scalar function. type ScalarFunctionConfiguration struct { // Inputs - A list of inputs describing the parameters of the function. @@ -4400,6 +4460,12 @@ type StreamingJobListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for StreamingJobListResult. +func (sjlr StreamingJobListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StreamingJobListResultIterator provides access to a complete listing of StreamingJob values. type StreamingJobListResultIterator struct { i int @@ -5088,6 +5154,12 @@ type SubscriptionQuotaProperties struct { CurrentCount *int32 `json:"currentCount,omitempty"` } +// MarshalJSON is the custom marshaler for SubscriptionQuotaProperties. +func (sq SubscriptionQuotaProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SubscriptionQuotasListResult result of the GetQuotas operation. It contains a list of quotas for the // subscription in a particular region. type SubscriptionQuotasListResult struct { @@ -5096,6 +5168,12 @@ type SubscriptionQuotasListResult struct { Value *[]SubscriptionQuota `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for SubscriptionQuotasListResult. +func (sqlr SubscriptionQuotasListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Transformation a transformation object, containing all information associated with the named // transformation. All transformations are contained under a streaming job. type Transformation struct { diff --git a/services/subscription/mgmt/2020-09-01/subscription/CHANGELOG.md b/services/subscription/mgmt/2020-09-01/subscription/CHANGELOG.md index 52911e4cc5e4..9f657dedbf6e 100644 --- a/services/subscription/mgmt/2020-09-01/subscription/CHANGELOG.md +++ b/services/subscription/mgmt/2020-09-01/subscription/CHANGELOG.md @@ -1,2 +1,13 @@ # Change History +## Additive Changes + +### New Funcs + +1. CanceledSubscriptionID.MarshalJSON() ([]byte, error) +1. EnabledSubscriptionID.MarshalJSON() ([]byte, error) +1. Location.MarshalJSON() ([]byte, error) +1. Policies.MarshalJSON() ([]byte, error) +1. PutAliasListResult.MarshalJSON() ([]byte, error) +1. RenamedSubscriptionID.MarshalJSON() ([]byte, error) +1. TenantIDDescription.MarshalJSON() ([]byte, error) diff --git a/services/subscription/mgmt/2020-09-01/subscription/_meta.json b/services/subscription/mgmt/2020-09-01/subscription/_meta.json index 7665f7b9b253..29b1f99958ba 100644 --- a/services/subscription/mgmt/2020-09-01/subscription/_meta.json +++ b/services/subscription/mgmt/2020-09-01/subscription/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/subscription/resource-manager/readme.md", "tag": "package-2020-09", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/subscription/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/subscription/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/subscription/mgmt/2020-09-01/subscription/models.go b/services/subscription/mgmt/2020-09-01/subscription/models.go index 96887bbc461e..369ea22031a0 100644 --- a/services/subscription/mgmt/2020-09-01/subscription/models.go +++ b/services/subscription/mgmt/2020-09-01/subscription/models.go @@ -68,6 +68,12 @@ type CanceledSubscriptionID struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for CanceledSubscriptionID. +func (csi CanceledSubscriptionID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EnabledSubscriptionID the ID of the subscriptions that is being enabled type EnabledSubscriptionID struct { autorest.Response `json:"-"` @@ -75,6 +81,12 @@ type EnabledSubscriptionID struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for EnabledSubscriptionID. +func (esi EnabledSubscriptionID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse describes the format of Error response. type ErrorResponse struct { // Code - Error code @@ -265,6 +277,12 @@ type Location struct { Longitude *string `json:"longitude,omitempty"` } +// MarshalJSON is the custom marshaler for Location. +func (l Location) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LocationListResult location list operation response. type LocationListResult struct { autorest.Response `json:"-"` @@ -345,6 +363,12 @@ type Policies struct { SpendingLimit SpendingLimit `json:"spendingLimit,omitempty"` } +// MarshalJSON is the custom marshaler for Policies. +func (p Policies) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PutAliasListResult the list of aliases. type PutAliasListResult struct { autorest.Response `json:"-"` @@ -354,6 +378,12 @@ type PutAliasListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PutAliasListResult. +func (palr PutAliasListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PutAliasRequest the parameters required to create a new subscription. type PutAliasRequest struct { // Properties - Put alias request properties. @@ -420,6 +450,12 @@ type RenamedSubscriptionID struct { Value *string `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for RenamedSubscriptionID. +func (rsi RenamedSubscriptionID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TenantIDDescription tenant Id information. type TenantIDDescription struct { // ID - READ-ONLY; The fully qualified ID of the tenant. For example, /tenants/00000000-0000-0000-0000-000000000000. @@ -428,6 +464,12 @@ type TenantIDDescription struct { TenantID *string `json:"tenantId,omitempty"` } +// MarshalJSON is the custom marshaler for TenantIDDescription. +func (tid TenantIDDescription) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TenantListResult tenant Ids information. type TenantListResult struct { autorest.Response `json:"-"` diff --git a/services/support/mgmt/2020-04-01/support/CHANGELOG.md b/services/support/mgmt/2020-04-01/support/CHANGELOG.md index 52911e4cc5e4..f47f3fe05f44 100644 --- a/services/support/mgmt/2020-04-01/support/CHANGELOG.md +++ b/services/support/mgmt/2020-04-01/support/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. CheckNameAvailabilityOutput.MarshalJSON() ([]byte, error) +1. Engineer.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. ServiceLevelAgreement.MarshalJSON() ([]byte, error) diff --git a/services/support/mgmt/2020-04-01/support/_meta.json b/services/support/mgmt/2020-04-01/support/_meta.json index d0d346d1b7a6..bf6f5e5b114e 100644 --- a/services/support/mgmt/2020-04-01/support/_meta.json +++ b/services/support/mgmt/2020-04-01/support/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/support/resource-manager/readme.md", "tag": "package-2020-04", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/support/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/support/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/support/mgmt/2020-04-01/support/models.go b/services/support/mgmt/2020-04-01/support/models.go index 9b1ac9e7618e..e49894846f95 100644 --- a/services/support/mgmt/2020-04-01/support/models.go +++ b/services/support/mgmt/2020-04-01/support/models.go @@ -39,6 +39,12 @@ type CheckNameAvailabilityOutput struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for CheckNameAvailabilityOutput. +func (cnao CheckNameAvailabilityOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CommunicationDetails object that represents a Communication resource. type CommunicationDetails struct { autorest.Response `json:"-"` @@ -373,6 +379,12 @@ type Engineer struct { EmailAddress *string `json:"emailAddress,omitempty"` } +// MarshalJSON is the custom marshaler for Engineer. +func (e Engineer) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExceptionResponse the API error. type ExceptionResponse struct { // Error - The API error details. @@ -408,6 +420,12 @@ type OperationDisplay struct { Resource *string `json:"resource,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationsListResult the list of operations supported by Microsoft Support resource provider. type OperationsListResult struct { autorest.Response `json:"-"` @@ -650,6 +668,12 @@ type ServiceLevelAgreement struct { SLAMinutes *int32 `json:"slaMinutes,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceLevelAgreement. +func (SLA ServiceLevelAgreement) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceProperties details about an Azure service available for support ticket creation. type ServiceProperties struct { // DisplayName - Localized name of the Azure service. diff --git a/services/synapse/mgmt/2020-12-01/synapse/CHANGELOG.md b/services/synapse/mgmt/2020-12-01/synapse/CHANGELOG.md index 52911e4cc5e4..77e331ea0217 100644 --- a/services/synapse/mgmt/2020-12-01/synapse/CHANGELOG.md +++ b/services/synapse/mgmt/2020-12-01/synapse/CHANGELOG.md @@ -1,2 +1,59 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. DataWarehouseUserActivitiesProperties.MarshalJSON() ([]byte, error) +1. EncryptionProtectorListResult.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorDetail.MarshalJSON() ([]byte, error) +1. ExtendedSQLPoolBlobAuditingPolicyListResult.MarshalJSON() ([]byte, error) +1. ExtendedServerBlobAuditingPolicyListResult.MarshalJSON() ([]byte, error) +1. IntegrationRuntimeNodeIPAddress.MarshalJSON() ([]byte, error) +1. LinkedIntegrationRuntime.MarshalJSON() ([]byte, error) +1. ListSQLPoolSecurityAlertPolicies.MarshalJSON() ([]byte, error) +1. ManagedIntegrationRuntimeError.MarshalJSON() ([]byte, error) +1. ManagedIntegrationRuntimeOperationResult.MarshalJSON() ([]byte, error) +1. ManagedIntegrationRuntimeStatusTypeProperties.MarshalJSON() ([]byte, error) +1. PrivateEndpoint.MarshalJSON() ([]byte, error) +1. PrivateEndpointConnectionList.MarshalJSON() ([]byte, error) +1. PrivateLinkResource.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceListResult.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. QueryInterval.MarshalJSON() ([]byte, error) +1. QueryMetric.MarshalJSON() ([]byte, error) +1. QueryStatistic.MarshalJSON() ([]byte, error) +1. RecoverableSQLPoolListResult.MarshalJSON() ([]byte, error) +1. RecoverableSQLPoolProperties.MarshalJSON() ([]byte, error) +1. ReplicationLinkProperties.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. RestorableDroppedSQLPoolProperties.MarshalJSON() ([]byte, error) +1. RestorePointListResult.MarshalJSON() ([]byte, error) +1. RestorePointProperties.MarshalJSON() ([]byte, error) +1. SQLPoolBlobAuditingPolicyListResult.MarshalJSON() ([]byte, error) +1. SQLPoolBlobAuditingPolicySQLPoolOperationListResult.MarshalJSON() ([]byte, error) +1. SQLPoolColumnListResult.MarshalJSON() ([]byte, error) +1. SQLPoolOperationProperties.MarshalJSON() ([]byte, error) +1. SQLPoolSchema.MarshalJSON() ([]byte, error) +1. SQLPoolSchemaListResult.MarshalJSON() ([]byte, error) +1. SQLPoolTable.MarshalJSON() ([]byte, error) +1. SQLPoolTableListResult.MarshalJSON() ([]byte, error) +1. SQLPoolUsage.MarshalJSON() ([]byte, error) +1. SQLPoolVulnerabilityAssessmentListResult.MarshalJSON() ([]byte, error) +1. SQLPoolVulnerabilityAssessmentScanExportProperties.MarshalJSON() ([]byte, error) +1. SensitivityLabelListResult.MarshalJSON() ([]byte, error) +1. ServerBlobAuditingPolicyListResult.MarshalJSON() ([]byte, error) +1. ServerSecurityAlertPolicyListResult.MarshalJSON() ([]byte, error) +1. ServerUsage.MarshalJSON() ([]byte, error) +1. ServerVulnerabilityAssessmentListResult.MarshalJSON() ([]byte, error) +1. SubResource.MarshalJSON() ([]byte, error) +1. TopQueries.MarshalJSON() ([]byte, error) +1. TransparentDataEncryptionListResult.MarshalJSON() ([]byte, error) +1. VulnerabilityAssessmentScanError.MarshalJSON() ([]byte, error) +1. VulnerabilityAssessmentScanRecordListResult.MarshalJSON() ([]byte, error) +1. VulnerabilityAssessmentScanRecordProperties.MarshalJSON() ([]byte, error) +1. WorkloadClassifierListResult.MarshalJSON() ([]byte, error) +1. WorkloadGroupListResult.MarshalJSON() ([]byte, error) diff --git a/services/synapse/mgmt/2020-12-01/synapse/_meta.json b/services/synapse/mgmt/2020-12-01/synapse/_meta.json index 9d8789a89cf3..7671825ef6b4 100644 --- a/services/synapse/mgmt/2020-12-01/synapse/_meta.json +++ b/services/synapse/mgmt/2020-12-01/synapse/_meta.json @@ -2,9 +2,9 @@ "commit": "138759b8a5987252fd66658078907e1d93969c85", "readme": "/_/azure-rest-api-specs/specification/synapse/resource-manager/readme.md", "tag": "package-2020-12-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-12-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/synapse/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-12-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/synapse/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/synapse/mgmt/2020-12-01/synapse/models.go b/services/synapse/mgmt/2020-12-01/synapse/models.go index 06379a794262..8184d645b166 100644 --- a/services/synapse/mgmt/2020-12-01/synapse/models.go +++ b/services/synapse/mgmt/2020-12-01/synapse/models.go @@ -170,6 +170,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BigDataPoolPatchInfo properties patch for a Big Data pool type BigDataPoolPatchInfo struct { // Tags - Updated tags for the Big Data pool @@ -1365,6 +1371,12 @@ type DataWarehouseUserActivitiesProperties struct { ActiveQueriesCount *int32 `json:"activeQueriesCount,omitempty"` } +// MarshalJSON is the custom marshaler for DataWarehouseUserActivitiesProperties. +func (dwuap DataWarehouseUserActivitiesProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DynamicExecutorAllocation dynamic Executor Allocation Properties type DynamicExecutorAllocation struct { // Enabled - Indicates whether Dynamic Executor Allocation is enabled or not. @@ -1492,6 +1504,12 @@ type EncryptionProtectorListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for EncryptionProtectorListResult. +func (eplr EncryptionProtectorListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EncryptionProtectorListResultIterator provides access to a complete listing of EncryptionProtector // values. type EncryptionProtectorListResultIterator struct { @@ -1772,6 +1790,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetail the error detail. type ErrorDetail struct { // Code - READ-ONLY; The error code. @@ -1786,6 +1810,12 @@ type ErrorDetail struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetail. +func (ed ErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.). type ErrorResponse struct { @@ -1875,6 +1905,12 @@ type ExtendedServerBlobAuditingPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ExtendedServerBlobAuditingPolicyListResult. +func (esbaplr ExtendedServerBlobAuditingPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExtendedServerBlobAuditingPolicyListResultIterator provides access to a complete listing of // ExtendedServerBlobAuditingPolicy values. type ExtendedServerBlobAuditingPolicyListResultIterator struct { @@ -2205,6 +2241,12 @@ type ExtendedSQLPoolBlobAuditingPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ExtendedSQLPoolBlobAuditingPolicyListResult. +func (espbaplr ExtendedSQLPoolBlobAuditingPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExtendedSQLPoolBlobAuditingPolicyListResultIterator provides access to a complete listing of // ExtendedSQLPoolBlobAuditingPolicy values. type ExtendedSQLPoolBlobAuditingPolicyListResultIterator struct { @@ -3241,6 +3283,12 @@ type IntegrationRuntimeNodeIPAddress struct { IPAddress *string `json:"ipAddress,omitempty"` } +// MarshalJSON is the custom marshaler for IntegrationRuntimeNodeIPAddress. +func (irnia IntegrationRuntimeNodeIPAddress) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IntegrationRuntimeNodeMonitoringData monitoring data for integration runtime node. type IntegrationRuntimeNodeMonitoringData struct { // AdditionalProperties - Unmatched properties from the message are deserialized this collection @@ -4972,6 +5020,12 @@ type LinkedIntegrationRuntime struct { CreateTime *date.Time `json:"createTime,omitempty"` } +// MarshalJSON is the custom marshaler for LinkedIntegrationRuntime. +func (lir LinkedIntegrationRuntime) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LinkedIntegrationRuntimeKeyAuthorization the key authorization type integration runtime. type LinkedIntegrationRuntimeKeyAuthorization struct { // Key - The key used for authorization. @@ -5154,6 +5208,12 @@ type ListSQLPoolSecurityAlertPolicies struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListSQLPoolSecurityAlertPolicies. +func (lspsap ListSQLPoolSecurityAlertPolicies) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListSQLPoolSecurityAlertPoliciesIterator provides access to a complete listing of // SQLPoolSecurityAlertPolicy values. type ListSQLPoolSecurityAlertPoliciesIterator struct { @@ -5729,6 +5789,12 @@ type ManagedIntegrationRuntimeError struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedIntegrationRuntimeError. +func (mire ManagedIntegrationRuntimeError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedIntegrationRuntimeNode properties of integration runtime node. type ManagedIntegrationRuntimeNode struct { // NodeID - READ-ONLY; The managed integration runtime node id. @@ -5764,6 +5830,12 @@ type ManagedIntegrationRuntimeOperationResult struct { ActivityID *string `json:"activityId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedIntegrationRuntimeOperationResult. +func (miror ManagedIntegrationRuntimeOperationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedIntegrationRuntimeStatus managed integration runtime status. type ManagedIntegrationRuntimeStatus struct { // ManagedIntegrationRuntimeStatusTypeProperties - Managed integration runtime status type properties. @@ -5889,6 +5961,12 @@ type ManagedIntegrationRuntimeStatusTypeProperties struct { LastOperation *ManagedIntegrationRuntimeOperationResult `json:"lastOperation,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedIntegrationRuntimeStatusTypeProperties. +func (mirstp ManagedIntegrationRuntimeStatusTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedIntegrationRuntimeTypeProperties managed integration runtime type properties. type ManagedIntegrationRuntimeTypeProperties struct { // ComputeProperties - The compute resource for managed integration runtime. @@ -6075,6 +6153,12 @@ type PrivateEndpoint struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpoint. +func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection a private endpoint connection type PrivateEndpointConnection struct { autorest.Response `json:"-"` @@ -6442,6 +6526,12 @@ type PrivateEndpointConnectionList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpointConnectionList. +func (pecl PrivateEndpointConnectionList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnectionListIterator provides access to a complete listing of PrivateEndpointConnection // values. type PrivateEndpointConnectionListIterator struct { @@ -7043,6 +7133,12 @@ type PrivateLinkResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResource. +func (plr PrivateLinkResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkResourceListResult a list of private link resources type PrivateLinkResourceListResult struct { autorest.Response `json:"-"` @@ -7052,6 +7148,12 @@ type PrivateLinkResourceListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceListResult. +func (plrlr PrivateLinkResourceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkResourceListResultIterator provides access to a complete listing of PrivateLinkResource // values. type PrivateLinkResourceListResultIterator struct { @@ -7213,6 +7315,12 @@ type PrivateLinkResourceProperties struct { RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. +func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkServiceConnectionState connection state details of the private endpoint type PrivateLinkServiceConnectionState struct { // Status - The private link service connection status. @@ -7246,6 +7354,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PurviewConfiguration purview Configuration type PurviewConfiguration struct { // PurviewResourceID - Purview Resource ID @@ -7262,6 +7376,12 @@ type QueryInterval struct { Metrics *[]QueryMetric `json:"metrics,omitempty"` } +// MarshalJSON is the custom marshaler for QueryInterval. +func (qi QueryInterval) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QueryMetric a database query. type QueryMetric struct { // Name - READ-ONLY; The name of the metric @@ -7274,6 +7394,12 @@ type QueryMetric struct { Value *float64 `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for QueryMetric. +func (qm QueryMetric) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QueryStatistic a database query. type QueryStatistic struct { // QueryID - READ-ONLY; The id of the query @@ -7282,6 +7408,12 @@ type QueryStatistic struct { Intervals *[]QueryInterval `json:"intervals,omitempty"` } +// MarshalJSON is the custom marshaler for QueryStatistic. +func (qs QueryStatistic) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RecommendedSensitivityLabelUpdate a recommended sensitivity label update operation. type RecommendedSensitivityLabelUpdate struct { // RecommendedSensitivityLabelUpdateProperties - Resource properties. @@ -7454,6 +7586,12 @@ type RecoverableSQLPoolListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RecoverableSQLPoolListResult. +func (rsplr RecoverableSQLPoolListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RecoverableSQLPoolListResultIterator provides access to a complete listing of RecoverableSQLPool values. type RecoverableSQLPoolListResultIterator struct { i int @@ -7616,6 +7754,12 @@ type RecoverableSQLPoolProperties struct { LastAvailableBackupDate *date.Time `json:"lastAvailableBackupDate,omitempty"` } +// MarshalJSON is the custom marshaler for RecoverableSQLPoolProperties. +func (rspp RecoverableSQLPoolProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReplaceAllFirewallRulesOperationResponse an existing operation for replacing the firewall rules type ReplaceAllFirewallRulesOperationResponse struct { autorest.Response `json:"-"` @@ -7914,6 +8058,12 @@ type ReplicationLinkProperties struct { ReplicationState ReplicationState `json:"replicationState,omitempty"` } +// MarshalJSON is the custom marshaler for ReplicationLinkProperties. +func (rlp ReplicationLinkProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -7924,6 +8074,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceMoveDefinition contains the information necessary to perform a resource move (rename). type ResourceMoveDefinition struct { // ID - The target ID for the resource @@ -8041,6 +8197,12 @@ type RestorableDroppedSQLPoolProperties struct { EarliestRestoreDate *date.Time `json:"earliestRestoreDate,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableDroppedSQLPoolProperties. +func (rdspp RestorableDroppedSQLPoolProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorePoint database restore points. type RestorePoint struct { autorest.Response `json:"-"` @@ -8134,6 +8296,12 @@ type RestorePointListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RestorePointListResult. +func (rplr RestorePointListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorePointListResultIterator provides access to a complete listing of RestorePoint values. type RestorePointListResultIterator struct { i int @@ -8296,6 +8464,12 @@ type RestorePointProperties struct { RestorePointLabel *string `json:"restorePointLabel,omitempty"` } +// MarshalJSON is the custom marshaler for RestorePointProperties. +func (rpp RestorePointProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicSecretBase the base definition of a secret type. type BasicSecretBase interface { AsSecureString() (*SecureString, bool) @@ -8891,6 +9065,12 @@ type SensitivityLabelListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SensitivityLabelListResult. +func (sllr SensitivityLabelListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SensitivityLabelListResultIterator provides access to a complete listing of SensitivityLabel values. type SensitivityLabelListResultIterator struct { i int @@ -9257,6 +9437,12 @@ type ServerBlobAuditingPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ServerBlobAuditingPolicyListResult. +func (sbaplr ServerBlobAuditingPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerBlobAuditingPolicyListResultIterator provides access to a complete listing of // ServerBlobAuditingPolicy values. type ServerBlobAuditingPolicyListResultIterator struct { @@ -9585,6 +9771,12 @@ type ServerSecurityAlertPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ServerSecurityAlertPolicyListResult. +func (ssaplr ServerSecurityAlertPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerSecurityAlertPolicyListResultIterator provides access to a complete listing of // ServerSecurityAlertPolicy values. type ServerSecurityAlertPolicyListResultIterator struct { @@ -9801,6 +9993,12 @@ type ServerUsage struct { NextResetTime *date.Time `json:"nextResetTime,omitempty"` } +// MarshalJSON is the custom marshaler for ServerUsage. +func (su ServerUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerUsageListResult represents the response to a list server metrics request. type ServerUsageListResult struct { autorest.Response `json:"-"` @@ -10051,6 +10249,12 @@ type ServerVulnerabilityAssessmentListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ServerVulnerabilityAssessmentListResult. +func (svalr ServerVulnerabilityAssessmentListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerVulnerabilityAssessmentListResultIterator provides access to a complete listing of // ServerVulnerabilityAssessment values. type ServerVulnerabilityAssessmentListResultIterator struct { @@ -10438,6 +10642,12 @@ type SQLPoolBlobAuditingPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SQLPoolBlobAuditingPolicyListResult. +func (spbaplr SQLPoolBlobAuditingPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLPoolBlobAuditingPolicyListResultIterator provides access to a complete listing of // SQLPoolBlobAuditingPolicy values. type SQLPoolBlobAuditingPolicyListResultIterator struct { @@ -10684,6 +10894,12 @@ type SQLPoolBlobAuditingPolicySQLPoolOperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SQLPoolBlobAuditingPolicySQLPoolOperationListResult. +func (spbapspolr SQLPoolBlobAuditingPolicySQLPoolOperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLPoolBlobAuditingPolicySQLPoolOperationListResultIterator provides access to a complete listing of // SQLPoolOperation values. type SQLPoolBlobAuditingPolicySQLPoolOperationListResultIterator struct { @@ -10917,6 +11133,12 @@ type SQLPoolColumnListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SQLPoolColumnListResult. +func (spclr SQLPoolColumnListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLPoolColumnListResultIterator provides access to a complete listing of SQLPoolColumn values. type SQLPoolColumnListResultIterator struct { i int @@ -11460,6 +11682,12 @@ type SQLPoolOperationProperties struct { IsCancellable *bool `json:"isCancellable,omitempty"` } +// MarshalJSON is the custom marshaler for SQLPoolOperationProperties. +func (spop SQLPoolOperationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLPoolPatchInfo a SQL Analytics pool patch info type SQLPoolPatchInfo struct { // Tags - Resource tags. @@ -11619,6 +11847,12 @@ type SQLPoolSchema struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for SQLPoolSchema. +func (sps SQLPoolSchema) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLPoolSchemaListResult a list of Sql pool schemas. type SQLPoolSchemaListResult struct { autorest.Response `json:"-"` @@ -11628,6 +11862,12 @@ type SQLPoolSchemaListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SQLPoolSchemaListResult. +func (spslr SQLPoolSchemaListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLPoolSchemaListResultIterator provides access to a complete listing of SQLPoolSchema values. type SQLPoolSchemaListResultIterator struct { i int @@ -12034,6 +12274,12 @@ type SQLPoolTable struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for SQLPoolTable. +func (spt SQLPoolTable) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLPoolTableListResult a list of Sql pool tables. type SQLPoolTableListResult struct { autorest.Response `json:"-"` @@ -12043,6 +12289,12 @@ type SQLPoolTableListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SQLPoolTableListResult. +func (sptlr SQLPoolTableListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLPoolTableListResultIterator provides access to a complete listing of SQLPoolTable values. type SQLPoolTableListResultIterator struct { i int @@ -12211,6 +12463,12 @@ type SQLPoolUsage struct { NextResetTime *date.Time `json:"nextResetTime,omitempty"` } +// MarshalJSON is the custom marshaler for SQLPoolUsage. +func (spu SQLPoolUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLPoolUsageListResult the response to a list Sql pool usages request. type SQLPoolUsageListResult struct { autorest.Response `json:"-"` @@ -12461,6 +12719,12 @@ type SQLPoolVulnerabilityAssessmentListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SQLPoolVulnerabilityAssessmentListResult. +func (spvalr SQLPoolVulnerabilityAssessmentListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLPoolVulnerabilityAssessmentListResultIterator provides access to a complete listing of // SQLPoolVulnerabilityAssessment values. type SQLPoolVulnerabilityAssessmentListResultIterator struct { @@ -12717,6 +12981,12 @@ type SQLPoolVulnerabilityAssessmentScanExportProperties struct { ExportedReportLocation *string `json:"exportedReportLocation,omitempty"` } +// MarshalJSON is the custom marshaler for SQLPoolVulnerabilityAssessmentScanExportProperties. +func (spvasep SQLPoolVulnerabilityAssessmentScanExportProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLPoolVulnerabilityAssessmentScansExport a Sql pool Vulnerability Assessment scan export resource. type SQLPoolVulnerabilityAssessmentScansExport struct { autorest.Response `json:"-"` @@ -13524,6 +13794,12 @@ type SubResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for SubResource. +func (sr SubResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TopQueries a database query. type TopQueries struct { // AggregationFunction - READ-ONLY; The function that is used to aggregate each query's metrics. Possible values include: 'Min', 'Max', 'Avg', 'Sum' @@ -13544,6 +13820,12 @@ type TopQueries struct { Queries *[]QueryStatistic `json:"queries,omitempty"` } +// MarshalJSON is the custom marshaler for TopQueries. +func (tq TopQueries) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TopQueriesListResult represents the response to a get top queries request. type TopQueriesListResult struct { // Value - The list of top queries. @@ -13670,6 +13952,12 @@ type TransparentDataEncryptionListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for TransparentDataEncryptionListResult. +func (tdelr TransparentDataEncryptionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TransparentDataEncryptionListResultIterator provides access to a complete listing of // TransparentDataEncryption values. type TransparentDataEncryptionListResultIterator struct { @@ -13866,6 +14154,12 @@ type VulnerabilityAssessmentScanError struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for VulnerabilityAssessmentScanError. +func (vase VulnerabilityAssessmentScanError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VulnerabilityAssessmentScanRecord a vulnerability assessment scan record. type VulnerabilityAssessmentScanRecord struct { autorest.Response `json:"-"` @@ -13948,6 +14242,12 @@ type VulnerabilityAssessmentScanRecordListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for VulnerabilityAssessmentScanRecordListResult. +func (vasrlr VulnerabilityAssessmentScanRecordListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VulnerabilityAssessmentScanRecordListResultIterator provides access to a complete listing of // VulnerabilityAssessmentScanRecord values. type VulnerabilityAssessmentScanRecordListResultIterator struct { @@ -14120,6 +14420,12 @@ type VulnerabilityAssessmentScanRecordProperties struct { NumberOfFailedSecurityChecks *int32 `json:"numberOfFailedSecurityChecks,omitempty"` } +// MarshalJSON is the custom marshaler for VulnerabilityAssessmentScanRecordProperties. +func (vasrp VulnerabilityAssessmentScanRecordProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WorkloadClassifier workload classifier operations for a data warehouse type WorkloadClassifier struct { autorest.Response `json:"-"` @@ -14202,6 +14508,12 @@ type WorkloadClassifierListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for WorkloadClassifierListResult. +func (wclr WorkloadClassifierListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WorkloadClassifierListResultIterator provides access to a complete listing of WorkloadClassifier values. type WorkloadClassifierListResultIterator struct { i int @@ -14451,6 +14763,12 @@ type WorkloadGroupListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for WorkloadGroupListResult. +func (wglr WorkloadGroupListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WorkloadGroupListResultIterator provides access to a complete listing of WorkloadGroup values. type WorkloadGroupListResultIterator struct { i int diff --git a/services/synapse/mgmt/2021-03-01/synapse/CHANGELOG.md b/services/synapse/mgmt/2021-03-01/synapse/CHANGELOG.md index 52911e4cc5e4..77e331ea0217 100644 --- a/services/synapse/mgmt/2021-03-01/synapse/CHANGELOG.md +++ b/services/synapse/mgmt/2021-03-01/synapse/CHANGELOG.md @@ -1,2 +1,59 @@ # Change History +## Additive Changes + +### New Funcs + +1. AzureEntityResource.MarshalJSON() ([]byte, error) +1. DataWarehouseUserActivitiesProperties.MarshalJSON() ([]byte, error) +1. EncryptionProtectorListResult.MarshalJSON() ([]byte, error) +1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error) +1. ErrorDetail.MarshalJSON() ([]byte, error) +1. ExtendedSQLPoolBlobAuditingPolicyListResult.MarshalJSON() ([]byte, error) +1. ExtendedServerBlobAuditingPolicyListResult.MarshalJSON() ([]byte, error) +1. IntegrationRuntimeNodeIPAddress.MarshalJSON() ([]byte, error) +1. LinkedIntegrationRuntime.MarshalJSON() ([]byte, error) +1. ListSQLPoolSecurityAlertPolicies.MarshalJSON() ([]byte, error) +1. ManagedIntegrationRuntimeError.MarshalJSON() ([]byte, error) +1. ManagedIntegrationRuntimeOperationResult.MarshalJSON() ([]byte, error) +1. ManagedIntegrationRuntimeStatusTypeProperties.MarshalJSON() ([]byte, error) +1. PrivateEndpoint.MarshalJSON() ([]byte, error) +1. PrivateEndpointConnectionList.MarshalJSON() ([]byte, error) +1. PrivateLinkResource.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceListResult.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceProperties.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. QueryInterval.MarshalJSON() ([]byte, error) +1. QueryMetric.MarshalJSON() ([]byte, error) +1. QueryStatistic.MarshalJSON() ([]byte, error) +1. RecoverableSQLPoolListResult.MarshalJSON() ([]byte, error) +1. RecoverableSQLPoolProperties.MarshalJSON() ([]byte, error) +1. ReplicationLinkProperties.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) +1. RestorableDroppedSQLPoolProperties.MarshalJSON() ([]byte, error) +1. RestorePointListResult.MarshalJSON() ([]byte, error) +1. RestorePointProperties.MarshalJSON() ([]byte, error) +1. SQLPoolBlobAuditingPolicyListResult.MarshalJSON() ([]byte, error) +1. SQLPoolBlobAuditingPolicySQLPoolOperationListResult.MarshalJSON() ([]byte, error) +1. SQLPoolColumnListResult.MarshalJSON() ([]byte, error) +1. SQLPoolOperationProperties.MarshalJSON() ([]byte, error) +1. SQLPoolSchema.MarshalJSON() ([]byte, error) +1. SQLPoolSchemaListResult.MarshalJSON() ([]byte, error) +1. SQLPoolTable.MarshalJSON() ([]byte, error) +1. SQLPoolTableListResult.MarshalJSON() ([]byte, error) +1. SQLPoolUsage.MarshalJSON() ([]byte, error) +1. SQLPoolVulnerabilityAssessmentListResult.MarshalJSON() ([]byte, error) +1. SQLPoolVulnerabilityAssessmentScanExportProperties.MarshalJSON() ([]byte, error) +1. SensitivityLabelListResult.MarshalJSON() ([]byte, error) +1. ServerBlobAuditingPolicyListResult.MarshalJSON() ([]byte, error) +1. ServerSecurityAlertPolicyListResult.MarshalJSON() ([]byte, error) +1. ServerUsage.MarshalJSON() ([]byte, error) +1. ServerVulnerabilityAssessmentListResult.MarshalJSON() ([]byte, error) +1. SubResource.MarshalJSON() ([]byte, error) +1. TopQueries.MarshalJSON() ([]byte, error) +1. TransparentDataEncryptionListResult.MarshalJSON() ([]byte, error) +1. VulnerabilityAssessmentScanError.MarshalJSON() ([]byte, error) +1. VulnerabilityAssessmentScanRecordListResult.MarshalJSON() ([]byte, error) +1. VulnerabilityAssessmentScanRecordProperties.MarshalJSON() ([]byte, error) +1. WorkloadClassifierListResult.MarshalJSON() ([]byte, error) +1. WorkloadGroupListResult.MarshalJSON() ([]byte, error) diff --git a/services/synapse/mgmt/2021-03-01/synapse/_meta.json b/services/synapse/mgmt/2021-03-01/synapse/_meta.json index f8138ea09d15..bca25b53157a 100644 --- a/services/synapse/mgmt/2021-03-01/synapse/_meta.json +++ b/services/synapse/mgmt/2021-03-01/synapse/_meta.json @@ -2,9 +2,9 @@ "commit": "e0f8b9ab0f5fe5e71b7429ebfea8a33c19ec9d8d", "readme": "/_/azure-rest-api-specs/specification/synapse/resource-manager/readme.md", "tag": "package-2021-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2021-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/synapse/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2021-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/synapse/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/synapse/mgmt/2021-03-01/synapse/models.go b/services/synapse/mgmt/2021-03-01/synapse/models.go index 02948cff5bdf..4fdff779cd31 100644 --- a/services/synapse/mgmt/2021-03-01/synapse/models.go +++ b/services/synapse/mgmt/2021-03-01/synapse/models.go @@ -170,6 +170,12 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BigDataPoolPatchInfo properties patch for a Big Data pool type BigDataPoolPatchInfo struct { // Tags - Updated tags for the Big Data pool @@ -1365,6 +1371,12 @@ type DataWarehouseUserActivitiesProperties struct { ActiveQueriesCount *int32 `json:"activeQueriesCount,omitempty"` } +// MarshalJSON is the custom marshaler for DataWarehouseUserActivitiesProperties. +func (dwuap DataWarehouseUserActivitiesProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DynamicExecutorAllocation dynamic Executor Allocation Properties type DynamicExecutorAllocation struct { // Enabled - Indicates whether Dynamic Executor Allocation is enabled or not. @@ -1492,6 +1504,12 @@ type EncryptionProtectorListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for EncryptionProtectorListResult. +func (eplr EncryptionProtectorListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // EncryptionProtectorListResultIterator provides access to a complete listing of EncryptionProtector // values. type EncryptionProtectorListResultIterator struct { @@ -1772,6 +1790,12 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorAdditionalInfo. +func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorDetail the error detail. type ErrorDetail struct { // Code - READ-ONLY; The error code. @@ -1786,6 +1810,12 @@ type ErrorDetail struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` } +// MarshalJSON is the custom marshaler for ErrorDetail. +func (ed ErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ErrorResponse common error response for all Azure Resource Manager APIs to return error details for // failed operations. (This also follows the OData error response format.). type ErrorResponse struct { @@ -1875,6 +1905,12 @@ type ExtendedServerBlobAuditingPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ExtendedServerBlobAuditingPolicyListResult. +func (esbaplr ExtendedServerBlobAuditingPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExtendedServerBlobAuditingPolicyListResultIterator provides access to a complete listing of // ExtendedServerBlobAuditingPolicy values. type ExtendedServerBlobAuditingPolicyListResultIterator struct { @@ -2205,6 +2241,12 @@ type ExtendedSQLPoolBlobAuditingPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ExtendedSQLPoolBlobAuditingPolicyListResult. +func (espbaplr ExtendedSQLPoolBlobAuditingPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ExtendedSQLPoolBlobAuditingPolicyListResultIterator provides access to a complete listing of // ExtendedSQLPoolBlobAuditingPolicy values. type ExtendedSQLPoolBlobAuditingPolicyListResultIterator struct { @@ -3241,6 +3283,12 @@ type IntegrationRuntimeNodeIPAddress struct { IPAddress *string `json:"ipAddress,omitempty"` } +// MarshalJSON is the custom marshaler for IntegrationRuntimeNodeIPAddress. +func (irnia IntegrationRuntimeNodeIPAddress) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // IntegrationRuntimeNodeMonitoringData monitoring data for integration runtime node. type IntegrationRuntimeNodeMonitoringData struct { // AdditionalProperties - Unmatched properties from the message are deserialized this collection @@ -5215,6 +5263,12 @@ type LinkedIntegrationRuntime struct { CreateTime *date.Time `json:"createTime,omitempty"` } +// MarshalJSON is the custom marshaler for LinkedIntegrationRuntime. +func (lir LinkedIntegrationRuntime) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LinkedIntegrationRuntimeKeyAuthorization the key authorization type integration runtime. type LinkedIntegrationRuntimeKeyAuthorization struct { // Key - The key used for authorization. @@ -5397,6 +5451,12 @@ type ListSQLPoolSecurityAlertPolicies struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ListSQLPoolSecurityAlertPolicies. +func (lspsap ListSQLPoolSecurityAlertPolicies) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListSQLPoolSecurityAlertPoliciesIterator provides access to a complete listing of // SQLPoolSecurityAlertPolicy values. type ListSQLPoolSecurityAlertPoliciesIterator struct { @@ -5972,6 +6032,12 @@ type ManagedIntegrationRuntimeError struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedIntegrationRuntimeError. +func (mire ManagedIntegrationRuntimeError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedIntegrationRuntimeNode properties of integration runtime node. type ManagedIntegrationRuntimeNode struct { // NodeID - READ-ONLY; The managed integration runtime node id. @@ -6007,6 +6073,12 @@ type ManagedIntegrationRuntimeOperationResult struct { ActivityID *string `json:"activityId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedIntegrationRuntimeOperationResult. +func (miror ManagedIntegrationRuntimeOperationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedIntegrationRuntimeStatus managed integration runtime status. type ManagedIntegrationRuntimeStatus struct { // ManagedIntegrationRuntimeStatusTypeProperties - Managed integration runtime status type properties. @@ -6132,6 +6204,12 @@ type ManagedIntegrationRuntimeStatusTypeProperties struct { LastOperation *ManagedIntegrationRuntimeOperationResult `json:"lastOperation,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedIntegrationRuntimeStatusTypeProperties. +func (mirstp ManagedIntegrationRuntimeStatusTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ManagedIntegrationRuntimeTypeProperties managed integration runtime type properties. type ManagedIntegrationRuntimeTypeProperties struct { // ComputeProperties - The compute resource for managed integration runtime. @@ -6318,6 +6396,12 @@ type PrivateEndpoint struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpoint. +func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection a private endpoint connection type PrivateEndpointConnection struct { autorest.Response `json:"-"` @@ -6685,6 +6769,12 @@ type PrivateEndpointConnectionList struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpointConnectionList. +func (pecl PrivateEndpointConnectionList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnectionListIterator provides access to a complete listing of PrivateEndpointConnection // values. type PrivateEndpointConnectionListIterator struct { @@ -7286,6 +7376,12 @@ type PrivateLinkResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResource. +func (plr PrivateLinkResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkResourceListResult a list of private link resources type PrivateLinkResourceListResult struct { autorest.Response `json:"-"` @@ -7295,6 +7391,12 @@ type PrivateLinkResourceListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceListResult. +func (plrlr PrivateLinkResourceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkResourceListResultIterator provides access to a complete listing of PrivateLinkResource // values. type PrivateLinkResourceListResultIterator struct { @@ -7456,6 +7558,12 @@ type PrivateLinkResourceProperties struct { RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. +func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkServiceConnectionState connection state details of the private endpoint type PrivateLinkServiceConnectionState struct { // Status - The private link service connection status. @@ -7489,6 +7597,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PurviewConfiguration purview Configuration type PurviewConfiguration struct { // PurviewResourceID - Purview Resource ID @@ -7505,6 +7619,12 @@ type QueryInterval struct { Metrics *[]QueryMetric `json:"metrics,omitempty"` } +// MarshalJSON is the custom marshaler for QueryInterval. +func (qi QueryInterval) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QueryMetric a database query. type QueryMetric struct { // Name - READ-ONLY; The name of the metric @@ -7517,6 +7637,12 @@ type QueryMetric struct { Value *float64 `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for QueryMetric. +func (qm QueryMetric) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // QueryStatistic a database query. type QueryStatistic struct { // QueryID - READ-ONLY; The id of the query @@ -7525,6 +7651,12 @@ type QueryStatistic struct { Intervals *[]QueryInterval `json:"intervals,omitempty"` } +// MarshalJSON is the custom marshaler for QueryStatistic. +func (qs QueryStatistic) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RecommendedSensitivityLabelUpdate a recommended sensitivity label update operation. type RecommendedSensitivityLabelUpdate struct { // RecommendedSensitivityLabelUpdateProperties - Resource properties. @@ -7697,6 +7829,12 @@ type RecoverableSQLPoolListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RecoverableSQLPoolListResult. +func (rsplr RecoverableSQLPoolListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RecoverableSQLPoolListResultIterator provides access to a complete listing of RecoverableSQLPool values. type RecoverableSQLPoolListResultIterator struct { i int @@ -7859,6 +7997,12 @@ type RecoverableSQLPoolProperties struct { LastAvailableBackupDate *date.Time `json:"lastAvailableBackupDate,omitempty"` } +// MarshalJSON is the custom marshaler for RecoverableSQLPoolProperties. +func (rspp RecoverableSQLPoolProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ReplaceAllFirewallRulesOperationResponse an existing operation for replacing the firewall rules type ReplaceAllFirewallRulesOperationResponse struct { autorest.Response `json:"-"` @@ -8157,6 +8301,12 @@ type ReplicationLinkProperties struct { ReplicationState ReplicationState `json:"replicationState,omitempty"` } +// MarshalJSON is the custom marshaler for ReplicationLinkProperties. +func (rlp ReplicationLinkProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -8167,6 +8317,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceMoveDefinition contains the information necessary to perform a resource move (rename). type ResourceMoveDefinition struct { // ID - The target ID for the resource @@ -8284,6 +8440,12 @@ type RestorableDroppedSQLPoolProperties struct { EarliestRestoreDate *date.Time `json:"earliestRestoreDate,omitempty"` } +// MarshalJSON is the custom marshaler for RestorableDroppedSQLPoolProperties. +func (rdspp RestorableDroppedSQLPoolProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorePoint database restore points. type RestorePoint struct { autorest.Response `json:"-"` @@ -8377,6 +8539,12 @@ type RestorePointListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RestorePointListResult. +func (rplr RestorePointListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RestorePointListResultIterator provides access to a complete listing of RestorePoint values. type RestorePointListResultIterator struct { i int @@ -8539,6 +8707,12 @@ type RestorePointProperties struct { RestorePointLabel *string `json:"restorePointLabel,omitempty"` } +// MarshalJSON is the custom marshaler for RestorePointProperties. +func (rpp RestorePointProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicSecretBase the base definition of a secret type. type BasicSecretBase interface { AsSecureString() (*SecureString, bool) @@ -9134,6 +9308,12 @@ type SensitivityLabelListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SensitivityLabelListResult. +func (sllr SensitivityLabelListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SensitivityLabelListResultIterator provides access to a complete listing of SensitivityLabel values. type SensitivityLabelListResultIterator struct { i int @@ -9500,6 +9680,12 @@ type ServerBlobAuditingPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ServerBlobAuditingPolicyListResult. +func (sbaplr ServerBlobAuditingPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerBlobAuditingPolicyListResultIterator provides access to a complete listing of // ServerBlobAuditingPolicy values. type ServerBlobAuditingPolicyListResultIterator struct { @@ -9828,6 +10014,12 @@ type ServerSecurityAlertPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ServerSecurityAlertPolicyListResult. +func (ssaplr ServerSecurityAlertPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerSecurityAlertPolicyListResultIterator provides access to a complete listing of // ServerSecurityAlertPolicy values. type ServerSecurityAlertPolicyListResultIterator struct { @@ -10044,6 +10236,12 @@ type ServerUsage struct { NextResetTime *date.Time `json:"nextResetTime,omitempty"` } +// MarshalJSON is the custom marshaler for ServerUsage. +func (su ServerUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerUsageListResult represents the response to a list server metrics request. type ServerUsageListResult struct { autorest.Response `json:"-"` @@ -10294,6 +10492,12 @@ type ServerVulnerabilityAssessmentListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ServerVulnerabilityAssessmentListResult. +func (svalr ServerVulnerabilityAssessmentListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServerVulnerabilityAssessmentListResultIterator provides access to a complete listing of // ServerVulnerabilityAssessment values. type ServerVulnerabilityAssessmentListResultIterator struct { @@ -10681,6 +10885,12 @@ type SQLPoolBlobAuditingPolicyListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SQLPoolBlobAuditingPolicyListResult. +func (spbaplr SQLPoolBlobAuditingPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLPoolBlobAuditingPolicyListResultIterator provides access to a complete listing of // SQLPoolBlobAuditingPolicy values. type SQLPoolBlobAuditingPolicyListResultIterator struct { @@ -10927,6 +11137,12 @@ type SQLPoolBlobAuditingPolicySQLPoolOperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SQLPoolBlobAuditingPolicySQLPoolOperationListResult. +func (spbapspolr SQLPoolBlobAuditingPolicySQLPoolOperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLPoolBlobAuditingPolicySQLPoolOperationListResultIterator provides access to a complete listing of // SQLPoolOperation values. type SQLPoolBlobAuditingPolicySQLPoolOperationListResultIterator struct { @@ -11160,6 +11376,12 @@ type SQLPoolColumnListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SQLPoolColumnListResult. +func (spclr SQLPoolColumnListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLPoolColumnListResultIterator provides access to a complete listing of SQLPoolColumn values. type SQLPoolColumnListResultIterator struct { i int @@ -11703,6 +11925,12 @@ type SQLPoolOperationProperties struct { IsCancellable *bool `json:"isCancellable,omitempty"` } +// MarshalJSON is the custom marshaler for SQLPoolOperationProperties. +func (spop SQLPoolOperationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLPoolPatchInfo a SQL Analytics pool patch info type SQLPoolPatchInfo struct { // Tags - Resource tags. @@ -11862,6 +12090,12 @@ type SQLPoolSchema struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for SQLPoolSchema. +func (sps SQLPoolSchema) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLPoolSchemaListResult a list of Sql pool schemas. type SQLPoolSchemaListResult struct { autorest.Response `json:"-"` @@ -11871,6 +12105,12 @@ type SQLPoolSchemaListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SQLPoolSchemaListResult. +func (spslr SQLPoolSchemaListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLPoolSchemaListResultIterator provides access to a complete listing of SQLPoolSchema values. type SQLPoolSchemaListResultIterator struct { i int @@ -12277,6 +12517,12 @@ type SQLPoolTable struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for SQLPoolTable. +func (spt SQLPoolTable) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLPoolTableListResult a list of Sql pool tables. type SQLPoolTableListResult struct { autorest.Response `json:"-"` @@ -12286,6 +12532,12 @@ type SQLPoolTableListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SQLPoolTableListResult. +func (sptlr SQLPoolTableListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLPoolTableListResultIterator provides access to a complete listing of SQLPoolTable values. type SQLPoolTableListResultIterator struct { i int @@ -12454,6 +12706,12 @@ type SQLPoolUsage struct { NextResetTime *date.Time `json:"nextResetTime,omitempty"` } +// MarshalJSON is the custom marshaler for SQLPoolUsage. +func (spu SQLPoolUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLPoolUsageListResult the response to a list Sql pool usages request. type SQLPoolUsageListResult struct { autorest.Response `json:"-"` @@ -12704,6 +12962,12 @@ type SQLPoolVulnerabilityAssessmentListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SQLPoolVulnerabilityAssessmentListResult. +func (spvalr SQLPoolVulnerabilityAssessmentListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLPoolVulnerabilityAssessmentListResultIterator provides access to a complete listing of // SQLPoolVulnerabilityAssessment values. type SQLPoolVulnerabilityAssessmentListResultIterator struct { @@ -12960,6 +13224,12 @@ type SQLPoolVulnerabilityAssessmentScanExportProperties struct { ExportedReportLocation *string `json:"exportedReportLocation,omitempty"` } +// MarshalJSON is the custom marshaler for SQLPoolVulnerabilityAssessmentScanExportProperties. +func (spvasep SQLPoolVulnerabilityAssessmentScanExportProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SQLPoolVulnerabilityAssessmentScansExport a Sql pool Vulnerability Assessment scan export resource. type SQLPoolVulnerabilityAssessmentScansExport struct { autorest.Response `json:"-"` @@ -13767,6 +14037,12 @@ type SubResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for SubResource. +func (sr SubResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TopQueries a database query. type TopQueries struct { // AggregationFunction - READ-ONLY; The function that is used to aggregate each query's metrics. Possible values include: 'Min', 'Max', 'Avg', 'Sum' @@ -13787,6 +14063,12 @@ type TopQueries struct { Queries *[]QueryStatistic `json:"queries,omitempty"` } +// MarshalJSON is the custom marshaler for TopQueries. +func (tq TopQueries) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TopQueriesListResult represents the response to a get top queries request. type TopQueriesListResult struct { // Value - The list of top queries. @@ -13913,6 +14195,12 @@ type TransparentDataEncryptionListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for TransparentDataEncryptionListResult. +func (tdelr TransparentDataEncryptionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TransparentDataEncryptionListResultIterator provides access to a complete listing of // TransparentDataEncryption values. type TransparentDataEncryptionListResultIterator struct { @@ -14109,6 +14397,12 @@ type VulnerabilityAssessmentScanError struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for VulnerabilityAssessmentScanError. +func (vase VulnerabilityAssessmentScanError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VulnerabilityAssessmentScanRecord a vulnerability assessment scan record. type VulnerabilityAssessmentScanRecord struct { autorest.Response `json:"-"` @@ -14191,6 +14485,12 @@ type VulnerabilityAssessmentScanRecordListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for VulnerabilityAssessmentScanRecordListResult. +func (vasrlr VulnerabilityAssessmentScanRecordListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VulnerabilityAssessmentScanRecordListResultIterator provides access to a complete listing of // VulnerabilityAssessmentScanRecord values. type VulnerabilityAssessmentScanRecordListResultIterator struct { @@ -14363,6 +14663,12 @@ type VulnerabilityAssessmentScanRecordProperties struct { NumberOfFailedSecurityChecks *int32 `json:"numberOfFailedSecurityChecks,omitempty"` } +// MarshalJSON is the custom marshaler for VulnerabilityAssessmentScanRecordProperties. +func (vasrp VulnerabilityAssessmentScanRecordProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WorkloadClassifier workload classifier operations for a data warehouse type WorkloadClassifier struct { autorest.Response `json:"-"` @@ -14445,6 +14751,12 @@ type WorkloadClassifierListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for WorkloadClassifierListResult. +func (wclr WorkloadClassifierListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WorkloadClassifierListResultIterator provides access to a complete listing of WorkloadClassifier values. type WorkloadClassifierListResultIterator struct { i int @@ -14694,6 +15006,12 @@ type WorkloadGroupListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for WorkloadGroupListResult. +func (wglr WorkloadGroupListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WorkloadGroupListResultIterator provides access to a complete listing of WorkloadGroup values. type WorkloadGroupListResultIterator struct { i int diff --git a/services/timeseriesinsights/mgmt/2017-11-15/timeseriesinsights/CHANGELOG.md b/services/timeseriesinsights/mgmt/2017-11-15/timeseriesinsights/CHANGELOG.md index 52911e4cc5e4..1d8701aa6b6a 100644 --- a/services/timeseriesinsights/mgmt/2017-11-15/timeseriesinsights/CHANGELOG.md +++ b/services/timeseriesinsights/mgmt/2017-11-15/timeseriesinsights/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. Operation.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/timeseriesinsights/mgmt/2017-11-15/timeseriesinsights/_meta.json b/services/timeseriesinsights/mgmt/2017-11-15/timeseriesinsights/_meta.json index c3154e742b91..a0abbffc8581 100644 --- a/services/timeseriesinsights/mgmt/2017-11-15/timeseriesinsights/_meta.json +++ b/services/timeseriesinsights/mgmt/2017-11-15/timeseriesinsights/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/timeseriesinsights/resource-manager/readme.md", "tag": "package-2017-11-15", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-11-15 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/timeseriesinsights/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-11-15 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/timeseriesinsights/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/timeseriesinsights/mgmt/2017-11-15/timeseriesinsights/models.go b/services/timeseriesinsights/mgmt/2017-11-15/timeseriesinsights/models.go index 62e825f5c338..54a362c0dcca 100644 --- a/services/timeseriesinsights/mgmt/2017-11-15/timeseriesinsights/models.go +++ b/services/timeseriesinsights/mgmt/2017-11-15/timeseriesinsights/models.go @@ -1902,6 +1902,12 @@ type Operation struct { Display *OperationDisplay `json:"display,omitempty"` } +// MarshalJSON is the custom marshaler for Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationDisplay contains the localized display information for this particular operation / action. type OperationDisplay struct { // Provider - READ-ONLY; The localized friendly form of the resource provider name. @@ -1914,6 +1920,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of the request to list Time Series Insights operations. It contains a list of // operations and a URL link to get the next set of results. type OperationListResult struct { @@ -1924,6 +1936,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -2328,6 +2346,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceProperties properties that are common to all tracked resources. type ResourceProperties struct { // ProvisioningState - Provisioning state of the resource. Possible values include: 'Accepted', 'Creating', 'Updating', 'Succeeded', 'Failed', 'Deleting' diff --git a/services/timeseriesinsights/mgmt/2020-05-15/timeseriesinsights/CHANGELOG.md b/services/timeseriesinsights/mgmt/2020-05-15/timeseriesinsights/CHANGELOG.md index 52911e4cc5e4..1d8701aa6b6a 100644 --- a/services/timeseriesinsights/mgmt/2020-05-15/timeseriesinsights/CHANGELOG.md +++ b/services/timeseriesinsights/mgmt/2020-05-15/timeseriesinsights/CHANGELOG.md @@ -1,2 +1,10 @@ # Change History +## Additive Changes + +### New Funcs + +1. Operation.MarshalJSON() ([]byte, error) +1. OperationDisplay.MarshalJSON() ([]byte, error) +1. OperationListResult.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/timeseriesinsights/mgmt/2020-05-15/timeseriesinsights/_meta.json b/services/timeseriesinsights/mgmt/2020-05-15/timeseriesinsights/_meta.json index cf2f3cf974e2..2df3547dd4bb 100644 --- a/services/timeseriesinsights/mgmt/2020-05-15/timeseriesinsights/_meta.json +++ b/services/timeseriesinsights/mgmt/2020-05-15/timeseriesinsights/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/timeseriesinsights/resource-manager/readme.md", "tag": "package-2020-05-15", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-05-15 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/timeseriesinsights/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-05-15 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/timeseriesinsights/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/timeseriesinsights/mgmt/2020-05-15/timeseriesinsights/models.go b/services/timeseriesinsights/mgmt/2020-05-15/timeseriesinsights/models.go index 6a221ad0e844..2744ff7d51c3 100644 --- a/services/timeseriesinsights/mgmt/2020-05-15/timeseriesinsights/models.go +++ b/services/timeseriesinsights/mgmt/2020-05-15/timeseriesinsights/models.go @@ -2699,6 +2699,12 @@ type Operation struct { Display *OperationDisplay `json:"display,omitempty"` } +// MarshalJSON is the custom marshaler for Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationDisplay contains the localized display information for this particular operation / action. type OperationDisplay struct { // Provider - READ-ONLY; The localized friendly form of the resource provider name. @@ -2711,6 +2717,12 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResult result of the request to list Time Series Insights operations. It contains a list of // operations and a URL link to get the next set of results. type OperationListResult struct { @@ -2721,6 +2733,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int @@ -3116,6 +3134,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceProperties properties that are common to all tracked resources. type ResourceProperties struct { // ProvisioningState - Provisioning state of the resource. Possible values include: 'Accepted', 'Creating', 'Updating', 'Succeeded', 'Failed', 'Deleting' diff --git a/services/trafficmanager/mgmt/2015-11-01/trafficmanager/_meta.json b/services/trafficmanager/mgmt/2015-11-01/trafficmanager/_meta.json index d4785ff244c1..8a8b13c4f8ac 100644 --- a/services/trafficmanager/mgmt/2015-11-01/trafficmanager/_meta.json +++ b/services/trafficmanager/mgmt/2015-11-01/trafficmanager/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/trafficmanager/resource-manager/readme.md", "tag": "package-2015-11", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2015-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/trafficmanager/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2015-11 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/trafficmanager/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/trafficmanager/mgmt/2017-03-01/trafficmanager/CHANGELOG.md b/services/trafficmanager/mgmt/2017-03-01/trafficmanager/CHANGELOG.md index 52911e4cc5e4..c8b9084a146d 100644 --- a/services/trafficmanager/mgmt/2017-03-01/trafficmanager/CHANGELOG.md +++ b/services/trafficmanager/mgmt/2017-03-01/trafficmanager/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. DeleteOperationResult.MarshalJSON() ([]byte, error) diff --git a/services/trafficmanager/mgmt/2017-03-01/trafficmanager/_meta.json b/services/trafficmanager/mgmt/2017-03-01/trafficmanager/_meta.json index ebbc2ca1efb6..67abdad3232a 100644 --- a/services/trafficmanager/mgmt/2017-03-01/trafficmanager/_meta.json +++ b/services/trafficmanager/mgmt/2017-03-01/trafficmanager/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/trafficmanager/resource-manager/readme.md", "tag": "package-2017-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/trafficmanager/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/trafficmanager/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/trafficmanager/mgmt/2017-03-01/trafficmanager/models.go b/services/trafficmanager/mgmt/2017-03-01/trafficmanager/models.go index 18f3ed10b763..d1d1b55516bf 100644 --- a/services/trafficmanager/mgmt/2017-03-01/trafficmanager/models.go +++ b/services/trafficmanager/mgmt/2017-03-01/trafficmanager/models.go @@ -43,6 +43,12 @@ type DeleteOperationResult struct { OperationResult *bool `json:"boolean,omitempty"` } +// MarshalJSON is the custom marshaler for DeleteOperationResult. +func (dor DeleteOperationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DNSConfig class containing DNS settings in a Traffic Manager profile. type DNSConfig struct { // RelativeName - Gets or sets the relative DNS name provided by this Traffic Manager profile. This value is combined with the DNS domain name used by Azure Traffic Manager to form the fully-qualified domain name (FQDN) of the profile. diff --git a/services/trafficmanager/mgmt/2017-05-01/trafficmanager/CHANGELOG.md b/services/trafficmanager/mgmt/2017-05-01/trafficmanager/CHANGELOG.md index 52911e4cc5e4..43dde23907ad 100644 --- a/services/trafficmanager/mgmt/2017-05-01/trafficmanager/CHANGELOG.md +++ b/services/trafficmanager/mgmt/2017-05-01/trafficmanager/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. DeleteOperationResult.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/trafficmanager/mgmt/2017-05-01/trafficmanager/_meta.json b/services/trafficmanager/mgmt/2017-05-01/trafficmanager/_meta.json index 63965a740543..2c6f1d4bc66f 100644 --- a/services/trafficmanager/mgmt/2017-05-01/trafficmanager/_meta.json +++ b/services/trafficmanager/mgmt/2017-05-01/trafficmanager/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/trafficmanager/resource-manager/readme.md", "tag": "package-2017-05", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2017-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/trafficmanager/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2017-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/trafficmanager/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/trafficmanager/mgmt/2017-05-01/trafficmanager/models.go b/services/trafficmanager/mgmt/2017-05-01/trafficmanager/models.go index efeba82d133b..a1b50000cbd8 100644 --- a/services/trafficmanager/mgmt/2017-05-01/trafficmanager/models.go +++ b/services/trafficmanager/mgmt/2017-05-01/trafficmanager/models.go @@ -48,6 +48,12 @@ type DeleteOperationResult struct { OperationResult *bool `json:"boolean,omitempty"` } +// MarshalJSON is the custom marshaler for DeleteOperationResult. +func (dor DeleteOperationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DNSConfig class containing DNS settings in a Traffic Manager profile. type DNSConfig struct { // RelativeName - The relative DNS name provided by this Traffic Manager profile. This value is combined with the DNS domain name used by Azure Traffic Manager to form the fully-qualified domain name (FQDN) of the profile. @@ -412,6 +418,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Region class representing a region in the Geographic hierarchy used with the Geographic traffic routing // method. type Region struct { @@ -433,6 +445,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackedResource the resource model definition for a ARM tracked top level resource type TrackedResource struct { // Tags - Resource tags. diff --git a/services/trafficmanager/mgmt/2018-03-01/trafficmanager/CHANGELOG.md b/services/trafficmanager/mgmt/2018-03-01/trafficmanager/CHANGELOG.md index 52911e4cc5e4..c8b9084a146d 100644 --- a/services/trafficmanager/mgmt/2018-03-01/trafficmanager/CHANGELOG.md +++ b/services/trafficmanager/mgmt/2018-03-01/trafficmanager/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. DeleteOperationResult.MarshalJSON() ([]byte, error) diff --git a/services/trafficmanager/mgmt/2018-03-01/trafficmanager/_meta.json b/services/trafficmanager/mgmt/2018-03-01/trafficmanager/_meta.json index b157fe005337..3183b12070bf 100644 --- a/services/trafficmanager/mgmt/2018-03-01/trafficmanager/_meta.json +++ b/services/trafficmanager/mgmt/2018-03-01/trafficmanager/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/trafficmanager/resource-manager/readme.md", "tag": "package-2018-03", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/trafficmanager/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/trafficmanager/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/trafficmanager/mgmt/2018-03-01/trafficmanager/models.go b/services/trafficmanager/mgmt/2018-03-01/trafficmanager/models.go index 35e14f9f34be..0f373bd1df72 100644 --- a/services/trafficmanager/mgmt/2018-03-01/trafficmanager/models.go +++ b/services/trafficmanager/mgmt/2018-03-01/trafficmanager/models.go @@ -49,6 +49,12 @@ type DeleteOperationResult struct { OperationResult *bool `json:"boolean,omitempty"` } +// MarshalJSON is the custom marshaler for DeleteOperationResult. +func (dor DeleteOperationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DNSConfig class containing DNS settings in a Traffic Manager profile. type DNSConfig struct { // RelativeName - The relative DNS name provided by this Traffic Manager profile. This value is combined with the DNS domain name used by Azure Traffic Manager to form the fully-qualified domain name (FQDN) of the profile. diff --git a/services/trafficmanager/mgmt/2018-04-01/trafficmanager/CHANGELOG.md b/services/trafficmanager/mgmt/2018-04-01/trafficmanager/CHANGELOG.md index 52911e4cc5e4..c8b9084a146d 100644 --- a/services/trafficmanager/mgmt/2018-04-01/trafficmanager/CHANGELOG.md +++ b/services/trafficmanager/mgmt/2018-04-01/trafficmanager/CHANGELOG.md @@ -1,2 +1,7 @@ # Change History +## Additive Changes + +### New Funcs + +1. DeleteOperationResult.MarshalJSON() ([]byte, error) diff --git a/services/trafficmanager/mgmt/2018-04-01/trafficmanager/_meta.json b/services/trafficmanager/mgmt/2018-04-01/trafficmanager/_meta.json index 508e502e7818..6cb940374003 100644 --- a/services/trafficmanager/mgmt/2018-04-01/trafficmanager/_meta.json +++ b/services/trafficmanager/mgmt/2018-04-01/trafficmanager/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/trafficmanager/resource-manager/readme.md", "tag": "package-2018-04", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/trafficmanager/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/trafficmanager/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/trafficmanager/mgmt/2018-04-01/trafficmanager/models.go b/services/trafficmanager/mgmt/2018-04-01/trafficmanager/models.go index e20e32bc63c0..dc20c2b1eaf5 100644 --- a/services/trafficmanager/mgmt/2018-04-01/trafficmanager/models.go +++ b/services/trafficmanager/mgmt/2018-04-01/trafficmanager/models.go @@ -49,6 +49,12 @@ type DeleteOperationResult struct { OperationResult *bool `json:"boolean,omitempty"` } +// MarshalJSON is the custom marshaler for DeleteOperationResult. +func (dor DeleteOperationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DNSConfig class containing DNS settings in a Traffic Manager profile. type DNSConfig struct { // RelativeName - The relative DNS name provided by this Traffic Manager profile. This value is combined with the DNS domain name used by Azure Traffic Manager to form the fully-qualified domain name (FQDN) of the profile. diff --git a/services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder/enums.go b/services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder/enums.go deleted file mode 100644 index fa19f6b211b3..000000000000 --- a/services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder/enums.go +++ /dev/null @@ -1,194 +0,0 @@ -package virtualmachineimagebuilder - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ProvisioningErrorCode enumerates the values for provisioning error code. -type ProvisioningErrorCode string - -const ( - // BadCustomizerType ... - BadCustomizerType ProvisioningErrorCode = "BadCustomizerType" - // BadDistributeType ... - BadDistributeType ProvisioningErrorCode = "BadDistributeType" - // BadManagedImageSource ... - BadManagedImageSource ProvisioningErrorCode = "BadManagedImageSource" - // BadPIRSource ... - BadPIRSource ProvisioningErrorCode = "BadPIRSource" - // BadSharedImageDistribute ... - BadSharedImageDistribute ProvisioningErrorCode = "BadSharedImageDistribute" - // BadSharedImageVersionSource ... - BadSharedImageVersionSource ProvisioningErrorCode = "BadSharedImageVersionSource" - // BadSourceType ... - BadSourceType ProvisioningErrorCode = "BadSourceType" - // NoCustomizerScript ... - NoCustomizerScript ProvisioningErrorCode = "NoCustomizerScript" - // Other ... - Other ProvisioningErrorCode = "Other" - // ServerError ... - ServerError ProvisioningErrorCode = "ServerError" - // UnsupportedCustomizerType ... - UnsupportedCustomizerType ProvisioningErrorCode = "UnsupportedCustomizerType" -) - -// PossibleProvisioningErrorCodeValues returns an array of possible values for the ProvisioningErrorCode const type. -func PossibleProvisioningErrorCodeValues() []ProvisioningErrorCode { - return []ProvisioningErrorCode{BadCustomizerType, BadDistributeType, BadManagedImageSource, BadPIRSource, BadSharedImageDistribute, BadSharedImageVersionSource, BadSourceType, NoCustomizerScript, Other, ServerError, UnsupportedCustomizerType} -} - -// ProvisioningState enumerates the values for provisioning state. -type ProvisioningState string - -const ( - // Creating ... - Creating ProvisioningState = "Creating" - // Deleting ... - Deleting ProvisioningState = "Deleting" - // Failed ... - Failed ProvisioningState = "Failed" - // Succeeded ... - Succeeded ProvisioningState = "Succeeded" - // Updating ... - Updating ProvisioningState = "Updating" -) - -// PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type. -func PossibleProvisioningStateValues() []ProvisioningState { - return []ProvisioningState{Creating, Deleting, Failed, Succeeded, Updating} -} - -// ResourceIdentityType enumerates the values for resource identity type. -type ResourceIdentityType string - -const ( - // None ... - None ResourceIdentityType = "None" - // UserAssigned ... - UserAssigned ResourceIdentityType = "UserAssigned" -) - -// PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type. -func PossibleResourceIdentityTypeValues() []ResourceIdentityType { - return []ResourceIdentityType{None, UserAssigned} -} - -// RunState enumerates the values for run state. -type RunState string - -const ( - // RunStateCanceled ... - RunStateCanceled RunState = "Canceled" - // RunStateCanceling ... - RunStateCanceling RunState = "Canceling" - // RunStateFailed ... - RunStateFailed RunState = "Failed" - // RunStatePartiallySucceeded ... - RunStatePartiallySucceeded RunState = "PartiallySucceeded" - // RunStateRunning ... - RunStateRunning RunState = "Running" - // RunStateSucceeded ... - RunStateSucceeded RunState = "Succeeded" -) - -// PossibleRunStateValues returns an array of possible values for the RunState const type. -func PossibleRunStateValues() []RunState { - return []RunState{RunStateCanceled, RunStateCanceling, RunStateFailed, RunStatePartiallySucceeded, RunStateRunning, RunStateSucceeded} -} - -// RunSubState enumerates the values for run sub state. -type RunSubState string - -const ( - // Building ... - Building RunSubState = "Building" - // Customizing ... - Customizing RunSubState = "Customizing" - // Distributing ... - Distributing RunSubState = "Distributing" - // Queued ... - Queued RunSubState = "Queued" -) - -// PossibleRunSubStateValues returns an array of possible values for the RunSubState const type. -func PossibleRunSubStateValues() []RunSubState { - return []RunSubState{Building, Customizing, Distributing, Queued} -} - -// SharedImageStorageAccountType enumerates the values for shared image storage account type. -type SharedImageStorageAccountType string - -const ( - // StandardLRS ... - StandardLRS SharedImageStorageAccountType = "Standard_LRS" - // StandardZRS ... - StandardZRS SharedImageStorageAccountType = "Standard_ZRS" -) - -// PossibleSharedImageStorageAccountTypeValues returns an array of possible values for the SharedImageStorageAccountType const type. -func PossibleSharedImageStorageAccountTypeValues() []SharedImageStorageAccountType { - return []SharedImageStorageAccountType{StandardLRS, StandardZRS} -} - -// Type enumerates the values for type. -type Type string - -const ( - // TypeImageTemplateSource ... - TypeImageTemplateSource Type = "ImageTemplateSource" - // TypeManagedImage ... - TypeManagedImage Type = "ManagedImage" - // TypePlatformImage ... - TypePlatformImage Type = "PlatformImage" - // TypeSharedImageVersion ... - TypeSharedImageVersion Type = "SharedImageVersion" -) - -// PossibleTypeValues returns an array of possible values for the Type const type. -func PossibleTypeValues() []Type { - return []Type{TypeImageTemplateSource, TypeManagedImage, TypePlatformImage, TypeSharedImageVersion} -} - -// TypeBasicImageTemplateCustomizer enumerates the values for type basic image template customizer. -type TypeBasicImageTemplateCustomizer string - -const ( - // TypeFile ... - TypeFile TypeBasicImageTemplateCustomizer = "File" - // TypeImageTemplateCustomizer ... - TypeImageTemplateCustomizer TypeBasicImageTemplateCustomizer = "ImageTemplateCustomizer" - // TypePowerShell ... - TypePowerShell TypeBasicImageTemplateCustomizer = "PowerShell" - // TypeShell ... - TypeShell TypeBasicImageTemplateCustomizer = "Shell" - // TypeWindowsRestart ... - TypeWindowsRestart TypeBasicImageTemplateCustomizer = "WindowsRestart" - // TypeWindowsUpdate ... - TypeWindowsUpdate TypeBasicImageTemplateCustomizer = "WindowsUpdate" -) - -// PossibleTypeBasicImageTemplateCustomizerValues returns an array of possible values for the TypeBasicImageTemplateCustomizer const type. -func PossibleTypeBasicImageTemplateCustomizerValues() []TypeBasicImageTemplateCustomizer { - return []TypeBasicImageTemplateCustomizer{TypeFile, TypeImageTemplateCustomizer, TypePowerShell, TypeShell, TypeWindowsRestart, TypeWindowsUpdate} -} - -// TypeBasicImageTemplateDistributor enumerates the values for type basic image template distributor. -type TypeBasicImageTemplateDistributor string - -const ( - // TypeBasicImageTemplateDistributorTypeImageTemplateDistributor ... - TypeBasicImageTemplateDistributorTypeImageTemplateDistributor TypeBasicImageTemplateDistributor = "ImageTemplateDistributor" - // TypeBasicImageTemplateDistributorTypeManagedImage ... - TypeBasicImageTemplateDistributorTypeManagedImage TypeBasicImageTemplateDistributor = "ManagedImage" - // TypeBasicImageTemplateDistributorTypeSharedImage ... - TypeBasicImageTemplateDistributorTypeSharedImage TypeBasicImageTemplateDistributor = "SharedImage" - // TypeBasicImageTemplateDistributorTypeVHD ... - TypeBasicImageTemplateDistributorTypeVHD TypeBasicImageTemplateDistributor = "VHD" -) - -// PossibleTypeBasicImageTemplateDistributorValues returns an array of possible values for the TypeBasicImageTemplateDistributor const type. -func PossibleTypeBasicImageTemplateDistributorValues() []TypeBasicImageTemplateDistributor { - return []TypeBasicImageTemplateDistributor{TypeBasicImageTemplateDistributorTypeImageTemplateDistributor, TypeBasicImageTemplateDistributorTypeManagedImage, TypeBasicImageTemplateDistributorTypeSharedImage, TypeBasicImageTemplateDistributorTypeVHD} -} diff --git a/services/virtualmachineimagebuilder/mgmt/2020-02-14/virtualmachineimagebuilder/CHANGELOG.md b/services/virtualmachineimagebuilder/mgmt/2020-02-14/virtualmachineimagebuilder/CHANGELOG.md new file mode 100644 index 000000000000..52911e4cc5e4 --- /dev/null +++ b/services/virtualmachineimagebuilder/mgmt/2020-02-14/virtualmachineimagebuilder/CHANGELOG.md @@ -0,0 +1,2 @@ +# Change History + diff --git a/services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder/_meta.json b/services/virtualmachineimagebuilder/mgmt/2020-02-14/virtualmachineimagebuilder/_meta.json similarity index 54% rename from services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder/_meta.json rename to services/virtualmachineimagebuilder/mgmt/2020-02-14/virtualmachineimagebuilder/_meta.json index d570692624d3..727ccdcf329b 100644 --- a/services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder/_meta.json +++ b/services/virtualmachineimagebuilder/mgmt/2020-02-14/virtualmachineimagebuilder/_meta.json @@ -1,11 +1,11 @@ { - "commit": "225e4a77704766b9b6529c40c2677b22b58da9b9", + "commit": "394395ed0bdc1c5c05cb37a031379ca03bfebbb5", "readme": "/_/azure-rest-api-specs/specification/imagebuilder/resource-manager/readme.md", "tag": "package-2020-02", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/imagebuilder/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/imagebuilder/resource-manager/readme.md", "additional_properties": { - "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" + "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix" } } \ No newline at end of file diff --git a/services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder/client.go b/services/virtualmachineimagebuilder/mgmt/2020-02-14/virtualmachineimagebuilder/client.go similarity index 100% rename from services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder/client.go rename to services/virtualmachineimagebuilder/mgmt/2020-02-14/virtualmachineimagebuilder/client.go diff --git a/services/virtualmachineimagebuilder/mgmt/2020-02-14/virtualmachineimagebuilder/enums.go b/services/virtualmachineimagebuilder/mgmt/2020-02-14/virtualmachineimagebuilder/enums.go new file mode 100644 index 000000000000..05db6ef3e483 --- /dev/null +++ b/services/virtualmachineimagebuilder/mgmt/2020-02-14/virtualmachineimagebuilder/enums.go @@ -0,0 +1,194 @@ +package virtualmachineimagebuilder + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ProvisioningErrorCode enumerates the values for provisioning error code. +type ProvisioningErrorCode string + +const ( + // ProvisioningErrorCodeBadCustomizerType ... + ProvisioningErrorCodeBadCustomizerType ProvisioningErrorCode = "BadCustomizerType" + // ProvisioningErrorCodeBadDistributeType ... + ProvisioningErrorCodeBadDistributeType ProvisioningErrorCode = "BadDistributeType" + // ProvisioningErrorCodeBadManagedImageSource ... + ProvisioningErrorCodeBadManagedImageSource ProvisioningErrorCode = "BadManagedImageSource" + // ProvisioningErrorCodeBadPIRSource ... + ProvisioningErrorCodeBadPIRSource ProvisioningErrorCode = "BadPIRSource" + // ProvisioningErrorCodeBadSharedImageDistribute ... + ProvisioningErrorCodeBadSharedImageDistribute ProvisioningErrorCode = "BadSharedImageDistribute" + // ProvisioningErrorCodeBadSharedImageVersionSource ... + ProvisioningErrorCodeBadSharedImageVersionSource ProvisioningErrorCode = "BadSharedImageVersionSource" + // ProvisioningErrorCodeBadSourceType ... + ProvisioningErrorCodeBadSourceType ProvisioningErrorCode = "BadSourceType" + // ProvisioningErrorCodeNoCustomizerScript ... + ProvisioningErrorCodeNoCustomizerScript ProvisioningErrorCode = "NoCustomizerScript" + // ProvisioningErrorCodeOther ... + ProvisioningErrorCodeOther ProvisioningErrorCode = "Other" + // ProvisioningErrorCodeServerError ... + ProvisioningErrorCodeServerError ProvisioningErrorCode = "ServerError" + // ProvisioningErrorCodeUnsupportedCustomizerType ... + ProvisioningErrorCodeUnsupportedCustomizerType ProvisioningErrorCode = "UnsupportedCustomizerType" +) + +// PossibleProvisioningErrorCodeValues returns an array of possible values for the ProvisioningErrorCode const type. +func PossibleProvisioningErrorCodeValues() []ProvisioningErrorCode { + return []ProvisioningErrorCode{ProvisioningErrorCodeBadCustomizerType, ProvisioningErrorCodeBadDistributeType, ProvisioningErrorCodeBadManagedImageSource, ProvisioningErrorCodeBadPIRSource, ProvisioningErrorCodeBadSharedImageDistribute, ProvisioningErrorCodeBadSharedImageVersionSource, ProvisioningErrorCodeBadSourceType, ProvisioningErrorCodeNoCustomizerScript, ProvisioningErrorCodeOther, ProvisioningErrorCodeServerError, ProvisioningErrorCodeUnsupportedCustomizerType} +} + +// ProvisioningState enumerates the values for provisioning state. +type ProvisioningState string + +const ( + // ProvisioningStateCreating ... + ProvisioningStateCreating ProvisioningState = "Creating" + // ProvisioningStateDeleting ... + ProvisioningStateDeleting ProvisioningState = "Deleting" + // ProvisioningStateFailed ... + ProvisioningStateFailed ProvisioningState = "Failed" + // ProvisioningStateSucceeded ... + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + // ProvisioningStateUpdating ... + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +// PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type. +func PossibleProvisioningStateValues() []ProvisioningState { + return []ProvisioningState{ProvisioningStateCreating, ProvisioningStateDeleting, ProvisioningStateFailed, ProvisioningStateSucceeded, ProvisioningStateUpdating} +} + +// ResourceIdentityType enumerates the values for resource identity type. +type ResourceIdentityType string + +const ( + // ResourceIdentityTypeNone ... + ResourceIdentityTypeNone ResourceIdentityType = "None" + // ResourceIdentityTypeUserAssigned ... + ResourceIdentityTypeUserAssigned ResourceIdentityType = "UserAssigned" +) + +// PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type. +func PossibleResourceIdentityTypeValues() []ResourceIdentityType { + return []ResourceIdentityType{ResourceIdentityTypeNone, ResourceIdentityTypeUserAssigned} +} + +// RunState enumerates the values for run state. +type RunState string + +const ( + // RunStateCanceled ... + RunStateCanceled RunState = "Canceled" + // RunStateCanceling ... + RunStateCanceling RunState = "Canceling" + // RunStateFailed ... + RunStateFailed RunState = "Failed" + // RunStatePartiallySucceeded ... + RunStatePartiallySucceeded RunState = "PartiallySucceeded" + // RunStateRunning ... + RunStateRunning RunState = "Running" + // RunStateSucceeded ... + RunStateSucceeded RunState = "Succeeded" +) + +// PossibleRunStateValues returns an array of possible values for the RunState const type. +func PossibleRunStateValues() []RunState { + return []RunState{RunStateCanceled, RunStateCanceling, RunStateFailed, RunStatePartiallySucceeded, RunStateRunning, RunStateSucceeded} +} + +// RunSubState enumerates the values for run sub state. +type RunSubState string + +const ( + // RunSubStateBuilding ... + RunSubStateBuilding RunSubState = "Building" + // RunSubStateCustomizing ... + RunSubStateCustomizing RunSubState = "Customizing" + // RunSubStateDistributing ... + RunSubStateDistributing RunSubState = "Distributing" + // RunSubStateQueued ... + RunSubStateQueued RunSubState = "Queued" +) + +// PossibleRunSubStateValues returns an array of possible values for the RunSubState const type. +func PossibleRunSubStateValues() []RunSubState { + return []RunSubState{RunSubStateBuilding, RunSubStateCustomizing, RunSubStateDistributing, RunSubStateQueued} +} + +// SharedImageStorageAccountType enumerates the values for shared image storage account type. +type SharedImageStorageAccountType string + +const ( + // SharedImageStorageAccountTypeStandardLRS ... + SharedImageStorageAccountTypeStandardLRS SharedImageStorageAccountType = "Standard_LRS" + // SharedImageStorageAccountTypeStandardZRS ... + SharedImageStorageAccountTypeStandardZRS SharedImageStorageAccountType = "Standard_ZRS" +) + +// PossibleSharedImageStorageAccountTypeValues returns an array of possible values for the SharedImageStorageAccountType const type. +func PossibleSharedImageStorageAccountTypeValues() []SharedImageStorageAccountType { + return []SharedImageStorageAccountType{SharedImageStorageAccountTypeStandardLRS, SharedImageStorageAccountTypeStandardZRS} +} + +// Type enumerates the values for type. +type Type string + +const ( + // TypeImageTemplateSource ... + TypeImageTemplateSource Type = "ImageTemplateSource" + // TypeManagedImage ... + TypeManagedImage Type = "ManagedImage" + // TypePlatformImage ... + TypePlatformImage Type = "PlatformImage" + // TypeSharedImageVersion ... + TypeSharedImageVersion Type = "SharedImageVersion" +) + +// PossibleTypeValues returns an array of possible values for the Type const type. +func PossibleTypeValues() []Type { + return []Type{TypeImageTemplateSource, TypeManagedImage, TypePlatformImage, TypeSharedImageVersion} +} + +// TypeBasicImageTemplateCustomizer enumerates the values for type basic image template customizer. +type TypeBasicImageTemplateCustomizer string + +const ( + // TypeBasicImageTemplateCustomizerTypeFile ... + TypeBasicImageTemplateCustomizerTypeFile TypeBasicImageTemplateCustomizer = "File" + // TypeBasicImageTemplateCustomizerTypeImageTemplateCustomizer ... + TypeBasicImageTemplateCustomizerTypeImageTemplateCustomizer TypeBasicImageTemplateCustomizer = "ImageTemplateCustomizer" + // TypeBasicImageTemplateCustomizerTypePowerShell ... + TypeBasicImageTemplateCustomizerTypePowerShell TypeBasicImageTemplateCustomizer = "PowerShell" + // TypeBasicImageTemplateCustomizerTypeShell ... + TypeBasicImageTemplateCustomizerTypeShell TypeBasicImageTemplateCustomizer = "Shell" + // TypeBasicImageTemplateCustomizerTypeWindowsRestart ... + TypeBasicImageTemplateCustomizerTypeWindowsRestart TypeBasicImageTemplateCustomizer = "WindowsRestart" + // TypeBasicImageTemplateCustomizerTypeWindowsUpdate ... + TypeBasicImageTemplateCustomizerTypeWindowsUpdate TypeBasicImageTemplateCustomizer = "WindowsUpdate" +) + +// PossibleTypeBasicImageTemplateCustomizerValues returns an array of possible values for the TypeBasicImageTemplateCustomizer const type. +func PossibleTypeBasicImageTemplateCustomizerValues() []TypeBasicImageTemplateCustomizer { + return []TypeBasicImageTemplateCustomizer{TypeBasicImageTemplateCustomizerTypeFile, TypeBasicImageTemplateCustomizerTypeImageTemplateCustomizer, TypeBasicImageTemplateCustomizerTypePowerShell, TypeBasicImageTemplateCustomizerTypeShell, TypeBasicImageTemplateCustomizerTypeWindowsRestart, TypeBasicImageTemplateCustomizerTypeWindowsUpdate} +} + +// TypeBasicImageTemplateDistributor enumerates the values for type basic image template distributor. +type TypeBasicImageTemplateDistributor string + +const ( + // TypeBasicImageTemplateDistributorTypeImageTemplateDistributor ... + TypeBasicImageTemplateDistributorTypeImageTemplateDistributor TypeBasicImageTemplateDistributor = "ImageTemplateDistributor" + // TypeBasicImageTemplateDistributorTypeManagedImage ... + TypeBasicImageTemplateDistributorTypeManagedImage TypeBasicImageTemplateDistributor = "ManagedImage" + // TypeBasicImageTemplateDistributorTypeSharedImage ... + TypeBasicImageTemplateDistributorTypeSharedImage TypeBasicImageTemplateDistributor = "SharedImage" + // TypeBasicImageTemplateDistributorTypeVHD ... + TypeBasicImageTemplateDistributorTypeVHD TypeBasicImageTemplateDistributor = "VHD" +) + +// PossibleTypeBasicImageTemplateDistributorValues returns an array of possible values for the TypeBasicImageTemplateDistributor const type. +func PossibleTypeBasicImageTemplateDistributorValues() []TypeBasicImageTemplateDistributor { + return []TypeBasicImageTemplateDistributor{TypeBasicImageTemplateDistributorTypeImageTemplateDistributor, TypeBasicImageTemplateDistributorTypeManagedImage, TypeBasicImageTemplateDistributorTypeSharedImage, TypeBasicImageTemplateDistributorTypeVHD} +} diff --git a/services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder/models.go b/services/virtualmachineimagebuilder/mgmt/2020-02-14/virtualmachineimagebuilder/models.go similarity index 95% rename from services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder/models.go rename to services/virtualmachineimagebuilder/mgmt/2020-02-14/virtualmachineimagebuilder/models.go index 623af7efa127..68890dce382c 100644 --- a/services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder/models.go +++ b/services/virtualmachineimagebuilder/mgmt/2020-02-14/virtualmachineimagebuilder/models.go @@ -18,7 +18,7 @@ import ( ) // The package's fully qualified name. -const fqdn = "github.com/Azure/azure-sdk-for-go/services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder" +const fqdn = "github.com/Azure/azure-sdk-for-go/services/virtualmachineimagebuilder/mgmt/2020-02-14/virtualmachineimagebuilder" // APIError api error. type APIError struct { @@ -173,7 +173,7 @@ type BasicImageTemplateCustomizer interface { type ImageTemplateCustomizer struct { // Name - Friendly Name to provide context on what this customization step does Name *string `json:"name,omitempty"` - // Type - Possible values include: 'TypeImageTemplateCustomizer', 'TypeShell', 'TypeWindowsRestart', 'TypeWindowsUpdate', 'TypePowerShell', 'TypeFile' + // Type - Possible values include: 'TypeBasicImageTemplateCustomizerTypeImageTemplateCustomizer', 'TypeBasicImageTemplateCustomizerTypeShell', 'TypeBasicImageTemplateCustomizerTypeWindowsRestart', 'TypeBasicImageTemplateCustomizerTypeWindowsUpdate', 'TypeBasicImageTemplateCustomizerTypePowerShell', 'TypeBasicImageTemplateCustomizerTypeFile' Type TypeBasicImageTemplateCustomizer `json:"type,omitempty"` } @@ -185,23 +185,23 @@ func unmarshalBasicImageTemplateCustomizer(body []byte) (BasicImageTemplateCusto } switch m["type"] { - case string(TypeShell): + case string(TypeBasicImageTemplateCustomizerTypeShell): var itsc ImageTemplateShellCustomizer err := json.Unmarshal(body, &itsc) return itsc, err - case string(TypeWindowsRestart): + case string(TypeBasicImageTemplateCustomizerTypeWindowsRestart): var itrc ImageTemplateRestartCustomizer err := json.Unmarshal(body, &itrc) return itrc, err - case string(TypeWindowsUpdate): + case string(TypeBasicImageTemplateCustomizerTypeWindowsUpdate): var itwuc ImageTemplateWindowsUpdateCustomizer err := json.Unmarshal(body, &itwuc) return itwuc, err - case string(TypePowerShell): + case string(TypeBasicImageTemplateCustomizerTypePowerShell): var itpsc ImageTemplatePowerShellCustomizer err := json.Unmarshal(body, &itpsc) return itpsc, err - case string(TypeFile): + case string(TypeBasicImageTemplateCustomizerTypeFile): var itfc ImageTemplateFileCustomizer err := json.Unmarshal(body, &itfc) return itfc, err @@ -232,7 +232,7 @@ func unmarshalBasicImageTemplateCustomizerArray(body []byte) ([]BasicImageTempla // MarshalJSON is the custom marshaler for ImageTemplateCustomizer. func (itc ImageTemplateCustomizer) MarshalJSON() ([]byte, error) { - itc.Type = TypeImageTemplateCustomizer + itc.Type = TypeBasicImageTemplateCustomizerTypeImageTemplateCustomizer objectMap := make(map[string]interface{}) if itc.Name != nil { objectMap["name"] = itc.Name @@ -393,13 +393,13 @@ type ImageTemplateFileCustomizer struct { Destination *string `json:"destination,omitempty"` // Name - Friendly Name to provide context on what this customization step does Name *string `json:"name,omitempty"` - // Type - Possible values include: 'TypeImageTemplateCustomizer', 'TypeShell', 'TypeWindowsRestart', 'TypeWindowsUpdate', 'TypePowerShell', 'TypeFile' + // Type - Possible values include: 'TypeBasicImageTemplateCustomizerTypeImageTemplateCustomizer', 'TypeBasicImageTemplateCustomizerTypeShell', 'TypeBasicImageTemplateCustomizerTypeWindowsRestart', 'TypeBasicImageTemplateCustomizerTypeWindowsUpdate', 'TypeBasicImageTemplateCustomizerTypePowerShell', 'TypeBasicImageTemplateCustomizerTypeFile' Type TypeBasicImageTemplateCustomizer `json:"type,omitempty"` } // MarshalJSON is the custom marshaler for ImageTemplateFileCustomizer. func (itfc ImageTemplateFileCustomizer) MarshalJSON() ([]byte, error) { - itfc.Type = TypeFile + itfc.Type = TypeBasicImageTemplateCustomizerTypeFile objectMap := make(map[string]interface{}) if itfc.SourceURI != nil { objectMap["sourceUri"] = itfc.SourceURI @@ -456,7 +456,7 @@ func (itfc ImageTemplateFileCustomizer) AsBasicImageTemplateCustomizer() (BasicI // ImageTemplateIdentity identity for the image template. type ImageTemplateIdentity struct { - // Type - The type of identity used for the image template. The type 'None' will remove any identities from the image template. Possible values include: 'UserAssigned', 'None' + // Type - The type of identity used for the image template. The type 'None' will remove any identities from the image template. Possible values include: 'ResourceIdentityTypeUserAssigned', 'ResourceIdentityTypeNone' Type ResourceIdentityType `json:"type,omitempty"` // UserAssignedIdentities - The list of user identities associated with the image template. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. UserAssignedIdentities map[string]*ImageTemplateIdentityUserAssignedIdentitiesValue `json:"userAssignedIdentities"` @@ -482,6 +482,12 @@ type ImageTemplateIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ImageTemplateIdentityUserAssignedIdentitiesValue. +func (itiAiv ImageTemplateIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ImageTemplateLastRunStatus describes the latest status of running an image template type ImageTemplateLastRunStatus struct { // StartTime - Start time of the last run (UTC) @@ -490,7 +496,7 @@ type ImageTemplateLastRunStatus struct { EndTime *date.Time `json:"endTime,omitempty"` // RunState - State of the last run. Possible values include: 'RunStateRunning', 'RunStateCanceling', 'RunStateSucceeded', 'RunStatePartiallySucceeded', 'RunStateFailed', 'RunStateCanceled' RunState RunState `json:"runState,omitempty"` - // RunSubState - Sub-state of the last run. Possible values include: 'Queued', 'Building', 'Customizing', 'Distributing' + // RunSubState - Sub-state of the last run. Possible values include: 'RunSubStateQueued', 'RunSubStateBuilding', 'RunSubStateCustomizing', 'RunSubStateDistributing' RunSubState RunSubState `json:"runSubState,omitempty"` // Message - Verbose information about the last run state Message *string `json:"message,omitempty"` @@ -847,13 +853,13 @@ type ImageTemplatePowerShellCustomizer struct { ValidExitCodes *[]int32 `json:"validExitCodes,omitempty"` // Name - Friendly Name to provide context on what this customization step does Name *string `json:"name,omitempty"` - // Type - Possible values include: 'TypeImageTemplateCustomizer', 'TypeShell', 'TypeWindowsRestart', 'TypeWindowsUpdate', 'TypePowerShell', 'TypeFile' + // Type - Possible values include: 'TypeBasicImageTemplateCustomizerTypeImageTemplateCustomizer', 'TypeBasicImageTemplateCustomizerTypeShell', 'TypeBasicImageTemplateCustomizerTypeWindowsRestart', 'TypeBasicImageTemplateCustomizerTypeWindowsUpdate', 'TypeBasicImageTemplateCustomizerTypePowerShell', 'TypeBasicImageTemplateCustomizerTypeFile' Type TypeBasicImageTemplateCustomizer `json:"type,omitempty"` } // MarshalJSON is the custom marshaler for ImageTemplatePowerShellCustomizer. func (itpsc ImageTemplatePowerShellCustomizer) MarshalJSON() ([]byte, error) { - itpsc.Type = TypePowerShell + itpsc.Type = TypeBasicImageTemplateCustomizerTypePowerShell objectMap := make(map[string]interface{}) if itpsc.ScriptURI != nil { objectMap["scriptUri"] = itpsc.ScriptURI @@ -925,7 +931,7 @@ type ImageTemplateProperties struct { Customize *[]BasicImageTemplateCustomizer `json:"customize,omitempty"` // Distribute - The distribution targets where the image output needs to go to. Distribute *[]BasicImageTemplateDistributor `json:"distribute,omitempty"` - // ProvisioningState - READ-ONLY; Provisioning state of the resource. Possible values include: 'Creating', 'Updating', 'Succeeded', 'Failed', 'Deleting' + // ProvisioningState - READ-ONLY; Provisioning state of the resource. Possible values include: 'ProvisioningStateCreating', 'ProvisioningStateUpdating', 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateDeleting' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` // ProvisioningError - READ-ONLY; Provisioning error, if any ProvisioningError *ProvisioningError `json:"provisioningError,omitempty"` @@ -1051,13 +1057,13 @@ type ImageTemplateRestartCustomizer struct { RestartTimeout *string `json:"restartTimeout,omitempty"` // Name - Friendly Name to provide context on what this customization step does Name *string `json:"name,omitempty"` - // Type - Possible values include: 'TypeImageTemplateCustomizer', 'TypeShell', 'TypeWindowsRestart', 'TypeWindowsUpdate', 'TypePowerShell', 'TypeFile' + // Type - Possible values include: 'TypeBasicImageTemplateCustomizerTypeImageTemplateCustomizer', 'TypeBasicImageTemplateCustomizerTypeShell', 'TypeBasicImageTemplateCustomizerTypeWindowsRestart', 'TypeBasicImageTemplateCustomizerTypeWindowsUpdate', 'TypeBasicImageTemplateCustomizerTypePowerShell', 'TypeBasicImageTemplateCustomizerTypeFile' Type TypeBasicImageTemplateCustomizer `json:"type,omitempty"` } // MarshalJSON is the custom marshaler for ImageTemplateRestartCustomizer. func (itrc ImageTemplateRestartCustomizer) MarshalJSON() ([]byte, error) { - itrc.Type = TypeWindowsRestart + itrc.Type = TypeBasicImageTemplateCustomizerTypeWindowsRestart objectMap := make(map[string]interface{}) if itrc.RestartCommand != nil { objectMap["restartCommand"] = itrc.RestartCommand @@ -1120,7 +1126,7 @@ type ImageTemplateSharedImageDistributor struct { ReplicationRegions *[]string `json:"replicationRegions,omitempty"` // ExcludeFromLatest - Flag that indicates whether created image version should be excluded from latest. Omit to use the default (false). ExcludeFromLatest *bool `json:"excludeFromLatest,omitempty"` - // StorageAccountType - Storage account type to be used to store the shared image. Omit to use the default (Standard_LRS). Possible values include: 'StandardLRS', 'StandardZRS' + // StorageAccountType - Storage account type to be used to store the shared image. Omit to use the default (Standard_LRS). Possible values include: 'SharedImageStorageAccountTypeStandardLRS', 'SharedImageStorageAccountTypeStandardZRS' StorageAccountType SharedImageStorageAccountType `json:"storageAccountType,omitempty"` // RunOutputName - The name to be used for the associated RunOutput. RunOutputName *string `json:"runOutputName,omitempty"` @@ -1241,13 +1247,13 @@ type ImageTemplateShellCustomizer struct { Inline *[]string `json:"inline,omitempty"` // Name - Friendly Name to provide context on what this customization step does Name *string `json:"name,omitempty"` - // Type - Possible values include: 'TypeImageTemplateCustomizer', 'TypeShell', 'TypeWindowsRestart', 'TypeWindowsUpdate', 'TypePowerShell', 'TypeFile' + // Type - Possible values include: 'TypeBasicImageTemplateCustomizerTypeImageTemplateCustomizer', 'TypeBasicImageTemplateCustomizerTypeShell', 'TypeBasicImageTemplateCustomizerTypeWindowsRestart', 'TypeBasicImageTemplateCustomizerTypeWindowsUpdate', 'TypeBasicImageTemplateCustomizerTypePowerShell', 'TypeBasicImageTemplateCustomizerTypeFile' Type TypeBasicImageTemplateCustomizer `json:"type,omitempty"` } // MarshalJSON is the custom marshaler for ImageTemplateShellCustomizer. func (itsc ImageTemplateShellCustomizer) MarshalJSON() ([]byte, error) { - itsc.Type = TypeShell + itsc.Type = TypeBasicImageTemplateCustomizerTypeShell objectMap := make(map[string]interface{}) if itsc.ScriptURI != nil { objectMap["scriptUri"] = itsc.ScriptURI @@ -1488,13 +1494,13 @@ type ImageTemplateWindowsUpdateCustomizer struct { UpdateLimit *int32 `json:"updateLimit,omitempty"` // Name - Friendly Name to provide context on what this customization step does Name *string `json:"name,omitempty"` - // Type - Possible values include: 'TypeImageTemplateCustomizer', 'TypeShell', 'TypeWindowsRestart', 'TypeWindowsUpdate', 'TypePowerShell', 'TypeFile' + // Type - Possible values include: 'TypeBasicImageTemplateCustomizerTypeImageTemplateCustomizer', 'TypeBasicImageTemplateCustomizerTypeShell', 'TypeBasicImageTemplateCustomizerTypeWindowsRestart', 'TypeBasicImageTemplateCustomizerTypeWindowsUpdate', 'TypeBasicImageTemplateCustomizerTypePowerShell', 'TypeBasicImageTemplateCustomizerTypeFile' Type TypeBasicImageTemplateCustomizer `json:"type,omitempty"` } // MarshalJSON is the custom marshaler for ImageTemplateWindowsUpdateCustomizer. func (itwuc ImageTemplateWindowsUpdateCustomizer) MarshalJSON() ([]byte, error) { - itwuc.Type = TypeWindowsUpdate + itwuc.Type = TypeBasicImageTemplateCustomizerTypeWindowsUpdate objectMap := make(map[string]interface{}) if itwuc.SearchCriteria != nil { objectMap["searchCriteria"] = itwuc.SearchCriteria @@ -1745,7 +1751,7 @@ type PlatformImagePurchasePlan struct { // ProvisioningError describes the error happened when create or update an image template type ProvisioningError struct { - // ProvisioningErrorCode - Error code of the provisioning failure. Possible values include: 'BadSourceType', 'BadPIRSource', 'BadManagedImageSource', 'BadSharedImageVersionSource', 'BadCustomizerType', 'UnsupportedCustomizerType', 'NoCustomizerScript', 'BadDistributeType', 'BadSharedImageDistribute', 'ServerError', 'Other' + // ProvisioningErrorCode - Error code of the provisioning failure. Possible values include: 'ProvisioningErrorCodeBadSourceType', 'ProvisioningErrorCodeBadPIRSource', 'ProvisioningErrorCodeBadManagedImageSource', 'ProvisioningErrorCodeBadSharedImageVersionSource', 'ProvisioningErrorCodeBadCustomizerType', 'ProvisioningErrorCodeUnsupportedCustomizerType', 'ProvisioningErrorCodeNoCustomizerScript', 'ProvisioningErrorCodeBadDistributeType', 'ProvisioningErrorCodeBadSharedImageDistribute', 'ProvisioningErrorCodeServerError', 'ProvisioningErrorCodeOther' ProvisioningErrorCode ProvisioningErrorCode `json:"provisioningErrorCode,omitempty"` // Message - Verbose error message about the provisioning failure Message *string `json:"message,omitempty"` @@ -2018,7 +2024,7 @@ type RunOutputProperties struct { ArtifactID *string `json:"artifactId,omitempty"` // ArtifactURI - The location URI of the artifact. ArtifactURI *string `json:"artifactUri,omitempty"` - // ProvisioningState - READ-ONLY; Provisioning state of the resource. Possible values include: 'Creating', 'Updating', 'Succeeded', 'Failed', 'Deleting' + // ProvisioningState - READ-ONLY; Provisioning state of the resource. Possible values include: 'ProvisioningStateCreating', 'ProvisioningStateUpdating', 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateDeleting' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } diff --git a/services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder/operations.go b/services/virtualmachineimagebuilder/mgmt/2020-02-14/virtualmachineimagebuilder/operations.go similarity index 100% rename from services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder/operations.go rename to services/virtualmachineimagebuilder/mgmt/2020-02-14/virtualmachineimagebuilder/operations.go diff --git a/services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder/version.go b/services/virtualmachineimagebuilder/mgmt/2020-02-14/virtualmachineimagebuilder/version.go similarity index 100% rename from services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder/version.go rename to services/virtualmachineimagebuilder/mgmt/2020-02-14/virtualmachineimagebuilder/version.go diff --git a/services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder/virtualmachineimagebuilderapi/interfaces.go b/services/virtualmachineimagebuilder/mgmt/2020-02-14/virtualmachineimagebuilder/virtualmachineimagebuilderapi/interfaces.go similarity index 98% rename from services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder/virtualmachineimagebuilderapi/interfaces.go rename to services/virtualmachineimagebuilder/mgmt/2020-02-14/virtualmachineimagebuilder/virtualmachineimagebuilderapi/interfaces.go index 0ae30d24ff81..2ebaeef35fb8 100644 --- a/services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder/virtualmachineimagebuilderapi/interfaces.go +++ b/services/virtualmachineimagebuilder/mgmt/2020-02-14/virtualmachineimagebuilder/virtualmachineimagebuilderapi/interfaces.go @@ -8,7 +8,7 @@ package virtualmachineimagebuilderapi import ( "context" - "github.com/Azure/azure-sdk-for-go/services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder" + "github.com/Azure/azure-sdk-for-go/services/virtualmachineimagebuilder/mgmt/2020-02-14/virtualmachineimagebuilder" ) // VirtualMachineImageTemplatesClientAPI contains the set of methods on the VirtualMachineImageTemplatesClient type. diff --git a/services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder/virtualmachineimagetemplates.go b/services/virtualmachineimagebuilder/mgmt/2020-02-14/virtualmachineimagebuilder/virtualmachineimagetemplates.go similarity index 100% rename from services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder/virtualmachineimagetemplates.go rename to services/virtualmachineimagebuilder/mgmt/2020-02-14/virtualmachineimagebuilder/virtualmachineimagetemplates.go diff --git a/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/CHANGELOG.md b/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/CHANGELOG.md index 52911e4cc5e4..cc6b023b952e 100644 --- a/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/CHANGELOG.md +++ b/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. ResourcePoolProperties.MarshalJSON() ([]byte, error) +1. VirtualDiskController.MarshalJSON() ([]byte, error) +1. VirtualNetworkProperties.MarshalJSON() ([]byte, error) diff --git a/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/_meta.json b/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/_meta.json index 595f5c93b83d..dc65c97c583f 100644 --- a/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/_meta.json +++ b/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/vmwarecloudsimple/resource-manager/readme.md", "tag": "package-2019-04-01", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-04-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/vmwarecloudsimple/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-04-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/vmwarecloudsimple/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/models.go b/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/models.go index a799eb0450ec..069790d772d2 100644 --- a/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/models.go +++ b/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/models.go @@ -1993,6 +1993,12 @@ type ResourcePoolProperties struct { FullName *string `json:"fullName,omitempty"` } +// MarshalJSON is the custom marshaler for ResourcePoolProperties. +func (rpp ResourcePoolProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourcePoolsListResponse list of resource pools response model type ResourcePoolsListResponse struct { autorest.Response `json:"-"` @@ -2585,6 +2591,12 @@ type VirtualDiskController struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualDiskController. +func (vdc VirtualDiskController) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachine virtual machine model type VirtualMachine struct { autorest.Response `json:"-"` @@ -3719,6 +3731,12 @@ type VirtualNetworkProperties struct { PrivateCloudID *string `json:"privateCloudId,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualNetworkProperties. +func (vnp VirtualNetworkProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualNic virtual NIC model type VirtualNic struct { // Customization - guest OS customization for nic diff --git a/services/web/mgmt/2016-09-01/web/CHANGELOG.md b/services/web/mgmt/2016-09-01/web/CHANGELOG.md index 52911e4cc5e4..da96ec166926 100644 --- a/services/web/mgmt/2016-09-01/web/CHANGELOG.md +++ b/services/web/mgmt/2016-09-01/web/CHANGELOG.md @@ -1,2 +1,36 @@ # Change History +## Additive Changes + +### New Funcs + +1. AnalysisDefinitionProperties.MarshalJSON() ([]byte, error) +1. BackupItemProperties.MarshalJSON() ([]byte, error) +1. CertificateDetails.MarshalJSON() ([]byte, error) +1. DefaultErrorResponse.MarshalJSON() ([]byte, error) +1. DefaultErrorResponseErrorDetailsItem.MarshalJSON() ([]byte, error) +1. DetectorDefinitionProperties.MarshalJSON() ([]byte, error) +1. DetectorInfo.MarshalJSON() ([]byte, error) +1. DiagnosticCategoryProperties.MarshalJSON() ([]byte, error) +1. DomainControlCenterSsoRequest.MarshalJSON() ([]byte, error) +1. GeoRegionProperties.MarshalJSON() ([]byte, error) +1. HybridConnectionKeyProperties.MarshalJSON() ([]byte, error) +1. HybridConnectionLimitsProperties.MarshalJSON() ([]byte, error) +1. MSDeployLogEntry.MarshalJSON() ([]byte, error) +1. MSDeployLogProperties.MarshalJSON() ([]byte, error) +1. MSDeployStatusProperties.MarshalJSON() ([]byte, error) +1. MetricDefinitionProperties.MarshalJSON() ([]byte, error) +1. MigrateMySQLStatusProperties.MarshalJSON() ([]byte, error) +1. NetworkFeaturesProperties.MarshalJSON() ([]byte, error) +1. ResourceMetric.MarshalJSON() ([]byte, error) +1. ResourceMetricAvailability.MarshalJSON() ([]byte, error) +1. ResourceMetricName.MarshalJSON() ([]byte, error) +1. ResourceMetricValue.MarshalJSON() ([]byte, error) +1. RestoreResponseProperties.MarshalJSON() ([]byte, error) +1. SiteConfigurationSnapshotInfoProperties.MarshalJSON() ([]byte, error) +1. SiteInstanceProperties.MarshalJSON() ([]byte, error) +1. SlotDifferenceProperties.MarshalJSON() ([]byte, error) +1. SlotSwapStatus.MarshalJSON() ([]byte, error) +1. SnapshotProperties.MarshalJSON() ([]byte, error) +1. StorageMigrationResponseProperties.MarshalJSON() ([]byte, error) +1. UsageProperties.MarshalJSON() ([]byte, error) diff --git a/services/web/mgmt/2016-09-01/web/_meta.json b/services/web/mgmt/2016-09-01/web/_meta.json index a6ed52c5a775..176f0946ebf2 100644 --- a/services/web/mgmt/2016-09-01/web/_meta.json +++ b/services/web/mgmt/2016-09-01/web/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/web/resource-manager/readme.md", "tag": "package-2016-09", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/web/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/web/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/web/mgmt/2016-09-01/web/models.go b/services/web/mgmt/2016-09-01/web/models.go index 9edcf71f6654..b153764265b1 100644 --- a/services/web/mgmt/2016-09-01/web/models.go +++ b/services/web/mgmt/2016-09-01/web/models.go @@ -169,6 +169,12 @@ type AnalysisDefinitionProperties struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for AnalysisDefinitionProperties. +func (ad AnalysisDefinitionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // APIDefinitionInfo information about the formal API definition for the app. type APIDefinitionInfo struct { // URL - The URL of the API definition. @@ -4387,6 +4393,12 @@ type BackupItemProperties struct { WebsiteSizeInBytes *int64 `json:"websiteSizeInBytes,omitempty"` } +// MarshalJSON is the custom marshaler for BackupItemProperties. +func (bi BackupItemProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BackupRequest description of a backup which will be performed. type BackupRequest struct { autorest.Response `json:"-"` @@ -5112,6 +5124,12 @@ type CertificateDetails struct { RawData *string `json:"rawData,omitempty"` } +// MarshalJSON is the custom marshaler for CertificateDetails. +func (cd CertificateDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificateEmail SSL certificate email. type CertificateEmail struct { // CertificateEmailProperties - CertificateEmail resource specific properties @@ -6551,6 +6569,12 @@ type DefaultErrorResponse struct { Error *DefaultErrorResponseError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for DefaultErrorResponse. +func (der DefaultErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DefaultErrorResponseError error model. type DefaultErrorResponseError struct { // Code - READ-ONLY; Standardized string to programmatically identify the error. @@ -6583,6 +6607,12 @@ type DefaultErrorResponseErrorDetailsItem struct { Target *string `json:"target,omitempty"` } +// MarshalJSON is the custom marshaler for DefaultErrorResponseErrorDetailsItem. +func (derI DefaultErrorResponseErrorDetailsItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeletedSite a deleted app. type DeletedSite struct { // ID - Numeric id for the deleted site @@ -7185,6 +7215,12 @@ type DetectorDefinitionProperties struct { IsEnabled *bool `json:"isEnabled,omitempty"` } +// MarshalJSON is the custom marshaler for DetectorDefinitionProperties. +func (dd DetectorDefinitionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DetectorInfo definition of Detector type DetectorInfo struct { // Description - READ-ONLY; Short description of the detector and its purpose @@ -7197,6 +7233,12 @@ type DetectorInfo struct { SupportTopicID *string `json:"supportTopicId,omitempty"` } +// MarshalJSON is the custom marshaler for DetectorInfo. +func (di DetectorInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DetectorResponse class representing Response from Detector type DetectorResponse struct { autorest.Response `json:"-"` @@ -7990,6 +8032,12 @@ type DiagnosticCategoryProperties struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for DiagnosticCategoryProperties. +func (dc DiagnosticCategoryProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DiagnosticData set of data with rendering instructions type DiagnosticData struct { // Table - Data in table form @@ -8622,6 +8670,12 @@ type DomainControlCenterSsoRequest struct { PostParameterValue *string `json:"postParameterValue,omitempty"` } +// MarshalJSON is the custom marshaler for DomainControlCenterSsoRequest. +func (dccsr DomainControlCenterSsoRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DomainOwnershipIdentifier domain ownership Identifier. type DomainOwnershipIdentifier struct { autorest.Response `json:"-"` @@ -9922,6 +9976,12 @@ type GeoRegionProperties struct { DisplayName *string `json:"displayName,omitempty"` } +// MarshalJSON is the custom marshaler for GeoRegionProperties. +func (gr GeoRegionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GlobalCsmSkuDescription a Global SKU Description. type GlobalCsmSkuDescription struct { // Name - Name of the resource SKU. @@ -10687,6 +10747,12 @@ type HybridConnectionKeyProperties struct { SendKeyValue *string `json:"sendKeyValue,omitempty"` } +// MarshalJSON is the custom marshaler for HybridConnectionKeyProperties. +func (hck HybridConnectionKeyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HybridConnectionLimits hybrid Connection limits contract. This is used to return the plan limits of // Hybrid Connections. type HybridConnectionLimits struct { @@ -10783,6 +10849,12 @@ type HybridConnectionLimitsProperties struct { Maximum *int32 `json:"maximum,omitempty"` } +// MarshalJSON is the custom marshaler for HybridConnectionLimitsProperties. +func (hcl HybridConnectionLimitsProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HybridConnectionProperties hybridConnection resource specific properties type HybridConnectionProperties struct { // ServiceBusNamespace - The name of the Service Bus namespace. @@ -11559,6 +11631,12 @@ type MetricDefinitionProperties struct { DisplayName *string `json:"displayName,omitempty"` } +// MarshalJSON is the custom marshaler for MetricDefinitionProperties. +func (md MetricDefinitionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricSpecification definition of a single resource metric. type MetricSpecification struct { Name *string `json:"name,omitempty"` @@ -11769,6 +11847,12 @@ type MigrateMySQLStatusProperties struct { LocalMySQLEnabled *bool `json:"localMySqlEnabled,omitempty"` } +// MarshalJSON is the custom marshaler for MigrateMySQLStatusProperties. +func (mmss MigrateMySQLStatusProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MSDeploy mSDeploy ARM PUT information type MSDeploy struct { // MSDeployCore - Core resource properties @@ -12001,12 +12085,24 @@ type MSDeployLogEntry struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for MSDeployLogEntry. +func (mdle MSDeployLogEntry) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MSDeployLogProperties mSDeployLog resource specific properties type MSDeployLogProperties struct { // Entries - READ-ONLY; List of log entry messages Entries *[]MSDeployLogEntry `json:"entries,omitempty"` } +// MarshalJSON is the custom marshaler for MSDeployLogProperties. +func (mdl MSDeployLogProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MSDeployStatus mSDeploy ARM response type MSDeployStatus struct { autorest.Response `json:"-"` @@ -12108,6 +12204,12 @@ type MSDeployStatusProperties struct { Complete *bool `json:"complete,omitempty"` } +// MarshalJSON is the custom marshaler for MSDeployStatusProperties. +func (mds MSDeployStatusProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NameIdentifier identifies an object. type NameIdentifier struct { // Name - Name of the object. @@ -12402,6 +12504,12 @@ type NetworkFeaturesProperties struct { HybridConnectionsV2 *[]HybridConnection `json:"hybridConnectionsV2,omitempty"` } +// MarshalJSON is the custom marshaler for NetworkFeaturesProperties. +func (nf NetworkFeaturesProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Operation an operation on a resource. type Operation struct { autorest.Response `json:"-"` @@ -15726,6 +15834,12 @@ type ResourceMetric struct { Properties *[]ResourceMetricProperty `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceMetric. +func (rm ResourceMetric) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceMetricAvailability metrics availability and retention. type ResourceMetricAvailability struct { // TimeGrain - READ-ONLY; Time grain . @@ -15734,6 +15848,12 @@ type ResourceMetricAvailability struct { Retention *string `json:"retention,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceMetricAvailability. +func (rma ResourceMetricAvailability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceMetricCollection collection of metric responses. type ResourceMetricCollection struct { autorest.Response `json:"-"` @@ -16189,6 +16309,12 @@ type ResourceMetricName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceMetricName. +func (rmn ResourceMetricName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceMetricProperty resource metric property. type ResourceMetricProperty struct { // Key - Key for resource metric property. @@ -16215,6 +16341,12 @@ type ResourceMetricValue struct { Properties *[]ResourceMetricProperty `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceMetricValue. +func (rmv ResourceMetricValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceNameAvailability information regarding availability of a resource name. type ResourceNameAvailability struct { autorest.Response `json:"-"` @@ -16449,6 +16581,12 @@ type RestoreResponseProperties struct { OperationID *string `json:"operationId,omitempty"` } +// MarshalJSON is the custom marshaler for RestoreResponseProperties. +func (rr RestoreResponseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ServiceSpecification resource metrics service provided by Microsoft.Insights resource provider. type ServiceSpecification struct { MetricSpecifications *[]MetricSpecification `json:"metricSpecifications,omitempty"` @@ -17540,6 +17678,12 @@ type SiteConfigurationSnapshotInfoProperties struct { ID *int32 `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for SiteConfigurationSnapshotInfoProperties. +func (scsi SiteConfigurationSnapshotInfoProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SiteExtensionInfo site Extension Information. type SiteExtensionInfo struct { autorest.Response `json:"-"` @@ -17931,6 +18075,12 @@ type SiteInstanceProperties struct { Name *string `json:"name,omitempty"` } +// MarshalJSON is the custom marshaler for SiteInstanceProperties. +func (si SiteInstanceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SiteLimits metric limits set on an app. type SiteLimits struct { // MaxPercentageCPU - Maximum allowed CPU usage percentage. @@ -19187,6 +19337,12 @@ type SlotDifferenceProperties struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for SlotDifferenceProperties. +func (sd SlotDifferenceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SlotSwapStatus the status of the last successful slot swap operation. type SlotSwapStatus struct { // TimestampUtc - READ-ONLY; The time the last successful slot swap completed. @@ -19197,6 +19353,12 @@ type SlotSwapStatus struct { DestinationSlotName *string `json:"destinationSlotName,omitempty"` } +// MarshalJSON is the custom marshaler for SlotSwapStatus. +func (sss SlotSwapStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SlowRequestsBasedTrigger trigger based on request execution time. type SlowRequestsBasedTrigger struct { // TimeTaken - Time taken. @@ -19467,6 +19629,12 @@ type SnapshotProperties struct { Time *string `json:"time,omitempty"` } +// MarshalJSON is the custom marshaler for SnapshotProperties. +func (s SnapshotProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SnapshotRecoveryRequest details about app recovery operation. type SnapshotRecoveryRequest struct { // SnapshotRecoveryRequestProperties - SnapshotRecoveryRequest resource specific properties @@ -20288,6 +20456,12 @@ type StorageMigrationResponseProperties struct { OperationID *string `json:"operationId,omitempty"` } +// MarshalJSON is the custom marshaler for StorageMigrationResponseProperties. +func (smr StorageMigrationResponseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // String ... type String struct { autorest.Response `json:"-"` @@ -21784,6 +21958,12 @@ type UsageProperties struct { SiteMode *string `json:"siteMode,omitempty"` } +// MarshalJSON is the custom marshaler for UsageProperties. +func (u UsageProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // User user credentials used for publishing activity. type User struct { autorest.Response `json:"-"` diff --git a/services/web/mgmt/2018-02-01/web/CHANGELOG.md b/services/web/mgmt/2018-02-01/web/CHANGELOG.md index 52911e4cc5e4..2dc0112cc358 100644 --- a/services/web/mgmt/2018-02-01/web/CHANGELOG.md +++ b/services/web/mgmt/2018-02-01/web/CHANGELOG.md @@ -1,2 +1,38 @@ # Change History +## Additive Changes + +### New Funcs + +1. AnalysisDefinitionProperties.MarshalJSON() ([]byte, error) +1. BackupItemProperties.MarshalJSON() ([]byte, error) +1. CertificateDetails.MarshalJSON() ([]byte, error) +1. CertificateOrderActionProperties.MarshalJSON() ([]byte, error) +1. DefaultErrorResponse.MarshalJSON() ([]byte, error) +1. DefaultErrorResponseErrorDetailsItem.MarshalJSON() ([]byte, error) +1. DeletedSiteProperties.MarshalJSON() ([]byte, error) +1. DetectorDefinitionProperties.MarshalJSON() ([]byte, error) +1. DetectorInfo.MarshalJSON() ([]byte, error) +1. DiagnosticCategoryProperties.MarshalJSON() ([]byte, error) +1. DomainControlCenterSsoRequest.MarshalJSON() ([]byte, error) +1. GeoRegionProperties.MarshalJSON() ([]byte, error) +1. HybridConnectionKeyProperties.MarshalJSON() ([]byte, error) +1. HybridConnectionLimitsProperties.MarshalJSON() ([]byte, error) +1. MSDeployLogEntry.MarshalJSON() ([]byte, error) +1. MSDeployLogProperties.MarshalJSON() ([]byte, error) +1. MSDeployStatusProperties.MarshalJSON() ([]byte, error) +1. ManagedServiceIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. MetricDefinitionProperties.MarshalJSON() ([]byte, error) +1. MigrateMySQLStatusProperties.MarshalJSON() ([]byte, error) +1. NetworkFeaturesProperties.MarshalJSON() ([]byte, error) +1. ResourceMetric.MarshalJSON() ([]byte, error) +1. ResourceMetricAvailability.MarshalJSON() ([]byte, error) +1. ResourceMetricName.MarshalJSON() ([]byte, error) +1. ResourceMetricValue.MarshalJSON() ([]byte, error) +1. SiteConfigurationSnapshotInfoProperties.MarshalJSON() ([]byte, error) +1. SiteInstanceProperties.MarshalJSON() ([]byte, error) +1. SlotDifferenceProperties.MarshalJSON() ([]byte, error) +1. SlotSwapStatus.MarshalJSON() ([]byte, error) +1. SnapshotProperties.MarshalJSON() ([]byte, error) +1. StorageMigrationResponseProperties.MarshalJSON() ([]byte, error) +1. UsageProperties.MarshalJSON() ([]byte, error) diff --git a/services/web/mgmt/2018-02-01/web/_meta.json b/services/web/mgmt/2018-02-01/web/_meta.json index 8cb5e90c2186..b6b8f5eb1011 100644 --- a/services/web/mgmt/2018-02-01/web/_meta.json +++ b/services/web/mgmt/2018-02-01/web/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/web/resource-manager/readme.md", "tag": "package-2018-02", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/web/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/web/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/web/mgmt/2018-02-01/web/models.go b/services/web/mgmt/2018-02-01/web/models.go index e0653368b3c6..17d77109baef 100644 --- a/services/web/mgmt/2018-02-01/web/models.go +++ b/services/web/mgmt/2018-02-01/web/models.go @@ -169,6 +169,12 @@ type AnalysisDefinitionProperties struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for AnalysisDefinitionProperties. +func (ad AnalysisDefinitionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // APIDefinitionInfo information about the formal API definition for the app. type APIDefinitionInfo struct { // URL - The URL of the API definition. @@ -4890,6 +4896,12 @@ type BackupItemProperties struct { WebsiteSizeInBytes *int64 `json:"websiteSizeInBytes,omitempty"` } +// MarshalJSON is the custom marshaler for BackupItemProperties. +func (bi BackupItemProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BackupRequest description of a backup which will be performed. type BackupRequest struct { autorest.Response `json:"-"` @@ -5615,6 +5627,12 @@ type CertificateDetails struct { RawData *string `json:"rawData,omitempty"` } +// MarshalJSON is the custom marshaler for CertificateDetails. +func (cd CertificateDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificateEmail SSL certificate email. type CertificateEmail struct { // CertificateEmailProperties - CertificateEmail resource specific properties @@ -5803,6 +5821,12 @@ type CertificateOrderActionProperties struct { CreatedAt *date.Time `json:"createdAt,omitempty"` } +// MarshalJSON is the custom marshaler for CertificateOrderActionProperties. +func (coa CertificateOrderActionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificatePatchResource ARM resource for a certificate. type CertificatePatchResource struct { // CertificatePatchResourceProperties - CertificatePatchResource resource specific properties @@ -7063,6 +7087,12 @@ type DefaultErrorResponse struct { Error *DefaultErrorResponseError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for DefaultErrorResponse. +func (der DefaultErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DefaultErrorResponseError error model. type DefaultErrorResponseError struct { // Code - READ-ONLY; Standardized string to programmatically identify the error. @@ -7095,6 +7125,12 @@ type DefaultErrorResponseErrorDetailsItem struct { Target *string `json:"target,omitempty"` } +// MarshalJSON is the custom marshaler for DefaultErrorResponseErrorDetailsItem. +func (derI DefaultErrorResponseErrorDetailsItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeletedAppRestoreRequest details about restoring a deleted app. type DeletedAppRestoreRequest struct { // DeletedAppRestoreRequestProperties - DeletedAppRestoreRequest resource specific properties @@ -7302,6 +7338,12 @@ type DeletedSiteProperties struct { GeoRegionName *string `json:"geoRegionName,omitempty"` } +// MarshalJSON is the custom marshaler for DeletedSiteProperties. +func (ds DeletedSiteProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeletedWebAppCollection collection of deleted apps. type DeletedWebAppCollection struct { autorest.Response `json:"-"` @@ -7877,6 +7919,12 @@ type DetectorDefinitionProperties struct { IsEnabled *bool `json:"isEnabled,omitempty"` } +// MarshalJSON is the custom marshaler for DetectorDefinitionProperties. +func (dd DetectorDefinitionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DetectorInfo definition of Detector type DetectorInfo struct { // Description - READ-ONLY; Short description of the detector and its purpose @@ -7889,6 +7937,12 @@ type DetectorInfo struct { SupportTopicID *string `json:"supportTopicId,omitempty"` } +// MarshalJSON is the custom marshaler for DetectorInfo. +func (di DetectorInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DetectorResponse class representing Response from Detector type DetectorResponse struct { autorest.Response `json:"-"` @@ -8682,6 +8736,12 @@ type DiagnosticCategoryProperties struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for DiagnosticCategoryProperties. +func (dc DiagnosticCategoryProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DiagnosticData set of data with rendering instructions type DiagnosticData struct { // Table - Data in table form @@ -9314,6 +9374,12 @@ type DomainControlCenterSsoRequest struct { PostParameterValue *string `json:"postParameterValue,omitempty"` } +// MarshalJSON is the custom marshaler for DomainControlCenterSsoRequest. +func (dccsr DomainControlCenterSsoRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DomainOwnershipIdentifier domain ownership Identifier. type DomainOwnershipIdentifier struct { autorest.Response `json:"-"` @@ -10655,6 +10721,12 @@ type GeoRegionProperties struct { DisplayName *string `json:"displayName,omitempty"` } +// MarshalJSON is the custom marshaler for GeoRegionProperties. +func (gr GeoRegionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GlobalCsmSkuDescription a Global SKU Description. type GlobalCsmSkuDescription struct { // Name - Name of the resource SKU. @@ -11446,6 +11518,12 @@ type HybridConnectionKeyProperties struct { SendKeyValue *string `json:"sendKeyValue,omitempty"` } +// MarshalJSON is the custom marshaler for HybridConnectionKeyProperties. +func (hck HybridConnectionKeyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HybridConnectionLimits hybrid Connection limits contract. This is used to return the plan limits of // Hybrid Connections. type HybridConnectionLimits struct { @@ -11542,6 +11620,12 @@ type HybridConnectionLimitsProperties struct { Maximum *int32 `json:"maximum,omitempty"` } +// MarshalJSON is the custom marshaler for HybridConnectionLimitsProperties. +func (hcl HybridConnectionLimitsProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HybridConnectionProperties hybridConnection resource specific properties type HybridConnectionProperties struct { // ServiceBusNamespace - The name of the Service Bus namespace. @@ -12435,6 +12519,12 @@ type ManagedServiceIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedServiceIdentityUserAssignedIdentitiesValue. +func (msiAiv ManagedServiceIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricAvailabilily metric availability and retention. type MetricAvailabilily struct { // TimeGrain - Time grain. @@ -12548,6 +12638,12 @@ type MetricDefinitionProperties struct { DisplayName *string `json:"displayName,omitempty"` } +// MarshalJSON is the custom marshaler for MetricDefinitionProperties. +func (md MetricDefinitionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricSpecification definition of a single resource metric. type MetricSpecification struct { Name *string `json:"name,omitempty"` @@ -12758,6 +12854,12 @@ type MigrateMySQLStatusProperties struct { LocalMySQLEnabled *bool `json:"localMySqlEnabled,omitempty"` } +// MarshalJSON is the custom marshaler for MigrateMySQLStatusProperties. +func (mmss MigrateMySQLStatusProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MSDeploy mSDeploy ARM PUT information type MSDeploy struct { // MSDeployCore - Core resource properties @@ -12990,12 +13092,24 @@ type MSDeployLogEntry struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for MSDeployLogEntry. +func (mdle MSDeployLogEntry) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MSDeployLogProperties mSDeployLog resource specific properties type MSDeployLogProperties struct { // Entries - READ-ONLY; List of log entry messages Entries *[]MSDeployLogEntry `json:"entries,omitempty"` } +// MarshalJSON is the custom marshaler for MSDeployLogProperties. +func (mdl MSDeployLogProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MSDeployStatus mSDeploy ARM response type MSDeployStatus struct { autorest.Response `json:"-"` @@ -13097,6 +13211,12 @@ type MSDeployStatusProperties struct { Complete *bool `json:"complete,omitempty"` } +// MarshalJSON is the custom marshaler for MSDeployStatusProperties. +func (mds MSDeployStatusProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NameIdentifier identifies an object. type NameIdentifier struct { // Name - Name of the object. @@ -13391,6 +13511,12 @@ type NetworkFeaturesProperties struct { HybridConnectionsV2 *[]HybridConnection `json:"hybridConnectionsV2,omitempty"` } +// MarshalJSON is the custom marshaler for NetworkFeaturesProperties. +func (nf NetworkFeaturesProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NetworkTrace network trace type NetworkTrace struct { // Path - Local file path for the captured network trace file. @@ -17235,6 +17361,12 @@ type ResourceMetric struct { Properties *[]ResourceMetricProperty `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceMetric. +func (rm ResourceMetric) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceMetricAvailability metrics availability and retention. type ResourceMetricAvailability struct { // TimeGrain - READ-ONLY; Time grain . @@ -17243,6 +17375,12 @@ type ResourceMetricAvailability struct { Retention *string `json:"retention,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceMetricAvailability. +func (rma ResourceMetricAvailability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceMetricCollection collection of metric responses. type ResourceMetricCollection struct { autorest.Response `json:"-"` @@ -17694,6 +17832,12 @@ type ResourceMetricName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceMetricName. +func (rmn ResourceMetricName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceMetricProperty resource metric property. type ResourceMetricProperty struct { // Key - Key for resource metric property. @@ -17720,6 +17864,12 @@ type ResourceMetricValue struct { Properties *[]ResourceMetricProperty `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceMetricValue. +func (rmv ResourceMetricValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceNameAvailability information regarding availability of a resource name. type ResourceNameAvailability struct { autorest.Response `json:"-"` @@ -18999,6 +19149,12 @@ type SiteConfigurationSnapshotInfoProperties struct { SnapshotID *int32 `json:"snapshotId,omitempty"` } +// MarshalJSON is the custom marshaler for SiteConfigurationSnapshotInfoProperties. +func (scsi SiteConfigurationSnapshotInfoProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SiteExtensionInfo site Extension Information. type SiteExtensionInfo struct { autorest.Response `json:"-"` @@ -19389,6 +19545,12 @@ type SiteInstanceProperties struct { SiteInstanceName *string `json:"siteInstanceName,omitempty"` } +// MarshalJSON is the custom marshaler for SiteInstanceProperties. +func (si SiteInstanceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SiteLimits metric limits set on an app. type SiteLimits struct { // MaxPercentageCPU - Maximum allowed CPU usage percentage. @@ -20705,6 +20867,12 @@ type SlotDifferenceProperties struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for SlotDifferenceProperties. +func (sd SlotDifferenceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SlotSwapStatus the status of the last successful slot swap operation. type SlotSwapStatus struct { // TimestampUtc - READ-ONLY; The time the last successful slot swap completed. @@ -20715,6 +20883,12 @@ type SlotSwapStatus struct { DestinationSlotName *string `json:"destinationSlotName,omitempty"` } +// MarshalJSON is the custom marshaler for SlotSwapStatus. +func (sss SlotSwapStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SlowRequestsBasedTrigger trigger based on request execution time. type SlowRequestsBasedTrigger struct { // TimeTaken - Time taken. @@ -20985,6 +21159,12 @@ type SnapshotProperties struct { Time *string `json:"time,omitempty"` } +// MarshalJSON is the custom marshaler for SnapshotProperties. +func (s SnapshotProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SnapshotRecoverySource specifies the web app that snapshot contents will be retrieved from. type SnapshotRecoverySource struct { // Location - Geographical location of the source web app, e.g. SouthEastAsia, SouthCentralUS @@ -21813,6 +21993,12 @@ type StorageMigrationResponseProperties struct { OperationID *string `json:"operationId,omitempty"` } +// MarshalJSON is the custom marshaler for StorageMigrationResponseProperties. +func (smr StorageMigrationResponseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // String ... type String struct { autorest.Response `json:"-"` @@ -23354,6 +23540,12 @@ type UsageProperties struct { SiteMode *string `json:"siteMode,omitempty"` } +// MarshalJSON is the custom marshaler for UsageProperties. +func (u UsageProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // User user credentials used for publishing activity. type User struct { autorest.Response `json:"-"` diff --git a/services/web/mgmt/2019-08-01/web/CHANGELOG.md b/services/web/mgmt/2019-08-01/web/CHANGELOG.md index 52911e4cc5e4..dfa156a7c5a6 100644 --- a/services/web/mgmt/2019-08-01/web/CHANGELOG.md +++ b/services/web/mgmt/2019-08-01/web/CHANGELOG.md @@ -1,2 +1,40 @@ # Change History +## Additive Changes + +### New Funcs + +1. AnalysisDefinitionProperties.MarshalJSON() ([]byte, error) +1. ArmIDWrapper.MarshalJSON() ([]byte, error) +1. BackupItemProperties.MarshalJSON() ([]byte, error) +1. CertificateDetails.MarshalJSON() ([]byte, error) +1. CertificateOrderActionProperties.MarshalJSON() ([]byte, error) +1. DefaultErrorResponse.MarshalJSON() ([]byte, error) +1. DefaultErrorResponseErrorDetailsItem.MarshalJSON() ([]byte, error) +1. DeletedSiteProperties.MarshalJSON() ([]byte, error) +1. DetectorDefinitionProperties.MarshalJSON() ([]byte, error) +1. DetectorInfo.MarshalJSON() ([]byte, error) +1. DiagnosticCategoryProperties.MarshalJSON() ([]byte, error) +1. DomainControlCenterSsoRequest.MarshalJSON() ([]byte, error) +1. GeoRegionProperties.MarshalJSON() ([]byte, error) +1. HybridConnectionKeyProperties.MarshalJSON() ([]byte, error) +1. HybridConnectionLimitsProperties.MarshalJSON() ([]byte, error) +1. MSDeployLogEntry.MarshalJSON() ([]byte, error) +1. MSDeployLogProperties.MarshalJSON() ([]byte, error) +1. MSDeployStatusProperties.MarshalJSON() ([]byte, error) +1. ManagedServiceIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. MigrateMySQLStatusProperties.MarshalJSON() ([]byte, error) +1. NetworkFeaturesProperties.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceProperties.MarshalJSON() ([]byte, error) +1. ResourceMetricAvailability.MarshalJSON() ([]byte, error) +1. SiteConfigurationSnapshotInfoProperties.MarshalJSON() ([]byte, error) +1. SiteInstanceProperties.MarshalJSON() ([]byte, error) +1. SlotDifferenceProperties.MarshalJSON() ([]byte, error) +1. SlotSwapStatus.MarshalJSON() ([]byte, error) +1. SnapshotProperties.MarshalJSON() ([]byte, error) +1. StaticSiteBuildARMResourceProperties.MarshalJSON() ([]byte, error) +1. StaticSiteCustomDomainOverviewARMResourceProperties.MarshalJSON() ([]byte, error) +1. StaticSiteFunctionOverviewARMResourceProperties.MarshalJSON() ([]byte, error) +1. StaticSiteUserInvitationResponseResourceProperties.MarshalJSON() ([]byte, error) +1. StorageMigrationResponseProperties.MarshalJSON() ([]byte, error) +1. UsageProperties.MarshalJSON() ([]byte, error) diff --git a/services/web/mgmt/2019-08-01/web/_meta.json b/services/web/mgmt/2019-08-01/web/_meta.json index d71d057555d9..4e9ef1de7c09 100644 --- a/services/web/mgmt/2019-08-01/web/_meta.json +++ b/services/web/mgmt/2019-08-01/web/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/web/resource-manager/readme.md", "tag": "package-2019-08", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/web/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-08 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/web/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/web/mgmt/2019-08-01/web/models.go b/services/web/mgmt/2019-08-01/web/models.go index 345bfab89172..6eb5d846b5f2 100644 --- a/services/web/mgmt/2019-08-01/web/models.go +++ b/services/web/mgmt/2019-08-01/web/models.go @@ -256,6 +256,12 @@ type AnalysisDefinitionProperties struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for AnalysisDefinitionProperties. +func (ad AnalysisDefinitionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // APIDefinitionInfo information about the formal API definition for the app. type APIDefinitionInfo struct { // URL - The URL of the API definition. @@ -4830,6 +4836,12 @@ type ArmIDWrapper struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for ArmIDWrapper. +func (aiw ArmIDWrapper) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AutoHealActions actions which to take by the auto-heal module when a rule is triggered. type AutoHealActions struct { // ActionType - Predefined action to be taken. Possible values include: 'Recycle', 'LogEvent', 'CustomAction' @@ -5253,6 +5265,12 @@ type BackupItemProperties struct { WebsiteSizeInBytes *int64 `json:"websiteSizeInBytes,omitempty"` } +// MarshalJSON is the custom marshaler for BackupItemProperties. +func (bi BackupItemProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BackupRequest description of a backup which will be performed. type BackupRequest struct { autorest.Response `json:"-"` @@ -5978,6 +5996,12 @@ type CertificateDetails struct { RawData *string `json:"rawData,omitempty"` } +// MarshalJSON is the custom marshaler for CertificateDetails. +func (cd CertificateDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificateEmail SSL certificate email. type CertificateEmail struct { // CertificateEmailProperties - CertificateEmail resource specific properties @@ -6166,6 +6190,12 @@ type CertificateOrderActionProperties struct { CreatedAt *date.Time `json:"createdAt,omitempty"` } +// MarshalJSON is the custom marshaler for CertificateOrderActionProperties. +func (coa CertificateOrderActionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificatePatchResource ARM resource for a certificate. type CertificatePatchResource struct { // CertificatePatchResourceProperties - CertificatePatchResource resource specific properties @@ -7691,6 +7721,12 @@ type DefaultErrorResponse struct { Error *DefaultErrorResponseError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for DefaultErrorResponse. +func (der DefaultErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DefaultErrorResponseError error model. type DefaultErrorResponseError struct { // Code - READ-ONLY; Standardized string to programmatically identify the error. @@ -7723,6 +7759,12 @@ type DefaultErrorResponseErrorDetailsItem struct { Target *string `json:"target,omitempty"` } +// MarshalJSON is the custom marshaler for DefaultErrorResponseErrorDetailsItem. +func (derI DefaultErrorResponseErrorDetailsItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeletedAppRestoreRequest details about restoring a deleted app. type DeletedAppRestoreRequest struct { // DeletedAppRestoreRequestProperties - DeletedAppRestoreRequest resource specific properties @@ -7930,6 +7972,12 @@ type DeletedSiteProperties struct { GeoRegionName *string `json:"geoRegionName,omitempty"` } +// MarshalJSON is the custom marshaler for DeletedSiteProperties. +func (ds DeletedSiteProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeletedWebAppCollection collection of deleted apps. type DeletedWebAppCollection struct { autorest.Response `json:"-"` @@ -8506,6 +8554,12 @@ type DetectorDefinitionProperties struct { IsEnabled *bool `json:"isEnabled,omitempty"` } +// MarshalJSON is the custom marshaler for DetectorDefinitionProperties. +func (dd DetectorDefinitionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DetectorInfo definition of Detector type DetectorInfo struct { // Description - READ-ONLY; Short description of the detector and its purpose @@ -8518,6 +8572,12 @@ type DetectorInfo struct { SupportTopicID *string `json:"supportTopicId,omitempty"` } +// MarshalJSON is the custom marshaler for DetectorInfo. +func (di DetectorInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DetectorResponse class representing Response from Detector type DetectorResponse struct { autorest.Response `json:"-"` @@ -9311,6 +9371,12 @@ type DiagnosticCategoryProperties struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for DiagnosticCategoryProperties. +func (dc DiagnosticCategoryProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DiagnosticData set of data with rendering instructions type DiagnosticData struct { // Table - Data in table form @@ -9943,6 +10009,12 @@ type DomainControlCenterSsoRequest struct { PostParameterValue *string `json:"postParameterValue,omitempty"` } +// MarshalJSON is the custom marshaler for DomainControlCenterSsoRequest. +func (dccsr DomainControlCenterSsoRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DomainOwnershipIdentifier domain ownership Identifier. type DomainOwnershipIdentifier struct { autorest.Response `json:"-"` @@ -11278,6 +11350,12 @@ type GeoRegionProperties struct { OrgDomain *string `json:"orgDomain,omitempty"` } +// MarshalJSON is the custom marshaler for GeoRegionProperties. +func (gr GeoRegionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GlobalCsmSkuDescription a Global SKU Description. type GlobalCsmSkuDescription struct { // Name - Name of the resource SKU. @@ -12069,6 +12147,12 @@ type HybridConnectionKeyProperties struct { SendKeyValue *string `json:"sendKeyValue,omitempty"` } +// MarshalJSON is the custom marshaler for HybridConnectionKeyProperties. +func (hck HybridConnectionKeyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HybridConnectionLimits hybrid Connection limits contract. This is used to return the plan limits of // Hybrid Connections. type HybridConnectionLimits struct { @@ -12165,6 +12249,12 @@ type HybridConnectionLimitsProperties struct { Maximum *int32 `json:"maximum,omitempty"` } +// MarshalJSON is the custom marshaler for HybridConnectionLimitsProperties. +func (hcl HybridConnectionLimitsProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HybridConnectionProperties hybridConnection resource specific properties type HybridConnectionProperties struct { // ServiceBusNamespace - The name of the Service Bus namespace. @@ -13246,6 +13336,12 @@ type ManagedServiceIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedServiceIdentityUserAssignedIdentitiesValue. +func (msiAiv ManagedServiceIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricAvailability retention policy of a resource metric. type MetricAvailability struct { TimeGrain *string `json:"timeGrain,omitempty"` @@ -13463,6 +13559,12 @@ type MigrateMySQLStatusProperties struct { LocalMySQLEnabled *bool `json:"localMySqlEnabled,omitempty"` } +// MarshalJSON is the custom marshaler for MigrateMySQLStatusProperties. +func (mmss MigrateMySQLStatusProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MSDeploy mSDeploy ARM PUT information type MSDeploy struct { // MSDeployCore - Core resource properties @@ -13695,12 +13797,24 @@ type MSDeployLogEntry struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for MSDeployLogEntry. +func (mdle MSDeployLogEntry) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MSDeployLogProperties mSDeployLog resource specific properties type MSDeployLogProperties struct { // Entries - READ-ONLY; List of log entry messages Entries *[]MSDeployLogEntry `json:"entries,omitempty"` } +// MarshalJSON is the custom marshaler for MSDeployLogProperties. +func (mdl MSDeployLogProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MSDeployStatus mSDeploy ARM response type MSDeployStatus struct { autorest.Response `json:"-"` @@ -13802,6 +13916,12 @@ type MSDeployStatusProperties struct { Complete *bool `json:"complete,omitempty"` } +// MarshalJSON is the custom marshaler for MSDeployStatusProperties. +func (mds MSDeployStatusProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NameIdentifier identifies an object. type NameIdentifier struct { // Name - Name of the object. @@ -14096,6 +14216,12 @@ type NetworkFeaturesProperties struct { HybridConnectionsV2 *[]HybridConnection `json:"hybridConnectionsV2,omitempty"` } +// MarshalJSON is the custom marshaler for NetworkFeaturesProperties. +func (nf NetworkFeaturesProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NetworkTrace network trace type NetworkTrace struct { // Path - Local file path for the captured network trace file. @@ -15337,6 +15463,12 @@ type PrivateLinkResourceProperties struct { RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. +func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkResourcesWrapper wrapper for a collection of private link resources type PrivateLinkResourcesWrapper struct { autorest.Response `json:"-"` @@ -18155,6 +18287,12 @@ type ResourceMetricAvailability struct { Retention *string `json:"retention,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceMetricAvailability. +func (rma ResourceMetricAvailability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceMetricDefinition metadata for the metrics. type ResourceMetricDefinition struct { // ResourceMetricDefinitionProperties - ResourceMetricDefinition resource specific properties @@ -19729,6 +19867,12 @@ type SiteConfigurationSnapshotInfoProperties struct { SnapshotID *int32 `json:"snapshotId,omitempty"` } +// MarshalJSON is the custom marshaler for SiteConfigurationSnapshotInfoProperties. +func (scsi SiteConfigurationSnapshotInfoProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SiteExtensionInfo site Extension Information. type SiteExtensionInfo struct { autorest.Response `json:"-"` @@ -20119,6 +20263,12 @@ type SiteInstanceProperties struct { SiteInstanceName *string `json:"siteInstanceName,omitempty"` } +// MarshalJSON is the custom marshaler for SiteInstanceProperties. +func (si SiteInstanceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SiteInstanceStatus ... type SiteInstanceStatus struct { autorest.Response `json:"-"` @@ -21546,6 +21696,12 @@ type SlotDifferenceProperties struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for SlotDifferenceProperties. +func (sd SlotDifferenceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SlotSwapStatus the status of the last successful slot swap operation. type SlotSwapStatus struct { // TimestampUtc - READ-ONLY; The time the last successful slot swap completed. @@ -21556,6 +21712,12 @@ type SlotSwapStatus struct { DestinationSlotName *string `json:"destinationSlotName,omitempty"` } +// MarshalJSON is the custom marshaler for SlotSwapStatus. +func (sss SlotSwapStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SlowRequestsBasedTrigger trigger based on request execution time. type SlowRequestsBasedTrigger struct { // TimeTaken - Time taken. @@ -21826,6 +21988,12 @@ type SnapshotProperties struct { Time *string `json:"time,omitempty"` } +// MarshalJSON is the custom marshaler for SnapshotProperties. +func (s SnapshotProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SnapshotRecoverySource specifies the web app that snapshot contents will be retrieved from. type SnapshotRecoverySource struct { // Location - Geographical location of the source web app, e.g. SouthEastAsia, SouthCentralUS @@ -22722,6 +22890,12 @@ type StaticSiteBuildARMResourceProperties struct { Status BuildStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for StaticSiteBuildARMResourceProperties. +func (ssbar StaticSiteBuildARMResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StaticSiteBuildCollection collection of static site builds. type StaticSiteBuildCollection struct { autorest.Response `json:"-"` @@ -23165,6 +23339,12 @@ type StaticSiteCustomDomainOverviewARMResourceProperties struct { CreatedOn *date.Time `json:"createdOn,omitempty"` } +// MarshalJSON is the custom marshaler for StaticSiteCustomDomainOverviewARMResourceProperties. +func (sscdoar StaticSiteCustomDomainOverviewARMResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StaticSiteCustomDomainOverviewCollection collection of static site custom domains. type StaticSiteCustomDomainOverviewCollection struct { autorest.Response `json:"-"` @@ -23430,6 +23610,12 @@ type StaticSiteFunctionOverviewARMResourceProperties struct { TriggerType TriggerTypes `json:"triggerType,omitempty"` } +// MarshalJSON is the custom marshaler for StaticSiteFunctionOverviewARMResourceProperties. +func (ssfoar StaticSiteFunctionOverviewARMResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StaticSiteFunctionOverviewCollection collection of static site functions. type StaticSiteFunctionOverviewCollection struct { autorest.Response `json:"-"` @@ -24255,6 +24441,12 @@ type StaticSiteUserInvitationResponseResourceProperties struct { InvitationURL *string `json:"invitationUrl,omitempty"` } +// MarshalJSON is the custom marshaler for StaticSiteUserInvitationResponseResourceProperties. +func (ssuirr StaticSiteUserInvitationResponseResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StatusCodesBasedTrigger trigger based on status code. type StatusCodesBasedTrigger struct { // Status - HTTP status code. @@ -24460,6 +24652,12 @@ type StorageMigrationResponseProperties struct { OperationID *string `json:"operationId,omitempty"` } +// MarshalJSON is the custom marshaler for StorageMigrationResponseProperties. +func (smr StorageMigrationResponseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // String ... type String struct { autorest.Response `json:"-"` @@ -26001,6 +26199,12 @@ type UsageProperties struct { SiteMode *string `json:"siteMode,omitempty"` } +// MarshalJSON is the custom marshaler for UsageProperties. +func (u UsageProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // User user credentials used for publishing activity. type User struct { autorest.Response `json:"-"` diff --git a/services/web/mgmt/2020-06-01/web/CHANGELOG.md b/services/web/mgmt/2020-06-01/web/CHANGELOG.md index 52911e4cc5e4..76374ce83613 100644 --- a/services/web/mgmt/2020-06-01/web/CHANGELOG.md +++ b/services/web/mgmt/2020-06-01/web/CHANGELOG.md @@ -1,2 +1,40 @@ # Change History +## Additive Changes + +### New Funcs + +1. AnalysisDefinitionProperties.MarshalJSON() ([]byte, error) +1. ArmIDWrapper.MarshalJSON() ([]byte, error) +1. BackupItemProperties.MarshalJSON() ([]byte, error) +1. CertificateDetails.MarshalJSON() ([]byte, error) +1. CertificateOrderActionProperties.MarshalJSON() ([]byte, error) +1. DefaultErrorResponse.MarshalJSON() ([]byte, error) +1. DefaultErrorResponseErrorDetailsItem.MarshalJSON() ([]byte, error) +1. DeletedSiteProperties.MarshalJSON() ([]byte, error) +1. DetectorDefinitionProperties.MarshalJSON() ([]byte, error) +1. DetectorInfo.MarshalJSON() ([]byte, error) +1. DiagnosticCategoryProperties.MarshalJSON() ([]byte, error) +1. DomainControlCenterSsoRequest.MarshalJSON() ([]byte, error) +1. GeoRegionProperties.MarshalJSON() ([]byte, error) +1. HybridConnectionKeyProperties.MarshalJSON() ([]byte, error) +1. HybridConnectionLimitsProperties.MarshalJSON() ([]byte, error) +1. MSDeployLogEntry.MarshalJSON() ([]byte, error) +1. MSDeployLogProperties.MarshalJSON() ([]byte, error) +1. MSDeployStatusProperties.MarshalJSON() ([]byte, error) +1. ManagedServiceIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. MigrateMySQLStatusProperties.MarshalJSON() ([]byte, error) +1. NetworkFeaturesProperties.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceProperties.MarshalJSON() ([]byte, error) +1. ResourceMetricAvailability.MarshalJSON() ([]byte, error) +1. SiteConfigurationSnapshotInfoProperties.MarshalJSON() ([]byte, error) +1. SlotDifferenceProperties.MarshalJSON() ([]byte, error) +1. SlotSwapStatus.MarshalJSON() ([]byte, error) +1. SnapshotProperties.MarshalJSON() ([]byte, error) +1. StaticSiteBuildARMResourceProperties.MarshalJSON() ([]byte, error) +1. StaticSiteCustomDomainOverviewARMResourceProperties.MarshalJSON() ([]byte, error) +1. StaticSiteFunctionOverviewARMResourceProperties.MarshalJSON() ([]byte, error) +1. StaticSiteUserInvitationResponseResourceProperties.MarshalJSON() ([]byte, error) +1. StaticSitesWorkflowPreviewProperties.MarshalJSON() ([]byte, error) +1. StorageMigrationResponseProperties.MarshalJSON() ([]byte, error) +1. UsageProperties.MarshalJSON() ([]byte, error) diff --git a/services/web/mgmt/2020-06-01/web/_meta.json b/services/web/mgmt/2020-06-01/web/_meta.json index 302528a5cc61..5e55181e7f01 100644 --- a/services/web/mgmt/2020-06-01/web/_meta.json +++ b/services/web/mgmt/2020-06-01/web/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/web/resource-manager/readme.md", "tag": "package-2020-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/web/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/web/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/web/mgmt/2020-06-01/web/models.go b/services/web/mgmt/2020-06-01/web/models.go index a580805686ef..288a8c398d5e 100644 --- a/services/web/mgmt/2020-06-01/web/models.go +++ b/services/web/mgmt/2020-06-01/web/models.go @@ -347,6 +347,12 @@ type AnalysisDefinitionProperties struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for AnalysisDefinitionProperties. +func (ad AnalysisDefinitionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // APIDefinitionInfo information about the formal API definition for the app. type APIDefinitionInfo struct { // URL - The URL of the API definition. @@ -4996,6 +5002,12 @@ type ArmIDWrapper struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for ArmIDWrapper. +func (aiw ArmIDWrapper) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AuthPlatform ... type AuthPlatform struct { // AuthPlatformProperties - AuthPlatform resource specific properties @@ -5885,6 +5897,12 @@ type BackupItemProperties struct { WebsiteSizeInBytes *int64 `json:"websiteSizeInBytes,omitempty"` } +// MarshalJSON is the custom marshaler for BackupItemProperties. +func (bi BackupItemProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BackupRequest description of a backup which will be performed. type BackupRequest struct { autorest.Response `json:"-"` @@ -6701,6 +6719,12 @@ type CertificateDetails struct { RawData *string `json:"rawData,omitempty"` } +// MarshalJSON is the custom marshaler for CertificateDetails. +func (cd CertificateDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificateEmail SSL certificate email. type CertificateEmail struct { // CertificateEmailProperties - CertificateEmail resource specific properties @@ -6889,6 +6913,12 @@ type CertificateOrderActionProperties struct { CreatedAt *date.Time `json:"createdAt,omitempty"` } +// MarshalJSON is the custom marshaler for CertificateOrderActionProperties. +func (coa CertificateOrderActionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificatePatchResource ARM resource for a certificate. type CertificatePatchResource struct { // CertificatePatchResourceProperties - CertificatePatchResource resource specific properties @@ -8692,6 +8722,12 @@ type DefaultErrorResponse struct { Error *DefaultErrorResponseError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for DefaultErrorResponse. +func (der DefaultErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DefaultErrorResponseError error model. type DefaultErrorResponseError struct { // Code - READ-ONLY; Standardized string to programmatically identify the error. @@ -8724,6 +8760,12 @@ type DefaultErrorResponseErrorDetailsItem struct { Target *string `json:"target,omitempty"` } +// MarshalJSON is the custom marshaler for DefaultErrorResponseErrorDetailsItem. +func (derI DefaultErrorResponseErrorDetailsItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeletedAppRestoreRequest details about restoring a deleted app. type DeletedAppRestoreRequest struct { // DeletedAppRestoreRequestProperties - DeletedAppRestoreRequest resource specific properties @@ -8931,6 +8973,12 @@ type DeletedSiteProperties struct { GeoRegionName *string `json:"geoRegionName,omitempty"` } +// MarshalJSON is the custom marshaler for DeletedSiteProperties. +func (ds DeletedSiteProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeletedWebAppCollection collection of deleted apps. type DeletedWebAppCollection struct { autorest.Response `json:"-"` @@ -9507,6 +9555,12 @@ type DetectorDefinitionProperties struct { IsEnabled *bool `json:"isEnabled,omitempty"` } +// MarshalJSON is the custom marshaler for DetectorDefinitionProperties. +func (dd DetectorDefinitionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DetectorInfo definition of Detector type DetectorInfo struct { // Description - READ-ONLY; Short description of the detector and its purpose @@ -9519,6 +9573,12 @@ type DetectorInfo struct { SupportTopicID *string `json:"supportTopicId,omitempty"` } +// MarshalJSON is the custom marshaler for DetectorInfo. +func (di DetectorInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DetectorResponse class representing Response from Detector type DetectorResponse struct { autorest.Response `json:"-"` @@ -10312,6 +10372,12 @@ type DiagnosticCategoryProperties struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for DiagnosticCategoryProperties. +func (dc DiagnosticCategoryProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DiagnosticData set of data with rendering instructions type DiagnosticData struct { // Table - Data in table form @@ -10944,6 +11010,12 @@ type DomainControlCenterSsoRequest struct { PostParameterValue *string `json:"postParameterValue,omitempty"` } +// MarshalJSON is the custom marshaler for DomainControlCenterSsoRequest. +func (dccsr DomainControlCenterSsoRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DomainOwnershipIdentifier domain ownership Identifier. type DomainOwnershipIdentifier struct { autorest.Response `json:"-"` @@ -12472,6 +12544,12 @@ type GeoRegionProperties struct { OrgDomain *string `json:"orgDomain,omitempty"` } +// MarshalJSON is the custom marshaler for GeoRegionProperties. +func (gr GeoRegionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GitHub ... type GitHub struct { // GitHubProperties - GitHub resource specific properties @@ -13729,6 +13807,12 @@ type HybridConnectionKeyProperties struct { SendKeyValue *string `json:"sendKeyValue,omitempty"` } +// MarshalJSON is the custom marshaler for HybridConnectionKeyProperties. +func (hck HybridConnectionKeyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HybridConnectionLimits hybrid Connection limits contract. This is used to return the plan limits of // Hybrid Connections. type HybridConnectionLimits struct { @@ -13825,6 +13909,12 @@ type HybridConnectionLimitsProperties struct { Maximum *int32 `json:"maximum,omitempty"` } +// MarshalJSON is the custom marshaler for HybridConnectionLimitsProperties. +func (hcl HybridConnectionLimitsProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HybridConnectionProperties hybridConnection resource specific properties type HybridConnectionProperties struct { // ServiceBusNamespace - The name of the Service Bus namespace. @@ -15263,6 +15353,12 @@ type ManagedServiceIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedServiceIdentityUserAssignedIdentitiesValue. +func (msiAiv ManagedServiceIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricAvailability retention policy of a resource metric. type MetricAvailability struct { TimeGrain *string `json:"timeGrain,omitempty"` @@ -15481,6 +15577,12 @@ type MigrateMySQLStatusProperties struct { LocalMySQLEnabled *bool `json:"localMySqlEnabled,omitempty"` } +// MarshalJSON is the custom marshaler for MigrateMySQLStatusProperties. +func (mmss MigrateMySQLStatusProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MSDeploy mSDeploy ARM PUT information type MSDeploy struct { // MSDeployCore - Core resource properties @@ -15713,12 +15815,24 @@ type MSDeployLogEntry struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for MSDeployLogEntry. +func (mdle MSDeployLogEntry) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MSDeployLogProperties mSDeployLog resource specific properties type MSDeployLogProperties struct { // Entries - READ-ONLY; List of log entry messages Entries *[]MSDeployLogEntry `json:"entries,omitempty"` } +// MarshalJSON is the custom marshaler for MSDeployLogProperties. +func (mdl MSDeployLogProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MSDeployStatus mSDeploy ARM response type MSDeployStatus struct { autorest.Response `json:"-"` @@ -15820,6 +15934,12 @@ type MSDeployStatusProperties struct { Complete *bool `json:"complete,omitempty"` } +// MarshalJSON is the custom marshaler for MSDeployStatusProperties. +func (mds MSDeployStatusProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NameIdentifier identifies an object. type NameIdentifier struct { // Name - Name of the object. @@ -16114,6 +16234,12 @@ type NetworkFeaturesProperties struct { HybridConnectionsV2 *[]HybridConnection `json:"hybridConnectionsV2,omitempty"` } +// MarshalJSON is the custom marshaler for NetworkFeaturesProperties. +func (nf NetworkFeaturesProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NetworkTrace network trace type NetworkTrace struct { // Path - Local file path for the captured network trace file. @@ -17820,6 +17946,12 @@ type PrivateLinkResourceProperties struct { RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. +func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkResourcesWrapper wrapper for a collection of private link resources type PrivateLinkResourcesWrapper struct { autorest.Response `json:"-"` @@ -20638,6 +20770,12 @@ type ResourceMetricAvailability struct { Retention *string `json:"retention,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceMetricAvailability. +func (rma ResourceMetricAvailability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceMetricDefinition metadata for the metrics. type ResourceMetricDefinition struct { // ResourceMetricDefinitionProperties - ResourceMetricDefinition resource specific properties @@ -22346,6 +22484,12 @@ type SiteConfigurationSnapshotInfoProperties struct { SnapshotID *int32 `json:"snapshotId,omitempty"` } +// MarshalJSON is the custom marshaler for SiteConfigurationSnapshotInfoProperties. +func (scsi SiteConfigurationSnapshotInfoProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SiteExtensionInfo site Extension Information. type SiteExtensionInfo struct { autorest.Response `json:"-"` @@ -24104,6 +24248,12 @@ type SlotDifferenceProperties struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for SlotDifferenceProperties. +func (sd SlotDifferenceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SlotSwapStatus the status of the last successful slot swap operation. type SlotSwapStatus struct { // TimestampUtc - READ-ONLY; The time the last successful slot swap completed. @@ -24114,6 +24264,12 @@ type SlotSwapStatus struct { DestinationSlotName *string `json:"destinationSlotName,omitempty"` } +// MarshalJSON is the custom marshaler for SlotSwapStatus. +func (sss SlotSwapStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SlowRequestsBasedTrigger trigger based on request execution time. type SlowRequestsBasedTrigger struct { // TimeTaken - Time taken. @@ -24384,6 +24540,12 @@ type SnapshotProperties struct { Time *string `json:"time,omitempty"` } +// MarshalJSON is the custom marshaler for SnapshotProperties. +func (s SnapshotProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SnapshotRecoverySource specifies the web app that snapshot contents will be retrieved from. type SnapshotRecoverySource struct { // Location - Geographical location of the source web app, e.g. SouthEastAsia, SouthCentralUS @@ -25280,6 +25442,12 @@ type StaticSiteBuildARMResourceProperties struct { Status BuildStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for StaticSiteBuildARMResourceProperties. +func (ssbar StaticSiteBuildARMResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StaticSiteBuildCollection collection of static site builds. type StaticSiteBuildCollection struct { autorest.Response `json:"-"` @@ -25723,6 +25891,12 @@ type StaticSiteCustomDomainOverviewARMResourceProperties struct { CreatedOn *date.Time `json:"createdOn,omitempty"` } +// MarshalJSON is the custom marshaler for StaticSiteCustomDomainOverviewARMResourceProperties. +func (sscdoar StaticSiteCustomDomainOverviewARMResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StaticSiteCustomDomainOverviewCollection collection of static site custom domains. type StaticSiteCustomDomainOverviewCollection struct { autorest.Response `json:"-"` @@ -25988,6 +26162,12 @@ type StaticSiteFunctionOverviewARMResourceProperties struct { TriggerType TriggerTypes `json:"triggerType,omitempty"` } +// MarshalJSON is the custom marshaler for StaticSiteFunctionOverviewARMResourceProperties. +func (ssfoar StaticSiteFunctionOverviewARMResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StaticSiteFunctionOverviewCollection collection of static site functions. type StaticSiteFunctionOverviewCollection struct { autorest.Response `json:"-"` @@ -26434,6 +26614,12 @@ type StaticSitesWorkflowPreviewProperties struct { Contents *string `json:"contents,omitempty"` } +// MarshalJSON is the custom marshaler for StaticSitesWorkflowPreviewProperties. +func (sswp StaticSitesWorkflowPreviewProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StaticSitesWorkflowPreviewRequest request entity for previewing the Static Site workflow type StaticSitesWorkflowPreviewRequest struct { // StaticSitesWorkflowPreviewRequestProperties - StaticSitesWorkflowPreviewRequest resource specific properties @@ -27005,6 +27191,12 @@ type StaticSiteUserInvitationResponseResourceProperties struct { InvitationURL *string `json:"invitationUrl,omitempty"` } +// MarshalJSON is the custom marshaler for StaticSiteUserInvitationResponseResourceProperties. +func (ssuirr StaticSiteUserInvitationResponseResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StatusCodesBasedTrigger trigger based on status code. type StatusCodesBasedTrigger struct { // Status - HTTP status code. @@ -27210,6 +27402,12 @@ type StorageMigrationResponseProperties struct { OperationID *string `json:"operationId,omitempty"` } +// MarshalJSON is the custom marshaler for StorageMigrationResponseProperties. +func (smr StorageMigrationResponseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // String ... type String struct { autorest.Response `json:"-"` @@ -29029,6 +29227,12 @@ type UsageProperties struct { SiteMode *string `json:"siteMode,omitempty"` } +// MarshalJSON is the custom marshaler for UsageProperties. +func (u UsageProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // User user credentials used for publishing activity. type User struct { autorest.Response `json:"-"` diff --git a/services/web/mgmt/2020-09-01/web/CHANGELOG.md b/services/web/mgmt/2020-09-01/web/CHANGELOG.md index 52911e4cc5e4..76374ce83613 100644 --- a/services/web/mgmt/2020-09-01/web/CHANGELOG.md +++ b/services/web/mgmt/2020-09-01/web/CHANGELOG.md @@ -1,2 +1,40 @@ # Change History +## Additive Changes + +### New Funcs + +1. AnalysisDefinitionProperties.MarshalJSON() ([]byte, error) +1. ArmIDWrapper.MarshalJSON() ([]byte, error) +1. BackupItemProperties.MarshalJSON() ([]byte, error) +1. CertificateDetails.MarshalJSON() ([]byte, error) +1. CertificateOrderActionProperties.MarshalJSON() ([]byte, error) +1. DefaultErrorResponse.MarshalJSON() ([]byte, error) +1. DefaultErrorResponseErrorDetailsItem.MarshalJSON() ([]byte, error) +1. DeletedSiteProperties.MarshalJSON() ([]byte, error) +1. DetectorDefinitionProperties.MarshalJSON() ([]byte, error) +1. DetectorInfo.MarshalJSON() ([]byte, error) +1. DiagnosticCategoryProperties.MarshalJSON() ([]byte, error) +1. DomainControlCenterSsoRequest.MarshalJSON() ([]byte, error) +1. GeoRegionProperties.MarshalJSON() ([]byte, error) +1. HybridConnectionKeyProperties.MarshalJSON() ([]byte, error) +1. HybridConnectionLimitsProperties.MarshalJSON() ([]byte, error) +1. MSDeployLogEntry.MarshalJSON() ([]byte, error) +1. MSDeployLogProperties.MarshalJSON() ([]byte, error) +1. MSDeployStatusProperties.MarshalJSON() ([]byte, error) +1. ManagedServiceIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. MigrateMySQLStatusProperties.MarshalJSON() ([]byte, error) +1. NetworkFeaturesProperties.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceProperties.MarshalJSON() ([]byte, error) +1. ResourceMetricAvailability.MarshalJSON() ([]byte, error) +1. SiteConfigurationSnapshotInfoProperties.MarshalJSON() ([]byte, error) +1. SlotDifferenceProperties.MarshalJSON() ([]byte, error) +1. SlotSwapStatus.MarshalJSON() ([]byte, error) +1. SnapshotProperties.MarshalJSON() ([]byte, error) +1. StaticSiteBuildARMResourceProperties.MarshalJSON() ([]byte, error) +1. StaticSiteCustomDomainOverviewARMResourceProperties.MarshalJSON() ([]byte, error) +1. StaticSiteFunctionOverviewARMResourceProperties.MarshalJSON() ([]byte, error) +1. StaticSiteUserInvitationResponseResourceProperties.MarshalJSON() ([]byte, error) +1. StaticSitesWorkflowPreviewProperties.MarshalJSON() ([]byte, error) +1. StorageMigrationResponseProperties.MarshalJSON() ([]byte, error) +1. UsageProperties.MarshalJSON() ([]byte, error) diff --git a/services/web/mgmt/2020-09-01/web/_meta.json b/services/web/mgmt/2020-09-01/web/_meta.json index 75a5e2952115..4c400dfacf76 100644 --- a/services/web/mgmt/2020-09-01/web/_meta.json +++ b/services/web/mgmt/2020-09-01/web/_meta.json @@ -2,9 +2,9 @@ "commit": "8240593bde5350e6762015523ccd57cb61e32da5", "readme": "/_/azure-rest-api-specs/specification/web/resource-manager/readme.md", "tag": "package-2020-09", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/web/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/web/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/web/mgmt/2020-09-01/web/models.go b/services/web/mgmt/2020-09-01/web/models.go index cf6bf8a76c6c..990b0ed4d766 100644 --- a/services/web/mgmt/2020-09-01/web/models.go +++ b/services/web/mgmt/2020-09-01/web/models.go @@ -389,6 +389,12 @@ type AnalysisDefinitionProperties struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for AnalysisDefinitionProperties. +func (ad AnalysisDefinitionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // APIDefinitionInfo information about the formal API definition for the app. type APIDefinitionInfo struct { // URL - The URL of the API definition. @@ -5201,6 +5207,12 @@ type ArmIDWrapper struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for ArmIDWrapper. +func (aiw ArmIDWrapper) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AuthPlatform ... type AuthPlatform struct { // AuthPlatformProperties - AuthPlatform resource specific properties @@ -6179,6 +6191,12 @@ type BackupItemProperties struct { WebsiteSizeInBytes *int64 `json:"websiteSizeInBytes,omitempty"` } +// MarshalJSON is the custom marshaler for BackupItemProperties. +func (bi BackupItemProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BackupRequest description of a backup which will be performed. type BackupRequest struct { autorest.Response `json:"-"` @@ -7051,6 +7069,12 @@ type CertificateDetails struct { RawData *string `json:"rawData,omitempty"` } +// MarshalJSON is the custom marshaler for CertificateDetails. +func (cd CertificateDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificateEmail SSL certificate email. type CertificateEmail struct { // CertificateEmailProperties - CertificateEmail resource specific properties @@ -7267,6 +7291,12 @@ type CertificateOrderActionProperties struct { CreatedAt *date.Time `json:"createdAt,omitempty"` } +// MarshalJSON is the custom marshaler for CertificateOrderActionProperties. +func (coa CertificateOrderActionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificatePatchResource ARM resource for a certificate. type CertificatePatchResource struct { // CertificatePatchResourceProperties - CertificatePatchResource resource specific properties @@ -9187,6 +9217,12 @@ type DefaultErrorResponse struct { Error *DefaultErrorResponseError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for DefaultErrorResponse. +func (der DefaultErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DefaultErrorResponseError error model. type DefaultErrorResponseError struct { // Code - READ-ONLY; Standardized string to programmatically identify the error. @@ -9219,6 +9255,12 @@ type DefaultErrorResponseErrorDetailsItem struct { Target *string `json:"target,omitempty"` } +// MarshalJSON is the custom marshaler for DefaultErrorResponseErrorDetailsItem. +func (derI DefaultErrorResponseErrorDetailsItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeletedAppRestoreRequest details about restoring a deleted app. type DeletedAppRestoreRequest struct { // DeletedAppRestoreRequestProperties - DeletedAppRestoreRequest resource specific properties @@ -9454,6 +9496,12 @@ type DeletedSiteProperties struct { GeoRegionName *string `json:"geoRegionName,omitempty"` } +// MarshalJSON is the custom marshaler for DeletedSiteProperties. +func (ds DeletedSiteProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeletedWebAppCollection collection of deleted apps. type DeletedWebAppCollection struct { autorest.Response `json:"-"` @@ -10058,6 +10106,12 @@ type DetectorDefinitionProperties struct { IsEnabled *bool `json:"isEnabled,omitempty"` } +// MarshalJSON is the custom marshaler for DetectorDefinitionProperties. +func (dd DetectorDefinitionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DetectorInfo definition of Detector type DetectorInfo struct { // Description - READ-ONLY; Short description of the detector and its purpose @@ -10070,6 +10124,12 @@ type DetectorInfo struct { SupportTopicID *string `json:"supportTopicId,omitempty"` } +// MarshalJSON is the custom marshaler for DetectorInfo. +func (di DetectorInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DetectorResponse class representing Response from Detector type DetectorResponse struct { autorest.Response `json:"-"` @@ -10905,6 +10965,12 @@ type DiagnosticCategoryProperties struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for DiagnosticCategoryProperties. +func (dc DiagnosticCategoryProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DiagnosticData set of data with rendering instructions type DiagnosticData struct { // Table - Data in table form @@ -11565,6 +11631,12 @@ type DomainControlCenterSsoRequest struct { PostParameterValue *string `json:"postParameterValue,omitempty"` } +// MarshalJSON is the custom marshaler for DomainControlCenterSsoRequest. +func (dccsr DomainControlCenterSsoRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DomainOwnershipIdentifier domain ownership Identifier. type DomainOwnershipIdentifier struct { autorest.Response `json:"-"` @@ -13191,6 +13263,12 @@ type GeoRegionProperties struct { OrgDomain *string `json:"orgDomain,omitempty"` } +// MarshalJSON is the custom marshaler for GeoRegionProperties. +func (gr GeoRegionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GitHub ... type GitHub struct { // GitHubProperties - GitHub resource specific properties @@ -14560,6 +14638,12 @@ type HybridConnectionKeyProperties struct { SendKeyValue *string `json:"sendKeyValue,omitempty"` } +// MarshalJSON is the custom marshaler for HybridConnectionKeyProperties. +func (hck HybridConnectionKeyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HybridConnectionLimits hybrid Connection limits contract. This is used to return the plan limits of // Hybrid Connections. type HybridConnectionLimits struct { @@ -14670,6 +14754,12 @@ type HybridConnectionLimitsProperties struct { Maximum *int32 `json:"maximum,omitempty"` } +// MarshalJSON is the custom marshaler for HybridConnectionLimitsProperties. +func (hcl HybridConnectionLimitsProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HybridConnectionProperties hybridConnection resource specific properties type HybridConnectionProperties struct { // ServiceBusNamespace - The name of the Service Bus namespace. @@ -16206,6 +16296,12 @@ type ManagedServiceIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedServiceIdentityUserAssignedIdentitiesValue. +func (msiAiv ManagedServiceIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricAvailability retention policy of a resource metric. type MetricAvailability struct { TimeGrain *string `json:"timeGrain,omitempty"` @@ -16452,6 +16548,12 @@ type MigrateMySQLStatusProperties struct { LocalMySQLEnabled *bool `json:"localMySqlEnabled,omitempty"` } +// MarshalJSON is the custom marshaler for MigrateMySQLStatusProperties. +func (mmss MigrateMySQLStatusProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MSDeploy mSDeploy ARM PUT information type MSDeploy struct { // MSDeployCore - Core resource properties @@ -16712,12 +16814,24 @@ type MSDeployLogEntry struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for MSDeployLogEntry. +func (mdle MSDeployLogEntry) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MSDeployLogProperties mSDeployLog resource specific properties type MSDeployLogProperties struct { // Entries - READ-ONLY; List of log entry messages Entries *[]MSDeployLogEntry `json:"entries,omitempty"` } +// MarshalJSON is the custom marshaler for MSDeployLogProperties. +func (mdl MSDeployLogProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MSDeployStatus mSDeploy ARM response type MSDeployStatus struct { autorest.Response `json:"-"` @@ -16833,6 +16947,12 @@ type MSDeployStatusProperties struct { Complete *bool `json:"complete,omitempty"` } +// MarshalJSON is the custom marshaler for MSDeployStatusProperties. +func (mds MSDeployStatusProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NameIdentifier identifies an object. type NameIdentifier struct { // Name - Name of the object. @@ -17141,6 +17261,12 @@ type NetworkFeaturesProperties struct { HybridConnectionsV2 *[]HybridConnection `json:"hybridConnectionsV2,omitempty"` } +// MarshalJSON is the custom marshaler for NetworkFeaturesProperties. +func (nf NetworkFeaturesProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NetworkTrace network trace type NetworkTrace struct { // Path - Local file path for the captured network trace file. @@ -19001,6 +19127,12 @@ type PrivateLinkResourceProperties struct { RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. +func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkResourcesWrapper wrapper for a collection of private link resources type PrivateLinkResourcesWrapper struct { autorest.Response `json:"-"` @@ -21983,6 +22115,12 @@ type ResourceMetricAvailability struct { Retention *string `json:"retention,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceMetricAvailability. +func (rma ResourceMetricAvailability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceMetricDefinition metadata for the metrics. type ResourceMetricDefinition struct { // ResourceMetricDefinitionProperties - ResourceMetricDefinition resource specific properties @@ -23789,6 +23927,12 @@ type SiteConfigurationSnapshotInfoProperties struct { SnapshotID *int32 `json:"snapshotId,omitempty"` } +// MarshalJSON is the custom marshaler for SiteConfigurationSnapshotInfoProperties. +func (scsi SiteConfigurationSnapshotInfoProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SiteExtensionInfo site Extension Information. type SiteExtensionInfo struct { autorest.Response `json:"-"` @@ -25659,6 +25803,12 @@ type SlotDifferenceProperties struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for SlotDifferenceProperties. +func (sd SlotDifferenceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SlotSwapStatus the status of the last successful slot swap operation. type SlotSwapStatus struct { // TimestampUtc - READ-ONLY; The time the last successful slot swap completed. @@ -25669,6 +25819,12 @@ type SlotSwapStatus struct { DestinationSlotName *string `json:"destinationSlotName,omitempty"` } +// MarshalJSON is the custom marshaler for SlotSwapStatus. +func (sss SlotSwapStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SlowRequestsBasedTrigger trigger based on request execution time. type SlowRequestsBasedTrigger struct { // TimeTaken - Time taken. @@ -25953,6 +26109,12 @@ type SnapshotProperties struct { Time *string `json:"time,omitempty"` } +// MarshalJSON is the custom marshaler for SnapshotProperties. +func (s SnapshotProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SnapshotRecoverySource specifies the web app that snapshot contents will be retrieved from. type SnapshotRecoverySource struct { // Location - Geographical location of the source web app, e.g. SouthEastAsia, SouthCentralUS @@ -26905,6 +27067,12 @@ type StaticSiteBuildARMResourceProperties struct { Status BuildStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for StaticSiteBuildARMResourceProperties. +func (ssbar StaticSiteBuildARMResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StaticSiteBuildCollection collection of static site builds. type StaticSiteBuildCollection struct { autorest.Response `json:"-"` @@ -27362,6 +27530,12 @@ type StaticSiteCustomDomainOverviewARMResourceProperties struct { CreatedOn *date.Time `json:"createdOn,omitempty"` } +// MarshalJSON is the custom marshaler for StaticSiteCustomDomainOverviewARMResourceProperties. +func (sscdoar StaticSiteCustomDomainOverviewARMResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StaticSiteCustomDomainOverviewCollection collection of static site custom domains. type StaticSiteCustomDomainOverviewCollection struct { autorest.Response `json:"-"` @@ -27641,6 +27815,12 @@ type StaticSiteFunctionOverviewARMResourceProperties struct { TriggerType TriggerTypes `json:"triggerType,omitempty"` } +// MarshalJSON is the custom marshaler for StaticSiteFunctionOverviewARMResourceProperties. +func (ssfoar StaticSiteFunctionOverviewARMResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StaticSiteFunctionOverviewCollection collection of static site functions. type StaticSiteFunctionOverviewCollection struct { autorest.Response `json:"-"` @@ -28129,6 +28309,12 @@ type StaticSitesWorkflowPreviewProperties struct { Contents *string `json:"contents,omitempty"` } +// MarshalJSON is the custom marshaler for StaticSitesWorkflowPreviewProperties. +func (sswp StaticSitesWorkflowPreviewProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StaticSitesWorkflowPreviewRequest request entity for previewing the Static Site workflow type StaticSitesWorkflowPreviewRequest struct { // StaticSitesWorkflowPreviewRequestProperties - StaticSitesWorkflowPreviewRequest resource specific properties @@ -28756,6 +28942,12 @@ type StaticSiteUserInvitationResponseResourceProperties struct { InvitationURL *string `json:"invitationUrl,omitempty"` } +// MarshalJSON is the custom marshaler for StaticSiteUserInvitationResponseResourceProperties. +func (ssuirr StaticSiteUserInvitationResponseResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StatusCodesBasedTrigger trigger based on status code. type StatusCodesBasedTrigger struct { // Status - HTTP status code. @@ -28989,6 +29181,12 @@ type StorageMigrationResponseProperties struct { OperationID *string `json:"operationId,omitempty"` } +// MarshalJSON is the custom marshaler for StorageMigrationResponseProperties. +func (smr StorageMigrationResponseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // String ... type String struct { autorest.Response `json:"-"` @@ -30955,6 +31153,12 @@ type UsageProperties struct { SiteMode *string `json:"siteMode,omitempty"` } +// MarshalJSON is the custom marshaler for UsageProperties. +func (u UsageProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // User user credentials used for publishing activity. type User struct { autorest.Response `json:"-"` diff --git a/services/web/mgmt/2020-12-01/web/CHANGELOG.md b/services/web/mgmt/2020-12-01/web/CHANGELOG.md index 52911e4cc5e4..42ed5d7c236c 100644 --- a/services/web/mgmt/2020-12-01/web/CHANGELOG.md +++ b/services/web/mgmt/2020-12-01/web/CHANGELOG.md @@ -1,2 +1,56 @@ # Change History +## Additive Changes + +### New Funcs + +1. AnalysisDefinitionProperties.MarshalJSON() ([]byte, error) +1. AppInsightsWebAppStackSettings.MarshalJSON() ([]byte, error) +1. AppMajorVersion.MarshalJSON() ([]byte, error) +1. AppMinorVersion.MarshalJSON() ([]byte, error) +1. AppRuntimeSettings.MarshalJSON() ([]byte, error) +1. AppRuntimes.MarshalJSON() ([]byte, error) +1. AppStackProperties.MarshalJSON() ([]byte, error) +1. ArmIDWrapper.MarshalJSON() ([]byte, error) +1. BackupItemProperties.MarshalJSON() ([]byte, error) +1. CertificateDetails.MarshalJSON() ([]byte, error) +1. CertificateOrderActionProperties.MarshalJSON() ([]byte, error) +1. DefaultErrorResponse.MarshalJSON() ([]byte, error) +1. DefaultErrorResponseErrorDetailsItem.MarshalJSON() ([]byte, error) +1. DeletedSiteProperties.MarshalJSON() ([]byte, error) +1. DetectorDefinitionProperties.MarshalJSON() ([]byte, error) +1. DetectorInfo.MarshalJSON() ([]byte, error) +1. DiagnosticCategoryProperties.MarshalJSON() ([]byte, error) +1. DomainControlCenterSsoRequest.MarshalJSON() ([]byte, error) +1. FunctionAppMajorVersion.MarshalJSON() ([]byte, error) +1. FunctionAppMinorVersion.MarshalJSON() ([]byte, error) +1. FunctionAppRuntimes.MarshalJSON() ([]byte, error) +1. FunctionAppStackProperties.MarshalJSON() ([]byte, error) +1. GeoRegionProperties.MarshalJSON() ([]byte, error) +1. GitHubActionWebAppStackSettings.MarshalJSON() ([]byte, error) +1. HybridConnectionKeyProperties.MarshalJSON() ([]byte, error) +1. HybridConnectionLimitsProperties.MarshalJSON() ([]byte, error) +1. KeyValuePairStringObject.MarshalJSON() ([]byte, error) +1. LinuxJavaContainerSettings.MarshalJSON() ([]byte, error) +1. MSDeployLogEntry.MarshalJSON() ([]byte, error) +1. MSDeployLogProperties.MarshalJSON() ([]byte, error) +1. MSDeployStatusProperties.MarshalJSON() ([]byte, error) +1. ManagedServiceIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) +1. MigrateMySQLStatusProperties.MarshalJSON() ([]byte, error) +1. NetworkFeaturesProperties.MarshalJSON() ([]byte, error) +1. PrivateLinkResourceProperties.MarshalJSON() ([]byte, error) +1. ResourceMetricAvailability.MarshalJSON() ([]byte, error) +1. SiteConfigPropertiesDictionary.MarshalJSON() ([]byte, error) +1. SiteConfigurationSnapshotInfoProperties.MarshalJSON() ([]byte, error) +1. SlotDifferenceProperties.MarshalJSON() ([]byte, error) +1. SlotSwapStatus.MarshalJSON() ([]byte, error) +1. SnapshotProperties.MarshalJSON() ([]byte, error) +1. StaticSiteBuildARMResourceProperties.MarshalJSON() ([]byte, error) +1. StaticSiteCustomDomainOverviewARMResourceProperties.MarshalJSON() ([]byte, error) +1. StaticSiteFunctionOverviewARMResourceProperties.MarshalJSON() ([]byte, error) +1. StaticSiteUserInvitationResponseResourceProperties.MarshalJSON() ([]byte, error) +1. StaticSitesWorkflowPreviewProperties.MarshalJSON() ([]byte, error) +1. StorageMigrationResponseProperties.MarshalJSON() ([]byte, error) +1. SupportTopic.MarshalJSON() ([]byte, error) +1. UsageProperties.MarshalJSON() ([]byte, error) +1. WindowsJavaContainerSettings.MarshalJSON() ([]byte, error) diff --git a/services/web/mgmt/2020-12-01/web/_meta.json b/services/web/mgmt/2020-12-01/web/_meta.json index a21ba5a60998..63f4ffaf32ae 100644 --- a/services/web/mgmt/2020-12-01/web/_meta.json +++ b/services/web/mgmt/2020-12-01/web/_meta.json @@ -2,9 +2,9 @@ "commit": "e0f8b9ab0f5fe5e71b7429ebfea8a33c19ec9d8d", "readme": "/_/azure-rest-api-specs/specification/web/resource-manager/readme.md", "tag": "package-2020-12", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/web/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/web/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/web/mgmt/2020-12-01/web/models.go b/services/web/mgmt/2020-12-01/web/models.go index e653c9eb3bd2..65607e9a827e 100644 --- a/services/web/mgmt/2020-12-01/web/models.go +++ b/services/web/mgmt/2020-12-01/web/models.go @@ -347,6 +347,12 @@ type AnalysisDefinitionProperties struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for AnalysisDefinitionProperties. +func (ad AnalysisDefinitionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // APIDefinitionInfo information about the formal API definition for the app. type APIDefinitionInfo struct { // URL - The URL of the API definition. @@ -805,6 +811,12 @@ type AppInsightsWebAppStackSettings struct { IsDefaultOff *bool `json:"isDefaultOff,omitempty"` } +// MarshalJSON is the custom marshaler for AppInsightsWebAppStackSettings. +func (aiwass AppInsightsWebAppStackSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AppInstanceStatusCollection collection of app instances. type AppInstanceStatusCollection struct { autorest.Response `json:"-"` @@ -1449,6 +1461,12 @@ type AppMajorVersion struct { MinorVersions *[]AppMinorVersion `json:"minorVersions,omitempty"` } +// MarshalJSON is the custom marshaler for AppMajorVersion. +func (amv AppMajorVersion) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AppMinorVersion web App stack minor version. type AppMinorVersion struct { // DisplayText - READ-ONLY; Web App stack minor version (display only). @@ -1459,6 +1477,12 @@ type AppMinorVersion struct { StackSettings *AppRuntimes `json:"stackSettings,omitempty"` } +// MarshalJSON is the custom marshaler for AppMinorVersion. +func (amv AppMinorVersion) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AppRegistration ... type AppRegistration struct { // AppRegistrationProperties - AppRegistration resource specific properties @@ -1563,6 +1587,12 @@ type AppRuntimes struct { WindowsContainerSettings *WindowsJavaContainerSettings `json:"windowsContainerSettings,omitempty"` } +// MarshalJSON is the custom marshaler for AppRuntimes. +func (ar AppRuntimes) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AppRuntimeSettings web App runtime settings. type AppRuntimeSettings struct { // RuntimeVersion - READ-ONLY; Web App stack minor version (runtime only). @@ -1587,6 +1617,12 @@ type AppRuntimeSettings struct { IsEarlyAccess *bool `json:"isEarlyAccess,omitempty"` } +// MarshalJSON is the custom marshaler for AppRuntimeSettings. +func (ars AppRuntimeSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AppsApproveOrRejectPrivateEndpointConnectionFuture an abstraction for monitoring and retrieving the // results of a long-running operation. type AppsApproveOrRejectPrivateEndpointConnectionFuture struct { @@ -5832,12 +5868,24 @@ type AppStackProperties struct { PreferredOs StackPreferredOs `json:"preferredOs,omitempty"` } +// MarshalJSON is the custom marshaler for AppStackProperties. +func (as AppStackProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ArmIDWrapper a wrapper for an ARM resource id type ArmIDWrapper struct { // ID - READ-ONLY ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for ArmIDWrapper. +func (aiw ArmIDWrapper) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AseV3NetworkingConfiguration full view of networking configuration for an ASE. type AseV3NetworkingConfiguration struct { autorest.Response `json:"-"` @@ -7020,6 +7068,12 @@ type BackupItemProperties struct { WebsiteSizeInBytes *int64 `json:"websiteSizeInBytes,omitempty"` } +// MarshalJSON is the custom marshaler for BackupItemProperties. +func (bi BackupItemProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BackupRequest description of a backup which will be performed. type BackupRequest struct { autorest.Response `json:"-"` @@ -7838,6 +7892,12 @@ type CertificateDetails struct { RawData *string `json:"rawData,omitempty"` } +// MarshalJSON is the custom marshaler for CertificateDetails. +func (cd CertificateDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificateEmail SSL certificate email. type CertificateEmail struct { // CertificateEmailProperties - CertificateEmail resource specific properties @@ -8026,6 +8086,12 @@ type CertificateOrderActionProperties struct { CreatedAt *date.Time `json:"createdAt,omitempty"` } +// MarshalJSON is the custom marshaler for CertificateOrderActionProperties. +func (coa CertificateOrderActionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CertificateOrderContact ... type CertificateOrderContact struct { Email *string `json:"email,omitempty"` @@ -9852,6 +9918,12 @@ type DefaultErrorResponse struct { Error *DefaultErrorResponseError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for DefaultErrorResponse. +func (der DefaultErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DefaultErrorResponseError error model. type DefaultErrorResponseError struct { // Code - READ-ONLY; Standardized string to programmatically identify the error. @@ -9884,6 +9956,12 @@ type DefaultErrorResponseErrorDetailsItem struct { Target *string `json:"target,omitempty"` } +// MarshalJSON is the custom marshaler for DefaultErrorResponseErrorDetailsItem. +func (derI DefaultErrorResponseErrorDetailsItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeletedAppRestoreRequest details about restoring a deleted app. type DeletedAppRestoreRequest struct { // DeletedAppRestoreRequestProperties - DeletedAppRestoreRequest resource specific properties @@ -10091,6 +10169,12 @@ type DeletedSiteProperties struct { GeoRegionName *string `json:"geoRegionName,omitempty"` } +// MarshalJSON is the custom marshaler for DeletedSiteProperties. +func (ds DeletedSiteProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DeletedWebAppCollection collection of deleted apps. type DeletedWebAppCollection struct { autorest.Response `json:"-"` @@ -10667,6 +10751,12 @@ type DetectorDefinitionProperties struct { IsEnabled *bool `json:"isEnabled,omitempty"` } +// MarshalJSON is the custom marshaler for DetectorDefinitionProperties. +func (dd DetectorDefinitionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DetectorInfo definition of Detector type DetectorInfo struct { // ID - READ-ONLY; Id of detector @@ -10689,6 +10779,12 @@ type DetectorInfo struct { Score *float64 `json:"score,omitempty"` } +// MarshalJSON is the custom marshaler for DetectorInfo. +func (di DetectorInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DetectorResponse class representing Response from Detector type DetectorResponse struct { autorest.Response `json:"-"` @@ -11488,6 +11584,12 @@ type DiagnosticCategoryProperties struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for DiagnosticCategoryProperties. +func (dc DiagnosticCategoryProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DiagnosticData set of data with rendering instructions type DiagnosticData struct { // Table - Data in table form @@ -12120,6 +12222,12 @@ type DomainControlCenterSsoRequest struct { PostParameterValue *string `json:"postParameterValue,omitempty"` } +// MarshalJSON is the custom marshaler for DomainControlCenterSsoRequest. +func (dccsr DomainControlCenterSsoRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DomainOwnershipIdentifier domain ownership Identifier. type DomainOwnershipIdentifier struct { autorest.Response `json:"-"` @@ -13055,6 +13163,12 @@ type FunctionAppMajorVersion struct { MinorVersions *[]FunctionAppMinorVersion `json:"minorVersions,omitempty"` } +// MarshalJSON is the custom marshaler for FunctionAppMajorVersion. +func (famv FunctionAppMajorVersion) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FunctionAppMinorVersion function App stack minor version. type FunctionAppMinorVersion struct { // DisplayText - READ-ONLY; Function App stack (display only). @@ -13065,6 +13179,12 @@ type FunctionAppMinorVersion struct { StackSettings *FunctionAppRuntimes `json:"stackSettings,omitempty"` } +// MarshalJSON is the custom marshaler for FunctionAppMinorVersion. +func (famv FunctionAppMinorVersion) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FunctionAppRuntimes function App stack runtimes. type FunctionAppRuntimes struct { // LinuxRuntimeSettings - READ-ONLY; Linux-specific settings associated with the minor version. @@ -13073,6 +13193,12 @@ type FunctionAppRuntimes struct { WindowsRuntimeSettings *FunctionAppRuntimeSettings `json:"windowsRuntimeSettings,omitempty"` } +// MarshalJSON is the custom marshaler for FunctionAppRuntimes. +func (far FunctionAppRuntimes) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FunctionAppRuntimeSettings function App runtime settings. type FunctionAppRuntimeSettings struct { // RuntimeVersion - READ-ONLY; Function App stack minor version (runtime only). @@ -13388,6 +13514,12 @@ type FunctionAppStackProperties struct { PreferredOs StackPreferredOs `json:"preferredOs,omitempty"` } +// MarshalJSON is the custom marshaler for FunctionAppStackProperties. +func (fas FunctionAppStackProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // FunctionEnvelope function information. type FunctionEnvelope struct { autorest.Response `json:"-"` @@ -13991,6 +14123,12 @@ type GeoRegionProperties struct { OrgDomain *string `json:"orgDomain,omitempty"` } +// MarshalJSON is the custom marshaler for GeoRegionProperties. +func (gr GeoRegionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GitHub ... type GitHub struct { // GitHubProperties - GitHub resource specific properties @@ -14117,6 +14255,12 @@ type GitHubActionWebAppStackSettings struct { SupportedVersion *string `json:"supportedVersion,omitempty"` } +// MarshalJSON is the custom marshaler for GitHubActionWebAppStackSettings. +func (ghawass GitHubActionWebAppStackSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // GitHubProperties gitHub resource specific properties type GitHubProperties struct { Enabled *bool `json:"enabled,omitempty"` @@ -15288,6 +15432,12 @@ type HybridConnectionKeyProperties struct { SendKeyValue *string `json:"sendKeyValue,omitempty"` } +// MarshalJSON is the custom marshaler for HybridConnectionKeyProperties. +func (hck HybridConnectionKeyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HybridConnectionLimits hybrid Connection limits contract. This is used to return the plan limits of // Hybrid Connections. type HybridConnectionLimits struct { @@ -15384,6 +15534,12 @@ type HybridConnectionLimitsProperties struct { Maximum *int32 `json:"maximum,omitempty"` } +// MarshalJSON is the custom marshaler for HybridConnectionLimitsProperties. +func (hcl HybridConnectionLimitsProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // HybridConnectionProperties hybridConnection resource specific properties type HybridConnectionProperties struct { // ServiceBusNamespace - The name of the Service Bus namespace. @@ -16468,6 +16624,12 @@ type KeyValuePairStringObject struct { Value interface{} `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for KeyValuePairStringObject. +func (kvpSo KeyValuePairStringObject) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // KubeEnvironmentProfile specification for a Kubernetes Environment to use for this resource. type KubeEnvironmentProfile struct { // ID - Resource ID of the Kubernetes Environment. @@ -16601,6 +16763,12 @@ type LinuxJavaContainerSettings struct { IsEarlyAccess *bool `json:"isEarlyAccess,omitempty"` } +// MarshalJSON is the custom marshaler for LinuxJavaContainerSettings. +func (ljcs LinuxJavaContainerSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ListCapability ... type ListCapability struct { autorest.Response `json:"-"` @@ -16981,6 +17149,12 @@ type ManagedServiceIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for ManagedServiceIdentityUserAssignedIdentitiesValue. +func (msiAiv ManagedServiceIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricAvailability retention policy of a resource metric. type MetricAvailability struct { TimeGrain *string `json:"timeGrain,omitempty"` @@ -17199,6 +17373,12 @@ type MigrateMySQLStatusProperties struct { LocalMySQLEnabled *bool `json:"localMySqlEnabled,omitempty"` } +// MarshalJSON is the custom marshaler for MigrateMySQLStatusProperties. +func (mmss MigrateMySQLStatusProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MSDeploy mSDeploy ARM PUT information type MSDeploy struct { // MSDeployCore - Core resource properties @@ -17431,12 +17611,24 @@ type MSDeployLogEntry struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for MSDeployLogEntry. +func (mdle MSDeployLogEntry) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MSDeployLogProperties mSDeployLog resource specific properties type MSDeployLogProperties struct { // Entries - READ-ONLY; List of log entry messages Entries *[]MSDeployLogEntry `json:"entries,omitempty"` } +// MarshalJSON is the custom marshaler for MSDeployLogProperties. +func (mdl MSDeployLogProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MSDeployStatus mSDeploy ARM response type MSDeployStatus struct { autorest.Response `json:"-"` @@ -17538,6 +17730,12 @@ type MSDeployStatusProperties struct { Complete *bool `json:"complete,omitempty"` } +// MarshalJSON is the custom marshaler for MSDeployStatusProperties. +func (mds MSDeployStatusProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NameIdentifier identifies an object. type NameIdentifier struct { // Name - Name of the object. @@ -17820,6 +18018,12 @@ type NetworkFeaturesProperties struct { HybridConnectionsV2 *[]HybridConnection `json:"hybridConnectionsV2,omitempty"` } +// MarshalJSON is the custom marshaler for NetworkFeaturesProperties. +func (nf NetworkFeaturesProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // NetworkTrace network trace type NetworkTrace struct { // Path - Local file path for the captured network trace file. @@ -19609,6 +19813,12 @@ type PrivateLinkResourceProperties struct { RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. +func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateLinkResourcesWrapper wrapper for a collection of private link resources type PrivateLinkResourcesWrapper struct { autorest.Response `json:"-"` @@ -22536,6 +22746,12 @@ type ResourceMetricAvailability struct { Retention *string `json:"retention,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceMetricAvailability. +func (rma ResourceMetricAvailability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ResourceMetricDefinition metadata for the metrics. type ResourceMetricDefinition struct { // ResourceMetricDefinitionProperties - ResourceMetricDefinition resource specific properties @@ -23784,6 +24000,12 @@ type SiteConfigPropertiesDictionary struct { PowerShellVersion *string `json:"powerShellVersion,omitempty"` } +// MarshalJSON is the custom marshaler for SiteConfigPropertiesDictionary. +func (scpd SiteConfigPropertiesDictionary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SiteConfigResource web app configuration ARM resource. type SiteConfigResource struct { autorest.Response `json:"-"` @@ -24303,6 +24525,12 @@ type SiteConfigurationSnapshotInfoProperties struct { SnapshotID *int32 `json:"snapshotId,omitempty"` } +// MarshalJSON is the custom marshaler for SiteConfigurationSnapshotInfoProperties. +func (scsi SiteConfigurationSnapshotInfoProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SiteExtensionInfo site Extension Information. type SiteExtensionInfo struct { autorest.Response `json:"-"` @@ -26085,6 +26313,12 @@ type SlotDifferenceProperties struct { Description *string `json:"description,omitempty"` } +// MarshalJSON is the custom marshaler for SlotDifferenceProperties. +func (sd SlotDifferenceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SlotSwapStatus the status of the last successful slot swap operation. type SlotSwapStatus struct { // TimestampUtc - READ-ONLY; The time the last successful slot swap completed. @@ -26095,6 +26329,12 @@ type SlotSwapStatus struct { DestinationSlotName *string `json:"destinationSlotName,omitempty"` } +// MarshalJSON is the custom marshaler for SlotSwapStatus. +func (sss SlotSwapStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SlowRequestsBasedTrigger trigger based on request execution time. type SlowRequestsBasedTrigger struct { // TimeTaken - Time taken. @@ -26367,6 +26607,12 @@ type SnapshotProperties struct { Time *string `json:"time,omitempty"` } +// MarshalJSON is the custom marshaler for SnapshotProperties. +func (s SnapshotProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SnapshotRecoverySource specifies the web app that snapshot contents will be retrieved from. type SnapshotRecoverySource struct { // Location - Geographical location of the source web app, e.g. SouthEastAsia, SouthCentralUS @@ -27337,6 +27583,12 @@ type StaticSiteBuildARMResourceProperties struct { UserProvidedFunctionApps *[]StaticSiteUserProvidedFunctionApp `json:"userProvidedFunctionApps,omitempty"` } +// MarshalJSON is the custom marshaler for StaticSiteBuildARMResourceProperties. +func (ssbar StaticSiteBuildARMResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StaticSiteBuildCollection collection of static site builds. type StaticSiteBuildCollection struct { autorest.Response `json:"-"` @@ -27796,6 +28048,12 @@ type StaticSiteCustomDomainOverviewARMResourceProperties struct { ErrorMessage *string `json:"errorMessage,omitempty"` } +// MarshalJSON is the custom marshaler for StaticSiteCustomDomainOverviewARMResourceProperties. +func (sscdoar StaticSiteCustomDomainOverviewARMResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StaticSiteCustomDomainOverviewCollection collection of static site custom domains. type StaticSiteCustomDomainOverviewCollection struct { autorest.Response `json:"-"` @@ -28155,6 +28413,12 @@ type StaticSiteFunctionOverviewARMResourceProperties struct { TriggerType TriggerTypes `json:"triggerType,omitempty"` } +// MarshalJSON is the custom marshaler for StaticSiteFunctionOverviewARMResourceProperties. +func (ssfoar StaticSiteFunctionOverviewARMResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StaticSiteFunctionOverviewCollection collection of static site functions. type StaticSiteFunctionOverviewCollection struct { autorest.Response `json:"-"` @@ -29118,6 +29382,12 @@ type StaticSitesWorkflowPreviewProperties struct { Contents *string `json:"contents,omitempty"` } +// MarshalJSON is the custom marshaler for StaticSitesWorkflowPreviewProperties. +func (sswp StaticSitesWorkflowPreviewProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StaticSitesWorkflowPreviewRequest request entity for previewing the Static Site workflow type StaticSitesWorkflowPreviewRequest struct { // StaticSitesWorkflowPreviewRequestProperties - StaticSitesWorkflowPreviewRequest resource specific properties @@ -29703,6 +29973,12 @@ type StaticSiteUserInvitationResponseResourceProperties struct { InvitationURL *string `json:"invitationUrl,omitempty"` } +// MarshalJSON is the custom marshaler for StaticSiteUserInvitationResponseResourceProperties. +func (ssuirr StaticSiteUserInvitationResponseResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // StaticSiteUserProvidedFunctionApp a static site user provided function. type StaticSiteUserProvidedFunctionApp struct { // StaticSiteUserProvidedFunctionAppProperties - StaticSiteUserProvidedFunctionApp resource specific properties @@ -30418,6 +30694,12 @@ type StorageMigrationResponseProperties struct { OperationID *string `json:"operationId,omitempty"` } +// MarshalJSON is the custom marshaler for StorageMigrationResponseProperties. +func (smr StorageMigrationResponseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // String ... type String struct { autorest.Response `json:"-"` @@ -30486,6 +30768,12 @@ type SupportTopic struct { PesID *string `json:"pesId,omitempty"` } +// MarshalJSON is the custom marshaler for SupportTopic. +func (st SupportTopic) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SwiftVirtualNetwork swift Virtual Network Contract. This is used to enable the new Swift way of doing // virtual network integration. type SwiftVirtualNetwork struct { @@ -32272,6 +32560,12 @@ type UsageProperties struct { SiteMode *string `json:"siteMode,omitempty"` } +// MarshalJSON is the custom marshaler for UsageProperties. +func (u UsageProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // User user credentials used for publishing activity. type User struct { autorest.Response `json:"-"` @@ -33193,6 +33487,12 @@ type WindowsJavaContainerSettings struct { IsEarlyAccess *bool `json:"isEarlyAccess,omitempty"` } +// MarshalJSON is the custom marshaler for WindowsJavaContainerSettings. +func (wjcs WindowsJavaContainerSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // WorkerPool worker pool of an App Service Environment. type WorkerPool struct { // WorkerSizeID - Worker size ID for referencing this worker pool. diff --git a/services/windowsiot/mgmt/2019-06-01/windowsiot/CHANGELOG.md b/services/windowsiot/mgmt/2019-06-01/windowsiot/CHANGELOG.md index 52911e4cc5e4..388c80a1c62e 100644 --- a/services/windowsiot/mgmt/2019-06-01/windowsiot/CHANGELOG.md +++ b/services/windowsiot/mgmt/2019-06-01/windowsiot/CHANGELOG.md @@ -1,2 +1,9 @@ # Change History +## Additive Changes + +### New Funcs + +1. OperationListResult.MarshalJSON() ([]byte, error) +1. ProxyResource.MarshalJSON() ([]byte, error) +1. Resource.MarshalJSON() ([]byte, error) diff --git a/services/windowsiot/mgmt/2019-06-01/windowsiot/_meta.json b/services/windowsiot/mgmt/2019-06-01/windowsiot/_meta.json index ce0578f456f8..c933637d440f 100644 --- a/services/windowsiot/mgmt/2019-06-01/windowsiot/_meta.json +++ b/services/windowsiot/mgmt/2019-06-01/windowsiot/_meta.json @@ -2,9 +2,9 @@ "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", "readme": "/_/azure-rest-api-specs/specification/windowsiot/resource-manager/readme.md", "tag": "package-2019-06", - "use": "@microsoft.azure/autorest.go@2.1.180", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/windowsiot/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/windowsiot/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/windowsiot/mgmt/2019-06-01/windowsiot/models.go b/services/windowsiot/mgmt/2019-06-01/windowsiot/models.go index 5929bab70c19..6d9b04f9b0bc 100644 --- a/services/windowsiot/mgmt/2019-06-01/windowsiot/models.go +++ b/services/windowsiot/mgmt/2019-06-01/windowsiot/models.go @@ -404,6 +404,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of OperationEntity values. type OperationListResultIterator struct { i int @@ -565,6 +571,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource the core properties of ARM resources type Resource struct { // ID - READ-ONLY; Fully qualified resource Id for the resource @@ -575,6 +587,12 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // TrackedResource the resource model definition for a ARM tracked top level resource type TrackedResource struct { // Tags - Resource tags. diff --git a/version/version.go b/version/version.go index 88196ed9485d..b2e48843615d 100644 --- a/version/version.go +++ b/version/version.go @@ -4,4 +4,4 @@ package version // Licensed under the MIT License. See License.txt in the project root for license information. // Number contains the semantic version of this SDK. -const Number = "v54.3.0" +const Number = "v55.0.0"